1 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
3 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
4 vector data transfer instructions.
5 (arm_record_coproc_data_proc): Updated.
7 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
9 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
10 arm_record_exreg_ld_st_insn.
11 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
14 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
16 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
17 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
18 processing instructions.
20 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
22 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
23 for advance SIMD struct ld/st insn.
24 (thumb2_record_decode_insn_handler): Replace stub handler with
25 thumb2_record_asimd_struct_ld_st.
27 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
29 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
30 for asimd, vfp and coprocessor insns.
31 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
32 and coprocessor insns.
33 (thumb2_record_coproc_insn): New function.
34 (thumb2_record_decode_insn_handler): Update coprocessor insns record
36 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
39 2014-09-13 Doug Evans <xdje42@gmail.com>
41 * NEWS: Mention new "queue-signal" command.
42 * infcmd.c (queue_signal_command): New function.
43 (_initialize_infcmd): Add new queue-signal command.
45 2014-09-13 Doug Evans <xdje42@gmail.com>
47 * linux-nat.c (wait_lwp): Add debugging printf.
48 (linux_nat_wait_1): Ditto.
50 2014-09-12 Pedro Alves <palves@redhat.com>
52 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
53 (create_and_insert_solib_event_breakpoint): New functions.
54 * breakpoint.h (create_and_insert_solib_event_breakpoint)
55 (remove_solib_event_breakpoints_at_next_stop): New declarations.
56 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
57 (remove_dbx_link_breakpoint): Delete function.
58 (insert_dbx_link_bpt_in_file): Use
59 create_and_insert_solib_event_breakpoint instead of
60 deprecated_insert_raw_breakpoint.
61 (procfs_wait): Don't check whether we hit __dbx_link here.
62 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
64 * solib-irix.c (base_breakpoint): Delete global.
65 (disable_break): Delete function.
66 (enable_break): Use create_solib_event_breakpoint
67 instead of deprecated_insert_raw_breakpoint.
68 (irix_solib_handle_event): New function.
69 (irix_solib_create_inferior_hook): Don't run the target or disable
70 the mapping-complete breakpoint here.
71 (_initialize_irix_solib): Install irix_solib_handle_event as
72 so_ops->handle_event hook.
74 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
75 Ulrich Weigand <uweigand@de.ibm.com>
78 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
79 instead of read_memory_unsigned_integer.
81 2014-09-12 Gary Benson <gbenson@redhat.com>
83 * nat/linux-waitpid.c: Include common-defs.h.
84 [GDBSERVER]: Add FIXME comment.
85 [!GDBSERVER]: Don't include defs.h or signal.h.
86 (linux_debug) [!GDBSERVER]: Remove empty block.
88 2014-09-12 Gary Benson <gbenson@redhat.com>
90 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
91 Don't include defs.h or server.h.
93 2014-09-12 Gary Benson <gbenson@redhat.com>
95 * nat/linux-btrace.c: Include common-defs.h.
96 Don't include defs.h, server.h or gdbthread.h.
97 * nat/linux-btrace.h (struct target_ops): New forward declaration.
99 2014-09-12 Gary Benson <gbenson@redhat.com>
101 * common/agent.c: Include common-defs.h.
102 Don't include defs.h or server.h.
103 * common/buffer.c: Likewise.
104 * common/common-debug.c: Likewise.
105 * common/common-utils.c: Likewise.
106 * common/errors.c: Likewise.
107 * common/filestuff.c: Likewise.
108 * common/format.c: Likewise.
109 * common/gdb_vecs.c: Likewise.
110 * common/print-utils.c: Likewise.
111 * common/ptid.c: Likewise.
112 * common/rsp-low.c: Likewise.
113 * common/signals.c: Likewise.
114 * common/vec.c: Likewise.
115 * common/xml-utils.c: Likewise.
116 * nat/linux-osdata.c: Likewise.
117 * nat/linux-procfs.c: Likewise.
118 * nat/linux-ptrace.c: Likewise.
119 * nat/mips-linux-watch.c: Likewise.
120 * target/waitstatus.c: Likewise.
122 2014-09-12 Tom Tromey <tromey@redhat.com>
123 Gary Benson <gbenson@redhat.com>
125 * common/common-regcache.h: New file.
126 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
127 * regcache.h: Include common-regcache.h.
128 (regcache_read_pc): Don't declare.
129 * regcache.c (get_thread_regcache_for_ptid): New function.
130 * nat/linux-btrace.c: Don't include regcache.h.
131 Include common-regcache.h.
132 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
134 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
136 * regcache.h (struct regset): Declare.
138 2014-09-11 Pedro Alves <palves@redhat.com>
141 * main.c: Include "infrun.h".
142 (catch_command_errors, catch_command_errors_const): Wait for the
143 foreground command to complete.
144 * top.c (maybe_wait_sync_command_done): New function, factored out
146 (maybe_wait_sync_command_done): ... here.
147 * top.h (maybe_wait_sync_command_done): New declaration.
149 2014-09-11 Tom Tromey <tromey@redhat.com>
150 Gary Benson <gbenson@redhat.com>
152 * common/symbol.h: New file.
153 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
154 * minsyms.c (find_minimal_symbol_address): New function.
155 * common/agent.c: Include common/symbol.h.
156 [!GDBSERVER]: Don't include objfiles.h.
157 (agent_look_up_symbols): Use find_minimal_symbol_address.
159 2014-09-11 Gary Benson <gbenson@redhat.com>
161 * target/target.h (target_stop_ptid, target_continue_ptid):
163 * target.c (target_stop_ptid, target_continue_ptid): New
165 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
166 (agent_run_command): Always use target_stop_ptid and
167 target_continue_ptid.
169 2014-09-11 Tom Tromey <tromey@redhat.com>
170 Gary Benson <gbenson@redhat.com>
172 * target/target.h: New file.
173 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
174 * target.h: Include target/target.h.
175 (target_read_memory, target_write_memory): Don't declare.
176 * target.c (target_read_uint32): New function.
177 * common/agent.c: Include target/target.h.
178 [!GDBSERVER]: Don't include target.h.
179 (helper_thread_id): Type changed to uint32_t.
180 (agent_get_helper_thread_id): Use target_read_uint32.
181 (agent_run_command): Always use target_read_memory and
183 (agent_capability): Type changed to uint32_t.
184 (agent_capability_check): Use target_read_uint32.
186 2014-09-11 Gary Benson <gbenson@redhat.com>
188 * common/common-debug.h (show_debug_regs): Declare.
189 * common/common-debug.c (show_debug_regs): Define.
190 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
191 all uses with show_debug_regs. Replace all uses that considered
192 debug_hw_points as a multi-value integer with straight boolean
194 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
195 with show_debug_regs.
196 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
197 all uses with show_debug_regs.
198 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
199 uses with show_debug_regs.
201 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
203 * findvar.c (address_from_register): Handle targets requiring
204 a special conversion routine even for plain pointer types.
206 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
208 * rs6000-nat.c (exec_one_dummy_insn): Remove.
209 (store_register): Do not call exec_one_dummy_insn.
211 2014-09-10 Joel Brobecker <brobecker@adacore.com>
213 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
214 dereference it first. Use value_enclosing_type instead of
216 (ada_array_length): Likewise.
218 2014-09-10 Joel Brobecker <brobecker@adacore.com>
220 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
221 Adjust function implementation and documentation accordingly.
222 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
223 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
224 Update call to ada_value_ptr_subscript.
226 2014-09-10 Joel Brobecker <brobecker@adacore.com>
228 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
229 instead of VAL's type.
231 2014-09-10 Joel Brobecker <brobecker@adacore.com>
233 * amd64-linux-nat.c: Add <sys/uio.h> #include.
235 2014-09-09 Doug Evans <xdje42@gmail.com>
238 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
239 last parameter to pkg-config, not first.
240 * configure.ac: Pass --with-guile provided pkg-config path to
241 GDB_GUILE_PROGRAM_NAMES.
242 * configure: Regenerate.
244 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
246 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
249 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
251 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
252 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
253 the list of sections determining GDB_OSABI_IRIX.
255 2014-09-09 James Hogan <james.hogan@imgtec.com>
257 * MAINTAINERS (Write After Approval): Add "James Hogan".
259 2014-09-09 James Hogan <james.hogan@imgtec.com>
261 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
263 2014-09-09 Joel Brobecker <brobecker@adacore.com>
265 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
267 2014-09-08 Doug Evans <xdje42@gmail.com>
270 * guile.c: #include <signal.h>.
271 (_initialize_guile): Block SIGCHLD while initializing Guile.
273 Replaces the following, which is reverted.
275 2014-07-26 Doug Evans <xdje42@gmail.com>
278 * configure.ac: Add check for header gc/gc.h.
279 Add check for function setenv.
280 * configure: Regenerate.
281 * config.in: Regenerate.
282 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
284 2014-09-08 Doug Evans <xdje42@gmail.com>
286 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
287 with named constant. Fix style of pointer comparison.
288 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
290 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
293 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
294 decide whether we display the command on "show user".
295 * cli/cli-script.c (show_user_1): Only verify cmdlines after
296 printing command name.
297 * cli/cli-decode.h (cli_user_command_p): Declare new function.
298 * cli/cli-decode.c (cli_user_command_p): Create helper function
299 to verify whether cmd_list_element is a user-defined command.
301 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
304 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
305 Fix goto out of TRY_CATCH.
307 2014-09-06 Doug Evans <xdje42@gmail.com>
308 Tom Tromey <tromey@redhat.com>
311 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
312 $_any_caller_matches.
313 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
314 * python/lib/gdb/function/caller_is.py: New file.
316 2014-09-06 Doug Evans <xdje42@gmail.com>
318 * infcmd.c (program_info): Fix typo.
320 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
323 * stap-probe.c (stap_parse_single_operand): Delete unused variable
324 'number'. New variable 'has_digit'. Rewrite code to deal with
325 subexpressions on SDT probes.
327 2014-09-04 Pedro Alves <palves@redhat.com>
329 * c-exp.y (parse_number): Skip handling base-switching prefixes if
330 the input is only one character long.
332 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
335 * f-valprint.c (f_val_print): Specify the correct print option to
336 use when printing integer values.
338 2014-09-04 Gary Benson <gbenson@redhat.com>
340 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
341 Remove code to cope with LWPs wrapped as PIDs.
342 Add assertions to ensure no wrapped LWPs are passed.
344 2014-09-04 Pedro Alves <palves@redhat.com>
346 * value.c (value_ranges_copy_adjusted): New function, factored out
348 (value_contents_copy_raw): ... here.
349 (unpack_value_bits_as_long_1): Rename back to ...
350 (unpack_bits_as_long): ... this. Remove 'original_value' and
351 'result' parameters. Change return type to LONGEST.
352 (unpack_value_bits_as_long): Delete.
353 (unpack_value_field_as_long_1): Delete.
354 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
355 (unpack_value_bitfield): New function.
356 (value_field_bitfield): Reimplement using unpack_value_bitfield.
357 (value_fetch_lazy): Use unpack_value_bitfield.
358 * value.h (unpack_value_bits_as_long): Delete declaration.
360 2014-09-03 Sasha Smundak <asmundak@google.com>
362 * python/py-frame.c (frapy_read_register): New function.
364 2014-09-03 James Hogan <james.hogan@imgtec.com>
366 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
367 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
369 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
372 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
374 (add_cmd): Set "completer_handle_brkchars" to NULL.
375 * cli/cli-decode.h (struct cmd_list_element)
376 <completer_handle_brkchars>: New field.
377 * command.h (completer_ftype_void): New typedef.
378 (set_cmd_completer_handle_brkchars): New prototype.
379 * completer.c (set_gdb_completion_word_break_characters): New
381 (complete_line_internal): Call "completer_handle_brkchars"
382 callback from command.
383 * completer.h: Include "command.h".
384 (set_gdb_completion_word_break_characters): New prototype.
385 * python/py-cmd.c (cmdpy_completer_helper): New function.
386 (cmdpy_completer_handle_brkchars): New function.
387 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
388 (cmdpy_init): Set completer_handle_brkchars to
389 cmdpy_completer_handle_brkchars.
391 2014-09-03 Gary Benson <gbenson@redhat.com>
393 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
394 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
395 Loop conditions changed to equivalent form.
396 (struct x86_debug_reg_state): Updated dr_ref_count comment.
397 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
398 ALL_DEBUG_ADDRESS_REGISTERS.
400 2014-09-03 Joel Brobecker <brobecker@adacore.com>
402 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
405 2014-09-02 Doug Evans <dje@google.com>
407 * typeprint.c (find_global_typedef): Fix comment.
409 2014-09-02 Gary Benson <gbenson@redhat.com>
411 * i386-nat.h: Renamed as...
412 * x86-nat.h: New file. All type, function and variable name
413 prefixes changed from "i386_" to "x86_". All references updated.
414 * i386-nat.c: Renamed as...
415 * x86-nat.c: New file. All type, function and variable name
416 prefixes changed from "i386_" to "x86_". All references updated.
417 * common/i386-xstate.h: Renamed as...
418 * common/x86-xstate.h: New file. All type, function and variable
419 name prefixes changed from "i386_" to "x86_". All references
421 * nat/i386-cpuid.h: Renamed as...
422 * nat/x86-cpuid.h: New file. All type, function and variable name
423 prefixes changed from "i386_" to "x86_". All references updated.
424 * nat/i386-gcc-cpuid.h: Renamed as...
425 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
426 name prefixes changed from "i386_" to "x86_". All references
428 * nat/i386-dregs.h: Renamed as...
429 * nat/x86-dregs.h: New file. All type, function and variable name
430 prefixes changed from "i386_" to "x86_". All references updated.
431 * nat/i386-dregs.c: Renamed as...
432 * nat/x86-dregs.c: New file. All type, function and variable name
433 prefixes changed from "i386_" to "x86_". All references updated.
435 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
437 * varobj.c (_initialize_varobj): Move to the end of file.
439 2014-08-29 Gary Benson <gbenson@redhat.com>
441 * common/common-exceptions.h: New file.
442 * common/common-exceptions.c: Likewise.
443 * Makefile.in (SFILES): Add common/common-exceptions.c.
444 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
445 (COMMON_OBS): Add common-exceptions.o.
446 (common-exceptions.o): New rule.
447 * exceptions.h (common-exceptions.h): Include.
448 (gdb_setjmp.h): Do not include.
449 (return_reason): Moved to common-exceptions.h.
450 (enum return_reason): Likewise.
451 (RETURN_MASK): Likewise.
452 (typedef return_mask): Likewise.
453 (enum errors): Likewise.
454 (struct gdb_exception): Likewise.
455 (exceptions_state_mc_init): Likewise.
456 (exceptions_state_mc_action_iter): Likewise.
457 (exceptions_state_mc_action_iter_1): Likewise.
458 (TRY_CATCH): Likewise.
459 (throw_exception): Likewise.
460 (throw_verror): Likewise.
461 (throw_vquit): Likewise.
462 (throw_error): Likewise.
463 (throw_quit): Likewise.
464 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
465 (enum catcher_action): Likewise.
466 (struct catcher): Likewise.
467 (current_catcher): Likewise.
468 (catcher_list_size): Likewise.
469 (exceptions_state_mc_init): Likewise.
470 (catcher_pop): Likewise.
471 (exceptions_state_mc): Likewise.
472 (exceptions_state_mc_action_iter): Likewise.
473 (exceptions_state_mc_action_iter_1): Likewise.
474 (throw_exception): Likewise.
475 (exception_messages): Likewise.
476 (exception_messages_size): Likewise.
477 (throw_it): Likewise.
478 (throw_verror): Likewise.
479 (throw_vquit): Likewise.
480 (throw_error): Likewise.
481 (throw_quit): Likewise.
482 (prepare_to_throw_exception): New function.
484 2014-08-29 Gary Benson <gbenson@redhat.com>
486 * common/gdb_setjmp.h: New file.
487 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
488 * configure.ac: Move sigsetjmp check...
489 * common/common.m4: ...here.
490 * configure: Regenerate.
491 * cp-support.c (SIGJMP_BUF): Delete.
492 (SIGSETJMP): Likewise.
493 (SIGLONGJMP): Likewise.
494 * exceptions.h (gdb_setjmp.h): Include.
495 (setjmp.h): Do not include.
496 (EXCEPTIONS_SIGJMP_BUF): Delete.
497 (EXCEPTIONS_SIGSETJMP): Likewise.
498 (EXCEPTIONS_SIGLONGJMP): Likewise.
499 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
501 * exceptions.c: Likewise.
503 2014-08-29 Gary Benson <gbenson@redhat.com>
505 * cleanups.h: Moved to...
506 * common/cleanups.h: New file.
507 * cleanups.c: Moved to...
508 * common/cleanups.c: New file. Include common-defs.h and
509 cleanups.h. Do not include defs.h.
510 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
511 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
512 (cleanups.o): New rule.
514 2014-08-29 Gary Benson <gbenson@redhat.com>
516 * common/errors.h (internal_warning): New declaration.
517 (internal_vwarning): Likewise.
518 * common/errors.c (internal_warning): New function.
519 * utils.h (internal_warning): Don't declare.
520 (internal_vwarning): Likewise.
521 * utils.c (internal_warning): Removed.
523 2014-08-29 Gary Benson <gbenson@redhat.com>
525 * main.c (captured_main): Use warning during startup.
526 Prefix startup warning messages with command name.
528 2014-08-29 Gary Benson <gbenson@redhat.com>
530 * main.c (captured_main): Handle usage errors with error.
532 2014-08-29 Gary Benson <gbenson@redhat.com>
534 * go32-nat.c (go32_create_inferior): Replace a fprintf/
535 exit pair with a call to error. Wrap the message with _().
537 2014-08-29 Gary Benson <gbenson@redhat.com>
539 * main.c (captured_main): Replace a fprintf/exit
540 pair with a call to error. Wrap the message with _().
542 2014-08-29 Gary Benson <gbenson@redhat.com>
544 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
545 pairs with calls to error. Wrap the message with _().
547 2014-08-29 Gary Benson <gbenson@redhat.com>
549 * utils.c (vwarning): Protect calls to target_terminal_ours
552 2014-08-29 Gary Benson <gbenson@redhat.com>
554 * exceptions.c (print_flush): Protect calls to
555 target_terminal_ours and wrap_here.
557 2014-08-29 Gary Benson <gbenson@redhat.com>
559 * utils.h (filtered_printing_initialized): New declaration.
560 * utils.c (abort_with_message): New function.
561 (internal_vproblem): Use abort_with_message for first level
562 recursive internal problems, and if gdb_stderr is not set up.
563 Protect calls to target_terminal_ours, begin_line and query.
565 2014-08-28 Doug Evans <dje@google.com>
567 * symtab.c (in_prologue): Move definition to better spot.
568 (skip_prologue_using_sal): Ditto.
570 2014-08-28 Doug Evans <dje@google.com>
572 * symtab.c (find_function_start_sal): Move definition to better spot.
574 2014-08-28 Yao Qi <yao@codesourcery.com>
576 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
577 found_stack_adjust in forward scan. Remove condition check
578 on found_stack_adjust which is always true. Indent the code.
580 2014-08-28 Yao Qi <yao@codesourcery.com>
582 * dwarf2read.c (dwarf_decode_lines): Update declaration.
583 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
584 (dwarf_decode_lines): Remove argument
585 want_line_info. Remove condition check on want_line_info.
588 2014-08-27 Doug Evans <dje@google.com>
590 * dwarf2read.c (dwarf_record_line): Fix typo.
592 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
594 * target.h (struct target_ops::to_terminal_save_ours): Remove
596 (target_terminal_save_ours): Remove macro.
597 * target-delegates.c: Regenerate.
598 * inf-child.c (inf_child_target): Don't set the nonexistent
599 field to_terminal_save_ours.
600 * inferior.h (child_terminal_save_ours): Remove declaration.
601 * terminal.h (gdb_save_tty_state): New declaration.
602 * inflow.c (child_terminal_save_ours): Rename to ...
603 (gdb_save_tty_state): ... this.
604 * tui/tui.c: Include terminal.h.
605 (tui_enable): Use gdb_save_tty_state instead of
606 target_terminal_save_ours.
607 (tui_disable): Likewise.
609 2014-08-25 Doug Evans <dje@google.com>
611 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
612 Pass NULL instead of 0 for context pointer.
614 2014-08-25 Yao Qi <yao@codesourcery.com>
616 * dwarf2read.c: Fix grammatical error.
618 2014-08-24 Yao Qi <yao@codesourcery.com>
620 * dwarf2read.c (scan_partial_symbols): Update comments.
621 Rename argument 'need_pc' with 'set_addrmap'.
622 (add_partial_namespace): Rename argument 'need_pc' with
624 (add_partial_module): Likewise.
625 (add_partial_subprogram): Likewise. Update comments.
626 (dwarf2_name): Fix typo.
628 2014-08-22 Doug Evans <dje@google.com>
631 * dwarf2read.c (dwarf_record_line_p): New function.
632 (dwarf_decode_lines_1): Ignore subsequent line number entries
633 for the same line if any entry had a non-zero discriminator.
635 2014-08-22 Doug Evans <dje@google.com>
637 * buildsym.h (record_line_ftype): New typedef.
638 (record_line): Use it.
639 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
640 (dwarf_decode_lines_1): Call them.
642 2014-08-22 Yao Qi <yao@codesourcery.com>
644 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
645 (ctf_end): Remove code.
647 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
649 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
650 (linux_make_corefile_notes): call update_thread_list, protected against
653 2014-08-21 Pedro Alves <palves@redhat.com>
655 * infcmd.c (attach_command): Remove comment.
657 2014-08-21 Bin Cheng <bin.cheng@arm.com>
659 * aarch64-linux-nat.c (dr_changed_t): Change the type from
660 unsigned LONGEST to ULONGEST.
662 2014-08-20 Pedro Alves <palves@redhat.com>
664 * Makefile.in (check-read1): New rule.
666 2014-08-20 Joel Brobecker <brobecker@adacore.com>
668 * value.c (value_from_contents_and_address): Strip resolved_type's
669 typedef layers before checking its TYPE_DATA_LOCATION.
671 2014-08-20 Pedro Alves <palves@redhat.com>
673 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
675 2014-08-20 Yao Qi <yao@codesourcery.com>
677 * amd64-tdep.c (amd64_classify): Add a blank line after the
678 example. Move "*/" to a new line.
679 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
680 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
681 * dwarf2read.c (psymtab_include_file_name): Likewise.
683 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
684 Pedro Alves <palves@redhat.com>
688 * ada-lang.c (coerce_unspec_val_to_type): Use
689 value_contents_copy_raw.
690 * ada-valprint.c (val_print_packed_array_elements): Adjust.
691 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
692 * cp-valprint.c (cp_print_value_fields): Let the common printing
693 code handle optimized out values.
694 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
695 * d-valprint.c (dynamic_array_type): Use
696 value_bits_any_optimized_out.
697 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
698 check_any_valid fields.
699 (check_pieced_value_bits): Delete and inline ...
700 (check_pieced_synthetic_pointer): ... here.
701 (check_pieced_value_validity): Delete.
702 (check_pieced_value_invalid): Delete.
703 (pieced_value_funcs): Remove check_validity and check_any_valid
705 (read_pieced_value): Use mark_value_bits_optimized_out.
706 (write_pieced_value): Switch to use
707 mark_value_bytes_optimized_out.
708 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
709 of assuming the whole value is optimized out.
710 * findvar.c (read_frame_register_value): Remove special handling
711 of optimized out registers.
712 (value_from_register): Use mark_value_bytes_optimized_out.
713 * frame-unwind.c (frame_unwind_got_optimized): Use
714 mark_value_bytes_optimized_out.
715 * jv-valprint.c (java_value_print): Adjust.
716 (java_print_value_fields): Let the common printing code handle
717 optimized out values.
718 * mips-tdep.c (mips_print_register): Remove special handling of
719 optimized out registers.
720 * opencl-lang.c (lval_func_check_validity): Delete.
721 (lval_func_check_any_valid): Delete.
722 (opencl_value_funcs): Remove check_validity and check_any_valid
724 * p-valprint.c (pascal_object_print_value_fields): Let the common
725 printing code handle optimized out values.
726 * stack.c (read_frame_arg): Remove special handling of optimized
727 out values. Fetch both VAL and ENTRYVAL before comparing
728 contents. Adjust to value_available_contents_eq rename.
729 * valprint.c (valprint_check_validity)
730 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
731 (val_print_array_elements): Adjust.
732 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
733 (value_bits_any_optimized_out): New function.
734 (value_entirely_covered_by_range_vector): New function, factored
735 out from value_entirely_unavailable.
736 (value_entirely_unavailable): Reimplement.
737 (value_entirely_optimized_out): New function.
738 (insert_into_bit_range_vector): New function, factored out from
739 mark_value_bits_unavailable.
740 (mark_value_bits_unavailable): Reimplement.
741 (struct ranges_and_idx): New struct.
742 (find_first_range_overlap_and_match): New function, factored out
743 from value_available_contents_bits_eq.
744 (value_available_contents_bits_eq): Rename to ...
745 (value_contents_bits_eq): ... this. Check both unavailable
746 contents and optimized out contents.
747 (value_available_contents_eq): Rename to ...
748 (value_contents_eq): ... this.
749 (allocate_value_lazy): Remove reference to the old optimized_out
751 (allocate_optimized_out_value): Use
752 mark_value_bytes_optimized_out.
753 (require_not_optimized_out): Adjust to check whether the
754 optimized_out vec is empty.
755 (ranges_copy_adjusted): New function, factored out from
756 value_contents_copy_raw.
757 (value_contents_copy_raw): Also copy the optimized out ranges.
758 Assert the destination ranges aren't optimized out.
759 (value_contents_copy): Update comment, remove call to
760 require_not_optimized_out.
761 (value_contents_equal): Adjust to check whether the optimized_out
763 (set_value_optimized_out, value_optimized_out_const): Delete.
764 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
766 (value_entirely_optimized_out, value_bits_valid): Delete.
767 (value_copy): Take a VEC copy of the 'optimized_out' field.
768 (value_primitive_field): Remove special handling of optimized out.
769 (value_fetch_lazy): Assert that lazy values have no unavailable
770 regions. Use value_bits_any_optimized_out. Remove some special
771 handling for optimized out values.
772 * value.h: Add intro comment about <optimized out> and
774 (struct lval_funcs): Remove check_validity and check_any_valid
776 (set_value_optimized_out, value_optimized_out_const): Remove.
777 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
779 (value_bits_any_optimized_out): New declaration.
780 (value_bits_valid): Delete declaration.
781 (value_available_contents_eq): Rename to ...
782 (value_contents_eq): ... this, and extend comments.
784 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
786 Fix -fsanitize=address on unreadable inferior strings.
787 * valprint.c (val_print_string): Fix access before BUFFER.
789 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
791 * target.c (target_struct_size): Remove.
792 (target_struct_allocsize): Remove.
793 (DEFAULT_ALLOCSIZE): Remove.
794 (target_ops_p): New typedef.
795 (DEF_VEC_P (target_ops_p)): New vector type.
796 (target_structs): Change type to VEC (target_ops_p).
797 (add_target_with_completer): Replace "push" code by VEC_safe_push.
798 (find_default_run_target): Rewrite for loop following changes to
801 2014-08-19 Joel Brobecker <brobecker@adacore.com>
803 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
804 Adjust code accordingly. Adjust function description comment.
806 2014-08-19 Yao Qi <yao@codesourcery.com>
808 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
811 2014-08-19 Alan Modra <amodra@gmail.com>
813 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
814 * config.in: Regenerate.
815 * configure: Regenerate.
817 2014-08-19 Tom Tromey <tromey@redhat.com>
818 Gary Benson <gbenson@redhat.com>
820 * common/common-debug.h: New file.
821 * common/common-debug.c: Likewise.
823 * Makefile.in (SFILES): Add common/common-debug.c.
824 (HFILES_NO_SRCDIR): Add common/common-debug.h.
825 (COMMON_OBS): Add common-debug.o and debug.o.
826 (common-debug.o): New rule.
827 * common/common-defs.h: Include common-debug.h.
828 * common/agent.c (debug_agent_printf): New function.
829 (DEBUG_AGENT): Redefine.
830 * nat/i386-dregs.c (debug_printf): Undefine.
832 2014-08-19 Gary Benson <gbenson@redhat.com>
834 * common/common-defs.h: Include print-utils.h.
835 * utils.h: Do not include print-utils.h.
837 2014-08-19 Tom Tromey <tromey@redhat.com>
838 Gary Benson <gbenson@redhat.com>
840 * common/common-types.h: New file.
841 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
842 * common/common-defs.h: Include common-types.h.
843 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
846 2014-08-19 Tom Tromey <tromey@redhat.com>
847 Gary Benson <gbenson@redhat.com>
849 * common/errors.h: New file.
850 * common/errors.c: Likewise.
851 * Makefile.in (SFILES): Add common/errors.c.
852 (HFILES_NO_SRCDIR): Add common/errors.h.
853 (COMMON_OBS): Add errors.o.
854 (errors.o): New rule.
855 * common/common-defs.h: Include errors.h.
856 * utils.h (perror_with_name, error, verror, warning, vwarning):
858 * common/common-utils.h: (malloc_failure, internal_error):
861 2014-08-19 Gary Benson <gbenson@redhat.com>
863 * utils.c (internal_vproblem): Always print the message.
865 2014-08-18 Doug Evans <dje@google.com>
867 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
869 2014-08-18 Joel Brobecker <brobecker@adacore.com>
871 * ada-typeprint.c (type_is_full_subrange_of_target_type):
872 Return 0 if TYPE is dynamic.
873 (print_range): Add handling of dynamic ranges.
875 2014-08-18 Keven Boell <keven.boell@intel.com>
876 Joel Brobecker <brobecker@adacore.com>
878 * gdbtypes.h (struct main_type): Add field "data_location".
879 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
880 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
881 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
882 a dynamic data location.
883 (resolve_dynamic_type): Add DW_AT_data_location handling.
884 (copy_recursive, copy_type): Copy the data_location information
886 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
887 * value.c (value_from_contents_and_address): Add
888 DW_AT_data_location handling.
890 2014-08-18 Keven Boell <keven.boell@intel.com>
891 Joel Brobecker <brobecker@adacore.com>
893 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
894 field "get_object_address".
895 * dwarf2expr.c (execute_stack_op): Add handling for
896 DW_OP_push_object_address.
897 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
898 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
899 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
900 (dwarf_expr_get_obj_addr): New function.
901 (dwarf_expr_ctx_funcs): Add get_object_address field.
902 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
903 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
904 (dwarf2_evaluate_property): Add parameter "address". Use it.
905 (needs_get_obj_addr): New function.
906 (needs_frame_ctx_funcs): Add get_object_address field.
907 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
908 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
909 (resolve_dynamic_array): Likewise.
911 2014-08-18 Joel Brobecker <brobecker@adacore.com>
913 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
914 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
915 fixed value for records and unions for which some GNAT encodings
918 2014-08-18 Joel Brobecker <brobecker@adacore.com>
920 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
921 rewrite to avoid "else if" and "else" constructs. Should be
924 2014-08-18 Joel Brobecker <brobecker@adacore.com>
926 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
929 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
932 * eval.c: Update all calls to find_overload_match.
933 * valarith.c: Likewise.
934 (value_user_defined_cpp_op, value_user_defined_op): New
935 argument NOSIDE. Update all callers.
936 * valops.c (find_overload_match): New argument NOSIDE.
937 * value.h (find_overload_match): Update signature.
939 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
941 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
942 'items' methods instead of 'iteritems' method on dictionaries.
944 2014-08-15 Doug Evans <dje@google.com>
946 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
949 2014-08-15 Doug Evans <dje@google.com>
951 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
953 2014-08-15 Doug Evans <dje@google.com>
955 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
957 2014-08-15 Doug Evans <dje@google.com>
959 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
962 2014-08-15 Eli Zaretskii <eliz@gnu.org>
964 * dcache.h: Include target.h, to avoid compile time warnings.
966 2014-08-15 Joel Brobecker <brobecker@adacore.com>
968 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
969 frame_info" partial declaration.
970 * gdbarch.h: Regenerate.
972 2014-08-15 Yao Qi <yao@codesourcery.com>
974 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
975 Add parameter 'decode_for_pst_p'. Callers update.
977 2014-08-13 Yao Qi <yao@codesourcery.com>
980 * configure.ac: Use local variable 'pos'.
981 * configure: Regenerated.
983 2014-08-11 Doug Evans <dje@google.com>
985 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
986 message, it is redundant with "Reading symbols from ..." message.
988 2014-08-10 Doug Evans <xdje42@gmail.com>
990 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
992 2014-08-09 Yao Qi <yao@codesourcery.com>
995 * remote.c (remote_xfer_partial): Remove dead code.
997 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
999 * ia64-linux-tdep.c: Include "regset.h".
1000 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1001 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1002 (ia64_linux_supply_fpregset): New function.
1003 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1004 (ia64_linux_regset_from_core_section): New function.
1005 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1008 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1010 * m68klinux-tdep.c: Include "regset.h".
1011 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1012 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1013 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1014 (m68k_linux_regset_from_core_section): New function.
1015 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1018 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1020 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1021 function. Move logic to...
1022 (tilegx_linux_regmap): ... this new register map.
1023 (tilegx_linux_regset): Refer to register map, replace supply
1024 method by regcache_supply_regset, and add collect method.
1025 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1026 TILEGX_FIRST_EASY_REGNUM.
1028 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1030 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1031 that calls regcache_supply_regset and handles the EPC register
1032 separately. Move main logic to...
1033 (score7_linux_gregmap): ... this new register map.
1034 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1035 (score7_linux_gregset): Refer to register map. Add collect method.
1036 (score7_linux_regset_from_core_section): Replace
1037 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1038 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1039 (struct regset): Delete unused forward declaraction.
1040 (struct pt_regs): Delete structure definition.
1041 (elf_gregset_t): Delete typedef.
1043 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1045 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1046 (nios2_core_regset): Add collect method.
1048 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1050 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1051 platform-independent and don't write to read-only input buffer.
1052 (m32r_linux_collect_gregset): New function.
1053 (m32r_linux_gregset): Add collect method.
1055 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1057 * hppa-linux-tdep.c (greg_map): Rename to...
1058 (hppa_linux_gregmap): ... this. Also convert to
1059 regcache_map_entry format.
1060 (hppa_linux_supply_regset): Delete function.
1061 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1062 (hppa_linux_fpregmap): ... this new register map.
1063 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1064 register map, replace supply method by regcache_supply_regset, and
1065 add collect method regcache_collect_regset.
1067 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1069 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1070 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1071 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1072 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1073 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1074 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1075 (frv_linux_supply_gregset): Replace main logic by call to
1076 regcache_supply_regset, but keep clearing gr32-gr63.
1077 (frv_linux_supply_fpregset): Delete function.
1078 (frv_linux_gregset): Refer to appropriate register map and add
1079 regcache_collect_regset as the collect method.
1080 (frv_linux_fpregset): Likewise. Also exchange the supply method
1081 by regcache_supply_regset.
1083 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1085 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1086 by call to alpha_supply_int_regs.
1087 (alpha_linux_collect_gregset): New function.
1088 (alpha_linux_supply_fpregset): Replace logic by call to
1089 alpha_supply_fp_regs.
1090 (alpha_linux_collect_fpregset): New function.
1091 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1093 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1095 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1096 by call to regcache_collect_regset.
1097 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1098 instead of aarch64_linux_supply_gregset/_fpregset.
1099 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1100 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1101 header file instead.
1102 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1103 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1104 functions. Move logic to ...
1105 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1107 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1108 refer to new register maps, replace *_regset_from_core by
1109 regcache_supply_regset, and also use regcache_collect_regset.
1110 * aarch64-linux-tdep.h: Include "regset.h".
1111 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1113 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1114 macros, moved from C source file.
1115 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1116 variable declarations.
1118 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1120 * s390-linux-nat.c: Include "regset.h".
1121 (regmap_gregset): Delete macro.
1122 (s390_64_regmap_gregset): New register map for
1123 regcache_supply/_collect_regset.
1124 (s390_64_gregset): New regset.
1125 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1126 (regmap_fpregset): Delete macro.
1127 (s390_native_supply, s390_native_collect): Delete functions.
1128 (supply_gregset, fill_gregset): Replace s390-specific regmap
1129 handling by a call to regcache_supply/_collect_regset.
1130 (supply_fpregset, fill_fpregset): Call regcache_supply/
1131 _collect_regset instead of s390_native_supply/_collect.
1132 (fetch_regset, store_regset): Likewise. Also change the last
1133 parameter to a regset instead of a regmap.
1134 (s390_linux_fetch_inferior_registers)
1135 (390_linux_store_inferior_registers): Adjust last parameter in
1136 calls to fetch_regset and store_regset.
1137 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1138 (s390_gregmap): ... this. Also make static const and convert to
1139 regcache_map_entry format.
1140 (s390x_regmap_gregset): Delete.
1141 (s390_regmap_fpregset): Rename to...
1142 (s390_fpregmap): ... this. Make static const and convert to
1143 regcache_map_entry format.
1144 (s390_regmap_upper, s390_regmap_last_break)
1145 (s390x_regmap_last_break, s390_regmap_system_call)
1146 (s390_regmap_tdb): Likewise.
1147 (s390_supply_regset, s390_collect_regset): Remove functions.
1148 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1150 (s390_gregset, s390_fpregset, s390_upper_regset)
1151 (s390_last_break_regset, s390x_last_break_regset)
1152 (s390_system_call_regset, s390_tdb_regset): Make global and
1153 replace s390_supply/_collect_regset by regcache_supply/
1155 (s390x_gregset): Delete.
1156 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1157 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1158 (s390_regmap_fpregset, s390_regmap_last_break)
1159 (s390x_regmap_last_break, s390_regmap_system_call)
1160 (s390_regmap_tdb): Delete global variable declarations.
1161 (s390_gregset, s390_fpregset, s390_last_break_regset)
1162 (s390x_last_break_regset, s390_system_call_regset)
1163 (s390_tdb_regset): New global variable declarations.
1165 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1167 * regcache.c: Include "regset.h".
1168 (regcache_transfer_regset): New local function.
1169 (regcache_supply_regset, regcache_collect_regset): New functions.
1170 * regcache.h (struct regcache_map_entry): New structure.
1171 (REGCACHE_MAP_SKIP): New enum value.
1172 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1174 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1176 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1177 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1178 (ppc_linux_collect_gregset ): Likewise.
1179 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1180 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1181 (ppc_collect_vrregset): Likewise.
1182 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1185 2014-08-07 Yao Qi <yao@codesourcery.com>
1187 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1188 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1189 * remote.c (remote_read_bytes): Likewise.
1191 2014-08-07 Yao Qi <yao@codesourcery.com>
1193 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1195 2014-08-07 Yao Qi <yao@codesourcery.com>
1198 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1199 TARGET_XFER_OK instead of 0.
1201 2014-08-07 Gary Benson <gbenson@redhat.com>
1203 * common/common-defs.h: Include errno.h.
1204 * defs.h: Do not include errno.h.
1205 * ada-typeprint.c: Likewise.
1206 * c-typeprint.c: Likewise.
1207 * core-regset.c: Likewise.
1208 * corefile.c: Likewise.
1209 * corelow.c: Likewise.
1210 * event-loop.c: Likewise.
1211 * f-typeprint.c: Likewise.
1212 * gnu-nat.c: Likewise.
1213 * go32-nat.c: Likewise.
1214 * i386gnu-nat.c: Likewise.
1215 * m2-typeprint.c: Likewise.
1216 * nat/linux-btrace.c: Likewise.
1217 * p-typeprint.c: Likewise.
1218 * procfs.c: Likewise.
1219 * remote-sim.c: Likewise.
1220 * rs6000-nat.c: Likewise.
1221 * target.c: Likewise.
1222 * typeprint.c: Likewise.
1223 * ui-file.c: Likewise.
1224 * valops.c: Likewise.
1225 * valprint.c: Likewise.
1227 2014-08-07 Gary Benson <gbenson@redhat.com>
1229 * common/common-defs.h: Include string.h.
1230 * aarch64-tdep.c: Do not include string.h.
1231 * ada-exp.y: Likewise.
1232 * ada-lang.c: Likewise.
1233 * ada-lex.l: Likewise.
1234 * ada-typeprint.c: Likewise.
1235 * ada-valprint.c: Likewise.
1236 * aix-thread.c: Likewise.
1237 * alpha-linux-tdep.c: Likewise.
1238 * alpha-mdebug-tdep.c: Likewise.
1239 * alpha-nat.c: Likewise.
1240 * alpha-osf1-tdep.c: Likewise.
1241 * alpha-tdep.c: Likewise.
1242 * alphanbsd-tdep.c: Likewise.
1243 * amd64-dicos-tdep.c: Likewise.
1244 * amd64-linux-tdep.c: Likewise.
1245 * amd64-nat.c: Likewise.
1246 * amd64-sol2-tdep.c: Likewise.
1247 * amd64fbsd-tdep.c: Likewise.
1248 * amd64obsd-tdep.c: Likewise.
1249 * arch-utils.c: Likewise.
1250 * arm-linux-nat.c: Likewise.
1251 * arm-linux-tdep.c: Likewise.
1252 * arm-tdep.c: Likewise.
1253 * arm-wince-tdep.c: Likewise.
1254 * armbsd-tdep.c: Likewise.
1255 * armnbsd-nat.c: Likewise.
1256 * armnbsd-tdep.c: Likewise.
1257 * armobsd-tdep.c: Likewise.
1258 * avr-tdep.c: Likewise.
1259 * ax-gdb.c: Likewise.
1260 * ax-general.c: Likewise.
1261 * bcache.c: Likewise.
1262 * bfin-tdep.c: Likewise.
1263 * breakpoint.c: Likewise.
1264 * build-id.c: Likewise.
1265 * buildsym.c: Likewise.
1266 * c-exp.y: Likewise.
1267 * c-lang.c: Likewise.
1268 * c-typeprint.c: Likewise.
1269 * c-valprint.c: Likewise.
1270 * charset.c: Likewise.
1271 * cli-out.c: Likewise.
1272 * cli/cli-cmds.c: Likewise.
1273 * cli/cli-decode.c: Likewise.
1274 * cli/cli-dump.c: Likewise.
1275 * cli/cli-interp.c: Likewise.
1276 * cli/cli-logging.c: Likewise.
1277 * cli/cli-script.c: Likewise.
1278 * cli/cli-setshow.c: Likewise.
1279 * cli/cli-utils.c: Likewise.
1280 * coffread.c: Likewise.
1281 * common/agent.c: Likewise.
1282 * common/buffer.c: Likewise.
1283 * common/buffer.h: Likewise.
1284 * common/common-utils.c: Likewise.
1285 * common/filestuff.c: Likewise.
1286 * common/filestuff.c: Likewise.
1287 * common/format.c: Likewise.
1288 * common/print-utils.c: Likewise.
1289 * common/rsp-low.c: Likewise.
1290 * common/signals.c: Likewise.
1291 * common/vec.h: Likewise.
1292 * common/xml-utils.c: Likewise.
1293 * core-regset.c: Likewise.
1294 * corefile.c: Likewise.
1295 * corelow.c: Likewise.
1296 * cp-abi.c: Likewise.
1297 * cp-name-parser.y: Likewise.
1298 * cp-support.c: Likewise.
1299 * cp-valprint.c: Likewise.
1300 * cris-tdep.c: Likewise.
1301 * d-exp.y: Likewise.
1302 * darwin-nat.c: Likewise.
1303 * dbxread.c: Likewise.
1304 * dcache.c: Likewise.
1305 * demangle.c: Likewise.
1306 * dicos-tdep.c: Likewise.
1307 * disasm.c: Likewise.
1308 * doublest.c: Likewise.
1309 * dsrec.c: Likewise.
1310 * dummy-frame.c: Likewise.
1311 * dwarf2-frame.c: Likewise.
1312 * dwarf2loc.c: Likewise.
1313 * dwarf2read.c: Likewise.
1314 * elfread.c: Likewise.
1315 * environ.c: Likewise.
1317 * event-loop.c: Likewise.
1318 * exceptions.c: Likewise.
1320 * expprint.c: Likewise.
1321 * f-exp.y: Likewise.
1322 * f-lang.c: Likewise.
1323 * f-typeprint.c: Likewise.
1324 * f-valprint.c: Likewise.
1325 * fbsd-nat.c: Likewise.
1326 * findcmd.c: Likewise.
1327 * findvar.c: Likewise.
1328 * fork-child.c: Likewise.
1329 * frame.c: Likewise.
1330 * frv-linux-tdep.c: Likewise.
1331 * frv-tdep.c: Likewise.
1333 * gdb_bfd.c: Likewise.
1334 * gdbarch.c: Likewise.
1335 * gdbarch.sh: Likewise.
1336 * gdbtypes.c: Likewise.
1337 * gnu-nat.c: Likewise.
1338 * gnu-v2-abi.c: Likewise.
1339 * gnu-v3-abi.c: Likewise.
1340 * go-exp.y: Likewise.
1341 * go-lang.c: Likewise.
1342 * go32-nat.c: Likewise.
1343 * guile/guile.c: Likewise.
1344 * guile/scm-auto-load.c: Likewise.
1345 * hppa-hpux-tdep.c: Likewise.
1346 * hppa-linux-nat.c: Likewise.
1347 * hppanbsd-tdep.c: Likewise.
1348 * hppaobsd-tdep.c: Likewise.
1349 * i386-cygwin-tdep.c: Likewise.
1350 * i386-dicos-tdep.c: Likewise.
1351 * i386-linux-tdep.c: Likewise.
1352 * i386-nto-tdep.c: Likewise.
1353 * i386-sol2-tdep.c: Likewise.
1354 * i386-tdep.c: Likewise.
1355 * i386bsd-tdep.c: Likewise.
1356 * i386gnu-nat.c: Likewise.
1357 * i386nbsd-tdep.c: Likewise.
1358 * i386obsd-tdep.c: Likewise.
1359 * i387-tdep.c: Likewise.
1360 * ia64-libunwind-tdep.c: Likewise.
1361 * ia64-linux-nat.c: Likewise.
1362 * inf-child.c: Likewise.
1363 * inf-ptrace.c: Likewise.
1364 * inf-ttrace.c: Likewise.
1365 * infcall.c: Likewise.
1366 * infcmd.c: Likewise.
1367 * inflow.c: Likewise.
1368 * infrun.c: Likewise.
1369 * interps.c: Likewise.
1370 * iq2000-tdep.c: Likewise.
1371 * irix5-nat.c: Likewise.
1372 * jv-exp.y: Likewise.
1373 * jv-lang.c: Likewise.
1374 * jv-typeprint.c: Likewise.
1375 * jv-valprint.c: Likewise.
1376 * language.c: Likewise.
1377 * linux-fork.c: Likewise.
1378 * linux-nat.c: Likewise.
1379 * lm32-tdep.c: Likewise.
1380 * m2-exp.y: Likewise.
1381 * m2-typeprint.c: Likewise.
1382 * m32c-tdep.c: Likewise.
1383 * m32r-linux-nat.c: Likewise.
1384 * m32r-linux-tdep.c: Likewise.
1385 * m32r-rom.c: Likewise.
1386 * m32r-tdep.c: Likewise.
1387 * m68hc11-tdep.c: Likewise.
1388 * m68k-tdep.c: Likewise.
1389 * m68kbsd-tdep.c: Likewise.
1390 * m68klinux-nat.c: Likewise.
1391 * m68klinux-tdep.c: Likewise.
1392 * m88k-tdep.c: Likewise.
1393 * machoread.c: Likewise.
1394 * macrocmd.c: Likewise.
1396 * mdebugread.c: Likewise.
1397 * mem-break.c: Likewise.
1398 * memattr.c: Likewise.
1399 * memory-map.c: Likewise.
1400 * mep-tdep.c: Likewise.
1401 * mi/mi-cmd-break.c: Likewise.
1402 * mi/mi-cmd-disas.c: Likewise.
1403 * mi/mi-cmd-env.c: Likewise.
1404 * mi/mi-cmd-stack.c: Likewise.
1405 * mi/mi-cmd-var.c: Likewise.
1406 * mi/mi-cmds.c: Likewise.
1407 * mi/mi-console.c: Likewise.
1408 * mi/mi-getopt.c: Likewise.
1409 * mi/mi-interp.c: Likewise.
1410 * mi/mi-main.c: Likewise.
1411 * mi/mi-parse.c: Likewise.
1412 * microblaze-rom.c: Likewise.
1413 * microblaze-tdep.c: Likewise.
1414 * mingw-hdep.c: Likewise.
1415 * minidebug.c: Likewise.
1416 * minsyms.c: Likewise.
1417 * mips-irix-tdep.c: Likewise.
1418 * mips-linux-tdep.c: Likewise.
1419 * mips-tdep.c: Likewise.
1420 * mips64obsd-tdep.c: Likewise.
1421 * mipsnbsd-tdep.c: Likewise.
1422 * mipsread.c: Likewise.
1423 * mn10300-linux-tdep.c: Likewise.
1424 * mn10300-tdep.c: Likewise.
1425 * monitor.c: Likewise.
1426 * moxie-tdep.c: Likewise.
1427 * mt-tdep.c: Likewise.
1428 * nat/linux-btrace.c: Likewise.
1429 * nat/linux-osdata.c: Likewise.
1430 * nat/linux-procfs.c: Likewise.
1431 * nat/linux-ptrace.c: Likewise.
1432 * nat/linux-waitpid.c: Likewise.
1433 * nbsd-tdep.c: Likewise.
1434 * nios2-linux-tdep.c: Likewise.
1435 * nto-procfs.c: Likewise.
1436 * nto-tdep.c: Likewise.
1437 * objc-lang.c: Likewise.
1438 * objfiles.c: Likewise.
1439 * opencl-lang.c: Likewise.
1440 * osabi.c: Likewise.
1441 * osdata.c: Likewise.
1442 * p-exp.y: Likewise.
1443 * p-lang.c: Likewise.
1444 * p-typeprint.c: Likewise.
1445 * parse.c: Likewise.
1446 * posix-hdep.c: Likewise.
1447 * ppc-linux-nat.c: Likewise.
1448 * ppc-sysv-tdep.c: Likewise.
1449 * ppcfbsd-tdep.c: Likewise.
1450 * ppcnbsd-tdep.c: Likewise.
1451 * ppcobsd-tdep.c: Likewise.
1452 * printcmd.c: Likewise.
1453 * procfs.c: Likewise.
1454 * prologue-value.c: Likewise.
1455 * python/py-auto-load.c: Likewise.
1456 * python/py-gdb-readline.c: Likewise.
1457 * ravenscar-thread.c: Likewise.
1458 * regcache.c: Likewise.
1459 * registry.c: Likewise.
1460 * remote-fileio.c: Likewise.
1461 * remote-m32r-sdi.c: Likewise.
1462 * remote-mips.c: Likewise.
1463 * remote-notif.c: Likewise.
1464 * remote-sim.c: Likewise.
1465 * remote.c: Likewise.
1466 * reverse.c: Likewise.
1467 * rs6000-aix-tdep.c: Likewise.
1468 * ser-base.c: Likewise.
1469 * ser-go32.c: Likewise.
1470 * ser-mingw.c: Likewise.
1471 * ser-pipe.c: Likewise.
1472 * ser-tcp.c: Likewise.
1473 * ser-unix.c: Likewise.
1474 * serial.c: Likewise.
1475 * sh-tdep.c: Likewise.
1476 * sh64-tdep.c: Likewise.
1477 * shnbsd-tdep.c: Likewise.
1479 * sol-thread.c: Likewise.
1480 * solib-dsbt.c: Likewise.
1481 * solib-frv.c: Likewise.
1482 * solib-osf.c: Likewise.
1483 * solib-som.c: Likewise.
1484 * solib-spu.c: Likewise.
1485 * solib-target.c: Likewise.
1486 * solib.c: Likewise.
1487 * somread.c: Likewise.
1488 * source.c: Likewise.
1489 * sparc-nat.c: Likewise.
1490 * sparc-sol2-tdep.c: Likewise.
1491 * sparc-tdep.c: Likewise.
1492 * sparc64-tdep.c: Likewise.
1493 * sparc64fbsd-tdep.c: Likewise.
1494 * sparc64nbsd-tdep.c: Likewise.
1495 * sparcnbsd-tdep.c: Likewise.
1496 * spu-linux-nat.c: Likewise.
1497 * spu-multiarch.c: Likewise.
1498 * spu-tdep.c: Likewise.
1499 * stabsread.c: Likewise.
1500 * stack.c: Likewise.
1501 * std-regs.c: Likewise.
1502 * symfile.c: Likewise.
1503 * symmisc.c: Likewise.
1504 * symtab.c: Likewise.
1505 * target.c: Likewise.
1506 * thread.c: Likewise.
1507 * tilegx-linux-nat.c: Likewise.
1508 * tilegx-tdep.c: Likewise.
1510 * tracepoint.c: Likewise.
1511 * tui/tui-command.c: Likewise.
1512 * tui/tui-data.c: Likewise.
1513 * tui/tui-disasm.c: Likewise.
1514 * tui/tui-file.c: Likewise.
1515 * tui/tui-layout.c: Likewise.
1516 * tui/tui-out.c: Likewise.
1517 * tui/tui-regs.c: Likewise.
1518 * tui/tui-source.c: Likewise.
1519 * tui/tui-stack.c: Likewise.
1520 * tui/tui-win.c: Likewise.
1521 * tui/tui-windata.c: Likewise.
1522 * tui/tui-winsource.c: Likewise.
1523 * typeprint.c: Likewise.
1524 * ui-file.c: Likewise.
1525 * ui-out.c: Likewise.
1526 * user-regs.c: Likewise.
1527 * utils.c: Likewise.
1528 * v850-tdep.c: Likewise.
1529 * valarith.c: Likewise.
1530 * valops.c: Likewise.
1531 * valprint.c: Likewise.
1532 * value.c: Likewise.
1533 * varobj.c: Likewise.
1534 * vax-tdep.c: Likewise.
1535 * vaxnbsd-tdep.c: Likewise.
1536 * vaxobsd-tdep.c: Likewise.
1537 * windows-nat.c: Likewise.
1538 * xcoffread.c: Likewise.
1539 * xml-support.c: Likewise.
1540 * xstormy16-tdep.c: Likewise.
1541 * xtensa-linux-nat.c: Likewise.
1543 2014-08-07 Gary Benson <gbenson@redhat.com>
1545 * common/common-defs.h: Include gdb_assert.h.
1546 * aarch64-tdep.c: Do not include gdb_assert.h.
1547 * addrmap.c: Likewise.
1548 * aix-thread.c: Likewise.
1549 * alpha-linux-tdep.c: Likewise.
1550 * alpha-mdebug-tdep.c: Likewise.
1551 * alphanbsd-tdep.c: Likewise.
1552 * amd64-nat.c: Likewise.
1553 * amd64-tdep.c: Likewise.
1554 * amd64bsd-nat.c: Likewise.
1555 * amd64fbsd-nat.c: Likewise.
1556 * amd64fbsd-tdep.c: Likewise.
1557 * amd64nbsd-nat.c: Likewise.
1558 * amd64nbsd-tdep.c: Likewise.
1559 * amd64obsd-nat.c: Likewise.
1560 * amd64obsd-tdep.c: Likewise.
1561 * arch-utils.c: Likewise.
1562 * arm-tdep.c: Likewise.
1563 * armbsd-tdep.c: Likewise.
1565 * bcache.c: Likewise.
1566 * bfin-tdep.c: Likewise.
1567 * blockframe.c: Likewise.
1568 * breakpoint.c: Likewise.
1569 * bsd-kvm.c: Likewise.
1570 * bsd-uthread.c: Likewise.
1571 * buildsym.c: Likewise.
1572 * c-exp.y: Likewise.
1573 * c-lang.c: Likewise.
1574 * charset.c: Likewise.
1575 * cleanups.c: Likewise.
1576 * cli-out.c: Likewise.
1577 * cli/cli-decode.c: Likewise.
1578 * cli/cli-dump.c: Likewise.
1579 * cli/cli-logging.c: Likewise.
1580 * cli/cli-script.c: Likewise.
1581 * cli/cli-utils.c: Likewise.
1582 * coffread.c: Likewise.
1583 * common/common-utils.c: Likewise.
1584 * common/queue.h: Likewise.
1585 * common/signals.c: Likewise.
1586 * common/vec.h: Likewise.
1587 * complaints.c: Likewise.
1588 * completer.c: Likewise.
1589 * corelow.c: Likewise.
1590 * cp-abi.c: Likewise.
1591 * cp-name-parser.y: Likewise.
1592 * cp-namespace.c: Likewise.
1593 * cp-support.c: Likewise.
1594 * cris-tdep.c: Likewise.
1595 * dbxread.c: Likewise.
1596 * dictionary.c: Likewise.
1597 * doublest.c: Likewise.
1598 * dsrec.c: Likewise.
1599 * dummy-frame.c: Likewise.
1600 * dwarf2-frame-tailcall.c: Likewise.
1601 * dwarf2-frame.c: Likewise.
1602 * dwarf2expr.c: Likewise.
1603 * dwarf2loc.c: Likewise.
1604 * dwarf2read.c: Likewise.
1606 * event-loop.c: Likewise.
1607 * exceptions.c: Likewise.
1608 * expprint.c: Likewise.
1609 * f-valprint.c: Likewise.
1610 * fbsd-nat.c: Likewise.
1611 * findvar.c: Likewise.
1612 * frame-unwind.c: Likewise.
1613 * frame.c: Likewise.
1614 * frv-tdep.c: Likewise.
1615 * gcore.c: Likewise.
1616 * gdb-dlfcn.c: Likewise.
1617 * gdb_bfd.c: Likewise.
1618 * gdbarch.c: Likewise.
1619 * gdbarch.sh: Likewise.
1620 * gdbtypes.c: Likewise.
1621 * gnu-nat.c: Likewise.
1622 * gnu-v3-abi.c: Likewise.
1623 * go-lang.c: Likewise.
1624 * guile/scm-exception.c: Likewise.
1625 * guile/scm-gsmob.c: Likewise.
1626 * guile/scm-lazy-string.c: Likewise.
1627 * guile/scm-math.c: Likewise.
1628 * guile/scm-pretty-print.c: Likewise.
1629 * guile/scm-safe-call.c: Likewise.
1630 * guile/scm-utils.c: Likewise.
1631 * guile/scm-value.c: Likewise.
1632 * h8300-tdep.c: Likewise.
1633 * hppa-hpux-nat.c: Likewise.
1634 * hppa-tdep.c: Likewise.
1635 * hppanbsd-tdep.c: Likewise.
1636 * hppaobsd-tdep.c: Likewise.
1637 * i386-darwin-nat.c: Likewise.
1638 * i386-darwin-tdep.c: Likewise.
1639 * i386-nto-tdep.c: Likewise.
1640 * i386-tdep.c: Likewise.
1641 * i386bsd-nat.c: Likewise.
1642 * i386fbsd-tdep.c: Likewise.
1643 * i386gnu-nat.c: Likewise.
1644 * i386nbsd-tdep.c: Likewise.
1645 * i386obsd-tdep.c: Likewise.
1646 * i387-tdep.c: Likewise.
1647 * ia64-libunwind-tdep.c: Likewise.
1648 * ia64-tdep.c: Likewise.
1649 * inf-ptrace.c: Likewise.
1650 * inf-ttrace.c: Likewise.
1651 * infcall.c: Likewise.
1652 * infcmd.c: Likewise.
1653 * infrun.c: Likewise.
1654 * inline-frame.c: Likewise.
1655 * interps.c: Likewise.
1656 * jv-lang.c: Likewise.
1657 * jv-typeprint.c: Likewise.
1658 * linux-fork.c: Likewise.
1659 * linux-nat.c: Likewise.
1660 * linux-thread-db.c: Likewise.
1661 * m32c-tdep.c: Likewise.
1662 * m32r-linux-nat.c: Likewise.
1663 * m32r-tdep.c: Likewise.
1664 * m68k-tdep.c: Likewise.
1665 * m68kbsd-nat.c: Likewise.
1666 * m68kbsd-tdep.c: Likewise.
1667 * m88k-tdep.c: Likewise.
1668 * machoread.c: Likewise.
1669 * macroexp.c: Likewise.
1670 * macrotab.c: Likewise.
1671 * maint.c: Likewise.
1672 * mdebugread.c: Likewise.
1673 * memory-map.c: Likewise.
1674 * mep-tdep.c: Likewise.
1675 * mi/mi-common.c: Likewise.
1676 * microblaze-tdep.c: Likewise.
1677 * mingw-hdep.c: Likewise.
1678 * mips-linux-nat.c: Likewise.
1679 * mips-linux-tdep.c: Likewise.
1680 * mips-tdep.c: Likewise.
1681 * mips64obsd-tdep.c: Likewise.
1682 * mipsnbsd-tdep.c: Likewise.
1683 * mn10300-linux-tdep.c: Likewise.
1684 * mn10300-tdep.c: Likewise.
1685 * moxie-tdep.c: Likewise.
1686 * mt-tdep.c: Likewise.
1687 * nat/linux-btrace.c: Likewise.
1688 * nat/linux-osdata.c: Likewise.
1689 * nat/linux-ptrace.c: Likewise.
1690 * nat/mips-linux-watch.c: Likewise.
1691 * nios2-linux-tdep.c: Likewise.
1692 * nios2-tdep.c: Likewise.
1693 * objc-lang.c: Likewise.
1694 * objfiles.c: Likewise.
1695 * obsd-nat.c: Likewise.
1696 * opencl-lang.c: Likewise.
1697 * osabi.c: Likewise.
1698 * parse.c: Likewise.
1699 * ppc-linux-nat.c: Likewise.
1700 * ppc-sysv-tdep.c: Likewise.
1701 * ppcfbsd-nat.c: Likewise.
1702 * ppcfbsd-tdep.c: Likewise.
1703 * ppcnbsd-nat.c: Likewise.
1704 * ppcnbsd-tdep.c: Likewise.
1705 * ppcobsd-nat.c: Likewise.
1706 * ppcobsd-tdep.c: Likewise.
1707 * printcmd.c: Likewise.
1708 * procfs.c: Likewise.
1709 * prologue-value.c: Likewise.
1710 * psymtab.c: Likewise.
1711 * python/py-lazy-string.c: Likewise.
1712 * python/py-value.c: Likewise.
1713 * regcache.c: Likewise.
1714 * reggroups.c: Likewise.
1715 * registry.c: Likewise.
1716 * remote-sim.c: Likewise.
1717 * remote.c: Likewise.
1718 * rs6000-aix-tdep.c: Likewise.
1719 * rs6000-tdep.c: Likewise.
1720 * s390-linux-tdep.c: Likewise.
1721 * score-tdep.c: Likewise.
1722 * ser-base.c: Likewise.
1723 * ser-mingw.c: Likewise.
1724 * sh-tdep.c: Likewise.
1725 * sh64-tdep.c: Likewise.
1726 * solib-darwin.c: Likewise.
1727 * solib-spu.c: Likewise.
1728 * solib-svr4.c: Likewise.
1729 * source.c: Likewise.
1730 * sparc-nat.c: Likewise.
1731 * sparc-sol2-tdep.c: Likewise.
1732 * sparc-tdep.c: Likewise.
1733 * sparc64-sol2-tdep.c: Likewise.
1734 * sparc64-tdep.c: Likewise.
1735 * sparc64fbsd-tdep.c: Likewise.
1736 * sparc64nbsd-tdep.c: Likewise.
1737 * sparc64obsd-tdep.c: Likewise.
1738 * sparcnbsd-tdep.c: Likewise.
1739 * sparcobsd-tdep.c: Likewise.
1740 * spu-multiarch.c: Likewise.
1741 * spu-tdep.c: Likewise.
1742 * stabsread.c: Likewise.
1743 * stack.c: Likewise.
1744 * symfile.c: Likewise.
1745 * symtab.c: Likewise.
1746 * target-descriptions.c: Likewise.
1747 * target-memory.c: Likewise.
1748 * target.c: Likewise.
1749 * tic6x-linux-tdep.c: Likewise.
1750 * tic6x-tdep.c: Likewise.
1751 * tilegx-linux-nat.c: Likewise.
1752 * tilegx-tdep.c: Likewise.
1754 * tramp-frame.c: Likewise.
1755 * tui/tui-out.c: Likewise.
1756 * tui/tui-winsource.c: Likewise.
1757 * ui-out.c: Likewise.
1758 * user-regs.c: Likewise.
1759 * utils.c: Likewise.
1760 * v850-tdep.c: Likewise.
1761 * valops.c: Likewise.
1762 * value.c: Likewise.
1763 * varobj.c: Likewise.
1764 * vax-nat.c: Likewise.
1765 * xml-syscall.c: Likewise.
1766 * xml-tdesc.c: Likewise.
1767 * xstormy16-tdep.c: Likewise.
1768 * xtensa-linux-nat.c: Likewise.
1769 * xtensa-tdep.c: Likewise.
1771 2014-08-07 Gary Benson <gbenson@redhat.com>
1773 * common/common-defs.h: Include common-utils.h.
1774 * defs.h: Do not include common-utils.h.
1775 * common/gdb_assert.h: Likewise.
1776 * darwin-nat.h: Likewise.
1777 * nat/linux-btrace.c: Likewise.
1778 * target/waitstatus.h: Likewise.
1780 2014-08-07 Gary Benson <gbenson@redhat.com>
1782 * common/common-defs.h: Include ptid.h.
1783 * defs.h: Do not include ptid.h.
1784 * inferior.h: Likewise.
1785 * infrun.h: Likewise.
1786 * nat/linux-btrace.h: Likewise.
1787 * nat/linux-osdata.h: Likewise.
1788 * target/waitstatus.h: Likewise.
1790 2014-08-07 Gary Benson <gbenson@redhat.com>
1792 * common/common-defs.h: Include gdb_locale.h.
1793 * defs.h: Do not include gdb_locale.h.
1795 2014-08-07 Gary Benson <gbenson@redhat.com>
1797 * common/common-defs.h: Include gdb/signals.h.
1798 * defs.h: Do not include gdb/signals.h.
1800 2014-08-07 Gary Benson <gbenson@redhat.com>
1802 * common/common-defs.h: Include pathmax.h.
1803 * defs.h: Do not include pathmax.h.
1805 2014-08-07 Gary Benson <gbenson@redhat.com>
1807 * common/common-defs.h: Include libiberty.h.
1808 * defs.h: Do not include libiberty.h.
1809 * common/queue.h: Likewise.
1810 * cp-name-parser.y: Likewise.
1811 * mi/mi-cmd-catch.c: Likewise.
1812 * python/python.c: Likewise.
1814 2014-08-07 Gary Benson <gbenson@redhat.com>
1816 * common/common-defs.h: Include ansidecl.h.
1817 * defs.h: Do not include ansidecl.h.
1818 * common/buffer.h: Likewise.
1819 * common/common-utils.h: Likewise.
1821 2014-08-07 Gary Benson <gbenson@redhat.com>
1823 * common/common-defs.h: Include stddef.h.
1824 * defs.h: Do not include stddef.h.
1825 * common/common-utils.h: Likewise.
1826 * amd64fbsd-nat.c: Likewise.
1827 * bcache.c: Likewise.
1828 * charset.c: Likewise.
1829 * common/buffer.h: Likewise.
1830 * common/vec.h: Likewise.
1831 * i386bsd-nat.c: Likewise.
1832 * nat/linux-btrace.h: Likewise.
1833 * ppcfbsd-nat.c: Likewise.
1834 * ppcnbsd-tdep.h: Likewise.
1835 * ppcobsd-nat.c: Likewise.
1836 * ppcobsd-tdep.h: Likewise.
1837 * python/py-gdb-readline.c: Likewise.
1839 2014-08-07 Gary Benson <gbenson@redhat.com>
1841 * common/common-defs.h: Include stdarg.h.
1842 * defs.h: Do not include stdarg.h.
1843 * ada-lang.c: Likewise.
1844 * common/common-utils.h: Likewise.
1845 * guile/scm-string.c: Likewise.
1846 * guile/scm-utils.c: Likewise.
1847 * m32c-tdep.c: Likewise.
1849 2014-08-07 Gary Benson <gbenson@redhat.com>
1851 * common/common-defs.h: Include stdlib.h.
1852 * defs.h: Do not include stdlib.h.
1853 * addrmap.c: Likewise.
1854 * bcache.c: Likewise.
1855 * common/buffer.c: Likewise.
1856 * common/common-utils.c: Likewise.
1857 * cp-name-parser.y: Likewise.
1858 * go32-nat.c: Likewise.
1859 * mn10300-linux-tdep.c: Likewise.
1860 * nat/linux-osdata.c: Likewise.
1861 * tui/tui.c: Likewise.
1862 * windows-nat.c: Likewise.
1864 2014-08-07 Gary Benson <gbenson@redhat.com>
1866 * common/common-defs.h: Include stdio.h.
1867 * defs.h: Do not include stdio.h.
1868 * ada-lang.c: Likewise.
1869 * common/buffer.c: Likewise.
1870 * common/common-utils.c: Likewise.
1871 * cp-name-parser.y: Likewise.
1872 * gnu-nat.c: Likewise.
1873 * go32-nat.c: Likewise.
1874 * i386gnu-nat.c: Likewise.
1875 * proc-api.c: Likewise.
1876 * proc-events.c: Likewise.
1877 * proc-flags.c: Likewise.
1878 * proc-why.c: Likewise.
1879 * python/python-internal.h: Likewise.
1880 * target-memory.c: Likewise.
1881 * tui/tui-io.c: Likewise.
1882 * tui/tui.c: Likewise.
1884 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1886 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1887 (scan_dyntag_auxv): Same.
1889 2014-08-06 Yao Qi <yao@codesourcery.com>
1891 * amd64-linux-nat.c: Remove duplicated include
1893 * i386-linux-nat.c: Likewise.
1895 2014-08-06 Yao Qi <yao@codesourcery.com>
1897 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1898 operand" with "Special opcode" in comments.
1900 2014-08-05 Gary Benson <gbenson@redhat.com>
1902 * interps.c (initialize_interps): Remove prototype.
1903 (interpreter_initialized): Remove static global.
1904 (interp_add): Do not call initialize_interps.
1905 (initialize_interps): Remove function.
1907 2014-08-05 Gary Benson <gbenson@redhat.com>
1909 * utils.c (vwarning): Remove spurious va_end.
1911 2014-08-05 Alan Modra <amodra@gmail.com>
1913 * charset.c (convert_between_encodings): Cast result of obstack_base.
1914 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1915 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1916 (read_unwind_info): Use size_t for some locals.
1917 * jit.c (finalize_symtab): Likewise.
1918 * utils.c (hashtab_obstack_allocate): Likewise.
1919 * symmisc.c (print_objfile_statistics): Update format strings.
1921 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1923 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1924 (Changes in GDB 7.8): ... here.
1926 2014-08-04 Tom Tromey <tromey@redhat.com>
1928 * target.c (set_targetdebug): New function.
1929 (initialize_targets): Pass set_targetdebug when creating "set
1932 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1934 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1935 if detecting a variable-sized field that is not the last field.
1936 Fix struct type length computation.
1938 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1940 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1943 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1945 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1946 Remove "+ 8" offset in computation of CHAIN_VMA.
1948 2014-07-31 Doug Evans <dje@google.com>
1950 * inflow.c (child_terminal_inferior): Add comment.
1951 (child_terminal_ours_for_output): Add comment.
1952 (child_terminal_ours): Add comment.
1953 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1954 (linux_nat_terminal_ours): Add comment.
1956 2014-07-31 Gary Benson <gbenson@redhat.com>
1958 * common/btrace-common.h: Do not include defs.h or server.h.
1959 * nat/mips-linux-watch.h: Likewise.
1960 * gdb-dlfcn.h: Do not include defs.h.
1961 * tracefile.h: Likewise.
1963 2014-07-30 Roland McGrath <mcgrathr@google.com>
1965 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1967 2014-07-30 Tom Tromey <tromey@redhat.com>
1969 * bsd-kvm.c (bsd_kvm_open): Constify.
1970 * corelow.c (core_open): Constify.
1971 * ctf.c (ctf_open): Constify.
1972 * dbug-rom.c (dbug_open): Constify.
1973 * exec.c (exec_open): Constify.
1974 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1975 * microblaze-rom.c (picobug_open): Constify.
1976 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1978 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1979 * record-btrace.c (record_btrace_open): Constify.
1980 * record-full.c (record_full_core_open_1, record_full_open_1)
1981 (record_full_open): Constify.
1982 * remote-m32r-sdi.c (m32r_open): Constify.
1983 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1984 (rockhopper_open, lsi_open): Constify.
1985 * remote-sim.c (gdbsim_open): Constify.
1986 * remote.c (remote_open, extended_remote_open, remote_open_1):
1988 * target.h (struct target_ops) <to_open>: Make "arg" const.
1989 * tracefile-tfile.c (tfile_open): Constify.
1991 2014-07-30 Tom Tromey <tromey@redhat.com>
1993 * breakpoint.c (map_breakpoint_numbers): Update.
1994 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1995 (get_number_const): New function.
1996 (get_number): Rewrite using get_number_const.
1997 (init_number_or_range): Make "string" const.
1998 (number_is_in_list): Make "list" const.
1999 * cli/cli-utils.h (get_number_const): Declare.
2000 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2001 (init_number_or_range, number_is_in_list): Update.
2002 * printcmd.c (map_display_numbers): Update.
2003 * value.c (value_from_history_ref): Constify.
2004 * value.h (value_from_history_ref): Update.
2006 2014-07-30 Tom Tromey <tromey@redhat.com>
2008 * corefile.c (hook_type, call_extra_exec_file_hooks)
2009 (specify_exec_file_hook): Constify.
2010 * exec.c (exec_file_attach): Make "filename" const.
2011 * gdbcore.h (deprecated_exec_file_display_hook)
2012 (specify_exec_file_hook, exec_file_attach): Constify.
2013 * main.c (captured_main): Use catch_command_errors_const.
2015 2014-07-30 Tom Tromey <tromey@redhat.com>
2017 * target.c (open_target): New function.
2018 (add_target_with_completer, add_deprecated_target_alias): Use
2019 set_cmd_sfunc, set_cmd_context.
2020 (debug_to_open): Remove.
2021 (setup_target_debug): Update.
2023 2014-07-30 Yao Qi <yao@codesourcery.com>
2025 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2027 * parse.c (exp_iterate): Update comments.
2029 2014-07-30 Gary Benson <gbenson@redhat.com>
2031 * common/common-defs.h: New file.
2032 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2033 * defs.h: Include common-defs.h.
2034 Do not include config.h or build-gnulib/config.h.
2036 2014-07-30 Gary Benson <gbenson@redhat.com>
2038 * common/common-utils.h: Do not include config.h.
2039 * nat/linux-btrace.h: Likewise.
2041 2014-07-30 Gary Benson <gbenson@redhat.com>
2043 * btrace.c: Include defs.h.
2044 * common/ptid.c: Include defs.h or server.h as appropriate.
2045 * nat/mips-linux-watch.c: Likewise.
2047 2014-07-29 Tom Tromey <tromey@redhat.com>
2049 * target.c (target_is_pushed): Simplify.
2051 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2055 2014-07-29 Yao Qi <yao@codesourcery.com>
2058 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2060 2014-07-28 Doug Evans <xdje42@gmail.com>
2063 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2064 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2067 2014-07-28 Will Newton <will.newton@linaro.org>
2069 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2070 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2071 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2072 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2073 (THUMB2_EABI_SYSCALL): Likewise.
2074 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2076 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2077 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2079 2014-07-27 Doug Evans <xdje42@gmail.com>
2081 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2083 2014-07-27 Doug Evans <xdje42@gmail.com>
2085 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2087 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2088 Doug Evans <xdje42@gmail.com>
2091 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2092 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2093 * configure.ac: Try to use guild to compile an scm file, if it fails
2094 then disable guile support.
2095 * configure: Regenerate.
2096 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2098 (GUILE_COMPILED_FILES): New variable.
2099 (GUILE_FILES) Update.
2100 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2101 (stamp-guile): Compile scm files.
2102 * guile/guile.c (boot_guile_support): New function.
2103 (standard_throw_args_p): New function.
2104 (print_standard_throw_error, print_throw_error): New functions.
2105 (handle_boot_error): New function.
2106 (initialize_scheme_side): Rewrite to call boot_guile_support.
2107 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2108 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2110 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2111 Doug Evans <xdje42@gmail.com>
2114 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2115 * guile/lib/gdb/support.scm: New file.
2116 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2117 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2119 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2121 (%assert-type): Ditto, and renamed to assert-type.
2122 (%exception-print-style): Delete.
2124 2014-07-26 Doug Evans <xdje42@gmail.com>
2127 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2128 * configure: Regenerate.
2129 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2131 (PYTHON_FILES): New variable.
2132 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2133 (GUILE_FILES): New variable.
2134 (stamp-python, install-python, uninstall-python): Handle empty
2136 (stamp-guile, install-guile, uninstall-guile): Ditto.
2138 2014-07-26 Doug Evans <xdje42@gmail.com>
2141 * guile/lib/gdb.scm (pretty-printers): Export.
2142 (set-pretty-printers!): Export.
2143 * guile/lib/gdb/printing.scm (gdb module): Update.
2144 (prepend-pretty-printer!, append-pretty-printer!): Update.
2145 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2146 (pretty_printer_list_var): Delete.
2147 (pretty_printer_list): New static global.
2148 (gdbscm_pretty_printers): New function.
2149 (gdbscm_set_pretty_printers_x): New function.
2150 (ppscm_find_pretty_printer_from_gdb): Update.
2151 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2152 (gdbscm_initialize_pretty_printers): Update.
2154 2014-07-26 Doug Evans <xdje42@gmail.com>
2157 * configure.ac: Add check for header gc/gc.h.
2158 Add check for function setenv.
2159 * configure: Regenerate.
2160 * config.in: Regenerate.
2161 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2163 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2165 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2166 variation in gdbarch matching.
2168 2014-07-25 Tom Tromey <tromey@redhat.com>
2170 * exec.c (using_exec_ops): Remove.
2171 (exec_close_1): Update. Remove extraneous block, reindent.
2172 (add_target_sections): Use target_is_pushed.
2174 2014-07-25 Pedro Alves <palves@redhat.com>
2176 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2177 * monitor.c (monitor_create_inferior): Likewise.
2178 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2179 * remote-sim.c (gdbsim_create_inferior): Likewise.
2180 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2181 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2182 * windows-nat.c (do_initial_windows_stuff): Likewise.
2184 2014-07-25 Pedro Alves <palves@redhat.com>
2186 * NEWS: Mention signal passing and "signal" command changes.
2187 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2189 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2191 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2192 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2193 (jump_command): Adjust clear_proceed_status call.
2194 (signal_command): Warn if other thread that are resumed have
2195 signals that will be delivered. Adjust clear_proceed_status call.
2196 (until_next_command, finish_command)
2197 (proceed_after_attach_callback, attach_command_post_wait)
2198 (attach_command): Adjust clear_proceed_status call.
2199 * infrun.c (proceed_after_vfork_done): Likewise.
2200 (proceed_after_attach_callback): Adjust comment.
2201 (clear_proceed_status_thread): Clear stop_signal if not in pass
2203 (clear_proceed_status_callback): Delete.
2204 (clear_proceed_status): New 'step' parameter. Only clear the
2205 proceed status of threads the command being prepared is about to
2207 (proceed): If passed in an explicit signal, override stop_signal
2208 with it. Don't pass the last stop signal to the thread we're
2210 (init_wait_for_inferior): Adjust clear_proceed_status call.
2211 (switch_back_to_stepped_thread): Clear the signal if it should not
2213 * infrun.h (clear_proceed_status): New 'step' parameter.
2214 (user_visible_resume_ptid): Add comment.
2215 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2216 signal is in pass state.
2217 * remote.c (append_pending_thread_resumptions): Likewise.
2218 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2220 2014-07-25 Tom Tromey <tromey@redhat.com>
2222 * target.h (target_stopped_data_address)
2223 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2226 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2228 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2230 (avr_pointer_to_address): Likewise.
2232 2014-07-24 Tom Tromey <tromey@redhat.com>
2234 * monitor.c (compile_pattern): Update.
2235 * target.h (struct target_ops) <to_shortname, to_longname,
2238 2014-07-24 Tom Tromey <tromey@redhat.com>
2240 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2241 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2242 (add_info_alias, add_com): Make "doc" const.
2243 (print_doc_line): Make "str" const.
2244 (delete_cmd): Update.
2245 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2246 (print_doc_line): Update.
2247 * cli/cli-script.c (document_command): Update.
2248 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2249 (add_com, add_info, add_info_alias): Update.
2250 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2251 * python/py-cmd.c (cmdpy_destroyer): Update.
2253 2014-07-24 Tom Tromey <tromey@redhat.com>
2255 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2256 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2257 (help_cmd_list): Constify.
2258 (lookup_cmd): Update.
2259 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2261 (help_cmd_list, apropos_cmd): Update.
2262 * cli/cli-script.c (show_user): Update.
2263 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2264 * cli/cli-setshow.h (cmd_show_list): Update.
2265 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2266 (cmd_show_list): Update.
2267 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2268 * python/py-cmd.c (cmdpy_destroyer): Update.
2270 2014-07-24 Tom Tromey <tromey@redhat.com>
2272 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2273 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2275 * command.h (deprecate_cmd): Update.
2276 * maint.c (maintenance_do_deprecate): Add casts.
2278 2014-07-24 Tom Tromey <tromey@redhat.com>
2280 * cli/cli-decode.c (help_cmd): Make parameter "const".
2281 * cli/cli-decode.h (help_cmd): Update.
2283 2014-07-24 Tom Tromey <tromey@redhat.com>
2285 * stack.c (up_silently_base, down_silently_base): Make argument
2288 2014-07-24 Tom Tromey <tromey@redhat.com>
2290 * solib.c (solib_add): Make "pattern" const.
2291 * solib.h (solib_add): Update.
2293 2014-07-24 Tom Tromey <tromey@redhat.com>
2295 * remote.c (remote_serial_open, print_packet, putpkt)
2296 (putpkt_binary): Constify.
2297 * remote.h (putpkt): Update.
2299 2014-07-24 Tom Tromey <tromey@redhat.com>
2301 * monitor.c (monitor_open): Make "args" const.
2302 * monitor.h (monitor_open): Update.
2304 2014-07-24 Tom Tromey <tromey@redhat.com>
2306 * maint.c (match_bfd_flags): Make "string" const.
2307 (print_bfd_section_info): Remove casts.
2308 (print_objfile_section_info): Make "string" const.
2310 2014-07-24 Tom Tromey <tromey@redhat.com>
2312 * inf-child.c (inf_child_open_target): Make "arg" const.
2313 * inf-child.h (inf_child_open_target): Update.
2315 2014-07-24 Tom Tromey <tromey@redhat.com>
2317 * environ.c (unset_in_environ): Make "var" const.
2318 * environ.h (unset_in_environ): Update.
2320 2014-07-24 Tom Tromey <tromey@redhat.com>
2322 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2324 (scan_filename_with_cleanup): Likewise.
2325 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2326 Make arguments const.
2327 (restore_command): Update.
2329 2014-07-24 Pedro Alves <palves@redhat.com>
2331 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2333 2014-07-24 Tom Tromey <tromey@redhat.com>
2334 Gary Benson <gbenson@redhat.com>
2336 * nat/linux-ptrace.c (additional_flags): New global.
2337 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2338 additional_flags; don't check GDBSERVER.
2339 (linux_ptrace_set_additional_flags): New function.
2340 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2342 * linux-nat.c (_initialize_linux_nat): Call
2343 linux_ptrace_set_additional_flags.
2345 2014-07-24 Tom Tromey <tromey@redhat.com>
2347 * make-target-delegates (munge_type, write_debugmethod): New
2349 (debug_names): New global.
2350 ($TARGET_DEBUG_PRINTER): New global.
2351 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2353 Write debug methods. Generate init_debug_target.
2354 * target-debug.h: New file.
2355 * target-delegates.c: Rebuild.
2356 * target.c: Include target-debug.h.
2357 (debug_target): Hoist definition.
2358 (target_kill, target_get_section_table, target_memory_map)
2359 (target_flash_erase, target_flash_done, target_detach)
2360 (target_disconnect, target_wait, target_resume)
2361 (target_pass_signals, target_program_signals, target_follow_fork)
2362 (target_mourn_inferior, target_search_memory)
2363 (target_thread_address_space, target_close)
2364 (target_find_new_threads, target_core_of_thread)
2365 (target_verify_memory, target_insert_mask_watchpoint)
2366 (target_remove_mask_watchpoint): Remove targetdebug code.
2367 (debug_to_post_attach, debug_to_prepare_to_store)
2368 (debug_to_files_info, debug_to_insert_breakpoint)
2369 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2370 (debug_to_region_ok_for_hw_watchpoint)
2371 (debug_to_can_accel_watchpoint_condition)
2372 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2373 (debug_to_watchpoint_addr_within_range)
2374 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2375 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2376 (debug_to_terminal_init, debug_to_terminal_inferior)
2377 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2378 (debug_to_terminal_save_ours, debug_to_terminal_info)
2379 (debug_to_load, debug_to_post_startup_inferior)
2380 (debug_to_insert_fork_catchpoint)
2381 (debug_to_remove_fork_catchpoint)
2382 (debug_to_insert_vfork_catchpoint)
2383 (debug_to_remove_vfork_catchpoint)
2384 (debug_to_insert_exec_catchpoint)
2385 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2386 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2387 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2388 (setup_target_debug): Call init_debug_target.
2389 * target.h (TARGET_DEBUG_PRINTER): New macro.
2390 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2391 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2393 2014-07-24 Gary Benson <gbenson@redhat.com>
2395 * exceptions.h (throw_vfatal): Renamed to...
2396 (throw_vquit): New declaration.
2397 (throw_quit): Likewise.
2398 * exceptions.c (throw_vfatal): Renamed to...
2399 (throw_vquit): New function.
2400 (throw_quit): Likewise.
2401 (throw_error): Call throw_verror rather than throw_it.
2402 * utils.h (vfatal): Removed.
2404 * utils.c (vfatal): Removed.
2406 (internal_verror): Replaced call to fatal with call to throw_quit.
2407 (quit): Replaced calls to fatal with calls to throw_quit.
2409 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2411 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2414 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2416 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2417 less than zero in conditional expression.
2419 2014-07-23 Tom Tromey <tromey@redhat.com>
2421 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2422 ($INTRO_PART): Don't match whitespace.
2423 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2425 ($METHOD): Add $METHOD_TRAILER.
2427 (scan_target_h): New sub.
2428 Change main loop not to collect state.
2429 * target-delegates.c: Rebuild.
2431 2014-07-23 Gary Benson <gbenson@redhat.com>
2433 * cp-support.c (gdb_demangle): Fix build on systems without
2436 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2438 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2439 for reference entry value target data value.
2441 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2443 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2444 value_available_contents_eq.
2446 2014-07-22 Pedro Alves <palves@redhat.com>
2448 * value.c (allocate_optimized_out_value): Don't mark value as
2451 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2453 * MAINTAINERS (Write After Approval): Update my email address.
2455 2014-07-20 Doug Evans <dje@google.com>
2458 * remote.c (putpkt_binary): Add text to error message.
2460 2014-07-20 Yao Qi <yao@codesourcery.com>
2462 * eval.c: Remove "Chill" from comments.
2463 * gdbtypes.h: Likewise.
2464 * symtab.h: Likewise.
2466 2014-07-20 Yao Qi <yao@codesourcery.com>
2468 * std-operator.def: Update comments to TERNOP_SLICE.
2470 2014-07-20 Yao Qi <yao@codesourcery.com>
2472 * std-operator.def: Remove BINOP_RANGE.
2473 * breakpoint.c (watchpoint_exp_is_const): Update.
2474 * expprint.c (dump_subexp_body_standard): Likewise.
2475 * eval.c (init_array_element): Remove dead code.
2476 (evaluate_subexp_standard): Likewise.
2478 2014-07-20 Yao Qi <yao@codesourcery.com>
2480 * std-operator.def: Remove BINOP_IN.
2481 * breakpoint.c (watchpoint_exp_is_const): Update.
2482 * eval.c (evaluate_subexp_standard): Likewise.
2483 * expprint.c (dump_subexp_body_standard): Likewise.
2485 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2487 * microblaze-tdep.c (microblaze_register_names): Add
2488 the rshr and rslr register names.
2489 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2490 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2491 Use of tdesc_numbered_register. Use of
2492 microblaze_register_g_packet_guesses. Use of
2493 tdesc_use_registers. Use of set_gdbarch_register_type.
2494 (microblaze_register_g_packet_guesses): New.
2495 * microblaze-tdep.h (microblaze_reg_num): Add
2496 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2497 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2498 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2499 * features/microblaze-core.xml: New file.
2500 * features/microblaze-stack-protect.xml: New file.
2501 * features/microblaze-with-stack-protect.c: New file.
2502 * features/microblaze-with-stack-protect.xml: New file.
2503 * features/microblaze.xml: New file.
2504 * features/microblaze.c: New file.
2505 * features/Makefile (microblaze-with-stack-protect): Add
2506 microblaze-with-stack-protect microblaze and microblaze-expedite.
2507 * regformats/microblaze-with-stack-protect.dat: New file.
2508 * regformats/microblaze.dat: New file.
2509 * doc/gdb.texinfo (MicroBlaze Features): Added.
2511 2014-07-18 Tom Tromey <tromey@redhat.com>
2513 * exec.c (exec_ops): Now static.
2514 * exec.h (exec_ops): Don't declare.
2516 2014-07-18 Tom Tromey <tromey@redhat.com>
2518 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2519 to find_target_beneath.
2520 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2521 find_target_beneath.
2522 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2524 2014-07-18 Tom Tromey <tromey@redhat.com>
2527 * utils.c (quit): Use target_supports_terminal_ours.
2528 * target.h (target_supports_terminal_ours): Declare.
2529 * target.c (target_supports_delete_record): Don't check
2530 to_delete_record against NULL.
2531 (target_supports_terminal_ours): New function.
2533 2014-07-18 Tom Tromey <tromey@redhat.com>
2536 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2537 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2538 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2539 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2540 * windows-nat.c (windows_xfer_partial): Always delegate.
2541 * record-btrace.c (record_btrace_xfer_partial): Simplify
2543 (record_btrace_fetch_registers, record_btrace_store_registers)
2544 (record_btrace_prepare_to_store, record_btrace_resume)
2545 (record_btrace_wait, record_btrace_find_new_threads)
2546 (record_btrace_thread_alive): Likewise.
2547 * procfs.c (procfs_xfer_partial): Always delegate.
2548 * corelow.c (core_xfer_partial): Always delegate.
2549 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2551 2014-07-18 Tom Tromey <tromey@redhat.com>
2553 * exec.c (exec_make_note_section): Move earlier.
2555 2014-07-17 Doug Evans <dje@google.com>
2558 * maint.c (count_symtabs_and_blocks): Handle NULL
2559 current_program_space.
2560 (report_command_stats): Check global enabled flag in addition to
2561 recorded enabled flag.
2562 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2564 2014-07-16 Pedro Alves <palves@redhat.com>
2566 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2568 2014-07-16 Tom Tromey <tromey@redhat.com>
2570 * target.h (struct target_ops) <to_delete_record>: Reformat
2573 2014-07-16 Tom Tromey <tromey@redhat.com>
2575 * target-delegates.c: Rebuild.
2577 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2579 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2580 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2581 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2582 (avr_pointer_to_address): Likewise.
2583 (avr_address_class_type_flags): New function.
2584 (avr_address_class_type_flags_to_name): Likewise.
2585 (avr_address_class_name_to_type_flags): Likewise.
2586 (avr_gdbarch_init): Set address_class_type_flags,
2587 address_class_type_flags_to_name and
2588 address_class_name_to_type_flags.
2590 2014-07-15 Pedro Alves <palves@redhat.com>
2592 * linux-nat.c (kill_callback): Save errno and work with saved
2595 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2597 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2599 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2601 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2602 breakpoint support correctly.
2604 2014-07-14 Pedro Alves <palves@redhat.com>
2606 * utils.c (prompt_for_continue): Call target_terminal_ours.
2608 2014-07-14 Pedro Alves <palves@redhat.com>
2610 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2611 catch_errors. Don't re-enable stdin or notify observers where,
2613 (fetch_inferior_event_wrapper): Delete.
2615 2014-07-14 Pedro Alves <palves@redhat.com>
2618 * top.c: Include "inf-loop.h".
2619 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2621 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2623 (gdb_readline_wrapper): Store whether the target is async, and
2626 2014-07-14 Pedro Alves <palves@redhat.com>
2629 * top.c (gdb_readline_wrapper_line): Tweak comment.
2630 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2631 the input handler callback.
2633 2014-07-14 Pedro Alves <palves@redhat.com>
2636 * main.c: Include event-top.h.
2637 (handle_command_errors): New function.
2638 (catch_command_errors, catch_command_errors_const): Use it.
2640 2014-07-14 Pedro Alves <palves@redhat.com>
2642 * exceptions.c (catch_command_errors, catch_command_errors_const):
2644 * exceptions.h (catch_command_errors_ftype)
2645 (catch_command_errors_const_ftype): Moved to main.c.
2646 (catch_command_errors, catch_command_errors_const): Delete
2648 * main.c (catch_command_errors_ftype)
2649 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2650 (catch_command_errors, catch_command_errors_const)): Moved here
2651 from exceptions.c and make static.
2653 2014-07-14 Pedro Alves <palves@redhat.com>
2655 * exceptions.c (print_any_exception): Delete.
2656 (catch_exceptions_with_msg): Use exception_print instead of
2657 print_any_exception.
2658 (catch_errors): Use exception_fprintf instead of
2659 print_any_exception.
2660 (catch_command_errors, catch_command_errors_const): Use
2661 exception_print instead of print_any_exception.
2663 2014-07-14 Pedro Alves <palves@redhat.com>
2665 * infcall.c (run_inferior_call): Set 'sync_execution' while
2666 running the inferior call.
2668 2014-07-14 Pedro Alves <palves@redhat.com>
2670 * value.c (value_contents_equal): Delete function.
2671 * value.h (value_contents_equal): Delete declaration.
2673 2014-07-14 Tom Tromey <tromey@redhat.com>
2676 * gdbtypes.c (is_dynamic_type_internal): New function, from
2678 (is_dynamic_type): Rewrite.
2679 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2680 (resolve_dynamic_struct): Likewise.
2681 (resolve_dynamic_type_internal): New function, from
2682 resolve_dynamic_type.
2683 (resolve_dynamic_type): Rewrite.
2685 2014-07-14 Tom Tromey <tromey@redhat.com>
2687 * target.c (target_require_runnable): Also check record_stratum.
2690 2014-07-11 Yao Qi <yao@codesourcery.com>
2692 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2693 thumb_instruction_restores_sp return true.
2695 2014-07-11 Yao Qi <yao@codesourcery.com>
2697 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2698 (thumb_in_function_epilogue_p): Call
2699 thumb_instruction_restores_sp.
2701 2014-07-11 Yao Qi <yao@codesourcery.com>
2703 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2705 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2707 2014-07-11 Gary Benson <gbenson@redhat.com>
2709 * amd64-linux-nat.c (gdbcore.h): Remove include.
2710 (regset.h): Likewise.
2711 (nat/linux-btrace.h): Likewise.
2712 (btrace.h): Likewise.
2713 (gdb_assert.h): Likewise.
2714 (string.h): Likewise.
2715 (sys/uio.h): Likewise.
2716 (sys/debugreg.h): Likewise.
2717 (sys/syscall.h): Likewise.
2718 (sys/procfs.h): Likewise.
2719 (sys/user.h): Likewise.
2720 (asm/ptrace.h): Likewise.
2721 (i386-nat.h): Likewise.
2722 * i386-linux-nat.c (i386-nat.h): Likewise.
2723 (regset.h): Likewise.
2724 (target.h): Likewise.
2725 (linux-nat.h): Likewise.
2726 (nat/linux-btrace.h): Likewise.
2727 (btrace.h): Likewise.
2728 (gdb_assert.h): Likewise.
2729 (string.h): Likewise.
2730 (sys/uio.h): Likewise.
2731 (sys/user.h): Likewise.
2732 (sys/procfs.h): Likewise.
2733 (sys/reg.h): Likewise.
2734 (sys/debugreg.h): Likewise.
2735 (ORIG_EAX): Remove definition.
2737 2014-07-11 Gary Benson <gbenson@redhat.com>
2739 * i386-linux-nat.h: New file.
2740 * x86-linux-nat.h: Likewise.
2741 * x86-linux-nat.c: Likewise.
2742 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2743 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2744 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2745 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2746 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2747 (PTRACE_SETREGSET): Likewise.
2748 (arch_lwp_info): Now in x86-linux-nat.c.
2749 (have_ptrace_getregset): Now in x86-linux-nat.h.
2750 (x86_linux_dr_get): Now in x86-linux-nat.c.
2751 (x86_linux_dr_set): Likewise.
2752 (x86_linux_dr_get_addr): Likewise.
2753 (x86_linux_dr_get_control): Likewise.
2754 (x86_linux_dr_get_status): Likewise.
2755 (update_debug_registers_callback): Likewise.
2756 (x86_linux_dr_set_control): Likewise.
2757 (x86_linux_dr_set_addr): Likewise.
2758 (x86_linux_prepare_to_resume): Likewise.
2759 (x86_linux_new_thread): Likewise.
2760 (x86_linux_new_fork): Likewise.
2761 (x86_linux_get_thread_area): Likewise.
2762 (super_post_startup_inferior): Likewise.
2763 (x86_linux_child_post_startup_inferior): Likewise.
2764 (AMD64_LINUX_USER64_CS): Likewise.
2765 (AMD64_LINUX_X32_DS): Likewise.
2766 (x86_linux_read_description): Likewise.
2767 (x86_linux_enable_btrace): Likewise.
2768 (x86_linux_disable_btrace): Likewise.
2769 (x86_linux_teardown_btrace): Likewise.
2770 (x86_linux_read_btrace): Likewise.
2771 (x86_linux_create_target): Likewise.
2772 (x86_linux_add_target): Likewise.
2773 * i386-linux-nat.c (x86-linux-nat.h): New include.
2774 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2775 (PTRACE_SETREGSET): Likewise.
2776 (arch_lwp_info): Now in x86-linux-nat.c.
2777 (have_ptrace_getregset): Now in x86-linux-nat.h.
2778 (x86_linux_dr_get): Now in x86-linux-nat.c.
2779 (x86_linux_dr_set): Likewise.
2780 (x86_linux_dr_get_addr): Likewise.
2781 (x86_linux_dr_get_control): Likewise.
2782 (x86_linux_dr_get_status): Likewise.
2783 (update_debug_registers_callback): Likewise.
2784 (x86_linux_dr_set_control): Likewise.
2785 (x86_linux_dr_set_addr): Likewise.
2786 (x86_linux_prepare_to_resume): Likewise.
2787 (x86_linux_new_thread): Likewise.
2788 (x86_linux_new_fork): Likewise.
2789 (x86_linux_get_thread_area): Likewise.
2790 (super_post_startup_inferior): Likewise.
2791 (x86_linux_child_post_startup_inferior): Likewise.
2792 (AMD64_LINUX_USER64_CS): Likewise.
2793 (AMD64_LINUX_X32_DS): Likewise.
2794 (x86_linux_read_description): Likewise.
2795 (x86_linux_enable_btrace): Likewise.
2796 (x86_linux_disable_btrace): Likewise.
2797 (x86_linux_teardown_btrace): Likewise.
2798 (x86_linux_read_btrace): Likewise.
2799 (x86_linux_create_target): Likewise.
2800 (x86_linux_add_target): Likewise.
2802 2014-07-11 Gary Benson <gbenson@redhat.com>
2804 * amd64-linux-nat.c: Comment and whitespace changes.
2805 * i386-linux-nat.c: Comment and whitespace changes.
2807 2014-07-11 Gary Benson <gbenson@redhat.com>
2809 * amd64-linux-nat.c (x86_linux_create_target): New function.
2810 (x86_linux_add_target): Likewise.
2811 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2812 * i386-linux-nat.c (x86_linux_create_target): New function.
2813 (x86_linux_add_target): Likewise.
2814 (_initialize_i386_linux_nat): Delegate to the above new functions.
2816 2014-07-11 Gary Benson <gbenson@redhat.com>
2818 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2819 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2820 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2821 (ps_get_thread_area): Delegate to the above.
2823 2014-07-11 Gary Benson <gbenson@redhat.com>
2825 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2826 x86_linux_read_description. All uses updated. amd64-specific
2827 code conditionalized. Conditionalized i386-specific code added.
2828 Redundant cast removed.
2829 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2830 x86_linux_read_description. All uses updated. i386-specific
2831 code conditionalized. Conditionalized amd64-specific code added.
2832 One sizeof replaced with the actual type it is describing.
2834 2014-07-11 Gary Benson <gbenson@redhat.com>
2836 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2837 x86_linux_dr_get. All uses updated.
2838 (amd64_linux_dr_set): Renamed to
2839 x86_linux_dr_set. All uses updated.
2840 (amd64_linux_dr_get_addr): Renamed to
2841 x86_linux_dr_get_addr. All uses updated.
2842 (amd64_linux_dr_get_control): Renamed to
2843 x86_linux_dr_get_control. All uses updated.
2844 (amd64_linux_dr_get_status): Renamed to
2845 x86_linux_dr_get_status. All uses updated.
2846 (amd64_linux_dr_set_control): Renamed to
2847 x86_linux_dr_set_control. All uses updated.
2848 (amd64_linux_dr_set_addr): Renamed to
2849 x86_linux_dr_set_addr. All uses updated.
2850 (amd64_linux_prepare_to_resume): Renamed to
2851 x86_linux_prepare_to_resume. All uses updated.
2852 (amd64_linux_new_thread): Renamed to
2853 x86_linux_new_thread. All uses updated.
2854 (amd64_linux_new_fork): Renamed to
2855 x86_linux_new_fork. All uses updated.
2856 (amd64_linux_child_post_startup_inferior): Renamed to
2857 x86_linux_child_post_startup_inferior. All uses updated.
2858 (amd64_linux_enable_btrace): Renamed to
2859 x86_linux_enable_btrace. All uses updated.
2860 (amd64_linux_disable_btrace): Renamed to
2861 x86_linux_disable_btrace. All uses updated.
2862 (amd64_linux_teardown_btrace): Renamed to
2863 x86_linux_teardown_btrace. All uses updated.
2864 (amd64_linux_read_btrace): Renamed to
2865 x86_linux_read_btrace. All uses updated.
2866 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2867 x86_linux_dr_get. All uses updated.
2868 (i386_linux_dr_set): Renamed to
2869 x86_linux_dr_set. All uses updated.
2870 (i386_linux_dr_get_addr): Renamed to
2871 x86_linux_dr_get_addr. All uses updated.
2872 (i386_linux_dr_get_control): Renamed to
2873 x86_linux_dr_get_control. All uses updated.
2874 (i386_linux_dr_get_status): Renamed to
2875 x86_linux_dr_get_status. All uses updated.
2876 (i386_linux_dr_set_control): Renamed to
2877 x86_linux_dr_set_control. All uses updated.
2878 (i386_linux_dr_set_addr): Renamed to
2879 x86_linux_dr_set_addr. All uses updated.
2880 (i386_linux_prepare_to_resume): Renamed to
2881 x86_linux_prepare_to_resume. All uses updated.
2882 (i386_linux_new_thread): Renamed to
2883 x86_linux_new_thread. All uses updated.
2884 (i386_linux_new_fork): Renamed to
2885 x86_linux_new_fork. All uses updated.
2886 (i386_linux_child_post_startup_inferior): Renamed to
2887 x86_linux_child_post_startup_inferior. All uses updated.
2888 (i386_linux_enable_btrace): Renamed to
2889 x86_linux_enable_btrace. All uses updated.
2890 (i386_linux_disable_btrace): Renamed to
2891 x86_linux_disable_btrace. All uses updated.
2892 (i386_linux_teardown_btrace): Renamed to
2893 x86_linux_teardown_btrace. All uses updated.
2894 (i386_linux_read_btrace): Renamed to
2895 x86_linux_read_btrace. All uses updated.
2897 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2899 * remote.c (extended_remote_post_attach): New function.
2900 (init_extended_remote_ops): Install it as to_post_attach method.
2902 2014-07-09 Pedro Alves <palves@redhat.com>
2904 * infcmd.c (attach_command_post_wait): Don't call
2905 target_terminal_inferior here.
2906 (attach_command): Call it here instead.
2908 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2910 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2912 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2913 from varobj.c, with additional checks.
2914 (c_varobj_ops): Fill in is_path_expr_parent field.
2915 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2916 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2918 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2920 (varobj_default_is_path_expr_parent): New function.
2921 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2922 (varobj_default_is_path_expr_parent): Declare new function.
2924 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2926 * infcmd.c (finish_backward): Turn internal error into normal error.
2928 2014-07-07 Pedro Alves <palves@redhat.com>
2931 * remote.c (async_handle_remote_sigint)
2932 (async_handle_remote_sigint_twice): Call
2933 gdb_call_async_signal_handler instead of
2934 mark_async_signal_handler.
2936 2014-07-07 Tom Tromey <tromey@redhat.com>
2938 * target-delegates.c: Rebuild.
2939 * target.c (target_info_record): Remove.
2940 * record.c (info_record_command): Unconditionally call
2942 * target.h (struct target_ops) <to_info_record>: Use
2943 TARGET_DEFAULT_IGNORE.
2944 (target_info_record): Remove.
2946 2014-07-07 Tom Tromey <tromey@redhat.com>
2948 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2949 TARGET_DEFAULT_NORETURN.
2950 * target.c (generic_tls_error): New function.
2951 (target_translate_tls_address): Don't search target stack.
2952 * target-delegates.c: Rebuild.
2953 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2955 * linux-thread-db.c (thread_db_get_thread_local_address):
2956 Unconditionally call beneath target.
2958 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2960 * cli/cli-logging.c (pop_output_files): Assign targerr to
2963 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2965 * MAINTAINERS (Write After Approval): Update my email address.
2967 2014-07-02 Gary Benson <gbenson@redhat.com>
2969 * proc-service.c (ps_xfer_memory): Update comment.
2970 (ps_pstop): Remove unused function.
2971 (ps_pcontinue): Likewise.
2972 (ps_lstop): Likewise.
2973 (ps_lcontinue): Likewise.
2974 (ps_lgetxregsize): Likewise.
2975 (ps_lgetxregs): Likewise.
2976 (ps_lsetxregs): Likewise.
2977 (ps_plog): Likewise.
2978 (ps_ptread): Likewise.
2979 (ps_ptwrite): Likewise.
2981 2014-07-01 Mark Wielaard <mjw@redhat.com>
2983 * dwarf2read.c (add_array_cv_type): New function.
2984 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2985 (read_tag_volatile_type): Likewise.
2987 2014-07-01 Tom Tromey <tromey@redhat.com>
2989 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2990 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2991 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2992 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2993 * command.h (cmd_cfunc_ftype): Move earlier.
2994 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2995 (add_com, add_info): Use cmd_cfunc_ftype.
2997 2014-06-30 Tom Tromey <tromey@redhat.com>
2999 * symtab.c (operator_chars): Make parameters and return type
3001 (file_matches): Make "files" const.
3002 (struct search_symbols_data) <files>: Now const.
3003 (search_symbols): Make "regexp" and "files" parameters const.
3005 (symtab_symbol_info): Remove cast.
3006 (rbreak_command): Update.
3007 * symtab.h (search_symbols): Update.
3009 2014-06-27 Yao Qi <yao@codesourcery.com>
3011 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3012 Change parameter type to 'struct thread_info *'. Caller
3014 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3016 * dummy-frame.c (struct dummy_frame_id): New.
3017 (dummy_frame_id_eq): New function.
3018 (struct dummy_frame) <id>: Change its type to 'struct
3020 (dummy_frame_push): Add parameter ptid and save it in
3022 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3024 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3026 (lookup_dummy_frame): Change parameter type to 'struct
3027 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3028 instead of frame_id_eq.
3029 (dummy_frame_pop): Add parameter ptid. Callers updated.
3030 Update comments. Compose dummy_frame_id and pass it to
3032 (dummy_frame_discard): Add parameter ptid.
3033 (dummy_frame_sniffer): Compose dummy_frame_id and call
3034 dummy_frame_id_eq instead of frame_id_eq.
3035 (fprint_dummy_frames): Print ptid.
3036 * dummy-frame.h: Remove comments.
3037 (dummy_frame_push): Add ptid in declaration.
3038 (dummy_frame_pop, dummy_frame_discard): Likewise.
3040 2014-06-26 Tom Tromey <tromey@redhat.com>
3042 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3043 * command.h (error_no_arg): Update.
3045 2014-06-26 Tom Tromey <tromey@redhat.com>
3047 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3048 (do_show_command): Make "arg" const.
3049 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3051 2014-06-26 Tom Tromey <tromey@redhat.com>
3053 * record-full.c (record_full_get_bookmark): Make "args" const.
3054 (record_full_goto_bookmark): Make "raw_bookmark" const.
3055 * record.c (record_goto): New function.
3056 (cmd_record_goto): Use it. Now static.
3057 * record.h (record_goto): Declare.
3058 (cmd_record_goto): Remove declaration.
3059 * target-delegates.c: Rebuild.
3060 * target.h (struct target_ops) <to_get_bookmark,
3061 to_goto_bookmark>: Make parameter const.
3063 2014-06-26 Tom Tromey <tromey@redhat.com>
3065 * defs.h (generic_load): Update.
3066 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3067 * monitor.c (monitor_load): Make "args" const.
3068 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3069 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3071 (mips_load): Make "file" const.
3072 * remote-sim.c (gdbsim_load): Make "args" const.
3073 * remote.c (remote_load): Make "name" const.
3074 * symfile.c (generic_load): Make "args" const.
3075 * target-delegates.c: Rebuild.
3076 * target.c (target_load): Make "arg" const.
3077 (debug_to_load): Make "args" const.
3078 * target.h (struct target_ops) <to_load>: Make parameter const.
3079 (target_load): Update.
3081 2014-06-26 Tom Tromey <tromey@redhat.com>
3084 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3085 (dwarf2_physname, read_partial_die)
3086 (guess_partial_die_structure_name, fixup_partial_die)
3087 (guess_full_die_structure_name, anonymous_struct_prefix)
3088 (dwarf2_name): Use per-BFD obstack.
3090 2014-06-26 Yao Qi <yao@codesourcery.com>
3092 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3093 dummyframe and this_id into inner block below.
3095 2014-06-26 Yao Qi <yao@codesourcery.com>
3097 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3098 with "signal_pass[0]" in the initialization of signal_pass.
3100 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3102 * record-btrace.c (record_btrace_generating_corefile)
3103 (record_btrace_prepare_to_generate_core)
3104 (record_btrace_done_generating_core): New.
3105 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3106 (record_btrace_store_registers, record_btrace_prepare_to_store):
3107 Forward request when generating a core file.
3108 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3109 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3110 to_done_generating_core.
3112 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3114 * target.h (target_ops) <to_prepare_to_generate_core>
3115 <to_done_generating_core>: New.
3116 (target_prepare_to_generate_core, target_done_generating_core): New.
3117 * target.c (target_prepare_to_generate_core)
3118 (target_done_generating_core): New.
3119 * target-delegates.c: Regenerate.
3120 * gcore.c: (write_gcore_file): Rename to ...
3121 (write_gcore_file_1): ...this.
3122 (write_gcore_file): Call target_prepare_to_generate_core
3123 and target_done_generating_core.
3125 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3127 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3128 * gcore.c (write_gcore_file): Free memory returned from
3129 make_corefile_notes.
3130 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3131 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3133 2014-06-24 Yao Qi <yao@codesourcery.com>
3135 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3136 (arm_linux_init_abi): Set skip_trampoline_code with
3137 gdbarch_skip_trampoline_code instead of
3138 find_solib_trampoline_target.
3140 2014-06-24 Yao Qi <yao@codesourcery.com>
3142 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3143 arm_skip_bx_reg returns non-zero.
3145 2014-06-24 Yao Qi <yao@codesourcery.com>
3147 * arm-tdep.c (arm_skip_bx_reg): New function.
3148 (arm_skip_stub): Call arm_skip_bx_reg.
3150 2014-06-23 Don Breazeal <donb@codesourcery.com>
3152 * MAINTAINERS: Add myself as write-after-approval maintainer.
3154 2014-06-23 Pedro Alves <palves@redhat.com>
3156 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3157 DR_CONTROL before setting DR0..DR3.
3158 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3159 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3160 bits of DR_CONTROL related to the debug register slot being
3161 disabled. If all slots are vacant, clear local slowdown as well,
3162 and assert DR_CONTROL is 0.
3164 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3166 * python/lib/gdb/command/xmethods.py
3167 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3168 current progspace only if the string "progspace" matches LOCUS_RE.
3170 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3172 Fix --with-system-readline with readline-6.3 patch 5.
3173 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3174 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3177 2014-06-20 Tom Tromey <tromey@redhat.com>
3179 * dwarf2read.c (dw2_get_real_path): Use correct type in
3181 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3183 2014-06-20 Gary Benson <gbenson@redhat.com>
3185 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3186 * common/glibc_thread_db.h: Likewise.
3187 * common/i386-cpuid.h: Likewise.
3188 * common/i386-gcc-cpuid.h: Likewise.
3189 * common/linux-btrace.h: Likewise.
3190 * common/linux-osdata.h: Likewise.
3191 * common/linux-procfs.h: Likewise.
3192 * common/linux-ptrace.h: Likewise.
3193 * common/mips-linux-watch.h: Likewise.
3194 * common/linux-btrace.c: Moved to nat.
3195 * common/linux-osdata.c: Likewise.
3196 * common/linux-procfs.c: Likewise.
3197 * common/linux-ptrace.c: Likewise.
3198 * common/mips-linux-watch.c: Likewise.
3199 * nat/gdb_thread_db.h: Moved from common.
3200 * nat/glibc_thread_db.h: Likewise.
3201 * nat/i386-cpuid.h: Likewise.
3202 * nat/i386-gcc-cpuid.h: Likewise.
3203 * nat/linux-btrace.c: Likewise.
3204 * nat/linux-btrace.h: Likewise.
3205 * nat/linux-osdata.c: Likewise.
3206 * nat/linux-osdata.h: Likewise.
3207 * nat/linux-procfs.c: Likewise.
3208 * nat/linux-procfs.h: Likewise.
3209 * nat/linux-ptrace.c: Likewise.
3210 * nat/linux-ptrace.h: Likewise.
3211 * nat/mips-linux-watch.c: Likewise.
3212 * nat/mips-linux-watch.h: Likewise.
3213 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3214 (object file files): Reordered.
3215 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3216 of glibc_thread_db.h.
3218 2014-06-20 Gary Benson <gbenson@redhat.com>
3220 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3221 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3222 (i386_dr_low): Likewise.
3223 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3224 (i386_dr_low_set_addr): Likewise.
3225 (i386_dr_low_get_addr): Likewise.
3226 (i386_dr_low_can_set_control): Likewise.
3227 (i386_dr_low_set_control): Likewise.
3228 (i386_dr_low_get_control): Likewise.
3229 (i386_dr_low_get_status): Likewise.
3230 (i386_get_debug_register_length): Likewise.
3231 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3232 (i386_dr_low): Likewise.
3233 * nat/i386-dregs.c (i386-low.h): Remove include.
3234 (i386-nat.h): Likewise.
3235 (nat/i386-dregs.h): New include.
3236 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3237 (i386_dr_low_set_addr): Likewise.
3238 (i386_dr_low_get_addr): Likewise.
3239 (i386_dr_low_can_set_control): Likewise.
3240 (i386_dr_low_set_control): Likewise.
3241 (i386_dr_low_get_control): Likewise.
3242 (i386_dr_low_get_status): Likewise.
3243 (i386_get_debug_register_length): Likewise.
3244 (debug_hw_points): Likewise.
3246 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3248 * Makefile.in (SFILES): Add d-exp.y.
3249 (YYFILES): Add d-exp.c.
3250 (YYOBJ): Add d-exp.o.
3251 (local-maintainer-clean): Delete d-exp.c.
3252 * d-exp.y: New file.
3253 * d-lang.h (d_parse): New declaration.
3254 (d_error): New declaration.
3255 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3256 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3257 PREC_ORDER operators.
3258 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3260 2014-06-19 Yao Qi <yao@codesourcery.com>
3262 * gdbthread.h (any_running): Remove the declaration.
3263 * thread.c (any_running): Remove.
3265 2014-06-19 Yao Qi <yao@codesourcery.com>
3267 * gdbthread.h (struct thread_info) <state>: Change its type to
3268 'enum thread_state'. Update comments.
3270 2014-06-19 Pedro Alves <palves@redhat.com>
3272 * gdbthread.h (ALL_THREADS): Delete.
3273 (ALL_NON_EXITED_THREADS): New macro.
3274 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3275 instead of ALL_THREADS.
3276 * infrun.c (find_thread_needs_step_over)
3277 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3278 instead of ALL_THREADS.
3279 * record-btrace.c (record_btrace_open)
3280 (record_btrace_stop_recording, record_btrace_close)
3281 (record_btrace_is_replaying, record_btrace_resume)
3282 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3283 * remote.c (append_pending_thread_resumptions): Likewise.
3284 * thread.c (thread_apply_all_command): Likewise.
3286 2014-06-19 Gary Benson <gbenson@redhat.com>
3288 * i386-nat.c (i386_stopped_by_watchpoint):
3289 Use i386_dr_stopped_by_watchpoint.
3290 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3291 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3293 2014-06-19 Gary Benson <gbenson@redhat.com>
3295 * nat/i386-dregs.c: New file.
3296 * Makefile.in (i386-dregs.o): New rule.
3297 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3298 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3299 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3300 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3301 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3302 * config/i386/go32.mh (NATDEPFILES): Likewise.
3303 * config/i386/linux.mh (NATDEPFILES): Likewise.
3304 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3305 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3306 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3307 * i386-nat.h (debug_hw_points): New declaration.
3308 * i386-nat.c (breakpoint.h): Remove include.
3309 (command.h): Likewise.
3310 (target.h): Likewise.
3311 (gdb_assert.h): Likewise.
3312 (debug_hw_points): Made nonstatic.
3313 (debug_printf): Now in i386-dregs.c.
3314 (TARGET_HAS_DR_LEN_8): Likewise.
3315 (DR_CONTROL_SHIFT): Likewise.
3316 (DR_CONTROL_SIZE): Likewise.
3317 (DR_RW_EXECUTE): Likewise.
3318 (DR_RW_WRITE): Likewise.
3319 (DR_RW_READ): Likewise.
3320 (DR_RW_IORW): Likewise.
3321 (DR_LEN_1): Likewise.
3322 (DR_LEN_2): Likewise.
3323 (DR_LEN_4): Likewise.
3324 (DR_LEN_8): Likewise.
3325 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3326 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3327 (DR_ENABLE_SIZE): Likewise.
3328 (DR_LOCAL_SLOWDOWN): Likewise.
3329 (DR_GLOBAL_SLOWDOWN): Likewise.
3330 (DR_CONTROL_RESERVED): Likewise.
3331 (I386_DR_CONTROL_MASK): Likewise.
3332 (I386_DR_VACANT): Likewise.
3333 (I386_DR_LOCAL_ENABLE): Likewise.
3334 (I386_DR_GLOBAL_ENABLE): Likewise.
3335 (I386_DR_DISABLE): Likewise.
3336 (I386_DR_SET_RW_LEN): Likewise.
3337 (I386_DR_GET_RW_LEN): Likewise.
3338 (I386_DR_WATCH_HIT): Likewise.
3339 (i386_wp_op_t): Likewise.
3340 (i386_show_dr): Likewise.
3341 (i386_length_and_rw_bits): Likewise.
3342 (i386_insert_aligned_watchpoint): Likewise.
3343 (i386_remove_aligned_watchpoint): Likewise.
3344 (i386_handle_nonaligned_watchpoint): Likewise.
3345 (i386_update_inferior_debug_regs): Likewise.
3346 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3347 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3348 (i386_region_ok_for_watchpoint):
3349 Use i386_dr_region_ok_for_watchpoint.
3350 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3352 2014-06-19 Gary Benson <gbenson@redhat.com>
3354 * i386-nat.c (i386_insert_hw_breakpoint): Use
3355 i386_insert_watchpoint.
3356 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3358 2014-06-19 Gary Benson <gbenson@redhat.com>
3360 * i386-nat.c (i386_dr_show): Renamed to
3361 i386_show_dr and made static. All uses updated.
3362 (i386_dr_length_and_rw_bits): Renamed to
3363 i386_length_and_rw_bits and made static.
3365 (i386_dr_insert_aligned_watchpoint): Renamed to
3366 i386_insert_aligned_watchpoint and made static.
3368 (i386_dr_remove_aligned_watchpoint): Renamed to
3369 i386_remove_aligned_watchpoint and made static.
3371 (i386_dr_update_inferior_debug_regs): Renamed to
3372 i386_update_inferior_debug_regs and made static.
3374 * nat/i386-dregs.h (i386_dr_show): Removed.
3375 (i386_dr_length_and_rw_bits): Likewise.
3376 (i386_dr_insert_aligned_watchpoint): Likewise.
3377 (i386_dr_remove_aligned_watchpoint): Likewise.
3378 (i386_dr_update_inferior_debug_regs): Likewise.
3380 2014-06-19 Gary Benson <gbenson@redhat.com>
3382 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3383 * configure: Regenerate.
3384 * config.in: Likewise.
3385 * main.c (signal.h): New include.
3386 (setup_alternate_signal_stack): New function.
3387 (captured_main): Call the above.
3388 * cp-support.c (signal.h): New include.
3389 (catch_demangler_crashes): New flag.
3390 (SIGJMP_BUF): New define.
3391 (SIGSETJMP): Likewise.
3392 (SIGLONGJMP): Likewise.
3393 (gdb_demangle_jmp_buf): New static global.
3394 (gdb_demangle_attempt_core_dump): Likewise.
3395 (gdb_demangle_signal_handler): New function.
3396 (gdb_demangle): If catch_demangler_crashes is set, install the
3397 above signal handler before calling bfd_demangle, and restore
3398 the original signal handler afterwards. Display the offending
3399 symbol and call demangler_warning the first time a segmentation
3401 (_initialize_cp_support): New maint set/show command.
3403 2014-06-19 Gary Benson <gbenson@redhat.com>
3405 * utils.h (resource_limit_kind): New enum.
3406 (can_dump_core): New declaration.
3407 (warn_cant_dump_core): Likewise.
3408 (dump_core): Likewise.
3409 * utils.c (dump_core): Made nonstatic. Added new
3410 parameter "limit_kind".
3411 (can_dump_core): Made nonstatic. Moved printing code to...
3412 (warn_cant_dump_core): New function.
3413 (can_dump_core_warn): Likewise.
3414 (internal_vproblem): Replace calls to can_dump_core with
3415 calls to can_dump_core_warn. Supply new argument to each.
3417 2014-06-19 Gary Benson <gbenson@redhat.com>
3419 * utils.h (demangler_vwarning): New declaration.
3420 (demangler_warning): Likewise.
3421 * utils.c (struct internal_problem)
3422 <user_settable_should_quit>: New field.
3423 <user_settable_should_dump_core>: Likewise
3424 (internal_error_problem): Add values for above new fields.
3425 (internal_warning_problem): Likewise.
3426 (demangler_warning_problem): New static global.
3427 (demangler_vwarning): New function.
3428 (demangler_warning): Likewise.
3429 (add_internal_problem_command): Selectively add commands.
3430 (_initialize_utils): New internal problem command.
3431 * maint.c (maintenance_demangler_warning): New function.
3432 (_initialize_maint_cmds): New command.
3434 2014-06-18 Tom Tromey <tromey@redhat.com>
3436 * f-valprint.c (info_common_command_for_block): Update.
3437 * symtab.h (struct general_symbol_info) <common_block>: Now
3440 2014-06-18 Tom Tromey <tromey@redhat.com>
3442 * symtab.h (struct symtab) <blockvector>: Now const.
3443 * ada-lang.c (ada_add_global_exceptions): Update.
3444 * buildsym.c (augment_type_symtab): Update.
3445 * dwarf2read.c (dw2_lookup_symbol): Update.
3446 * jit.c (finalize_symtab): Update.
3447 * jv-lang.c (add_class_symtab_symbol): Update.
3448 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3450 * objfiles.c (objfile_relocate1): Update.
3451 * psymtab.c (lookup_symbol_aux_psymtabs)
3452 (maintenance_check_psymtabs): Update.
3453 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3455 * spu-tdep.c (spu_catch_start): Update.
3456 * symmisc.c (dump_symtab_1): Update.
3457 * symtab.c (lookup_global_symbol_from_objfile)
3458 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3459 (basic_lookup_transparent_type_quick)
3460 (basic_lookup_transparent_type, find_pc_sect_symtab)
3461 (find_pc_sect_line, search_symbols): Update.
3462 * block.c (find_block_in_blockvector): Make "bl" const.
3463 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3465 (blockvector_contains_pc): Make "bv" const.
3466 (block_for_pc_sect): Update.
3467 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3468 (blockvector_contains_pc): Update.
3469 * breakpoint.c (resolve_sal_pc): Update.
3470 * inline-frame.c (block_starting_point_at): Update.
3472 2014-06-18 Tom Tromey <tromey@redhat.com>
3474 * completer.c (complete_line): Make "line_buffer" const.
3475 * completer.h (complete_line): Update.
3477 2014-06-18 Tom Tromey <tromey@redhat.com>
3479 * symtab.c (add_macro_name): Remove unneeded cast.
3481 2014-06-18 Tom Tromey <tromey@redhat.com>
3483 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3484 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3486 2014-06-18 Tom Tromey <tromey@redhat.com>
3488 * probe.c (info_probes_for_ops): Make "arg" const.
3489 * probe.h (info_probes_for_ops): Update.
3491 2014-06-18 Tom Tromey <tromey@redhat.com>
3493 * varobj.c (varobj_create): Update.
3494 * valops.c (value_of_this): Update.
3495 * tracepoint.c (add_local_symbols, scope_info): Update.
3496 * symtab.h (struct general_symbol_info) <block>: Now const.
3497 * symtab.c (skip_prologue_sal)
3498 (default_make_symbol_completion_list_break_on)
3499 (skip_prologue_using_sal): Update.
3500 * stack.h (iterate_over_block_locals)
3501 (iterate_over_block_local_vars): Update.
3502 * stack.c (print_frame_args): Update.
3503 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3505 (get_selected_block): Make return type const.
3506 * python/py-frame.c (frapy_block): Update.
3507 * python/py-block.c (gdbpy_block_for_pc): Update.
3508 * p-exp.y (%union) <bval>: Now const.
3509 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3510 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3511 * m2-exp.y (%union) <bval>: Now const.
3512 * linespec.c (get_current_search_block): Make return type const.
3513 (create_sals_line_offset, find_label_symbols): Update.
3514 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3516 (block_starting_point_at): Make "block" const.
3517 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3518 (check_exception_resume): Update.
3519 * guile/scm-frame.c (gdbscm_frame_block): Update.
3520 * guile/scm-block.c (gdbscm_lookup_block): Update.
3521 * frame.h (get_frame_block): Update.
3522 (get_selected_block): Make return type const.
3523 * frame.c (frame_id_inner): Update.
3524 * f-valprint.c (info_common_command_for_block)
3525 (info_common_command): Update.
3526 * dwarf2loc.c (dwarf2_find_location_expression)
3527 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3528 (locexpr_describe_location_piece): Update.
3529 * c-exp.y (%union) <bval>: Now const.
3530 * breakpoint.c (resolve_sal_pc): Update.
3531 * blockframe.c (get_frame_block):Make return type const.
3532 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3533 (block_innermost_frame): Update.
3534 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3535 (block_for_pc, block_for_pc_sect): Update.
3536 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3538 (block_for_pc_sect, block_for_pc): Make return type const.
3539 * ax-gdb.c (gen_expr): Update.
3540 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3541 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3542 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3543 (ada_read_var_value): Update.
3544 * ada-exp.y (struct name_info) <block>: Now const.
3546 (block_lookup): Constify.
3548 2014-06-18 Gary Benson <gbenson@redhat.com>
3550 * nat/i386-dregs.h: New file.
3551 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3552 * i386-nat.h (i386-dregs.h): New include.
3553 (DR_FIRSTADDR): Now in i386-dregs.h.
3554 (DR_LASTADDR): Likewise.
3555 (DR_NADDR): Likewise.
3556 (DR_STATUS): Likewise.
3557 (DR_CONTROL): Likewise.
3558 (i386_debug_reg_state): Likewise.
3559 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3561 2014-06-18 Don Breazeal <donb@codesourcery.com>
3563 * breakpoint.c (set_longjmp_breakpoint): Call
3564 momentary_breakpoint_from_master with additional argument.
3565 (set_longjmp_breakpoint_for_call_dummy): Call
3566 momentary_breakpoint_from_master with additional argument.
3567 (set_std_terminate_breakpoint): Call
3568 momentary_breakpoint_from_master with additional argument.
3569 (momentary_breakpoint_from_master): Add argument to function
3570 definition and use it to initialize structure member flag.
3571 (clone_momentary_breakpoint): Call
3572 momentary_breakpoint_from_master with additional argument.
3573 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3574 member flags set in momentary_breakpoint_from_master.
3576 2014-06-18 Gary Benson <gbenson@redhat.com>
3578 * i386-nat.c (i386_show_dr): Renamed to
3579 i386_dr_show and made nonstatic. All uses updated.
3580 (i386_length_and_rw_bits): Renamed to
3581 i386_dr_length_and_rw_bits and made nonstatic.
3583 (i386_insert_aligned_watchpoint): Renamed to
3584 i386_dr_insert_aligned_watchpoint and made nonstatic.
3586 (i386_remove_aligned_watchpoint): Renamed to
3587 i386_dr_remove_aligned_watchpoint and made nonstatic.
3589 (i386_update_inferior_debug_regs): Renamed to
3590 i386_dr_update_inferior_debug_regs and made nonstatic.
3593 2014-06-18 Gary Benson <gbenson@redhat.com>
3595 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3596 (i386_dr_low_can_set_control): Likewise.
3597 (i386_dr_low_set_addr): Likewise.
3598 (i386_dr_low_set_control): Likewise.
3599 (i386_dr_low_get_addr): Likewise.
3600 (i386_dr_low_get_status): Likewise.
3601 (i386_dr_low_get_control): Likewise.
3602 (i386_insert_aligned_watchpoint): Use new macros.
3603 (i386_update_inferior_debug_regs): Likewise.
3604 (i386_stopped_data_address): Likewise.
3606 2014-06-18 Gary Benson <gbenson@redhat.com>
3608 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3609 New parameter. All uses updated.
3611 2014-06-18 Gary Benson <gbenson@redhat.com>
3613 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3616 2014-06-18 Gary Benson <gbenson@redhat.com>
3618 * i386-nat.c (debug_printf): New macro.
3619 (i386_get_debug_register_length): Likewise.
3620 (TARGET_HAS_DR_LEN_8): Use above macro.
3621 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3622 and printf_unfiltered. Use phex to format values.
3624 2014-06-18 Gary Benson <gbenson@redhat.com>
3626 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3629 2014-06-18 Gary Benson <gbenson@redhat.com>
3631 * i386-nat.c: Comment changes.
3633 2014-06-18 Gary Benson <gbenson@redhat.com>
3635 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3637 2014-06-18 Gary Benson <gbenson@redhat.com>
3639 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3640 (i386_insert_aligned_watchpoint): Likewise.
3641 (i386_remove_aligned_watchpoint): Likewise.
3642 (i386_handle_nonaligned_watchpoint): Likewise.
3644 2014-06-18 Gary Benson <gbenson@redhat.com>
3646 * i386-nat.c: Whitespace changes.
3648 2014-06-17 Samuel Bronson <naesten@gmail.com>
3650 * MAINTAINERS: Update Roland McGrath's email address.
3651 Thanks to Sergio Durigan Junior for pointing out that he left
3652 Red Hat a while ago, and giving me a current address.
3654 2014-06-17 Tom Tromey <tromey@redhat.com>
3656 * utils.h (savestring): Remove declaration.
3658 2014-06-17 Tom Tromey <tromey@redhat.com>
3660 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3662 2014-06-16 Keith Seitz <keiths@redhat.com>
3665 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3666 to update the varobj if inferior_ptid is null_ptid.
3668 2014-06-16 Tom Tromey <tromey@redhat.com>
3670 * target.h (struct target_ops) <to_info_proc>: Make parameter
3672 (target_info_proc): Update.
3673 * target.c (target_info_proc): Make "args" const.
3674 * procfs.c (procfs_info_proc): Update.
3675 * linux-tdep.c (linux_info_proc): Update.
3676 (linux_core_info_proc_mappings): Make "args" const.
3677 (linux_core_info_proc): Update.
3678 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3679 * gdbarch.c: Rebuild.
3680 * gdbarch.h: Rebuild.
3681 * corelow.c (core_info_proc): Update.
3683 2014-06-16 Tom Tromey <tromey@redhat.com>
3685 * target.h (struct target_ops) <to_disconnect>: Make parameter
3687 (target_disconnect): Update.
3688 * target.c (target_disconnect): Make "args" const.
3689 * target-delegates.c: Rebuild.
3690 * remote.c (remote_disconnect): Update.
3691 * record.h (record_disconnect): Update.
3692 * record.c (record_disconnect): Update.
3693 * inf-child.c (inf_child_disconnect): Update.
3695 2014-06-16 Tom Tromey <tromey@redhat.com>
3697 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3698 * target.c (debug_to_rcmd, default_rcmd): Update.
3699 * target-delegates.c: Rebuild.
3700 * remote.c (remote_rcmd): Update.
3701 * monitor.c (monitor_rcmd): Update.
3703 2014-06-16 Pedro Alves <palves@redhat.com>
3705 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3706 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3707 have OBJF_SHARED set.
3708 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3709 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3710 instead of OBJF_USERLOADED.
3711 * objfiles.h (OBJF_SHARED): Update comment.
3712 (userloaded_objfile_contains_address_p): Rename to ...
3713 (shared_objfile_contains_address_p): ... this, and update
3715 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3717 (remove_symbol_file_command): Skip objfiles that don't have
3720 2014-06-16 Tom Tromey <tromey@redhat.com>
3722 * minsyms.h (prim_record_minimal_symbol)
3723 (prim_record_minimal_symbol_and_info): Update comments.
3725 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3727 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3728 or --without-guile, according to how GDB was built.
3730 2014-06-13 Tom Tromey <tromey@redhat.com>
3732 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3734 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3736 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3738 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3739 help_list.Pass all_commands, not -1, to help_list.
3740 * cli/cli-dump.c (dump_command, append_command)
3741 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3742 (binary_dump_command, binary_append_command): Pass all_commands,
3743 not -1, to help_list.
3744 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3746 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3748 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3750 * top.c (set_history): Pass all_commands, not -1, to help_list.
3751 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3752 all_commands, not -1, to help_list.
3753 * symfile.c (overlay_command): Pass all_commands, not -1, to
3755 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3757 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3759 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3761 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3762 not -1, to help_list.
3763 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3764 not -1, to help_list.
3765 * maint.c (maintenance_command, maintenance_info_command)
3766 (maintenance_print_command, maintenance_set_cmd): Pass
3767 all_commands, not -1, to help_list.
3768 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3770 * language.c (set_check): Pass all_commands, not -1, to help_list.
3771 * infcmd.c (unset_command): Pass all_commands, not -1, to
3773 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3775 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3777 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3779 * breakpoint.c (save_command): Pass all_commands, not -1, to
3781 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3782 all_commands, not -1, to help_list.
3784 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3786 * regcache.c (struct register_to_invalidate): New structure.
3787 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3789 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3791 2014-06-12 Yao Qi <yao@codesourcery.com>
3793 * varobj.c (varobj_get_num_children): Call
3794 varobj_is_dynamic_p.
3795 (varobj_list_children): Likewise.
3796 (varobj_update): Likewise. Update comments.
3798 2014-06-12 Yao Qi <yao@codesourcery.com>
3800 * varobj.c (varobj_pretty_printed_p): Rename to ...
3801 (varobj_is_dynamic_p): ... this. New function.
3802 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3803 (varobj_is_dynamic_p): Declare.
3804 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3805 (mi_print_value_p, varobj_update_one): Likewise.
3807 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3808 Yao Qi <yao@codesourcery.com>
3810 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3811 (varobj_get_iterator): Wrap up code for pretty-printer by
3812 "#if HAVE_PYTHON" and "#endif".
3813 (update_dynamic_varobj_children): Likewise.
3815 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3816 Yao Qi <yao@codesourcery.com>
3818 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3819 gdb_python_initialized is false. Move some code from varobj.c.
3820 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3821 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3822 (struct varobj_item): Moved to varobj-iter.h".
3823 (varobj_clear_saved_item): New function.
3824 (update_dynamic_varobj_children): Move python-related code to
3826 (free_variable): Call varobj_clear_saved_item and
3829 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3830 Yao Qi <yao@codesourcery.com>
3832 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3833 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3834 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3835 (py-varobj.o): New rule.
3836 * python/py-varobj.c: New file.
3837 * python/python-internal.h (py_varobj_get_iterator): Declare.
3838 * varobj-iter.h: New file.
3839 * varobj.c: Include "varobj-iter.h"
3840 (struct varobj) <child_iter>: Change its type from "PyObject *"
3841 to "struct varobj_iter *".
3842 <saved_item>: Likewise.
3843 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3844 [HAVE_PYTHON] (varobj_get_iterator): New function.
3845 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3846 python-specific code to python/py-varobj.c.
3847 (install_visualizer): Call varobj_iter_delete instead of
3849 * varobj.h (varobj_ensure_python_env): Declare.
3851 2014-06-12 Yao Qi <yao@codesourcery.com>
3853 * varobj.c (struct varobj_item): New structure.
3854 (create_child_with_value): Update declaration.
3855 (varobj_add_child): Replace arguments 'name' and 'value' with
3856 'item'. All callers updated.
3857 (install_dynamic_child): Likewise.
3858 (update_dynamic_varobj_children): Likewise.
3859 (varobj_add_child): Likewise.
3860 (create_child_with_value): Likewise.
3862 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3864 * NEWS: Create a new section for the next release branch.
3865 Rename the section of the current branch, now that it has
3868 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3870 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3871 * version.in: Bump version to 7.8.50.DATE-cvs.
3873 2014-06-11 Pedro Alves <palves@redhat.com>
3876 * ser-mingw.c (net_windows_socket_check_pending): New function.
3877 (net_windows_select_thread): Ignore spurious wakeups. Use
3878 net_windows_socket_check_pending.
3879 (net_windows_wait_handle): Check for pending events with
3880 ioctlsocket, through net_windows_socket_check_pending, instead of
3881 checking the socket's event.
3883 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3885 * python/python-internal.h (gdb_PyObject_GetAttrString)
3886 (gdb_PyObject_HasAttrString): New inline function definitions.
3887 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3888 char * of the second argument to PyObject_GetAttrString.
3890 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3892 * serial.c (serial_write): Fix index of character to be printed
3893 in call to serial_logchar when serial debug traces are enabled.
3895 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3897 * gdbtypes (resolve_dynamic_range): Add function description.
3899 2014-06-09 Pedro Alves <palves@redhat.com>
3901 * linux-nat.c (linux_child_follow_fork): Initialize status with
3902 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3903 inner block. Only pass the signal to PTRACE_DETACH if in pass
3906 2014-06-09 Gary Benson <gbenson@redhat.com>
3908 * common/signals.c (gdb_signal_from_host): Reorder to separate
3909 the always-available ANSI-standard signals from the signals that
3911 (do_gdb_signal_to_host): Likewise.
3912 * proc-events.c (signal_table): Likewise.
3914 2014-06-08 Hui Zhu <hui@codesourcery.com>
3916 * common/linux-ptrace.c (linux_disable_event_reporting): New
3918 * common/linux-ptrace.h (linux_disable_event_reporting): New
3920 * linux-nat.c (linux_child_follow_fork): Do a single step before
3923 2014-06-07 Keith Seitz <keiths@redhat.com>
3927 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3928 from symbol_matches_domain in symtab.c. All local callers
3929 of symbol_matches_domain updated.
3930 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3931 search STRUCT_DOMAIN.
3932 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3933 independently. standard_lookup will do that automatically.
3934 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3935 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3936 (cp_lookup_symbol_in_namespace): Likewise.
3937 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3938 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3939 may return a STRUCT_DOMAIN match.
3940 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3941 * cp-support.c: Include language.h.
3942 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3944 * psymtab.c (match_partial_symbol): Compare the requested
3945 domain with the symbol's domain directly.
3946 (lookup_partial_symbol): Likewise.
3947 * symtab.c (lookup_symbol_in_language): Explain when/why
3948 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3949 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3950 appropriate languages.
3951 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3952 and moved to ada-lang.c
3953 (lookup_block_symbol): Explain that this function only returns
3954 symbol matching the requested DOMAIN.
3955 Compare the requested domain with the symbol's domain directly.
3956 (iterate_over_symbols): Compare the requested domain with the
3957 symbol's domain directly.
3958 * symtab.h (symbol_matches_domain): Remove.
3960 2014-06-06 Doug Evans <xdje42@gmail.com>
3962 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3963 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3964 (gdbscm_guile_version_is_at_least): Declare.
3965 (gdbscm_scm_string_to_int): Declare.
3966 * guile/guile.c (gdbscm_guile_major_version): New global.
3967 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3968 (guile_datadir): New static global.
3969 (gdbscm_guile_data_directory): New function.
3970 (initialize_scheme_side): Update.
3971 (misc_guile_functions): Add guile-data-directory.
3972 (initialize_gdb_module): Fetch guile version number.
3973 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3974 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3975 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3976 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3978 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3979 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3980 * guile/scm-value.c (gdbscm_value_to_string): Only call
3981 scm_port_conversion_strategy if Guile version >= 2.0.6.
3983 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3985 * main.c (print_gdb_help): Add -q and --silent.
3987 2014-06-06 Gary Benson <gbenson@redhat.com>
3989 * common/signals.c: Remove preprocessor conditionals for
3990 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3991 SIGSEGV and SIGTERM.
3992 * proc-events.c: Likewise.
3994 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3996 * symfile.c (symfile_free_objfile): Remove restriction to
3998 * symfile-mem.c (symbol_file_add_from_memory): Call
3999 add_target_sections_of_objfile.
4001 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4003 * guile/scm-value.c (gdbscm_history_append_x): Use
4004 'vlscm_get_value_smob_arg_unsafe' instead of
4005 'vlscm_scm_to_value'.
4007 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4010 * utils.c (printchar): Don't escape at all if quoter is NUL.
4011 Update function documentation to clarify effect of parameter
4013 * remote.c (escape_buffer): Pass '\\' as the quoter to
4014 fputstrn_unfiltered.
4015 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4016 generate the output.
4017 (mi_solib_unloaded): Same.
4019 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4021 * development.sh: Delete.
4022 * Makefile.in (config.status): Adjust dependency on development.sh.
4023 * configure.ac: Adjust development.sh source call.
4024 * configure: Regenerate.
4026 2014-06-04 Doug Evans <xdje42@gmail.com>
4028 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4029 is_scheme_bkpt, spec.
4030 (bpscm_make_breakpoint_smob): Initialize new members.
4031 (gdbscm_create_breakpoint_x): Split into two ...
4032 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4033 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4034 (scheme_function breakpoint_functions): Update.
4035 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4036 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4037 register-breakpoint!.
4039 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4042 * mem-break.c (z_type_supported): Return zero if
4043 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4045 2014-06-04 Tom Tromey <tromey@redhat.com>
4047 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4048 value_from_contents_and_address_unresolved.
4049 (ada_template_to_fixed_record_type_1): Likewise.
4050 (ada_which_variant_applies): Likewise.
4051 * value.h (value_from_contents_and_address_unresolved): Declare.
4052 * value.c (value_from_contents_and_address_unresolved): New
4054 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4055 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4056 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4058 2014-06-04 Tom Tromey <tromey@redhat.com>
4060 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4062 2014-06-04 Tom Tromey <tromey@redhat.com>
4064 * procfs.c (procfs_attach): Make "args" const.
4065 * windows-nat.c (windows_attach): Make "args" const.
4066 * nto-procfs.c (procfs_attach): Make "args" const.
4067 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4068 * go32-nat.c (go32_attach): Make "args" const.
4069 * gnu-nat.c (gnu_attach): Make "args" const.
4070 * darwin-nat.c (darwin_attach): Make "args" const.
4071 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4072 * linux-nat.c (linux_nat_attach): Make "args" const.
4073 * remote.c (extended_remote_attach_1, extended_remote_attach):
4075 * target.h (struct target_ops) <to_attach>: Make "args" const.
4076 (find_default_attach): Likewise.
4077 * utils.c (parse_pid_to_attach): Make "args" const.
4078 * utils.h (parse_pid_to_attach): Update.
4080 2014-06-04 Tom Tromey <tromey@redhat.com>
4082 * target-delegates.c: Rebuild.
4083 * target.c (default_thread_address_space): New function.
4084 (target_thread_address_space): Simplify.
4085 * target.h (struct target_ops) <to_thread_address_space>: Add
4086 TARGET_DEFAULT_FUNC.
4088 2014-06-04 Doug Evans <xdje42@gmail.com>
4090 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4092 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4094 * record-btrace.c: Include event-loop.h and inf-loop.h.
4095 (record_btrace_resume_exec_dir)
4096 (record_btrace_async_inferior_event_handler)
4097 (record_btrace_handle_async_inferior_event): New.
4098 (record_btrace_open): Create async event handler.
4099 (record_btrace_close): Delete async event handler.
4100 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4101 Mark async event handler.
4102 (record_btrace_execution_direction): New.
4103 (init_record_btrace_ops): Initialize to_execution_direction.
4105 2014-06-03 Doug Evans <xdje42@gmail.com>
4107 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4108 (gdbscm_make_parameter): Ditto.
4110 2014-06-03 Doug Evans <dje@google.com>
4112 * exec.c (exec_close_1): Call clear_section_table instead of
4113 resize_section_table.
4114 (clear_section_table): New function.
4115 (resize_section_table): Make static. Rename arg num_added to
4117 * exec.h (clear_section_table): Declare.
4118 (resize_section_table): Delete.
4119 * progspace.c (release_program_space): Call clear_section_table
4120 instead of resize_section_table.
4122 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4124 * NEWS (Python Scripting): Add entry about the new xmethods
4127 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4129 * python/py-xmethods.c: New file.
4130 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4131 (objfpy_dealloc): XDECREF on the new xmethods field.
4132 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4134 (objfpy_get_xmethods): New function.
4135 (objfile_getset): New entry 'xmethods'.
4136 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4137 (pspy_dealloc): XDECREF on the new xmethods field.
4138 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4140 (pspy_get_xmethods): New function.
4141 (pspace_getset): New entry 'xmethods'.
4142 * python/python-internal.h: Add declarations for new functions.
4143 * python/python.c (_initialize_python): Invoke
4144 gdbpy_initialize_xmethods.
4145 * python/lib/gdb/__init__.py (xmethods): New
4147 * python/lib/gdb/xmethod.py: New file.
4148 * python/lib/gdb/command/xmethods.py: New file.
4150 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4152 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4153 best match method returned by find_overload_match is an xmethod.
4154 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4155 the best matching operator returned by find_overload_match is an
4157 * valops.c: #include "extension.h".
4158 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4159 Return void. The list of matching source methods is returned in
4160 "fn_list" and a vector of matching debug method workers is
4161 returned in "xm_worker_vec". Update all callers.
4162 (value_find_oload_method_list): Likewise.
4163 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4164 non-NULL, then the index of the best matching method in this
4165 vector is returned. Update all callers.
4166 (find_overload_match): Include xmethods while performing overload
4169 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4171 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4172 * extension-priv.h (struct extension_language_ops): Add the
4174 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4175 get_matching_xmethod_workers, get_xmethod_argtypes,
4176 invoke_xmethod, free_xmethod_worker,
4177 free_xmethod_worker_vec): New functions.
4178 * extension.h: #include "common/vec.h".
4179 New function declarations.
4180 (struct xmethod_worker): New struct.
4181 (VEC (xmethod_worker_ptr)): New vector type.
4182 (xmethod_worker_ptr): New typedef.
4183 (xmethod_worker_vec): Likewise.
4184 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4186 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4187 (struct builtin_type): New field "xmethod".
4188 * valarith.c (value_ptradd): Assert that the value argument is not
4190 * valops.c (value_must_coerce_to_target): Return 0 for
4191 lval_xcallable values.
4192 * value.c (struct value): New field XM_WORKER in the field
4194 (value_address, value_raw_address): Return 0 for lval_xcallable
4196 (set_value_address): Assert that the value is not an
4198 (value_free): Free the associated xmethod worker when freeing
4199 lval_xcallable values.
4200 (set_value_component_location): Assert that the WHOLE value is not
4202 (value_of_xmethod, call_xmethod): New functions.
4203 * value.h: Declare "struct xmethod_worker".
4204 Declare new functions value_of_xmethod, call_xmethod.
4206 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4207 Pedro Alves <palves@redhat.com>
4209 PR breakpoints/17000
4210 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4211 New function, extracted from software_breakpoint_inserted_here_p.
4212 (software_breakpoint_inserted_here_p): Replace factored out code
4213 by call to find_non_raw_software_breakpoint_inserted_here.
4214 (bp_target_info_copy_insertion_state): New function.
4215 (bkpt_insert_location): Handle the case of a single-step
4216 breakpoint already inserted at the same address.
4217 (bkpt_remove_location): Handle the case of a single-step
4218 breakpoint still inserted at the same address.
4219 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4220 breakpoint already inserted at the same address.
4221 (deprecated_remove_raw_breakpoint): Handle the case of a
4222 non-raw breakpoint still inserted at the same address.
4223 (find_single_step_breakpoint): New function, extracted from
4224 single_step_breakpoint_inserted_here_p.
4225 (find_single_step_breakpoint): New function,
4226 factored out from single_step_breakpoint_inserted_here_p.
4227 (single_step_breakpoint_inserted_here_p): Reimplement.
4229 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4231 Pushed by Joel Brobecker <brobecker@adacore.com>
4232 * source.c (show_substitute_path_command): Fix display of matching
4235 2014-06-03 Gary Benson <gbenson@redhat.com>
4237 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4239 2014-06-02 Doug Evans <xdje42@gmail.com>
4241 Add parameter support for Guile.
4242 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4243 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4244 (scm-param.o): New rule.
4245 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4246 (gdbscm_misc_error): Declare.
4247 (gdbscm_canonicalize_command_name): Declare.
4248 (gdbscm_scm_to_host_string): Declare.
4249 (gdbscm_scm_from_host_string): Declare.
4250 (gdbscm_initialize_parameters): Declare.
4251 * guile/guile.c (initialize_gdb_module): Call
4252 gdbscm_initialize_parameters.
4253 * guile/lib/gdb.scm: Export parameter symbols.
4254 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4255 cmdscm_canonicalize_name and made public. All callers updated.
4256 * guile/scm-exception.c (gdbscm_misc_error): New function.
4257 * guile/scm-param.c: New file.
4258 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4259 (gdbscm_scm_to_host_string): New function.
4260 (gdbscm_scm_from_host_string): New function.
4261 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4263 2014-06-02 Doug Evans <xdje42@gmail.com>
4265 Add command support for Guile.
4266 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4267 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4268 (scm-cmd.o): New rule.
4269 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4270 (gdbscm_user_error_p): Declare.
4271 (gdbscm_parse_command_name): Declare.
4272 (gdbscm_valid_command_class_p): Declare.
4273 (gdbscm_initialize_commands): Declare.
4274 * guile/guile.c (initialize_gdb_module): Call
4275 gdbscm_initialize_commands.
4276 * guile/lib/gdb.scm: Export command symbols.
4277 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4278 (throw-user-error): New function.
4279 * guile/scm-cmd.c: New file.
4280 * guile/scm-exception.c (user_error_symbol): New static global.
4281 (gdbscm_user_error_p): New function.
4282 (gdbscm_initialize_exceptions): Set user_error_symbol.
4283 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4285 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4287 * top.c (command_loop): Handle comments here...
4288 (command_line_input): ... not here.
4290 2014-06-02 Doug Evans <xdje42@gmail.com>
4292 Add progspace support for Guile.
4293 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4294 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4295 (scm-progspace.o): New rule.
4296 * guile/guile-internal.h (pspace_smob): New typedef.
4297 (psscm_pspace_smob_pretty_printers): Declare.
4298 (psscm_pspace_smob_from_pspace): Declare.
4299 (psscm_scm_from_pspace): Declare.
4300 * guile/guile.c (initialize_gdb_module): Call
4301 gdbscm_initialize_pspaces.
4302 * guile/lib/gdb.scm: Export progspace symbols.
4303 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4305 (append-pretty-printer!): Ditto.
4306 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4308 * guile/scm-progspace.c: New file.
4310 2014-06-03 Alan Modra <amodra@gmail.com>
4312 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4313 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4315 2014-06-02 Doug Evans <dje@google.com>
4317 Add support for skeletonless type units.
4318 * dwarf2read.c (struct dwarf2_per_objfile): New member
4319 n_allocated_type_units.
4320 (struct dwarf2_per_objfile) <tu_stats>: New member
4321 nr_all_type_units_reallocs.
4322 (create_signatured_type_table_from_index): Initialize
4323 n_allocated_type_units
4324 (create_all_type_units): Ditto.
4325 (add_type_unit): Move up in file. New arg slot.
4326 All callers updated. Increase space for all_type_units more
4328 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4329 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4330 (lookup_dwp_signatured_type): Ditto.
4331 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4332 All callers updated.
4333 (build_type_psymtabs_1): Leave type_unit_groups as
4334 NULL if no TUs present.
4335 (print_tu_stats): New function.
4336 (process_skeletonless_type_unit): New function.
4337 (process_dwo_file_for_skeletonless_type_units): New
4339 (process_skeletonless_type_units): New function.
4340 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4341 Call print tu_stats if debugging enabled.
4343 2014-06-02 Pedro Alves <palves@redhat.com>
4345 * breakpoint.c (build_target_command_list): Don't build a command
4346 list if we have any duplicate location that isn't a dprintf.
4348 2014-06-02 Pedro Alves <palves@redhat.com>
4350 * breakpoint.c (dprintf_breakpoint_hit): New function.
4351 (initialize_breakpoint_ops): Install it as dprintf's
4352 breakpoint_hit method.
4354 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4356 * source.c (substitute_path_rule_matches): Simplify using
4357 filename_ncmp instead of FILENAME_CMP.
4359 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4361 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4363 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4365 * configure.ac: When Guile is available, check for the
4366 availability of 'scm_new_smob'.
4367 * configure, config.h.in: Regenerate.
4368 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4371 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4373 * frame.c (struct frame_info): Add stop_string field.
4374 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4375 (get_prev_frame_always): Old content moved into
4376 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4377 TRY_CATCH, handle MEMORY_ERROR exceptions.
4378 (frame_stop_reason_string): New function definition.
4379 * frame.h (unwind_stop_reason_to_string): Extend comment to
4380 mention frame_stop_reason_string.
4381 (frame_stop_reason_string): New function declaration.
4382 * stack.c (frame_info): Switch to frame_stop_reason_string.
4383 (backtrace_command_1): Switch to frame_stop_reason_string.
4384 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4385 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4386 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4388 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4390 * frame.c (frame_stop_reason_string): Rename to ...
4391 (unwind_stop_reason_to_string): this.
4392 * frame.h (frame_stop_reason_string): Rename to ...
4393 (unwind_stop_reason_to_string): this.
4394 * stack.c (frame_info): Update call to frame_stop_reason_string.
4395 (backtrace_command_1): Likewise.
4396 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4397 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4399 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4401 * frame.c (remove_prev_frame): New function.
4402 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4405 2014-05-29 Pedro Alves <palves@redhat.com>
4407 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4408 and make it const. When a single-step decays to a continue,
4409 clear 'step', not 'hw_step'. Pass whether the caller wanted
4410 to step to user_visible_resume_ptid, not what we ask the
4413 2014-05-29 Pedro Alves <palves@redhat.com>
4415 * infrun.c (process_event_stop_test, handle_step_into_function)
4416 (handle_step_into_function_backward): Adjust.
4417 Don't set the even thread's stop_step and call stop_waiting before
4418 calling end_stepping_range. Instead do that ...
4419 (end_stepping_range): ... here. Take an ecs pointer parameter.
4421 2014-05-29 Pedro Alves <palves@redhat.com>
4423 * infrun.c (stop_stepping): Rename to ...
4424 (stop_waiting): ... this.
4425 (proceed): Update comment.
4426 (process_event_stop_test, handle_inferior_event)
4427 (handle_signal_stop, handle_step_into_function)
4428 (handle_step_into_function_backward): Update.
4430 2014-05-29 Pedro Alves <palves@redhat.com>
4432 * infcall.c (run_inferior_call): Don't check whether the current
4433 thread is running after the proceed call.
4435 2014-05-29 Pedro Alves <palves@redhat.com>
4436 Tom Tromey <tromey@redhat.com>
4438 * NEWS: Mention "maint set target-async", "set mi-async", and that
4439 background execution commands are now always available.
4440 * target.h (target_async_permitted): Update comment.
4441 * target.c (target_async_permitted, target_async_permitted_1):
4443 (set_target_async_command): Rename to ...
4444 (maint_set_target_async_command): ... this.
4445 (show_target_async_command): Rename to ...
4446 (maint_show_target_async_command): ... this.
4447 (_initialize_target): Adjust.
4448 * infcmd.c (prepare_execution_command): Make extern.
4449 * inferior.h (prepare_execution_command): Declare.
4450 * infrun.c (set_observer_mode): Leave target async alone.
4451 * mi/mi-interp.c (mi_interpreter_init): Install
4452 mi_on_sync_execution_done as sync_execution_done observer.
4453 (mi_on_sync_execution_done): New function.
4454 (mi_execute_command_input_handler): Don't print the prompt if we
4455 just started a synchronous command with an async target.
4456 (mi_on_resume): Check sync_execution before printing prompt.
4457 * mi/mi-main.h (mi_async_p): Declare.
4458 * mi/mi-main.c: Include gdbcmd.h.
4459 (mi_async_p): New function.
4460 (mi_async, mi_async_1): New globals.
4461 (set_mi_async_command, show_mi_async_command, mi_async): New
4463 (exec_continue): Call prepare_execution_command.
4464 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4465 (mi_execute_async_cli_command): Use mi_async_p.
4466 (_initialize_mi_main): Install "set mi-async". Make
4467 "target-async" a deprecated alias.
4469 2014-05-29 Pedro Alves <palves@redhat.com>
4471 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4472 (_initialize_cli_interp): Adjust.
4473 * event-loop.c: Include "observer.h".
4474 (start_event_loop): Notify 'command_error' observers instead of
4475 calling display_gdb_prompt. Remove FIXME comment.
4476 * event-top.c (display_gdb_prompt): Remove call into the
4478 * inf-loop.c: Include "observer.h".
4479 (inferior_event_handler): Notify 'command_error' observers instead
4480 of calling display_gdb_prompt.
4481 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4482 observers instead of calling display_gdb_prompt.
4483 * interps.c (interp_set): Don't call display_gdb_prompt.
4484 (current_interp_display_prompt_p): Delete.
4485 * interps.h (interp_prompt_p): Delete declaration.
4486 (interp_prompt_p_ftype): Delete.
4487 (struct interp_procs) <prompt_proc_p>: Delete field.
4488 (current_interp_display_prompt_p): Delete declaration.
4489 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4490 (_initialize_mi_interp): Adjust.
4491 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4492 'command_error' observers.
4493 (tui_on_sync_execution_done, tui_on_command_error): New
4495 (tui_display_prompt_p): Delete.
4496 (_initialize_tui_interp): Adjust.
4498 2014-05-29 Pedro Alves <palves@redhat.com>
4501 * cli/cli-interp.c: Include infrun.h and observer.h.
4502 (cli_uiout, cli_interp): New globals.
4503 (cli_on_signal_received, cli_on_end_stepping_range)
4504 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4506 (cli_interpreter_init): Install them as 'end_stepping_range',
4507 'signal_received' 'signal_exited', 'exited' and 'no_history'
4509 (_initialize_cli_interp): Remove cli_interp local.
4510 * infrun.c (handle_inferior_event): Call the several stop reason
4511 observers instead of printing the stop reason directly.
4512 (end_stepping_range): New function.
4513 (print_end_stepping_range_reason, print_signal_exited_reason)
4514 (print_exited_reason, print_signal_received_reason)
4515 (print_no_history_reason): Make static, and add an uiout
4516 parameter. Print to that instead of to CURRENT_UIOUT.
4517 * infrun.h (print_end_stepping_range_reason)
4518 (print_signal_exited_reason, print_exited_reason)
4519 (print_signal_received_reason print_no_history_reason): New
4521 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4523 <cli_uiout>: New field.
4524 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4525 uiout for CLI output. Install 'signal_received',
4526 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4528 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4529 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4530 (mi_on_no_history): New functions.
4531 (ui_out_free_cleanup): Delete function.
4532 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4533 instead use the one already stored in the MI interpreter data.
4534 (mi_ui_out): Adjust.
4535 * tui/tui-interp.c: Include infrun.h and observer.h.
4536 (tui_interp): New global.
4537 (tui_on_signal_received, tui_on_end_stepping_range)
4538 (tui_on_signal_exited, tui_on_exited)
4539 (tui_on_no_history): New functions.
4540 (tui_init): Install them as 'end_stepping_range',
4541 'signal_received' 'signal_exited', 'exited' and 'no_history'
4543 (_initialize_tui_interp): Delete tui_interp local.
4545 2014-05-29 Pedro Alves <palves@redhat.com>
4548 * linux-nat.c (linux_nat_resume_callback): Rename the second
4549 parameter to 'except'. Skip LP if it points to EXCEPT.
4550 (linux_nat_resume): Don't mark the event lwp as not stopped
4551 before resuming sibling lwps. Instead ask
4552 linux_nat_resume_callback to skip the event lwp. Mark it as not
4553 stopped after actually resuming it.
4554 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4556 (wait_lwp): Mark the lwp as stopped here.
4557 (stop_wait_callback): Mark the lwp as not stopped right after
4558 resuming it. Don't mark lwps as stopped here.
4559 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4560 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4562 2014-05-29 Pedro Alves <palves@redhat.com>
4565 * infrun.c (resume): Determine how much to resume depending on
4566 whether the caller wanted a step, not whether we can hardware step
4567 the target. Mark all threads that we intend to run as running,
4568 unless we're calling an inferior function.
4569 (normal_stop): If the thread is running an infcall, don't finish
4571 * target.c (target_resume): Don't mark threads as running here.
4573 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4575 * serial.c (_initialize_serial): Remove support for
4576 the "set remotebaud" and "show remotebaud" commands.
4577 * NEWS: Add entry documenting the removal of that command.
4579 2014-05-28 Yao Qi <yao@codesourcery.com>
4581 * charset.c: Fix typo in comments.
4583 2014-05-27 Gary Benson <gbenson@redhat.com>
4585 * utils.c (internal_vproblem): Prompt for a bug report.
4587 2014-05-26 Andy Wingo <wingo@igalia.com>
4589 * guile/scm-arch.c (arscm_mark_arch_smob):
4590 * guile/scm-block.c (bkscm_mark_block_smob)
4591 (bkscm_mark_block_syms_progress_smob):
4592 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4593 * guile/scm-exception.c (exscm_mark_exception_smob):
4594 * guile/scm-frame.c (frscm_mark_frame_smob):
4595 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4596 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4597 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4598 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4599 (ppscm_mark_pretty_printer_worker_smob):
4600 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4601 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4602 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4603 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4605 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4608 2014-05-26 Andy Wingo <wingo@igalia.com>
4609 Doug Evans <xdje42@gmail.com>
4611 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4612 empty_base_class. All uses updated.
4613 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4614 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4616 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4617 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4618 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4619 (gdbscm_gsmob_has_property_p, add_property_name)
4620 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4621 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4622 (gdb-object-has-property?, gdb-object-properties): Remove.
4623 (gdb-object-kind): Renamed from gsmob-kind.
4625 2014-05-26 Andy Wingo <wingo@igalia.com>
4627 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4628 * configure: Regenerate.
4630 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4632 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4634 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4636 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4637 (replay_memory_access_read_only, replay_memory_access_read_write)
4638 (replay_memory_access_types, replay_memory_access)
4639 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4640 (cmd_set_record_btrace, cmd_show_record_btrace)
4641 (cmd_show_replay_memory_access): New.
4642 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4643 (record_btrace_remove_breakpoint): Replace
4644 record_btrace_allow_memory_access with replay_memory_access.
4645 (_initialize_record_btrace): Add commands.
4646 * NEWS: Announce it.
4648 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4650 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4652 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4654 * MAINTAINERS (Write After Approval): Move self back from
4657 2014-05-22 Pedro Alves <palves@redhat.com>
4659 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4660 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4661 (disable_randomization, enum exec_direction_kind)
4662 (execution_direction, stop_registers, start_remote)
4663 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4664 (wait_for_inferior, normal_stop, get_last_target_status)
4665 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4666 (insert_step_resume_breakpoint_at_sal)
4667 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4668 (set_step_info, print_stop_event, signal_stop_state)
4669 (signal_print_state, signal_pass_state, signal_stop_update)
4670 (signal_print_update, signal_pass_update)
4671 (update_signals_program_target, clear_exit_convenience_vars)
4672 (displaced_step_dump_bytes, update_observer_mode)
4673 (signal_catch_update, gdb_signal_from_command): Move
4675 * infrun.h: ... to this new file.
4676 * amd64-tdep.c: Include infrun.h.
4677 * annotate.c: Include infrun.h.
4678 * arch-utils.c: Include infrun.h.
4679 * arm-linux-tdep.c: Include infrun.h.
4680 * arm-tdep.c: Include infrun.h.
4681 * break-catch-sig.c: Include infrun.h.
4682 * breakpoint.c: Include infrun.h.
4683 * common/agent.c: Include infrun.h instead of inferior.h.
4684 * corelow.c: Include infrun.h.
4685 * event-top.c: Include infrun.h.
4686 * go32-nat.c: Include infrun.h.
4687 * i386-tdep.c: Include infrun.h.
4688 * inf-loop.c: Include infrun.h.
4689 * infcall.c: Include infrun.h.
4690 * infcmd.c: Include infrun.h.
4691 * infrun.c: Include infrun.h.
4692 * linux-fork.c: Include infrun.h.
4693 * linux-nat.c: Include infrun.h.
4694 * linux-thread-db.c: Include infrun.h.
4695 * monitor.c: Include infrun.h.
4696 * nto-tdep.c: Include infrun.h.
4697 * procfs.c: Include infrun.h.
4698 * record-btrace.c: Include infrun.h.
4699 * record-full.c: Include infrun.h.
4700 * remote-m32r-sdi.c: Include infrun.h.
4701 * remote-mips.c: Include infrun.h.
4702 * remote-notif.c: Include infrun.h.
4703 * remote-sim.c: Include infrun.h.
4704 * remote.c: Include infrun.h.
4705 * reverse.c: Include infrun.h.
4706 * rs6000-tdep.c: Include infrun.h.
4707 * s390-linux-tdep.c: Include infrun.h.
4708 * solib-irix.c: Include infrun.h.
4709 * solib-osf.c: Include infrun.h.
4710 * solib-svr4.c: Include infrun.h.
4711 * target.c: Include infrun.h.
4712 * top.c: Include infrun.h.
4713 * windows-nat.c: Include infrun.h.
4714 * mi/mi-interp.c: Include infrun.h.
4715 * mi/mi-main.c: Include infrun.h.
4716 * python/py-threadevent.c: Include infrun.h.
4718 2014-05-22 Pedro Alves <palves@redhat.com>
4720 * infrun.c (handle_inferior_event): Store the exit code for
4721 --return-child-result here, instead of ...
4722 (print_exited_reason): ... here.
4724 2014-05-21 Pedro Alves <palves@redhat.com>
4727 * gdbthread.h (struct thread_control_state): New field
4729 * infrun.c (follow_fork): Copy the new thread control field to the
4731 (clear_proceed_status_thread): Clear the new thread control field.
4732 (proceed): Set the new thread control field.
4733 * interps.h (command_interp): Declare.
4734 * interps.c (command_interpreter): New global.
4735 (command_interp): New function.
4736 (interp_exec): Set `command_interpreter' while here.
4737 * cli-out.c (cli_uiout_dtor): New function.
4738 (cli_ui_out_impl): Install it.
4739 * mi/mi-interp.c: Include cli-out.h.
4740 (mi_cmd_interpreter_exec): Add comment.
4741 (restore_current_uiout_cleanup): New function.
4742 (ui_out_free_cleanup): New function.
4743 (mi_on_normal_stop): If finishing an execution command started by
4744 a CLI command, or any kind of breakpoint-like event triggered,
4745 print the stop event to the output (CLI) stream.
4746 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4748 2014-05-21 Pedro Alves <palves@redhat.com>
4750 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4751 current source line having changed.
4752 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4753 * infrun.c (normal_stop): Adjust call to
4754 set_current_sal_from_frame.
4755 * source.c (clear_lines_listed_range): New function.
4756 (set_current_source_symtab_and_line, identify_source_line): Clear
4757 the lines listed range.
4758 (line_info): Handle the first "info line" after the current source
4759 line having changed.
4760 * stack.c (print_stack_frame): Remove center handling.
4761 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4764 2014-05-21 Pedro Alves <palves@redhat.com>
4766 * inf-child.c (inf_child_mourn_inferior): New function.
4767 * inf-child.h (inf_child_mourn_inferior): New declaration.
4768 * darwin-nat.c (darwin_mourn_inferior): Use
4769 inf_child_mourn_inferior.
4770 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4771 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4772 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4773 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4774 * windows-nat.c (windows_mourn_inferior): Likewise.
4776 2014-05-21 Doug Evans <xdje42@gmail.com>
4778 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4780 2014-05-21 Doug Evans <xdje42@gmail.com>
4782 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4783 (gdbscm_out_of_range_error): Ditto.
4784 (gdbscm_memory_error): Ditto.
4785 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4786 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4787 (gdbscm_out_of_range_error): Update.
4788 (gdbscm_memory_error): Update.
4789 (gdbscm_scm_to_target_string_unsafe): Delete.
4791 2014-05-21 Pedro Alves <palves@redhat.com>
4793 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4795 (inf_child_open_target): New function.
4796 (inf_child_open): Use inf_child_open_target to push the target
4797 instead of erroring out.
4798 (inf_child_disconnect, inf_child_close)
4799 (inf_child_maybe_unpush_target): New functions.
4800 (inf_child_target): Install inf_child_disconnect and
4801 inf_child_close. Store a pointer to the returned object.
4802 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4804 * target.c (auto_connect_native_target): New global.
4805 (show_default_run_target): New function.
4806 (find_default_run_target): Return NULL if automatically connecting
4807 to the native target is disabled.
4808 (_initialize_target): Install set/show auto-connect-native-target.
4809 * NEWS: Mention "set auto-connect-native-target", and "target
4811 * linux-nat.c (super_close): New global.
4812 (linux_nat_close): Call super_close.
4813 (linux_nat_add_target): Store a pointer to the base class's
4815 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4816 inf_child_maybe_unpush.
4817 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4819 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4820 the inferior. Use inf_child_maybe_unpush_target.
4821 (inf_ttrace_attach): Don't push the target if it is already
4823 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4824 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4825 after mourning the inferior. Use inf_child_maybe_unpush_target.
4826 (darwin_attach_pid): Don't push the target if it is already
4828 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4829 mourning the inferior. Use inf_child_maybe_unpush_target.
4830 (gnu_detach): Use inf_child_maybe_unpush_target.
4831 * go32-nat.c (go32_create_inferior): Don't push the target if it
4833 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4834 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4835 (procfs_open): Rename to ...
4836 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4837 comments. Can target_preopen before changing node. Call
4838 inf_child_open_target to push the target explicitly.
4839 (procfs_attach): Don't push the target if it is already pushed.
4840 (procfs_detach): Use inf_child_maybe_unpush_target.
4841 (procfs_create_inferior): Don't push the target if it is already
4843 (nto_native_ops): New global.
4844 (procfs_open): Reimplement.
4845 (procfs_native_open): New function.
4846 (init_procfs_targets): Install procfs_native_open as to_open of
4847 "target native". Store a pointer to the "native" target in
4849 * procfs.c (procfs_attach): Don't push the target if it is already
4851 (procfs_detach): Use inf_child_maybe_unpush_target.
4852 (procfs_mourn_inferior): Only unpush the target after mourning the
4853 inferior. Use inf_child_maybe_unpush_target.
4854 (procfs_init_inferior): Don't push the target if it is already
4856 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4857 if it is already pushed.
4859 2014-05-21 Pedro Alves <palves@redhat.com>
4861 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4862 and "procfs" targets are now called "native" instead.
4864 2014-05-21 Pedro Alves <palves@redhat.com>
4866 * go32-nat.c (go32_open): Delete.
4867 (go32_target): Don't override the to_open method.
4869 2014-05-21 Pedro Alves <palves@redhat.com>
4871 * nto-procfs.c (procfs_can_run): New function.
4872 (nto_procfs_ops): New global.
4873 (init_procfs_targets): New, based on procfs_target. Install
4874 "target native" in addition to "target procfs".
4875 (_initialize_procfs): Call init_procfs_targets instead of adding
4878 2014-05-21 Pedro Alves <palves@redhat.com>
4880 * windows-nat.c (windows_target): Don't override to_shortname,
4881 to_longname or to_doc.
4883 2014-05-21 Pedro Alves <palves@redhat.com>
4885 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4888 2014-05-21 Pedro Alves <palves@redhat.com>
4890 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4891 to_shortname, to_longname or to_doc.
4893 2014-05-21 Pedro Alves <palves@redhat.com>
4895 * go32-nat.c (go32_target): Don't override to_shortname,
4896 to_longname or to_doc.
4898 2014-05-21 Pedro Alves <palves@redhat.com>
4900 * inf-child.c (inf_child_open): Remove mention of "child".
4901 (inf_child_target): Rename target to "native" instead of "child".
4903 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4905 * Makefile.in (SFILES): Delete "regset.c".
4906 (COMMON_OBS): Delete "regset.o".
4908 * regset.h (regset_alloc): Delete prototype.
4910 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4912 * sparc-linux-tdep.c (sparc32_linux_gregset)
4913 (sparc32_linux_fpregset): New static regset structures.
4914 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4915 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4917 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4918 (sparc64_linux_fpregset): New static regset structures.
4919 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4920 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4921 New static regset structures.
4922 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4923 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4924 New static regset structures.
4925 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4926 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4927 New static regset structures.
4928 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4929 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4930 New static regset structures.
4931 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4933 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4935 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4936 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4937 register maps ("regmaps") from "*regset" to "*regmap". Do this
4938 for all regmap types and variables.
4939 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4940 (sparc32_linux_supply_core_gregset)
4941 (sparc32_linux_collect_core_gregset)
4942 (sparc32_linux_supply_core_fpregset)
4943 (sparc32_linux_collect_core_fpregset): Likewise.
4944 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4945 (sparc_gregmap, sparc_fpregmap): ... these.
4946 (sparc_supply_gregset, sparc_collect_gregset)
4947 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4948 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4949 (_initialize_sparc_nat): Rename regmaps.
4950 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4951 (sparc_gregmap, sparc_fpregmap): ... these.
4952 (sparc_supply_gregset, sparc_collect_gregset)
4953 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4954 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4956 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4957 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4959 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4961 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4962 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4963 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4965 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4966 (sparc32_bsd_fpregset): Rename to...
4967 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4968 (sparc32_bsd_fpregmap): ... these.
4969 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4970 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4971 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4972 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4973 (struct sparc_gregmap, struct sparc_fpregmap)
4974 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4975 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4976 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4977 (sparc32_supply_regset, sparc32_collect_gregset)
4978 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4980 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4981 (sparc64_linux_ptrace_gregmap): ... this.
4982 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4983 (_initialize_sparc64_linux_nat): Rename regmaps.
4984 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4985 (sparc64_linux_core_gregmap): ... this.
4986 (sparc64_linux_supply_core_gregset)
4987 (sparc64_linux_collect_core_gregset)
4988 (sparc64_linux_supply_core_fpregset)
4989 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4990 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4991 (sparc64_sol2_fpregset): Rename to...
4992 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4993 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4994 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4996 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4997 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4998 (sparc64_bsd_fpregset): Rename to...
4999 (struct sparc_gregmap, sparc64_sol2_gregmap)
5000 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5001 (sparc64_bsd_fpregmap): ... these.
5002 (sparc64_supply_gregset, sparc64_collect_gregset)
5003 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5005 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5006 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5007 (sparc64fbsd_gregmap): ... this.
5008 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5009 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5011 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5012 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5013 (sparc64nbsd_collect_fpregset): Likewise.
5014 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5015 (sparc64nbsd_gregmap): ... this.
5016 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5018 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5019 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5020 (sparc64obsd_gregmap): ... this.
5021 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5023 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5024 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5025 (sparc32nbsd_gregmap): ... this.
5026 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5029 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5031 * score-tdep.c (score7_linux_gregset): New static regset
5033 (score7_linux_regset_from_core_section): Remove dynamic regset
5035 (score_gdbarch_init): Drop allocation of tdep structure.
5036 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5038 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5040 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5042 (am33_regset_from_core_section): Remove dynamic regset
5045 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5047 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5048 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5050 (mips_linux_regset_from_core_section): Remove dynamic regset
5052 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5053 'gregset64', 'fpregset', and 'fpregset64'.
5054 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5055 deleted tdep fields.
5057 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5059 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5061 (amd64_regset_from_core_section): Remove dynamic regset
5063 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5065 (amd64obsd_regset_from_core_section): Remove dynamic regset
5067 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5069 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5070 x86-common regset supply function.
5071 * i386-tdep.c (i386_collect_gregset): Make static.
5072 (i386_gregset): New global regset structure.
5073 (i386_fpregset, i386_xstateregset): New static regset structures.
5074 (i386_regset_from_core_section): Remove dynamic regset
5076 (i386_gdbarch_init): Remove initialization of tdep fields
5077 'gregset', 'fpregset', and 'xstateregset'.
5078 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5079 'fpregset', and 'xstateregset'.
5080 (i386_collect_gregset): Remove prototype.
5081 (i386_gregset): New declaration.
5082 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5084 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5087 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5089 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5090 (arm_linux_vfpregset): New static regset structures.
5091 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5093 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5094 and 'vfpregset' fields.
5096 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5098 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5099 (aarch64_linux_fpregset): New static regset structures.
5100 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5101 of regset structures.
5102 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5105 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5107 * regset.h (struct regset): Remove gdbarch field.
5108 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5109 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5110 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5112 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5113 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5114 (ppc32_linux_vsxregset): Likewise.
5115 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5116 via the regcache instead of the regset.
5117 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5118 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5119 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5120 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5123 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5125 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5126 Constify structures.
5127 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5128 (alphanbsd_aout_gregset): Likewise.
5129 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5130 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5132 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5133 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5135 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5136 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5137 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5138 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5139 * m88k-tdep.c (m88k_gregset): Likewise.
5140 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5141 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5142 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5143 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5144 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5145 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5146 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5147 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5148 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5150 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5151 * sh-tdep.h (sh_corefile_gregset): Likewise.
5152 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5153 * vax-tdep.c (vax_gregset): Likewise.
5155 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5157 Fix TLS access for -static -pthread.
5158 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5159 (try_thread_db_load_1): Initialize it.
5160 (thread_db_get_thread_local_address): Call it if LM is zero.
5161 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5162 * target.h (struct target_ops) (to_get_thread_local_address): Add
5163 load_module_addr comment.
5165 2014-05-21 Pedro Alves <palves@redhat.com>
5167 * dcache.c (dcache_read_memory_partial): If reading the cache line
5168 fails, fallback to reading just the memory the caller wanted.
5170 2014-05-20 Doug Evans <dje@google.com>
5172 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5173 instead of get_current_arch.
5175 2014-05-20 Pedro Alves <palves@redhat.com>
5177 * NEWS: Mention that compare-sections now works with all targets.
5179 * remote.c (PACKET_qCRC): New enum value.
5180 (remote_verify_memory): Don't send qCRC if the target has no
5181 execution. Use packet_support/packet_ok. If the target doesn't
5182 support the qCRC packet, fallback to a deep memory copy.
5183 (compare_sections_command): Say "target image" instead of "remote
5185 (_initialize_remote): Add PACKET_qCRC to the list of config
5186 packets that have no associated command. Extend comment.
5187 * target.c (simple_verify_memory, default_verify_memory): New
5189 * target.h (struct target_ops) <to_verify_memory>: Default to
5190 default_verify_memory.
5191 (simple_verify_memory): New declaration.
5192 * target-delegates.c: Regenerate.
5194 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5196 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5198 2014-05-20 Hui Zhu <hui@codesourcery.com>
5199 Yao Qi <yao@codesourcery.com>
5202 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5203 and change address of sp and pc.
5205 2014-05-19 Tom Tromey <tromey@redhat.com>
5207 * gdbtypes.c (rank_function): Use XNEWVEC.
5208 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5210 2014-05-19 Doug Evans <dje@google.com>
5212 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5213 build_type_unit_groups and moved closer to only caller. Remove
5214 arguments. All references updated. Remove outdated .gdb_index
5216 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5217 build_type_psymtabs_1.
5219 2014-05-19 Doug Evans <dje@google.com>
5221 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5222 n_type_unit_groups, all_type_unit_groups. All uses removed.
5223 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5224 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5225 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5226 (add_type_unit_group_to_table): Delete.
5228 2014-05-19 Doug Evans <dje@google.com>
5230 * eval.c (evaluate_subexp_standard): Add some comments.
5232 2014-05-17 Doug Evans <xdje42@gmail.com>
5234 * progspace.c (remove_program_space): Delete, unused.
5235 * progspace.h (remove_program_space): Ditto.
5237 2014-05-17 Doug Evans <xdje42@gmail.com>
5239 * inferior.c (prune_inferiors): Fix comment.
5240 (remove_inferior_command): Call prune_program_spaces.
5242 2014-05-16 Doug Evans <dje@google.com>
5244 New command line option -D.
5246 * main.c (set_gdb_data_directory): New function.
5247 (captured_main): Recognize -D. Flag error for --data-directory "".
5248 Call set_gdb_data_directory.
5249 (print_gdb_help): Print --data-directory, -D.
5250 * main.h (set_gdb_data_directory): Declare.
5251 * top.c (staged_gdb_datadir): New static global.
5252 (set_gdb_datadir): Call set_gdb_data_directory
5253 (show_gdb_datadir): New function.
5254 (init_main): Update init of data-directory parameter.
5256 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5258 Import the "dirfd" gnulib module.
5259 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5260 * gnulib/aclocal.m4: Update.
5261 * gnulib/config.in: Update.
5262 * gnulib/configure: Update.
5263 * gnulib/import/Makefile.am: Update.
5264 * gnulib/import/Makefile.in: Update.
5265 * gnulib/import/dirfd.c: New.
5266 * gnulib/import/m4/dirfd.m4: New.
5267 * gnulib/import/m4/gnulib-cache.m4: Update.
5268 * gnulib/import/m4/gnulib-comp.m4: Update.
5270 2014-05-16 Pierre Muller <muller@sourceware.org>
5271 Yao Qi <yao@codesourcery.com>
5273 * valprint.c (print_wchar): Move the code on checking whether
5274 W is a printable wide char to the default branch of switch
5275 statement below. Call wchar_printable instead of gdb_iswprint.
5277 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5279 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5280 ldr.w and ldrd instructions.
5282 2014-05-15 Doug Evans <dje@google.com>
5284 * dwarf2read.c (read_structure_type): Delete outdated comments.
5286 2014-05-14 Tom Tromey <tromey@redhat.com>
5288 * macrocmd.c (print_macro_definition): Reindent.
5290 2014-05-13 Doug Evans <xdje42@gmail.com>
5292 * python/py-cmd.c (cmdpy_completer): Add comment.
5293 (completers): Make const.
5295 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5297 * infrun.c (resume): Remove should_resume (unused). Move up
5298 declaration of resume_ptid.
5300 2014-05-13 Tom Tromey <tromey@redhat.com>
5302 * language.h (unop_type_check): Remove.
5303 (binop_type_check): Don't declare.
5305 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5307 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5308 call to regcache_raw_collect.
5310 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5312 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5313 mi_console->quote as the quoting character.
5315 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5317 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5319 2014-04-29 Tom Tromey <tromey@redhat.com>
5321 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5322 "show debug varobj".
5324 2014-05-07 Kyle McMartin <kyle@redhat.com>
5326 Pushed by Joel Brobecker <brobecker@adacore.com>.
5327 * aarch64-tdep.c (aarch64_software_single_step): New function.
5328 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5329 with aarch64_software_single_step.
5331 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5335 2014-05-05 Keith Seitz <keiths@redhat.com>
5337 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5338 variable or history value is successfully parsed.
5340 2014-05-05 Yao Qi <yao@codesourcery.com>
5341 Pedro Alves <palves@redhat.com>
5343 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5344 address of blocks that intersects the requested range. Trim
5345 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5347 * ctf.c (ctf_xfer_partial): Likewise.
5349 2014-05-05 Yao Qi <yao@codesourcery.com>
5351 * printcmd.c (display_command): Remove the check to
5352 target_has_execution.
5354 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5356 * ppcobsd-nat.c: Include "obsd-nat.h".
5357 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5359 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5361 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5363 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5364 and 16-bit signed and unsigned arguments. Update comment.
5365 (stap_parse_probe_arguments): Extend code to handle such
5366 arguments. Use warning instead of complaint to notify about
5367 unrecognized bitness.
5369 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5371 PR breakpoints/16889
5372 * stap-probe.c (stap_parse_probe_arguments): Simplify
5373 check for non-prefixed probes (i.e., probes whose
5374 arguments do not start with "N@"). Always set the
5375 argument type to a sane value.
5377 2014-05-01 David Taylor <dtaylor@emc.com>
5379 * remote.c (compare_sections_command): Add -r option to compare
5380 all loadable read-only sections.
5382 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5384 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5385 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5387 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5388 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5389 Remove unused CORE_ADDR argument. Update all callers.
5391 2014-04-29 Pedro Alves <palves@redhat.com>
5393 * remote.c (struct packet_config) <detect>: Extend comment.
5394 (add_packet_config_cmd): Don't set the config's detect or support
5396 (init_all_packet_configs): Also initialize the config's 'detect'
5398 (reset_all_packet_configs_support): New function.
5399 (remote_open_1): Call reset_all_packet_configs_support instead of
5400 init_all_packet_configs.
5401 (_initialize_remote): Initialize all packet configs. Assert that
5402 all packets have an associated command, except a few known
5405 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5407 * dwarf2read.c (read_subrange_type): Handle dynamic
5408 DW_AT_lower_bound attributes.
5410 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5412 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5413 dynamic bounds before computing its upper bound.
5414 (ada_discrete_type_low_bound): Same as above with the lower bound.
5416 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5418 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5419 range types. Adjust the array handling implementation to
5420 take advantage of this change.
5421 (resolve_dynamic_range): New function, mostly extracted from
5422 resolve_dynamic_bounds.
5423 (resolve_dynamic_array): New function, mostly extracted from
5424 resolve_dynamic_bounds.
5425 (resolve_dynamic_bounds): Delete.
5426 (resolve_dynamic_type): Reimplement. Add handling of
5427 TYPE_CODE_RANGE types.
5429 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5431 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5432 handling of parallel ___XA types.
5434 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5436 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5437 unnecessary second call to static_unwrap_type.
5439 2014-04-27 Hui Zhu <hui@codesourcery.com>
5441 * stack.c (print_frame_info): Call do_gdb_disassembly with
5442 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5444 2014-04-26 Doug Evans <xdje42@gmail.com>
5446 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5448 2014-04-25 Pedro Alves <palves@redhat.com>
5451 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5452 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5453 and newline from built string.
5454 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5455 (linux_ptrace_attach_fail_reason): ... this.
5456 * linux-nat.c (linux_nat_attach): Adjust to use
5457 linux_ptrace_attach_fail_reason.
5459 2014-04-25 Pedro Alves <palves@redhat.com>
5461 * remote.c (struct remote_state): Remove multi_process_aware,
5462 non_stop_aware, cond_tracepoints, cond_breakpoints,
5463 breakpoint_commands, fast_tracepoints, static_tracepoints,
5464 install_in_trace, disconnected_tracing,
5465 enable_disable_tracepoints, string_tracing, and
5466 augmented_libraries_svr4_read fields.
5467 (remote_multi_process_p): Move further below in the file.
5468 (struct packet_config): Add comments.
5469 (update_packet_config): Delete function.
5470 (show_packet_config_cmd): Use packet_config_support.
5471 (add_packet_config_cmd): Use NULL as set callback.
5472 (packet_ok): "set remote foo-packet"-style commands no longer
5473 change config->supported -- adjust.
5474 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5475 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5476 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5477 (PACKET_QNonStop, PACKET_multiprocess_feature)
5478 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5479 (PACKET_DisconnectedTracing_feature)
5480 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5481 (set_remote_protocol_packet_cmd): Delete function.
5482 (packet_config_support, packet_support): New functions.
5483 (set_remote_protocol_Z_packet_cmd): Don't call
5484 update_packet_config.
5485 (remote_query_attached, remote_pass_signals)
5486 (remote_program_signals, remote_threads_info)
5487 (remote_threads_extra_info, remote_start_remote): Use
5489 (remote_start_remote): Use packet_config_support and
5491 (init_all_packet_configs): Set all packets to unknown support,
5492 instead of calling update_packet_config.
5493 (remote_check_symbols): Use packet_support.
5494 (remote_supported_packet): Unconditionally set the packet config's
5496 (remote_multi_process_feature, remote_non_stop_feature)
5497 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5498 (remote_breakpoint_commands_feature)
5499 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5500 (remote_install_in_trace_feature)
5501 (remote_disconnected_tracing_feature)
5502 (remote_enable_disable_tracepoint_feature)
5503 (remote_string_tracing_feature)
5504 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5505 (remote_protocol_features): Adjust to use remote_supported_packet
5506 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5507 "ConditionalTracepoints", "ConditionalBreakpoints",
5508 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5509 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5510 "EnableDisableTracepoints", and "tracenz".
5511 (remote_query_supported): Use packet_support.
5512 (remote_open_1): Adjust.
5513 (extended_remote_attach_1): Use packet_support. Switch on the
5514 result of packet_ok instead of checking whether the packet ended
5516 (remote_vcont_resume): Use packet_support.
5517 (remote_resume, remote_stop_ns, fetch_register_using_p)
5518 (remote_prepare_to_store, store_register_using_P)
5519 (check_binary_download, remote_write_bytes): Use packet_support.
5520 (remote_vkill): Use packet_support. Switch on the result of
5521 packet_ok instead of checking whether the packet ended up
5523 (extended_remote_supports_disable_randomization): Use
5525 (extended_remote_run): Switch on the result of packet_ok instead
5526 of checking whether the packet ended up disabled.
5527 (remote_insert_breakpoint, remote_remove_breakpoint)
5528 (remote_insert_watchpoint, remote_remove_watchpoint)
5529 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5531 (remote_search_memory): Use packet_config_support.
5532 (remote_get_thread_local_address, remote_get_tib_address)
5533 (remote_hostio_send_command, remote_can_execute_reverse): Use
5535 (remote_supports_cond_tracepoints)
5536 (remote_supports_cond_breakpoints)
5537 (remote_supports_fast_tracepoints)
5538 (remote_supports_static_tracepoints)
5539 (remote_supports_install_in_trace)
5540 (remote_supports_enable_disable_tracepoint)
5541 (remote_supports_string_tracing)
5542 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5543 the packet config says the feature is enabled or disabled.
5544 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5545 (remote_get_trace_status): Use packet_support.
5546 (remote_set_disconnected_tracing): Adjust to check whether the
5547 feature is enabled with packet_support.
5548 (remote_set_trace_buffer_size, remote_use_agent)
5549 (remote_can_use_agent, remote_supports_btrace): Use
5551 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5552 Use packet_config_support.
5553 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5554 the packet config says the feature is enabled or disabled.
5555 (set_range_stepping): Use packet_support.
5557 2014-04-25 Tom Tromey <tromey@redhat.com>
5559 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5562 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5564 * NEWS: Mention support for C99 variable length arrays.
5566 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5568 * ada-lang.c (standard_exc): Expand introductory comment.
5570 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5571 Walfred Tedeschi <walfred.tedeschi@intel.com>
5573 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5575 (amd64_linux_read_description): Add code to handle AVX512 xstate
5576 mask and return respective tdesc.
5577 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5578 and features/i386/x32-avx512-linux.c.
5579 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5580 (amd64_linux_core_read_description): Add code to handle AVX512
5581 xstate mask and return respective tdesc.
5582 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5583 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5585 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5586 (tdesc_amd64_avx512_linux): New prototype.
5587 (tdesc_x32_avx512_linux): Likewise.
5588 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5589 features/i386/x32-avx512.c.
5590 (amd64_ymm_avx512_names): New register names for pseudo
5592 (amd64_ymmh_avx512_names): New register names for raw registers
5594 (amd64_k_names): New register names for K registers.
5595 (amd64_zmmh_names): New register names for ZMM raw registers.
5596 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5597 (amd64_xmm_avx512_names): New register names for XMM16-31
5599 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5601 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5602 if feature is present.
5603 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5604 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5605 (AMD64_NUM_REGS): Adjust to new number of registers.
5606 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5607 registers supplied via XSTATE by AVX512 registers.
5608 (i386_linux_read_description): Add case for AVX512.
5609 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5610 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5611 (i386_linux_core_read_description): Add case for AVX512.
5612 (i386_linux_init_abi): Install supported register note section
5614 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5616 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5617 registers to be number of zmm7h + 1.
5618 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5619 * i386-tdep.c: Include features/i386/i386-avx512.c.
5620 (i386_zmm_names): Add ZMM pseudo register names array.
5621 (i386_zmmh_names): Add ZMM raw register names array.
5622 (i386_k_names): Add K raw register names array.
5623 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5624 registers. AVX512 has 16 more ZMM registers than there are YMM
5626 (i386_zmmh_regnum_p): Add function to look up register number of
5628 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5629 (i386_k_regnum_p): Likewise for K raw registers.
5630 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5631 registers added by AVX512.
5632 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5633 registers added by AVX512.
5634 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5636 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5637 (i386_pseudo_register_name): Add ZMM pseudo registers.
5638 (i386_zmm_type): Construct and return vector registers type for ZMM
5640 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5641 ZMM0-31 pseudo registers and K registers.
5642 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5643 and YMM16-31 registers from register cache.
5644 (i386_pseudo_register_write): Add code to write K, ZMM and
5646 (i386_register_reggroup_p): Add code to include/exclude AVX512
5647 registers in/from respective register groups.
5648 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5649 registers if feature is present in xcr0.
5650 (i386_gdbarch_init): Add code to initialize AVX512 feature
5651 variables in tdep structure, wire in pseudo registers and call
5652 initialize_tdesc_i386_avx512.
5653 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5655 (i386_regnum): Add AVX512 registers.
5656 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5657 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5658 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5659 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5661 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5662 (i386_ymm_avx512_regnum_p): Likewise.
5663 (i386_k_regnum_p): Likewise.
5664 (i386_zmm_regnum_p): Likewise.
5665 (i386_zmmh_regnum_p): Likewise.
5666 * i387-tdep.c : Update year in copyright notice.
5667 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5669 (XSAVE_YMM_AVX512_ADDR): New macro.
5670 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5672 (XSAVE_XMM_AVX512_ADDR): New macro.
5673 (xsave_avx512_k_offset): New table for K register offsets in
5675 (XSAVE_AVX512_K_ADDR): New macro.
5676 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5678 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5679 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5681 (i387_collect_xsave): Add code to collect AVX512 registers from
5683 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5684 of XMM16-31 registers.
5685 (I387_NUM_K_REGS): New define for number of K registers.
5686 (I387_K0_REGNUM): New define for K0 register number.
5687 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5688 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5689 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5691 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5692 (I387_XMM16_REGNUM): New define for XMM16 register number.
5693 (I387_YMM0_REGNUM): New define for YMM0 register number.
5694 (I387_KEND_REGNUM): New define for last K register number.
5695 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5696 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5698 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5700 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5702 * features/Makefile: Add AVX512 related files.
5703 * features/i386/32bit-avx512.xml: New file.
5704 * features/i386/64bit-avx512.xml: Likewise.
5705 * features/i386/amd64-avx512-linux.c: Likewise.
5706 * features/i386/amd64-avx512-linux.xml: Likewise.
5707 * features/i386/amd64-avx512.c: Likewise.
5708 * features/i386/amd64-avx512.xml: Likewise.
5709 * features/i386/i386-avx512-linux.c: Likewise.
5710 * features/i386/i386-avx512-linux.xml: Likewise.
5711 * features/i386/i386-avx512.c: Likewise.
5712 * features/i386/i386-avx512.xml: Likewise.
5713 * features/i386/x32-avx512-linux.c: Likewise.
5714 * features/i386/x32-avx512-linux.xml: Likewise.
5715 * features/i386/x32-avx512.c: Likewise.
5716 * features/i386/x32-avx512.xml: Likewise.
5717 * regformats/i386/amd64-avx512-linux.dat: New file.
5718 * regformats/i386/amd64-avx512.dat: Likewise.
5719 * regformats/i386/i386-avx512-linux.dat: Likewise.
5720 * regformats/i386/i386-avx512.dat: Likewise.
5721 * regformats/i386/x32-avx512-linux.dat: Likewise.
5722 * regformats/i386/x32-avx512.dat: Likewise.
5723 * NEWS: Add note about new support for AVX512.
5726 2014-04-23 Pedro Alves <palves@redhat.com>
5728 * breakpoint.c (insert_bp_location): Tolerate errors if the
5729 breakpoint is set in a user-loaded objfile.
5730 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5731 location is marked shlib_disabled. If the breakpoint is set in a
5732 user-loaded objfile is a GDB-side memory breakpoint, validate it
5733 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5734 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5736 * mem-break.c (memory_validate_breakpoint): New function.
5737 * objfiles.c (userloaded_objfile_contains_address_p): New
5739 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5740 * target.h (memory_validate_breakpoint): New declaration.
5742 2014-04-23 Pedro Alves <palves@redhat.com>
5744 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5745 the breakpoint is set in a shared library, only suppress
5746 errors for software breakpoints, not hardware breakpoints.
5748 2014-04-22 Pedro Alves <palves@redhat.com>
5750 * infrun.c (schedlock_applies): New function, factored out from
5751 find_thread_needs_step_over.
5752 (find_thread_needs_step_over): Use it.
5753 (switch_back_to_stepped_thread): Always clear trap_expected if the
5754 step over is finished. Return early if scheduler locking applies.
5755 Look for the stepping thread and a potential step-over thread with
5757 (currently_stepping_or_nexting_callback): Delete.
5759 2014-04-22 Nick Clifton <nickc@redhat.com>
5761 * NEWS: Mention that ARM sim now supports tracing.
5763 2014-04-22 Yao Qi <yao@codesourcery.com>
5765 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5767 * tracefile.c (tracefile_fetch_registers): ... it. New
5769 * tracefile.h (tracefile_fetch_registers): Declare.
5770 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5771 tracefile_fetch_registers.
5773 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5776 * windows-nat.c (thread_rec): Don't display a warning when
5777 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5778 fails for any reason, set th->suspended to -1, so that we don't
5779 try to resume such a thread. Also, don't return NULL in these
5780 cases, to avoid completely ruin the session due to "PC register is
5781 not available" error.
5782 (do_windows_fetch_inferior_registers): Check errors in
5783 GetThreadContext call.
5784 (windows_continue): Accept an additional argument KILLED; if not
5785 zero, ignore errors in the SetThreadContext call, since the
5786 inferior was killed and is shutting down.
5787 (windows_resume, get_windows_debug_event)
5788 (windows_create_inferior, windows_mourn_inferior)
5789 (windows_kill_inferior): All callers of windows_continue changed
5790 to adjust to its new calling sequence.
5792 2014-04-19 Yao Qi <yao@codesourcery.com>
5794 * ctf.c (ctf_open): Call post_create_inferior.
5796 2014-04-19 Yao Qi <yao@codesourcery.com>
5798 * ctf.c (handle_id): New static variable.
5799 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5800 value. Get the declaration of event "register" and get length
5801 of field "contents".
5803 2014-04-19 Yao Qi <yao@codesourcery.com>
5805 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5807 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5809 * valops.c (oload_method_static): Remove unnecessary argument
5810 METHOD. Update all callers.
5812 2014-04-18 Pedro alves <palves@redhat.com>
5813 Tom Tromey <tromey@redhat.com>
5816 * frame.c (get_prev_frame_1): Rename to ...
5817 (get_prev_frame_always): ... this, and make extern. Adjust.
5818 (skip_artificial_frames): Use get_prev_frame_always.
5819 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5820 (get_frame_unwind_stop_reason): Adjust to rename.
5821 * frame.h (get_prev_frame_always): Declare.
5822 * inline-frame.c: Include frame.h.
5823 (inline_frame_this_id): Use get_prev_frame_always.
5825 2014-04-18 Tristan Gingold <gingold@adacore.com>
5827 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5828 code by using bfd_mach_o_get_base_address.
5830 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5832 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5833 (spu_ax_pseudo_register_collect): New function.
5834 (spu_ax_pseudo_register_push_stack): Likewise.
5835 (spu_dwarf_reg_to_regnum): Likewise.
5836 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5838 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5840 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5841 Replace FRAME argument with FRAME_ID.
5842 * gdbarch.c, gdbarch.h: Regenerate.
5843 * findvar.c (default_value_from_register): Add GDBARCH argument;
5844 replace FRAME by FRAME_ID. No longer call get_frame_id.
5845 (value_from_register): Update call to gdbarch_value_from_register.
5846 * value.h (default_value_from_register): Update prototype.
5847 * s390-linux-tdep.c (s390_value_from_register): Update interface
5848 and call to default_value_from_register.
5849 * spu-tdep.c (spu_value_from_register): Likewise.
5851 * findvar.c (address_from_register): Remove TYPE argument.
5852 Do not call value_from_register; use gdbarch_value_from_register
5853 with null_frame_id instead.
5854 * value.h (address_from_register): Update prototype.
5855 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5856 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5857 address_from_register interface change.
5859 2014-04-17 Yao Qi <yao@codesourcery.com>
5861 * gdbtypes.h: Update comments to link to types and macros'
5864 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5866 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5868 2014-04-16 Keith Seitz <keiths@redhat.com>
5871 * dwarf2read.c (skip_one_die): Check that all relative-offset
5872 sibling DIEs fall within range of the current reader's buffer.
5873 (read_partial_die): Likewise.
5875 2014-04-16 Keith Seitz <keiths@redhat.com>
5878 * cp-namespace.c (lookup_symbol_file): If the type name of
5879 `this' is NULL, return immediately.
5881 2014-04-14 Keith Seitz <keiths@redhat.com>
5884 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5885 from symbol_matches_domain in symtab.c. All local callers
5886 of symbol_matches_domain updated.
5887 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5888 search STRUCT_DOMAIN.
5889 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5890 independently. standard_lookup will do that automatically.
5891 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5892 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5893 (cp_lookup_symbol_in_namespace): Likewise.
5894 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5895 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5896 may return a STRUCT_DOMAIN match.
5897 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5898 * cp-support.c: Include language.h.
5899 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5901 * psymtab.c (match_partial_symbol): Compare the requested
5902 domain with the symbol's domain directly.
5903 (lookup_partial_symbol): Likewise.
5904 * symtab.c (lookup_symbol_in_language): Explain when/why
5905 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5906 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5907 appropriate languages.
5908 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5909 and moved to ada-lang.c
5910 (lookup_block_symbol): Explain that this function only returns
5911 symbol matching the requested DOMAIN.
5912 Compare the requested domain with the symbol's domain directly.
5913 (iterate_over_symbols): Compare the requested domain with the
5914 symbol's domain directly.
5915 * symtab.h (symbol_matches_domain): Remove.
5917 2014-04-14 Tom Tromey <tromey@redhat.com>
5920 * c-exp.y (type_aggregate_p): New function.
5921 (qualified_name, classify_inner_name): Use it.
5922 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5923 and TYPE_TARGET_TYPE of an enum type.
5924 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5926 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5927 handle TYPE_DECLARED_CLASS.
5928 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5930 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5931 * valops.c (enum_constant_from_type): New function.
5932 (value_aggregate_elt): Use it.
5933 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5936 2014-04-14 Tom Tromey <tromey@redhat.com>
5938 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5939 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5941 * value.h (value_aggregate_elt): Update.
5943 2014-04-14 Tom Tromey <tromey@redhat.com>
5945 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5947 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5949 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5950 (evaluate_subexp_standard): Pass noside argument.
5951 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5952 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5953 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5954 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5955 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5957 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5959 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5960 points to a constant blob.
5962 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5964 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5965 property and store it as the high bound and flag the range accordingly.
5966 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5967 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5968 * gdbtypes.h (enum range_flags): New enum.
5969 (struct range_bounds): Add flags member.
5971 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5973 * c-typeprint.c (c_type_print_varspec_suffix): Added
5974 check for not yet resolved high bound. If unresolved, print
5975 "variable length" string to the console instead of random
5978 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5980 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5982 (ada_template_to_fixed_record_type_1): Likewise.
5983 (ada_to_fixed_type_1): Likewise.
5984 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5985 (cp_print_value): Likewise.
5986 * d-valprint.c (dynamic_array_type): Likewise.
5987 * findvar.c (address_of_variable): Likewise.
5988 * jv-valprint.c (java_value_print): Likewise.
5989 * valops.c (value_ind): Likewise.
5990 * value.c (coerce_ref): Likewise.
5992 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5994 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5995 value and retrieve the dynamic type size.
5997 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5999 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6000 passed to sizeof is dynamic evaluate the argument to compute the length.
6002 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6003 Joel Brobecker <brobecker@adacore.com>
6005 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6006 (dwarf2_evaluate_property): New function.
6007 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6008 * dwarf2read.c (attr_to_dynamic_prop): New function.
6009 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6011 * gdbtypes.c: Include dwarf2loc.h.
6012 (is_dynamic_type): New function.
6013 (resolve_dynamic_type): New function.
6014 (resolve_dynamic_bounds): New function.
6015 (get_type_length): New function.
6016 (check_typedef): Use get_type_length to compute type length.
6017 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6018 (TYPE_LOW_BOUND_KIND): New macro.
6019 (is_dynamic_type): New function prototype.
6020 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6021 to resolve dynamic properties of the type. Update comment.
6022 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6024 2014-04-14 Richard Henderson <rth@redhat.com>
6026 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6028 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6029 Doug Evans <xdje42@gmail.com>
6031 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6032 dereference TYPE_CODE_REF values.
6034 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6036 Revert the following changes due to regressions:
6038 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6039 (dwarf2_evaluate_property): New function.
6040 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6041 * dwarf2read.c (attr_to_dynamic_prop): New function.
6042 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6044 * gdbtypes.c: Include dwarf2loc.h.
6045 (is_dynamic_type): New function.
6046 (resolve_dynamic_type): New function.
6047 (resolve_dynamic_bounds): New function.
6048 (get_type_length): New function.
6049 (check_typedef): Use get_type_length to compute type length.
6050 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6051 (TYPE_LOW_BOUND_KIND): New macro.
6052 (is_dynamic_type): New function prototype.
6053 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6054 to resolve dynamic properties of the type. Update comment.
6055 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6057 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6058 passed to sizeof is dynamic evaluate the argument to compute the length.
6060 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6061 value and retrieve the dynamic type size.
6063 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6064 (ada_template_to_fixed_record_type_1): Likewise.
6065 (ada_to_fixed_type_1): Likewise.
6066 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6067 (cp_print_value): Likewise.
6068 * d-valprint.c (dynamic_array_type): Likewise.
6069 * eval.c (evaluate_subexp_with_coercion): Likewise.
6070 * findvar.c (address_of_variable): Likewise.
6071 * jv-valprint.c (java_value_print): Likewise.
6072 * valops.c (value_ind): Likewise.
6073 * value.c (coerce_ref): Likewise.
6075 * c-typeprint.c (c_type_print_varspec_suffix): Added
6076 check for not yet resolved high bound. If unresolved, print
6077 "variable length" string to the console instead of random
6080 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6081 property and store it as the high bound and flag the range accordingly.
6082 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6083 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6084 * gdbtypes.h (enum range_flags): New enum.
6085 (struct range_bounds): Add flags member.
6087 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6088 points to a constant blob.
6090 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6091 (evaluate_subexp_standard): Pass noside argument.
6092 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6093 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6094 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6095 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6096 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6098 2014-04-11 Keith Seitz <keiths@redhat.com>
6101 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6102 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6105 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6107 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6108 (evaluate_subexp_standard): Pass noside argument.
6109 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6110 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6111 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6112 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6113 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6115 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6117 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6118 points to a constant blob.
6120 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6122 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6123 property and store it as the high bound and flag the range accordingly.
6124 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6125 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6126 * gdbtypes.h (enum range_flags): New enum.
6127 (struct range_bounds): Add flags member.
6129 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6131 * c-typeprint.c (c_type_print_varspec_suffix): Added
6132 check for not yet resolved high bound. If unresolved, print
6133 "variable length" string to the console instead of random
6136 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6138 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6139 (ada_template_to_fixed_record_type_1): Likewise.
6140 (ada_to_fixed_type_1): Likewise.
6141 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6142 (cp_print_value): Likewise.
6143 * d-valprint.c (dynamic_array_type): Likewise.
6144 * eval.c (evaluate_subexp_with_coercion): Likewise.
6145 * findvar.c (address_of_variable): Likewise.
6146 * jv-valprint.c (java_value_print): Likewise.
6147 * valops.c (value_ind): Likewise.
6148 * value.c (coerce_ref): Likewise.
6150 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6152 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6153 value and retrieve the dynamic type size.
6155 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6157 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6158 passed to sizeof is dynamic evaluate the argument to compute the length.
6160 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6162 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6163 (dwarf2_evaluate_property): New function.
6164 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6165 * dwarf2read.c (attr_to_dynamic_prop): New function.
6166 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6168 * gdbtypes.c: Include dwarf2loc.h.
6169 (is_dynamic_type): New function.
6170 (resolve_dynamic_type): New function.
6171 (resolve_dynamic_bounds): New function.
6172 (get_type_length): New function.
6173 (check_typedef): Use get_type_length to compute type length.
6174 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6175 (TYPE_LOW_BOUND_KIND): New macro.
6176 (is_dynamic_type): New function prototype.
6177 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6178 to resolve dynamic properties of the type. Update comment.
6179 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6181 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6183 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6184 declaring high/low bounds and change uses accordingly. Call
6185 create_range_type instead of create_static_range_type.
6186 * gdbtypes.c (create_range_type): New function.
6187 (create_range_type): Convert bounds into struct bound_prop and pass
6188 them to create_range_type.
6189 * gdbtypes.h (struct bound_prop): New struct.
6190 (create_range_type): New function prototype.
6191 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6192 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6193 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6195 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6197 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6199 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6200 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6201 * ada-lang.c: All uses of create_range_type updated.
6202 * coffread.c: All uses of create_range_type updated.
6203 * dwarf2read.c: All uses of create_range_type updated.
6204 * f-exp.y: All uses of create_range_type updated.
6205 * m2-valprint.c: All uses of create_range_type updated.
6206 * mdebugread.c: All uses of create_range_type updated.
6207 * stabsread.c: All uses of create_range_type updated.
6208 * valops.c: All uses of create_range_type updated.
6209 * valprint.c: All uses of create_range_type updated.
6211 2014-04-10 Pedro Alves <palves@redhat.com>
6213 * breakpoint.c (single_step_breakpoints)
6214 (single_step_gdbarch): Move up in the file.
6215 (one_breakpoint_xfer_memory): New function, factored out from ...
6216 (breakpoint_xfer_memory): ... here. Also process single-step
6219 2014-04-09 Tristan Gingold <gingold@adacore.com>
6221 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6223 (darwin_decode_exception_message): Free port only after use.
6225 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6227 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6228 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6229 when setting the size of call_length.
6231 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6233 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6234 dereference TYPE_CODE_REF values.
6236 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6238 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6239 end of warning message.
6241 2014-04-03 Doug Evans <dje@google.com>
6243 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6244 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6246 2014-04-02 Alan Modra <amodra@gmail.com>
6248 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6249 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6250 (struct symbol_file_add_from_memory_args): Add size field.
6251 (find_vdso_size): New function.
6252 (add_vsyscall_page): Attempt to find vdso size.
6254 2014-04-01 Doug Evans <dje@google.com>
6256 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6258 2014-04-01 Tristan Gingold <gingold@adacore.com>
6260 * darwin-nat.c (darwin_encode_reply): Add prototype.
6261 (darwin_decode_exception_message): Reply to unknown inferiors.
6262 (darwin_decode_message): Handle message by id. Ignore message
6263 to unknown inferior.
6264 (darwin_wait): Discard unknown messages, add debug trace.
6266 2014-03-31 Doug Evans <dje@google.com>
6268 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6271 2014-03-31 Doug Evans <dje@google.com>
6273 New option "set print symbol-loading".
6275 * solib.c (solib_read_symbols): Only print symbol loading messages
6277 (solib_add): If symbol loading is in "brief" mode, notify user
6278 symbols are being loaded.
6279 (reload_shared_libraries_1): Ditto.
6280 * symfile.c (print_symbol_loading_off): New static global.
6281 (print_symbol_loading_brief): New static global.
6282 (print_symbol_loading_full): New static global.
6283 (print_symbol_loading_enums): New static global.
6284 (print_symbol_loading): New static global.
6285 (print_symbol_loading_p): New function.
6286 (symbol_file_add_with_addrs): Only print symbol loading messages
6288 (_initialize_symfile): Register "print symbol-loading" set/show
6290 * symfile.h (print_symbol_loading_p): Declare.
6292 2014-03-30 Doug Evans <xdje42@gmail.com>
6294 * infrun.c (set_last_target_status): New function.
6295 (handle_inferior_event): Call it.
6297 2014-03-30 Doug Evans <xdje42@gmail.com>
6299 * inferior.h (enum stop_kind): Improve comment.
6301 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6303 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6304 a reference, strip the reference layer before calling
6305 the lang_ops value_has_mutated callback.
6307 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6309 Remove some globals from our parser.
6310 * language.c (unk_lang_parser): Add "struct parser_state"
6312 * language.h (struct language_defn) <la_parser>: Likewise.
6313 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6314 (initialize_expout): Add "struct parser_state" argument.
6315 Rewrite function to use the parser state.
6316 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6317 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6318 write_exp_elt_longcst, write_exp_elt_dblcst,
6319 write_exp_elt_decfloatcst, write_exp_elt_type,
6320 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6321 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6322 write_dollar_variable): Likewise.
6323 (parse_exp_in_context_1): Use parser state.
6324 (insert_type_address_space): Add "struct parser_state" argument.
6326 (increase_expout_size): New function.
6327 * parser-defs.h: Forward declare "struct language_defn" and
6328 "struct parser_state".
6329 (expout, expout_size, expout_ptr): Remove extern declarations.
6330 (parse_gdbarch, parse_language): Rewrite macro declarations to
6331 accept the parser state.
6332 (struct parser_state): New struct.
6333 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6334 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6335 write_exp_elt_decfloatcst, write_exp_elt_type,
6336 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6337 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6338 write_exp_msymbol, write_dollar_variable,
6339 mark_struct_expression, insert_type_address_space): Add "struct
6340 parser_state" argument.
6341 (increase_expout_size): New function.
6342 * utils.c (do_clear_parser_state): New function.
6343 (make_cleanup_clear_parser_state): Likewise.
6344 * utils.h (make_cleanup_clear_parser_state): New function
6346 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6347 Update calls to write_exp* in order to pass the parser state.
6348 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6349 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6350 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6351 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6352 * stap-probe.c (stap_parse_register_operand): Likewise.
6353 (stap_parse_single_operand): Likewise.
6354 (stap_parse_argument_1): Likewise.
6355 (stap_parse_argument): Use parser state.
6356 * stap-probe.h: Include "parser-defs.h".
6357 (struct stap_parse_info) <pstate>: New field.
6358 * c-exp.y (parse_type): Rewrite to use parser state.
6359 (yyparse): Redefine to c_parse_internal.
6360 (pstate): New global variable.
6361 (parse_number): Add "struct parser_state" argument.
6362 (write_destructor_name): Likewise.
6363 (type_exp): Update calls to write_exp* and similars in order to
6365 (exp1, exp, variable, qualified_name, space_identifier,
6366 typename, typebase): Likewise.
6367 (write_destructor_name, parse_number, lex_one_token,
6368 classify_name, classify_inner_name, c_parse): Add "struct
6369 parser_state" argument. Update function to use parser state.
6370 * c-lang.h: Forward declare "struct parser_state".
6371 (c_parse): Add "struct parser_state" argument.
6372 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6373 (yyparse): Redefine macro to ada_parse_internal.
6374 (pstate): New variable.
6375 (write_int, write_object_renaming, write_var_or_type,
6376 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6377 type_int, type_long, type_long_long, type_float, type_double,
6378 type_long_double, type_char, type_boolean, type_system_address):
6379 Add "struct parser_state" argument.
6380 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6381 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6382 var_or_type, aggregate, aggregate_component_list,
6383 positional_list, others, component_group,
6384 component_associations): Update calls to write_exp* and similar
6385 functions in order to use parser state.
6386 (ada_parse, write_var_from_sym, write_int,
6387 write_exp_op_with_string, write_object_renaming,
6388 find_primitive_type, write_selectors, write_ambiguous_var,
6389 write_var_or_type, write_name_assoc, type_int, type_long,
6390 type_long_long, type_float, type_double, type_long_double,
6391 type_char, type_boolean, type_system_address): Add "struct
6392 parser_state" argument. Adjust function to use parser state.
6393 * ada-lang.c (parse): Likewise.
6394 * ada-lang.h: Forward declare "struct parser_state".
6395 (ada_parse): Add "struct parser_state" argument.
6396 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6397 calls to both functions.
6398 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6400 (yyparse): Redefine macro to f_parse_internal.
6401 (pstate): New variable.
6402 (parse_number): Add "struct parser_state" argument.
6403 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6404 and similars in order to use parser state.
6405 (parse_number): Adjust code to use parser state.
6407 (f_parse): New function.
6408 * f-lang.h: Forward declare "struct parser_state".
6409 (f_parse): Add "struct parser_state" argument.
6410 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6412 (yyparse): Redefine macro for java_parse_internal.
6413 (pstate): New variable.
6414 (push_expression_name, push_expression_name, insert_exp): Add
6415 "struct parser_state" argument.
6416 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6417 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6418 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6419 PostIncrementExpression, PostDecrementExpression,
6420 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6421 UnaryExpressionNotPlusMinus, CastExpression,
6422 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6423 RelationalExpression, EqualityExpression, AndExpression,
6424 ExclusiveOrExpression, InclusiveOrExpression,
6425 ConditionalAndExpression, ConditionalOrExpression,
6426 ConditionalExpression, Assignment, LeftHandSide): Update
6427 calls to write_exp* and similars in order to use parser state.
6428 (parse_number): Ajust code to use parser state.
6430 (java_parse): New function.
6431 (push_variable): Add "struct parser_state" argument. Adjust
6432 code to user parser state.
6433 (push_fieldnames, push_qualified_expression_name,
6434 push_expression_name, insert_exp): Likewise.
6435 * jv-lang.h: Forward declare "struct parser_state".
6436 (java_parse): Add "struct parser_state" argument.
6437 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6439 (yyparse): Redefine macro to m2_parse_internal.
6440 (pstate): New variable.
6441 (type_exp, exp, fblock, variable, type): Update calls to
6442 write_exp* and similars to use parser state.
6444 (m2_parse): New function.
6445 * m2-lang.h: Forward declare "struct parser_state".
6446 (m2_parse): Add "struct parser_state" argument.
6447 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6448 * objc-lang.h: Forward declare "struct parser_state".
6449 (end_msglist): Add "struct parser_state" argument.
6450 * p-exp.y (parse_type): Rewrite macro to use parser state.
6451 (yyparse): Redefine macro to pascal_parse_internal.
6452 (pstate): New variable.
6453 (parse_number): Add "struct parser_state" argument.
6454 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6455 write_exp* and similars in order to use parser state.
6456 (parse_number, yylex): Adjust code to use parser state.
6457 (pascal_parse): New function.
6458 * p-lang.h: Forward declare "struct parser_state".
6459 (pascal_parse): Add "struct parser_state" argument.
6460 * go-exp.y (parse_type): Rewrite macro to use parser state.
6461 (yyparse): Redefine macro to go_parse_internal.
6462 (pstate): New variable.
6463 (parse_number): Add "struct parser_state" argument.
6464 (type_exp, exp1, exp, variable, type): Update calls to
6465 write_exp* and similars in order to use parser state.
6466 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6467 to use parser state.
6468 (go_parse): Likewise.
6469 * go-lang.h: Forward declare "struct parser_state".
6470 (go_parse): Add "struct parser_state" argument.
6472 2014-03-27 Doug Evans <dje@google.com>
6474 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6476 2014-03-27 Doug Evans <dje@google.com>
6478 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6479 Remove argument abbrev_section. All callers updated.
6481 2014-03-27 Doug Evans <dje@google.com>
6483 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6484 addr_base, ranges_base.
6486 2014-03-26 Keith Seitz <keiths@redhat.com>
6488 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6489 types, not VAR_DOMAIN.
6491 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6493 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6495 * features/nios2-linux.c: Regenerated.
6496 * features/nios2.c: Regenerated.
6498 2014-03-25 Pedro Alves <palves@redhat.com>
6500 * cli/cli-script.c (script_from_file): Force the interpreter to
6503 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6505 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6506 small stack allocation.
6508 2014-03-24 Tristan Gingold <gingold@adacore.com>
6510 * darwin-nat.c (exc_server): Remove unused prototype.
6511 (darwin_dump_message): Correctly display data on x86_64.
6512 (darwin_encode_reply): Fix style.
6513 Add comments and fix indentation.
6515 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6517 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6519 2014-03-22 Doug Evans <xdje42@gmail.com>
6521 * infcmd.c: Whitespace fixes.
6522 (interrupt_command): Merge two function comments into one.
6524 2014-03-22 Doug Evans <xdje42@gmail.com>
6526 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6529 2014-03-22 Yao Qi <yao@codesourcery.com>
6531 * remote.c (target_read_live_memory): Remove.
6532 (memory_xfer_live_readonly_partial): Rename it to
6533 remote_xfer_live_readonly_partial. Remove argument 'object'.
6534 All callers updated. Call remote_read_bytes_1
6535 instead of target_read_live_memory.
6536 * tracepoint.c (set_traceframe_number): Remove.
6537 (make_cleanup_restore_traceframe_number): Likewise .
6538 * tracepoint.h (set_traceframe_number): Remove declaration.
6539 (make_cleanup_restore_traceframe_number): Likewise.
6541 2014-03-22 Yao Qi <yao@codesourcery.com>
6543 * remote.c (remote_read_bytes): Move code on reading from the
6545 (remote_read_bytes_1): ... here. New function.
6547 2014-03-22 Yao Qi <yao@codesourcery.com>
6549 * ctf.c (ctf_xfer_partial): Check the return value of
6550 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6551 return TARGET_XFER_UNAVAILABLE.
6552 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6553 * target.c (target_read_live_memory): Move it to remote.c.
6554 (memory_xfer_live_readonly_partial): Likewise.
6555 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6556 * remote.c (target_read_live_memory): Moved from target.c.
6557 (memory_xfer_live_readonly_partial): Likewise.
6558 (remote_read_bytes): Factored out from
6559 memory_xfer_partial_1.
6561 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6563 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6566 2014-03-21 Pedro Alves <palves@redhat.com>
6568 * infrun.c (normal_stop): Extend comment.
6570 2014-03-21 Hui Zhu <hui@codesourcery.com>
6571 Pedro Alves <palves@redhat.com>
6573 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6575 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6576 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6577 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6579 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6581 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6582 `z' formatted output modifier.
6584 2014-03-20 Tom Tromey <tromey@redhat.com>
6585 Sergio Durigan Junior <sergiodj@redhat.com>
6587 * probe.c (parse_probes): Turn assert into an ordinary error.
6588 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6589 exceptions when parsing probes. Rearrange the code for clarity.
6591 2014-03-20 Tom Tromey <tromey@redhat.com>
6594 * top.c (execute_command): Only dispatch events if the command
6597 2014-03-20 Tom Tromey <tromey@redhat.com>
6600 * infcall.c: Include event-top.h.
6601 (run_inferior_call): Call async_disable_stdin if needed.
6603 2014-03-20 Pedro Alves <palves@redhat.com>
6605 * infrun.c (prepare_to_proceed): Delete.
6606 (thread_still_needs_step_over): New function.
6607 (find_thread_needs_step_over): New function.
6608 (proceed): If the current thread needs a step-over, set its
6609 steping_over_breakpoint flag. Adjust to use
6610 find_thread_needs_step_over instead of prepare_to_proceed.
6611 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6612 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6614 (switch_back_to_stepped_thread): Step over breakpoints of all
6615 threads not the stepping thread, before switching back to the
6618 2014-03-20 Pedro Alves <palves@redhat.com>
6620 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6622 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6623 * infrun.c (saved_singlestep_ptid)
6624 (stepping_past_singlestep_breakpoint): Delete.
6625 (resume): Remove stepping_past_singlestep_breakpoint handling.
6626 (proceed): Store the prev_pc of the stepping thread too.
6627 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6629 (enum infwait_states): Delete infwait_thread_hop_state.
6630 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6632 (handle_inferior_event): Adjust.
6633 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6634 handling and the thread-hop code. Before removing single-step
6635 breakpoints, check whether the thread hit a single-step breakpoint
6636 of another thread. If it did, the trap is not a random signal.
6637 (switch_back_to_stepped_thread): If the event thread hit a
6638 single-step breakpoint, unblock it before switching to the
6639 stepping thread. Handle the case of the stepped thread having
6641 (keep_going): Handle the case of the current thread moving past a
6642 single-step breakpoint.
6644 2014-03-20 Pedro Alves <palves@redhat.com>
6647 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6648 are being stepped over.
6649 (breakpoint_address_match): Make extern.
6650 * breakpoint.h (breakpoint_address_match): New declaration.
6651 * inferior.h (stepping_past_instruction_at): New declaration.
6652 * infrun.c (struct step_over_info): New type.
6653 (step_over_info): New global.
6654 (set_step_over_info, clear_step_over_info)
6655 (stepping_past_instruction_at): New functions.
6656 (handle_inferior_event): Clear the step-over info when
6657 trap_expected is cleared.
6658 (resume): Remove now stale comment.
6659 (clear_proceed_status): Clear step-over info.
6660 (proceed): Adjust step-over handling to set or clear the step-over
6661 info instead of removing all breakpoints.
6662 (handle_signal_stop): When setting up a thread-hop, don't remove
6664 (stop_stepping): Clear step-over info.
6665 (keep_going): Adjust step-over handling to set or clear step-over
6666 info and then always inserting breakpoints, instead of removing
6667 all breakpoints when stepping over one.
6669 2014-03-20 Pedro Alves <palves@redhat.com>
6671 * infrun.c (previous_inferior_ptid): Adjust comment.
6672 (deferred_step_ptid): Delete.
6673 (infrun_thread_ptid_changed, prepare_to_proceed)
6674 (init_wait_for_inferior): Adjust.
6675 (handle_signal_stop): Delete deferred_step_ptid handling.
6677 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6680 * defs.h (sync_quit_force_run): New declaration.
6681 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6682 * event-top.c (async_sigterm_handler): New declaration.
6683 (async_sigterm_token): New variable.
6684 (async_init_signals): Create also async_sigterm_token.
6685 (async_sigterm_handler): New function.
6686 (sync_quit_force_run): New variable.
6687 (handle_sigterm): Replace quit_force call by other calls.
6688 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6690 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6692 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6693 offset into SPE pseudo registers.
6695 2014-03-18 Pedro Alves <palves@redhat.com>
6698 * inferior.h (print_stop_event): Declare.
6699 * infrun.c (print_stop_event): New, factored out from ...
6700 (normal_stop): ... this.
6701 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6702 of bpstat_print/print_stack_frame.
6704 2014-03-17 Tom Tromey <tromey@redhat.com>
6706 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6708 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6710 * ada-lang.c (decode_constrained_packed_array): Perform a
6711 minimal coercion for reference with coerce_ref instead of
6714 2014-03-17 Tristan Gingold <gingold@adacore.com>
6716 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6717 (darwin_solib_create_inferior_hook): Emit a warning if version
6720 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6722 * python/py-value.c (get_field_flag): Cast flag_name argument to
6723 PyObject_GetAttrString to support Python 2.4.
6725 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6727 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6728 (Global Maintainers): Remove Jan Kratochvil.
6730 2014-03-14 Pedro Alves <palves@redhat.com>
6732 * inferior.h (terminal_ours_for_output): Rename to ...
6733 (child_terminal_ours_for_output): ... this.
6734 (terminal_save_ours): Rename to ...
6735 (child_terminal_save_ours): ... this.
6736 (terminal_ours): Rename to ...
6737 (child_terminal_ours): ... this.
6738 (terminal_inferior): Rename to ...
6739 (child_terminal_inferior): ... this.
6740 (terminal_init_inferior): Rename to ...
6741 (child_terminal_init_inferior): ... this.
6742 (terminal_init_inferior_with_pgrp): Rename to ...
6743 (child_terminal_init_inferior_with_pgrp): ... this.
6744 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6745 (child_terminal_init_with_pgrp): ... this.
6746 (terminal_save_ours): Rename to ...
6747 (child_terminal_save_ours): ... this.
6748 (terminal_init_inferior): Rename to ...
6749 (child_terminal_init): ... this. Adjust.
6750 (terminal_inferior): Rename to ...
6751 (child_terminal_inferior): ... this.
6752 (terminal_ours_for_output): Rename to ...
6753 (child_terminal_ours_for_output): ... this. Adjust.
6754 (terminal_ours): Rename to ...
6755 (child_terminal_ours): ... this.
6756 (terminal_ours_1): Rename to ...
6757 (child_terminal_ours_1): ... this. Adjust.
6758 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6759 * windows-nat.c (do_initial_windows_stuff): Adjust.
6760 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6761 (gnu_terminal_init): ... this. Adjust.
6762 (gnu_target): Adjust.
6763 * inf-child.c (inf_child_target): Adjust.
6765 2014-03-13 Doug Evans <xdje42@gmail.com>
6768 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6771 2014-03-13 Doug Evans <xdje42@gmail.com>
6773 * value.c (record_latest_value): Call release_value_or_incref
6774 instead of release_value.
6776 2014-03-13 Pedro Alves <palves@redhat.com>
6778 * procfs.c (procfs_target): Don't override to_shortname,
6779 to_longname or to_doc.
6781 2014-03-13 Pedro Alves <palves@redhat.com>
6783 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6784 Unix in user visible strings.
6786 2014-03-12 Stan Shebs <stan@codesourcery.com>
6788 * gdbtypes.h: Annotate comments for Doxygen, add a page
6789 block comment with some general info.
6791 2014-03-12 Pedro Alves <palves@redhat.com>
6793 * infcmd.c (prepare_execution_command): New function, factored out
6794 from several execution commands.
6795 (run_command_1, continue_command, step_1, jump_command)
6796 (signal_command, until_command, advance_command, finish_command)
6797 (attach_command): Use prepare_execution_command.
6799 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6801 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6804 (struct arm_linux_thread_points): Removed.
6805 (struct arm_linux_process_info): New.
6806 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6807 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6808 (arm_linux_find_breakpoints_by_tid): Removed.
6809 (struct arch_lwp_info): New.
6810 (arm_linux_find_process_pid): New functions.
6811 (arm_linux_add_process): New functions.
6812 (arm_linux_process_info_get): New functions.
6813 (arm_linux_forget_process): New function.
6814 (arm_linux_get_debug_reg_state): New function.
6815 (struct update_registers_data): New.
6816 (update_registers_callback): New function.
6817 (arm_linux_insert_hw_breakpoint1): Updated.
6818 (arm_linux_remove_hw_breakpoint1): Updated.
6819 (arm_linux_insert_hw_breakpoint): Updated.
6820 (arm_linux_remove_hw_breakpoint): Updated.
6821 (arm_linux_insert_watchpoint): Updated.
6822 (arm_linux_remove_watchpoint): Updated.
6823 (arm_linux_new_thread): Updated.
6824 (arm_linux_prepare_to_resume): New function.
6825 (arm_linux_new_fork): New function.
6826 (_initialize_arm_linux_nat): Updated.
6828 2014-03-12 Pedro Alves <palves@redhat.com>
6830 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6832 2014-03-12 Tom Tromey <tromey@redhat.com>
6834 * inf-child.c (return_zero): New function.
6835 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6836 * aix-thread.c (aix_thread_inferior_created): New function.
6837 (aix_thread_attach): Remove.
6838 (init_aix_thread_ops): Don't set to_attach.
6839 (_initialize_aix_thread): Register inferior_created observer.
6840 * corelow.c (init_core_ops): Don't set to_attach or
6842 * exec.c (init_exec_ops): Don't set to_attach or
6844 * infcmd.c (run_command_1): Use find_run_target. Make direct
6846 (attach_command): Use find_attach_target. Make direct target
6848 * record-btrace.c (init_record_btrace_ops): Don't set
6850 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6852 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6853 set to_create_inferior.
6854 * target.c (complete_target_initialization): Add assertion.
6855 (target_create_inferior): Remove.
6856 (find_default_attach, find_default_create_inferior): Remove.
6857 (find_attach_target, find_run_target): New functions.
6858 (find_default_is_async_p, find_default_can_async_p)
6859 (target_supports_non_stop, target_attach): Remove.
6860 (init_dummy_target): Don't set to_create_inferior or
6861 to_supports_non_stop.
6862 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6863 TARGET_DEFAULT_FUNC.
6864 <to_create_inferior>: Add comment.
6865 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6866 TARGET_DEFAULT_RETURN.
6867 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6868 (find_attach_target, find_run_target): Declare.
6869 (target_create_inferior): Remove.
6870 (target_has_execution_1): Update comment.
6871 (target_supports_non_stop): Remove.
6872 * target-delegates.c: Rebuild.
6874 2014-03-12 Pedro Alves <palves@redhat.com>
6876 * inf-child.h: Update comment to not mention Unix.
6878 2014-03-12 Pedro Alves <palves@redhat.com>
6880 * inf-child.c: Update top comment to not mention Unix. Add
6881 generic comment describing how this target is meant to be used.
6882 (inf_child_post_attach, inf_child_post_startup_inferior)
6883 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6886 2014-03-12 Pedro Alves <palves@redhat.com>
6888 * nto-procfs.c: Include inf-child.h.
6889 (procfs_ops): Delete global.
6890 (procfs_can_run): Delete method.
6891 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6892 target pointer instead of referencing procfs_ops.
6893 (procfs_prepare_to_store): Delete.
6894 (init_procfs_ops): Delete function.
6895 (procfs_target): New function, based on init_procfs_ops, but
6896 inherit inf_child_target.
6897 (_initialize_procfs): Use procfs_target.
6899 2014-03-12 Pedro Alves <palves@redhat.com>
6901 * windows-nat.c: Include inf-child.h.
6902 (windows_ops): Delete global.
6903 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6905 (init_windows_ops): Delete function.
6906 (windows_target): New function, based on init_windows_ops, but
6907 inherit inf_child_target.
6908 (_initialize_windows_nat): Use windows_target. Install x86
6909 specific target methods here.
6911 2014-03-10 Doug Evans <xdje42@gmail.com>
6913 * guile/guile.c (call_initialize_gdb_module): New function.
6914 (initialize_guile): Replace call to scm_init_guile with call to
6917 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6919 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6920 in call to TYPE_CODE macro.
6922 2014-03-10 Jerome Guitton <guitton@adacore.com>
6924 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6925 Resolve tagged types to full view.
6927 2014-03-10 Hui Zhu <hui@codesourcery.com>
6929 * target.h (target_insert_breakpoint): Remove "hardware" from its
6932 2014-03-07 Doug Evans <dje@google.com>
6934 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6936 2014-03-07 Doug Evans <dje@google.com>
6938 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6939 Remove unused local comp_dir_attr. Assert exactly one of
6940 stub_comp_unit_die, stub_comp_dir is non-NULL.
6942 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6944 * target.h (complete_target_initialization, add_target):
6947 2014-03-07 Pedro Alves <palves@redhat.com>
6949 * go32-nat.c: Include inf-child.h.
6950 (go32_ops): Delete global.
6951 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6953 (go32_create_inferior): Push the passed in target pointer instead
6954 of referencing go32_ops.
6955 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6956 (go32_target): New function, based on init_go32_ops, but inherit
6958 (_initialize_go32_nat): Use go32_target. Move parts of
6961 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6963 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6964 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6965 SYMBOL_VALUE_ADDRESS.
6966 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6968 2014-03-06 Yao Qi <yao@codesourcery.com>
6970 * breakpoint.c (get_tracepoint_by_number): Remove argument
6971 optional_p. All callers updated. Adjust comments. Update
6973 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6975 2014-03-06 Yao Qi <yao@codesourcery.com>
6977 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6978 early if get_number returns zero. Use 'p' instead of 'args'.
6980 2014-03-06 Yao Qi <yao@codesourcery.com>
6982 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6985 2014-03-06 Yao Qi <yao@codesourcery.com>
6987 PR breakpoints/16508
6988 * tracepoint.c (check_trace_running): New function.
6989 (trace_find_command): Move code to check_trace_running and
6990 call check_trace_running.
6991 (trace_find_pc_command): Likewise.
6992 (trace_find_tracepoint_command): Likewise.
6993 (trace_find_line_command): Likewise.
6994 (trace_find_range_command): Likewise.
6995 * tracepoint.h (check_trace_running): Likewise.
6996 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6998 2014-03-06 Yao Qi <yao@codesourcery.com>
7000 * target.h (struct target_ops) <to_traceframe_info>: Use
7001 TARGET_DEFAULT_NORETURN (tcomplain ()).
7002 * target-delegates.c: Regenerated.
7004 2014-03-05 Pedro Alves <palves@redhat.com>
7007 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7008 void. Update comment.
7009 (dcache_xfer_memory): Delete.
7010 (dcache_read_memory_partial): New, based on the read bits of
7012 (dcache_update): Add status parameter. Use ULONGEST for len, and
7013 adjust. Discard cache lines if the reason for the update was
7015 * dcache.h (dcache_xfer_memory): Delete declaration.
7016 (dcache_read_memory_partial): New declaration.
7017 (dcache_update): Update prototype.
7018 * target.c (raw_memory_xfer_partial): Update the dcache here.
7019 (memory_xfer_partial_1): Don't handle dcache writes here.
7021 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7023 * remote-sim.c (gdbsim_load): Add const to prog.
7025 2014-03-03 Tom Tromey <tromey@redhat.com>
7027 * elfread.c (probe_key): Change to bfd_data.
7028 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7029 now per-BFD, not per-objfile.
7030 * stap-probe.c (stap_probe_destroy): Update comment.
7031 (handle_stap_probe): Allocate on the per-BFD obstack.
7033 2014-03-03 Tom Tromey <tromey@redhat.com>
7035 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7036 * breakpoint.c (create_longjmp_master_breakpoint): Use
7038 (add_location_to_breakpoint, bkpt_probe_insert_location)
7039 (bkpt_probe_remove_location): Update.
7040 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7041 * elfread.c (elf_symfile_relocate_probe): Remove.
7042 (elf_probe_fns): Update.
7043 (insert_exception_resume_breakpoint): Change type of "probe"
7044 parameter to bound_probe.
7045 (check_exception_resume): Update.
7046 * objfiles.c (objfile_relocate1): Don't relocate probes.
7047 * probe.c (bound_probe_s): New typedef.
7048 (parse_probes): Use get_probe_address. Set sal's objfile.
7049 (find_probe_by_pc): Return a bound_probe.
7050 (collect_probes): Return a VEC(bound_probe_s).
7051 (compare_probes): Update.
7052 (gen_ui_out_table_header_info): Change type of "probes"
7054 (info_probes_for_ops): Update.
7055 (get_probe_address): New function.
7056 (probe_safe_evaluate_at_pc): Update.
7057 * probe.h (struct probe_ops) <get_probe_address>: New field.
7058 <set_semaphore, clear_semaphore>: Add objfile parameter.
7059 (struct probe) <objfile>: Remove field.
7061 <address>: Update comment.
7062 (struct bound_probe): New.
7063 (find_probe_by_pc): Return a bound_probe.
7064 (get_probe_address): Declare.
7065 * solib-svr4.c (struct probe_and_action) <address>: New field.
7066 (hash_probe_and_action, equal_probe_and_action): Update.
7067 (register_solib_event_probe): Add address parameter.
7068 (solib_event_probe_at): Update.
7069 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7071 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7072 (stap_get_probe_address): New function.
7073 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7074 (compile_probe_arg): Update.
7075 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7077 (handle_stap_probe): Don't relocate the probe.
7078 (stap_relocate): Remove.
7079 (stap_gen_info_probes_table_values): Update.
7080 (stap_probe_ops): Remove stap_relocate.
7081 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7082 (debug_sym_probe_fns): Update.
7083 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7084 * symtab.c (init_sal): Use memset.
7085 * symtab.h (struct symtab_and_line) <objfile>: New field.
7086 * tracepoint.c (start_tracing, stop_tracing): Update.
7088 2014-03-03 Tom Tromey <tromey@redhat.com>
7090 * probe.h (parse_probes, find_probe_by_pc)
7091 (find_probes_in_objfile): Fix comments.
7093 2014-03-02 Doug Evans <xdje42@gmail.com>
7095 * infrun.c (handle_signal_stop): Replace test for
7096 TARGET_WAITKIND_STOPPED with an assert.
7098 2014-03-02 Doug Evans <xdje42@gmail.com>
7100 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7102 2014-03-02 Doug Evans <xdje42@gmail.com>
7104 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7106 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7108 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7110 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7112 * i386obsd-nat.c: Include "obsd-nat.h".
7113 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7115 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7117 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7119 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7121 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7123 * mips64obsd-nat.c: Include "obsd-nath".
7124 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7126 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7128 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7130 * amd64obsd-nat.c: Include "obsd-nat,h.
7131 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7133 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7135 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7137 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7138 (find_overload_match): Update call to find_oload_champ.
7139 (find_oload_champ_namespace_loop): Likewise
7141 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7143 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7145 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7146 * config/sparc/obsd64.mh: New file.
7147 * sparc64obsd-nat.c: New file.
7149 * obsd-nat.h: New file.
7150 * obsd-nat.c: New file.
7151 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7152 (ALLDEPFILES): Add obsd-nat.c.
7154 2014-02-28 Tom Tromey <tromey@redhat.com>
7156 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7157 * cli-out.h (cli_ui_out_impl): Now const.
7158 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7159 * ui-out.c (struct ui_out) <impl>: Now const.
7160 (default_ui_out_impl): Now const.
7161 (ui_out_new): Make 'impl' parameter const.
7162 * ui-out.h (ui_out_new): Update.
7164 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7166 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7168 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7170 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7172 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7174 Additional PR 8882 fix.
7175 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7177 2014-02-27 Pedro Alves <palves@redhat.com>
7179 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7182 2014-02-27 Pedro Alves <palves@redhat.com>
7185 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7186 * nat/linux-waitpid.c: Include string.h.
7187 (status_to_str): Moved here and made extern.
7188 * nat/linux-waitpid.h (status_to_str): New declaration.
7190 2014-02-27 Hui Zhu <hui@codesourcery.com>
7193 * infrun.c (ptid_match): Move ...
7194 * common/ptid.c (ptid_match): ... here.
7195 * inferior.h (ptid_match): Move ...
7196 * common/ptid.h (ptid_match): ... here.
7198 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7200 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7201 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7204 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7206 * obsd-tdep.c (obsd_auxv_parse): New function.
7207 (obsd_init_abi): Set auxv_parse.
7209 * gdbarch.sh (auxv_parse): New.
7210 * gdbarch.h: Regenerated.
7211 * gdbarch.c: Regenerated.
7212 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7214 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7216 * guile/scm-value.c (gdbscm_history_append_x): New function.
7217 (value_functions): Add it.
7219 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7221 * dwarf2read.c (attr_value_as_address): New function.
7222 (dwarf2_find_base_address, read_call_site_scope): Use
7223 attr_value_as_address in place of DW_ADDR.
7224 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7225 the low and high addresses. Slight rework of the handling
7226 of the high pc being a constant form, and limit it to
7227 DWARF verson 4 or higher.
7228 (dwarf2_record_block_ranges): Likewise.
7229 (read_partial_die): Likewise.
7230 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7232 2014-02-26 Tom Tromey <tromey@redhat.com>
7234 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7236 2014-02-26 Tom Tromey <tromey@redhat.com>
7238 * elfread.c (elf_read_minimal_symbols): Return early if
7239 minimal symbols have already been read. Add "ei" parameter.
7240 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7241 * minsyms.c (prim_record_minimal_symbol_full): Update.
7242 * objfiles.h (struct objstats) <n_minsyms>: Move...
7243 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7244 * symmisc.c (print_objfile_statistics): Update.
7246 2014-02-26 Tom Tromey <tromey@redhat.com>
7248 * elfread.c (elf_read_minimal_symbols): New function, from
7250 (elf_symfile_read): Call it.
7252 2014-02-26 Tom Tromey <tromey@redhat.com>
7254 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7255 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7256 (lookup_minimal_symbol_solib_trampoline)
7257 (lookup_minimal_symbol_by_pc_section_1)
7258 (lookup_minimal_symbol_and_objfile): Update.
7259 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7260 Don't allocate a minimal symbol if minsyms have already been read.
7261 (build_minimal_symbol_hash_tables): Update.
7262 (install_minimal_symbols): Do nothing if minsyms already read.
7263 Use the per-BFD obstack.
7264 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7265 * objfiles.c (allocate_objfile): Call
7266 terminate_minimal_symbol_table later.
7267 (have_minimal_symbols): Update.
7268 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7269 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7270 Move from struct objfile.
7271 <minsyms_read>: New field.
7272 (struct objfile) <msymbols, minimal_symbol_count,
7273 msymbol_hash, msymbol_demangled_hash>: Move.
7274 (ALL_OBJFILE_MSYMBOLS): Update.
7275 * symfile.c (read_symbols): Set minsyms_read.
7276 (reread_symbols): Update.
7277 * symmisc.c (dump_objfile, dump_msymbols): Update.
7279 2014-02-26 Tom Tromey <tromey@redhat.com>
7281 * minsyms.c (msymbols_sort): Remove.
7282 * minsyms.h (msymbols_sort): Remove.
7283 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7284 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7285 * elfread.c (elf_symtab_read): Don't add section offsets.
7286 * xcoffread.c (record_minimal_symbol): Don't add section offset
7287 to minimal symbol address.
7288 * somread.c (text_offset, data_offset): Remove.
7289 (som_symtab_read): Don't add section offsets to minimal symbol
7291 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7292 Don't add section offsets to minimal symbols.
7293 * coffread.c (coff_symtab_read): Don't add section offsets
7294 to minimal symbol addresses.
7295 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7296 to minimal symbol addresses.
7297 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7298 section offset to minimal symbol addresses.
7299 * mdebugread.c (parse_partial_symbols): Don't add section
7300 offset to minimal symbol addresses.
7301 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7302 offset to minimal symbol addresses.
7304 2014-02-26 Tom Tromey <tromey@redhat.com>
7306 * ada-lang.c (ada_main_name): Update.
7307 (ada_add_standard_exceptions): Update.
7308 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7309 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7310 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7311 * auxv.c (ld_so_xfer_auxv): Update.
7312 * avr-tdep.c (avr_scan_prologue): Update.
7313 * ax-gdb.c (gen_var_ref): Update.
7314 * blockframe.c (get_pc_function_start)
7315 (find_pc_partial_function_gnu_ifunc): Update.
7316 * breakpoint.c (create_overlay_event_breakpoint)
7317 (create_longjmp_master_breakpoint)
7318 (create_std_terminate_master_breakpoint)
7319 (create_exception_master_breakpoint): Update.
7320 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7321 * c-valprint.c (c_val_print): Update.
7322 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7323 * common/agent.c (agent_look_up_symbols): Update.
7324 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7325 * dwarf2loc.c (call_site_to_target_addr): Update.
7326 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7327 * elfread.c (elf_gnu_ifunc_record_cache)
7328 (elf_gnu_ifunc_resolve_by_got): Update.
7329 * findvar.c (default_read_var_value): Update.
7330 * frame.c (inside_main_func): Update.
7331 * frv-tdep.c (frv_frame_this_id): Update.
7332 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7333 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7335 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7336 (hppa_hpux_find_dummy_bpaddr): Update.
7337 * hppa-tdep.c (hppa_symbol_address): Update.
7338 * infcmd.c (until_next_command): Update.
7339 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7341 * linespec.c (minsym_found, add_minsym): Update.
7342 * linux-nat.c (get_signo): Update.
7343 * linux-thread-db.c (inferior_has_bug): Update.
7344 * m32c-tdep.c (m32c_return_value)
7345 (m32c_m16c_address_to_pointer): Update.
7346 * m32r-tdep.c (m32r_frame_this_id): Update.
7347 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7348 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7349 * maint.c (maintenance_translate_address): Update.
7350 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7351 (frob_address): New function.
7352 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7353 frob_address. Rename parameter to "pc_in".
7354 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7356 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7358 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7359 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7360 * objc-lang.c (find_objc_msgsend): Update.
7361 * objfiles.c (objfile_relocate1): Update.
7362 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7363 * p-valprint.c (pascal_val_print): Update.
7364 * parse.c (write_exp_msymbol): Update.
7365 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7366 (ppc_elfv2_skip_entrypoint): Update.
7367 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7368 * printcmd.c (build_address_symbolic, msym_info)
7369 (address_info): Update.
7370 * proc-service.c (ps_pglobal_lookup): Update.
7371 * psymtab.c (find_pc_sect_psymtab_closer)
7372 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7373 Change msymbol parameter to bound_minimal_symbol.
7374 * ravenscar-thread.c (get_running_thread_id): Update.
7375 * remote.c (remote_check_symbols): Update.
7376 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7378 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7379 * solib-dsbt.c (lm_base): Update.
7380 * solib-frv.c (lm_base, main_got): Update.
7381 * solib-irix.c (locate_base): Update.
7382 * solib-som.c (som_solib_create_inferior_hook)
7383 (link_map_start): Update.
7384 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7385 * solib-svr4.c (elf_locate_base, enable_break): Update.
7386 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7387 (flush_ea_cache): Update.
7388 * stabsread.c (define_symbol, scan_file_globals): Update.
7389 * stack.c (find_frame_funname): Update.
7390 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7391 (debug_qf_find_pc_sect_symtab): Update.
7392 * symfile.c (simple_read_overlay_table)
7393 (simple_overlay_update): Update.
7394 * symfile.h (struct quick_symbol_functions)
7395 <find_pc_sect_symtab>: Change type of msymbol to
7396 bound_minimal_symbol.
7397 * symmisc.c (dump_msymbols): Update.
7398 * symtab.c (find_pc_sect_symtab_via_partial)
7399 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7400 (search_symbols, print_msymbol_info): Update.
7401 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7402 (MSYMBOL_VALUE_ADDRESS): Redefine.
7403 (BMSYMBOL_VALUE_ADDRESS): New macro.
7404 * tracepoint.c (scope_info): Update.
7405 * tui/tui-disasm.c (tui_find_disassembly_address)
7406 (tui_get_begin_asm_address): Update.
7407 * valops.c (find_function_in_inferior): Update.
7408 * value.c (value_static_field, value_fn_field): Update.
7410 2014-02-26 Tom Tromey <tromey@redhat.com>
7412 * ada-lang.c (ada_update_initial_language): Update.
7413 (ada_main_name, ada_has_this_exception_support): Update.
7414 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7415 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7416 * arm-tdep.c (arm_skip_stub): Update.
7417 * auxv.c (ld_so_xfer_auxv): Update.
7418 * avr-tdep.c (avr_scan_prologue): Update.
7419 * ax-gdb.c (gen_var_ref): Update.
7420 * breakpoint.c (struct breakpoint_objfile_data)
7421 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7422 type to bound_minimal_symbol.
7423 (create_overlay_event_breakpoint)
7424 (create_longjmp_master_breakpoint)
7425 (create_std_terminate_master_breakpoint)
7426 (create_exception_master_breakpoint): Update.
7427 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7428 * c-exp.y (classify_name): Update.
7429 * coffread.c (coff_symfile_read): Update.
7430 * common/agent.c (agent_look_up_symbols): Update.
7431 * d-lang.c (d_main_name): Update.
7432 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7433 * dec-thread.c (enable_dec_thread): Update.
7434 * dwarf2loc.c (call_site_to_target_addr): Update.
7435 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7436 * eval.c (evaluate_subexp_standard): Update.
7437 * findvar.c (struct minsym_lookup_data) <result>: Change type
7438 to bound_minimal_symbol.
7440 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7441 * frame.c (inside_main_func): Update.
7442 * frv-tdep.c (frv_frame_this_id): Update.
7443 * gcore.c (call_target_sbrk): Update.
7444 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7445 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7447 * go-lang.c (go_main_name): Update.
7448 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7449 (hppa_hpux_find_import_stub_for_addr): Update.
7450 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7451 Update. Change return type.
7452 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7454 * jit.c (jit_breakpoint_re_set_internal): Update.
7455 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7457 * linux-nat.c (get_signo): Update.
7458 * linux-thread-db.c (inferior_has_bug): Update
7459 * m32c-tdep.c (m32c_return_value)
7460 (m32c_m16c_address_to_pointer): Update.
7461 * m32r-tdep.c (m32r_frame_this_id): Update.
7462 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7463 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7464 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7465 lookup_minimal_symbol. Change return type.
7466 (lookup_minimal_symbol): Remove.
7467 (lookup_bound_minimal_symbol): Update.
7468 (lookup_minimal_symbol_text): Change return type.
7469 (lookup_minimal_symbol_solib_trampoline): Change return type.
7470 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7471 (lookup_minimal_symbol_solib_trampoline): Change return type.
7472 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7473 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7474 (value_nsstring, find_imps): Update.
7475 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7476 * p-lang.c (pascal_main_name): Update.
7477 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7478 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7479 * proc-service.c (ps_pglobal_lookup): Update.
7480 * ravenscar-thread.c (get_running_thread_msymbol): Change
7482 (has_ravenscar_runtime, get_running_thread_id): Update.
7483 * remote.c (remote_check_symbols): Update.
7484 * sol-thread.c (ps_pglobal_lookup): Update.
7485 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7486 * solib-dsbt.c (lm_base): Update.
7487 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7489 * solib-irix.c (locate_base): Update.
7490 * solib-som.c (som_solib_create_inferior_hook)
7491 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7493 * solib-spu.c (spu_enable_break): Update.
7494 * solib-svr4.c (elf_locate_base, enable_break): Update.
7495 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7496 (flush_ea_cache): Update.
7497 * stabsread.c (define_symbol): Update.
7498 * symfile.c (simple_read_overlay_table): Update.
7499 * symtab.c (find_pc_sect_line): Update.
7500 * tracepoint.c (scope_info): Update.
7501 * tui-disasm.c (tui_get_begin_asm_address): Update.
7502 * value.c (value_static_field): Update.
7504 2014-02-26 Tom Tromey <tromey@redhat.com>
7506 * minsyms.c (prim_record_minimal_symbol_full): Use
7507 SET_MSYMBOL_VALUE_ADDRESS.
7508 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7509 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7510 SET_MSYMBOL_VALUE_ADDRESS.
7511 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7512 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7514 2014-02-26 Tom Tromey <tromey@redhat.com>
7516 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7517 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7518 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7519 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7520 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7521 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7522 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7523 * ada-lang.c (ada_main_name): Update.
7524 (ada_lookup_simple_minsym): Update.
7525 (ada_make_symbol_completion_list): Update.
7526 (ada_add_standard_exceptions): Update.
7527 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7528 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7529 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7530 * arm-tdep.c (skip_prologue_function): Update.
7531 (arm_skip_stack_protector, arm_skip_stub): Update.
7532 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7533 (arm_wince_skip_main_prologue): Update.
7534 * auxv.c (ld_so_xfer_auxv): Update.
7535 * avr-tdep.c (avr_scan_prologue): Update.
7536 * ax-gdb.c (gen_var_ref): Update.
7537 * block.c (call_site_for_pc): Update.
7538 * blockframe.c (get_pc_function_start): Update.
7539 (find_pc_partial_function_gnu_ifunc): Update.
7540 * breakpoint.c (create_overlay_event_breakpoint): Update.
7541 (create_longjmp_master_breakpoint): Update.
7542 (create_std_terminate_master_breakpoint): Update.
7543 (create_exception_master_breakpoint): Update.
7544 (resolve_sal_pc): Update.
7545 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7546 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7548 * c-valprint.c (c_val_print): Update.
7549 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7550 * coffread.c (coff_symfile_read): Update.
7551 * common/agent.c (agent_look_up_symbols): Update.
7552 * dbxread.c (find_stab_function_addr): Update.
7553 (end_psymtab): Update.
7554 * dwarf2loc.c (call_site_to_target_addr): Update.
7555 (func_verify_no_selftailcall): Update.
7556 (tailcall_dump): Update.
7557 (call_site_find_chain_1): Update.
7558 (dwarf_expr_reg_to_entry_parameter): Update.
7559 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7560 (elf_gnu_ifunc_resolve_by_got): Update.
7561 * f-valprint.c (info_common_command): Update.
7562 * findvar.c (read_var_value): Update.
7563 * frame.c (get_prev_frame_1): Update.
7564 (inside_main_func): Update.
7565 * frv-tdep.c (frv_skip_main_prologue): Update.
7566 (frv_frame_this_id): Update.
7567 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7568 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7569 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7570 (gnuv3_skip_trampoline): Update.
7571 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7572 (hppa64_hpux_in_solib_call_trampoline): Update.
7573 (hppa_hpux_skip_trampoline_code): Update.
7574 (hppa64_hpux_search_dummy_call_sequence): Update.
7575 (hppa_hpux_find_import_stub_for_addr): Update.
7576 (hppa_hpux_find_dummy_bpaddr): Update.
7577 * hppa-tdep.c (hppa_symbol_address)
7578 (hppa_lookup_stub_minimal_symbol): Update.
7579 * i386-tdep.c (i386_skip_main_prologue): Update.
7580 (i386_pe_skip_trampoline_code): Update.
7581 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7582 * infcall.c (get_function_name): Update.
7583 * infcmd.c (until_next_command): Update.
7584 * jit.c (jit_breakpoint_re_set_internal): Update.
7585 (jit_inferior_init): Update.
7586 * linespec.c (minsym_found): Update.
7587 (add_minsym): Update.
7588 * linux-fork.c (info_checkpoints_command): Update.
7589 * linux-nat.c (get_signo): Update.
7590 * linux-thread-db.c (inferior_has_bug): Update.
7591 * m32c-tdep.c (m32c_return_value): Update.
7592 (m32c_m16c_address_to_pointer): Update.
7593 (m32c_m16c_pointer_to_address): Update.
7594 * m32r-tdep.c (m32r_frame_this_id): Update.
7595 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7596 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7597 * maint.c (maintenance_translate_address): Update.
7598 * minsyms.c (add_minsym_to_hash_table): Update.
7599 (add_minsym_to_demangled_hash_table): Update.
7600 (msymbol_objfile): Update.
7601 (lookup_minimal_symbol): Update.
7602 (iterate_over_minimal_symbols): Update.
7603 (lookup_minimal_symbol_text): Update.
7604 (lookup_minimal_symbol_by_pc_name): Update.
7605 (lookup_minimal_symbol_solib_trampoline): Update.
7606 (lookup_minimal_symbol_by_pc_section_1): Update.
7607 (lookup_minimal_symbol_and_objfile): Update.
7608 (prim_record_minimal_symbol_full): Update.
7609 (compare_minimal_symbols): Update.
7610 (compact_minimal_symbols): Update.
7611 (build_minimal_symbol_hash_tables): Update.
7612 (install_minimal_symbols): Update.
7613 (terminate_minimal_symbol_table): Update.
7614 (find_solib_trampoline_target): Update.
7615 (minimal_symbol_upper_bound): Update.
7616 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7617 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7618 (mips_skip_pic_trampoline_code): Update.
7619 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7620 * objc-lang.c (selectors_info): Update.
7621 (classes_info): Update.
7622 (find_methods): Update.
7623 (find_imps): Update.
7624 (find_objc_msgsend): Update.
7625 * objfiles.c (objfile_relocate1): Update.
7626 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7627 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7628 * p-valprint.c (pascal_val_print): Update.
7629 * parse.c (write_exp_msymbol): Update.
7630 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7631 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7632 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7633 * printcmd.c (build_address_symbolic): Update.
7635 (address_info): Update.
7636 * proc-service.c (ps_pglobal_lookup): Update.
7637 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7638 (find_pc_sect_psymtab): Update.
7639 * python/py-framefilter.c (py_print_frame): Update.
7640 * ravenscar-thread.c (get_running_thread_id): Update.
7641 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7643 * remote.c (remote_check_symbols): Update.
7644 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7645 (rs6000_skip_trampoline_code): Update.
7646 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7647 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7648 * solib-dsbt.c (lm_base): Update.
7649 * solib-frv.c (lm_base): Update.
7651 * solib-irix.c (locate_base): Update.
7652 * solib-som.c (som_solib_create_inferior_hook): Update.
7653 (som_solib_desire_dynamic_linker_symbols): Update.
7654 (link_map_start): Update.
7655 * solib-spu.c (spu_enable_break): Update.
7656 (ocl_enable_break): Update.
7657 * solib-svr4.c (elf_locate_base): Update.
7658 (enable_break): Update.
7659 * spu-tdep.c (spu_get_overlay_table): Update.
7660 (spu_catch_start): Update.
7661 (flush_ea_cache): Update.
7662 * stabsread.c (define_symbol): Update.
7663 (scan_file_globals): Update.
7664 * stack.c (find_frame_funname): Update.
7665 (frame_info): Update.
7666 * symfile.c (simple_read_overlay_table): Update.
7667 (simple_overlay_update): Update.
7668 * symmisc.c (dump_msymbols): Update.
7669 * symtab.c (fixup_section): Update.
7670 (find_pc_sect_line): Update.
7671 (skip_prologue_sal): Update.
7672 (search_symbols): Update.
7673 (print_msymbol_info): Update.
7674 (rbreak_command): Update.
7675 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7676 (completion_list_objc_symbol): Update.
7677 (default_make_symbol_completion_list_break_on): Update.
7678 * tracepoint.c (scope_info): Update.
7679 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7680 (tui_get_begin_asm_address): Update.
7681 * valops.c (find_function_in_inferior): Update.
7682 * value.c (value_static_field): Update.
7683 (value_fn_field): Update.
7685 2014-02-26 Tom Tromey <tromey@redhat.com>
7687 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7688 bound minimal symbols. Move code that knows about minsym
7690 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7692 * minsyms.h (minimal_symbol_upper_bound): Declare.
7693 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7694 minimal_symbol_upper_bound.
7696 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7698 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7699 Use the type's name if its basic type does not have a tag.
7701 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7703 * dwarf2read.c (read_subrange_type): Add comment.
7705 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7707 * dwarf2read.c (update_enumeration_type_from_children): New
7708 function, mostly extracted from process_structure_scope.
7709 (read_enumeration_type): Call update_enumeration_type_from_children.
7710 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7711 and flag_flag_enum fields.
7713 2014-02-26 Pedro Alves <palves@redhat.com>
7715 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7716 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7717 to_xfer_partial method.
7719 2014-02-26 Pedro Alves <palves@redhat.com>
7721 * target.c (complete_target_initialization): Don't install
7722 default_xfer_partial as to_xfer_partial hook.
7724 (update_current_target): Don't INHERIT nor de_fault
7725 deprecated_xfer_memory. Delete de_fault macro.
7726 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7727 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7728 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7731 2014-02-26 Pedro Alves <palves@redhat.com>
7733 * go32-nat.c (my_write_child): New function.
7734 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7735 (go32_xfer_partial): New function.
7736 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7737 Instead install a to_xfer_partial hook.
7739 2014-02-26 Pedro Alves <palves@redhat.com>
7741 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7742 to_xfer_partial helper. Rewrite.
7743 (procfs_xfer_partial): New function.
7744 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7745 Install a to_xfer_partial hook.
7747 2014-02-26 Pedro Alves <palves@redhat.com>
7749 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7750 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7751 (m32r_xfer_partial): New function.
7752 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7753 Install a to_xfer_partial hook.
7755 2014-02-26 Pedro Alves <palves@redhat.com>
7757 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7759 (mips_xfer_partial): New function.
7760 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7761 hook. Install a to_xfer_partial hook.
7763 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7765 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7766 * gdbtypes.c (create_array_type_with_stride): New function,
7767 renaming create_array_type, but with an added parameter
7768 called "bit_stride".
7769 (create_array_type): Re-implement using
7770 create_array_type_with_stride.
7771 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7772 and DW_AT_bit_stride attributes.
7774 2014-02-26 Pedro Alves <palves@redhat.com>
7776 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7777 task-specific breakpoints.
7779 2014-02-25 Pedro Alves <palves@redhat.com>
7781 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7782 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7784 2014-02-25 Stan Shebs <stan@codesourcery.com>
7786 * defs.h: Annotate comments for Doxygen.
7788 2014-02-25 Tom Tromey <tromey@redhat.com>
7790 * target.h (target_ignore): Don't declare.
7791 * target.c (target_ignore): Remove.
7793 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7796 * auto-load.c (auto_load_objfile_script_1): Change filename to
7799 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7801 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7802 documentation. Adjust prototype to match the target_ops
7803 to_xfer_partial method. Adjust implementation accordingly.
7805 2014-02-25 Hui Zhu <hui@codesourcery.com>
7807 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7810 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7812 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7813 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7814 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7815 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7816 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7817 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7818 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7819 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7821 (rl78_register_type): Use a data pointer type for SP and
7822 new pseudo registers mentioned above. Use a 16 bit integer
7823 type for all other register pairs.
7824 (rl78_register_name, rl78_g10_register_name): Update for
7825 new pseudo registers.
7826 (rl78_pseudo_register_read): Likewise.
7827 (rl78_pseudo_register_write): Likewise.
7828 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7829 to the newly added pseudo registers.
7831 2014-02-24 Doug Evans <dje@google.com>
7833 * value.c (record_latest_value): Fix comment.
7834 * printcmd.c (print_command_1): Remove code to handle -1 return from
7835 record_latest_value.
7837 2014-02-24 Pedro Alves <palves@redhat.com>
7839 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7840 deprecated_xfer_memory hook.
7841 (procfs_xfer_partial): Call procfs_xfer_memory instead
7842 of the deprecated_xfer_memory target hook.
7843 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7846 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7848 * windows-nat.c (windows_xfer_shared_libraries): Return
7849 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7850 requested object is TARGET_OBJECT_LIBRARIES.
7852 2014-02-24 Yao Qi <yao@codesourcery.com>
7854 * target.h (enum target_xfer_status)
7855 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7856 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7858 * corefile.c (memory_error_message): User updated.
7859 * exec.c (section_table_read_available_memory): Likewise.
7860 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7861 * target.c (target_xfer_status_to_string): Likewise.
7862 (raw_memory_xfer_partial): Likewise.
7863 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7864 * valops.c (read_value_memory): Likewise.
7865 * exec.h: Update comments.
7867 2014-02-24 Yao Qi <yao@codesourcery.com>
7869 * target.c (target_xfer_status_to_string): Rename argument err
7871 * target.h (target_xfer_status_to_string): Update declaration.
7872 Replace target_xfer_error_to_string with
7873 target_xfer_status_to_string in comment.
7875 2014-02-24 Yao Qi <yao@codesourcery.com>
7877 * mips-linux-nat.c (super_close): Update its type.
7878 (mips_linux_close): Pass 'self' to super_close.
7880 2014-02-24 Yao Qi <yao@codesourcery.com>
7882 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7883 * corefile.c (read_memory): Adjusted.
7884 * target.c (target_write_with_progress): Adjusted.
7886 2014-02-23 Yao Qi <yao@codesourcery.com>
7890 2013-10-25 Yao Qi <yao@codesourcery.com>
7892 * remote.c (remote_traceframe_info): Return early if
7893 traceframe is not selected.
7895 2013-07-19 Yao Qi <yao@codesourcery.com>
7897 * target.c (update_current_target): Change the default action
7898 of 'to_traceframe_info' from tcomplain to return_zero.
7899 * target.h (struct target_ops) <to_traceframe_info>: Add more
7902 2014-02-23 Yao Qi <yao@codesourcery.com>
7904 * valops.c (read_value_memory): Rewrite it. Call
7905 target_xfer_partial in a loop.
7906 * exec.h (section_table_available_memory): Remove declaration.
7907 Move comments to ...
7908 * exec.c (section_table_available_memory): ... here. Make it
7911 2014-02-23 Yao Qi <yao@codesourcery.com>
7913 * exec.c (section_table_read_available_memory): New function.
7914 * exec.h (section_table_read_available_memory): Declare.
7915 * ctf.c (ctf_xfer_partial): Call
7916 section_table_read_available_memory.
7917 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7919 2014-02-23 Yao Qi <yao@codesourcery.com>
7921 * ctf.c (ctf_xfer_partial): Move code to ...
7922 * exec.c (exec_read_partial_read_only): ... it. New function.
7923 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7924 * tracefile.c: Include "exec.h".
7925 * exec.h (exec_read_partial_read_only): Declare.
7927 2014-02-23 Yao Qi <yao@codesourcery.com>
7929 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7930 (tfile_has_memory): Remove.
7931 (init_tfile_ops): Don't set fields to_has_all_memory and
7932 to_has_memory of tfile_ops.
7933 * tracefile.c (tracefile_has_all_memory): New function.
7934 (tracefile_has_memory): New function.
7935 (init_tracefile_ops): Initialize fields to_has_all_memory and
7936 to_has_memory of 'ops'.
7938 2014-02-23 Yao Qi <yao@codesourcery.com>
7940 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7941 (ctf_thread_alive, ctf_get_trace_status): Remove.
7942 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7944 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7945 (tfile_has_stack, tfile_has_registers): Remove.
7946 (tfile_thread_alive): Remove.
7947 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7949 * tracefile.c (tracefile_has_stack): New function.
7950 (tracefile_has_registers): New function.
7951 (tracefile_thread_alive): New function.
7952 (tracefile_get_trace_status): New function.
7953 (init_tracefile_ops): New function.
7954 * tracefile.h (init_tracefile_ops): Declare.
7956 2014-02-23 Yao Qi <yao@codesourcery.com>
7958 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7959 (O_LARGEFILE): Likewise.
7960 (tfile_ops): Likewise.
7961 (TRACE_HEADER_SIZE): Likewise.
7962 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7963 (cur_data_size): Likewise.
7964 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7965 (tfile_close, tfile_files_info): Likewise.
7966 (tfile_get_trace_status): Likewise.
7967 (tfile_get_tracepoint_status): Likewise.
7968 (tfile_get_traceframe_address): Likewise.
7969 (tfile_trace_find, match_blocktype): Likewise.
7970 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7971 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7972 (tfile_get_trace_state_variable_value): Likewise.
7973 (tfile_has_all_memory, tfile_has_memory): Likewise.
7974 (tfile_has_stack, tfile_has_registers): Likewise.
7975 (tfile_thread_alive, build_traceframe_info): Likewise.
7976 (tfile_traceframe_info, init_tfile_ops): Likewise.
7977 (_initialize_tracepoint): Don't call init_tfile_ops
7978 and add_target_with_completer.
7979 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7980 exec.h, completer.h and filenames.h.
7981 (_initialize_tracefile_tfile): New function.
7983 2014-02-23 Yao Qi <yao@codesourcery.com>
7985 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7987 (HFILES_NO_SRCDIR): Add tracefile.h.
7988 * ctf.c: Include "tracefile.h".
7989 * tracefile.h: New file.
7990 * tracefile.c: New file
7991 * tracefile-tfile.c: New file.
7992 * tracepoint.c: Include "tracefile.h".
7993 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7994 (stop_reason_names): Add const.
7995 (trace_file_writer_xfree): Move it to tracefile.c.
7996 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7997 (trace_save_ctf): Likewise.
7998 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7999 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8000 (tfile_write_header, tfile_write_regblock_type): Likewise.
8001 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8002 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8003 (tfile_write_raw_data, tfile_end): Likewise.
8004 (tfile_trace_file_writer_new): Likewise.
8005 (free_uploaded_tp): Make it extern.
8006 (free_uploaded_tsv): Make it extern.
8007 (_initialize_tracepoint): Move code to register command 'tsave'
8009 * tracepoint.h (stop_reason_names): Declare.
8010 (struct trace_frame_write_ops): Move it to tracefile.h.
8011 (struct trace_file_write_ops): Likewise.
8012 (struct trace_file_writer): Likewise.
8013 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8015 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8018 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8020 (get_cores_used_by_process): New parameter num_cores, use it.
8021 (linux_xfer_osdata_processes): Pass num_cores to it.
8022 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8025 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8027 * target.c (memory_xfer_partial): Fix length arg in call to
8028 breakpoint_xfer_memory.
8030 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8033 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8034 number comes after the + or - signs. Adjust length of register
8035 name to be extracted.
8037 2014-02-20 Tom Tromey <tromey@redhat.com>
8039 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8040 (ada_varobj_ops): Mark "extern".
8042 2014-02-20 Tom Tromey <tromey@redhat.com>
8044 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8046 2014-02-20 Doug Evans <xdje42@gmail.com>
8048 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8049 All callers updated.
8050 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8051 All callers updated.
8052 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8053 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8055 2014-02-20 lin zuojian <manjian2006@gmail.com>
8056 Joel Brobecker <brobecker@adacore.com>
8057 Doug Evans <xdje42@gmail.com>
8060 * dwarf2read.c (struct die_info): New member in_process.
8061 (reset_die_in_process): New function.
8062 (process_die): Set it at the start, reset when returning.
8063 (inherit_abstract_dies): Only call process_die if origin_child_die
8064 not already being processed.
8066 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8068 * windows-nat.c (handle_unload_dll): Add function documentation.
8069 (do_initial_windows_stuff): Add comment explaining why we wait
8070 until after inferior initialization has finished before
8071 processing all DLLs.
8073 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8075 * windows-nat.c (get_module_name): Delete.
8076 (windows_get_exec_module_filename): New function, mostly
8077 inspired from get_module_name.
8078 (windows_pid_to_exec_file): Replace call to get_module_name
8079 by call to windows_get_exec_module_filename.
8081 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8083 * windows-nat.c (handle_load_dll): Rewrite this function's
8084 introductory comment. Remove code using get_module_name
8085 to get the DLL's name.
8087 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8089 * windows-nat.c (get_windows_debug_event): Ignore
8090 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8091 if windows_initialization_done == 0.
8092 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8093 Adjust implementation to always load all DLLs.
8094 (do_initial_windows_stuff): Replace call to
8095 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8097 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8099 * windows-nat.c (_initialize_windows_nat): Deprecate the
8100 "dll-symbols" command. Turn the "add-shared-symbol-files"
8101 and "assf" aliases into commands, and deprecate them as well.
8102 * NEWS: Add entry explaining that "dll-symbols" and its two
8103 aliases are now deprecated.
8105 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8107 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8108 new-line in debug string. Remove trailing spaces.
8110 2014-02-19 Stan Shebs <stan@codesourcery.com>
8112 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8114 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8116 * NEWS: Add entry for the new feature
8117 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8120 2014-02-19 Stan Shebs <stan@codesourcery.com>
8122 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8124 2014-02-19 Pedro Alves <palves@redhat.com>
8126 * common/ptid.h (struct ptid): Mention that process_stratum
8127 targets should prefer ptid.lwp.
8129 2014-02-19 Pedro Alves <palves@redhat.com>
8131 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8132 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8133 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8134 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8135 store remote thread ids rather than ptid.tid.
8136 (_initialize_remote): Adjust.
8138 2014-02-19 Tom Tromey <tromey@redhat.com>
8140 * target.c (target_get_unwinder): Rewrite.
8141 (target_get_tailcall_unwinder): Rewrite.
8142 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8143 (record_btrace_to_get_tailcall_unwinder): New function.
8144 (init_record_btrace_ops): Update.
8145 * target.h (struct target_ops) <to_get_unwinder,
8146 to_get_tailcall_unwinder>: Now function pointers. Use
8147 TARGET_DEFAULT_RETURN.
8149 2014-02-19 Tom Tromey <tromey@redhat.com>
8151 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8153 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8155 2014-02-19 Tom Tromey <tromey@redhat.com>
8157 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8159 * target-delegates.c: Rebuild.
8160 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8161 TARGET_DEFAULT_FUNC.
8162 * target.c (default_target_decr_pc_after_break): Rename from
8163 forward_target_decr_pc_after_break. Simplify.
8164 (target_decr_pc_after_break): Rely on delegation.
8166 2014-02-19 Tom Tromey <tromey@redhat.com>
8168 * target.c (update_current_target): Do not INHERIT to_doc or
8169 to_magic. Do not de_fault to_open or to_close.
8171 2014-02-19 Tom Tromey <tromey@redhat.com>
8173 * gcore.h (objfile_find_memory_regions): Declare.
8174 * gcore.c (objfile_find_memory_regions): No longer static. Add
8176 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8177 * exec.c: Include gcore.h.
8178 (exec_set_find_memory_regions): Remove.
8179 (exec_find_memory_regions): Remove.
8180 (exec_do_find_memory_regions): Remove.
8181 (init_exec_ops): Update.
8182 * defs.h (exec_set_find_memory_regions): Remove.
8184 2014-02-19 Tom Tromey <tromey@redhat.com>
8186 * target-delegates.c: Rebuild.
8187 * target.h (struct target_ops) <to_extra_thread_info,
8188 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8189 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8190 not 0, in TARGET_DEFAULT_RETURN.
8192 2014-02-19 Tom Tromey <tromey@redhat.com>
8194 * target.c (complete_target_initialization): Remove casts. Use
8195 return_zero_has_execution.
8196 (return_zero): Add "ignore" argument.
8197 (return_zero_has_execution): New function.
8198 (init_dummy_target): Remove casts. Use
8199 return_zero_has_execution.
8201 2014-02-19 Tom Tromey <tromey@redhat.com>
8203 * target.c (update_current_target): Update comments. Do not
8206 2014-02-19 Tom Tromey <tromey@redhat.com>
8208 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8210 * corelow.c (core_read_description): Delegate when needed.
8211 * remote.c (remote_read_description): Delegate when needed.
8212 * target-delegates.c: Rebuild.
8213 * target.c (target_read_description): Rewrite.
8214 * target.h (struct target_ops) <to_read_description>: Update
8215 comment. Use TARGET_DEFAULT_RETURN.
8217 2014-02-19 Tom Tromey <tromey@redhat.com>
8219 * target-delegates.c: Rebuild.
8220 * target.c (update_current_target): Don't inherit or default
8222 (find_default_run_target): Check against delegate_can_run.
8223 * target.h (struct target_ops) <to_can_run>: Use
8224 TARGET_DEFAULT_RETURN.
8226 2014-02-19 Tom Tromey <tromey@redhat.com>
8228 * target-delegates.c: Rebuild.
8229 * target.c (target_disconnect): Unconditionally delegate.
8230 * target.h (struct target_ops) <to_disconnect>: Use
8231 TARGET_DEFAULT_NORETURN.
8233 2014-02-19 Tom Tromey <tromey@redhat.com>
8235 * record.c (record_stop): Unconditionally delegate.
8236 * target-delegates.c: Rebuild.
8237 * target.c (target_stop_recording): Unconditionally delegate.
8238 * target.h (struct target_ops) <to_stop_recording>: Use
8239 TARGET_DEFAULT_IGNORE.
8241 2014-02-19 Tom Tromey <tromey@redhat.com>
8243 * target-delegates.c: Rebuild.
8244 * target.c (target_enable_btrace): Unconditionally delegate.
8245 * target.h (struct target_ops) <to_enable_btrace>: Use
8246 TARGET_DEFAULT_NORETURN.
8248 2014-02-19 Tom Tromey <tromey@redhat.com>
8250 * target-delegates.c: Rebuild.
8251 * target.c (target_read_btrace): Unconditionally delegate.
8252 * target.h (struct target_ops) <to_read_btrace>: Use
8253 TARGET_DEFAULT_NORETURN.
8255 2014-02-19 Tom Tromey <tromey@redhat.com>
8257 * target-delegates.c: Rebuild.
8258 * target.c (target_teardown_btrace): Unconditionally delegate.
8259 * target.h (struct target_ops) <to_teardown_btrace>: Use
8260 TARGET_DEFAULT_NORETURN.
8262 2014-02-19 Tom Tromey <tromey@redhat.com>
8264 * target-delegates.c: Rebuild.
8265 * target.c (target_disable_btrace): Unconditionally delegate.
8266 * target.h (struct target_ops) <to_disable_btrace>: Use
8267 TARGET_DEFAULT_NORETURN.
8269 2014-02-19 Tom Tromey <tromey@redhat.com>
8271 * target-delegates.c: Rebuild.
8272 * target.c (default_search_memory): New function.
8273 (simple_search_memory): Update comment.
8274 (target_search_memory): Unconditionally delegate.
8275 * target.h (struct target_ops) <to_search_memory>: Use
8276 TARGET_DEFAULT_FUNC.
8278 2014-02-19 Tom Tromey <tromey@redhat.com>
8280 * auxv.c (default_auxv_parse): No longer static.
8281 (target_auxv_parse): Unconditionally delegate.
8282 * auxv.h (default_auxv_parse): Declare.
8283 * target-delegates.c: Rebuild.
8284 * target.c: Include auxv.h.
8285 * target.h (struct target_ops) <to_auxv_parse>: Use
8286 TARGET_DEFAULT_FUNC.
8288 2014-02-19 Tom Tromey <tromey@redhat.com>
8290 * target-delegates.c: Rebuild.
8291 * target.c (target_memory_map): Unconditionally delegate.
8292 * target.h (struct target_ops) <to_memory_map>: Use
8293 TARGET_DEFAULT_RETURN.
8295 2014-02-19 Tom Tromey <tromey@redhat.com>
8297 * target-delegates.c: Rebuild.
8298 * target.c (target_thread_alive): Unconditionally delegate.
8299 * target.h (struct target_ops) <to_thread_alive>: Use
8300 TARGET_DEFAULT_RETURN.
8302 2014-02-19 Tom Tromey <tromey@redhat.com>
8304 * target-delegates.c: Rebuild.
8305 * target.c (target_save_record): Unconditionally delegate.
8306 * target.h (struct target_ops) <to_save_record>: Use
8307 TARGET_DEFAULT_NORETURN.
8309 2014-02-19 Tom Tromey <tromey@redhat.com>
8311 * target-delegates.c: Rebuild.
8312 * target.c (target_delete_record): Unconditionally delegate.
8313 * target.h (struct target_ops) <to_delete_record>: Use
8314 TARGET_DEFAULT_NORETURN.
8316 2014-02-19 Tom Tromey <tromey@redhat.com>
8318 * target-delegates.c: Rebuild.
8319 * target.c (target_record_is_replaying): Unconditionally
8321 * target.h (struct target_ops) <to_record_is_replaying>: Use
8322 TARGET_DEFAULT_RETURN.
8324 2014-02-19 Tom Tromey <tromey@redhat.com>
8326 * target-delegates.c: Rebuild.
8327 * target.c (target_goto_record_begin): Unconditionally delegate.
8328 * target.h (struct target_ops) <to_goto_record_begin>: Use
8329 TARGET_DEFAULT_NORETURN.
8331 2014-02-19 Tom Tromey <tromey@redhat.com>
8333 * target-delegates.c: Rebuild.
8334 * target.c (target_goto_record_end): Unconditionally delegate.
8335 * target.h (struct target_ops) <to_goto_record_end>: Use
8336 TARGET_DEFAULT_NORETURN.
8338 2014-02-19 Tom Tromey <tromey@redhat.com>
8340 * target-delegates.c: Rebuild.
8341 * target.c (target_goto_record): Unconditionally delegate.
8342 * target.h (struct target_ops) <to_goto_record>: Use
8343 TARGET_DEFAULT_NORETURN.
8345 2014-02-19 Tom Tromey <tromey@redhat.com>
8347 * target-delegates.c: Rebuild.
8348 * target.c (target_insn_history): Unconditionally delegate.
8349 * target.h (struct target_ops) <to_insn_history>: Use
8350 TARGET_DEFAULT_NORETURN.
8352 2014-02-19 Tom Tromey <tromey@redhat.com>
8354 * target-delegates.c: Rebuild.
8355 * target.c (target_insn_history_from): Unconditionally delegate.
8356 * target.h (struct target_ops) <to_insn_history_from>: Use
8357 TARGET_DEFAULT_NORETURN.
8359 2014-02-19 Tom Tromey <tromey@redhat.com>
8361 * target-delegates.c: Rebuild.
8362 * target.c (target_insn_history_range): Unconditionally delegate.
8363 * target.h (struct target_ops) <to_insn_history_range>: Use
8364 TARGET_DEFAULT_NORETURN.
8366 2014-02-19 Tom Tromey <tromey@redhat.com>
8368 * target-delegates.c: Rebuild.
8369 * target.c (target_call_history): Unconditionally delegate.
8370 * target.h (struct target_ops) <to_call_history>: Use
8371 TARGET_DEFAULT_NORETURN.
8373 2014-02-19 Tom Tromey <tromey@redhat.com>
8375 * target-delegates.c: Rebuild.
8376 * target.c (target_call_history_from): Unconditionally delegate.
8377 * target.h (struct target_ops) <to_call_history_from>: Use
8378 TARGET_DEFAULT_NORETURN.
8380 2014-02-19 Tom Tromey <tromey@redhat.com>
8382 * target-delegates.c: Rebuild.
8383 * target.c (target_call_history_range): Unconditionally delegate.
8384 * target.h (struct target_ops) <to_call_history_range>: Use
8385 TARGET_DEFAULT_NORETURN.
8387 2014-02-19 Tom Tromey <tromey@redhat.com>
8389 * target-delegates.c: Rebuild.
8390 * target.c (target_verify_memory): Unconditionally delegate.
8391 * target.h (struct target_ops) <to_verify_memory>: Use
8392 TARGET_DEFAULT_NORETURN.
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8396 * target-delegates.c: Rebuild.
8397 * target.c (target_core_of_thread): Unconditionally delegate.
8398 * target.h (struct target_ops) <to_core_of_thread>: Use
8399 TARGET_DEFAULT_RETURN.
8401 2014-02-19 Tom Tromey <tromey@redhat.com>
8403 * target-delegates.c: Rebuild.
8404 * target.c (target_flash_done): Unconditionally delegate.
8405 * target.h (struct target_ops) <to_flash_done>: Use
8406 TARGET_DEFAULT_NORETURN.
8408 2014-02-19 Tom Tromey <tromey@redhat.com>
8410 * target-delegates.c: Rebuild.
8411 * target.c (target_flash_erase): Unconditionally delegate.
8412 * target.h (struct target_ops) <to_flash_erase>: Use
8413 TARGET_DEFAULT_NORETURN.
8415 2014-02-19 Tom Tromey <tromey@redhat.com>
8417 * target-delegates.c: Rebuild.
8418 * target.c (target_get_section_table): Unconditionally delegate.
8419 * target.h (struct target_ops) <to_get_section_table>: Use
8420 TARGET_DEFAULT_RETURN.
8422 2014-02-19 Tom Tromey <tromey@redhat.com>
8424 * target-delegates.c: Rebuild.
8425 * target.c (target_pid_to_str): Unconditionally delegate.
8426 (init_dummy_target): Don't initialize to_pid_to_str.
8427 (default_pid_to_str): Rename from dummy_pid_to_str.
8428 * target.h (struct target_ops) <to_pid_to_str>: Use
8429 TARGET_DEFAULT_FUNC.
8431 2014-02-19 Tom Tromey <tromey@redhat.com>
8433 * target-delegates.c: Rebuild.
8434 * target.c (target_find_new_threads): Unconditionally delegate.
8435 * target.h (struct target_ops) <to_find_new_threads>: Use
8436 TARGET_DEFAULT_RETURN.
8438 2014-02-19 Tom Tromey <tromey@redhat.com>
8440 * target-delegates.c: Rebuild.
8441 * target.c (target_program_signals): Unconditionally delegate.
8442 * target.h (struct target_ops) <to_program_signals>: Use
8443 TARGET_DEFAULT_IGNORE.
8445 2014-02-19 Tom Tromey <tromey@redhat.com>
8447 * target-delegates.c: Rebuild.
8448 * target.c (target_pass_signals): Unconditionally delegate.
8449 * target.h (struct target_ops) <to_pass_signals>: Use
8450 TARGET_DEFAULT_IGNORE.
8452 2014-02-19 Tom Tromey <tromey@redhat.com>
8454 * target-delegates.c: Rebuild.
8455 * target.c (default_mourn_inferior): New function.
8456 (target_mourn_inferior): Unconditionally delegate.
8457 * target.h (struct target_ops) <to_mourn_inferior>: Use
8458 TARGET_DEFAULT_FUNC.
8460 2014-02-19 Tom Tromey <tromey@redhat.com>
8462 * target-delegates.c: Rebuild.
8463 * target.c (default_follow_fork): New function.
8464 (target_follow_fork): Unconditionally delegate.
8465 * target.h (struct target_ops) <to_follow_fork>: Use
8466 TARGET_DEFAULT_FUNC.
8468 2014-02-19 Tom Tromey <tromey@redhat.com>
8470 * target-delegates.c: Rebuild.
8471 * target.c (target_kill): Unconditionally delegate.
8472 * target.h (struct target_ops) <to_kill>: Use
8473 TARGET_DEFAULT_NORETURN.
8475 2014-02-19 Tom Tromey <tromey@redhat.com>
8477 * target-delegates.c: Rebuild.
8478 * target.c (target_masked_watch_num_registers): Unconditionally
8480 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8481 Use TARGET_DEFAULT_RETURN.
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8485 * target-delegates.c: Rebuild.
8486 * target.c (target_remove_mask_watchpoint): Unconditionally
8488 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8489 TARGET_DEFAULT_RETURN.
8491 2014-02-19 Tom Tromey <tromey@redhat.com>
8493 * target-delegates.c: Rebuild.
8494 * target.c (target_insert_mask_watchpoint): Unconditionally
8496 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8497 TARGET_DEFAULT_RETURN.
8499 2014-02-19 Tom Tromey <tromey@redhat.com>
8501 * target-delegates.c: Rebuild.
8502 * target.c (target_ranged_break_num_registers): Unconditionally
8504 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8505 Use TARGET_DEFAULT_RETURN.
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8509 * target-delegates.c: Rebuild.
8510 * target.c (target_fetch_registers): Unconditionally delegate.
8511 * target.h (struct target_ops) <to_fetch_registers>: Use
8512 TARGET_DEFAULT_NORETURN.
8514 2014-02-19 Tom Tromey <tromey@redhat.com>
8516 * target-delegates.c: Rebuild.
8517 * target.c (update_current_target): Don't inherit or default
8519 * target.h (struct target_ops) <to_stop>: Use
8520 TARGET_DEFAULT_IGNORE.
8522 2014-02-19 Tom Tromey <tromey@redhat.com>
8524 * target-delegates.c: Rebuild.
8525 * target.c (update_current_target): Don't inherit or default
8526 to_can_run_breakpoint_commands.
8527 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8528 Use TARGET_DEFAULT_RETURN.
8530 2014-02-19 Tom Tromey <tromey@redhat.com>
8532 * target-delegates.c: Rebuild.
8533 * target.c (update_current_target): Don't inherit or default
8534 to_supports_evaluation_of_breakpoint_conditions.
8535 * target.h (struct target_ops)
8536 <to_supports_evaluation_of_breakpoint_conditions>: Use
8537 TARGET_DEFAULT_RETURN.
8539 2014-02-19 Tom Tromey <tromey@redhat.com>
8541 * target-delegates.c: Rebuild.
8542 * target.c (update_current_target): Don't inherit or default
8543 to_augmented_libraries_svr4_read.
8544 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8545 Use TARGET_DEFAULT_RETURN.
8547 2014-02-19 Tom Tromey <tromey@redhat.com>
8549 * target-delegates.c: Rebuild.
8550 * target.c (update_current_target): Don't inherit or default
8552 * target.h (struct target_ops) <to_can_use_agent>: Use
8553 TARGET_DEFAULT_RETURN.
8555 2014-02-19 Tom Tromey <tromey@redhat.com>
8557 * target-delegates.c: Rebuild.
8558 * target.c (update_current_target): Don't inherit or default
8560 * target.h (struct target_ops) <to_use_agent>: Use
8561 TARGET_DEFAULT_NORETURN.
8563 2014-02-19 Tom Tromey <tromey@redhat.com>
8565 * target-delegates.c: Rebuild.
8566 * target.c (update_current_target): Don't inherit or default
8568 (return_null): Remove.
8569 * target.h (struct target_ops) <to_traceframe_info>: Use
8570 TARGET_DEFAULT_RETURN.
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8574 * target-delegates.c: Rebuild.
8575 * target.c (update_current_target): Don't inherit or default
8576 to_static_tracepoint_markers_by_strid.
8577 * target.h (struct target_ops)
8578 <to_static_tracepoint_markers_by_strid>: Use
8579 TARGET_DEFAULT_NORETURN.
8581 2014-02-19 Tom Tromey <tromey@redhat.com>
8583 * target-delegates.c: Rebuild.
8584 * target.c (update_current_target): Don't inherit or default
8585 to_static_tracepoint_marker_at.
8586 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8587 Use TARGET_DEFAULT_RETURN.
8589 2014-02-19 Tom Tromey <tromey@redhat.com>
8591 * target-delegates.c: Rebuild.
8592 * target.c (update_current_target): Don't inherit or default
8594 * target.h (struct target_ops) <to_set_permissions>: Use
8595 TARGET_DEFAULT_IGNORE.
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8602 * target.h (struct target_ops) <to_get_tib_address>: Use
8603 TARGET_DEFAULT_NORETURN.
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8610 * target.h (struct target_ops) <to_set_trace_notes>: Use
8611 TARGET_DEFAULT_RETURN.
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't initialize
8617 to_set_trace_buffer_size.
8618 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8619 TARGET_DEFAULT_IGNORE.
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8623 * target-delegates.c: Rebuild.
8624 * target.c (update_current_target): Don't inherit or default
8625 to_set_circular_trace_buffer.
8626 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8627 TARGET_DEFAULT_IGNORE.
8629 2014-02-19 Tom Tromey <tromey@redhat.com>
8631 * target-delegates.c: Rebuild.
8632 * target.c (update_current_target): Don't inherit or default
8633 to_set_disconnected_tracing.
8634 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8635 TARGET_DEFAULT_IGNORE.
8637 2014-02-19 Tom Tromey <tromey@redhat.com>
8639 * target-delegates.c: Rebuild.
8640 * target.c (update_current_target): Don't inherit or default
8641 to_get_min_fast_tracepoint_insn_len.
8642 (return_minus_one): Remove.
8643 * target.h (struct target_ops)
8644 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8646 2014-02-19 Tom Tromey <tromey@redhat.com>
8648 * target-delegates.c: Rebuild.
8649 * target.c (update_current_target): Don't inherit or default
8650 to_get_raw_trace_data.
8651 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8652 TARGET_DEFAULT_NORETURN.
8654 2014-02-19 Tom Tromey <tromey@redhat.com>
8656 * target-delegates.c: Rebuild.
8657 * target.c (update_current_target): Don't inherit or default
8658 to_upload_trace_state_variables.
8659 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8660 Use TARGET_DEFAULT_RETURN.
8662 2014-02-19 Tom Tromey <tromey@redhat.com>
8664 * target-delegates.c: Rebuild.
8665 * target.c (update_current_target): Don't inherit or default
8666 to_upload_tracepoints.
8667 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8668 TARGET_DEFAULT_RETURN.
8670 2014-02-19 Tom Tromey <tromey@redhat.com>
8672 * target-delegates.c: Rebuild.
8673 * target.c (update_current_target): Don't inherit or default
8675 * target.h (struct target_ops) <to_save_trace_data>: Use
8676 TARGET_DEFAULT_NORETURN.
8678 2014-02-19 Tom Tromey <tromey@redhat.com>
8680 * target-delegates.c: Rebuild.
8681 * target.c (update_current_target): Don't inherit or default
8682 to_get_trace_state_variable_value.
8683 * target.h (struct target_ops)
8684 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8686 2014-02-19 Tom Tromey <tromey@redhat.com>
8688 * target-delegates.c: Rebuild.
8689 * target.c (update_current_target): Don't inherit or default
8691 * target.h (struct target_ops): 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
8698 * target.h (struct target_ops) <to_trace_stop>: 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_get_tracepoint_status.
8706 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8707 TARGET_DEFAULT_NORETURN.
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_get_trace_status.
8714 * target.h (struct target_ops) <to_get_trace_status>: 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_trace_start>: 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_trace_set_readonly_regions.
8730 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8731 Use TARGET_DEFAULT_NORETURN.
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
8737 to_disable_tracepoint.
8738 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8739 TARGET_DEFAULT_NORETURN.
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8743 * target-delegates.c: Rebuild.
8744 * target.c (update_current_target): Don't inherit or default
8745 to_enable_tracepoint.
8746 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8747 TARGET_DEFAULT_NORETURN.
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8751 * target-delegates.c: Rebuild.
8752 * target.c (update_current_target): Don't inherit or default
8753 to_download_trace_state_variable.
8754 * target.h (struct target_ops) <to_download_trace_state_variable>:
8755 Use TARGET_DEFAULT_NORETURN.
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't inherit or default
8761 to_can_download_tracepoint.
8762 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8763 TARGET_DEFAULT_RETURN.
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8767 * target-delegates.c: Rebuild.
8768 * target.c (update_current_target): Don't inherit or default
8769 to_download_tracepoint.
8770 * target.h (struct target_ops) <to_download_tracepoint>: Use
8771 TARGET_DEFAULT_NORETURN.
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8775 * target-delegates.c: Rebuild.
8776 * target.c (update_current_target): Don't inherit or default
8778 * target.h (struct target_ops) <to_trace_init>: Use
8779 TARGET_DEFAULT_RETURN.
8781 2014-02-19 Tom Tromey <tromey@redhat.com>
8783 * target-delegates.c: Rebuild.
8784 * target.c (update_current_target): Don't inherit or default
8785 to_supports_string_tracing.
8786 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8787 TARGET_DEFAULT_RETURN.
8789 2014-02-19 Tom Tromey <tromey@redhat.com>
8791 * target-delegates.c: Rebuild.
8792 * target.c (update_current_target): Don't inherit or default
8793 to_supports_enable_disable_tracepoint.
8794 * target.h (struct target_ops)
8795 <to_supports_enable_disable_tracepoint>: Use
8796 TARGET_DEFAULT_RETURN.
8798 2014-02-19 Tom Tromey <tromey@redhat.com>
8800 * target-delegates.c: Rebuild.
8801 * target.c (update_current_target): Don't inherit or default
8802 to_supports_multi_process.
8803 * target.h (struct target_ops) <to_supports_multi_process>: Use
8804 TARGET_DEFAULT_RETURN.
8806 2014-02-19 Tom Tromey <tromey@redhat.com>
8808 * target-delegates.c: Rebuild.
8809 * target.c (update_current_target): Don't inherit or default
8810 to_get_ada_task_ptid.
8811 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8812 TARGET_DEFAULT_FUNC.
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8816 * target-delegates.c: Rebuild.
8817 * target.c (update_current_target): Don't inherit or default
8818 to_thread_architecture.
8819 * target.h (struct target_ops) <to_thread_architecture>: Use
8820 TARGET_DEFAULT_FUNC.
8822 2014-02-19 Tom Tromey <tromey@redhat.com>
8824 * target-delegates.c: Rebuild.
8825 * target.c (update_current_target): Don't inherit or default
8826 to_execution_direction.
8827 * target.h (struct target_ops) <to_execution_direction>: Use
8828 TARGET_DEFAULT_FUNC.
8830 2014-02-19 Tom Tromey <tromey@redhat.com>
8832 * target-delegates.c: Rebuild.
8833 * target.c (update_current_target): Don't inherit or default
8834 to_can_execute_reverse.
8835 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8836 TARGET_DEFAULT_RETURN.
8837 (target_can_execute_reverse): Unconditionally delegate.
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8841 * target-delegates.c: Rebuild.
8842 * target.c (update_current_target): Don't inherit or default
8844 (dummy_goto_bookmark): Remove.
8845 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8846 * target.h (struct target_ops) <to_goto_bookmark>: Use
8847 TARGET_DEFAULT_NORETURN.
8849 2014-02-19 Tom Tromey <tromey@redhat.com>
8851 * target-delegates.c: Rebuild.
8852 * target.c (update_current_target): Don't inherit or default
8854 (dummy_get_bookmark): Remove.
8855 (init_dummy_target): Don't inherit or default to_get_bookmark.
8856 * target.h (struct target_ops) <to_get_bookmark>: Use
8857 TARGET_DEFAULT_NORETURN
8859 2014-02-19 Tom Tromey <tromey@redhat.com>
8861 * target-delegates.c: Rebuild.
8862 * target.c (update_current_target): Don't inherit or default
8863 to_make_corefile_notes.
8864 (init_dummy_target): Don't initialize to_make_corefile_notes.
8865 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8866 TARGET_DEFAULT_FUNC.
8868 2014-02-19 Tom Tromey <tromey@redhat.com>
8870 * target-delegates.c: Rebuild.
8871 * target.c (update_current_target): Don't inherit or default
8872 to_find_memory_regions.
8873 (init_dummy_target): Don't initialize to_find_memory_regions.
8874 * target.h (struct target_ops) <to_find_memory_regions>: 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
8882 * target.h (struct target_ops) <to_log_command>: Use
8883 TARGET_DEFAULT_IGNORE.
8884 (target_log_command): 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
8890 to_pid_to_exec_file.
8891 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8892 TARGET_DEFAULT_RETURN.
8894 2014-02-19 Tom Tromey <tromey@redhat.com>
8896 * target-delegates.c: Rebuild.
8897 * target.c (update_current_target): Don't inherit or default
8899 (target_thread_name): Unconditionally delegate.
8900 * target.h (struct target_ops) <to_thread_name>: Use
8901 TARGET_DEFAULT_RETURN.
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8905 * target-delegates.c: Rebuild.
8906 * target.c (update_current_target): Don't inherit or default
8907 to_extra_thread_info.
8908 * target.h (struct target_ops) <to_extra_thread_info>: Use
8909 TARGET_DEFAULT_RETURN.
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8913 * target-delegates.c: Rebuild.
8914 * target.c (update_current_target): Don't inherit or default
8916 * target.h (struct target_ops) <to_has_exited>: Use
8917 TARGET_DEFAULT_RETURN..
8919 2014-02-19 Tom Tromey <tromey@redhat.com>
8921 * target-delegates.c: Rebuild.
8922 * target.c (update_current_target): Don't inherit or default
8923 to_set_syscall_catchpoint.
8924 (return_one): Remove.
8925 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8926 TARGET_DEFAULT_RETURN.
8928 2014-02-19 Tom Tromey <tromey@redhat.com>
8930 * target-delegates.c: Rebuild.
8931 * target.c (update_current_target): Don't inherit or default
8932 to_insert_exec_catchpoint.
8933 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8934 TARGET_DEFAULT_RETURN.
8936 2014-01-08 Tom Tromey <tromey@redhat.com>
8938 * target-delegates.c: Rebuild.
8939 * target.c (update_current_target): Don't inherit or default
8940 to_insert_exec_catchpoint.
8941 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8942 TARGET_DEFAULT_RETURN.
8944 2014-02-19 Tom Tromey <tromey@redhat.com>
8946 * target-delegates.c: Rebuild.
8947 * target.c (update_current_target): Don't inherit or default
8948 to_remove_vfork_catchpoint.
8949 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8950 TARGET_DEFAULT_RETURN.
8952 2014-02-19 Tom Tromey <tromey@redhat.com>
8954 * target-delegates.c: Rebuild.
8955 * target.c (update_current_target): Don't inherit or default
8956 to_insert_vfork_catchpoint.
8957 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8958 TARGET_DEFAULT_RETURN.
8960 2014-02-19 Tom Tromey <tromey@redhat.com>
8962 * target-delegates.c: Rebuild.
8963 * target.c (update_current_target): Don't inherit or default
8964 to_remove_fork_catchpoint.
8965 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8966 TARGET_DEFAULT_RETURN.
8968 2014-02-19 Tom Tromey <tromey@redhat.com>
8970 * target-delegates.c: Rebuild.
8971 * target.c (update_current_target): Don't inherit or default
8972 to_insert_fork_catchpoint.
8973 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8974 TARGET_DEFAULT_RETURN.
8976 2014-02-19 Tom Tromey <tromey@redhat.com>
8978 * target-delegates.c: Rebuild.
8979 * target.c (update_current_target): Don't inherit or default
8980 to_post_startup_inferior.
8981 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8982 TARGET_DEFAULT_IGNORE.
8984 2014-02-19 Tom Tromey <tromey@redhat.com>
8986 * target-delegates.c: Rebuild.
8987 * target.c (update_current_target): Don't inherit or default
8989 * target.h (struct target_ops) <to_load>: Use
8990 TARGET_DEFAULT_NORETURN.
8992 2014-02-19 Tom Tromey <tromey@redhat.com>
8994 * target-delegates.c: Rebuild.
8995 * target.c (update_current_target): Don't inherit or default
8997 * target.h (struct target_ops) <to_terminal_info>: Use
8998 TARGET_DEFAULT_FUNC.
9000 2014-02-19 Tom Tromey <tromey@redhat.com>
9002 * target-delegates.c: Rebuild.
9003 * target.c (update_current_target): Don't inherit or default
9004 to_terminal_save_ours.
9005 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9006 TARGET_DEFAULT_IGNORE.
9008 2014-02-19 Tom Tromey <tromey@redhat.com>
9010 * target-delegates.c: Rebuild.
9011 * target.c (update_current_target): Don't inherit or default
9013 * target.h (struct target_ops) <to_terminal_ours>: Use
9014 TARGET_DEFAULT_IGNORE.
9016 2014-02-19 Tom Tromey <tromey@redhat.com>
9018 * target-delegates.c: Rebuild.
9019 * target.c (update_current_target): Don't inherit or default
9020 to_terminal_ours_for_output.
9021 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9022 TARGET_DEFAULT_IGNORE.
9024 2014-02-19 Tom Tromey <tromey@redhat.com>
9026 * target-delegates.c: Rebuild.
9027 * target.c (update_current_target): Don't inherit or default
9028 to_terminal_inferior.
9029 * target.h (struct target_ops) <to_terminal_inferior>: Use
9030 TARGET_DEFAULT_IGNORE.
9032 2014-02-19 Tom Tromey <tromey@redhat.com>
9034 * target-delegates.c: Rebuild.
9035 * target.c (update_current_target): Don't inherit or default
9037 * target.h (struct target_ops) <to_terminal_init>: Use
9038 TARGET_DEFAULT_IGNORE.
9040 2014-02-19 Tom Tromey <tromey@redhat.com>
9042 * target-delegates.c: Rebuild.
9043 * target.c (update_current_target): Don't inherit or default
9044 to_can_accel_watchpoint_condition.
9045 * target.h (struct target_ops)
9046 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9048 2014-02-19 Tom Tromey <tromey@redhat.com>
9050 * target-delegates.c: Rebuild.
9051 * target.c (update_current_target): Don't inherit or default
9052 to_region_ok_for_hw_watchpoint.
9053 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9054 Use TARGET_DEFAULT_FUNC.
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9058 * target-delegates.c: Rebuild.
9059 * target.c (update_current_target): Don't inherit or default
9060 to_watchpoint_addr_within_range.
9061 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9062 Use TARGET_DEFAULT_FUNC.
9064 2014-02-19 Tom Tromey <tromey@redhat.com>
9066 * target-delegates.c: Rebuild.
9067 * target.c (update_current_target): Don't inherit or default
9068 to_remove_watchpoint.
9069 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9070 TARGET_DEFAULT_NORETURN.
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9074 * target-delegates.c: Rebuild.
9075 * target.c (update_current_target): Don't inherit or default
9076 to_insert_watchpoint.
9077 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9078 TARGET_DEFAULT_RETURN.
9080 2014-02-19 Tom Tromey <tromey@redhat.com>
9082 * target-delegates.c: Rebuild.
9083 * target.c (update_current_target): Don't inherit or default
9084 to_remove_hw_breakpoint.
9085 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9086 TARGET_DEFAULT_RETURN.
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9090 * target-delegates.c: Rebuild.
9091 * target.c (update_current_target): Don't inherit or default
9092 to_insert_hw_breakpoint.
9093 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9094 TARGET_DEFAULT_RETURN.
9096 2014-02-19 Tom Tromey <tromey@redhat.com>
9098 * target-delegates.c: Rebuild.
9099 * target.c (update_current_target): Don't inherit or default
9100 to_can_use_hw_breakpoint.
9101 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9102 TARGET_DEFAULT_RETURN.
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9106 * target-delegates.c: Rebuild.
9107 * target.c (update_current_target): Don't inherit or default
9109 * target.h (struct target_ops) <to_files_info>: Use
9110 TARGET_DEFAULT_IGNORE.
9112 2014-02-19 Tom Tromey <tromey@redhat.com>
9114 * target-delegates.c: Rebuild.
9115 * target.c (update_current_target): Don't inherit or default
9117 * target.h (struct target_ops) <to_store>: Use
9118 TARGET_DEFAULT_NORETURN.
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9122 * target-delegates.c: Rebuild.
9123 * target.c (update_current_target): Don't inherit or default
9125 * target.h (struct target_ops) <to_post_attach>: Use
9126 TARGET_DEFAULT_IGNORE.
9128 2014-02-19 Tom Tromey <tromey@redhat.com>
9130 * target-delegates.c: Rebuild.
9131 * target.c (update_current_target): Don't inherit or default
9133 (default_rcmd): New function.
9134 (do_monitor_command): Unconditionally delegate.
9135 * target.h (struct target_ops) <to_rmcd>: Use
9136 TARGET_DEFAULT_FUNC.
9138 2014-02-19 Tom Tromey <tromey@redhat.com>
9140 * target-delegates.c: Rebuild.
9141 * target.c (init_dummy_target): Don't initialize to_attach.
9142 (target_attach): Unconditionally delegate.
9143 * target.h (struct target_ops) <to_attach>: Use
9144 TARGET_DEFAULT_FUNC.
9146 2014-02-19 Tom Tromey <tromey@redhat.com>
9148 * target-delegates.c: Rebuild.
9149 * target.c (target_detach): Unconditionally delegate.
9150 (init_dummy_target): Don't initialize to_detach.
9151 * target.h (struct target_ops) <to_detach>: Use
9152 TARGET_DEFAULT_IGNORE.
9154 2014-02-19 Tom Tromey <tromey@redhat.com>
9156 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9158 (target_augmented_libraries_svr4_read): Add argument.
9159 * target.c (update_current_target): Update.
9160 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9165 * target.h (struct target_ops) <to_call_history_range>: Add
9167 * target.c (target_call_history_range): Add argument.
9168 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9170 (record_btrace_call_history_from): Update.
9172 2014-02-19 Tom Tromey <tromey@redhat.com>
9174 * target.h (struct target_ops) <to_call_history_from>: Add
9176 * target.c (target_call_history_from): Add argument.
9177 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9180 2014-02-19 Tom Tromey <tromey@redhat.com>
9182 * target.h (struct target_ops) <to_call_history>: Add argument.
9183 * target.c (target_call_history): Add argument.
9184 * record-btrace.c (record_btrace_call_history): Add 'self'
9187 2014-02-19 Tom Tromey <tromey@redhat.com>
9189 * target.h (struct target_ops) <to_insn_history_range>: Add
9191 * target.c (target_insn_history_range): Add argument.
9192 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9194 (record_btrace_insn_history_from): Update.
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9198 * target.h (struct target_ops) <to_insn_history_from>: Add
9200 * target.c (target_insn_history_from): Add argument.
9201 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9206 * target.h (struct target_ops) <to_insn_history>: Add argument.
9207 * target.c (target_insn_history): Add argument.
9208 * record-btrace.c (record_btrace_insn_history): Add 'self'
9211 2014-02-19 Tom Tromey <tromey@redhat.com>
9213 * target.h (struct target_ops) <to_goto_record>: Add argument.
9214 * target.c (target_goto_record): Add argument.
9215 * record-full.c (record_full_goto): Add 'self' argument.
9216 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9218 2014-02-19 Tom Tromey <tromey@redhat.com>
9220 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9221 * target.c (target_goto_record_end): Add argument.
9222 * record-full.c (record_full_goto_end): Add 'self' argument.
9223 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9225 2014-02-19 Tom Tromey <tromey@redhat.com>
9227 * target.h (struct target_ops) <to_goto_record_begin>: Add
9229 * target.c (target_goto_record_begin): Add argument.
9230 * record-full.c (record_full_goto_begin): Add 'self' argument.
9231 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9234 2014-02-19 Tom Tromey <tromey@redhat.com>
9236 * target.h (struct target_ops) <to_record_is_replaying>: Add
9238 * target.c (target_record_is_replaying): Add argument.
9239 * record-full.c (record_full_is_replaying): Add 'self' argument.
9240 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9242 (record_btrace_xfer_partial, record_btrace_store_registers)
9243 (record_btrace_prepare_to_store, record_btrace_resume)
9244 (record_btrace_wait, record_btrace_decr_pc_after_break)
9245 (record_btrace_find_new_threads, record_btrace_thread_alive):
9248 2014-02-19 Tom Tromey <tromey@redhat.com>
9250 * target.h (struct target_ops) <to_delete_record>: Add argument.
9251 * target.c (target_delete_record): Add argument.
9252 * record-full.c (record_full_delete): Add 'self' argument.
9254 2014-02-19 Tom Tromey <tromey@redhat.com>
9256 * target.h (struct target_ops) <to_save_record>: Add argument.
9257 * target.c (target_save_record): Add argument.
9258 * record-full.c (record_full_save): Add 'self' argument.
9259 (record_full_save): Add 'self' argument.
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9263 * target.h (struct target_ops) <to_info_record>: Add argument.
9264 * target.c (target_info_record): Add argument.
9265 * record.c (info_record_command): Add argument.
9266 * record-full.c (record_full_info): Add 'self' argument.
9267 * record-btrace.c (record_btrace_info): Add 'self' argument.
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9271 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9272 * target.c (target_stop_recording): Add argument.
9273 * record.c (record_stop): Add argument.
9274 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9279 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9280 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9281 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9283 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9284 (_initialize_amd64_linux_nat): Use it.
9285 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9286 (_initialize_i386_linux_nat): Use it.
9288 2014-02-19 Tom Tromey <tromey@redhat.com>
9290 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9291 * target.c (target_teardown_btrace): Add argument.
9292 * remote.c (remote_teardown_btrace): Add 'self' argument.
9293 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9295 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9298 2014-02-19 Tom Tromey <tromey@redhat.com>
9300 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9301 * target.c (target_disable_btrace): Add argument.
9302 * remote.c (remote_disable_btrace): Add 'self' argument.
9303 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9305 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9308 2014-02-19 Tom Tromey <tromey@redhat.com>
9310 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9311 * target.c (target_enable_btrace): Add argument.
9312 * remote.c (remote_enable_btrace): Add 'self' argument.
9313 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9315 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9318 2014-02-19 Tom Tromey <tromey@redhat.com>
9320 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9321 (target_can_use_agent): Add argument.
9322 * target.c (update_current_target): Update.
9323 * remote.c (remote_can_use_agent): Add 'self' argument.
9324 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9326 2014-02-19 Tom Tromey <tromey@redhat.com>
9328 * target.h (struct target_ops) <to_use_agent>: Add argument.
9329 (target_use_agent): Add argument.
9330 * target.c (update_current_target): Update.
9331 * remote.c (remote_use_agent): Add 'self' argument.
9332 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9334 2014-02-19 Tom Tromey <tromey@redhat.com>
9336 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9337 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9338 (target_traceframe_info): Add argument.
9339 * target.c (update_current_target): Update.
9340 * remote.c (remote_traceframe_info): Add 'self' argument.
9341 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9343 2014-02-19 Tom Tromey <tromey@redhat.com>
9345 * target.h (target_static_tracepoint_markers_by_strid): Add
9347 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9349 * target.c (update_current_target): Update.
9350 * remote.c (struct target_ops)
9351 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9352 * linux-nat.c (struct target_ops)
9353 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9355 2014-02-19 Tom Tromey <tromey@redhat.com>
9357 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9359 (target_static_tracepoint_marker_at): Add argument.
9360 * target.c (update_current_target): Update.
9361 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9364 2014-02-19 Tom Tromey <tromey@redhat.com>
9366 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9367 (target_set_permissions): Add argument.
9368 * target.c (update_current_target): Update.
9369 * remote.c (remote_set_permissions): Add 'self' argument.
9370 (remote_start_remote): Update.
9372 2014-02-19 Tom Tromey <tromey@redhat.com>
9374 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9375 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9376 (target_get_tib_address): Add argument.
9377 * target.c (update_current_target): Update.
9378 * remote.c (remote_get_tib_address): Add 'self' argument.
9380 2014-02-19 Tom Tromey <tromey@redhat.com>
9382 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9383 (target_set_trace_notes): Add argument.
9384 * target.c (update_current_target): Update.
9385 * remote.c (remote_set_trace_notes): Add 'self' argument.
9387 2014-02-19 Tom Tromey <tromey@redhat.com>
9389 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9391 (target_set_trace_buffer_size): Add argument.
9392 * target.c (update_current_target): Update.
9393 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9395 2014-02-19 Tom Tromey <tromey@redhat.com>
9397 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9399 (target_set_circular_trace_buffer): Add argument.
9400 * target.c (update_current_target): Update.
9401 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9404 2014-02-19 Tom Tromey <tromey@redhat.com>
9406 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9408 (target_set_disconnected_tracing): Add argument.
9409 * target.c (update_current_target): Update.
9410 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9412 2014-02-19 Tom Tromey <tromey@redhat.com>
9414 * target.h (struct target_ops)
9415 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9416 (target_get_min_fast_tracepoint_insn_len): Add argument.
9417 * target.c (update_current_target): Update.
9418 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9421 2014-02-19 Tom Tromey <tromey@redhat.com>
9423 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9425 (target_get_raw_trace_data): Add argument.
9426 * target.c (update_current_target): Update.
9427 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9431 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9433 (target_upload_trace_state_variables): Add argument.
9434 * target.c (update_current_target): Update.
9435 * remote.c (remote_upload_trace_state_variables): Add 'self'
9437 (remote_start_remote): Update.
9439 2014-02-19 Tom Tromey <tromey@redhat.com>
9441 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9443 (target_upload_tracepoints): Add argument.
9444 * target.c (update_current_target): Update.
9445 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9446 (remote_start_remote): Update.
9448 2014-02-19 Tom Tromey <tromey@redhat.com>
9450 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9451 (target_save_trace_data): Add argument.
9452 * target.c (update_current_target): Update.
9453 * remote.c (remote_save_trace_data): Add 'self' argument.
9455 2014-02-19 Tom Tromey <tromey@redhat.com>
9457 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9459 * target.h (struct target_ops)
9460 <to_get_trace_state_variable_value>: Add argument.
9461 (target_get_trace_state_variable_value): Add argument.
9462 * target.c (update_current_target): Update.
9463 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9465 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9467 2014-02-19 Tom Tromey <tromey@redhat.com>
9469 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9470 * target.h (struct target_ops) <to_trace_find>: Add argument.
9471 (target_trace_find): Add argument.
9472 * target.c (update_current_target): Update.
9473 * remote.c (remote_trace_find): Add 'self' argument.
9474 * ctf.c (ctf_trace_find): Add 'self' argument.
9476 2014-02-19 Tom Tromey <tromey@redhat.com>
9478 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9479 (target_trace_stop): Add argument.
9480 * target.c (update_current_target): Update.
9481 * remote.c (remote_trace_stop): Add 'self' argument.
9483 2014-02-19 Tom Tromey <tromey@redhat.com>
9485 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9486 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9488 (target_get_tracepoint_status): Add argument.
9489 * target.c (update_current_target): Update.
9490 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9492 2014-02-19 Tom Tromey <tromey@redhat.com>
9494 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9495 * target.h (struct target_ops) <to_get_trace_status>: Add
9497 (target_get_trace_status): Add argument.
9498 * target.c (update_current_target): Update.
9499 * remote.c (remote_get_trace_status): Add 'self' argument.
9500 (remote_start_remote, remote_can_download_tracepoint): Update.
9501 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9503 2014-02-19 Tom Tromey <tromey@redhat.com>
9505 * target.h (struct target_ops) <to_trace_start>: Add argument.
9506 (target_trace_start): Add argument.
9507 * target.c (update_current_target): Update.
9508 * remote.c (remote_trace_start): Add 'self' argument.
9510 2014-02-19 Tom Tromey <tromey@redhat.com>
9512 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9514 (target_trace_set_readonly_regions): Add argument.
9515 * target.c (update_current_target): Update.
9516 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9519 2014-02-19 Tom Tromey <tromey@redhat.com>
9521 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9523 (target_disable_tracepoint): Add argument.
9524 * target.c (update_current_target): Update.
9525 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9527 2014-02-19 Tom Tromey <tromey@redhat.com>
9529 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9531 (target_enable_tracepoint): Add argument.
9532 * target.c (update_current_target): Update.
9533 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9535 2014-02-19 Tom Tromey <tromey@redhat.com>
9537 * target.h (struct target_ops) <to_download_trace_state_variable>:
9539 (target_download_trace_state_variable): Add argument.
9540 * target.c (update_current_target): Update.
9541 * remote.c (remote_download_trace_state_variable): Add 'self'
9544 2014-02-19 Tom Tromey <tromey@redhat.com>
9546 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9548 (target_can_download_tracepoint): Add argument.
9549 * target.c (update_current_target): Update.
9550 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9552 2014-02-19 Tom Tromey <tromey@redhat.com>
9554 * target.h (struct target_ops) <to_download_tracepoint>: Add
9556 (target_download_tracepoint): Add argument.
9557 * target.c (update_current_target): Update.
9558 * remote.c (remote_download_tracepoint): Add 'self' argument.
9560 2014-02-19 Tom Tromey <tromey@redhat.com>
9562 * target.h (struct target_ops) <to_trace_init>: Add argument.
9563 (target_trace_init): Add argument.
9564 * target.c (update_current_target): Update.
9565 * remote.c (remote_trace_init): Add 'self' argument.
9567 2014-02-19 Tom Tromey <tromey@redhat.com>
9569 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9570 * target.c (target_fileio_readlink): Add argument.
9571 * remote.c (remote_hostio_readlink): Add 'self' argument.
9572 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9574 2014-02-19 Tom Tromey <tromey@redhat.com>
9576 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9577 * target.c (target_fileio_unlink): Add argument.
9578 * remote.c (remote_hostio_unlink): Add 'self' argument.
9579 (remote_file_delete): Update.
9580 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9582 2014-02-19 Tom Tromey <tromey@redhat.com>
9584 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9585 * target.c (target_fileio_close): Add argument.
9586 * remote.c (remote_hostio_close): Add 'self' argument.
9587 (remote_hostio_close_cleanup): Update.
9588 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9590 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9592 2014-02-19 Tom Tromey <tromey@redhat.com>
9594 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9595 * target.c (target_fileio_pread): Add argument.
9596 * remote.c (remote_hostio_pread): Add 'self' argument.
9597 (remote_bfd_iovec_pread, remote_file_get): Update.
9598 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9600 2014-02-19 Tom Tromey <tromey@redhat.com>
9602 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9603 * target.c (target_fileio_pwrite): Add argument.
9604 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9605 (remote_file_put): Update.
9606 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9610 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9611 * target.c (target_fileio_open): Add argument.
9612 * remote.c (remote_hostio_open): Add 'self' argument.
9613 (remote_bfd_iovec_open): Add 'self' argument.
9614 (remote_file_put): Add 'self' argument.
9615 (remote_file_get): Add 'self' argument.
9616 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9618 2014-02-19 Tom Tromey <tromey@redhat.com>
9620 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9622 (target_can_run_breakpoint_commands): Add argument.
9623 * target.c (update_current_target): Update.
9624 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9626 (remote_insert_breakpoint): Add 'self' argument.
9627 (remote_insert_hw_breakpoint): Add 'self' argument.
9628 (remote_can_run_breakpoint_commands): Add 'self' argument.
9630 2014-02-19 Tom Tromey <tromey@redhat.com>
9632 * target.h (struct target_ops)
9633 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9634 (target_supports_evaluation_of_breakpoint_conditions): Add
9636 * target.c (update_current_target): Update.
9637 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9639 (remote_insert_breakpoint): Add 'self' argument.
9640 (remote_insert_hw_breakpoint): Add 'self' argument.
9641 (remote_supports_cond_breakpoints): Add 'self' argument.
9643 2014-02-19 Tom Tromey <tromey@redhat.com>
9645 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9647 (target_supports_string_tracing): Add argument.
9648 * target.c (update_current_target): Update.
9649 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9651 2014-02-19 Tom Tromey <tromey@redhat.com>
9653 * target.h (struct target_ops)
9654 <to_supports_disable_randomization>: Add argument.
9655 * target.c (find_default_supports_disable_randomization): Add
9657 (target_supports_disable_randomization): Add argument.
9658 (find_default_supports_disable_randomization): Add 'self'
9660 * remote.c (extended_remote_supports_disable_randomization): Add
9662 (remote_supports_disable_randomization): Add 'self' argument.
9663 (extended_remote_create_inferior): Update.
9664 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9667 2014-02-19 Tom Tromey <tromey@redhat.com>
9669 * target.h (struct target_ops)
9670 <to_supports_enable_disable_tracepoint>: Add argument.
9671 (target_supports_enable_disable_tracepoint): Add argument.
9672 * target.c (update_current_target): Update.
9673 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9678 * target.h (struct target_ops) <to_supports_multi_process>: Add
9680 (target_supports_multi_process): Add argument.
9681 * target.c (update_current_target): Update.
9682 * remote.c (remote_supports_multi_process): Add 'self' argument.
9683 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9685 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9688 2014-02-19 Tom Tromey <tromey@redhat.com>
9690 * target.h (struct target_ops) <to_execution_direction>: Add
9692 (target_execution_direction): Add argument.
9693 * target.c (default_execution_direction): Add 'self' argument.
9694 * record-full.c (record_full_execution_direction): Add 'self'
9697 2014-02-19 Tom Tromey <tromey@redhat.com>
9699 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9701 (target_can_execute_reverse): Add argument.
9702 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9703 * record-full.c (record_full_can_execute_reverse): Add 'self'
9705 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9708 2014-02-19 Tom Tromey <tromey@redhat.com>
9710 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9711 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9713 (target_get_ada_task_ptid): Add argument.
9714 * target.c (update_current_target): Update.
9715 (default_get_ada_task_ptid): Add 'self' argument.
9716 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9717 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9718 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9720 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9722 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9724 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9726 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9727 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9730 2014-02-19 Tom Tromey <tromey@redhat.com>
9732 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9733 (target_goto_bookmark): Add argument.
9734 * target.c (dummy_goto_bookmark): Add 'self' argument.
9735 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9737 2014-02-19 Tom Tromey <tromey@redhat.com>
9739 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9740 (target_get_bookmark): Add argument.
9741 * target.c (dummy_get_bookmark): Add 'self' argument.
9742 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9744 2014-02-19 Tom Tromey <tromey@redhat.com>
9746 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9748 (target_make_corefile_notes): Add argument.
9749 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9750 * procfs.c (procfs_make_note_section): Add 'self' argument.
9751 (procfs_make_note_section): Add 'self' argument.
9752 (procfs_make_note_section): Add 'self' argument.
9753 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9755 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9756 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9757 * exec.c (exec_make_note_section): Add 'self' argument.
9758 (exec_make_note_section): Add 'self' argument.
9760 2014-02-19 Tom Tromey <tromey@redhat.com>
9762 * target.h (struct target_ops) <to_find_memory_regions>: Add
9764 (target_find_memory_regions): Add argument.
9765 * target.c (dummy_find_memory_regions): Add 'self' argument.
9766 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9767 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9768 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9769 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9770 * exec. (exec_do_find_memory_regions): New global.
9771 (exec_set_find_memory_regions): Rewrite.
9772 (exec_find_memory_regions): New function.
9773 (init_exec_ops): Use exec_find_memory_regions.
9775 2014-02-19 Tom Tromey <tromey@redhat.com>
9777 * target.h (struct target_ops) <to_supports_non_stop>: Add
9779 * target.c (find_default_supports_non_stop): Add argument.
9780 (target_supports_non_stop): Add argument.
9781 (find_default_supports_non_stop): Add 'self' argument.
9782 * remote.c (remote_supports_non_stop): Add 'self' argument.
9783 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9785 2014-02-19 Tom Tromey <tromey@redhat.com>
9787 * target.h (struct target_ops) <to_log_command>: Add argument.
9788 (target_log_command): Add argument.
9789 * serial.h (serial_log_command): Add 'self' argument.
9790 * serial.c (serial_log_command): Add 'self' argument.
9792 2014-02-19 Tom Tromey <tromey@redhat.com>
9794 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9795 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9797 (target_pid_to_exec_file): Add argument.
9798 * target.c (debug_to_pid_to_exec_file): Add argument.
9799 (update_current_target): Update.
9800 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9801 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9802 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9803 (linux_handle_extended_wait): Update.
9804 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9805 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9806 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9807 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9809 2014-02-19 Tom Tromey <tromey@redhat.com>
9811 * target.h (struct target_ops) <to_rcmd>: Add argument.
9812 (target_rcmd): Add argument.
9813 * target.c (debug_to_rcmd): Add argument.
9814 (update_current_target, do_monitor_command): Update.
9815 * remote.c (remote_rcmd): Add 'self' argument.
9816 * monitor.c (monitor_rcmd): Add 'self' argument.
9818 2014-02-19 Tom Tromey <tromey@redhat.com>
9820 * windows-nat.c (windows_stop): Add 'self' argument.
9821 * target.h (struct target_ops) <to_stop>: Add argument.
9822 * target.c (target_stop): Add argument.
9823 (debug_to_stop): Add argument.
9824 (update_current_target): Update.
9825 * remote.c (remote_stop): Add 'self' argument.
9826 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9827 (gdbsim_cntrl_c): Update.
9828 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9829 * procfs.c (procfs_stop): Add 'self' argument.
9830 * nto-procfs.c (procfs_stop): Add 'self' argument.
9831 * monitor.c (monitor_stop): Add 'self' argument.
9832 (monitor_open): Update.
9833 * linux-nat.c (linux_nat_stop): Add argument.
9834 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9835 * gnu-nat.c (gnu_stop): Add 'self' argument.
9836 * darwin-nat.c (darwin_stop): Add 'self' argument.
9838 2014-02-19 Tom Tromey <tromey@redhat.com>
9840 * target.h (struct target_ops) <to_thread_name>: Add argument.
9841 * target.c (target_thread_name): Add argument.
9842 (update_current_target): Update.
9843 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9845 2014-02-19 Tom Tromey <tromey@redhat.com>
9847 * target.h (struct target_ops) <to_extra_thread_info>: Add
9849 (target_extra_thread_info): Add argument.
9850 * target.c (update_current_target): Update.
9851 * remote.c (remote_threads_extra_info): Add 'self' argument.
9852 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9854 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9855 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9856 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9858 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9860 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9862 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9865 2014-02-19 Tom Tromey <tromey@redhat.com>
9867 * target.h (struct target_ops) <to_program_signals>: Add argument.
9868 * target.c (target_program_signals): Add argument.
9869 * remote.c (remote_program_signals): Add 'self' argument.
9871 2014-02-19 Tom Tromey <tromey@redhat.com>
9873 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9874 * target.c (target_pass_signals): Add argument.
9875 * remote.c (remote_pass_signals): Add 'self' argument.
9876 (remote_start_remote): Update.
9877 * procfs.c (procfs_pass_signals): Add 'self' argument.
9878 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9879 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9880 (linux_nat_create_inferior, linux_nat_attach): Update.
9882 2014-02-19 Tom Tromey <tromey@redhat.com>
9884 * windows-nat.c (windows_can_run): Add 'self' argument.
9885 * target.h (struct target_ops) <to_can_run>: Add argument.
9886 (target_can_run): Add argument.
9887 * target.c (debug_to_can_run): Add argument.
9888 (update_current_target): Update.
9889 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9890 * inf-child.c (inf_child_can_run): Add 'self' argument.
9891 * go32-nat.c (go32_can_run): Add 'self' argument.
9893 2014-02-19 Tom Tromey <tromey@redhat.com>
9895 * target.h (struct target_ops) <to_has_exited>: Add argument.
9896 (target_has_exited): Add argument.
9897 * target.c (debug_to_has_exited): Add argument.
9898 (update_current_target): Update.
9900 2014-02-19 Tom Tromey <tromey@redhat.com>
9902 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9904 (target_set_syscall_catchpoint): Add argument.
9905 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9907 * target.c (update_current_target): Update.
9909 2014-02-19 Tom Tromey <tromey@redhat.com>
9911 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9913 (target_remove_exec_catchpoint): Add argument.
9914 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9915 (update_current_target): Update.
9916 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9919 2014-02-19 Tom Tromey <tromey@redhat.com>
9921 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9923 (target_insert_exec_catchpoint): Add argument.
9924 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9925 (update_current_target): Update.
9926 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9929 2014-02-19 Tom Tromey <tromey@redhat.com>
9931 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9933 (target_remove_vfork_catchpoint): Add argument.
9934 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9935 (update_current_target): Update.
9936 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9939 2014-02-19 Tom Tromey <tromey@redhat.com>
9941 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9943 (target_insert_vfork_catchpoint): Add argument.
9944 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9945 (update_current_target): Update.
9946 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9949 2014-02-19 Tom Tromey <tromey@redhat.com>
9951 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9953 (target_remove_fork_catchpoint): Add argument.
9954 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9955 (update_current_target): Update.
9956 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9959 2014-02-19 Tom Tromey <tromey@redhat.com>
9961 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9963 (target_insert_fork_catchpoint): Add argument.
9964 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9965 (update_current_target): Update.
9966 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9969 2014-02-19 Tom Tromey <tromey@redhat.com>
9971 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9973 (target_post_startup_inferior): Add argument.
9974 * target.c (debug_to_post_startup_inferior): Add argument.
9975 (update_current_target): Update.
9976 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9978 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9980 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9982 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9984 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9986 (super_post_startup_inferior): Likewise.
9987 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9989 (super_post_startup_inferior): Likewise.
9990 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9991 Add 'self' argument.
9992 (super_post_startup_inferior): Likewise.
9994 2014-02-19 Tom Tromey <tromey@redhat.com>
9996 * target.h (struct target_ops) <to_load>: Add argument.
9997 * target.c (target_load): Add argument.
9998 (debug_to_load): Add argument.
9999 (update_current_target): Update.
10000 * remote.c (remote_load): Add 'self' argument.
10001 * remote-sim.c (gdbsim_load): Add 'self' argument.
10002 * remote-mips.c (mips_load): Add 'self' argument.
10003 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10004 * monitor.c (monitor_load): Add 'self' argument.
10005 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10007 2014-02-19 Tom Tromey <tromey@redhat.com>
10009 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10010 (target_terminal_info): Add argument.
10011 * target.c (debug_to_terminal_info): Add argument.
10012 (default_terminal_info): Likewise.
10013 * inflow.c (child_terminal_info): Add 'self' argument.
10014 * inferior.h (child_terminal_info): Add 'self' argument.
10015 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10017 2014-02-19 Tom Tromey <tromey@redhat.com>
10019 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10021 (target_terminal_save_ours): Add argument.
10022 * target.c (debug_to_terminal_save_ours): Add argument.
10023 (update_current_target): Update.
10024 * inflow.c (terminal_save_ours): Add 'self' argument.
10025 * inferior.h (terminal_save_ours): Add 'self' argument.
10027 2014-02-19 Tom Tromey <tromey@redhat.com>
10029 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10030 (target_terminal_ours): Add argument.
10031 * target.c (debug_to_terminal_ours): Add argument.
10032 (update_current_target): Update.
10033 * remote.c (remote_terminal_ours): Add 'self' argument.
10034 (remote_close): Update.
10035 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10036 * inflow.c (terminal_ours): Add 'self' argument.
10037 * inferior.h (terminal_ours): Add 'self' argument.
10038 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10040 2014-02-19 Pedro Alves <palves@redhat.com>
10041 Tom Tromey <tromey@redhat.com>
10043 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10045 (target_terminal_ours_for_output): Add argument.
10046 * target.c (debug_to_terminal_ours_for_output): Add argument.
10047 (update_current_target): Update.
10048 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10049 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10050 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10052 2014-02-19 Tom Tromey <tromey@redhat.com>
10054 * target.h (struct target_ops) <to_terminal_inferior>: Add
10056 * target.c (target_terminal_inferior): Add argument.
10057 (update_current_target): Update.
10058 * remote.c (remote_terminal_inferior): Add 'self' argument.
10059 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10060 * inflow.c (terminal_inferior): Add 'self' argument.
10061 * inferior.h (terminal_inferior): Add 'self' argument.
10062 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10063 (go32_terminal_inferior): Add 'self' argument.
10065 2014-02-19 Tom Tromey <tromey@redhat.com>
10067 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10068 (target_terminal_init): Add argument.
10069 * target.c (debug_to_terminal_init): Add argument.
10070 (update_current_target): Update.
10071 * inflow.c (terminal_init_inferior): Add 'self' argument.
10072 * inferior.h (terminal_init_inferior): Add 'self' argument.
10073 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10074 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10078 * target.h (struct target_ops)
10079 <to_can_accel_watchpoint_condition>: Add argument.
10080 (target_can_accel_watchpoint_condition): Add argument.
10081 * target.c (debug_to_can_accel_watchpoint_condition): Add
10083 (update_current_target): Update.
10084 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10087 2014-02-19 Tom Tromey <tromey@redhat.com>
10089 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10091 (target_region_ok_for_hw_watchpoint): Add argument.
10092 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10093 (default_region_ok_for_hw_watchpoint): Add argument.
10094 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10095 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10097 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10099 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10101 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10103 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10105 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10107 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10108 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10110 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10111 Add 'self' argument.
10113 2014-02-19 Tom Tromey <tromey@redhat.com>
10115 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10117 (target_insert_watchpoint): Add argument.
10118 * target.c (debug_to_insert_watchpoint): Add argument.
10119 (update_current_target): Update.
10120 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10121 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10122 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10123 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10124 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10125 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10127 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10128 (procfs_insert_hw_watchpoint): Add 'self' argument.
10129 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10131 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10133 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10135 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10136 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10138 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10141 2014-02-19 Tom Tromey <tromey@redhat.com>
10143 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10145 (target_remove_watchpoint): Add argument.
10146 * target.c (debug_to_remove_watchpoint): Add argument.
10147 (update_current_target): Update.
10148 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10149 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10150 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10151 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10152 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10153 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10155 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10156 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10158 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10160 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10162 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10163 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10165 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10168 2014-02-19 Tom Tromey <tromey@redhat.com>
10170 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10172 (target_remove_hw_breakpoint): Add argument.
10173 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10174 (update_current_target): Update.
10175 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10176 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10178 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10179 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10181 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10184 2014-02-19 Tom Tromey <tromey@redhat.com>
10186 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10188 (target_insert_hw_breakpoint): Add argument.
10189 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10190 (update_current_target): Update.
10191 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10192 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10194 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10195 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10196 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10198 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10201 2014-02-19 Tom Tromey <tromey@redhat.com>
10203 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10205 (target_can_use_hardware_watchpoint): Add argument.
10206 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10207 (update_current_target): Update.
10208 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10210 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10212 * remote.c (remote_check_watch_resources): Add 'self' argument.
10213 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10214 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10216 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10217 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10219 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10221 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10223 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10225 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10227 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10229 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10230 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10232 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10235 2014-02-19 Tom Tromey <tromey@redhat.com>
10237 * target.h (struct target_ops) <to_post_attach>: Add argument.
10238 (target_post_attach): Add argument.
10239 * target.c (debug_to_post_attach): Add argument.
10240 (update_current_target): Update.
10241 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10242 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10243 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10244 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10245 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10247 2014-02-19 Tom Tromey <tromey@redhat.com>
10249 * windows-nat.c (windows_close): Add 'self' argument.
10250 * tracepoint.c (tfile_close): Add 'self' argument.
10251 * target.h (struct target_ops) <to_close>: Add argument.
10252 * target.c (target_close): Add argument.
10253 (update_current_target): Update.
10254 * remote.c (remote_close): Add 'self' argument.
10255 * remote-sim.c (gdbsim_close): Add 'self' argument.
10256 * remote-mips.c (mips_close): Add 'self' argument.
10257 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10258 * record-full.c (record_full_close): Add 'self' argument.
10259 * record-btrace.c (record_btrace_close): Add 'self' argument.
10260 * monitor.h (monitor_close): Add 'self' argument.
10261 * monitor.c (monitor_close): Add 'self' argument.
10262 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10263 * linux-nat.c (linux_nat_close): Add argument.
10264 * go32-nat.c (go32_close): Add 'self' argument.
10265 * exec.c (exec_close_1): Add 'self' argument.
10266 * ctf.c (ctf_close): Add 'self' argument.
10267 * corelow.c (core_close): Add 'self' argument.
10268 (core_close_cleanup): Update.
10269 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10270 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10272 2014-02-19 Tom Tromey <tromey@redhat.com>
10274 * remote.c (remote_load): New function.
10275 (init_remote_ops): Use it.
10277 2014-02-19 Tom Tromey <tromey@redhat.com>
10279 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10281 * common/linux-btrace.h (linux_supports_btrace): Update.
10282 * remote.c (remote_supports_btrace): Add "self" argument.
10283 * target-delegates.c: Rebuild.
10284 * target.c (target_supports_btrace): Remove.
10285 * target.h (struct target_ops) <to_supports_btrace>: Add
10286 target_ops argument.
10287 (target_supports_btrace): New define.
10289 2014-02-19 Tom Tromey <tromey@redhat.com>
10291 * record-full.c (record_full_beneath_to_resume_ops)
10292 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10293 (record_full_beneath_to_wait)
10294 (record_full_beneath_to_store_registers_ops)
10295 (record_full_beneath_to_store_registers)
10296 (record_full_beneath_to_xfer_partial_ops)
10297 (record_full_beneath_to_xfer_partial)
10298 (record_full_beneath_to_insert_breakpoint_ops)
10299 (record_full_beneath_to_insert_breakpoint)
10300 (record_full_beneath_to_remove_breakpoint_ops)
10301 (record_full_beneath_to_remove_breakpoint)
10302 (record_full_beneath_to_stopped_by_watchpoint)
10303 (record_full_beneath_to_stopped_data_address)
10304 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10305 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10306 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10307 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10308 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10309 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10310 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10311 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10312 (record_full_resume, record_full_wait_1)
10313 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10314 (record_full_store_registers, record_full_xfer_partial)
10315 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10316 (record_full_async, record_full_core_xfer_partial): Use target
10318 * target-delegates.c: Rebuild.
10319 * target.c (current_xfer_partial): Remove.
10320 (update_current_target): Do not INHERIT or de_fault
10321 to_insert_breakpoint, to_remove_breakpoint,
10322 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10323 to_is_async_p, to_async. Do not set to_xfer_partial field.
10324 (default_xfer_partial): Simplify.
10325 (current_xfer_partial): Remove.
10326 (target_wait, target_resume): Simplify.
10327 (find_default_can_async_p, find_default_is_async_p): Update.
10328 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10329 to_xfer_partial, to_stopped_by_watchpoint,
10330 to_stopped_data_address.
10331 (target_store_registers): Simplify.
10332 (forward_target_remove_breakpoint)
10333 (forward_target_insert_breakpoint): Remove.
10334 (target_remove_breakpoint, target_insert_breakpoint)
10335 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10336 * target.h (struct target_ops) <to_resume, to_wait,
10337 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10338 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10339 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10341 (forward_target_remove_breakpoint)
10342 (forward_target_insert_breakpoint): Remove.
10343 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10345 (record_btrace_insert_breakpoint): Delegate directly.
10347 2014-02-19 Tom Tromey <tromey@redhat.com>
10350 * target-delegates.c: New file.
10351 * target.c: Include target-delegates.c.
10352 (init_dummy_target): Call install_dummy_methods.
10353 (complete_target_initialization): Call install_delegators.
10354 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10355 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10356 * make-target-delegates: New file.
10358 2014-02-19 Tom Tromey <tromey@redhat.com>
10360 * record.c (find_record_target): Use find_target_at.
10361 * target.c (find_target_at): New function.
10362 * target.h (find_target_at): Declare.
10364 2014-02-19 Tom Tromey <tromey@redhat.com>
10366 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10367 Add 'ops' argument.
10368 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10370 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10371 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10373 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10375 * linux-nat.c (save_sigtrap): Update.
10376 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10377 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10378 (linux_nat_close): Update.
10379 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10381 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10383 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10384 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10385 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10386 (tmp_to_async): Add 'ops' argument.
10387 (record_full_stopped_by_watchpoint, record_full_async)
10388 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10390 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10391 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10392 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10393 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10394 (remote_is_async_p, remote_async): Add 'ops' argument.
10395 (remote_stopped_data_address): Update.
10396 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10397 * target.c (update_current_target)
10398 (find_default_can_async_p, find_default_is_async_p): Update.
10399 (init_dummy_target): Update.
10400 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10401 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10402 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10403 (target_can_async_p, target_is_async_p, target_async)
10404 (target_stopped_by_watchpoint): Update.
10406 2014-02-19 Yao Qi <yao@codesourcery.com>
10409 * gdbarch.sh: Remove startup_gdbarch.
10410 * gdbarch.c: Regenerated.
10411 * gdbarch.h: Likewise.
10413 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10415 * rl78-tdep.c (rl78_g10_register_name): New function.
10416 (rl78_return_value): Add g10 support.
10417 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10420 2014-02-17 Doug Evans <xdje42@gmail.com>
10422 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10423 (SUBDIR_GUILE_SRCS): Ditto.
10424 (scm-gsmob.o): Ditto.
10426 2014-02-17 Yao Qi <yao@codesourcery.com>
10428 * gnu-nat.c (ILL_RPC): Declare defined function.
10430 2014-02-17 Yao Qi <yao@codesourcery.com>
10432 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10433 mach_msg_type_number_t.
10434 (gnu_write_inferior): Likewise.
10436 2014-02-17 Yao Qi <yao@codesourcery.com>
10438 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10440 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10441 (inf_validate_procs, inf_signal): Likewise.
10442 (S_exception_raise_request): Likewise.
10443 (do_mach_notify_dead_name): Likewise.
10444 (steal_exc_port): Likewise.
10445 (gnu_read_inferior): Change 'copy_count''s type to
10446 mach_msg_type_number_t.
10447 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10450 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10452 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10453 flag. Adjust all users; in particular...
10454 (gnu_wait): ..., don't decrement its value in here...
10455 (gnu_create_inferior): ..., and instead set the flag in here,
10456 around the startup_inferior call, and call that one with
10457 START_INFERIOR_TRAPS_EXPECTED.
10459 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10460 (ILL_RPC): ... new macro.
10461 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10462 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10463 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10464 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10465 functions with ILL_RPC macro.
10466 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10467 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10468 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10469 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10470 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10471 (S_proc_getlogin_reply, S_proc_getsid_reply)
10472 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10473 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10474 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10475 (S_proc_getnports_reply, S_proc_is_important_reply)
10476 (S_proc_get_code_reply): New stub functions, generated with
10479 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10480 collected the type check structures.
10482 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10484 2014-02-14 Doug Evans <dje@google.com>
10486 * target.c (target_write_partial): Fix result type.
10488 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10490 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10491 the proper offsets to access fpregset_t.
10493 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10495 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10496 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10497 * h8300-tdep.c (setmachinelist): Remove global.
10498 * hppa-tdep.c (hppa_sigtramp): Remove global.
10499 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10500 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10501 * ravenscar-thread.c (update_target_observer): Remove global.
10502 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10504 2014-02-12 Tom Tromey <tromey@redhat.com>
10506 * common/rsp-low.c: Update comments.
10507 * common/rsp-low.h: Update comments.
10509 2014-02-12 Tom Tromey <tromey@redhat.com>
10511 * common/rsp-low.c (convert_ascii_to_int): Remove.
10512 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10514 2014-02-12 Tom Tromey <tromey@redhat.com>
10516 * common/rsp-low.h (unhexify): Don't declare.
10517 * common/rsp-low.c (unhexify): Remove.
10519 2014-02-12 Tom Tromey <tromey@redhat.com>
10521 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10522 * common/rsp-low.c (convert_int_to_ascii): Remove.
10524 2014-02-12 Tom Tromey <tromey@redhat.com>
10526 * common/rsp-low.h (hexify): Don't declare.
10527 * common/rsp-low.c (hexify): Remove.
10529 2014-02-12 Tom Tromey <tromey@redhat.com>
10531 * common/rsp-low.c (hexify): Never take strlen of argument.
10533 2014-02-12 Tom Tromey <tromey@redhat.com>
10535 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10536 * remote.c (extended_remote_run, remote_rcmd)
10537 (remote_download_trace_state_variable, remote_save_trace_data)
10538 (remote_set_trace_notes): Update.
10539 * tracepoint.c (encode_source_string, tfile_write_status)
10540 (tfile_write_uploaded_tsv): Update.
10542 2014-02-12 Tom Tromey <tromey@redhat.com>
10544 * tracepoint.c: Include rsp-low.h.
10545 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10546 * remote.c: Include rsp-low.h.
10547 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10548 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10549 (remote_unescape_input): Move to common/rsp-low.c.
10550 * common/rsp-low.h: New file.
10551 * common/rsp-low.c: New file.
10552 * Makefile.in (SFILES): Add common/rsp-low.c.
10553 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10554 (COMMON_OBS): Add rsp-low.o.
10555 (rsp-low.o): New target.
10557 2014-02-12 Tom Tromey <tromey@redhat.com>
10559 * utils.h: Include print-utils.h.
10560 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10561 (int_string, core_addr_to_string, core_addr_to_string_nz)
10562 (hex_string, hex_string_custom): Don't declare.
10563 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10564 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10565 (hex_string_custom, int_string, core_addr_to_string)
10566 (core_addr_to_string_nz, host_address_to_string): Move to
10567 common/print-utils.c.
10568 * common/print-utils.h: New file.
10569 * common/print-utils.c: New file
10570 * Makefile.in (SFILES): Add common/print-utils.c.
10571 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10572 (COMMON_OBS): Add print-utils.o.
10573 (print-utils.o): New target.
10575 2014-02-12 Tom Tromey <tromey@redhat.com>
10577 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10579 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10581 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10583 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10585 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10586 if a PT_IO ptrace request returns sucessfully but indicates that 0
10587 bytes were transferred.
10589 2014-02-12 Pedro Alves <palves@redhat.com>
10590 Kevin Buettner <kevinb@redhat.com>
10592 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10593 TYPE_INSTANCE_FLAG_CODE_SPACE.
10595 2014-02-12 Pedro Alves <palves@redhat.com>
10597 * h8300-tdep.c (pseudo_from_raw_register)
10598 (raw_from_pseudo_register): New functions.
10599 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10602 2014-02-12 Pedro Alves <palves@redhat.com>
10604 * h8300-tdep.c (h8300_register_sim_regno): New function.
10605 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10606 gdbarch_register_sim_regno hook.
10608 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10610 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10612 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10614 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10616 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10618 * obsd-tdep.h (obsd_init_abi): New prototype.
10619 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10620 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10621 (obsd_init_abi): New functions.
10622 * i386obsd-tdep.c: Include "obsd-tdep.h".
10623 (i386obsd_init_abi): Call obsd_init_abi.
10624 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10625 (amd64obsd_init_abi): Call obsd_init_abi.
10626 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10627 obsd-tdep.c to gdb_target_obs.
10629 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10631 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10632 double float arguments to 16-byte in the argument slots.
10634 2014-02-11 Doug Evans <xdje42@gmail.com>
10636 * configure.ac: Don't crash if pkg-config is not found and guile
10637 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10639 * configure: Regenerate.
10641 2014-02-11 Yao Qi <yao@codesourcery.com>
10643 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10644 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10645 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10646 * gnu-nat.c (gnu_xfer_memory): Likewise.
10647 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10648 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10649 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10650 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10652 2014-02-11 Yao Qi <yao@codesourcery.com>
10654 * target.h (enum target_xfer_error): Rename to ...
10655 (enum target_xfer_status): ... it. New. All users updated.
10656 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10658 (TARGET_XFER_STATUS_ERROR_P): New macro.
10659 (target_xfer_error_to_string): Remove declaration.
10660 (target_xfer_status_to_string): Declare.
10661 (target_xfer_partial_ftype): Adjust it.
10662 (struct target_ops) <to_xfer_partial>: Return
10663 target_xfer_status. Add argument xfered_len. Update
10665 * target.c (target_xfer_error_to_string): Rename to ...
10666 (target_xfer_status_to_string): ... it. New. All callers
10668 (target_read_live_memory): Likewise. Call target_xfer_partial
10669 instead of target_read.
10670 (memory_xfer_live_readonly_partial): Return
10671 target_xfer_status. Add argument xfered_len.
10672 (raw_memory_xfer_partial): Likewise.
10673 (memory_xfer_partial_1): Likewise.
10674 (memory_xfer_partial): Likewise.
10675 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10676 properly. Update debug message.
10677 (default_xfer_partial, current_xfer_partial): Likewise.
10678 (target_write_partial): Likewise.
10679 (target_read_partial): Likewise. All callers updated.
10680 (read_whatever_is_readable): Likewise.
10681 (target_write_with_progress): Likewise.
10682 (target_read_alloc_1): Likewise.
10684 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10685 * auxv.c (procfs_xfer_auxv): Likewise.
10686 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10687 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10688 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10689 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10690 * corefile.c (read_memory): Adjust.
10691 * corelow.c (core_xfer_partial): Likewise.
10692 * ctf.c (ctf_xfer_partial): Likewise.
10693 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10695 (darwin_xfer_partial): Likewise.
10696 * exec.c (section_table_xfer_memory_partial): Likewise. All
10698 (exec_xfer_partial): Likewise.
10699 * exec.h (section_table_xfer_memory_partial): Update
10701 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10703 (gnu_xfer_partial): Likewise.
10704 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10705 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10706 (ia64_hpux_xfer_solib_got): Likewise.
10707 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10708 type of 'partial_len' to ULONGEST.
10709 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10710 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10711 (linux_nat_xfer_partial): Likewise.
10712 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10713 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10714 * monitor.c (monitor_xfer_memory): Likewise.
10715 (monitor_xfer_partial): Likewise.
10716 * procfs.c (procfs_xfer_partial): Likewise.
10717 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10718 * record-full.c (record_full_xfer_partial): Likewise.
10719 (record_full_core_xfer_partial): Likewise.
10720 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10721 (gdbsim_xfer_partial): Likewise.
10722 * remote.c (remote_write_bytes_aux): Likewise. All callers
10724 (remote_write_bytes, remote_read_bytes): Likewise. All
10726 (remote_flash_erase): Likewise. All callers updated.
10727 (remote_write_qxfer): Likewise. All callers updated.
10728 (remote_read_qxfer): Likewise. All callers updated.
10729 (remote_xfer_partial): Likewise.
10730 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10731 (rs6000_xfer_shared_libraries): Likewise.
10732 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10733 (sol_thread_xfer_partial): Likewise.
10734 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10735 (sparc_xfer_partial): Likewise.
10736 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10738 (spu_xfer_partial): Likewise.
10739 * spu-multiarch.c (spu_xfer_partial): Likewise.
10740 * tracepoint.c (tfile_xfer_partial): Likewise.
10741 * windows-nat.c (windows_xfer_memory): Likewise.
10742 (windows_xfer_shared_libraries): Likewise.
10743 (windows_xfer_partial): Likewise.
10744 * valprint.c: Replace 'target_xfer_error' with
10745 'target_xfer_status' in comments.
10747 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10749 Checked in by Joel Brobecker <brobecker@adacore.com>.
10750 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10752 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10754 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10755 function parameters.
10757 2014-02-10 Will Newton <will.newton@linaro.org>
10759 * elfread.c (elf_rel_plt_read): Look for a .got section if
10760 looking up .got.plt fails.
10761 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10762 on address passed to elf_gnu_ifunc_record_cache.
10763 (elf_gnu_ifunc_resolve_addr): Likewise.
10764 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10766 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10768 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10769 (X_RETTURN): New macro.
10770 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10772 * sparc64-tdep.c (sparc64_init_abi): Hook
10773 sparc_in_function_epilogue_p.
10775 2014-02-10 Gary Benson <gbenson@redhat.com>
10777 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10778 Rename name_matcher to symbol_matcher.
10780 2014-02-10 Gary Benson <gbenson@redhat.com>
10782 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10783 Use expand_symtabs_file_matcher_ftype and
10784 expand_symtabs_symbol_matcher_ftype.
10786 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10788 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10789 (struct ada_symbol_cache): New.
10790 (ada_free_symbol_cache): Forward declare.
10791 (struct ada_pspace_data): New.
10792 (ada_pspace_data_handle): New static global.
10793 (get_ada_pspace_data, ada_pspace_data_cleanup)
10794 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10795 (cache_space, cache): Delete, now folded inside struct
10797 (ada_get_symbol_cache): New function.
10798 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10800 (_initialize_ada_language): Remove initialization of cache_space.
10801 Move call to observer_attach_inferior_exit up, grouping it
10802 with the other observer registrations inside this function.
10803 Rename command to be more general. Add call to
10804 register_program_space_data_with_cleanup.
10806 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10808 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10809 ada_new_objfile_observer.
10810 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10811 (_initialize_tasks): Update uses of ada_new_objfile_observer
10812 and ada_tasks_normal_stop_observer.
10814 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10816 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10817 returned by the 'Length attribute to integer.
10819 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10821 * ada-lang.c (_initialize_ada_language): Initialize
10822 cache_space obstack.
10824 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10826 * ada-lang.c (HASH_SIZE): New macro.
10827 (struct cache_entry): New type.
10828 (cache_space, cache): New static globals.
10829 (ada_clear_symbol_cache, find_entry): New functions.
10830 (lookup_cached_symbol, cache_symbol): Implement.
10831 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10832 (_initialize_ada_language): Attach ada_new_objfile_observer
10833 and ada_free_objfile_observer.
10835 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10837 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10838 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10839 struct block * parameter.
10840 (ada_lookup_symbol_list_worker): Constify local variable "block".
10841 Remove cast which is no longer necessary.
10843 2014-02-10 Doug Evans <xdje42@gmail.com>
10845 Add Guile as an extension language.
10846 * NEWS: Mention Guile scripting.
10847 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10848 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10849 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10850 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10851 (CLIBS): Add GUILE_LIBS.
10852 (install-guile): New rule.
10853 (guile.o): New rule.
10854 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10855 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10856 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10857 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10858 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10859 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10860 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10861 * configure.ac: New option --with-guile.
10862 * configure: Regenerate.
10863 * config.in: Regenerate.
10864 * auto-load.c: Remove #include "python/python.h". Add #include
10865 "gdb/section-scripts.h".
10866 (source_section_scripts): Handle Guile scripts.
10867 (_initialize_auto_load): Add name of Guile objfile script to
10868 scripts-directory help text.
10869 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10870 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10871 (struct breakpoint): New member scm_bp_object.
10872 * defs.h (enum command_control_type): New value guile_control.
10873 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10875 (show_user): Update comment.
10876 (_initialize_cli_cmds): Update help text for "show user". Update help
10877 text for max-user-call-depth.
10878 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10880 (multi_line_command_p): Add guile_control.
10881 (print_command_lines): Handle guile_control.
10882 (execute_control_command, recurse_read_control_structure): Ditto.
10883 (process_next_line): Recognize "guile" commands.
10884 * disasm.c (gdb_disassemble_info): Make non-static.
10885 * disasm.h: #include "dis-asm.h".
10886 (struct gdbarch): Add forward decl.
10887 (gdb_disassemble_info): Declare.
10888 * extension.c: #include "guile/guile.h".
10889 (extension_languages): Add guile.
10890 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10891 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10892 * gdbtypes.c (get_unsigned_type_max): New function.
10893 (get_signed_type_minmax): New function.
10894 * gdbtypes.h (get_unsigned_type_max): Declare.
10895 (get_signed_type_minmax): Declare.
10896 * guile/README: New file.
10897 * guile/guile-internal.h: New file.
10898 * guile/guile.c: New file.
10899 * guile/guile.h: New file.
10900 * guile/scm-arch.c: New file.
10901 * guile/scm-auto-load.c: New file.
10902 * guile/scm-block.c: New file.
10903 * guile/scm-breakpoint.c: New file.
10904 * guile/scm-disasm.c: New file.
10905 * guile/scm-exception.c: New file.
10906 * guile/scm-frame.c: New file.
10907 * guile/scm-gsmob.c: New file.
10908 * guile/scm-iterator.c: New file.
10909 * guile/scm-lazy-string.c: New file.
10910 * guile/scm-math.c: New file.
10911 * guile/scm-objfile.c: New file.
10912 * guile/scm-ports.c: New file.
10913 * guile/scm-pretty-print.c: New file.
10914 * guile/scm-safe-call.c: New file.
10915 * guile/scm-string.c: New file.
10916 * guile/scm-symbol.c: New file.
10917 * guile/scm-symtab.c: New file.
10918 * guile/scm-type.c: New file.
10919 * guile/scm-utils.c: New file.
10920 * guile/scm-value.c: New file.
10921 * guile/lib/gdb.scm: New file.
10922 * guile/lib/gdb/boot.scm: New file.
10923 * guile/lib/gdb/experimental.scm: New file.
10924 * guile/lib/gdb/init.scm: New file.
10925 * guile/lib/gdb/iterator.scm: New file.
10926 * guile/lib/gdb/printing.scm: New file.
10927 * guile/lib/gdb/types.scm: New file.
10928 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10929 (VPATH): Add $(GUILE_SRCDIR).
10930 (GUILE_DIR): New variable.
10931 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10932 (all): Add stamp-guile dependency.
10933 (stamp-guile): New rule.
10934 (clean-guile, install-guile, uninstall-guile): New rules.
10935 (install-only): Add install-guile dependency.
10936 (uninstall): Add uninstall-guile dependency.
10937 (clean): Add clean-guile dependency.
10939 2014-02-09 Doug Evans <xdje42@gmail.com>
10941 Revert this patch (which I approved, mea culpa).
10943 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10945 * Makefile.in (all-lib): Remove.
10946 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10948 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10950 Fix Python stack corruption.
10951 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10954 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10956 * Makefile.in (all-lib): Remove.
10957 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10959 2014-02-07 Doug Evans <dje@google.com>
10961 * extension-priv.h (extension_language_script_ops): Add comment.
10962 (extension_language_ops): Add comment.
10963 (active_ext_lang_state): Fix typo in comment.
10965 2014-02-07 Pedro Alves <palves@redhat.com>
10967 PR breakpoints/16292
10968 * infrun.c (handle_signal_stop) <signal arrives while stepping
10969 over a breakpoint>: Switch back to the stepping thread.
10971 2014-02-07 Yao Qi <yao@codesourcery.com>
10973 * target.c (target_xfer_partial): Return zero if LEN is zero.
10975 2014-02-07 Yao Qi <yao@codesourcery.com>
10977 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10978 (ld_so_xfer_auxv): Likewise.
10979 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10980 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10981 * corelow.c (core_xfer_partial): Likewise.
10982 * ctf.c (ctf_xfer_partial): Likewise.
10983 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10984 (darwin_xfer_partial): Likewise.
10985 * exec.c (exec_xfer_partial): Likewise.
10986 * gnu-nat.c (gnu_xfer_partial): Likewise.
10987 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10988 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10989 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10990 * linux-nat.c (linux_xfer_siginfo): Likewise.
10991 (linux_proc_xfer_spu): Likewise.
10992 * procfs.c (procfs_xfer_partial): Likewise.
10993 * record-full.c (record_full_xfer_partial): Likewise.
10994 (record_full_core_xfer_partial): Likewise.
10995 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10996 * remote.c (remote_write_qxfer): Likewise.
10997 (remote_write_qxfer, remote_read_qxfer): Likewise.
10998 (remote_xfer_partial): Likewise.
10999 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11000 (rs6000_xfer_shared_libraries): Likewise.
11001 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11002 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11003 (spu_xfer_partial): Likewise.
11004 * target.c (memory_xfer_partial_1): Likewise.
11005 * tracepoint.c (tfile_xfer_partial): Likewise.
11006 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11007 (windows_xfer_partial): Likewise.
11009 2014-02-07 Yao Qi <yao@codesourcery.com>
11011 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11013 (core_xfer_shared_libraries_aix): Likewise.
11014 * gdbarch.c, gdbarch.h: Regenerated.
11015 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11016 ULONGEST. Change 'len_avail' type to ULONGEST.
11017 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11018 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11020 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11022 2014-02-07 Yao Qi <yao@codesourcery.com>
11024 * corefile.c (memory_error): Get 'exception' from ERR and pass
11025 'exception' to throw_error.
11027 2014-02-06 Doug Evans <xdje42@gmail.com>
11029 * configure.ac (libpython checking): Remove all but python.o from
11030 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11031 * configure: Regenerate.
11033 * Makefile.in (SFILES): Add extension.c.
11034 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11035 (COMMON_OBS): Add extension.o.
11036 * extension.h: New file.
11037 * extension-priv.h: New file.
11038 * extension.c: New file.
11040 * python/python-internal.h: #include "extension.h".
11041 (gdbpy_auto_load_enabled): Declare.
11042 (gdbpy_apply_val_pretty_printer): Declare.
11043 (gdbpy_apply_frame_filter): Declare.
11044 (gdbpy_preserve_values): Declare.
11045 (gdbpy_breakpoint_cond_says_stop): Declare.
11046 (gdbpy_breakpoint_has_cond): Declare.
11047 (void source_python_script_for_objfile): Delete.
11048 * python/python.c: #include "extension-priv.h".
11049 Delete inclusion of "observer.h".
11050 (extension_language_python): Moved here and renamed from
11051 script_language_python in py-auto-load.c.
11052 Redefined to be of type extension_language_defn.
11053 (python_extension_script_ops): New global.
11054 (python_extension_ops): New global.
11055 (struct python_env): New member previous_active.
11056 (restore_python_env): Call restore_active_ext_lang.
11057 (ensure_python_env): Call set_active_ext_lang.
11058 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11060 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11062 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11064 (gdbpy_eval_from_control_command): Renamed from
11065 eval_python_from_control_command, made static. New arg extlang.
11066 (gdbpy_source_script) Renamed from source_python_script, made static.
11068 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11069 result to int. New arg extlang.
11070 (gdbpy_source_objfile_script): Renamed from
11071 source_python_script_for_objfile, made static. New arg extlang.
11072 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11073 static. New args extlang, extlang_printers. Change result type to
11075 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11076 static. New arg extlang. Rename arg printers to extlang_printers
11077 and change type to ext_lang_type_printers *.
11078 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11079 static. Replace argument arg with extlang, extlang_printers.
11080 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11081 (!HAVE_PYTHON, source_python_script): Delete.
11082 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11083 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11084 (!HAVE_PYTHON, start_type_printers): Delete.
11085 (!HAVE_PYTHON, apply_type_printers): Delete.
11086 (!HAVE_PYTHON, free_type_printers): Delete.
11087 (_initialize_python): Delete call to observer_attach_before_prompt.
11088 (finalize_python): Set/restore active extension language.
11089 (gdbpy_finish_initialization) Renamed from
11090 finish_python_initialization, made static. New arg extlang.
11091 (gdbpy_initialized): New function.
11092 * python/python.h: #include "extension.h". Delete #include
11093 "value.h", "mi/mi-cmds.h".
11094 (extension_language_python): Declare.
11095 (GDBPY_AUTO_FILE_NAME): Delete.
11096 (enum py_bt_status): Moved to extension.h and renamed to
11097 ext_lang_bt_status.
11098 (enum frame_filter_flags): Moved to extension.h.
11099 (enum py_frame_args): Moved to extension.h and renamed to
11100 ext_lang_frame_args.
11101 (finish_python_initialization): Delete.
11102 (eval_python_from_control_command): Delete.
11103 (source_python_script): Delete.
11104 (apply_val_pretty_printer): Delete.
11105 (apply_frame_filter): Delete.
11106 (preserve_python_values): Delete.
11107 (gdbpy_script_language_defn): Delete.
11108 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11109 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11111 * auto-load.c: #include "extension.h".
11112 (GDB_AUTO_FILE_NAME): Delete.
11113 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11114 (script_language_gdb): Delete, moved to extension.c and renamed to
11115 extension_language_gdb.
11116 (source_gdb_script_for_objfile): Delete.
11117 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11118 (loaded_script): Change type of language member to
11119 struct extension_language_defn *.
11120 (init_loaded_scripts_info): Initialize
11121 unsupported_script_warning_printed.
11122 (maybe_add_script): Make static. Change type of language arg to
11123 struct extension_language_defn *.
11124 (clear_section_scripts): Reset unsupported_script_warning_printed.
11125 (auto_load_objfile_script_1): Rewrite to use extension language API.
11126 (auto_load_objfile_script): Make public. Remove support-compiled-in
11127 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11128 (source_section_scripts): Rewrite to use extension language API.
11129 (load_auto_scripts_for_objfile): Rewrite to use
11130 auto_load_scripts_for_objfile.
11131 (collect_matching_scripts_data): Change type of language member to
11132 struct extension_language_defn *.
11133 (auto_load_info_scripts): Change type of language arg to
11134 struct extension_language_defn *.
11135 (unsupported_script_warning_print): New function.
11136 (script_not_found_warning_print): Make static.
11137 (_initialize_auto_load): Rewrite construction of scripts-directory
11139 * auto-load.h (struct objfile): Add forward decl.
11140 (struct script_language): Delete.
11141 (struct auto_load_pspace_info): Add forward decl.
11142 (struct extension_language_defn): Add forward decl.
11143 (maybe_add_script): Delete.
11144 (auto_load_objfile_script): Declare.
11145 (script_not_found_warning_print): Delete.
11146 (auto_load_info_scripts): Update prototype.
11147 (auto_load_gdb_scripts_enabled): Declare.
11148 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11149 auto_load_python_scripts_enabled and made public.
11150 (script_language_python): Delete, moved to python.c.
11151 (gdbpy_script_language_defn): Delete.
11152 (info_auto_load_python_scripts): Update to use
11153 extension_language_python.
11155 * breakpoint.c (condition_command): Replace call to
11156 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11157 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11158 with call to breakpoint_ext_lang_cond_says_stop.
11159 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11160 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11161 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11162 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11164 (local_setattro): Print name of extension language with existing
11167 * valprint.c (val_print, value_print): Update to call
11168 apply_ext_lang_val_pretty_printer.
11169 * cp-valprint.c (cp_print_value): Update call to
11170 apply_ext_lang_val_pretty_printer.
11171 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11172 (gdbpy_apply_val_pretty_printer): Renamed from
11173 apply_val_pretty_printer. New arg extlang.
11174 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11176 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11177 extension language API.
11178 * cli/cli-script.c (execute_control_command): Update to call
11179 eval_ext_lang_from_control_command.
11181 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11182 enum ext_lang_bt_status values. Update call to
11183 apply_ext_lang_frame_filter.
11184 (mi_cmd_stack_list_locals): Ditto.
11185 (mi_cmd_stack_list_args): Ditto.
11186 (mi_cmd_stack_list_variables): Ditto.
11187 * mi/mi-main.c: Delete #include "python/python-internal.h".
11188 Add #include "extension.h".
11189 (mi_cmd_list_features): Replace reference to python internal variable
11190 gdb_python_initialized with call to ext_lang_initialized_p.
11192 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11193 Update to use enum ext_lang_frame_args. Update to call
11194 apply_ext_lang_frame_filter.
11195 * python/py-framefilter.c (extract_sym): Update to use enum
11196 ext_lang_bt_status.
11197 (extract_value, py_print_type, py_print_value): Ditto.
11198 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11199 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11200 (py_print_frame): Ditto.
11201 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11202 New arg extlang. Update to use enum ext_lang_bt_status.
11204 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11205 finish_python_initialization. Replace with call to
11206 finish_ext_lang_initialization.
11208 * typeprint.c (do_free_global_table): Update to call
11209 free_ext_lang_type_printers.
11210 (create_global_typedef_table): Update to call
11211 start_ext_lang_type_printers.
11212 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11213 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11214 (type_print_options): Change type of global_printers from "void *"
11215 to "struct ext_lang_type_printers *".
11217 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11218 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11219 (gdbpy_preserve_values): Renamed from preserve_python_values.
11221 (!HAVE_PYTHON, preserve_python_values): Delete.
11223 * utils.c (quit_flag): Delete, moved to extension.c.
11224 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11227 * eval.c: Delete #include "python/python.h".
11228 * main.c: Delete #include "python/python.h".
11230 * defs.h: Update comment.
11232 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11236 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11238 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11241 2014-02-05 Yao Qi <yao@codesourcery.com>
11243 * remote.c (remote_pass_signals): Remove local 'buf' and use
11245 (remote_program_signals): Likewise.
11247 2014-02-05 Yao Qi <yao@codesourcery.com>
11249 * ctf.c: Include "inferior.h" and "gdbthread.h".
11250 (CTF_PID): A new macro.
11251 (ctf_open): Call inferior_appeared and add_thread_silent.
11252 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11253 (ctf_thread_alive): New function.
11254 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11256 2014-02-05 Yao Qi <yao@codesourcery.com>
11260 2013-05-24 Yao Qi <yao@codesourcery.com>
11262 * tracepoint.c (TFILE_PID): Remove.
11263 (tfile_open): Don't add thread and inferior.
11264 (tfile_close): Don't set 'inferior_ptid'. Don't call
11265 exit_inferior_silent.
11266 (tfile_thread_alive): Remove.
11267 (init_tfile_ops): Don't set field 'to_thread_alive' of
11270 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11272 * remote.c (remote_start_remote): Call remote_check_symbols even
11273 if only symbol-file (not file) has been given.
11275 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11277 * gdbarch.sh (skip_entrypoint): New callback.
11278 * gdbarch.c, gdbarch.h: Regenerate.
11279 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11280 * infrun.c (fill_in_stop_func): Likewise.
11281 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11282 (ppc_elfv2_elf_make_msymbol_special): New function.
11283 (ppc_elfv2_skip_entrypoint): Likewise.
11284 (ppc_linux_init_abi): Install them for ELFv2.
11286 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11288 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11289 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11290 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11291 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11292 structures returned in GPRs.
11294 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11296 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11297 offset to the stack parameter list for the ELFv2 ABI.
11299 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11301 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11302 set_gdbarch_convert_from_func_ptr_addr and
11303 set_gdbarch_elf_make_msymbol_special for ELFv1.
11304 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11305 function descriptors on ELFv1.
11306 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11307 set up r12 at function entry.
11309 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11311 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11312 (struct gdbarch_tdep): New member elf_abi.
11314 * rs6000-tdep.c: Include "elf/ppc64.h".
11315 (rs6000_gdbarch_init): Detect ELF ABI version.
11317 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11319 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11320 within a register pair holding a DFP 128-bit value on little-endian.
11321 (ppc64_sysv_abi_return_value_base): Likewise.
11322 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11323 (dfp_pseudo_register_write): Likewise.
11325 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11327 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11328 offset on little-endian when passing _Decimal32.
11329 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11331 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11333 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11334 of the overlapped FP register within the VSX register on little-
11336 (efpr_pseudo_register_write): Likewise.
11338 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11340 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11341 offset on little-endian when passing small structures.
11343 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11345 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11346 (struct ppc64_sysv_argpos): New data structure.
11347 (ppc64_sysv_abi_push_float): Remove.
11348 (ppc64_sysv_abi_push_val): New function.
11349 (ppc64_sysv_abi_push_integer): Likewise.
11350 (ppc64_sysv_abi_push_freg): Likewise.
11351 (ppc64_sysv_abi_push_vreg): Likewise.
11352 (ppc64_sysv_abi_push_param): Likewise.
11353 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11354 (ppc64_sysv_abi_return_value_base): New function.
11355 (ppc64_sysv_abi_return_value): Refactor to use it.
11357 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11359 * NEWS: Document new target powerpc64le-*-linux*.
11361 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11363 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11364 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11366 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11367 register set used in ELF core dumps. Add floating-point register set.
11369 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11371 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11372 dwarf2_to_gdb[] table using symbolic constants. Adjust
11373 penultimate entry from number representing the PC register
11374 to symbolic constant representing the MDR register. Add
11375 constant for the PC register to the end of the table.
11377 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11379 * bsd-kvm.c: Include <sys/param.h>
11381 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11383 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11385 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11387 * ada-lang.h (clear_ada_sym_cache): Delete.
11389 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11391 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11393 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11395 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11396 the sigreturn register save area only if the syscall is
11399 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11401 * valops.c (value_slice): Minor reformatting.
11403 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11405 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11407 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11409 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11410 New static globals.
11411 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11412 (ada_ignore_descriptive_types_p): New static global.
11413 (find_parallel_type_by_descriptive_type): Return immediately
11414 if ada_ignore_descriptive_types_p is set.
11415 (_initialize_ada_language): Register new commands "maintenance
11416 set ada", "maintenance show ada", "maintenance set ada
11417 ignore-descriptive-types" and "maintenance show ada
11418 ignore-descriptive-types".
11419 * NEWS: Add entry for new "maint ada set/show
11420 ignore-descriptive-types" commands.
11422 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11424 * record-btrace.c (record_btrace_close): Call btrace_teardown
11427 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11429 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11432 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11434 * ada-typeprint (type_is_full_subrange_of_target_type):
11436 (print_range): Add parameter bounds_prefered_p. If not set,
11437 try printing range types using the name of their base type.
11438 (print_range_type): Add parameter bounds_prefered_p.
11439 Use it in call to print_range.
11440 (print_array_type, ada_print_type): Update calls to print_range
11441 and print_range_type.
11443 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11445 * ada-typeprint.c (print_array_type, print_choices, print_range)
11446 (print_range_bound, print_dynamic_range_bound, print_range_type):
11447 Remove declaration.
11449 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11451 * ada-typeprint.c (print_range): Add missing empty line
11452 after local declaration.
11454 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11456 * ada-valprint.c (print_optional_low_bound): Get index_type's
11457 target type for as long as it is a TYPE_CODE_RANGE.
11459 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11461 * procfs.c (procfs_make_note_section): Remove assertion and
11462 associated comment.
11464 2014-01-24 Yao Qi <yao@codesourcery.com>
11466 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11467 * corelow.c (get_core_siginfo): Likewise.
11469 2014-01-24 Yao Qi <yao@codesourcery.com>
11471 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11472 ULONGEST. Don't check 'len' is negative.
11473 (remote_write_bytes): Change type of 'len' to ULONGEST.
11475 2014-01-23 Tom Tromey <tromey@redhat.com>
11478 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11479 Handle exception from frame.block.
11480 (FrameVars.fetch_frame_locals): Likewise.
11482 2014-01-23 Tom Tromey <tromey@redhat.com>
11485 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11486 on a NULL pointer. Move "goto error" to correct place.
11488 2014-01-23 Tom Tromey <tromey@redhat.com>
11491 * python/py-framefilter.c (apply_frame_filter): Call
11492 ensure_python_env after computing gdbarch.
11494 2014-01-23 Yao Qi <yao@codesourcery.com>
11496 * target.c (raw_memory_xfer_partial): Change argument type
11497 from void * to gdb_byte *.
11498 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11500 2014-01-22 Doug Evans <dje@google.com>
11502 New gdbserver option --debug-format=timestamp.
11503 * NEWS: Mention it.
11505 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11507 * syscalls/s390x-linux.xml: New file.
11508 * syscalls/s390-linux.xml: New file.
11509 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11510 (XML_SYSCALL_FILENAME_S390X): Likewise.
11511 (op_svc): New enum value for SVC opcode.
11512 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11513 (s390_linux_get_syscall_number): New function.
11514 (s390_gdbarch_init): Register '*get_syscall_number' and the
11515 syscall xml file name.
11516 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11517 "s390-linux.xml" and "s390x-linux.xml".
11518 * NEWS: Announce new feature.
11520 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11522 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11524 2014-01-22 Pedro Alves <palves@redhat.com>
11526 * xtensa-config.c: Include defs.h.
11528 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11530 * common/common-utils.h: Add "ARI:" comment beside __func__
11533 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11535 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11536 documentation a bit.
11538 2014-01-21 Roland McGrath <mcgrathr@google.com>
11540 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11541 * configure: Regenerate.
11542 * aclocal.m4: Regenerate.
11543 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11544 New substituted variables.
11545 (install-strip): New target.
11546 (INSTALL_SCRIPT): New substituted variable.
11547 (FLAGS_TO_PASS): Add it.
11548 (install-only): Use $(INSTALL_SCRIPT) rather than
11549 $(INSTALL_PROGRAM) for gcore.
11551 2014-01-20 Tom Tromey <tromey@redhat.com>
11553 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11556 2014-01-20 Tom Tromey <tromey@redhat.com>
11558 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11559 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11560 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11561 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11562 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11563 (struct cmd_list_element) <flags>: Remove.
11564 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11565 doc_allocated>: New fields.
11566 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11568 * maint.c (maintenance_do_deprecate): Update.
11569 * top.c (execute_command): Update.
11571 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11573 * xtensa-linux-nat.c: Include asm/ptrace.h.
11575 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11577 * Makefile.in (SFILES): Add d-support.c.
11578 (COMMON_OBS): Add d-support.o.
11579 * d-lang.h (d_parse_symbol): Add comment, now defined in
11581 * d-lang.c (parse_call_convention)
11582 (parse_attributes, parse_function_types)
11583 (parse_function_args, parse_type, parse_identifier)
11584 (call_convention_p, d_parse_symbol): Move functions to ...
11585 * d-support.c: ... New file.
11587 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11589 * d-lang.h (d_parse_symbol): Add declaration.
11590 * d-lang.c (extract_identifiers)
11591 (extract_type_info): Remove functions.
11592 (parse_call_convention, parse_attributes)
11593 (parse_function_types, parse_function_args)
11594 (parse_type, parse_identifier, call_convention_p)
11595 (d_parse_symbol): New functions.
11596 (d_demangle): Use d_parse_symbol to demangle D symbols.
11598 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11600 * d-lang.h (struct builtin_d_type): New data type.
11601 (builtin_d_type): Add declaration.
11602 * d-lang.c (d_language_arch_info, build_d_types)
11603 (builtin_d_type): New functions.
11604 (enum d_primitive_types): New data type.
11605 (d_language_defn): Change c_language_arch_info to
11606 d_language_arch_info.
11607 (d_type_data): New static variable.
11608 (_initialize_d_language): Initialize d_type_data.
11610 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11612 * d-lang.h (d_main_name): Add declaration.
11613 * d-lang.c (d_main_name): New function.
11614 * symtab.c (find_main_name): Add call to d_main_name.
11616 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11618 * d-lang.c (d_language_defn): Change macro_expansion_c to
11619 macro_expansion_no.
11621 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11623 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11625 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11627 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11628 gdb_exception" declaration.
11629 * remote.c (getpkt_or_notif_sane): Likewise.
11631 2014-01-17 Doug Evans <dje@google.com>
11633 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11634 function, contents of dirnames_to_char_ptr_vec_append moved here.
11635 (delim_string_to_char_ptr_vec): New function.
11636 (dirnames_to_char_ptr_vec_append): Rewrite.
11637 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11639 2014-01-17 Doug Evans <dje@google.com>
11641 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11643 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11644 #include "common-utils.h".
11645 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11646 * common/vec.h (VEC_ASSERT_PASS): Update.
11647 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11648 (MACH_CHECK_ERROR): Update.
11650 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11652 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11654 * gdbarch.h: Regenerate.
11656 2014-01-16 Tom Tromey <tromey@redhat.com>
11658 * value.c (struct value) <regnum>: Move earlier.
11660 2014-01-16 Tom Tromey <tromey@redhat.com>
11662 * remote.c (extended_remote_create_inferior): Rename from
11663 extended_remote_create_inferior_1. Add "ops" argument. Remove
11664 old implementation.
11666 2014-01-16 Pedro Alves <palves@redhat.com>
11668 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11669 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11672 2014-01-16 Doug Evans <dje@google.com>
11674 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11676 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11678 * btrace.h (btrace_thread_flag): New.
11679 (struct btrace_thread_info) <flags>: New.
11680 * record-btrace.c (record_btrace_resume_thread)
11681 (record_btrace_find_thread_to_move, btrace_step_no_history)
11682 (btrace_step_stopped, record_btrace_start_replaying)
11683 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11684 (record_btrace_find_resume_thread): New.
11685 (record_btrace_resume, record_btrace_wait): Extend.
11686 (record_btrace_can_execute_reverse): New.
11687 (record_btrace_open): Fail in non-stop mode.
11688 (record_btrace_set_replay): Split into this, ...
11689 (record_btrace_stop_replaying): ... this, ...
11690 (record_btrace_clear_histories): ... and this.
11691 (init_record_btrace_ops): Init to_can_execute_reverse.
11692 * NEWS: Announce it.
11694 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11696 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11697 (forward_target_decr_pc_after_break)
11698 (target_decr_pc_after_break): New.
11699 * target.c (forward_target_decr_pc_after_break)
11700 (target_decr_pc_after_break): New.
11701 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11702 instead of gdbarch_decr_pc_after_break.
11703 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11704 instead of gdbarch_decr_pc_after_break.
11705 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11706 instead of gdbarch_decr_pc_after_break.
11707 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11708 instead of gdbarch_decr_pc_after_break.
11709 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11710 instead of gdbarch_decr_pc_after_break.
11711 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11712 instead of gdbarch_decr_pc_after_break.
11714 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11716 * btrace.c: Include regcache.h.
11717 (btrace_add_pc): New.
11718 (btrace_enable): Call btrace_add_pc.
11719 (btrace_is_empty): New.
11720 * btrace.h (btrace_is_empty): New.
11721 * record-btrace.c (require_btrace, record_btrace_info): Call
11724 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11726 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11727 Support delta reads.
11728 (linux_disable_btrace): Change return type.
11729 * common/linux-btrace.h (linux_read_btrace): Change parameters
11730 and return type to allow error reporting. Update users.
11731 (linux_disable_btrace): Change return type. Update users.
11732 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11734 (btrace_error): New.
11735 (btrace_block) <begin>: Comment on BEGIN == 0.
11736 * btrace.c (btrace_compute_ftrace): Start from the end of
11738 (btrace_stitch_trace, btrace_clear_history): New.
11739 (btrace_fetch): Read delta trace, return if replaying.
11740 (btrace_clear): Move clear history code to btrace_clear_history.
11741 (parse_xml_btrace): Throw an error if parsing failed.
11742 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11743 and return type to allow error reporting.
11744 (target_read_btrace): Change parameters and return type to allow
11746 * target.c (target_read_btrace): Update.
11747 * remote.c (remote_read_btrace): Support delta reads. Pass
11749 * NEWS: Announce it.
11751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11753 * record.h (record_btrace_frame_unwind)
11754 (record_btrace_tailcall_frame_unwind): New declarations.
11755 * dwarf2-frame: Include record.h
11756 (dwarf2_frame_cfa): Throw an error for btrace frames.
11757 * record-btrace.c: Include hashtab.h.
11758 (btrace_get_bfun_name): New.
11759 (btrace_call_history): Call btrace_get_bfun_name.
11760 (struct btrace_frame_cache): New.
11762 (bfcache_hash, bfcache_eq, bfcache_new): New.
11763 (btrace_get_frame_function): New.
11764 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11765 (record_btrace_frame_this_id): Compute own id.
11766 (record_btrace_frame_prev_register): Provide PC, throw_error
11767 for all other registers.
11768 (record_btrace_frame_sniffer): Detect btrace frames.
11769 (record_btrace_tailcall_frame_sniffer): New.
11770 (record_btrace_frame_dealloc_cache): New.
11771 (record_btrace_frame_unwind): Add new functions.
11772 (record_btrace_tailcall_frame_unwind): New.
11773 (_initialize_record_btrace): Allocate cache.
11774 * btrace.c (btrace_clear): Call reinit_frame_cache.
11775 * NEWS: Announce it.
11777 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11779 * record-btrace.c (record_btrace_set_replay)
11780 (record_btrace_goto_begin, record_btrace_goto_end)
11781 (record_btrace_goto): New.
11782 (init_record_btrace_ops): Initialize them.
11783 * NEWS: Announce it.
11785 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11787 * record-btrace.c (record_btrace_find_new_threads)
11788 (record_btrace_thread_alive): New.
11789 (init_record_btrace_ops): Initialize to_find_new_threads and
11792 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11794 * record-btrace.c (record_btrace_resume): New.
11795 (record_btrace_wait): New.
11796 (init_record_btrace_ops): Initialize to_wait and to_resume.
11798 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11800 * record-btrace.c (record_btrace_xfer_partial)
11801 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11802 (record_btrace_allow_memory_access): New.
11803 (init_record_btrace_ops): Initialize new methods.
11804 * target.c (raw_memory_xfer_partial): Bail out if target reports
11805 that this memory is not available.
11807 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11809 * target.h (target_ops) <to_insert_breakpoint>
11810 <to_remove_breakpoint>: Add target_ops parameter.
11811 (forward_target_insert_breakpoint): New.
11812 (forward_target_remove_breakpoint): New.
11813 (memory_remove_breakpoint, memory_insert_breakpoint):
11814 Add target_ops parameter.
11815 * target.c (target_insert_breakpoint): Split into this and ...
11816 (forward_target_insert_breakpoint): ... this.
11817 (target_remove_breakpoint): Split into this and ...
11818 (forward_target_remove_breakpoint): ... this.
11819 (debug_to_insert_breakpoint): Add target_ops parameter.
11820 Call forward_target_insert_breakpoint.
11821 (debug_to_remove_breakpoint): Add target_ops parameter.
11822 Call forward_target_remove_breakpoint.
11823 (update_current_target): Do not inherit or default to_insert_breakpoint
11824 and to_remove_breakpoint.
11825 * corelow.c (ignore): Add target_ops parameter.
11826 * exec.c (ignore): Add target_ops parameter.
11827 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11828 Add target_ops parameter.
11829 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11830 Add target_ops parameter.
11831 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11832 Add target_ops parameter.
11833 * record-full.c (record_full_beneath_to_insert_breakpoint)
11834 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11835 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11836 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11837 (record_full_core_remove_breakpoint): Add target_ops parameter.
11839 (record_full_beneath_to_insert_breakpoint_ops)
11840 (record_full_beneath_to_remove_breakpoint_ops)
11841 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11842 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11843 tmp_to_remove_breakpoint_ops,
11844 record_full_beneath_to_insert_breakpoint_ops, and
11845 record_full_beneath_to_remove_breakpoint_ops.
11846 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11847 (m32r_remove_breakpoint): Add target_ops parameter.
11848 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11849 Add target_ops parameter.
11850 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11851 Add target_ops parameter.
11853 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11854 Markus Metzger <markus.t.metzger@intel.com>
11856 * record-btrace.c: Include frame-unwind.h.
11857 (record_btrace_frame_unwind_stop_reason)
11858 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11859 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11861 (init_record_btrace_ops): Install it.
11863 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11865 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11868 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11870 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11873 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11875 * frame-unwind.c: Include target.h.
11876 (frame_unwind_try_unwinder): New function with code from ...
11877 (frame_unwind_find_by_frame): ... here. New variable
11878 unwinder_from_target, call also target_get_unwinder)
11879 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11880 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11881 * target.h (struct target_ops): New fields to_get_unwinder and
11882 to_get_tailcall_unwinder.
11883 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11885 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11887 * record-btrace.c (record_btrace_fetch_registers)
11888 (record_btrace_store_registers)
11889 (record_btrace_to_prepare_to_store): New.
11890 (init_record_btrace_ops): Add the above.
11892 2014-01-16 Tom Tromey <tromey@redhat.com>
11894 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11895 * target.h (struct target_ops) <to_prepare_to_store>: Add
11897 (target_prepare_to_store): Add argument.
11898 * target.c (debug_to_prepare_to_store): Add argument.
11899 (update_current_target): Update.
11900 * remote.c (remote_prepare_to_store): Add 'self' argument.
11901 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11902 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11903 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11904 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11906 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11907 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11908 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11909 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11910 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11912 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11914 * btrace.h (replay) <replay>: New.
11915 (btrace_is_replaying): New.
11916 * btrace.c (btrace_clear): Free replay iterator.
11917 (btrace_is_replaying): New.
11918 * record-btrace.c (record_btrace_is_replaying): New.
11919 (record_btrace_info): Print insn number if replaying.
11920 (record_btrace_insn_history): Start at replay position.
11921 (record_btrace_call_history): Start at replay position.
11922 (init_record_btrace_ops): Init to_record_is_replaying.
11924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11926 * record-btrace.c (record_btrace_insn_history_range): Include
11928 (record_btrace_insn_history_from): Adjust range.
11929 (record_btrace_call_history_range): Include
11931 (record_btrace_call_history_from): Adjust range.
11932 * NEWS: Announce changes.
11934 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11936 * record.h (enum record_print_flag)
11937 <record_print_indent_calls>: New.
11938 * record.c (get_call_history_modifiers): Recognize /c modifier.
11939 (_initialize_record): Document /c modifier.
11940 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11941 Reorder fields. Optionally indent the function name. Update
11943 * NEWS: Announce changes.
11945 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11947 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11949 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11951 * btrace.c (ftrace_new_function): Start counting at one.
11952 * record-btrace.c (record_btrace_info): Adjust number of calls
11954 * NEWS: Announce it.
11956 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11958 * record-btrace.c (btrace_call_history_insn_range): Print
11959 insn range as [begin, end].
11961 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11963 * btrace.h (struct btrace_func_link): New.
11964 (enum btrace_function_flag): New.
11965 (struct btrace_inst): Rename to ...
11966 (struct btrace_insn): ...this. Update all users.
11967 (struct btrace_func) <ibegin, iend>: Remove.
11968 (struct btrace_func_link): New.
11969 (struct btrace_func): Rename to ...
11970 (struct btrace_function): ...this. Update all users.
11971 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11972 (number, level, flags>: New.
11973 (struct btrace_insn_iterator): Rename to ...
11974 (struct btrace_insn_history): ...this.
11976 (struct btrace_insn_iterator, btrace_call_iterator): New.
11977 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11978 (struct btrace_target_info) <begin, end, level>
11979 <insn_history, call_history>: New.
11980 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11981 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11982 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11983 (btrace_call_number, btrace_call_begin, btrace_call_end)
11984 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11985 (btrace_find_function_by_number, btrace_set_insn_history)
11986 (btrace_set_call_history): New.
11987 * btrace.c (btrace_init_insn_iterator)
11988 (btrace_init_func_iterator, compute_itrace): Remove.
11989 (ftrace_print_function_name, ftrace_print_filename)
11990 (ftrace_skip_file): Change
11991 parameter to const.
11992 (ftrace_init_func): Remove.
11993 (ftrace_debug): Use new btrace_function fields.
11994 (ftrace_function_switched): Also consider gaining and
11995 losing symbol information).
11996 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11997 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11998 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12000 (ftrace_new_function): Move. Remove debug print.
12001 (ftrace_update_lines, ftrace_update_insns): New.
12002 (ftrace_update_function): Check for call, ret, and jump.
12003 (compute_ftrace): Renamed to ...
12004 (btrace_compute_ftrace): ...this. Rewritten to compute call
12006 (btrace_fetch, btrace_clear): Updated.
12007 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12008 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12009 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12010 (btrace_call_number, btrace_call_begin, btrace_call_end)
12011 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12012 (btrace_find_function_by_number, btrace_set_insn_history)
12013 (btrace_set_call_history): New.
12014 * record-btrace.c (require_btrace): Use new btrace thread
12016 (record_btrace_info, btrace_insn_history)
12017 (record_btrace_insn_history, record_btrace_insn_history_range):
12018 Use new btrace thread info fields and new iterator.
12019 (btrace_func_history_src_line): Rename to ...
12020 (btrace_call_history_src_line): ...this. Use new btrace
12021 thread info fields.
12022 (btrace_func_history): Rename to ...
12023 (btrace_call_history): ...this. Use new btrace thread info
12024 fields and new iterator.
12025 (record_btrace_call_history, record_btrace_call_history_range):
12026 Use new btrace thread info fields and new iterator.
12028 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12030 * frame.h (frame_id_build_unavailable_stack_special): New.
12031 * frame.c (frame_id_build_unavailable_stack_special): New.
12033 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12035 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12036 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12037 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12039 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12040 (i386_insn_is_jump, i386_jmp_p): New.
12041 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12042 insn_is_jump to gdbarch.
12043 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12044 * gdbarch.h: Regenerated.
12045 * gdbarch.c: Regenerated.
12046 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12047 (default_insn_is_jump): New.
12048 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12049 (default_insn_is_jump): New.
12051 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12053 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12055 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12056 (btrace_read_type) <btrace_read_new>: Change to ...
12057 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12059 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12061 * common/linux-btrace.c (linux_read_btrace): Free trace from
12062 previous iteration.
12064 2014-01-15 Doug Evans <dje@google.com>
12066 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12069 2014-01-15 Tom Tromey <tromey@redhat.com>
12071 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12072 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12073 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12074 (set_objfile_main_name): New function.
12075 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12076 language_of_main>: New fields.
12077 (set_objfile_main_name): Declare.
12078 * symtab.c (find_main_name): Loop over objfiles to find the main
12080 (set_main_name): Now static.
12081 (get_main_info): Add comment.
12082 * symtab.h (set_main_name): Don't declare.
12084 2014-01-15 Tom Tromey <tromey@redhat.com>
12086 * symtab.c (main_progspace_key): New global.
12087 (struct main_info): New.
12088 (name_of_main, language_of_main): Remove.
12089 (get_main_info, main_info_cleanup): New function.
12090 (set_main_name, main_name, main_language): Use get_main_info.
12091 (_initialize_symtab): Initialize main_progspace_key.
12093 2014-01-15 Tom Tromey <tromey@redhat.com>
12095 * dbxread.c (process_one_symbol): Update.
12096 * dwarf2read.c (read_partial_die): Update.
12097 * symfile.c (set_initial_language): Call main_language.
12098 * symtab.c (language_of_main): Now static.
12099 (set_main_name): Add 'lang' parameter.
12100 (find_main_name): Update.
12101 (main_language): New function.
12102 (symtab_observer_executable_changed): Update.
12103 * symtab.h (set_main_name): Update.
12104 (language_of_main): Remove.
12105 (main_language): Declare.
12107 2014-01-15 Tom Tromey <tromey@redhat.com>
12109 * symfile.c (init_entry_point_info): Use new "initialized" field.
12111 * objfiles.h (struct entry_point) <initialized>: New field.
12112 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12113 (struct objfile) <ei>: ...here. Remove.
12114 * objfiles.c (entry_point_address_query): Update.
12116 2014-01-15 Tom Tromey <tromey@redhat.com>
12118 * objfiles.c (entry_point_address_query): Relocate entry point
12120 (objfile_relocate1): Do not relocate entry point address.
12121 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12122 <the_bfd_section_index>: New field.
12123 * symfile.c (init_entry_point_info): Find the entry point's
12126 2014-01-15 Tom Tromey <tromey@redhat.com>
12128 * solib-frv.c (enable_break): Use entry_point_address_query.
12130 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12132 * NEWS: Add note on improved process record-replay on
12133 arm*-linux* targets.
12135 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12137 * arm-tdep.c (enum arm_record_result): New enum.
12138 (arm_record_unsupported_insn): New function.
12139 (arm_record_coproc_data_proc): Removed.
12140 (thumb2_record_ld_st_multiple): New function.
12141 (thumb2_record_ld_st_dual_ex_tbb): New function.
12142 (thumb2_record_data_proc_sreg_mimm): New function.
12143 (thumb2_record_ps_dest_generic): New function.
12144 (thumb2_record_branch_misc_cntrl): New function.
12145 (thumb2_record_str_single_data): New function.
12146 (thumb2_record_ld_mem_hints): New function.
12147 (thumb2_record_ld_word): New function.
12148 (thumb2_record_lmul_lmla_div): New function.
12149 (thumb2_record_decode_insn_handler): New function.
12150 (decode_insn): Add thumb32 instruction handlers.
12152 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12154 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12155 (struct arm_linux_record_tdep): Declare.
12156 (arm_canonicalize_syscall): New function.
12157 (arm_all_but_pc_registers_record): New function.
12158 (arm_linux_syscall_record): New function.
12159 (arm_linux_init_abi): Add syscall recording constructs.
12160 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12161 decoding. (arm_record_coproc_data_proc): Update arm syscall
12163 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12164 <arm_syscall_record>: New field.
12165 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12168 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12170 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12171 register for push instruction recording.
12173 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12175 * arm-tdep.c (thumb_record_misc): Update to correct logical
12176 error while recording ldm, ldmia and pop instructions.
12178 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12180 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12182 2014-01-15 Pedro Alves <palves@redhat.com>
12184 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12185 (go32_resume, go32_fetch_registers, store_register)
12186 (go32_store_registers, go32_prepare_to_store)
12187 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12188 (go32_create_inferior, go32_can_run, go32_terminal_init)
12189 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12192 2014-01-15 Tom Tromey <tromey@redhat.com>
12194 * target.h (async_callback_ftype): New typedef.
12195 (struct target_ops) <to_async>: Use it.
12197 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12199 * python/py-value.c (get_field_type): Remove unnecessary curly
12200 braces for single-statement if block.
12202 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12204 * python/py-type.c (convert_field): Add missing empty line
12205 after declarations.
12207 2014-01-14 Doug Evans <dje@google.com>
12209 * symfile.h (expand_symtabs_matching): Renamed from
12210 expand_partial_symbol_names. Update prototype.
12211 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12212 * symfile.c (expand_symtabs_matching): Renamed from
12213 expand_partial_symbol_names. New args file_matcher, kind.
12214 Rename arg fun to symbol_matcher.
12215 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12216 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12217 ada_expand_partial_symbol_name.
12218 (ada_make_symbol_completion_list): Update to call
12219 expand_symtabs_matching.
12220 (ada_add_global_exceptions): Call expand_symtabs_matching.
12221 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12222 call map_symbol_filenames.
12223 * symtab.c (sources_info): Update to call map_symbol_filenames.
12224 (search_symbols): Call expand_symtabs_matching.
12225 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12226 (default_make_symbol_completion_list_break_on): Update to call
12227 expand_symtabs_matching.
12228 (make_source_files_completion_list): Update to call
12229 map_symbol_filenames.
12231 2014-01-14 Doug Evans <dje@google.com>
12233 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12234 (expand_symtabs_symbol_matcher_ftype): New typedef.
12235 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12236 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12237 * symfile.c (expand_partial_symbol_names): Update to use
12238 expand_symtabs_symbol_matcher_ftype.
12239 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12240 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12241 Arg name_matcher renamed to symbol_matcher.
12242 * psymtab.c (recursively_search_psymtabs): Update to use
12243 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12245 (expand_symtabs_matching_via_partial): Update to use
12246 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12247 Arg name_matcher renamed to symbol_matcher.
12249 2014-01-14 Doug Evans <dje@google.com>
12251 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12252 (map_partial_symbol_filenames): Ditto.
12253 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12254 (map_partial_symbol_filenames): Ditto.
12255 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12256 (map_partial_symbol_filenames): Ditto.
12257 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12258 (map_partial_symbol_filenames): Ditto.
12259 * symtab.c: Delete #include "psymtab.h".
12261 2014-01-14 Pedro Alves <palves@redhat.com>
12262 Tom Tromey <tromey@redhat.com>
12264 * infrun.c (use_displaced_stepping): Use find_record_target
12265 instead of RECORD_IS_USED.
12266 (adjust_pc_after_break): Use record_full_is_used instead of
12268 * record-btrace.c (record_btrace_open): Call record_preopen
12269 instead of checking RECORD_IS_USED.
12270 * record-full.c (record_full_shortname)
12271 (record_full_core_shortname): New globals.
12272 (record_full_is_used): New function.
12273 (find_full_open): Call record_preopen instead of checking
12275 (init_record_full_ops): Set the target's shortname to
12276 record_full_shortname.
12277 (init_record_full_core_ops): Set the target's shortname to
12278 record_full_core_shortname.
12279 * record-full.h (record_full_is_used): Declare.
12280 * record.c (find_record_target): Make extern.
12281 (record_preopen): New function.
12282 * record.h (RECORD_IS_USED): Delete macro.
12283 (find_record_target, record_preopen): Declare functions.
12285 2014-01-14 Yao Qi <yao@codesourcery.com>
12287 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12288 'len''s type to ULONGEST.
12289 (core_xfer_shared_libraries_aix): Likewise.
12290 * gdbarch.c, gdbarch.h: Regenerated.
12291 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12292 Change type of 'len' to ULONGEST.
12293 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12294 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12296 2014-01-14 Yao Qi <yao@codesourcery.com>
12298 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12299 type of 'len' to ULONGEST.
12300 (linux_xfer_osdata_processgroups): Likewise.
12301 (linux_xfer_osdata_threads): Likewise.
12302 (linux_xfer_osdata_fds): Likewise.
12303 (linux_xfer_osdata_isockets): Likewise.
12304 (linux_xfer_osdata_shm): Likewise.
12305 (linux_xfer_osdata_sem): Likewise.
12306 (linux_xfer_osdata_msg): Likewise.
12307 (linux_common_xfer_osdata): Likewise.
12308 (struct osdata_type) <getter>: Likewise.
12309 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12312 2014-01-14 Yao Qi <yao@codesourcery.com>
12314 * target.h (target_xfer_partial_ftype): Update.
12315 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12317 * aix-thread.c (aix_thread_xfer_partial): Change type of
12318 argument 'len' to ULONGEST.
12319 * auxv.c (procfs_xfer_auxv): Likewise.
12320 (ld_so_xfer_auxv): Likewise.
12321 (memory_xfer_auxv): Likewise.
12322 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12323 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12324 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12325 * corelow.c (core_xfer_partial): Likewise.
12326 * ctf.c (ctf_xfer_partial): Likewise.
12327 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12329 (darwin_read_dyld_info): Likewise.
12330 (darwin_xfer_partial): Likewise.
12331 * exec.c (section_table_xfer_memory_partial): Likewise.
12332 (exec_xfer_partial): Likewise.
12333 * exec.h (section_table_xfer_memory_partial): Update
12335 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12336 instead of plongest.
12337 (gnu_xfer_partial): Likewise.
12338 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12339 (ia64_hpux_xfer_solib_got): Likewise.
12340 (ia64_hpux_xfer_partial): Likewise.
12341 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12342 * inf-ptrace.c (inf_ptrace_xfer_partial):
12343 * inf-ttrace.c (inf_ttrace_xfer_partial):
12344 * linux-nat.c (linux_xfer_siginfo): Likewise.
12345 (linux_nat_xfer_partial): Likewise.
12346 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12347 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12348 * monitor.c (monitor_xfer_memory): Likewise.
12349 (monitor_xfer_partial): Likewise.
12350 * procfs.c (procfs_xfer_partial): Likewise.
12351 * record-full.c (record_full_xfer_partial): Likewise.
12352 (record_full_core_xfer_partial): Likewise.
12353 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12354 instead of plongest.
12355 (gdbsim_xfer_partial): Likewise.
12356 * remote.c (remote_xfer_partial): Likewise.
12357 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12358 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12360 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12361 (rs6000_xfer_shared_libraries): Likewise.
12362 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12363 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12364 (sparc_xfer_partial): Likewise.
12365 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12366 (spu_xfer_partial): Likewise.
12367 * spu-multiarch.c (spu_xfer_partial): Likewise.
12368 * target.c (target_read_live_memory): Likewise.
12369 (memory_xfer_live_readonly_partial): Likewise.
12370 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12371 (target_xfer_partial, default_xfer_partial): Likewise.
12372 (current_xfer_partial): Likewise.
12373 * tracepoint.c (tfile_xfer_partial): Likewise.
12374 * windows-nat.c (windows_xfer_memory): Likewise. Call
12375 pulongest instead of plongest.
12376 (windows_xfer_partial): Likewise.
12377 (windows_xfer_shared_libraries): Likewise.
12379 2014-01-14 Yao Qi <yao@codesourcery.com>
12381 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12382 target_xfer_partial_ftype.
12384 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12388 * valops.c (value_struct_elt_bitpos): New function
12389 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12390 object to 'None' if the field name is an empty string ("").
12391 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12392 attribute to look for a field when 'name' is 'None'.
12393 (get_field_type): New function
12395 2014-01-13 Doug Evans <dje@google.com>
12398 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12399 (try_open_dwop_file): Ditto.
12400 * gdb_bfd.c: #include "vec.h".
12401 (bfdp): New typedef.
12402 (struct gdb_bfd_data): New member included_bfds.
12403 (gdb_bfd_unref): Unref all included bfds.
12404 (gdb_bfd_record_inclusion): New function.
12405 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12407 2014-01-13 Tom Tromey <tromey@redhat.com>
12409 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12411 2014-01-13 Tom Tromey <tromey@redhat.com>
12413 * defs.h (use_windows): Remove.
12414 * gdb.c (main): Update.
12415 * main.c (captured_main, gdb_main): Update.
12416 * main.h (struct captured_main_args) <use_windows>: Remove.
12417 * top.c (use_windows): Remove.
12419 2014-01-13 Tom Tromey <tromey@redhat.com>
12421 * defs.h (deprecated_flush_hook): Remove.
12423 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12426 * linux-thread-db.c (try_thread_db_load): Add parameter
12427 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12428 (try_thread_db_load_from_pdir_1): Move it there from here.
12429 (try_thread_db_load_from_sdir): Update caller.
12430 (try_thread_db_load_from_dir): Move it there from here.
12432 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12434 * regformats/regdat.sh: Always rewrite the register file.
12436 2014-01-13 Pedro Alves <palves@redhat.com>
12438 * Makefile.in (CHECK_HEADERS): New variable.
12439 (check-headers:): New rule.
12441 2014-01-13 Tom Tromey <tromey@redhat.com>
12443 * cli/cli-setshow.c (do_set_command): Update.
12444 * defs.h (deprecated_set_hook): Remove.
12445 * top.c (deprecated_set_hook): Remove.
12447 2014-01-13 Pedro Alves <palves@redhat.com>
12449 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12450 the tracepoint if the PC is a pseudo-register.
12452 2014-01-13 Tom Tromey <tromey@redhat.com>
12454 * defs.h (XCALLOC): Remove.
12455 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12456 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12457 * dwarf2loc.c (allocate_piece_closure): Likewise.
12458 * elfread.c (elf_symfile_segments): Likewise.
12459 (elf_symfile_segments): Likewise.
12460 * gdbtypes.c (copy_type_recursive): Likewise.
12461 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12462 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12463 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12465 * mt-tdep.c (mt_gdbarch_init): Likewise.
12466 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12468 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12469 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12470 * registry.c (registry_alloc_data): Likewise.
12471 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12472 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12473 * serial.c (serial_fdopen_ops): Likewise.
12474 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12476 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12477 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12480 2014-01-13 Tom Tromey <tromey@redhat.com>
12482 * defs.h (XMALLOC): Remove.
12483 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12484 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12485 * cli-out.c (struct ui_out *): Likewise.
12486 * cli/cli-dump.c (add_dump_command): Likewise.
12487 (add_dump_command): Likewise.
12488 * complaints.c (get_complaints): Likewise.
12489 (find_complaint): Likewise.
12490 * dwarf2-frame.c (execute_cfa_program): Likewise.
12491 * dwarf2read.c (abbrev_table_read_table): Likewise.
12492 * gdbarch.sh: Likewise.
12493 * gdbarch.c: Rebuild.
12494 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12495 * interps.c (interp_new): Likewise.
12496 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12497 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12498 * mi/mi-console.c (mi_console_file_new): Likewise.
12499 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12500 * mi/mi-out.c (mi_out_new): Likewise.
12501 * mi/mi-parse.c (mi_parse): Likewise.
12502 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12503 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12504 * observer.c (xalloc_observer_list_node): Likewise.
12505 * regcache.c (regcache_xmalloc_1): Likewise.
12506 * reggroups.c (reggroup_new): Likewise.
12507 (_initialize_reggroup): Likewise.
12508 * registry.c (register_data_with_cleanup): Likewise.
12509 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12510 * ser-base.c (serial_ttystate): Likewise.
12511 * ser-mingw.c (make_pipe_state): Likewise.
12512 * ser-pipe.c (pipe_open): Likewise.
12513 * serial.c (serial_open): Likewise.
12514 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12515 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12516 (tui_alloc_win_info): Likewise.
12517 (tui_add_content_elements): Likewise.
12518 * tui/tui-file.c (tui_file_new): Likewise.
12519 * tui/tui-out.c (tui_out_new): Likewise.
12520 * ui-file.c (mem_file_new): Likewise.
12521 * ui-out.c (push_level): Likewise.
12522 (make_cleanup_ui_out_end): Likewise.
12523 (append_header_to_list): Likewise.
12524 (ui_out_new): Likewise.
12525 * user-regs.c (user_reg_add_builtin): Likewise.
12527 2014-01-13 Tom Tromey <tromey@redhat.com>
12529 * defs.h (XZALLOC): Remove.
12530 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12531 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12532 (get_ada_tasks_inferior_data): Likewise.
12533 * auto-load.c (get_auto_load_pspace_data): Likewise.
12534 * auxv.c (get_auxv_inferior_data): Likewise.
12535 * bfd-target.c (target_bfd_reopen): Likewise.
12536 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12537 (deprecated_insert_raw_breakpoint): Likewise.
12538 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12539 * corelow.c (core_open): Likewise.
12540 * darwin-nat.c (darwin_check_new_threads): Likewise.
12541 (darwin_attach_pid): Likewise.
12542 * dummy-frame.c (dummy_frame_push): Likewise.
12543 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12544 * dwarf2loc.c (allocate_piece_closure): Likewise.
12545 * elfread.c (elf_symfile_segments): Likewise.
12546 * eval.c (ptrmath_type_p): Likewise.
12547 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12548 * gdbtypes.c (alloc_type_arch): Likewise.
12549 (alloc_type_instance): Likewise.
12550 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12551 * inf-child.c (inf_child_can_use_agent): Likewise.
12552 * inflow.c (get_inflow_inferior_data): Likewise.
12553 * infrun.c (save_infcall_suspend_state): Likewise.
12554 * jit.c (jit_reader_load): Likewise.
12555 (get_jit_objfile_data): Likewise.
12556 (get_jit_program_space_data): Likewise.
12557 (jit_object_open_impl): Likewise.
12558 (jit_symtab_open_impl): Likewise.
12559 (jit_block_open_impl): Likewise.
12560 (jit_frame_sniffer): Likewise.
12561 * linux-fork.c (add_fork): Likewise.
12562 * maint.c (make_command_stats_cleanup): Likewise.
12563 * objfiles.c (get_objfile_pspace_data): Likewise.
12564 * opencl-lang.c (struct lval_closure): Likewise.
12565 * osdata.c (osdata_start_osdata): Likewise.
12566 * progspace.c (new_address_space): Likewise.
12567 (add_program_space): Likewise.
12568 * remote-sim.c (get_sim_inferior_data): Likewise.
12569 * sh-tdep.c (sh_gdbarch_init): Likewise.
12570 * skip.c (Ignore): Likewise.
12571 (skip_delete_command): Likewise.
12572 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12573 (library_list_start_library): Likewise.
12574 (solib_aix_current_sos): Likewise.
12575 * solib-darwin.c (get_darwin_info): Likewise.
12576 (darwin_current_sos): Likewise.
12577 * solib-dsbt.c (get_dsbt_info): Likewise.
12578 * solib-ia64-hpux.c (new_so_list): Likewise.
12579 (ia64_hpux_get_solib_linkage_addr): Likewise.
12580 * solib-spu.c (append_ocl_sos): Likewise.
12581 (spu_current_sos): Likewise.
12582 * solib-svr4.c (get_svr4_info): Likewise.
12583 (svr4_keep_data_in_core): Likewise.
12584 (library_list_start_library): Likewise.
12585 (svr4_default_sos): Likewise.
12586 (svr4_read_so_list): Likewise.
12587 * solib-target.c (library_list_start_library): Likewise.
12588 (solib_target_current_sos): Likewise.
12589 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12590 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12591 * symfile.c (default_symfile_segments): Likewise.
12592 * target-descriptions.c (tdesc_data_init): Likewise.
12593 (tdesc_create_reg): Likewise.
12594 (struct tdesc_type *): Likewise.
12595 (tdesc_create_vector): Likewise.
12596 (tdesc_set_struct_size): Likewise.
12597 (struct tdesc_type *): Likewise.
12598 (tdesc_free_feature): Likewise.
12599 (tdesc_create_feature): Likewise.
12600 * windows-nat.c (windows_add_thread): Likewise.
12601 (windows_make_so): Likewise.
12602 * xml-support.c (gdb_xml_body_text): Likewise.
12603 (gdb_xml_create_parser_and_cleanup): Likewise.
12604 (xml_process_xincludes): Likewise.
12605 * xml-syscall.c (allocate_syscalls_info): Likewise.
12606 (syscall_create_syscall_desc): Likewise.
12608 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12610 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12611 function, with code from i386_stap_parse_special_token.
12612 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12613 (i386_stap_parse_special_token): Move code to the two functions
12614 above; simplify it.
12616 2014-01-09 Pedro Alves <palves@redhat.com>
12617 Hui Zhu <hui@codesourcery.com>
12620 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12621 bp_err_string. Don't mark the location shlib_disabled if the
12622 error thrown wasn't a generic or memory error. Catch errors
12623 thrown while inserting breakpoints in overlayed code. Output
12624 error message of software breakpoints.
12625 * remote.c (remote_insert_breakpoint): If this breakpoint has
12626 target-side commands but this stub doesn't support Z0 packets,
12627 throw NOT_SUPPORTED_ERROR error.
12628 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12629 * target.h (target_insert_breakpoint): Extend comment.
12630 (target_insert_hw_breakpoint): Add comment.
12632 2014-01-08 Pedro Alves <palves@redhat.com>
12634 * remote.c (remote_add_thread): Add threads silently if starting
12636 (remote_notice_new_inferior): If in all-stop, and starting up,
12637 don't call notice_new_inferior.
12638 (get_current_thread): New function, factored out from ...
12639 (add_current_inferior_and_thread): ... this. Adjust.
12640 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12641 found any thread, then select the remote's current thread as GDB's
12642 current thread too.
12644 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12646 * NEWS: Create a new section for the next release branch.
12647 Rename the section of the current branch, now that it has
12650 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12652 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12653 * version.in: Bump version to 7.7.50.DATE-cvs.
12655 2014-01-08 Yao Qi <yao@codesourcery.com>
12657 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12658 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12659 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12661 2014-01-08 Yao Qi <yao@codesourcery.com>
12663 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12664 return value of bfd_get_filename to symbol_file_add_from_bfd.
12666 2014-01-08 Pierre Muller <muller@sourceware.org>
12669 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12670 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12671 to prim_record_mininal_symbol_and_info.
12672 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12673 in call to prim_record_minimal_symbol_and_info.
12674 (read_pe_exported_syms): Set index field of section_data.
12676 2014-01-07 Andrew Pinski <apinski@cavium.com>
12678 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12679 * features/aarch64.c: Regenerate.
12681 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12683 * target.c (return_null): Define.
12684 (update_current_target): Use it instead of return_zero for
12685 functions that return a pointer.
12687 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12689 * source.c (add_path): Fix check for duplicated paths in the previously
12692 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12694 * ada-lang.c: Remove duplicated include statements.
12695 * alphabsd-nat.c: Ditto.
12696 * amd64-darwin-tdep.c: Ditto.
12697 * amd64fbsd-nat.c: Ditto.
12698 * auto-load.c: Ditto.
12700 * breakpoint.c: Ditto.
12701 * dbxread.c: Ditto.
12702 * fork-child.c: Ditto.
12703 * gdb_usleep.c: Ditto.
12704 * i386-darwin-tdep.c: Ditto.
12705 * i386fbsd-nat.c: Ditto.
12707 * inferior.c: Ditto.
12708 * jv-lang.c: Ditto.
12709 * linux-nat.c: Ditto.
12710 * linux-tdep.c: Ditto.
12711 * m68kbsd-nat.c: Ditto.
12712 * m68klinux-nat.c: Ditto.
12713 * microblaze-tdep.c: Ditto.
12714 * mips-linux-tdep.c: Ditto.
12715 * mn10300-tdep.c: Ditto.
12716 * nto-tdep.c: Ditto.
12717 * opencl-lang.c: Ditto.
12719 * printcmd.c: Ditto.
12720 * regcache.c: Ditto.
12721 * remote-m32r-sdi.c: Ditto.
12723 * symfile.c: Ditto.
12725 * tilegx-linux-nat.c: Ditto.
12726 * tilegx-tdep.c: Ditto.
12727 * tracepoint.c: Ditto.
12729 * vaxbsd-nat.c: Ditto.
12730 * windows-nat.c: Ditto.
12731 * xtensa-tdep.c: Ditto.
12733 2014-01-07 Yao Qi <yao@codesourcery.com>
12735 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12737 2014-01-07 Yao Qi <yao@codesourcery.com>
12738 Joel Brobecker <brobecker@adacore.com>
12740 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12741 (pdc_write_regs): Likewise.
12742 (fetch_regs_kernel_thread): Likewise.
12743 (store_regs_kernel_thread): Likewise.
12745 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12747 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12748 tagged type objects to their actual type.
12750 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12752 * ada-valprint.c (print_field_values): Add "language" parameter.
12753 Update calls to print_field_values and print_variant_part.
12754 Pass new parameter "language" in call to val_print instead
12755 of "current_language". Replace call to ada_val_print by call
12757 (print_variant_part): Add "language" parameter.
12758 (ada_val_print_struct_union): Update call to print_field_values.
12760 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12762 * ada-valprint.c (ui_memcpy): Delete.
12763 (ada_print_floating): Update documentation. Add empty line
12764 between between function documentation and implementation.
12765 Delete variable "buffer". Use ui_file_xstrdup in place of
12766 ui_file_put. Minor adjustments following this change.
12768 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12770 * ada-valprint.c (ada_val_print_string): New function,
12771 extracted from ada_val_print_array.
12772 (ada_val_print_array): Replace extracted code by call
12773 to ada_val_print_string followed by a return. Move
12774 "else" branch to the function's top block.
12776 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12778 * ada-valprint.c (ada_val_print_array): Move implementation
12779 down. Rename parameter "offset" and "val" into "offset_aligned"
12780 and "original_value" respectively. Add parameter "offset".
12782 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12784 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12785 re-organizing the code. Change the "???" message printed
12786 when target type is a TYPE_CODE_UNDEF into
12787 "<ref to undefined type>".
12789 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12791 * ada-valprint.c (print_record): Delete, implementation inlined...
12792 (ada_val_print_struct_union): ... here. Remove call to
12793 ada_check_typedef in inlined implementation.
12795 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12797 * ada-valprint.c (ada_val_print_gnat_array): New function,
12798 extracted from ada_val_print_1;
12799 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12800 (ada_val_print_flt, ada_val_print_struct_union)
12801 (ada_val_print_ref): Likewise.
12802 (ada_val_print_1): Delete variables i and elttype.
12803 Replace extracted-out code by call to corresponding
12806 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12808 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12810 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12812 * ada-valprint.c (ada_val_print_1): Replace calls to
12813 ada_val_print_1 by calls to val_print.
12815 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12817 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12818 Update calls to self accordingly. Replace calls to c_val_print
12819 by calls to val_print.
12821 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12823 * ada-valprint.c (print_record): Delete declaration.
12824 (adjust_type_signedness, ada_val_print_1): Likewise.
12825 (ada_val_print): Move function implementation down.
12826 (print_variant_part, print_field_values, print_record):
12827 Move function implementation up.
12829 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12831 * python/py-type.c (typy_get_name): New function.
12832 (type_object_getset): Add entry for attribute "name".
12833 * NEWS: Add entry mentioning this new attribute.
12835 2014-01-07 Yao Qi <yao@codesourcery.com>
12837 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12840 2014-01-07 Yao Qi <yao@codesourcery.com>
12842 * gnu-nat.c (info_port_rights): Add qualifier const to
12845 2014-01-07 Yao Qi <yao@codesourcery.com>
12847 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12849 2014-01-07 Yao Qi <yao@codesourcery.com>
12851 * gnu-nat.c (make_inf) Update declaration.
12852 (make_inf): Make it static.
12853 (inf_set_traced): Likewise.
12854 (inf_port_to_thread, inf_task_died_status): Likewise.
12856 2014-01-07 Yao Qi <yao@codesourcery.com>
12858 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12860 2014-01-07 Yao Qi <yao@codesourcery.com>
12862 * gnu-nat.c (_initialize_gnu_nat): Declare.
12864 2014-01-07 Yao Qi <yao@codesourcery.com>
12866 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12868 (struct gdbarch_info) <byte_order>: Change type to
12870 <byte_order_for_code>: Likewise.
12871 * gdbarch.c, gdbarch.h: Regenerated.
12873 2014-01-06 Sasha Smundak <asmundak@google.com>
12875 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12877 2014-01-06 Tom Tromey <tromey@redhat.com>
12879 * doublest.c (convert_doublest_to_floatformat): Use const, not
12881 * somread.c (som_symtab_read): Likewise.
12883 2014-01-07 Hui Zhu <hui@codesourcery.com>
12885 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12886 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12887 (gdb_bfd_fopen): Ditto.
12888 (gdb_bfd_openr): Ditto.
12889 (gdb_bfd_openw): Ditto.
12890 (gdb_bfd_openr_iovec): Ditto.
12891 (gdb_bfd_fdopenr): Ditto.
12892 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12893 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12895 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12897 * symfile-mem.c (symbol_file_add_from_memory): Removed
12898 gdb_bfd_stash_filename.
12900 2014-01-03 Doug Evans <dje@google.com>
12902 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12905 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12907 Update year range in copyright notice of all files.
12909 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12911 * top.c (print_gdb_version): Set copyright year to 2014.
12913 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12915 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12917 For older changes see ChangeLog-2013.
12923 version-control: never