1 2014-09-12 Gary Benson <gbenson@redhat.com>
3 * common/agent.c: Include common-defs.h.
4 Don't include defs.h or server.h.
5 * common/buffer.c: Likewise.
6 * common/common-debug.c: Likewise.
7 * common/common-utils.c: Likewise.
8 * common/errors.c: Likewise.
9 * common/filestuff.c: Likewise.
10 * common/format.c: Likewise.
11 * common/gdb_vecs.c: Likewise.
12 * common/print-utils.c: Likewise.
13 * common/ptid.c: Likewise.
14 * common/rsp-low.c: Likewise.
15 * common/signals.c: Likewise.
16 * common/vec.c: Likewise.
17 * common/xml-utils.c: Likewise.
18 * nat/linux-osdata.c: Likewise.
19 * nat/linux-procfs.c: Likewise.
20 * nat/linux-ptrace.c: Likewise.
21 * nat/mips-linux-watch.c: Likewise.
22 * target/waitstatus.c: Likewise.
24 2014-09-12 Tom Tromey <tromey@redhat.com>
25 Gary Benson <gbenson@redhat.com>
27 * common/common-regcache.h: New file.
28 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
29 * regcache.h: Include common-regcache.h.
30 (regcache_read_pc): Don't declare.
31 * regcache.c (get_thread_regcache_for_ptid): New function.
32 * nat/linux-btrace.c: Don't include regcache.h.
33 Include common-regcache.h.
34 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
36 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
38 * regcache.h (struct regset): Declare.
40 2014-09-11 Pedro Alves <palves@redhat.com>
43 * main.c: Include "infrun.h".
44 (catch_command_errors, catch_command_errors_const): Wait for the
45 foreground command to complete.
46 * top.c (maybe_wait_sync_command_done): New function, factored out
48 (maybe_wait_sync_command_done): ... here.
49 * top.h (maybe_wait_sync_command_done): New declaration.
51 2014-09-11 Tom Tromey <tromey@redhat.com>
52 Gary Benson <gbenson@redhat.com>
54 * common/symbol.h: New file.
55 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
56 * minsyms.c (find_minimal_symbol_address): New function.
57 * common/agent.c: Include common/symbol.h.
58 [!GDBSERVER]: Don't include objfiles.h.
59 (agent_look_up_symbols): Use find_minimal_symbol_address.
61 2014-09-11 Gary Benson <gbenson@redhat.com>
63 * target/target.h (target_stop_ptid, target_continue_ptid):
65 * target.c (target_stop_ptid, target_continue_ptid): New
67 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
68 (agent_run_command): Always use target_stop_ptid and
71 2014-09-11 Tom Tromey <tromey@redhat.com>
72 Gary Benson <gbenson@redhat.com>
74 * target/target.h: New file.
75 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
76 * target.h: Include target/target.h.
77 (target_read_memory, target_write_memory): Don't declare.
78 * target.c (target_read_uint32): New function.
79 * common/agent.c: Include target/target.h.
80 [!GDBSERVER]: Don't include target.h.
81 (helper_thread_id): Type changed to uint32_t.
82 (agent_get_helper_thread_id): Use target_read_uint32.
83 (agent_run_command): Always use target_read_memory and
85 (agent_capability): Type changed to uint32_t.
86 (agent_capability_check): Use target_read_uint32.
88 2014-09-11 Gary Benson <gbenson@redhat.com>
90 * common/common-debug.h (show_debug_regs): Declare.
91 * common/common-debug.c (show_debug_regs): Define.
92 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
93 all uses with show_debug_regs. Replace all uses that considered
94 debug_hw_points as a multi-value integer with straight boolean
96 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
98 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
99 all uses with show_debug_regs.
100 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
101 uses with show_debug_regs.
103 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
105 * findvar.c (address_from_register): Handle targets requiring
106 a special conversion routine even for plain pointer types.
108 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
110 * rs6000-nat.c (exec_one_dummy_insn): Remove.
111 (store_register): Do not call exec_one_dummy_insn.
113 2014-09-10 Joel Brobecker <brobecker@adacore.com>
115 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
116 dereference it first. Use value_enclosing_type instead of
118 (ada_array_length): Likewise.
120 2014-09-10 Joel Brobecker <brobecker@adacore.com>
122 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
123 Adjust function implementation and documentation accordingly.
124 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
125 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
126 Update call to ada_value_ptr_subscript.
128 2014-09-10 Joel Brobecker <brobecker@adacore.com>
130 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
131 instead of VAL's type.
133 2014-09-10 Joel Brobecker <brobecker@adacore.com>
135 * amd64-linux-nat.c: Add <sys/uio.h> #include.
137 2014-09-09 Doug Evans <xdje42@gmail.com>
140 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
141 last parameter to pkg-config, not first.
142 * configure.ac: Pass --with-guile provided pkg-config path to
143 GDB_GUILE_PROGRAM_NAMES.
144 * configure: Regenerate.
146 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
148 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
151 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
153 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
154 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
155 the list of sections determining GDB_OSABI_IRIX.
157 2014-09-09 James Hogan <james.hogan@imgtec.com>
159 * MAINTAINERS (Write After Approval): Add "James Hogan".
161 2014-09-09 James Hogan <james.hogan@imgtec.com>
163 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
165 2014-09-09 Joel Brobecker <brobecker@adacore.com>
167 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
169 2014-09-08 Doug Evans <xdje42@gmail.com>
172 * guile.c: #include <signal.h>.
173 (_initialize_guile): Block SIGCHLD while initializing Guile.
175 Replaces the following, which is reverted.
177 2014-07-26 Doug Evans <xdje42@gmail.com>
180 * configure.ac: Add check for header gc/gc.h.
181 Add check for function setenv.
182 * configure: Regenerate.
183 * config.in: Regenerate.
184 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
186 2014-09-08 Doug Evans <xdje42@gmail.com>
188 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
189 with named constant. Fix style of pointer comparison.
190 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
192 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
195 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
196 decide whether we display the command on "show user".
197 * cli/cli-script.c (show_user_1): Only verify cmdlines after
198 printing command name.
199 * cli/cli-decode.h (cli_user_command_p): Declare new function.
200 * cli/cli-decode.c (cli_user_command_p): Create helper function
201 to verify whether cmd_list_element is a user-defined command.
203 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
206 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
207 Fix goto out of TRY_CATCH.
209 2014-09-06 Doug Evans <xdje42@gmail.com>
210 Tom Tromey <tromey@redhat.com>
213 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
214 $_any_caller_matches.
215 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
216 * python/lib/gdb/function/caller_is.py: New file.
218 2014-09-06 Doug Evans <xdje42@gmail.com>
220 * infcmd.c (program_info): Fix typo.
222 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
225 * stap-probe.c (stap_parse_single_operand): Delete unused variable
226 'number'. New variable 'has_digit'. Rewrite code to deal with
227 subexpressions on SDT probes.
229 2014-09-04 Pedro Alves <palves@redhat.com>
231 * c-exp.y (parse_number): Skip handling base-switching prefixes if
232 the input is only one character long.
234 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
237 * f-valprint.c (f_val_print): Specify the correct print option to
238 use when printing integer values.
240 2014-09-04 Gary Benson <gbenson@redhat.com>
242 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
243 Remove code to cope with LWPs wrapped as PIDs.
244 Add assertions to ensure no wrapped LWPs are passed.
246 2014-09-04 Pedro Alves <palves@redhat.com>
248 * value.c (value_ranges_copy_adjusted): New function, factored out
250 (value_contents_copy_raw): ... here.
251 (unpack_value_bits_as_long_1): Rename back to ...
252 (unpack_bits_as_long): ... this. Remove 'original_value' and
253 'result' parameters. Change return type to LONGEST.
254 (unpack_value_bits_as_long): Delete.
255 (unpack_value_field_as_long_1): Delete.
256 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
257 (unpack_value_bitfield): New function.
258 (value_field_bitfield): Reimplement using unpack_value_bitfield.
259 (value_fetch_lazy): Use unpack_value_bitfield.
260 * value.h (unpack_value_bits_as_long): Delete declaration.
262 2014-09-03 Sasha Smundak <asmundak@google.com>
264 * python/py-frame.c (frapy_read_register): New function.
266 2014-09-03 James Hogan <james.hogan@imgtec.com>
268 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
269 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
271 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
274 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
276 (add_cmd): Set "completer_handle_brkchars" to NULL.
277 * cli/cli-decode.h (struct cmd_list_element)
278 <completer_handle_brkchars>: New field.
279 * command.h (completer_ftype_void): New typedef.
280 (set_cmd_completer_handle_brkchars): New prototype.
281 * completer.c (set_gdb_completion_word_break_characters): New
283 (complete_line_internal): Call "completer_handle_brkchars"
284 callback from command.
285 * completer.h: Include "command.h".
286 (set_gdb_completion_word_break_characters): New prototype.
287 * python/py-cmd.c (cmdpy_completer_helper): New function.
288 (cmdpy_completer_handle_brkchars): New function.
289 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
290 (cmdpy_init): Set completer_handle_brkchars to
291 cmdpy_completer_handle_brkchars.
293 2014-09-03 Gary Benson <gbenson@redhat.com>
295 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
296 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
297 Loop conditions changed to equivalent form.
298 (struct x86_debug_reg_state): Updated dr_ref_count comment.
299 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
300 ALL_DEBUG_ADDRESS_REGISTERS.
302 2014-09-03 Joel Brobecker <brobecker@adacore.com>
304 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
307 2014-09-02 Doug Evans <dje@google.com>
309 * typeprint.c (find_global_typedef): Fix comment.
311 2014-09-02 Gary Benson <gbenson@redhat.com>
313 * i386-nat.h: Renamed as...
314 * x86-nat.h: New file. All type, function and variable name
315 prefixes changed from "i386_" to "x86_". All references updated.
316 * i386-nat.c: Renamed as...
317 * x86-nat.c: New file. All type, function and variable name
318 prefixes changed from "i386_" to "x86_". All references updated.
319 * common/i386-xstate.h: Renamed as...
320 * common/x86-xstate.h: New file. All type, function and variable
321 name prefixes changed from "i386_" to "x86_". All references
323 * nat/i386-cpuid.h: Renamed as...
324 * nat/x86-cpuid.h: New file. All type, function and variable name
325 prefixes changed from "i386_" to "x86_". All references updated.
326 * nat/i386-gcc-cpuid.h: Renamed as...
327 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
328 name prefixes changed from "i386_" to "x86_". All references
330 * nat/i386-dregs.h: Renamed as...
331 * nat/x86-dregs.h: New file. All type, function and variable name
332 prefixes changed from "i386_" to "x86_". All references updated.
333 * nat/i386-dregs.c: Renamed as...
334 * nat/x86-dregs.c: New file. All type, function and variable name
335 prefixes changed from "i386_" to "x86_". All references updated.
337 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
339 * varobj.c (_initialize_varobj): Move to the end of file.
341 2014-08-29 Gary Benson <gbenson@redhat.com>
343 * common/common-exceptions.h: New file.
344 * common/common-exceptions.c: Likewise.
345 * Makefile.in (SFILES): Add common/common-exceptions.c.
346 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
347 (COMMON_OBS): Add common-exceptions.o.
348 (common-exceptions.o): New rule.
349 * exceptions.h (common-exceptions.h): Include.
350 (gdb_setjmp.h): Do not include.
351 (return_reason): Moved to common-exceptions.h.
352 (enum return_reason): Likewise.
353 (RETURN_MASK): Likewise.
354 (typedef return_mask): Likewise.
355 (enum errors): Likewise.
356 (struct gdb_exception): Likewise.
357 (exceptions_state_mc_init): Likewise.
358 (exceptions_state_mc_action_iter): Likewise.
359 (exceptions_state_mc_action_iter_1): Likewise.
360 (TRY_CATCH): Likewise.
361 (throw_exception): Likewise.
362 (throw_verror): Likewise.
363 (throw_vquit): Likewise.
364 (throw_error): Likewise.
365 (throw_quit): Likewise.
366 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
367 (enum catcher_action): Likewise.
368 (struct catcher): Likewise.
369 (current_catcher): Likewise.
370 (catcher_list_size): Likewise.
371 (exceptions_state_mc_init): Likewise.
372 (catcher_pop): Likewise.
373 (exceptions_state_mc): Likewise.
374 (exceptions_state_mc_action_iter): Likewise.
375 (exceptions_state_mc_action_iter_1): Likewise.
376 (throw_exception): Likewise.
377 (exception_messages): Likewise.
378 (exception_messages_size): Likewise.
379 (throw_it): Likewise.
380 (throw_verror): Likewise.
381 (throw_vquit): Likewise.
382 (throw_error): Likewise.
383 (throw_quit): Likewise.
384 (prepare_to_throw_exception): New function.
386 2014-08-29 Gary Benson <gbenson@redhat.com>
388 * common/gdb_setjmp.h: New file.
389 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
390 * configure.ac: Move sigsetjmp check...
391 * common/common.m4: ...here.
392 * configure: Regenerate.
393 * cp-support.c (SIGJMP_BUF): Delete.
394 (SIGSETJMP): Likewise.
395 (SIGLONGJMP): Likewise.
396 * exceptions.h (gdb_setjmp.h): Include.
397 (setjmp.h): Do not include.
398 (EXCEPTIONS_SIGJMP_BUF): Delete.
399 (EXCEPTIONS_SIGSETJMP): Likewise.
400 (EXCEPTIONS_SIGLONGJMP): Likewise.
401 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
403 * exceptions.c: Likewise.
405 2014-08-29 Gary Benson <gbenson@redhat.com>
407 * cleanups.h: Moved to...
408 * common/cleanups.h: New file.
409 * cleanups.c: Moved to...
410 * common/cleanups.c: New file. Include common-defs.h and
411 cleanups.h. Do not include defs.h.
412 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
413 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
414 (cleanups.o): New rule.
416 2014-08-29 Gary Benson <gbenson@redhat.com>
418 * common/errors.h (internal_warning): New declaration.
419 (internal_vwarning): Likewise.
420 * common/errors.c (internal_warning): New function.
421 * utils.h (internal_warning): Don't declare.
422 (internal_vwarning): Likewise.
423 * utils.c (internal_warning): Removed.
425 2014-08-29 Gary Benson <gbenson@redhat.com>
427 * main.c (captured_main): Use warning during startup.
428 Prefix startup warning messages with command name.
430 2014-08-29 Gary Benson <gbenson@redhat.com>
432 * main.c (captured_main): Handle usage errors with error.
434 2014-08-29 Gary Benson <gbenson@redhat.com>
436 * go32-nat.c (go32_create_inferior): Replace a fprintf/
437 exit pair with a call to error. Wrap the message with _().
439 2014-08-29 Gary Benson <gbenson@redhat.com>
441 * main.c (captured_main): Replace a fprintf/exit
442 pair with a call to error. Wrap the message with _().
444 2014-08-29 Gary Benson <gbenson@redhat.com>
446 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
447 pairs with calls to error. Wrap the message with _().
449 2014-08-29 Gary Benson <gbenson@redhat.com>
451 * utils.c (vwarning): Protect calls to target_terminal_ours
454 2014-08-29 Gary Benson <gbenson@redhat.com>
456 * exceptions.c (print_flush): Protect calls to
457 target_terminal_ours and wrap_here.
459 2014-08-29 Gary Benson <gbenson@redhat.com>
461 * utils.h (filtered_printing_initialized): New declaration.
462 * utils.c (abort_with_message): New function.
463 (internal_vproblem): Use abort_with_message for first level
464 recursive internal problems, and if gdb_stderr is not set up.
465 Protect calls to target_terminal_ours, begin_line and query.
467 2014-08-28 Doug Evans <dje@google.com>
469 * symtab.c (in_prologue): Move definition to better spot.
470 (skip_prologue_using_sal): Ditto.
472 2014-08-28 Doug Evans <dje@google.com>
474 * symtab.c (find_function_start_sal): Move definition to better spot.
476 2014-08-28 Yao Qi <yao@codesourcery.com>
478 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
479 found_stack_adjust in forward scan. Remove condition check
480 on found_stack_adjust which is always true. Indent the code.
482 2014-08-28 Yao Qi <yao@codesourcery.com>
484 * dwarf2read.c (dwarf_decode_lines): Update declaration.
485 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
486 (dwarf_decode_lines): Remove argument
487 want_line_info. Remove condition check on want_line_info.
490 2014-08-27 Doug Evans <dje@google.com>
492 * dwarf2read.c (dwarf_record_line): Fix typo.
494 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
496 * target.h (struct target_ops::to_terminal_save_ours): Remove
498 (target_terminal_save_ours): Remove macro.
499 * target-delegates.c: Regenerate.
500 * inf-child.c (inf_child_target): Don't set the nonexistent
501 field to_terminal_save_ours.
502 * inferior.h (child_terminal_save_ours): Remove declaration.
503 * terminal.h (gdb_save_tty_state): New declaration.
504 * inflow.c (child_terminal_save_ours): Rename to ...
505 (gdb_save_tty_state): ... this.
506 * tui/tui.c: Include terminal.h.
507 (tui_enable): Use gdb_save_tty_state instead of
508 target_terminal_save_ours.
509 (tui_disable): Likewise.
511 2014-08-25 Doug Evans <dje@google.com>
513 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
514 Pass NULL instead of 0 for context pointer.
516 2014-08-25 Yao Qi <yao@codesourcery.com>
518 * dwarf2read.c: Fix grammatical error.
520 2014-08-24 Yao Qi <yao@codesourcery.com>
522 * dwarf2read.c (scan_partial_symbols): Update comments.
523 Rename argument 'need_pc' with 'set_addrmap'.
524 (add_partial_namespace): Rename argument 'need_pc' with
526 (add_partial_module): Likewise.
527 (add_partial_subprogram): Likewise. Update comments.
528 (dwarf2_name): Fix typo.
530 2014-08-22 Doug Evans <dje@google.com>
533 * dwarf2read.c (dwarf_record_line_p): New function.
534 (dwarf_decode_lines_1): Ignore subsequent line number entries
535 for the same line if any entry had a non-zero discriminator.
537 2014-08-22 Doug Evans <dje@google.com>
539 * buildsym.h (record_line_ftype): New typedef.
540 (record_line): Use it.
541 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
542 (dwarf_decode_lines_1): Call them.
544 2014-08-22 Yao Qi <yao@codesourcery.com>
546 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
547 (ctf_end): Remove code.
549 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
551 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
552 (linux_make_corefile_notes): call update_thread_list, protected against
555 2014-08-21 Pedro Alves <palves@redhat.com>
557 * infcmd.c (attach_command): Remove comment.
559 2014-08-21 Bin Cheng <bin.cheng@arm.com>
561 * aarch64-linux-nat.c (dr_changed_t): Change the type from
562 unsigned LONGEST to ULONGEST.
564 2014-08-20 Pedro Alves <palves@redhat.com>
566 * Makefile.in (check-read1): New rule.
568 2014-08-20 Joel Brobecker <brobecker@adacore.com>
570 * value.c (value_from_contents_and_address): Strip resolved_type's
571 typedef layers before checking its TYPE_DATA_LOCATION.
573 2014-08-20 Pedro Alves <palves@redhat.com>
575 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
577 2014-08-20 Yao Qi <yao@codesourcery.com>
579 * amd64-tdep.c (amd64_classify): Add a blank line after the
580 example. Move "*/" to a new line.
581 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
582 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
583 * dwarf2read.c (psymtab_include_file_name): Likewise.
585 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
586 Pedro Alves <palves@redhat.com>
590 * ada-lang.c (coerce_unspec_val_to_type): Use
591 value_contents_copy_raw.
592 * ada-valprint.c (val_print_packed_array_elements): Adjust.
593 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
594 * cp-valprint.c (cp_print_value_fields): Let the common printing
595 code handle optimized out values.
596 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
597 * d-valprint.c (dynamic_array_type): Use
598 value_bits_any_optimized_out.
599 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
600 check_any_valid fields.
601 (check_pieced_value_bits): Delete and inline ...
602 (check_pieced_synthetic_pointer): ... here.
603 (check_pieced_value_validity): Delete.
604 (check_pieced_value_invalid): Delete.
605 (pieced_value_funcs): Remove check_validity and check_any_valid
607 (read_pieced_value): Use mark_value_bits_optimized_out.
608 (write_pieced_value): Switch to use
609 mark_value_bytes_optimized_out.
610 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
611 of assuming the whole value is optimized out.
612 * findvar.c (read_frame_register_value): Remove special handling
613 of optimized out registers.
614 (value_from_register): Use mark_value_bytes_optimized_out.
615 * frame-unwind.c (frame_unwind_got_optimized): Use
616 mark_value_bytes_optimized_out.
617 * jv-valprint.c (java_value_print): Adjust.
618 (java_print_value_fields): Let the common printing code handle
619 optimized out values.
620 * mips-tdep.c (mips_print_register): Remove special handling of
621 optimized out registers.
622 * opencl-lang.c (lval_func_check_validity): Delete.
623 (lval_func_check_any_valid): Delete.
624 (opencl_value_funcs): Remove check_validity and check_any_valid
626 * p-valprint.c (pascal_object_print_value_fields): Let the common
627 printing code handle optimized out values.
628 * stack.c (read_frame_arg): Remove special handling of optimized
629 out values. Fetch both VAL and ENTRYVAL before comparing
630 contents. Adjust to value_available_contents_eq rename.
631 * valprint.c (valprint_check_validity)
632 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
633 (val_print_array_elements): Adjust.
634 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
635 (value_bits_any_optimized_out): New function.
636 (value_entirely_covered_by_range_vector): New function, factored
637 out from value_entirely_unavailable.
638 (value_entirely_unavailable): Reimplement.
639 (value_entirely_optimized_out): New function.
640 (insert_into_bit_range_vector): New function, factored out from
641 mark_value_bits_unavailable.
642 (mark_value_bits_unavailable): Reimplement.
643 (struct ranges_and_idx): New struct.
644 (find_first_range_overlap_and_match): New function, factored out
645 from value_available_contents_bits_eq.
646 (value_available_contents_bits_eq): Rename to ...
647 (value_contents_bits_eq): ... this. Check both unavailable
648 contents and optimized out contents.
649 (value_available_contents_eq): Rename to ...
650 (value_contents_eq): ... this.
651 (allocate_value_lazy): Remove reference to the old optimized_out
653 (allocate_optimized_out_value): Use
654 mark_value_bytes_optimized_out.
655 (require_not_optimized_out): Adjust to check whether the
656 optimized_out vec is empty.
657 (ranges_copy_adjusted): New function, factored out from
658 value_contents_copy_raw.
659 (value_contents_copy_raw): Also copy the optimized out ranges.
660 Assert the destination ranges aren't optimized out.
661 (value_contents_copy): Update comment, remove call to
662 require_not_optimized_out.
663 (value_contents_equal): Adjust to check whether the optimized_out
665 (set_value_optimized_out, value_optimized_out_const): Delete.
666 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
668 (value_entirely_optimized_out, value_bits_valid): Delete.
669 (value_copy): Take a VEC copy of the 'optimized_out' field.
670 (value_primitive_field): Remove special handling of optimized out.
671 (value_fetch_lazy): Assert that lazy values have no unavailable
672 regions. Use value_bits_any_optimized_out. Remove some special
673 handling for optimized out values.
674 * value.h: Add intro comment about <optimized out> and
676 (struct lval_funcs): Remove check_validity and check_any_valid
678 (set_value_optimized_out, value_optimized_out_const): Remove.
679 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
681 (value_bits_any_optimized_out): New declaration.
682 (value_bits_valid): Delete declaration.
683 (value_available_contents_eq): Rename to ...
684 (value_contents_eq): ... this, and extend comments.
686 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
688 Fix -fsanitize=address on unreadable inferior strings.
689 * valprint.c (val_print_string): Fix access before BUFFER.
691 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
693 * target.c (target_struct_size): Remove.
694 (target_struct_allocsize): Remove.
695 (DEFAULT_ALLOCSIZE): Remove.
696 (target_ops_p): New typedef.
697 (DEF_VEC_P (target_ops_p)): New vector type.
698 (target_structs): Change type to VEC (target_ops_p).
699 (add_target_with_completer): Replace "push" code by VEC_safe_push.
700 (find_default_run_target): Rewrite for loop following changes to
703 2014-08-19 Joel Brobecker <brobecker@adacore.com>
705 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
706 Adjust code accordingly. Adjust function description comment.
708 2014-08-19 Yao Qi <yao@codesourcery.com>
710 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
713 2014-08-19 Alan Modra <amodra@gmail.com>
715 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
716 * config.in: Regenerate.
717 * configure: Regenerate.
719 2014-08-19 Tom Tromey <tromey@redhat.com>
720 Gary Benson <gbenson@redhat.com>
722 * common/common-debug.h: New file.
723 * common/common-debug.c: Likewise.
725 * Makefile.in (SFILES): Add common/common-debug.c.
726 (HFILES_NO_SRCDIR): Add common/common-debug.h.
727 (COMMON_OBS): Add common-debug.o and debug.o.
728 (common-debug.o): New rule.
729 * common/common-defs.h: Include common-debug.h.
730 * common/agent.c (debug_agent_printf): New function.
731 (DEBUG_AGENT): Redefine.
732 * nat/i386-dregs.c (debug_printf): Undefine.
734 2014-08-19 Gary Benson <gbenson@redhat.com>
736 * common/common-defs.h: Include print-utils.h.
737 * utils.h: Do not include print-utils.h.
739 2014-08-19 Tom Tromey <tromey@redhat.com>
740 Gary Benson <gbenson@redhat.com>
742 * common/common-types.h: New file.
743 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
744 * common/common-defs.h: Include common-types.h.
745 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
748 2014-08-19 Tom Tromey <tromey@redhat.com>
749 Gary Benson <gbenson@redhat.com>
751 * common/errors.h: New file.
752 * common/errors.c: Likewise.
753 * Makefile.in (SFILES): Add common/errors.c.
754 (HFILES_NO_SRCDIR): Add common/errors.h.
755 (COMMON_OBS): Add errors.o.
756 (errors.o): New rule.
757 * common/common-defs.h: Include errors.h.
758 * utils.h (perror_with_name, error, verror, warning, vwarning):
760 * common/common-utils.h: (malloc_failure, internal_error):
763 2014-08-19 Gary Benson <gbenson@redhat.com>
765 * utils.c (internal_vproblem): Always print the message.
767 2014-08-18 Doug Evans <dje@google.com>
769 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
771 2014-08-18 Joel Brobecker <brobecker@adacore.com>
773 * ada-typeprint.c (type_is_full_subrange_of_target_type):
774 Return 0 if TYPE is dynamic.
775 (print_range): Add handling of dynamic ranges.
777 2014-08-18 Keven Boell <keven.boell@intel.com>
778 Joel Brobecker <brobecker@adacore.com>
780 * gdbtypes.h (struct main_type): Add field "data_location".
781 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
782 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
783 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
784 a dynamic data location.
785 (resolve_dynamic_type): Add DW_AT_data_location handling.
786 (copy_recursive, copy_type): Copy the data_location information
788 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
789 * value.c (value_from_contents_and_address): Add
790 DW_AT_data_location handling.
792 2014-08-18 Keven Boell <keven.boell@intel.com>
793 Joel Brobecker <brobecker@adacore.com>
795 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
796 field "get_object_address".
797 * dwarf2expr.c (execute_stack_op): Add handling for
798 DW_OP_push_object_address.
799 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
800 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
801 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
802 (dwarf_expr_get_obj_addr): New function.
803 (dwarf_expr_ctx_funcs): Add get_object_address field.
804 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
805 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
806 (dwarf2_evaluate_property): Add parameter "address". Use it.
807 (needs_get_obj_addr): New function.
808 (needs_frame_ctx_funcs): Add get_object_address field.
809 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
810 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
811 (resolve_dynamic_array): Likewise.
813 2014-08-18 Joel Brobecker <brobecker@adacore.com>
815 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
816 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
817 fixed value for records and unions for which some GNAT encodings
820 2014-08-18 Joel Brobecker <brobecker@adacore.com>
822 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
823 rewrite to avoid "else if" and "else" constructs. Should be
826 2014-08-18 Joel Brobecker <brobecker@adacore.com>
828 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
831 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
834 * eval.c: Update all calls to find_overload_match.
835 * valarith.c: Likewise.
836 (value_user_defined_cpp_op, value_user_defined_op): New
837 argument NOSIDE. Update all callers.
838 * valops.c (find_overload_match): New argument NOSIDE.
839 * value.h (find_overload_match): Update signature.
841 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
843 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
844 'items' methods instead of 'iteritems' method on dictionaries.
846 2014-08-15 Doug Evans <dje@google.com>
848 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
851 2014-08-15 Doug Evans <dje@google.com>
853 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
855 2014-08-15 Doug Evans <dje@google.com>
857 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
859 2014-08-15 Doug Evans <dje@google.com>
861 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
864 2014-08-15 Eli Zaretskii <eliz@gnu.org>
866 * dcache.h: Include target.h, to avoid compile time warnings.
868 2014-08-15 Joel Brobecker <brobecker@adacore.com>
870 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
871 frame_info" partial declaration.
872 * gdbarch.h: Regenerate.
874 2014-08-15 Yao Qi <yao@codesourcery.com>
876 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
877 Add parameter 'decode_for_pst_p'. Callers update.
879 2014-08-13 Yao Qi <yao@codesourcery.com>
882 * configure.ac: Use local variable 'pos'.
883 * configure: Regenerated.
885 2014-08-11 Doug Evans <dje@google.com>
887 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
888 message, it is redundant with "Reading symbols from ..." message.
890 2014-08-10 Doug Evans <xdje42@gmail.com>
892 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
894 2014-08-09 Yao Qi <yao@codesourcery.com>
897 * remote.c (remote_xfer_partial): Remove dead code.
899 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
901 * ia64-linux-tdep.c: Include "regset.h".
902 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
903 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
904 (ia64_linux_supply_fpregset): New function.
905 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
906 (ia64_linux_regset_from_core_section): New function.
907 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
910 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
912 * m68klinux-tdep.c: Include "regset.h".
913 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
914 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
915 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
916 (m68k_linux_regset_from_core_section): New function.
917 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
920 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
922 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
923 function. Move logic to...
924 (tilegx_linux_regmap): ... this new register map.
925 (tilegx_linux_regset): Refer to register map, replace supply
926 method by regcache_supply_regset, and add collect method.
927 * tilegx-tdep.h (enum tilegx_regnum): New enum value
928 TILEGX_FIRST_EASY_REGNUM.
930 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
932 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
933 that calls regcache_supply_regset and handles the EPC register
934 separately. Move main logic to...
935 (score7_linux_gregmap): ... this new register map.
936 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
937 (score7_linux_gregset): Refer to register map. Add collect method.
938 (score7_linux_regset_from_core_section): Replace
939 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
940 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
941 (struct regset): Delete unused forward declaraction.
942 (struct pt_regs): Delete structure definition.
943 (elf_gregset_t): Delete typedef.
945 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
947 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
948 (nios2_core_regset): Add collect method.
950 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
952 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
953 platform-independent and don't write to read-only input buffer.
954 (m32r_linux_collect_gregset): New function.
955 (m32r_linux_gregset): Add collect method.
957 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
959 * hppa-linux-tdep.c (greg_map): Rename to...
960 (hppa_linux_gregmap): ... this. Also convert to
961 regcache_map_entry format.
962 (hppa_linux_supply_regset): Delete function.
963 (hppa_linux_supply_fpregset): Delete function. Move logic to...
964 (hppa_linux_fpregmap): ... this new register map.
965 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
966 register map, replace supply method by regcache_supply_regset, and
967 add collect method regcache_collect_regset.
969 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
971 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
972 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
973 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
974 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
975 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
976 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
977 (frv_linux_supply_gregset): Replace main logic by call to
978 regcache_supply_regset, but keep clearing gr32-gr63.
979 (frv_linux_supply_fpregset): Delete function.
980 (frv_linux_gregset): Refer to appropriate register map and add
981 regcache_collect_regset as the collect method.
982 (frv_linux_fpregset): Likewise. Also exchange the supply method
983 by regcache_supply_regset.
985 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
987 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
988 by call to alpha_supply_int_regs.
989 (alpha_linux_collect_gregset): New function.
990 (alpha_linux_supply_fpregset): Replace logic by call to
991 alpha_supply_fp_regs.
992 (alpha_linux_collect_fpregset): New function.
993 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
995 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
997 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
998 by call to regcache_collect_regset.
999 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1000 instead of aarch64_linux_supply_gregset/_fpregset.
1001 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1002 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1003 header file instead.
1004 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1005 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1006 functions. Move logic to ...
1007 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1009 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1010 refer to new register maps, replace *_regset_from_core by
1011 regcache_supply_regset, and also use regcache_collect_regset.
1012 * aarch64-linux-tdep.h: Include "regset.h".
1013 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1015 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1016 macros, moved from C source file.
1017 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1018 variable declarations.
1020 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1022 * s390-linux-nat.c: Include "regset.h".
1023 (regmap_gregset): Delete macro.
1024 (s390_64_regmap_gregset): New register map for
1025 regcache_supply/_collect_regset.
1026 (s390_64_gregset): New regset.
1027 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1028 (regmap_fpregset): Delete macro.
1029 (s390_native_supply, s390_native_collect): Delete functions.
1030 (supply_gregset, fill_gregset): Replace s390-specific regmap
1031 handling by a call to regcache_supply/_collect_regset.
1032 (supply_fpregset, fill_fpregset): Call regcache_supply/
1033 _collect_regset instead of s390_native_supply/_collect.
1034 (fetch_regset, store_regset): Likewise. Also change the last
1035 parameter to a regset instead of a regmap.
1036 (s390_linux_fetch_inferior_registers)
1037 (390_linux_store_inferior_registers): Adjust last parameter in
1038 calls to fetch_regset and store_regset.
1039 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1040 (s390_gregmap): ... this. Also make static const and convert to
1041 regcache_map_entry format.
1042 (s390x_regmap_gregset): Delete.
1043 (s390_regmap_fpregset): Rename to...
1044 (s390_fpregmap): ... this. Make static const and convert to
1045 regcache_map_entry format.
1046 (s390_regmap_upper, s390_regmap_last_break)
1047 (s390x_regmap_last_break, s390_regmap_system_call)
1048 (s390_regmap_tdb): Likewise.
1049 (s390_supply_regset, s390_collect_regset): Remove functions.
1050 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1052 (s390_gregset, s390_fpregset, s390_upper_regset)
1053 (s390_last_break_regset, s390x_last_break_regset)
1054 (s390_system_call_regset, s390_tdb_regset): Make global and
1055 replace s390_supply/_collect_regset by regcache_supply/
1057 (s390x_gregset): Delete.
1058 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1059 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1060 (s390_regmap_fpregset, s390_regmap_last_break)
1061 (s390x_regmap_last_break, s390_regmap_system_call)
1062 (s390_regmap_tdb): Delete global variable declarations.
1063 (s390_gregset, s390_fpregset, s390_last_break_regset)
1064 (s390x_last_break_regset, s390_system_call_regset)
1065 (s390_tdb_regset): New global variable declarations.
1067 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1069 * regcache.c: Include "regset.h".
1070 (regcache_transfer_regset): New local function.
1071 (regcache_supply_regset, regcache_collect_regset): New functions.
1072 * regcache.h (struct regcache_map_entry): New structure.
1073 (REGCACHE_MAP_SKIP): New enum value.
1074 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1076 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1078 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1079 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1080 (ppc_linux_collect_gregset ): Likewise.
1081 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1082 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1083 (ppc_collect_vrregset): Likewise.
1084 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1087 2014-08-07 Yao Qi <yao@codesourcery.com>
1089 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1090 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1091 * remote.c (remote_read_bytes): Likewise.
1093 2014-08-07 Yao Qi <yao@codesourcery.com>
1095 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1097 2014-08-07 Yao Qi <yao@codesourcery.com>
1100 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1101 TARGET_XFER_OK instead of 0.
1103 2014-08-07 Gary Benson <gbenson@redhat.com>
1105 * common/common-defs.h: Include errno.h.
1106 * defs.h: Do not include errno.h.
1107 * ada-typeprint.c: Likewise.
1108 * c-typeprint.c: Likewise.
1109 * core-regset.c: Likewise.
1110 * corefile.c: Likewise.
1111 * corelow.c: Likewise.
1112 * event-loop.c: Likewise.
1113 * f-typeprint.c: Likewise.
1114 * gnu-nat.c: Likewise.
1115 * go32-nat.c: Likewise.
1116 * i386gnu-nat.c: Likewise.
1117 * m2-typeprint.c: Likewise.
1118 * nat/linux-btrace.c: Likewise.
1119 * p-typeprint.c: Likewise.
1120 * procfs.c: Likewise.
1121 * remote-sim.c: Likewise.
1122 * rs6000-nat.c: Likewise.
1123 * target.c: Likewise.
1124 * typeprint.c: Likewise.
1125 * ui-file.c: Likewise.
1126 * valops.c: Likewise.
1127 * valprint.c: Likewise.
1129 2014-08-07 Gary Benson <gbenson@redhat.com>
1131 * common/common-defs.h: Include string.h.
1132 * aarch64-tdep.c: Do not include string.h.
1133 * ada-exp.y: Likewise.
1134 * ada-lang.c: Likewise.
1135 * ada-lex.l: Likewise.
1136 * ada-typeprint.c: Likewise.
1137 * ada-valprint.c: Likewise.
1138 * aix-thread.c: Likewise.
1139 * alpha-linux-tdep.c: Likewise.
1140 * alpha-mdebug-tdep.c: Likewise.
1141 * alpha-nat.c: Likewise.
1142 * alpha-osf1-tdep.c: Likewise.
1143 * alpha-tdep.c: Likewise.
1144 * alphanbsd-tdep.c: Likewise.
1145 * amd64-dicos-tdep.c: Likewise.
1146 * amd64-linux-tdep.c: Likewise.
1147 * amd64-nat.c: Likewise.
1148 * amd64-sol2-tdep.c: Likewise.
1149 * amd64fbsd-tdep.c: Likewise.
1150 * amd64obsd-tdep.c: Likewise.
1151 * arch-utils.c: Likewise.
1152 * arm-linux-nat.c: Likewise.
1153 * arm-linux-tdep.c: Likewise.
1154 * arm-tdep.c: Likewise.
1155 * arm-wince-tdep.c: Likewise.
1156 * armbsd-tdep.c: Likewise.
1157 * armnbsd-nat.c: Likewise.
1158 * armnbsd-tdep.c: Likewise.
1159 * armobsd-tdep.c: Likewise.
1160 * avr-tdep.c: Likewise.
1161 * ax-gdb.c: Likewise.
1162 * ax-general.c: Likewise.
1163 * bcache.c: Likewise.
1164 * bfin-tdep.c: Likewise.
1165 * breakpoint.c: Likewise.
1166 * build-id.c: Likewise.
1167 * buildsym.c: Likewise.
1168 * c-exp.y: Likewise.
1169 * c-lang.c: Likewise.
1170 * c-typeprint.c: Likewise.
1171 * c-valprint.c: Likewise.
1172 * charset.c: Likewise.
1173 * cli-out.c: Likewise.
1174 * cli/cli-cmds.c: Likewise.
1175 * cli/cli-decode.c: Likewise.
1176 * cli/cli-dump.c: Likewise.
1177 * cli/cli-interp.c: Likewise.
1178 * cli/cli-logging.c: Likewise.
1179 * cli/cli-script.c: Likewise.
1180 * cli/cli-setshow.c: Likewise.
1181 * cli/cli-utils.c: Likewise.
1182 * coffread.c: Likewise.
1183 * common/agent.c: Likewise.
1184 * common/buffer.c: Likewise.
1185 * common/buffer.h: Likewise.
1186 * common/common-utils.c: Likewise.
1187 * common/filestuff.c: Likewise.
1188 * common/filestuff.c: Likewise.
1189 * common/format.c: Likewise.
1190 * common/print-utils.c: Likewise.
1191 * common/rsp-low.c: Likewise.
1192 * common/signals.c: Likewise.
1193 * common/vec.h: Likewise.
1194 * common/xml-utils.c: Likewise.
1195 * core-regset.c: Likewise.
1196 * corefile.c: Likewise.
1197 * corelow.c: Likewise.
1198 * cp-abi.c: Likewise.
1199 * cp-name-parser.y: Likewise.
1200 * cp-support.c: Likewise.
1201 * cp-valprint.c: Likewise.
1202 * cris-tdep.c: Likewise.
1203 * d-exp.y: Likewise.
1204 * darwin-nat.c: Likewise.
1205 * dbxread.c: Likewise.
1206 * dcache.c: Likewise.
1207 * demangle.c: Likewise.
1208 * dicos-tdep.c: Likewise.
1209 * disasm.c: Likewise.
1210 * doublest.c: Likewise.
1211 * dsrec.c: Likewise.
1212 * dummy-frame.c: Likewise.
1213 * dwarf2-frame.c: Likewise.
1214 * dwarf2loc.c: Likewise.
1215 * dwarf2read.c: Likewise.
1216 * elfread.c: Likewise.
1217 * environ.c: Likewise.
1219 * event-loop.c: Likewise.
1220 * exceptions.c: Likewise.
1222 * expprint.c: Likewise.
1223 * f-exp.y: Likewise.
1224 * f-lang.c: Likewise.
1225 * f-typeprint.c: Likewise.
1226 * f-valprint.c: Likewise.
1227 * fbsd-nat.c: Likewise.
1228 * findcmd.c: Likewise.
1229 * findvar.c: Likewise.
1230 * fork-child.c: Likewise.
1231 * frame.c: Likewise.
1232 * frv-linux-tdep.c: Likewise.
1233 * frv-tdep.c: Likewise.
1235 * gdb_bfd.c: Likewise.
1236 * gdbarch.c: Likewise.
1237 * gdbarch.sh: Likewise.
1238 * gdbtypes.c: Likewise.
1239 * gnu-nat.c: Likewise.
1240 * gnu-v2-abi.c: Likewise.
1241 * gnu-v3-abi.c: Likewise.
1242 * go-exp.y: Likewise.
1243 * go-lang.c: Likewise.
1244 * go32-nat.c: Likewise.
1245 * guile/guile.c: Likewise.
1246 * guile/scm-auto-load.c: Likewise.
1247 * hppa-hpux-tdep.c: Likewise.
1248 * hppa-linux-nat.c: Likewise.
1249 * hppanbsd-tdep.c: Likewise.
1250 * hppaobsd-tdep.c: Likewise.
1251 * i386-cygwin-tdep.c: Likewise.
1252 * i386-dicos-tdep.c: Likewise.
1253 * i386-linux-tdep.c: Likewise.
1254 * i386-nto-tdep.c: Likewise.
1255 * i386-sol2-tdep.c: Likewise.
1256 * i386-tdep.c: Likewise.
1257 * i386bsd-tdep.c: Likewise.
1258 * i386gnu-nat.c: Likewise.
1259 * i386nbsd-tdep.c: Likewise.
1260 * i386obsd-tdep.c: Likewise.
1261 * i387-tdep.c: Likewise.
1262 * ia64-libunwind-tdep.c: Likewise.
1263 * ia64-linux-nat.c: Likewise.
1264 * inf-child.c: Likewise.
1265 * inf-ptrace.c: Likewise.
1266 * inf-ttrace.c: Likewise.
1267 * infcall.c: Likewise.
1268 * infcmd.c: Likewise.
1269 * inflow.c: Likewise.
1270 * infrun.c: Likewise.
1271 * interps.c: Likewise.
1272 * iq2000-tdep.c: Likewise.
1273 * irix5-nat.c: Likewise.
1274 * jv-exp.y: Likewise.
1275 * jv-lang.c: Likewise.
1276 * jv-typeprint.c: Likewise.
1277 * jv-valprint.c: Likewise.
1278 * language.c: Likewise.
1279 * linux-fork.c: Likewise.
1280 * linux-nat.c: Likewise.
1281 * lm32-tdep.c: Likewise.
1282 * m2-exp.y: Likewise.
1283 * m2-typeprint.c: Likewise.
1284 * m32c-tdep.c: Likewise.
1285 * m32r-linux-nat.c: Likewise.
1286 * m32r-linux-tdep.c: Likewise.
1287 * m32r-rom.c: Likewise.
1288 * m32r-tdep.c: Likewise.
1289 * m68hc11-tdep.c: Likewise.
1290 * m68k-tdep.c: Likewise.
1291 * m68kbsd-tdep.c: Likewise.
1292 * m68klinux-nat.c: Likewise.
1293 * m68klinux-tdep.c: Likewise.
1294 * m88k-tdep.c: Likewise.
1295 * machoread.c: Likewise.
1296 * macrocmd.c: Likewise.
1298 * mdebugread.c: Likewise.
1299 * mem-break.c: Likewise.
1300 * memattr.c: Likewise.
1301 * memory-map.c: Likewise.
1302 * mep-tdep.c: Likewise.
1303 * mi/mi-cmd-break.c: Likewise.
1304 * mi/mi-cmd-disas.c: Likewise.
1305 * mi/mi-cmd-env.c: Likewise.
1306 * mi/mi-cmd-stack.c: Likewise.
1307 * mi/mi-cmd-var.c: Likewise.
1308 * mi/mi-cmds.c: Likewise.
1309 * mi/mi-console.c: Likewise.
1310 * mi/mi-getopt.c: Likewise.
1311 * mi/mi-interp.c: Likewise.
1312 * mi/mi-main.c: Likewise.
1313 * mi/mi-parse.c: Likewise.
1314 * microblaze-rom.c: Likewise.
1315 * microblaze-tdep.c: Likewise.
1316 * mingw-hdep.c: Likewise.
1317 * minidebug.c: Likewise.
1318 * minsyms.c: Likewise.
1319 * mips-irix-tdep.c: Likewise.
1320 * mips-linux-tdep.c: Likewise.
1321 * mips-tdep.c: Likewise.
1322 * mips64obsd-tdep.c: Likewise.
1323 * mipsnbsd-tdep.c: Likewise.
1324 * mipsread.c: Likewise.
1325 * mn10300-linux-tdep.c: Likewise.
1326 * mn10300-tdep.c: Likewise.
1327 * monitor.c: Likewise.
1328 * moxie-tdep.c: Likewise.
1329 * mt-tdep.c: Likewise.
1330 * nat/linux-btrace.c: Likewise.
1331 * nat/linux-osdata.c: Likewise.
1332 * nat/linux-procfs.c: Likewise.
1333 * nat/linux-ptrace.c: Likewise.
1334 * nat/linux-waitpid.c: Likewise.
1335 * nbsd-tdep.c: Likewise.
1336 * nios2-linux-tdep.c: Likewise.
1337 * nto-procfs.c: Likewise.
1338 * nto-tdep.c: Likewise.
1339 * objc-lang.c: Likewise.
1340 * objfiles.c: Likewise.
1341 * opencl-lang.c: Likewise.
1342 * osabi.c: Likewise.
1343 * osdata.c: Likewise.
1344 * p-exp.y: Likewise.
1345 * p-lang.c: Likewise.
1346 * p-typeprint.c: Likewise.
1347 * parse.c: Likewise.
1348 * posix-hdep.c: Likewise.
1349 * ppc-linux-nat.c: Likewise.
1350 * ppc-sysv-tdep.c: Likewise.
1351 * ppcfbsd-tdep.c: Likewise.
1352 * ppcnbsd-tdep.c: Likewise.
1353 * ppcobsd-tdep.c: Likewise.
1354 * printcmd.c: Likewise.
1355 * procfs.c: Likewise.
1356 * prologue-value.c: Likewise.
1357 * python/py-auto-load.c: Likewise.
1358 * python/py-gdb-readline.c: Likewise.
1359 * ravenscar-thread.c: Likewise.
1360 * regcache.c: Likewise.
1361 * registry.c: Likewise.
1362 * remote-fileio.c: Likewise.
1363 * remote-m32r-sdi.c: Likewise.
1364 * remote-mips.c: Likewise.
1365 * remote-notif.c: Likewise.
1366 * remote-sim.c: Likewise.
1367 * remote.c: Likewise.
1368 * reverse.c: Likewise.
1369 * rs6000-aix-tdep.c: Likewise.
1370 * ser-base.c: Likewise.
1371 * ser-go32.c: Likewise.
1372 * ser-mingw.c: Likewise.
1373 * ser-pipe.c: Likewise.
1374 * ser-tcp.c: Likewise.
1375 * ser-unix.c: Likewise.
1376 * serial.c: Likewise.
1377 * sh-tdep.c: Likewise.
1378 * sh64-tdep.c: Likewise.
1379 * shnbsd-tdep.c: Likewise.
1381 * sol-thread.c: Likewise.
1382 * solib-dsbt.c: Likewise.
1383 * solib-frv.c: Likewise.
1384 * solib-osf.c: Likewise.
1385 * solib-som.c: Likewise.
1386 * solib-spu.c: Likewise.
1387 * solib-target.c: Likewise.
1388 * solib.c: Likewise.
1389 * somread.c: Likewise.
1390 * source.c: Likewise.
1391 * sparc-nat.c: Likewise.
1392 * sparc-sol2-tdep.c: Likewise.
1393 * sparc-tdep.c: Likewise.
1394 * sparc64-tdep.c: Likewise.
1395 * sparc64fbsd-tdep.c: Likewise.
1396 * sparc64nbsd-tdep.c: Likewise.
1397 * sparcnbsd-tdep.c: Likewise.
1398 * spu-linux-nat.c: Likewise.
1399 * spu-multiarch.c: Likewise.
1400 * spu-tdep.c: Likewise.
1401 * stabsread.c: Likewise.
1402 * stack.c: Likewise.
1403 * std-regs.c: Likewise.
1404 * symfile.c: Likewise.
1405 * symmisc.c: Likewise.
1406 * symtab.c: Likewise.
1407 * target.c: Likewise.
1408 * thread.c: Likewise.
1409 * tilegx-linux-nat.c: Likewise.
1410 * tilegx-tdep.c: Likewise.
1412 * tracepoint.c: Likewise.
1413 * tui/tui-command.c: Likewise.
1414 * tui/tui-data.c: Likewise.
1415 * tui/tui-disasm.c: Likewise.
1416 * tui/tui-file.c: Likewise.
1417 * tui/tui-layout.c: Likewise.
1418 * tui/tui-out.c: Likewise.
1419 * tui/tui-regs.c: Likewise.
1420 * tui/tui-source.c: Likewise.
1421 * tui/tui-stack.c: Likewise.
1422 * tui/tui-win.c: Likewise.
1423 * tui/tui-windata.c: Likewise.
1424 * tui/tui-winsource.c: Likewise.
1425 * typeprint.c: Likewise.
1426 * ui-file.c: Likewise.
1427 * ui-out.c: Likewise.
1428 * user-regs.c: Likewise.
1429 * utils.c: Likewise.
1430 * v850-tdep.c: Likewise.
1431 * valarith.c: Likewise.
1432 * valops.c: Likewise.
1433 * valprint.c: Likewise.
1434 * value.c: Likewise.
1435 * varobj.c: Likewise.
1436 * vax-tdep.c: Likewise.
1437 * vaxnbsd-tdep.c: Likewise.
1438 * vaxobsd-tdep.c: Likewise.
1439 * windows-nat.c: Likewise.
1440 * xcoffread.c: Likewise.
1441 * xml-support.c: Likewise.
1442 * xstormy16-tdep.c: Likewise.
1443 * xtensa-linux-nat.c: Likewise.
1445 2014-08-07 Gary Benson <gbenson@redhat.com>
1447 * common/common-defs.h: Include gdb_assert.h.
1448 * aarch64-tdep.c: Do not include gdb_assert.h.
1449 * addrmap.c: Likewise.
1450 * aix-thread.c: Likewise.
1451 * alpha-linux-tdep.c: Likewise.
1452 * alpha-mdebug-tdep.c: Likewise.
1453 * alphanbsd-tdep.c: Likewise.
1454 * amd64-nat.c: Likewise.
1455 * amd64-tdep.c: Likewise.
1456 * amd64bsd-nat.c: Likewise.
1457 * amd64fbsd-nat.c: Likewise.
1458 * amd64fbsd-tdep.c: Likewise.
1459 * amd64nbsd-nat.c: Likewise.
1460 * amd64nbsd-tdep.c: Likewise.
1461 * amd64obsd-nat.c: Likewise.
1462 * amd64obsd-tdep.c: Likewise.
1463 * arch-utils.c: Likewise.
1464 * arm-tdep.c: Likewise.
1465 * armbsd-tdep.c: Likewise.
1467 * bcache.c: Likewise.
1468 * bfin-tdep.c: Likewise.
1469 * blockframe.c: Likewise.
1470 * breakpoint.c: Likewise.
1471 * bsd-kvm.c: Likewise.
1472 * bsd-uthread.c: Likewise.
1473 * buildsym.c: Likewise.
1474 * c-exp.y: Likewise.
1475 * c-lang.c: Likewise.
1476 * charset.c: Likewise.
1477 * cleanups.c: Likewise.
1478 * cli-out.c: Likewise.
1479 * cli/cli-decode.c: Likewise.
1480 * cli/cli-dump.c: Likewise.
1481 * cli/cli-logging.c: Likewise.
1482 * cli/cli-script.c: Likewise.
1483 * cli/cli-utils.c: Likewise.
1484 * coffread.c: Likewise.
1485 * common/common-utils.c: Likewise.
1486 * common/queue.h: Likewise.
1487 * common/signals.c: Likewise.
1488 * common/vec.h: Likewise.
1489 * complaints.c: Likewise.
1490 * completer.c: Likewise.
1491 * corelow.c: Likewise.
1492 * cp-abi.c: Likewise.
1493 * cp-name-parser.y: Likewise.
1494 * cp-namespace.c: Likewise.
1495 * cp-support.c: Likewise.
1496 * cris-tdep.c: Likewise.
1497 * dbxread.c: Likewise.
1498 * dictionary.c: Likewise.
1499 * doublest.c: Likewise.
1500 * dsrec.c: Likewise.
1501 * dummy-frame.c: Likewise.
1502 * dwarf2-frame-tailcall.c: Likewise.
1503 * dwarf2-frame.c: Likewise.
1504 * dwarf2expr.c: Likewise.
1505 * dwarf2loc.c: Likewise.
1506 * dwarf2read.c: Likewise.
1508 * event-loop.c: Likewise.
1509 * exceptions.c: Likewise.
1510 * expprint.c: Likewise.
1511 * f-valprint.c: Likewise.
1512 * fbsd-nat.c: Likewise.
1513 * findvar.c: Likewise.
1514 * frame-unwind.c: Likewise.
1515 * frame.c: Likewise.
1516 * frv-tdep.c: Likewise.
1517 * gcore.c: Likewise.
1518 * gdb-dlfcn.c: Likewise.
1519 * gdb_bfd.c: Likewise.
1520 * gdbarch.c: Likewise.
1521 * gdbarch.sh: Likewise.
1522 * gdbtypes.c: Likewise.
1523 * gnu-nat.c: Likewise.
1524 * gnu-v3-abi.c: Likewise.
1525 * go-lang.c: Likewise.
1526 * guile/scm-exception.c: Likewise.
1527 * guile/scm-gsmob.c: Likewise.
1528 * guile/scm-lazy-string.c: Likewise.
1529 * guile/scm-math.c: Likewise.
1530 * guile/scm-pretty-print.c: Likewise.
1531 * guile/scm-safe-call.c: Likewise.
1532 * guile/scm-utils.c: Likewise.
1533 * guile/scm-value.c: Likewise.
1534 * h8300-tdep.c: Likewise.
1535 * hppa-hpux-nat.c: Likewise.
1536 * hppa-tdep.c: Likewise.
1537 * hppanbsd-tdep.c: Likewise.
1538 * hppaobsd-tdep.c: Likewise.
1539 * i386-darwin-nat.c: Likewise.
1540 * i386-darwin-tdep.c: Likewise.
1541 * i386-nto-tdep.c: Likewise.
1542 * i386-tdep.c: Likewise.
1543 * i386bsd-nat.c: Likewise.
1544 * i386fbsd-tdep.c: Likewise.
1545 * i386gnu-nat.c: Likewise.
1546 * i386nbsd-tdep.c: Likewise.
1547 * i386obsd-tdep.c: Likewise.
1548 * i387-tdep.c: Likewise.
1549 * ia64-libunwind-tdep.c: Likewise.
1550 * ia64-tdep.c: Likewise.
1551 * inf-ptrace.c: Likewise.
1552 * inf-ttrace.c: Likewise.
1553 * infcall.c: Likewise.
1554 * infcmd.c: Likewise.
1555 * infrun.c: Likewise.
1556 * inline-frame.c: Likewise.
1557 * interps.c: Likewise.
1558 * jv-lang.c: Likewise.
1559 * jv-typeprint.c: Likewise.
1560 * linux-fork.c: Likewise.
1561 * linux-nat.c: Likewise.
1562 * linux-thread-db.c: Likewise.
1563 * m32c-tdep.c: Likewise.
1564 * m32r-linux-nat.c: Likewise.
1565 * m32r-tdep.c: Likewise.
1566 * m68k-tdep.c: Likewise.
1567 * m68kbsd-nat.c: Likewise.
1568 * m68kbsd-tdep.c: Likewise.
1569 * m88k-tdep.c: Likewise.
1570 * machoread.c: Likewise.
1571 * macroexp.c: Likewise.
1572 * macrotab.c: Likewise.
1573 * maint.c: Likewise.
1574 * mdebugread.c: Likewise.
1575 * memory-map.c: Likewise.
1576 * mep-tdep.c: Likewise.
1577 * mi/mi-common.c: Likewise.
1578 * microblaze-tdep.c: Likewise.
1579 * mingw-hdep.c: Likewise.
1580 * mips-linux-nat.c: Likewise.
1581 * mips-linux-tdep.c: Likewise.
1582 * mips-tdep.c: Likewise.
1583 * mips64obsd-tdep.c: Likewise.
1584 * mipsnbsd-tdep.c: Likewise.
1585 * mn10300-linux-tdep.c: Likewise.
1586 * mn10300-tdep.c: Likewise.
1587 * moxie-tdep.c: Likewise.
1588 * mt-tdep.c: Likewise.
1589 * nat/linux-btrace.c: Likewise.
1590 * nat/linux-osdata.c: Likewise.
1591 * nat/linux-ptrace.c: Likewise.
1592 * nat/mips-linux-watch.c: Likewise.
1593 * nios2-linux-tdep.c: Likewise.
1594 * nios2-tdep.c: Likewise.
1595 * objc-lang.c: Likewise.
1596 * objfiles.c: Likewise.
1597 * obsd-nat.c: Likewise.
1598 * opencl-lang.c: Likewise.
1599 * osabi.c: Likewise.
1600 * parse.c: Likewise.
1601 * ppc-linux-nat.c: Likewise.
1602 * ppc-sysv-tdep.c: Likewise.
1603 * ppcfbsd-nat.c: Likewise.
1604 * ppcfbsd-tdep.c: Likewise.
1605 * ppcnbsd-nat.c: Likewise.
1606 * ppcnbsd-tdep.c: Likewise.
1607 * ppcobsd-nat.c: Likewise.
1608 * ppcobsd-tdep.c: Likewise.
1609 * printcmd.c: Likewise.
1610 * procfs.c: Likewise.
1611 * prologue-value.c: Likewise.
1612 * psymtab.c: Likewise.
1613 * python/py-lazy-string.c: Likewise.
1614 * python/py-value.c: Likewise.
1615 * regcache.c: Likewise.
1616 * reggroups.c: Likewise.
1617 * registry.c: Likewise.
1618 * remote-sim.c: Likewise.
1619 * remote.c: Likewise.
1620 * rs6000-aix-tdep.c: Likewise.
1621 * rs6000-tdep.c: Likewise.
1622 * s390-linux-tdep.c: Likewise.
1623 * score-tdep.c: Likewise.
1624 * ser-base.c: Likewise.
1625 * ser-mingw.c: Likewise.
1626 * sh-tdep.c: Likewise.
1627 * sh64-tdep.c: Likewise.
1628 * solib-darwin.c: Likewise.
1629 * solib-spu.c: Likewise.
1630 * solib-svr4.c: Likewise.
1631 * source.c: Likewise.
1632 * sparc-nat.c: Likewise.
1633 * sparc-sol2-tdep.c: Likewise.
1634 * sparc-tdep.c: Likewise.
1635 * sparc64-sol2-tdep.c: Likewise.
1636 * sparc64-tdep.c: Likewise.
1637 * sparc64fbsd-tdep.c: Likewise.
1638 * sparc64nbsd-tdep.c: Likewise.
1639 * sparc64obsd-tdep.c: Likewise.
1640 * sparcnbsd-tdep.c: Likewise.
1641 * sparcobsd-tdep.c: Likewise.
1642 * spu-multiarch.c: Likewise.
1643 * spu-tdep.c: Likewise.
1644 * stabsread.c: Likewise.
1645 * stack.c: Likewise.
1646 * symfile.c: Likewise.
1647 * symtab.c: Likewise.
1648 * target-descriptions.c: Likewise.
1649 * target-memory.c: Likewise.
1650 * target.c: Likewise.
1651 * tic6x-linux-tdep.c: Likewise.
1652 * tic6x-tdep.c: Likewise.
1653 * tilegx-linux-nat.c: Likewise.
1654 * tilegx-tdep.c: Likewise.
1656 * tramp-frame.c: Likewise.
1657 * tui/tui-out.c: Likewise.
1658 * tui/tui-winsource.c: Likewise.
1659 * ui-out.c: Likewise.
1660 * user-regs.c: Likewise.
1661 * utils.c: Likewise.
1662 * v850-tdep.c: Likewise.
1663 * valops.c: Likewise.
1664 * value.c: Likewise.
1665 * varobj.c: Likewise.
1666 * vax-nat.c: Likewise.
1667 * xml-syscall.c: Likewise.
1668 * xml-tdesc.c: Likewise.
1669 * xstormy16-tdep.c: Likewise.
1670 * xtensa-linux-nat.c: Likewise.
1671 * xtensa-tdep.c: Likewise.
1673 2014-08-07 Gary Benson <gbenson@redhat.com>
1675 * common/common-defs.h: Include common-utils.h.
1676 * defs.h: Do not include common-utils.h.
1677 * common/gdb_assert.h: Likewise.
1678 * darwin-nat.h: Likewise.
1679 * nat/linux-btrace.c: Likewise.
1680 * target/waitstatus.h: Likewise.
1682 2014-08-07 Gary Benson <gbenson@redhat.com>
1684 * common/common-defs.h: Include ptid.h.
1685 * defs.h: Do not include ptid.h.
1686 * inferior.h: Likewise.
1687 * infrun.h: Likewise.
1688 * nat/linux-btrace.h: Likewise.
1689 * nat/linux-osdata.h: Likewise.
1690 * target/waitstatus.h: Likewise.
1692 2014-08-07 Gary Benson <gbenson@redhat.com>
1694 * common/common-defs.h: Include gdb_locale.h.
1695 * defs.h: Do not include gdb_locale.h.
1697 2014-08-07 Gary Benson <gbenson@redhat.com>
1699 * common/common-defs.h: Include gdb/signals.h.
1700 * defs.h: Do not include gdb/signals.h.
1702 2014-08-07 Gary Benson <gbenson@redhat.com>
1704 * common/common-defs.h: Include pathmax.h.
1705 * defs.h: Do not include pathmax.h.
1707 2014-08-07 Gary Benson <gbenson@redhat.com>
1709 * common/common-defs.h: Include libiberty.h.
1710 * defs.h: Do not include libiberty.h.
1711 * common/queue.h: Likewise.
1712 * cp-name-parser.y: Likewise.
1713 * mi/mi-cmd-catch.c: Likewise.
1714 * python/python.c: Likewise.
1716 2014-08-07 Gary Benson <gbenson@redhat.com>
1718 * common/common-defs.h: Include ansidecl.h.
1719 * defs.h: Do not include ansidecl.h.
1720 * common/buffer.h: Likewise.
1721 * common/common-utils.h: Likewise.
1723 2014-08-07 Gary Benson <gbenson@redhat.com>
1725 * common/common-defs.h: Include stddef.h.
1726 * defs.h: Do not include stddef.h.
1727 * common/common-utils.h: Likewise.
1728 * amd64fbsd-nat.c: Likewise.
1729 * bcache.c: Likewise.
1730 * charset.c: Likewise.
1731 * common/buffer.h: Likewise.
1732 * common/vec.h: Likewise.
1733 * i386bsd-nat.c: Likewise.
1734 * nat/linux-btrace.h: Likewise.
1735 * ppcfbsd-nat.c: Likewise.
1736 * ppcnbsd-tdep.h: Likewise.
1737 * ppcobsd-nat.c: Likewise.
1738 * ppcobsd-tdep.h: Likewise.
1739 * python/py-gdb-readline.c: Likewise.
1741 2014-08-07 Gary Benson <gbenson@redhat.com>
1743 * common/common-defs.h: Include stdarg.h.
1744 * defs.h: Do not include stdarg.h.
1745 * ada-lang.c: Likewise.
1746 * common/common-utils.h: Likewise.
1747 * guile/scm-string.c: Likewise.
1748 * guile/scm-utils.c: Likewise.
1749 * m32c-tdep.c: Likewise.
1751 2014-08-07 Gary Benson <gbenson@redhat.com>
1753 * common/common-defs.h: Include stdlib.h.
1754 * defs.h: Do not include stdlib.h.
1755 * addrmap.c: Likewise.
1756 * bcache.c: Likewise.
1757 * common/buffer.c: Likewise.
1758 * common/common-utils.c: Likewise.
1759 * cp-name-parser.y: Likewise.
1760 * go32-nat.c: Likewise.
1761 * mn10300-linux-tdep.c: Likewise.
1762 * nat/linux-osdata.c: Likewise.
1763 * tui/tui.c: Likewise.
1764 * windows-nat.c: Likewise.
1766 2014-08-07 Gary Benson <gbenson@redhat.com>
1768 * common/common-defs.h: Include stdio.h.
1769 * defs.h: Do not include stdio.h.
1770 * ada-lang.c: Likewise.
1771 * common/buffer.c: Likewise.
1772 * common/common-utils.c: Likewise.
1773 * cp-name-parser.y: Likewise.
1774 * gnu-nat.c: Likewise.
1775 * go32-nat.c: Likewise.
1776 * i386gnu-nat.c: Likewise.
1777 * proc-api.c: Likewise.
1778 * proc-events.c: Likewise.
1779 * proc-flags.c: Likewise.
1780 * proc-why.c: Likewise.
1781 * python/python-internal.h: Likewise.
1782 * target-memory.c: Likewise.
1783 * tui/tui-io.c: Likewise.
1784 * tui/tui.c: Likewise.
1786 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1788 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1789 (scan_dyntag_auxv): Same.
1791 2014-08-06 Yao Qi <yao@codesourcery.com>
1793 * amd64-linux-nat.c: Remove duplicated include
1795 * i386-linux-nat.c: Likewise.
1797 2014-08-06 Yao Qi <yao@codesourcery.com>
1799 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1800 operand" with "Special opcode" in comments.
1802 2014-08-05 Gary Benson <gbenson@redhat.com>
1804 * interps.c (initialize_interps): Remove prototype.
1805 (interpreter_initialized): Remove static global.
1806 (interp_add): Do not call initialize_interps.
1807 (initialize_interps): Remove function.
1809 2014-08-05 Gary Benson <gbenson@redhat.com>
1811 * utils.c (vwarning): Remove spurious va_end.
1813 2014-08-05 Alan Modra <amodra@gmail.com>
1815 * charset.c (convert_between_encodings): Cast result of obstack_base.
1816 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1817 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1818 (read_unwind_info): Use size_t for some locals.
1819 * jit.c (finalize_symtab): Likewise.
1820 * utils.c (hashtab_obstack_allocate): Likewise.
1821 * symmisc.c (print_objfile_statistics): Update format strings.
1823 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1825 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1826 (Changes in GDB 7.8): ... here.
1828 2014-08-04 Tom Tromey <tromey@redhat.com>
1830 * target.c (set_targetdebug): New function.
1831 (initialize_targets): Pass set_targetdebug when creating "set
1834 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1836 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1837 if detecting a variable-sized field that is not the last field.
1838 Fix struct type length computation.
1840 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1842 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1845 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1847 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1848 Remove "+ 8" offset in computation of CHAIN_VMA.
1850 2014-07-31 Doug Evans <dje@google.com>
1852 * inflow.c (child_terminal_inferior): Add comment.
1853 (child_terminal_ours_for_output): Add comment.
1854 (child_terminal_ours): Add comment.
1855 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1856 (linux_nat_terminal_ours): Add comment.
1858 2014-07-31 Gary Benson <gbenson@redhat.com>
1860 * common/btrace-common.h: Do not include defs.h or server.h.
1861 * nat/mips-linux-watch.h: Likewise.
1862 * gdb-dlfcn.h: Do not include defs.h.
1863 * tracefile.h: Likewise.
1865 2014-07-30 Roland McGrath <mcgrathr@google.com>
1867 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1869 2014-07-30 Tom Tromey <tromey@redhat.com>
1871 * bsd-kvm.c (bsd_kvm_open): Constify.
1872 * corelow.c (core_open): Constify.
1873 * ctf.c (ctf_open): Constify.
1874 * dbug-rom.c (dbug_open): Constify.
1875 * exec.c (exec_open): Constify.
1876 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1877 * microblaze-rom.c (picobug_open): Constify.
1878 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1880 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1881 * record-btrace.c (record_btrace_open): Constify.
1882 * record-full.c (record_full_core_open_1, record_full_open_1)
1883 (record_full_open): Constify.
1884 * remote-m32r-sdi.c (m32r_open): Constify.
1885 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1886 (rockhopper_open, lsi_open): Constify.
1887 * remote-sim.c (gdbsim_open): Constify.
1888 * remote.c (remote_open, extended_remote_open, remote_open_1):
1890 * target.h (struct target_ops) <to_open>: Make "arg" const.
1891 * tracefile-tfile.c (tfile_open): Constify.
1893 2014-07-30 Tom Tromey <tromey@redhat.com>
1895 * breakpoint.c (map_breakpoint_numbers): Update.
1896 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1897 (get_number_const): New function.
1898 (get_number): Rewrite using get_number_const.
1899 (init_number_or_range): Make "string" const.
1900 (number_is_in_list): Make "list" const.
1901 * cli/cli-utils.h (get_number_const): Declare.
1902 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1903 (init_number_or_range, number_is_in_list): Update.
1904 * printcmd.c (map_display_numbers): Update.
1905 * value.c (value_from_history_ref): Constify.
1906 * value.h (value_from_history_ref): Update.
1908 2014-07-30 Tom Tromey <tromey@redhat.com>
1910 * corefile.c (hook_type, call_extra_exec_file_hooks)
1911 (specify_exec_file_hook): Constify.
1912 * exec.c (exec_file_attach): Make "filename" const.
1913 * gdbcore.h (deprecated_exec_file_display_hook)
1914 (specify_exec_file_hook, exec_file_attach): Constify.
1915 * main.c (captured_main): Use catch_command_errors_const.
1917 2014-07-30 Tom Tromey <tromey@redhat.com>
1919 * target.c (open_target): New function.
1920 (add_target_with_completer, add_deprecated_target_alias): Use
1921 set_cmd_sfunc, set_cmd_context.
1922 (debug_to_open): Remove.
1923 (setup_target_debug): Update.
1925 2014-07-30 Yao Qi <yao@codesourcery.com>
1927 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1929 * parse.c (exp_iterate): Update comments.
1931 2014-07-30 Gary Benson <gbenson@redhat.com>
1933 * common/common-defs.h: New file.
1934 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1935 * defs.h: Include common-defs.h.
1936 Do not include config.h or build-gnulib/config.h.
1938 2014-07-30 Gary Benson <gbenson@redhat.com>
1940 * common/common-utils.h: Do not include config.h.
1941 * nat/linux-btrace.h: Likewise.
1943 2014-07-30 Gary Benson <gbenson@redhat.com>
1945 * btrace.c: Include defs.h.
1946 * common/ptid.c: Include defs.h or server.h as appropriate.
1947 * nat/mips-linux-watch.c: Likewise.
1949 2014-07-29 Tom Tromey <tromey@redhat.com>
1951 * target.c (target_is_pushed): Simplify.
1953 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1957 2014-07-29 Yao Qi <yao@codesourcery.com>
1960 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1962 2014-07-28 Doug Evans <xdje42@gmail.com>
1965 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1966 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1969 2014-07-28 Will Newton <will.newton@linaro.org>
1971 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1972 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1973 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1974 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1975 (THUMB2_EABI_SYSCALL): Likewise.
1976 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1978 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1979 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1981 2014-07-27 Doug Evans <xdje42@gmail.com>
1983 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1985 2014-07-27 Doug Evans <xdje42@gmail.com>
1987 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1989 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1990 Doug Evans <xdje42@gmail.com>
1993 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1994 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1995 * configure.ac: Try to use guild to compile an scm file, if it fails
1996 then disable guile support.
1997 * configure: Regenerate.
1998 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2000 (GUILE_COMPILED_FILES): New variable.
2001 (GUILE_FILES) Update.
2002 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2003 (stamp-guile): Compile scm files.
2004 * guile/guile.c (boot_guile_support): New function.
2005 (standard_throw_args_p): New function.
2006 (print_standard_throw_error, print_throw_error): New functions.
2007 (handle_boot_error): New function.
2008 (initialize_scheme_side): Rewrite to call boot_guile_support.
2009 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2010 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2012 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2013 Doug Evans <xdje42@gmail.com>
2016 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2017 * guile/lib/gdb/support.scm: New file.
2018 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2019 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2021 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2023 (%assert-type): Ditto, and renamed to assert-type.
2024 (%exception-print-style): Delete.
2026 2014-07-26 Doug Evans <xdje42@gmail.com>
2029 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2030 * configure: Regenerate.
2031 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2033 (PYTHON_FILES): New variable.
2034 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2035 (GUILE_FILES): New variable.
2036 (stamp-python, install-python, uninstall-python): Handle empty
2038 (stamp-guile, install-guile, uninstall-guile): Ditto.
2040 2014-07-26 Doug Evans <xdje42@gmail.com>
2043 * guile/lib/gdb.scm (pretty-printers): Export.
2044 (set-pretty-printers!): Export.
2045 * guile/lib/gdb/printing.scm (gdb module): Update.
2046 (prepend-pretty-printer!, append-pretty-printer!): Update.
2047 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2048 (pretty_printer_list_var): Delete.
2049 (pretty_printer_list): New static global.
2050 (gdbscm_pretty_printers): New function.
2051 (gdbscm_set_pretty_printers_x): New function.
2052 (ppscm_find_pretty_printer_from_gdb): Update.
2053 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2054 (gdbscm_initialize_pretty_printers): Update.
2056 2014-07-26 Doug Evans <xdje42@gmail.com>
2059 * configure.ac: Add check for header gc/gc.h.
2060 Add check for function setenv.
2061 * configure: Regenerate.
2062 * config.in: Regenerate.
2063 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2065 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2067 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2068 variation in gdbarch matching.
2070 2014-07-25 Tom Tromey <tromey@redhat.com>
2072 * exec.c (using_exec_ops): Remove.
2073 (exec_close_1): Update. Remove extraneous block, reindent.
2074 (add_target_sections): Use target_is_pushed.
2076 2014-07-25 Pedro Alves <palves@redhat.com>
2078 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2079 * monitor.c (monitor_create_inferior): Likewise.
2080 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2081 * remote-sim.c (gdbsim_create_inferior): Likewise.
2082 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2083 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2084 * windows-nat.c (do_initial_windows_stuff): Likewise.
2086 2014-07-25 Pedro Alves <palves@redhat.com>
2088 * NEWS: Mention signal passing and "signal" command changes.
2089 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2091 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2093 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2094 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2095 (jump_command): Adjust clear_proceed_status call.
2096 (signal_command): Warn if other thread that are resumed have
2097 signals that will be delivered. Adjust clear_proceed_status call.
2098 (until_next_command, finish_command)
2099 (proceed_after_attach_callback, attach_command_post_wait)
2100 (attach_command): Adjust clear_proceed_status call.
2101 * infrun.c (proceed_after_vfork_done): Likewise.
2102 (proceed_after_attach_callback): Adjust comment.
2103 (clear_proceed_status_thread): Clear stop_signal if not in pass
2105 (clear_proceed_status_callback): Delete.
2106 (clear_proceed_status): New 'step' parameter. Only clear the
2107 proceed status of threads the command being prepared is about to
2109 (proceed): If passed in an explicit signal, override stop_signal
2110 with it. Don't pass the last stop signal to the thread we're
2112 (init_wait_for_inferior): Adjust clear_proceed_status call.
2113 (switch_back_to_stepped_thread): Clear the signal if it should not
2115 * infrun.h (clear_proceed_status): New 'step' parameter.
2116 (user_visible_resume_ptid): Add comment.
2117 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2118 signal is in pass state.
2119 * remote.c (append_pending_thread_resumptions): Likewise.
2120 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2122 2014-07-25 Tom Tromey <tromey@redhat.com>
2124 * target.h (target_stopped_data_address)
2125 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2128 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2130 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2132 (avr_pointer_to_address): Likewise.
2134 2014-07-24 Tom Tromey <tromey@redhat.com>
2136 * monitor.c (compile_pattern): Update.
2137 * target.h (struct target_ops) <to_shortname, to_longname,
2140 2014-07-24 Tom Tromey <tromey@redhat.com>
2142 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2143 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2144 (add_info_alias, add_com): Make "doc" const.
2145 (print_doc_line): Make "str" const.
2146 (delete_cmd): Update.
2147 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2148 (print_doc_line): Update.
2149 * cli/cli-script.c (document_command): Update.
2150 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2151 (add_com, add_info, add_info_alias): Update.
2152 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2153 * python/py-cmd.c (cmdpy_destroyer): Update.
2155 2014-07-24 Tom Tromey <tromey@redhat.com>
2157 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2158 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2159 (help_cmd_list): Constify.
2160 (lookup_cmd): Update.
2161 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2163 (help_cmd_list, apropos_cmd): Update.
2164 * cli/cli-script.c (show_user): Update.
2165 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2166 * cli/cli-setshow.h (cmd_show_list): Update.
2167 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2168 (cmd_show_list): Update.
2169 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2170 * python/py-cmd.c (cmdpy_destroyer): Update.
2172 2014-07-24 Tom Tromey <tromey@redhat.com>
2174 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2175 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2177 * command.h (deprecate_cmd): Update.
2178 * maint.c (maintenance_do_deprecate): Add casts.
2180 2014-07-24 Tom Tromey <tromey@redhat.com>
2182 * cli/cli-decode.c (help_cmd): Make parameter "const".
2183 * cli/cli-decode.h (help_cmd): Update.
2185 2014-07-24 Tom Tromey <tromey@redhat.com>
2187 * stack.c (up_silently_base, down_silently_base): Make argument
2190 2014-07-24 Tom Tromey <tromey@redhat.com>
2192 * solib.c (solib_add): Make "pattern" const.
2193 * solib.h (solib_add): Update.
2195 2014-07-24 Tom Tromey <tromey@redhat.com>
2197 * remote.c (remote_serial_open, print_packet, putpkt)
2198 (putpkt_binary): Constify.
2199 * remote.h (putpkt): Update.
2201 2014-07-24 Tom Tromey <tromey@redhat.com>
2203 * monitor.c (monitor_open): Make "args" const.
2204 * monitor.h (monitor_open): Update.
2206 2014-07-24 Tom Tromey <tromey@redhat.com>
2208 * maint.c (match_bfd_flags): Make "string" const.
2209 (print_bfd_section_info): Remove casts.
2210 (print_objfile_section_info): Make "string" const.
2212 2014-07-24 Tom Tromey <tromey@redhat.com>
2214 * inf-child.c (inf_child_open_target): Make "arg" const.
2215 * inf-child.h (inf_child_open_target): Update.
2217 2014-07-24 Tom Tromey <tromey@redhat.com>
2219 * environ.c (unset_in_environ): Make "var" const.
2220 * environ.h (unset_in_environ): Update.
2222 2014-07-24 Tom Tromey <tromey@redhat.com>
2224 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2226 (scan_filename_with_cleanup): Likewise.
2227 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2228 Make arguments const.
2229 (restore_command): Update.
2231 2014-07-24 Pedro Alves <palves@redhat.com>
2233 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2235 2014-07-24 Tom Tromey <tromey@redhat.com>
2236 Gary Benson <gbenson@redhat.com>
2238 * nat/linux-ptrace.c (additional_flags): New global.
2239 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2240 additional_flags; don't check GDBSERVER.
2241 (linux_ptrace_set_additional_flags): New function.
2242 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2244 * linux-nat.c (_initialize_linux_nat): Call
2245 linux_ptrace_set_additional_flags.
2247 2014-07-24 Tom Tromey <tromey@redhat.com>
2249 * make-target-delegates (munge_type, write_debugmethod): New
2251 (debug_names): New global.
2252 ($TARGET_DEBUG_PRINTER): New global.
2253 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2255 Write debug methods. Generate init_debug_target.
2256 * target-debug.h: New file.
2257 * target-delegates.c: Rebuild.
2258 * target.c: Include target-debug.h.
2259 (debug_target): Hoist definition.
2260 (target_kill, target_get_section_table, target_memory_map)
2261 (target_flash_erase, target_flash_done, target_detach)
2262 (target_disconnect, target_wait, target_resume)
2263 (target_pass_signals, target_program_signals, target_follow_fork)
2264 (target_mourn_inferior, target_search_memory)
2265 (target_thread_address_space, target_close)
2266 (target_find_new_threads, target_core_of_thread)
2267 (target_verify_memory, target_insert_mask_watchpoint)
2268 (target_remove_mask_watchpoint): Remove targetdebug code.
2269 (debug_to_post_attach, debug_to_prepare_to_store)
2270 (debug_to_files_info, debug_to_insert_breakpoint)
2271 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2272 (debug_to_region_ok_for_hw_watchpoint)
2273 (debug_to_can_accel_watchpoint_condition)
2274 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2275 (debug_to_watchpoint_addr_within_range)
2276 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2277 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2278 (debug_to_terminal_init, debug_to_terminal_inferior)
2279 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2280 (debug_to_terminal_save_ours, debug_to_terminal_info)
2281 (debug_to_load, debug_to_post_startup_inferior)
2282 (debug_to_insert_fork_catchpoint)
2283 (debug_to_remove_fork_catchpoint)
2284 (debug_to_insert_vfork_catchpoint)
2285 (debug_to_remove_vfork_catchpoint)
2286 (debug_to_insert_exec_catchpoint)
2287 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2288 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2289 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2290 (setup_target_debug): Call init_debug_target.
2291 * target.h (TARGET_DEBUG_PRINTER): New macro.
2292 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2293 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2295 2014-07-24 Gary Benson <gbenson@redhat.com>
2297 * exceptions.h (throw_vfatal): Renamed to...
2298 (throw_vquit): New declaration.
2299 (throw_quit): Likewise.
2300 * exceptions.c (throw_vfatal): Renamed to...
2301 (throw_vquit): New function.
2302 (throw_quit): Likewise.
2303 (throw_error): Call throw_verror rather than throw_it.
2304 * utils.h (vfatal): Removed.
2306 * utils.c (vfatal): Removed.
2308 (internal_verror): Replaced call to fatal with call to throw_quit.
2309 (quit): Replaced calls to fatal with calls to throw_quit.
2311 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2313 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2316 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2318 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2319 less than zero in conditional expression.
2321 2014-07-23 Tom Tromey <tromey@redhat.com>
2323 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2324 ($INTRO_PART): Don't match whitespace.
2325 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2327 ($METHOD): Add $METHOD_TRAILER.
2329 (scan_target_h): New sub.
2330 Change main loop not to collect state.
2331 * target-delegates.c: Rebuild.
2333 2014-07-23 Gary Benson <gbenson@redhat.com>
2335 * cp-support.c (gdb_demangle): Fix build on systems without
2338 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2340 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2341 for reference entry value target data value.
2343 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2345 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2346 value_available_contents_eq.
2348 2014-07-22 Pedro Alves <palves@redhat.com>
2350 * value.c (allocate_optimized_out_value): Don't mark value as
2353 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2355 * MAINTAINERS (Write After Approval): Update my email address.
2357 2014-07-20 Doug Evans <dje@google.com>
2360 * remote.c (putpkt_binary): Add text to error message.
2362 2014-07-20 Yao Qi <yao@codesourcery.com>
2364 * eval.c: Remove "Chill" from comments.
2365 * gdbtypes.h: Likewise.
2366 * symtab.h: Likewise.
2368 2014-07-20 Yao Qi <yao@codesourcery.com>
2370 * std-operator.def: Update comments to TERNOP_SLICE.
2372 2014-07-20 Yao Qi <yao@codesourcery.com>
2374 * std-operator.def: Remove BINOP_RANGE.
2375 * breakpoint.c (watchpoint_exp_is_const): Update.
2376 * expprint.c (dump_subexp_body_standard): Likewise.
2377 * eval.c (init_array_element): Remove dead code.
2378 (evaluate_subexp_standard): Likewise.
2380 2014-07-20 Yao Qi <yao@codesourcery.com>
2382 * std-operator.def: Remove BINOP_IN.
2383 * breakpoint.c (watchpoint_exp_is_const): Update.
2384 * eval.c (evaluate_subexp_standard): Likewise.
2385 * expprint.c (dump_subexp_body_standard): Likewise.
2387 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2389 * microblaze-tdep.c (microblaze_register_names): Add
2390 the rshr and rslr register names.
2391 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2392 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2393 Use of tdesc_numbered_register. Use of
2394 microblaze_register_g_packet_guesses. Use of
2395 tdesc_use_registers. Use of set_gdbarch_register_type.
2396 (microblaze_register_g_packet_guesses): New.
2397 * microblaze-tdep.h (microblaze_reg_num): Add
2398 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2399 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2400 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2401 * features/microblaze-core.xml: New file.
2402 * features/microblaze-stack-protect.xml: New file.
2403 * features/microblaze-with-stack-protect.c: New file.
2404 * features/microblaze-with-stack-protect.xml: New file.
2405 * features/microblaze.xml: New file.
2406 * features/microblaze.c: New file.
2407 * features/Makefile (microblaze-with-stack-protect): Add
2408 microblaze-with-stack-protect microblaze and microblaze-expedite.
2409 * regformats/microblaze-with-stack-protect.dat: New file.
2410 * regformats/microblaze.dat: New file.
2411 * doc/gdb.texinfo (MicroBlaze Features): Added.
2413 2014-07-18 Tom Tromey <tromey@redhat.com>
2415 * exec.c (exec_ops): Now static.
2416 * exec.h (exec_ops): Don't declare.
2418 2014-07-18 Tom Tromey <tromey@redhat.com>
2420 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2421 to find_target_beneath.
2422 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2423 find_target_beneath.
2424 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2426 2014-07-18 Tom Tromey <tromey@redhat.com>
2429 * utils.c (quit): Use target_supports_terminal_ours.
2430 * target.h (target_supports_terminal_ours): Declare.
2431 * target.c (target_supports_delete_record): Don't check
2432 to_delete_record against NULL.
2433 (target_supports_terminal_ours): New function.
2435 2014-07-18 Tom Tromey <tromey@redhat.com>
2438 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2439 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2440 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2441 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2442 * windows-nat.c (windows_xfer_partial): Always delegate.
2443 * record-btrace.c (record_btrace_xfer_partial): Simplify
2445 (record_btrace_fetch_registers, record_btrace_store_registers)
2446 (record_btrace_prepare_to_store, record_btrace_resume)
2447 (record_btrace_wait, record_btrace_find_new_threads)
2448 (record_btrace_thread_alive): Likewise.
2449 * procfs.c (procfs_xfer_partial): Always delegate.
2450 * corelow.c (core_xfer_partial): Always delegate.
2451 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2453 2014-07-18 Tom Tromey <tromey@redhat.com>
2455 * exec.c (exec_make_note_section): Move earlier.
2457 2014-07-17 Doug Evans <dje@google.com>
2460 * maint.c (count_symtabs_and_blocks): Handle NULL
2461 current_program_space.
2462 (report_command_stats): Check global enabled flag in addition to
2463 recorded enabled flag.
2464 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2466 2014-07-16 Pedro Alves <palves@redhat.com>
2468 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2470 2014-07-16 Tom Tromey <tromey@redhat.com>
2472 * target.h (struct target_ops) <to_delete_record>: Reformat
2475 2014-07-16 Tom Tromey <tromey@redhat.com>
2477 * target-delegates.c: Rebuild.
2479 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2481 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2482 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2483 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2484 (avr_pointer_to_address): Likewise.
2485 (avr_address_class_type_flags): New function.
2486 (avr_address_class_type_flags_to_name): Likewise.
2487 (avr_address_class_name_to_type_flags): Likewise.
2488 (avr_gdbarch_init): Set address_class_type_flags,
2489 address_class_type_flags_to_name and
2490 address_class_name_to_type_flags.
2492 2014-07-15 Pedro Alves <palves@redhat.com>
2494 * linux-nat.c (kill_callback): Save errno and work with saved
2497 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2499 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2501 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2503 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2504 breakpoint support correctly.
2506 2014-07-14 Pedro Alves <palves@redhat.com>
2508 * utils.c (prompt_for_continue): Call target_terminal_ours.
2510 2014-07-14 Pedro Alves <palves@redhat.com>
2512 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2513 catch_errors. Don't re-enable stdin or notify observers where,
2515 (fetch_inferior_event_wrapper): Delete.
2517 2014-07-14 Pedro Alves <palves@redhat.com>
2520 * top.c: Include "inf-loop.h".
2521 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2523 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2525 (gdb_readline_wrapper): Store whether the target is async, and
2528 2014-07-14 Pedro Alves <palves@redhat.com>
2531 * top.c (gdb_readline_wrapper_line): Tweak comment.
2532 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2533 the input handler callback.
2535 2014-07-14 Pedro Alves <palves@redhat.com>
2538 * main.c: Include event-top.h.
2539 (handle_command_errors): New function.
2540 (catch_command_errors, catch_command_errors_const): Use it.
2542 2014-07-14 Pedro Alves <palves@redhat.com>
2544 * exceptions.c (catch_command_errors, catch_command_errors_const):
2546 * exceptions.h (catch_command_errors_ftype)
2547 (catch_command_errors_const_ftype): Moved to main.c.
2548 (catch_command_errors, catch_command_errors_const): Delete
2550 * main.c (catch_command_errors_ftype)
2551 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2552 (catch_command_errors, catch_command_errors_const)): Moved here
2553 from exceptions.c and make static.
2555 2014-07-14 Pedro Alves <palves@redhat.com>
2557 * exceptions.c (print_any_exception): Delete.
2558 (catch_exceptions_with_msg): Use exception_print instead of
2559 print_any_exception.
2560 (catch_errors): Use exception_fprintf instead of
2561 print_any_exception.
2562 (catch_command_errors, catch_command_errors_const): Use
2563 exception_print instead of print_any_exception.
2565 2014-07-14 Pedro Alves <palves@redhat.com>
2567 * infcall.c (run_inferior_call): Set 'sync_execution' while
2568 running the inferior call.
2570 2014-07-14 Pedro Alves <palves@redhat.com>
2572 * value.c (value_contents_equal): Delete function.
2573 * value.h (value_contents_equal): Delete declaration.
2575 2014-07-14 Tom Tromey <tromey@redhat.com>
2578 * gdbtypes.c (is_dynamic_type_internal): New function, from
2580 (is_dynamic_type): Rewrite.
2581 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2582 (resolve_dynamic_struct): Likewise.
2583 (resolve_dynamic_type_internal): New function, from
2584 resolve_dynamic_type.
2585 (resolve_dynamic_type): Rewrite.
2587 2014-07-14 Tom Tromey <tromey@redhat.com>
2589 * target.c (target_require_runnable): Also check record_stratum.
2592 2014-07-11 Yao Qi <yao@codesourcery.com>
2594 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2595 thumb_instruction_restores_sp return true.
2597 2014-07-11 Yao Qi <yao@codesourcery.com>
2599 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2600 (thumb_in_function_epilogue_p): Call
2601 thumb_instruction_restores_sp.
2603 2014-07-11 Yao Qi <yao@codesourcery.com>
2605 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2607 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2609 2014-07-11 Gary Benson <gbenson@redhat.com>
2611 * amd64-linux-nat.c (gdbcore.h): Remove include.
2612 (regset.h): Likewise.
2613 (nat/linux-btrace.h): Likewise.
2614 (btrace.h): Likewise.
2615 (gdb_assert.h): Likewise.
2616 (string.h): Likewise.
2617 (sys/uio.h): Likewise.
2618 (sys/debugreg.h): Likewise.
2619 (sys/syscall.h): Likewise.
2620 (sys/procfs.h): Likewise.
2621 (sys/user.h): Likewise.
2622 (asm/ptrace.h): Likewise.
2623 (i386-nat.h): Likewise.
2624 * i386-linux-nat.c (i386-nat.h): Likewise.
2625 (regset.h): Likewise.
2626 (target.h): Likewise.
2627 (linux-nat.h): Likewise.
2628 (nat/linux-btrace.h): Likewise.
2629 (btrace.h): Likewise.
2630 (gdb_assert.h): Likewise.
2631 (string.h): Likewise.
2632 (sys/uio.h): Likewise.
2633 (sys/user.h): Likewise.
2634 (sys/procfs.h): Likewise.
2635 (sys/reg.h): Likewise.
2636 (sys/debugreg.h): Likewise.
2637 (ORIG_EAX): Remove definition.
2639 2014-07-11 Gary Benson <gbenson@redhat.com>
2641 * i386-linux-nat.h: New file.
2642 * x86-linux-nat.h: Likewise.
2643 * x86-linux-nat.c: Likewise.
2644 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2645 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2646 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2647 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2648 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2649 (PTRACE_SETREGSET): Likewise.
2650 (arch_lwp_info): Now in x86-linux-nat.c.
2651 (have_ptrace_getregset): Now in x86-linux-nat.h.
2652 (x86_linux_dr_get): Now in x86-linux-nat.c.
2653 (x86_linux_dr_set): Likewise.
2654 (x86_linux_dr_get_addr): Likewise.
2655 (x86_linux_dr_get_control): Likewise.
2656 (x86_linux_dr_get_status): Likewise.
2657 (update_debug_registers_callback): Likewise.
2658 (x86_linux_dr_set_control): Likewise.
2659 (x86_linux_dr_set_addr): Likewise.
2660 (x86_linux_prepare_to_resume): Likewise.
2661 (x86_linux_new_thread): Likewise.
2662 (x86_linux_new_fork): Likewise.
2663 (x86_linux_get_thread_area): Likewise.
2664 (super_post_startup_inferior): Likewise.
2665 (x86_linux_child_post_startup_inferior): Likewise.
2666 (AMD64_LINUX_USER64_CS): Likewise.
2667 (AMD64_LINUX_X32_DS): Likewise.
2668 (x86_linux_read_description): Likewise.
2669 (x86_linux_enable_btrace): Likewise.
2670 (x86_linux_disable_btrace): Likewise.
2671 (x86_linux_teardown_btrace): Likewise.
2672 (x86_linux_read_btrace): Likewise.
2673 (x86_linux_create_target): Likewise.
2674 (x86_linux_add_target): Likewise.
2675 * i386-linux-nat.c (x86-linux-nat.h): New include.
2676 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2677 (PTRACE_SETREGSET): Likewise.
2678 (arch_lwp_info): Now in x86-linux-nat.c.
2679 (have_ptrace_getregset): Now in x86-linux-nat.h.
2680 (x86_linux_dr_get): Now in x86-linux-nat.c.
2681 (x86_linux_dr_set): Likewise.
2682 (x86_linux_dr_get_addr): Likewise.
2683 (x86_linux_dr_get_control): Likewise.
2684 (x86_linux_dr_get_status): Likewise.
2685 (update_debug_registers_callback): Likewise.
2686 (x86_linux_dr_set_control): Likewise.
2687 (x86_linux_dr_set_addr): Likewise.
2688 (x86_linux_prepare_to_resume): Likewise.
2689 (x86_linux_new_thread): Likewise.
2690 (x86_linux_new_fork): Likewise.
2691 (x86_linux_get_thread_area): Likewise.
2692 (super_post_startup_inferior): Likewise.
2693 (x86_linux_child_post_startup_inferior): Likewise.
2694 (AMD64_LINUX_USER64_CS): Likewise.
2695 (AMD64_LINUX_X32_DS): Likewise.
2696 (x86_linux_read_description): Likewise.
2697 (x86_linux_enable_btrace): Likewise.
2698 (x86_linux_disable_btrace): Likewise.
2699 (x86_linux_teardown_btrace): Likewise.
2700 (x86_linux_read_btrace): Likewise.
2701 (x86_linux_create_target): Likewise.
2702 (x86_linux_add_target): Likewise.
2704 2014-07-11 Gary Benson <gbenson@redhat.com>
2706 * amd64-linux-nat.c: Comment and whitespace changes.
2707 * i386-linux-nat.c: Comment and whitespace changes.
2709 2014-07-11 Gary Benson <gbenson@redhat.com>
2711 * amd64-linux-nat.c (x86_linux_create_target): New function.
2712 (x86_linux_add_target): Likewise.
2713 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2714 * i386-linux-nat.c (x86_linux_create_target): New function.
2715 (x86_linux_add_target): Likewise.
2716 (_initialize_i386_linux_nat): Delegate to the above new functions.
2718 2014-07-11 Gary Benson <gbenson@redhat.com>
2720 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2721 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2722 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2723 (ps_get_thread_area): Delegate to the above.
2725 2014-07-11 Gary Benson <gbenson@redhat.com>
2727 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2728 x86_linux_read_description. All uses updated. amd64-specific
2729 code conditionalized. Conditionalized i386-specific code added.
2730 Redundant cast removed.
2731 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2732 x86_linux_read_description. All uses updated. i386-specific
2733 code conditionalized. Conditionalized amd64-specific code added.
2734 One sizeof replaced with the actual type it is describing.
2736 2014-07-11 Gary Benson <gbenson@redhat.com>
2738 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2739 x86_linux_dr_get. All uses updated.
2740 (amd64_linux_dr_set): Renamed to
2741 x86_linux_dr_set. All uses updated.
2742 (amd64_linux_dr_get_addr): Renamed to
2743 x86_linux_dr_get_addr. All uses updated.
2744 (amd64_linux_dr_get_control): Renamed to
2745 x86_linux_dr_get_control. All uses updated.
2746 (amd64_linux_dr_get_status): Renamed to
2747 x86_linux_dr_get_status. All uses updated.
2748 (amd64_linux_dr_set_control): Renamed to
2749 x86_linux_dr_set_control. All uses updated.
2750 (amd64_linux_dr_set_addr): Renamed to
2751 x86_linux_dr_set_addr. All uses updated.
2752 (amd64_linux_prepare_to_resume): Renamed to
2753 x86_linux_prepare_to_resume. All uses updated.
2754 (amd64_linux_new_thread): Renamed to
2755 x86_linux_new_thread. All uses updated.
2756 (amd64_linux_new_fork): Renamed to
2757 x86_linux_new_fork. All uses updated.
2758 (amd64_linux_child_post_startup_inferior): Renamed to
2759 x86_linux_child_post_startup_inferior. All uses updated.
2760 (amd64_linux_enable_btrace): Renamed to
2761 x86_linux_enable_btrace. All uses updated.
2762 (amd64_linux_disable_btrace): Renamed to
2763 x86_linux_disable_btrace. All uses updated.
2764 (amd64_linux_teardown_btrace): Renamed to
2765 x86_linux_teardown_btrace. All uses updated.
2766 (amd64_linux_read_btrace): Renamed to
2767 x86_linux_read_btrace. All uses updated.
2768 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2769 x86_linux_dr_get. All uses updated.
2770 (i386_linux_dr_set): Renamed to
2771 x86_linux_dr_set. All uses updated.
2772 (i386_linux_dr_get_addr): Renamed to
2773 x86_linux_dr_get_addr. All uses updated.
2774 (i386_linux_dr_get_control): Renamed to
2775 x86_linux_dr_get_control. All uses updated.
2776 (i386_linux_dr_get_status): Renamed to
2777 x86_linux_dr_get_status. All uses updated.
2778 (i386_linux_dr_set_control): Renamed to
2779 x86_linux_dr_set_control. All uses updated.
2780 (i386_linux_dr_set_addr): Renamed to
2781 x86_linux_dr_set_addr. All uses updated.
2782 (i386_linux_prepare_to_resume): Renamed to
2783 x86_linux_prepare_to_resume. All uses updated.
2784 (i386_linux_new_thread): Renamed to
2785 x86_linux_new_thread. All uses updated.
2786 (i386_linux_new_fork): Renamed to
2787 x86_linux_new_fork. All uses updated.
2788 (i386_linux_child_post_startup_inferior): Renamed to
2789 x86_linux_child_post_startup_inferior. All uses updated.
2790 (i386_linux_enable_btrace): Renamed to
2791 x86_linux_enable_btrace. All uses updated.
2792 (i386_linux_disable_btrace): Renamed to
2793 x86_linux_disable_btrace. All uses updated.
2794 (i386_linux_teardown_btrace): Renamed to
2795 x86_linux_teardown_btrace. All uses updated.
2796 (i386_linux_read_btrace): Renamed to
2797 x86_linux_read_btrace. All uses updated.
2799 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2801 * remote.c (extended_remote_post_attach): New function.
2802 (init_extended_remote_ops): Install it as to_post_attach method.
2804 2014-07-09 Pedro Alves <palves@redhat.com>
2806 * infcmd.c (attach_command_post_wait): Don't call
2807 target_terminal_inferior here.
2808 (attach_command): Call it here instead.
2810 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2812 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2814 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2815 from varobj.c, with additional checks.
2816 (c_varobj_ops): Fill in is_path_expr_parent field.
2817 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2818 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2820 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2822 (varobj_default_is_path_expr_parent): New function.
2823 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2824 (varobj_default_is_path_expr_parent): Declare new function.
2826 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2828 * infcmd.c (finish_backward): Turn internal error into normal error.
2830 2014-07-07 Pedro Alves <palves@redhat.com>
2833 * remote.c (async_handle_remote_sigint)
2834 (async_handle_remote_sigint_twice): Call
2835 gdb_call_async_signal_handler instead of
2836 mark_async_signal_handler.
2838 2014-07-07 Tom Tromey <tromey@redhat.com>
2840 * target-delegates.c: Rebuild.
2841 * target.c (target_info_record): Remove.
2842 * record.c (info_record_command): Unconditionally call
2844 * target.h (struct target_ops) <to_info_record>: Use
2845 TARGET_DEFAULT_IGNORE.
2846 (target_info_record): Remove.
2848 2014-07-07 Tom Tromey <tromey@redhat.com>
2850 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2851 TARGET_DEFAULT_NORETURN.
2852 * target.c (generic_tls_error): New function.
2853 (target_translate_tls_address): Don't search target stack.
2854 * target-delegates.c: Rebuild.
2855 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2857 * linux-thread-db.c (thread_db_get_thread_local_address):
2858 Unconditionally call beneath target.
2860 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2862 * cli/cli-logging.c (pop_output_files): Assign targerr to
2865 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2867 * MAINTAINERS (Write After Approval): Update my email address.
2869 2014-07-02 Gary Benson <gbenson@redhat.com>
2871 * proc-service.c (ps_xfer_memory): Update comment.
2872 (ps_pstop): Remove unused function.
2873 (ps_pcontinue): Likewise.
2874 (ps_lstop): Likewise.
2875 (ps_lcontinue): Likewise.
2876 (ps_lgetxregsize): Likewise.
2877 (ps_lgetxregs): Likewise.
2878 (ps_lsetxregs): Likewise.
2879 (ps_plog): Likewise.
2880 (ps_ptread): Likewise.
2881 (ps_ptwrite): Likewise.
2883 2014-07-01 Mark Wielaard <mjw@redhat.com>
2885 * dwarf2read.c (add_array_cv_type): New function.
2886 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2887 (read_tag_volatile_type): Likewise.
2889 2014-07-01 Tom Tromey <tromey@redhat.com>
2891 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2892 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2893 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2894 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2895 * command.h (cmd_cfunc_ftype): Move earlier.
2896 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2897 (add_com, add_info): Use cmd_cfunc_ftype.
2899 2014-06-30 Tom Tromey <tromey@redhat.com>
2901 * symtab.c (operator_chars): Make parameters and return type
2903 (file_matches): Make "files" const.
2904 (struct search_symbols_data) <files>: Now const.
2905 (search_symbols): Make "regexp" and "files" parameters const.
2907 (symtab_symbol_info): Remove cast.
2908 (rbreak_command): Update.
2909 * symtab.h (search_symbols): Update.
2911 2014-06-27 Yao Qi <yao@codesourcery.com>
2913 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2914 Change parameter type to 'struct thread_info *'. Caller
2916 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2918 * dummy-frame.c (struct dummy_frame_id): New.
2919 (dummy_frame_id_eq): New function.
2920 (struct dummy_frame) <id>: Change its type to 'struct
2922 (dummy_frame_push): Add parameter ptid and save it in
2924 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2926 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2928 (lookup_dummy_frame): Change parameter type to 'struct
2929 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2930 instead of frame_id_eq.
2931 (dummy_frame_pop): Add parameter ptid. Callers updated.
2932 Update comments. Compose dummy_frame_id and pass it to
2934 (dummy_frame_discard): Add parameter ptid.
2935 (dummy_frame_sniffer): Compose dummy_frame_id and call
2936 dummy_frame_id_eq instead of frame_id_eq.
2937 (fprint_dummy_frames): Print ptid.
2938 * dummy-frame.h: Remove comments.
2939 (dummy_frame_push): Add ptid in declaration.
2940 (dummy_frame_pop, dummy_frame_discard): Likewise.
2942 2014-06-26 Tom Tromey <tromey@redhat.com>
2944 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2945 * command.h (error_no_arg): Update.
2947 2014-06-26 Tom Tromey <tromey@redhat.com>
2949 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2950 (do_show_command): Make "arg" const.
2951 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2953 2014-06-26 Tom Tromey <tromey@redhat.com>
2955 * record-full.c (record_full_get_bookmark): Make "args" const.
2956 (record_full_goto_bookmark): Make "raw_bookmark" const.
2957 * record.c (record_goto): New function.
2958 (cmd_record_goto): Use it. Now static.
2959 * record.h (record_goto): Declare.
2960 (cmd_record_goto): Remove declaration.
2961 * target-delegates.c: Rebuild.
2962 * target.h (struct target_ops) <to_get_bookmark,
2963 to_goto_bookmark>: Make parameter const.
2965 2014-06-26 Tom Tromey <tromey@redhat.com>
2967 * defs.h (generic_load): Update.
2968 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2969 * monitor.c (monitor_load): Make "args" const.
2970 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2971 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2973 (mips_load): Make "file" const.
2974 * remote-sim.c (gdbsim_load): Make "args" const.
2975 * remote.c (remote_load): Make "name" const.
2976 * symfile.c (generic_load): Make "args" const.
2977 * target-delegates.c: Rebuild.
2978 * target.c (target_load): Make "arg" const.
2979 (debug_to_load): Make "args" const.
2980 * target.h (struct target_ops) <to_load>: Make parameter const.
2981 (target_load): Update.
2983 2014-06-26 Tom Tromey <tromey@redhat.com>
2986 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2987 (dwarf2_physname, read_partial_die)
2988 (guess_partial_die_structure_name, fixup_partial_die)
2989 (guess_full_die_structure_name, anonymous_struct_prefix)
2990 (dwarf2_name): Use per-BFD obstack.
2992 2014-06-26 Yao Qi <yao@codesourcery.com>
2994 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2995 dummyframe and this_id into inner block below.
2997 2014-06-26 Yao Qi <yao@codesourcery.com>
2999 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3000 with "signal_pass[0]" in the initialization of signal_pass.
3002 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3004 * record-btrace.c (record_btrace_generating_corefile)
3005 (record_btrace_prepare_to_generate_core)
3006 (record_btrace_done_generating_core): New.
3007 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3008 (record_btrace_store_registers, record_btrace_prepare_to_store):
3009 Forward request when generating a core file.
3010 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3011 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3012 to_done_generating_core.
3014 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3016 * target.h (target_ops) <to_prepare_to_generate_core>
3017 <to_done_generating_core>: New.
3018 (target_prepare_to_generate_core, target_done_generating_core): New.
3019 * target.c (target_prepare_to_generate_core)
3020 (target_done_generating_core): New.
3021 * target-delegates.c: Regenerate.
3022 * gcore.c: (write_gcore_file): Rename to ...
3023 (write_gcore_file_1): ...this.
3024 (write_gcore_file): Call target_prepare_to_generate_core
3025 and target_done_generating_core.
3027 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3029 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3030 * gcore.c (write_gcore_file): Free memory returned from
3031 make_corefile_notes.
3032 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3033 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3035 2014-06-24 Yao Qi <yao@codesourcery.com>
3037 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3038 (arm_linux_init_abi): Set skip_trampoline_code with
3039 gdbarch_skip_trampoline_code instead of
3040 find_solib_trampoline_target.
3042 2014-06-24 Yao Qi <yao@codesourcery.com>
3044 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3045 arm_skip_bx_reg returns non-zero.
3047 2014-06-24 Yao Qi <yao@codesourcery.com>
3049 * arm-tdep.c (arm_skip_bx_reg): New function.
3050 (arm_skip_stub): Call arm_skip_bx_reg.
3052 2014-06-23 Don Breazeal <donb@codesourcery.com>
3054 * MAINTAINERS: Add myself as write-after-approval maintainer.
3056 2014-06-23 Pedro Alves <palves@redhat.com>
3058 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3059 DR_CONTROL before setting DR0..DR3.
3060 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3061 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3062 bits of DR_CONTROL related to the debug register slot being
3063 disabled. If all slots are vacant, clear local slowdown as well,
3064 and assert DR_CONTROL is 0.
3066 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3068 * python/lib/gdb/command/xmethods.py
3069 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3070 current progspace only if the string "progspace" matches LOCUS_RE.
3072 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3074 Fix --with-system-readline with readline-6.3 patch 5.
3075 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3076 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3079 2014-06-20 Tom Tromey <tromey@redhat.com>
3081 * dwarf2read.c (dw2_get_real_path): Use correct type in
3083 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3085 2014-06-20 Gary Benson <gbenson@redhat.com>
3087 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3088 * common/glibc_thread_db.h: Likewise.
3089 * common/i386-cpuid.h: Likewise.
3090 * common/i386-gcc-cpuid.h: Likewise.
3091 * common/linux-btrace.h: Likewise.
3092 * common/linux-osdata.h: Likewise.
3093 * common/linux-procfs.h: Likewise.
3094 * common/linux-ptrace.h: Likewise.
3095 * common/mips-linux-watch.h: Likewise.
3096 * common/linux-btrace.c: Moved to nat.
3097 * common/linux-osdata.c: Likewise.
3098 * common/linux-procfs.c: Likewise.
3099 * common/linux-ptrace.c: Likewise.
3100 * common/mips-linux-watch.c: Likewise.
3101 * nat/gdb_thread_db.h: Moved from common.
3102 * nat/glibc_thread_db.h: Likewise.
3103 * nat/i386-cpuid.h: Likewise.
3104 * nat/i386-gcc-cpuid.h: Likewise.
3105 * nat/linux-btrace.c: Likewise.
3106 * nat/linux-btrace.h: Likewise.
3107 * nat/linux-osdata.c: Likewise.
3108 * nat/linux-osdata.h: Likewise.
3109 * nat/linux-procfs.c: Likewise.
3110 * nat/linux-procfs.h: Likewise.
3111 * nat/linux-ptrace.c: Likewise.
3112 * nat/linux-ptrace.h: Likewise.
3113 * nat/mips-linux-watch.c: Likewise.
3114 * nat/mips-linux-watch.h: Likewise.
3115 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3116 (object file files): Reordered.
3117 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3118 of glibc_thread_db.h.
3120 2014-06-20 Gary Benson <gbenson@redhat.com>
3122 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3123 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3124 (i386_dr_low): Likewise.
3125 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3126 (i386_dr_low_set_addr): Likewise.
3127 (i386_dr_low_get_addr): Likewise.
3128 (i386_dr_low_can_set_control): Likewise.
3129 (i386_dr_low_set_control): Likewise.
3130 (i386_dr_low_get_control): Likewise.
3131 (i386_dr_low_get_status): Likewise.
3132 (i386_get_debug_register_length): Likewise.
3133 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3134 (i386_dr_low): Likewise.
3135 * nat/i386-dregs.c (i386-low.h): Remove include.
3136 (i386-nat.h): Likewise.
3137 (nat/i386-dregs.h): New include.
3138 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3139 (i386_dr_low_set_addr): Likewise.
3140 (i386_dr_low_get_addr): Likewise.
3141 (i386_dr_low_can_set_control): Likewise.
3142 (i386_dr_low_set_control): Likewise.
3143 (i386_dr_low_get_control): Likewise.
3144 (i386_dr_low_get_status): Likewise.
3145 (i386_get_debug_register_length): Likewise.
3146 (debug_hw_points): Likewise.
3148 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3150 * Makefile.in (SFILES): Add d-exp.y.
3151 (YYFILES): Add d-exp.c.
3152 (YYOBJ): Add d-exp.o.
3153 (local-maintainer-clean): Delete d-exp.c.
3154 * d-exp.y: New file.
3155 * d-lang.h (d_parse): New declaration.
3156 (d_error): New declaration.
3157 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3158 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3159 PREC_ORDER operators.
3160 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3162 2014-06-19 Yao Qi <yao@codesourcery.com>
3164 * gdbthread.h (any_running): Remove the declaration.
3165 * thread.c (any_running): Remove.
3167 2014-06-19 Yao Qi <yao@codesourcery.com>
3169 * gdbthread.h (struct thread_info) <state>: Change its type to
3170 'enum thread_state'. Update comments.
3172 2014-06-19 Pedro Alves <palves@redhat.com>
3174 * gdbthread.h (ALL_THREADS): Delete.
3175 (ALL_NON_EXITED_THREADS): New macro.
3176 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3177 instead of ALL_THREADS.
3178 * infrun.c (find_thread_needs_step_over)
3179 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3180 instead of ALL_THREADS.
3181 * record-btrace.c (record_btrace_open)
3182 (record_btrace_stop_recording, record_btrace_close)
3183 (record_btrace_is_replaying, record_btrace_resume)
3184 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3185 * remote.c (append_pending_thread_resumptions): Likewise.
3186 * thread.c (thread_apply_all_command): Likewise.
3188 2014-06-19 Gary Benson <gbenson@redhat.com>
3190 * i386-nat.c (i386_stopped_by_watchpoint):
3191 Use i386_dr_stopped_by_watchpoint.
3192 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3193 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3195 2014-06-19 Gary Benson <gbenson@redhat.com>
3197 * nat/i386-dregs.c: New file.
3198 * Makefile.in (i386-dregs.o): New rule.
3199 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3200 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3201 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3202 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3203 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3204 * config/i386/go32.mh (NATDEPFILES): Likewise.
3205 * config/i386/linux.mh (NATDEPFILES): Likewise.
3206 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3207 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3208 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3209 * i386-nat.h (debug_hw_points): New declaration.
3210 * i386-nat.c (breakpoint.h): Remove include.
3211 (command.h): Likewise.
3212 (target.h): Likewise.
3213 (gdb_assert.h): Likewise.
3214 (debug_hw_points): Made nonstatic.
3215 (debug_printf): Now in i386-dregs.c.
3216 (TARGET_HAS_DR_LEN_8): Likewise.
3217 (DR_CONTROL_SHIFT): Likewise.
3218 (DR_CONTROL_SIZE): Likewise.
3219 (DR_RW_EXECUTE): Likewise.
3220 (DR_RW_WRITE): Likewise.
3221 (DR_RW_READ): Likewise.
3222 (DR_RW_IORW): Likewise.
3223 (DR_LEN_1): Likewise.
3224 (DR_LEN_2): Likewise.
3225 (DR_LEN_4): Likewise.
3226 (DR_LEN_8): Likewise.
3227 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3228 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3229 (DR_ENABLE_SIZE): Likewise.
3230 (DR_LOCAL_SLOWDOWN): Likewise.
3231 (DR_GLOBAL_SLOWDOWN): Likewise.
3232 (DR_CONTROL_RESERVED): Likewise.
3233 (I386_DR_CONTROL_MASK): Likewise.
3234 (I386_DR_VACANT): Likewise.
3235 (I386_DR_LOCAL_ENABLE): Likewise.
3236 (I386_DR_GLOBAL_ENABLE): Likewise.
3237 (I386_DR_DISABLE): Likewise.
3238 (I386_DR_SET_RW_LEN): Likewise.
3239 (I386_DR_GET_RW_LEN): Likewise.
3240 (I386_DR_WATCH_HIT): Likewise.
3241 (i386_wp_op_t): Likewise.
3242 (i386_show_dr): Likewise.
3243 (i386_length_and_rw_bits): Likewise.
3244 (i386_insert_aligned_watchpoint): Likewise.
3245 (i386_remove_aligned_watchpoint): Likewise.
3246 (i386_handle_nonaligned_watchpoint): Likewise.
3247 (i386_update_inferior_debug_regs): Likewise.
3248 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3249 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3250 (i386_region_ok_for_watchpoint):
3251 Use i386_dr_region_ok_for_watchpoint.
3252 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3254 2014-06-19 Gary Benson <gbenson@redhat.com>
3256 * i386-nat.c (i386_insert_hw_breakpoint): Use
3257 i386_insert_watchpoint.
3258 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3260 2014-06-19 Gary Benson <gbenson@redhat.com>
3262 * i386-nat.c (i386_dr_show): Renamed to
3263 i386_show_dr and made static. All uses updated.
3264 (i386_dr_length_and_rw_bits): Renamed to
3265 i386_length_and_rw_bits and made static.
3267 (i386_dr_insert_aligned_watchpoint): Renamed to
3268 i386_insert_aligned_watchpoint and made static.
3270 (i386_dr_remove_aligned_watchpoint): Renamed to
3271 i386_remove_aligned_watchpoint and made static.
3273 (i386_dr_update_inferior_debug_regs): Renamed to
3274 i386_update_inferior_debug_regs and made static.
3276 * nat/i386-dregs.h (i386_dr_show): Removed.
3277 (i386_dr_length_and_rw_bits): Likewise.
3278 (i386_dr_insert_aligned_watchpoint): Likewise.
3279 (i386_dr_remove_aligned_watchpoint): Likewise.
3280 (i386_dr_update_inferior_debug_regs): Likewise.
3282 2014-06-19 Gary Benson <gbenson@redhat.com>
3284 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3285 * configure: Regenerate.
3286 * config.in: Likewise.
3287 * main.c (signal.h): New include.
3288 (setup_alternate_signal_stack): New function.
3289 (captured_main): Call the above.
3290 * cp-support.c (signal.h): New include.
3291 (catch_demangler_crashes): New flag.
3292 (SIGJMP_BUF): New define.
3293 (SIGSETJMP): Likewise.
3294 (SIGLONGJMP): Likewise.
3295 (gdb_demangle_jmp_buf): New static global.
3296 (gdb_demangle_attempt_core_dump): Likewise.
3297 (gdb_demangle_signal_handler): New function.
3298 (gdb_demangle): If catch_demangler_crashes is set, install the
3299 above signal handler before calling bfd_demangle, and restore
3300 the original signal handler afterwards. Display the offending
3301 symbol and call demangler_warning the first time a segmentation
3303 (_initialize_cp_support): New maint set/show command.
3305 2014-06-19 Gary Benson <gbenson@redhat.com>
3307 * utils.h (resource_limit_kind): New enum.
3308 (can_dump_core): New declaration.
3309 (warn_cant_dump_core): Likewise.
3310 (dump_core): Likewise.
3311 * utils.c (dump_core): Made nonstatic. Added new
3312 parameter "limit_kind".
3313 (can_dump_core): Made nonstatic. Moved printing code to...
3314 (warn_cant_dump_core): New function.
3315 (can_dump_core_warn): Likewise.
3316 (internal_vproblem): Replace calls to can_dump_core with
3317 calls to can_dump_core_warn. Supply new argument to each.
3319 2014-06-19 Gary Benson <gbenson@redhat.com>
3321 * utils.h (demangler_vwarning): New declaration.
3322 (demangler_warning): Likewise.
3323 * utils.c (struct internal_problem)
3324 <user_settable_should_quit>: New field.
3325 <user_settable_should_dump_core>: Likewise
3326 (internal_error_problem): Add values for above new fields.
3327 (internal_warning_problem): Likewise.
3328 (demangler_warning_problem): New static global.
3329 (demangler_vwarning): New function.
3330 (demangler_warning): Likewise.
3331 (add_internal_problem_command): Selectively add commands.
3332 (_initialize_utils): New internal problem command.
3333 * maint.c (maintenance_demangler_warning): New function.
3334 (_initialize_maint_cmds): New command.
3336 2014-06-18 Tom Tromey <tromey@redhat.com>
3338 * f-valprint.c (info_common_command_for_block): Update.
3339 * symtab.h (struct general_symbol_info) <common_block>: Now
3342 2014-06-18 Tom Tromey <tromey@redhat.com>
3344 * symtab.h (struct symtab) <blockvector>: Now const.
3345 * ada-lang.c (ada_add_global_exceptions): Update.
3346 * buildsym.c (augment_type_symtab): Update.
3347 * dwarf2read.c (dw2_lookup_symbol): Update.
3348 * jit.c (finalize_symtab): Update.
3349 * jv-lang.c (add_class_symtab_symbol): Update.
3350 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3352 * objfiles.c (objfile_relocate1): Update.
3353 * psymtab.c (lookup_symbol_aux_psymtabs)
3354 (maintenance_check_psymtabs): Update.
3355 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3357 * spu-tdep.c (spu_catch_start): Update.
3358 * symmisc.c (dump_symtab_1): Update.
3359 * symtab.c (lookup_global_symbol_from_objfile)
3360 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3361 (basic_lookup_transparent_type_quick)
3362 (basic_lookup_transparent_type, find_pc_sect_symtab)
3363 (find_pc_sect_line, search_symbols): Update.
3364 * block.c (find_block_in_blockvector): Make "bl" const.
3365 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3367 (blockvector_contains_pc): Make "bv" const.
3368 (block_for_pc_sect): Update.
3369 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3370 (blockvector_contains_pc): Update.
3371 * breakpoint.c (resolve_sal_pc): Update.
3372 * inline-frame.c (block_starting_point_at): Update.
3374 2014-06-18 Tom Tromey <tromey@redhat.com>
3376 * completer.c (complete_line): Make "line_buffer" const.
3377 * completer.h (complete_line): Update.
3379 2014-06-18 Tom Tromey <tromey@redhat.com>
3381 * symtab.c (add_macro_name): Remove unneeded cast.
3383 2014-06-18 Tom Tromey <tromey@redhat.com>
3385 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3386 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3388 2014-06-18 Tom Tromey <tromey@redhat.com>
3390 * probe.c (info_probes_for_ops): Make "arg" const.
3391 * probe.h (info_probes_for_ops): Update.
3393 2014-06-18 Tom Tromey <tromey@redhat.com>
3395 * varobj.c (varobj_create): Update.
3396 * valops.c (value_of_this): Update.
3397 * tracepoint.c (add_local_symbols, scope_info): Update.
3398 * symtab.h (struct general_symbol_info) <block>: Now const.
3399 * symtab.c (skip_prologue_sal)
3400 (default_make_symbol_completion_list_break_on)
3401 (skip_prologue_using_sal): Update.
3402 * stack.h (iterate_over_block_locals)
3403 (iterate_over_block_local_vars): Update.
3404 * stack.c (print_frame_args): Update.
3405 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3407 (get_selected_block): Make return type const.
3408 * python/py-frame.c (frapy_block): Update.
3409 * python/py-block.c (gdbpy_block_for_pc): Update.
3410 * p-exp.y (%union) <bval>: Now const.
3411 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3412 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3413 * m2-exp.y (%union) <bval>: Now const.
3414 * linespec.c (get_current_search_block): Make return type const.
3415 (create_sals_line_offset, find_label_symbols): Update.
3416 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3418 (block_starting_point_at): Make "block" const.
3419 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3420 (check_exception_resume): Update.
3421 * guile/scm-frame.c (gdbscm_frame_block): Update.
3422 * guile/scm-block.c (gdbscm_lookup_block): Update.
3423 * frame.h (get_frame_block): Update.
3424 (get_selected_block): Make return type const.
3425 * frame.c (frame_id_inner): Update.
3426 * f-valprint.c (info_common_command_for_block)
3427 (info_common_command): Update.
3428 * dwarf2loc.c (dwarf2_find_location_expression)
3429 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3430 (locexpr_describe_location_piece): Update.
3431 * c-exp.y (%union) <bval>: Now const.
3432 * breakpoint.c (resolve_sal_pc): Update.
3433 * blockframe.c (get_frame_block):Make return type const.
3434 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3435 (block_innermost_frame): Update.
3436 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3437 (block_for_pc, block_for_pc_sect): Update.
3438 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3440 (block_for_pc_sect, block_for_pc): Make return type const.
3441 * ax-gdb.c (gen_expr): Update.
3442 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3443 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3444 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3445 (ada_read_var_value): Update.
3446 * ada-exp.y (struct name_info) <block>: Now const.
3448 (block_lookup): Constify.
3450 2014-06-18 Gary Benson <gbenson@redhat.com>
3452 * nat/i386-dregs.h: New file.
3453 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3454 * i386-nat.h (i386-dregs.h): New include.
3455 (DR_FIRSTADDR): Now in i386-dregs.h.
3456 (DR_LASTADDR): Likewise.
3457 (DR_NADDR): Likewise.
3458 (DR_STATUS): Likewise.
3459 (DR_CONTROL): Likewise.
3460 (i386_debug_reg_state): Likewise.
3461 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3463 2014-06-18 Don Breazeal <donb@codesourcery.com>
3465 * breakpoint.c (set_longjmp_breakpoint): Call
3466 momentary_breakpoint_from_master with additional argument.
3467 (set_longjmp_breakpoint_for_call_dummy): Call
3468 momentary_breakpoint_from_master with additional argument.
3469 (set_std_terminate_breakpoint): Call
3470 momentary_breakpoint_from_master with additional argument.
3471 (momentary_breakpoint_from_master): Add argument to function
3472 definition and use it to initialize structure member flag.
3473 (clone_momentary_breakpoint): Call
3474 momentary_breakpoint_from_master with additional argument.
3475 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3476 member flags set in momentary_breakpoint_from_master.
3478 2014-06-18 Gary Benson <gbenson@redhat.com>
3480 * i386-nat.c (i386_show_dr): Renamed to
3481 i386_dr_show and made nonstatic. All uses updated.
3482 (i386_length_and_rw_bits): Renamed to
3483 i386_dr_length_and_rw_bits and made nonstatic.
3485 (i386_insert_aligned_watchpoint): Renamed to
3486 i386_dr_insert_aligned_watchpoint and made nonstatic.
3488 (i386_remove_aligned_watchpoint): Renamed to
3489 i386_dr_remove_aligned_watchpoint and made nonstatic.
3491 (i386_update_inferior_debug_regs): Renamed to
3492 i386_dr_update_inferior_debug_regs and made nonstatic.
3495 2014-06-18 Gary Benson <gbenson@redhat.com>
3497 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3498 (i386_dr_low_can_set_control): Likewise.
3499 (i386_dr_low_set_addr): Likewise.
3500 (i386_dr_low_set_control): Likewise.
3501 (i386_dr_low_get_addr): Likewise.
3502 (i386_dr_low_get_status): Likewise.
3503 (i386_dr_low_get_control): Likewise.
3504 (i386_insert_aligned_watchpoint): Use new macros.
3505 (i386_update_inferior_debug_regs): Likewise.
3506 (i386_stopped_data_address): Likewise.
3508 2014-06-18 Gary Benson <gbenson@redhat.com>
3510 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3511 New parameter. All uses updated.
3513 2014-06-18 Gary Benson <gbenson@redhat.com>
3515 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3518 2014-06-18 Gary Benson <gbenson@redhat.com>
3520 * i386-nat.c (debug_printf): New macro.
3521 (i386_get_debug_register_length): Likewise.
3522 (TARGET_HAS_DR_LEN_8): Use above macro.
3523 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3524 and printf_unfiltered. Use phex to format values.
3526 2014-06-18 Gary Benson <gbenson@redhat.com>
3528 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3531 2014-06-18 Gary Benson <gbenson@redhat.com>
3533 * i386-nat.c: Comment changes.
3535 2014-06-18 Gary Benson <gbenson@redhat.com>
3537 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3539 2014-06-18 Gary Benson <gbenson@redhat.com>
3541 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3542 (i386_insert_aligned_watchpoint): Likewise.
3543 (i386_remove_aligned_watchpoint): Likewise.
3544 (i386_handle_nonaligned_watchpoint): Likewise.
3546 2014-06-18 Gary Benson <gbenson@redhat.com>
3548 * i386-nat.c: Whitespace changes.
3550 2014-06-17 Samuel Bronson <naesten@gmail.com>
3552 * MAINTAINERS: Update Roland McGrath's email address.
3553 Thanks to Sergio Durigan Junior for pointing out that he left
3554 Red Hat a while ago, and giving me a current address.
3556 2014-06-17 Tom Tromey <tromey@redhat.com>
3558 * utils.h (savestring): Remove declaration.
3560 2014-06-17 Tom Tromey <tromey@redhat.com>
3562 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3564 2014-06-16 Keith Seitz <keiths@redhat.com>
3567 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3568 to update the varobj if inferior_ptid is null_ptid.
3570 2014-06-16 Tom Tromey <tromey@redhat.com>
3572 * target.h (struct target_ops) <to_info_proc>: Make parameter
3574 (target_info_proc): Update.
3575 * target.c (target_info_proc): Make "args" const.
3576 * procfs.c (procfs_info_proc): Update.
3577 * linux-tdep.c (linux_info_proc): Update.
3578 (linux_core_info_proc_mappings): Make "args" const.
3579 (linux_core_info_proc): Update.
3580 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3581 * gdbarch.c: Rebuild.
3582 * gdbarch.h: Rebuild.
3583 * corelow.c (core_info_proc): Update.
3585 2014-06-16 Tom Tromey <tromey@redhat.com>
3587 * target.h (struct target_ops) <to_disconnect>: Make parameter
3589 (target_disconnect): Update.
3590 * target.c (target_disconnect): Make "args" const.
3591 * target-delegates.c: Rebuild.
3592 * remote.c (remote_disconnect): Update.
3593 * record.h (record_disconnect): Update.
3594 * record.c (record_disconnect): Update.
3595 * inf-child.c (inf_child_disconnect): Update.
3597 2014-06-16 Tom Tromey <tromey@redhat.com>
3599 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3600 * target.c (debug_to_rcmd, default_rcmd): Update.
3601 * target-delegates.c: Rebuild.
3602 * remote.c (remote_rcmd): Update.
3603 * monitor.c (monitor_rcmd): Update.
3605 2014-06-16 Pedro Alves <palves@redhat.com>
3607 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3608 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3609 have OBJF_SHARED set.
3610 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3611 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3612 instead of OBJF_USERLOADED.
3613 * objfiles.h (OBJF_SHARED): Update comment.
3614 (userloaded_objfile_contains_address_p): Rename to ...
3615 (shared_objfile_contains_address_p): ... this, and update
3617 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3619 (remove_symbol_file_command): Skip objfiles that don't have
3622 2014-06-16 Tom Tromey <tromey@redhat.com>
3624 * minsyms.h (prim_record_minimal_symbol)
3625 (prim_record_minimal_symbol_and_info): Update comments.
3627 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3629 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3630 or --without-guile, according to how GDB was built.
3632 2014-06-13 Tom Tromey <tromey@redhat.com>
3634 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3636 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3638 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3640 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3641 help_list.Pass all_commands, not -1, to help_list.
3642 * cli/cli-dump.c (dump_command, append_command)
3643 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3644 (binary_dump_command, binary_append_command): Pass all_commands,
3645 not -1, to help_list.
3646 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3648 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3650 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3652 * top.c (set_history): Pass all_commands, not -1, to help_list.
3653 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3654 all_commands, not -1, to help_list.
3655 * symfile.c (overlay_command): Pass all_commands, not -1, to
3657 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3659 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3661 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3663 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3664 not -1, to help_list.
3665 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3666 not -1, to help_list.
3667 * maint.c (maintenance_command, maintenance_info_command)
3668 (maintenance_print_command, maintenance_set_cmd): Pass
3669 all_commands, not -1, to help_list.
3670 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3672 * language.c (set_check): Pass all_commands, not -1, to help_list.
3673 * infcmd.c (unset_command): Pass all_commands, not -1, to
3675 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3677 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3679 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3681 * breakpoint.c (save_command): Pass all_commands, not -1, to
3683 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3684 all_commands, not -1, to help_list.
3686 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3688 * regcache.c (struct register_to_invalidate): New structure.
3689 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3691 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3693 2014-06-12 Yao Qi <yao@codesourcery.com>
3695 * varobj.c (varobj_get_num_children): Call
3696 varobj_is_dynamic_p.
3697 (varobj_list_children): Likewise.
3698 (varobj_update): Likewise. Update comments.
3700 2014-06-12 Yao Qi <yao@codesourcery.com>
3702 * varobj.c (varobj_pretty_printed_p): Rename to ...
3703 (varobj_is_dynamic_p): ... this. New function.
3704 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3705 (varobj_is_dynamic_p): Declare.
3706 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3707 (mi_print_value_p, varobj_update_one): Likewise.
3709 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3710 Yao Qi <yao@codesourcery.com>
3712 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3713 (varobj_get_iterator): Wrap up code for pretty-printer by
3714 "#if HAVE_PYTHON" and "#endif".
3715 (update_dynamic_varobj_children): Likewise.
3717 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3718 Yao Qi <yao@codesourcery.com>
3720 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3721 gdb_python_initialized is false. Move some code from varobj.c.
3722 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3723 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3724 (struct varobj_item): Moved to varobj-iter.h".
3725 (varobj_clear_saved_item): New function.
3726 (update_dynamic_varobj_children): Move python-related code to
3728 (free_variable): Call varobj_clear_saved_item and
3731 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3732 Yao Qi <yao@codesourcery.com>
3734 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3735 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3736 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3737 (py-varobj.o): New rule.
3738 * python/py-varobj.c: New file.
3739 * python/python-internal.h (py_varobj_get_iterator): Declare.
3740 * varobj-iter.h: New file.
3741 * varobj.c: Include "varobj-iter.h"
3742 (struct varobj) <child_iter>: Change its type from "PyObject *"
3743 to "struct varobj_iter *".
3744 <saved_item>: Likewise.
3745 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3746 [HAVE_PYTHON] (varobj_get_iterator): New function.
3747 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3748 python-specific code to python/py-varobj.c.
3749 (install_visualizer): Call varobj_iter_delete instead of
3751 * varobj.h (varobj_ensure_python_env): Declare.
3753 2014-06-12 Yao Qi <yao@codesourcery.com>
3755 * varobj.c (struct varobj_item): New structure.
3756 (create_child_with_value): Update declaration.
3757 (varobj_add_child): Replace arguments 'name' and 'value' with
3758 'item'. All callers updated.
3759 (install_dynamic_child): Likewise.
3760 (update_dynamic_varobj_children): Likewise.
3761 (varobj_add_child): Likewise.
3762 (create_child_with_value): Likewise.
3764 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3766 * NEWS: Create a new section for the next release branch.
3767 Rename the section of the current branch, now that it has
3770 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3772 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3773 * version.in: Bump version to 7.8.50.DATE-cvs.
3775 2014-06-11 Pedro Alves <palves@redhat.com>
3778 * ser-mingw.c (net_windows_socket_check_pending): New function.
3779 (net_windows_select_thread): Ignore spurious wakeups. Use
3780 net_windows_socket_check_pending.
3781 (net_windows_wait_handle): Check for pending events with
3782 ioctlsocket, through net_windows_socket_check_pending, instead of
3783 checking the socket's event.
3785 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3787 * python/python-internal.h (gdb_PyObject_GetAttrString)
3788 (gdb_PyObject_HasAttrString): New inline function definitions.
3789 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3790 char * of the second argument to PyObject_GetAttrString.
3792 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3794 * serial.c (serial_write): Fix index of character to be printed
3795 in call to serial_logchar when serial debug traces are enabled.
3797 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3799 * gdbtypes (resolve_dynamic_range): Add function description.
3801 2014-06-09 Pedro Alves <palves@redhat.com>
3803 * linux-nat.c (linux_child_follow_fork): Initialize status with
3804 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3805 inner block. Only pass the signal to PTRACE_DETACH if in pass
3808 2014-06-09 Gary Benson <gbenson@redhat.com>
3810 * common/signals.c (gdb_signal_from_host): Reorder to separate
3811 the always-available ANSI-standard signals from the signals that
3813 (do_gdb_signal_to_host): Likewise.
3814 * proc-events.c (signal_table): Likewise.
3816 2014-06-08 Hui Zhu <hui@codesourcery.com>
3818 * common/linux-ptrace.c (linux_disable_event_reporting): New
3820 * common/linux-ptrace.h (linux_disable_event_reporting): New
3822 * linux-nat.c (linux_child_follow_fork): Do a single step before
3825 2014-06-07 Keith Seitz <keiths@redhat.com>
3829 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3830 from symbol_matches_domain in symtab.c. All local callers
3831 of symbol_matches_domain updated.
3832 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3833 search STRUCT_DOMAIN.
3834 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3835 independently. standard_lookup will do that automatically.
3836 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3837 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3838 (cp_lookup_symbol_in_namespace): Likewise.
3839 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3840 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3841 may return a STRUCT_DOMAIN match.
3842 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3843 * cp-support.c: Include language.h.
3844 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3846 * psymtab.c (match_partial_symbol): Compare the requested
3847 domain with the symbol's domain directly.
3848 (lookup_partial_symbol): Likewise.
3849 * symtab.c (lookup_symbol_in_language): Explain when/why
3850 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3851 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3852 appropriate languages.
3853 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3854 and moved to ada-lang.c
3855 (lookup_block_symbol): Explain that this function only returns
3856 symbol matching the requested DOMAIN.
3857 Compare the requested domain with the symbol's domain directly.
3858 (iterate_over_symbols): Compare the requested domain with the
3859 symbol's domain directly.
3860 * symtab.h (symbol_matches_domain): Remove.
3862 2014-06-06 Doug Evans <xdje42@gmail.com>
3864 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3865 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3866 (gdbscm_guile_version_is_at_least): Declare.
3867 (gdbscm_scm_string_to_int): Declare.
3868 * guile/guile.c (gdbscm_guile_major_version): New global.
3869 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3870 (guile_datadir): New static global.
3871 (gdbscm_guile_data_directory): New function.
3872 (initialize_scheme_side): Update.
3873 (misc_guile_functions): Add guile-data-directory.
3874 (initialize_gdb_module): Fetch guile version number.
3875 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3876 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3877 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3878 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3880 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3881 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3882 * guile/scm-value.c (gdbscm_value_to_string): Only call
3883 scm_port_conversion_strategy if Guile version >= 2.0.6.
3885 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3887 * main.c (print_gdb_help): Add -q and --silent.
3889 2014-06-06 Gary Benson <gbenson@redhat.com>
3891 * common/signals.c: Remove preprocessor conditionals for
3892 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3893 SIGSEGV and SIGTERM.
3894 * proc-events.c: Likewise.
3896 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3898 * symfile.c (symfile_free_objfile): Remove restriction to
3900 * symfile-mem.c (symbol_file_add_from_memory): Call
3901 add_target_sections_of_objfile.
3903 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3905 * guile/scm-value.c (gdbscm_history_append_x): Use
3906 'vlscm_get_value_smob_arg_unsafe' instead of
3907 'vlscm_scm_to_value'.
3909 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3912 * utils.c (printchar): Don't escape at all if quoter is NUL.
3913 Update function documentation to clarify effect of parameter
3915 * remote.c (escape_buffer): Pass '\\' as the quoter to
3916 fputstrn_unfiltered.
3917 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3918 generate the output.
3919 (mi_solib_unloaded): Same.
3921 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3923 * development.sh: Delete.
3924 * Makefile.in (config.status): Adjust dependency on development.sh.
3925 * configure.ac: Adjust development.sh source call.
3926 * configure: Regenerate.
3928 2014-06-04 Doug Evans <xdje42@gmail.com>
3930 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3931 is_scheme_bkpt, spec.
3932 (bpscm_make_breakpoint_smob): Initialize new members.
3933 (gdbscm_create_breakpoint_x): Split into two ...
3934 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3935 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3936 (scheme_function breakpoint_functions): Update.
3937 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3938 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3939 register-breakpoint!.
3941 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3944 * mem-break.c (z_type_supported): Return zero if
3945 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3947 2014-06-04 Tom Tromey <tromey@redhat.com>
3949 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3950 value_from_contents_and_address_unresolved.
3951 (ada_template_to_fixed_record_type_1): Likewise.
3952 (ada_which_variant_applies): Likewise.
3953 * value.h (value_from_contents_and_address_unresolved): Declare.
3954 * value.c (value_from_contents_and_address_unresolved): New
3956 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3957 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3958 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3960 2014-06-04 Tom Tromey <tromey@redhat.com>
3962 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3964 2014-06-04 Tom Tromey <tromey@redhat.com>
3966 * procfs.c (procfs_attach): Make "args" const.
3967 * windows-nat.c (windows_attach): Make "args" const.
3968 * nto-procfs.c (procfs_attach): Make "args" const.
3969 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3970 * go32-nat.c (go32_attach): Make "args" const.
3971 * gnu-nat.c (gnu_attach): Make "args" const.
3972 * darwin-nat.c (darwin_attach): Make "args" const.
3973 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3974 * linux-nat.c (linux_nat_attach): Make "args" const.
3975 * remote.c (extended_remote_attach_1, extended_remote_attach):
3977 * target.h (struct target_ops) <to_attach>: Make "args" const.
3978 (find_default_attach): Likewise.
3979 * utils.c (parse_pid_to_attach): Make "args" const.
3980 * utils.h (parse_pid_to_attach): Update.
3982 2014-06-04 Tom Tromey <tromey@redhat.com>
3984 * target-delegates.c: Rebuild.
3985 * target.c (default_thread_address_space): New function.
3986 (target_thread_address_space): Simplify.
3987 * target.h (struct target_ops) <to_thread_address_space>: Add
3988 TARGET_DEFAULT_FUNC.
3990 2014-06-04 Doug Evans <xdje42@gmail.com>
3992 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3994 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3996 * record-btrace.c: Include event-loop.h and inf-loop.h.
3997 (record_btrace_resume_exec_dir)
3998 (record_btrace_async_inferior_event_handler)
3999 (record_btrace_handle_async_inferior_event): New.
4000 (record_btrace_open): Create async event handler.
4001 (record_btrace_close): Delete async event handler.
4002 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4003 Mark async event handler.
4004 (record_btrace_execution_direction): New.
4005 (init_record_btrace_ops): Initialize to_execution_direction.
4007 2014-06-03 Doug Evans <xdje42@gmail.com>
4009 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4010 (gdbscm_make_parameter): Ditto.
4012 2014-06-03 Doug Evans <dje@google.com>
4014 * exec.c (exec_close_1): Call clear_section_table instead of
4015 resize_section_table.
4016 (clear_section_table): New function.
4017 (resize_section_table): Make static. Rename arg num_added to
4019 * exec.h (clear_section_table): Declare.
4020 (resize_section_table): Delete.
4021 * progspace.c (release_program_space): Call clear_section_table
4022 instead of resize_section_table.
4024 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4026 * NEWS (Python Scripting): Add entry about the new xmethods
4029 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4031 * python/py-xmethods.c: New file.
4032 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4033 (objfpy_dealloc): XDECREF on the new xmethods field.
4034 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4036 (objfpy_get_xmethods): New function.
4037 (objfile_getset): New entry 'xmethods'.
4038 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4039 (pspy_dealloc): XDECREF on the new xmethods field.
4040 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4042 (pspy_get_xmethods): New function.
4043 (pspace_getset): New entry 'xmethods'.
4044 * python/python-internal.h: Add declarations for new functions.
4045 * python/python.c (_initialize_python): Invoke
4046 gdbpy_initialize_xmethods.
4047 * python/lib/gdb/__init__.py (xmethods): New
4049 * python/lib/gdb/xmethod.py: New file.
4050 * python/lib/gdb/command/xmethods.py: New file.
4052 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4054 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4055 best match method returned by find_overload_match is an xmethod.
4056 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4057 the best matching operator returned by find_overload_match is an
4059 * valops.c: #include "extension.h".
4060 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4061 Return void. The list of matching source methods is returned in
4062 "fn_list" and a vector of matching debug method workers is
4063 returned in "xm_worker_vec". Update all callers.
4064 (value_find_oload_method_list): Likewise.
4065 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4066 non-NULL, then the index of the best matching method in this
4067 vector is returned. Update all callers.
4068 (find_overload_match): Include xmethods while performing overload
4071 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4073 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4074 * extension-priv.h (struct extension_language_ops): Add the
4076 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4077 get_matching_xmethod_workers, get_xmethod_argtypes,
4078 invoke_xmethod, free_xmethod_worker,
4079 free_xmethod_worker_vec): New functions.
4080 * extension.h: #include "common/vec.h".
4081 New function declarations.
4082 (struct xmethod_worker): New struct.
4083 (VEC (xmethod_worker_ptr)): New vector type.
4084 (xmethod_worker_ptr): New typedef.
4085 (xmethod_worker_vec): Likewise.
4086 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4088 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4089 (struct builtin_type): New field "xmethod".
4090 * valarith.c (value_ptradd): Assert that the value argument is not
4092 * valops.c (value_must_coerce_to_target): Return 0 for
4093 lval_xcallable values.
4094 * value.c (struct value): New field XM_WORKER in the field
4096 (value_address, value_raw_address): Return 0 for lval_xcallable
4098 (set_value_address): Assert that the value is not an
4100 (value_free): Free the associated xmethod worker when freeing
4101 lval_xcallable values.
4102 (set_value_component_location): Assert that the WHOLE value is not
4104 (value_of_xmethod, call_xmethod): New functions.
4105 * value.h: Declare "struct xmethod_worker".
4106 Declare new functions value_of_xmethod, call_xmethod.
4108 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4109 Pedro Alves <palves@redhat.com>
4111 PR breakpoints/17000
4112 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4113 New function, extracted from software_breakpoint_inserted_here_p.
4114 (software_breakpoint_inserted_here_p): Replace factored out code
4115 by call to find_non_raw_software_breakpoint_inserted_here.
4116 (bp_target_info_copy_insertion_state): New function.
4117 (bkpt_insert_location): Handle the case of a single-step
4118 breakpoint already inserted at the same address.
4119 (bkpt_remove_location): Handle the case of a single-step
4120 breakpoint still inserted at the same address.
4121 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4122 breakpoint already inserted at the same address.
4123 (deprecated_remove_raw_breakpoint): Handle the case of a
4124 non-raw breakpoint still inserted at the same address.
4125 (find_single_step_breakpoint): New function, extracted from
4126 single_step_breakpoint_inserted_here_p.
4127 (find_single_step_breakpoint): New function,
4128 factored out from single_step_breakpoint_inserted_here_p.
4129 (single_step_breakpoint_inserted_here_p): Reimplement.
4131 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4133 Pushed by Joel Brobecker <brobecker@adacore.com>
4134 * source.c (show_substitute_path_command): Fix display of matching
4137 2014-06-03 Gary Benson <gbenson@redhat.com>
4139 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4141 2014-06-02 Doug Evans <xdje42@gmail.com>
4143 Add parameter support for Guile.
4144 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4145 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4146 (scm-param.o): New rule.
4147 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4148 (gdbscm_misc_error): Declare.
4149 (gdbscm_canonicalize_command_name): Declare.
4150 (gdbscm_scm_to_host_string): Declare.
4151 (gdbscm_scm_from_host_string): Declare.
4152 (gdbscm_initialize_parameters): Declare.
4153 * guile/guile.c (initialize_gdb_module): Call
4154 gdbscm_initialize_parameters.
4155 * guile/lib/gdb.scm: Export parameter symbols.
4156 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4157 cmdscm_canonicalize_name and made public. All callers updated.
4158 * guile/scm-exception.c (gdbscm_misc_error): New function.
4159 * guile/scm-param.c: New file.
4160 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4161 (gdbscm_scm_to_host_string): New function.
4162 (gdbscm_scm_from_host_string): New function.
4163 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4165 2014-06-02 Doug Evans <xdje42@gmail.com>
4167 Add command support for Guile.
4168 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4169 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4170 (scm-cmd.o): New rule.
4171 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4172 (gdbscm_user_error_p): Declare.
4173 (gdbscm_parse_command_name): Declare.
4174 (gdbscm_valid_command_class_p): Declare.
4175 (gdbscm_initialize_commands): Declare.
4176 * guile/guile.c (initialize_gdb_module): Call
4177 gdbscm_initialize_commands.
4178 * guile/lib/gdb.scm: Export command symbols.
4179 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4180 (throw-user-error): New function.
4181 * guile/scm-cmd.c: New file.
4182 * guile/scm-exception.c (user_error_symbol): New static global.
4183 (gdbscm_user_error_p): New function.
4184 (gdbscm_initialize_exceptions): Set user_error_symbol.
4185 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4187 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4189 * top.c (command_loop): Handle comments here...
4190 (command_line_input): ... not here.
4192 2014-06-02 Doug Evans <xdje42@gmail.com>
4194 Add progspace support for Guile.
4195 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4196 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4197 (scm-progspace.o): New rule.
4198 * guile/guile-internal.h (pspace_smob): New typedef.
4199 (psscm_pspace_smob_pretty_printers): Declare.
4200 (psscm_pspace_smob_from_pspace): Declare.
4201 (psscm_scm_from_pspace): Declare.
4202 * guile/guile.c (initialize_gdb_module): Call
4203 gdbscm_initialize_pspaces.
4204 * guile/lib/gdb.scm: Export progspace symbols.
4205 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4207 (append-pretty-printer!): Ditto.
4208 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4210 * guile/scm-progspace.c: New file.
4212 2014-06-03 Alan Modra <amodra@gmail.com>
4214 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4215 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4217 2014-06-02 Doug Evans <dje@google.com>
4219 Add support for skeletonless type units.
4220 * dwarf2read.c (struct dwarf2_per_objfile): New member
4221 n_allocated_type_units.
4222 (struct dwarf2_per_objfile) <tu_stats>: New member
4223 nr_all_type_units_reallocs.
4224 (create_signatured_type_table_from_index): Initialize
4225 n_allocated_type_units
4226 (create_all_type_units): Ditto.
4227 (add_type_unit): Move up in file. New arg slot.
4228 All callers updated. Increase space for all_type_units more
4230 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4231 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4232 (lookup_dwp_signatured_type): Ditto.
4233 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4234 All callers updated.
4235 (build_type_psymtabs_1): Leave type_unit_groups as
4236 NULL if no TUs present.
4237 (print_tu_stats): New function.
4238 (process_skeletonless_type_unit): New function.
4239 (process_dwo_file_for_skeletonless_type_units): New
4241 (process_skeletonless_type_units): New function.
4242 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4243 Call print tu_stats if debugging enabled.
4245 2014-06-02 Pedro Alves <palves@redhat.com>
4247 * breakpoint.c (build_target_command_list): Don't build a command
4248 list if we have any duplicate location that isn't a dprintf.
4250 2014-06-02 Pedro Alves <palves@redhat.com>
4252 * breakpoint.c (dprintf_breakpoint_hit): New function.
4253 (initialize_breakpoint_ops): Install it as dprintf's
4254 breakpoint_hit method.
4256 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4258 * source.c (substitute_path_rule_matches): Simplify using
4259 filename_ncmp instead of FILENAME_CMP.
4261 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4263 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4265 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4267 * configure.ac: When Guile is available, check for the
4268 availability of 'scm_new_smob'.
4269 * configure, config.h.in: Regenerate.
4270 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4273 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4275 * frame.c (struct frame_info): Add stop_string field.
4276 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4277 (get_prev_frame_always): Old content moved into
4278 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4279 TRY_CATCH, handle MEMORY_ERROR exceptions.
4280 (frame_stop_reason_string): New function definition.
4281 * frame.h (unwind_stop_reason_to_string): Extend comment to
4282 mention frame_stop_reason_string.
4283 (frame_stop_reason_string): New function declaration.
4284 * stack.c (frame_info): Switch to frame_stop_reason_string.
4285 (backtrace_command_1): Switch to frame_stop_reason_string.
4286 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4287 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4288 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4290 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4292 * frame.c (frame_stop_reason_string): Rename to ...
4293 (unwind_stop_reason_to_string): this.
4294 * frame.h (frame_stop_reason_string): Rename to ...
4295 (unwind_stop_reason_to_string): this.
4296 * stack.c (frame_info): Update call to frame_stop_reason_string.
4297 (backtrace_command_1): Likewise.
4298 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4299 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4301 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4303 * frame.c (remove_prev_frame): New function.
4304 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4307 2014-05-29 Pedro Alves <palves@redhat.com>
4309 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4310 and make it const. When a single-step decays to a continue,
4311 clear 'step', not 'hw_step'. Pass whether the caller wanted
4312 to step to user_visible_resume_ptid, not what we ask the
4315 2014-05-29 Pedro Alves <palves@redhat.com>
4317 * infrun.c (process_event_stop_test, handle_step_into_function)
4318 (handle_step_into_function_backward): Adjust.
4319 Don't set the even thread's stop_step and call stop_waiting before
4320 calling end_stepping_range. Instead do that ...
4321 (end_stepping_range): ... here. Take an ecs pointer parameter.
4323 2014-05-29 Pedro Alves <palves@redhat.com>
4325 * infrun.c (stop_stepping): Rename to ...
4326 (stop_waiting): ... this.
4327 (proceed): Update comment.
4328 (process_event_stop_test, handle_inferior_event)
4329 (handle_signal_stop, handle_step_into_function)
4330 (handle_step_into_function_backward): Update.
4332 2014-05-29 Pedro Alves <palves@redhat.com>
4334 * infcall.c (run_inferior_call): Don't check whether the current
4335 thread is running after the proceed call.
4337 2014-05-29 Pedro Alves <palves@redhat.com>
4338 Tom Tromey <tromey@redhat.com>
4340 * NEWS: Mention "maint set target-async", "set mi-async", and that
4341 background execution commands are now always available.
4342 * target.h (target_async_permitted): Update comment.
4343 * target.c (target_async_permitted, target_async_permitted_1):
4345 (set_target_async_command): Rename to ...
4346 (maint_set_target_async_command): ... this.
4347 (show_target_async_command): Rename to ...
4348 (maint_show_target_async_command): ... this.
4349 (_initialize_target): Adjust.
4350 * infcmd.c (prepare_execution_command): Make extern.
4351 * inferior.h (prepare_execution_command): Declare.
4352 * infrun.c (set_observer_mode): Leave target async alone.
4353 * mi/mi-interp.c (mi_interpreter_init): Install
4354 mi_on_sync_execution_done as sync_execution_done observer.
4355 (mi_on_sync_execution_done): New function.
4356 (mi_execute_command_input_handler): Don't print the prompt if we
4357 just started a synchronous command with an async target.
4358 (mi_on_resume): Check sync_execution before printing prompt.
4359 * mi/mi-main.h (mi_async_p): Declare.
4360 * mi/mi-main.c: Include gdbcmd.h.
4361 (mi_async_p): New function.
4362 (mi_async, mi_async_1): New globals.
4363 (set_mi_async_command, show_mi_async_command, mi_async): New
4365 (exec_continue): Call prepare_execution_command.
4366 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4367 (mi_execute_async_cli_command): Use mi_async_p.
4368 (_initialize_mi_main): Install "set mi-async". Make
4369 "target-async" a deprecated alias.
4371 2014-05-29 Pedro Alves <palves@redhat.com>
4373 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4374 (_initialize_cli_interp): Adjust.
4375 * event-loop.c: Include "observer.h".
4376 (start_event_loop): Notify 'command_error' observers instead of
4377 calling display_gdb_prompt. Remove FIXME comment.
4378 * event-top.c (display_gdb_prompt): Remove call into the
4380 * inf-loop.c: Include "observer.h".
4381 (inferior_event_handler): Notify 'command_error' observers instead
4382 of calling display_gdb_prompt.
4383 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4384 observers instead of calling display_gdb_prompt.
4385 * interps.c (interp_set): Don't call display_gdb_prompt.
4386 (current_interp_display_prompt_p): Delete.
4387 * interps.h (interp_prompt_p): Delete declaration.
4388 (interp_prompt_p_ftype): Delete.
4389 (struct interp_procs) <prompt_proc_p>: Delete field.
4390 (current_interp_display_prompt_p): Delete declaration.
4391 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4392 (_initialize_mi_interp): Adjust.
4393 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4394 'command_error' observers.
4395 (tui_on_sync_execution_done, tui_on_command_error): New
4397 (tui_display_prompt_p): Delete.
4398 (_initialize_tui_interp): Adjust.
4400 2014-05-29 Pedro Alves <palves@redhat.com>
4403 * cli/cli-interp.c: Include infrun.h and observer.h.
4404 (cli_uiout, cli_interp): New globals.
4405 (cli_on_signal_received, cli_on_end_stepping_range)
4406 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4408 (cli_interpreter_init): Install them as 'end_stepping_range',
4409 'signal_received' 'signal_exited', 'exited' and 'no_history'
4411 (_initialize_cli_interp): Remove cli_interp local.
4412 * infrun.c (handle_inferior_event): Call the several stop reason
4413 observers instead of printing the stop reason directly.
4414 (end_stepping_range): New function.
4415 (print_end_stepping_range_reason, print_signal_exited_reason)
4416 (print_exited_reason, print_signal_received_reason)
4417 (print_no_history_reason): Make static, and add an uiout
4418 parameter. Print to that instead of to CURRENT_UIOUT.
4419 * infrun.h (print_end_stepping_range_reason)
4420 (print_signal_exited_reason, print_exited_reason)
4421 (print_signal_received_reason print_no_history_reason): New
4423 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4425 <cli_uiout>: New field.
4426 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4427 uiout for CLI output. Install 'signal_received',
4428 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4430 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4431 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4432 (mi_on_no_history): New functions.
4433 (ui_out_free_cleanup): Delete function.
4434 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4435 instead use the one already stored in the MI interpreter data.
4436 (mi_ui_out): Adjust.
4437 * tui/tui-interp.c: Include infrun.h and observer.h.
4438 (tui_interp): New global.
4439 (tui_on_signal_received, tui_on_end_stepping_range)
4440 (tui_on_signal_exited, tui_on_exited)
4441 (tui_on_no_history): New functions.
4442 (tui_init): Install them as 'end_stepping_range',
4443 'signal_received' 'signal_exited', 'exited' and 'no_history'
4445 (_initialize_tui_interp): Delete tui_interp local.
4447 2014-05-29 Pedro Alves <palves@redhat.com>
4450 * linux-nat.c (linux_nat_resume_callback): Rename the second
4451 parameter to 'except'. Skip LP if it points to EXCEPT.
4452 (linux_nat_resume): Don't mark the event lwp as not stopped
4453 before resuming sibling lwps. Instead ask
4454 linux_nat_resume_callback to skip the event lwp. Mark it as not
4455 stopped after actually resuming it.
4456 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4458 (wait_lwp): Mark the lwp as stopped here.
4459 (stop_wait_callback): Mark the lwp as not stopped right after
4460 resuming it. Don't mark lwps as stopped here.
4461 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4462 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4464 2014-05-29 Pedro Alves <palves@redhat.com>
4467 * infrun.c (resume): Determine how much to resume depending on
4468 whether the caller wanted a step, not whether we can hardware step
4469 the target. Mark all threads that we intend to run as running,
4470 unless we're calling an inferior function.
4471 (normal_stop): If the thread is running an infcall, don't finish
4473 * target.c (target_resume): Don't mark threads as running here.
4475 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4477 * serial.c (_initialize_serial): Remove support for
4478 the "set remotebaud" and "show remotebaud" commands.
4479 * NEWS: Add entry documenting the removal of that command.
4481 2014-05-28 Yao Qi <yao@codesourcery.com>
4483 * charset.c: Fix typo in comments.
4485 2014-05-27 Gary Benson <gbenson@redhat.com>
4487 * utils.c (internal_vproblem): Prompt for a bug report.
4489 2014-05-26 Andy Wingo <wingo@igalia.com>
4491 * guile/scm-arch.c (arscm_mark_arch_smob):
4492 * guile/scm-block.c (bkscm_mark_block_smob)
4493 (bkscm_mark_block_syms_progress_smob):
4494 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4495 * guile/scm-exception.c (exscm_mark_exception_smob):
4496 * guile/scm-frame.c (frscm_mark_frame_smob):
4497 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4498 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4499 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4500 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4501 (ppscm_mark_pretty_printer_worker_smob):
4502 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4503 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4504 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4505 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4507 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4510 2014-05-26 Andy Wingo <wingo@igalia.com>
4511 Doug Evans <xdje42@gmail.com>
4513 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4514 empty_base_class. All uses updated.
4515 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4516 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4518 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4519 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4520 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4521 (gdbscm_gsmob_has_property_p, add_property_name)
4522 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4523 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4524 (gdb-object-has-property?, gdb-object-properties): Remove.
4525 (gdb-object-kind): Renamed from gsmob-kind.
4527 2014-05-26 Andy Wingo <wingo@igalia.com>
4529 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4530 * configure: Regenerate.
4532 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4534 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4536 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4538 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4539 (replay_memory_access_read_only, replay_memory_access_read_write)
4540 (replay_memory_access_types, replay_memory_access)
4541 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4542 (cmd_set_record_btrace, cmd_show_record_btrace)
4543 (cmd_show_replay_memory_access): New.
4544 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4545 (record_btrace_remove_breakpoint): Replace
4546 record_btrace_allow_memory_access with replay_memory_access.
4547 (_initialize_record_btrace): Add commands.
4548 * NEWS: Announce it.
4550 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4552 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4554 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4556 * MAINTAINERS (Write After Approval): Move self back from
4559 2014-05-22 Pedro Alves <palves@redhat.com>
4561 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4562 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4563 (disable_randomization, enum exec_direction_kind)
4564 (execution_direction, stop_registers, start_remote)
4565 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4566 (wait_for_inferior, normal_stop, get_last_target_status)
4567 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4568 (insert_step_resume_breakpoint_at_sal)
4569 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4570 (set_step_info, print_stop_event, signal_stop_state)
4571 (signal_print_state, signal_pass_state, signal_stop_update)
4572 (signal_print_update, signal_pass_update)
4573 (update_signals_program_target, clear_exit_convenience_vars)
4574 (displaced_step_dump_bytes, update_observer_mode)
4575 (signal_catch_update, gdb_signal_from_command): Move
4577 * infrun.h: ... to this new file.
4578 * amd64-tdep.c: Include infrun.h.
4579 * annotate.c: Include infrun.h.
4580 * arch-utils.c: Include infrun.h.
4581 * arm-linux-tdep.c: Include infrun.h.
4582 * arm-tdep.c: Include infrun.h.
4583 * break-catch-sig.c: Include infrun.h.
4584 * breakpoint.c: Include infrun.h.
4585 * common/agent.c: Include infrun.h instead of inferior.h.
4586 * corelow.c: Include infrun.h.
4587 * event-top.c: Include infrun.h.
4588 * go32-nat.c: Include infrun.h.
4589 * i386-tdep.c: Include infrun.h.
4590 * inf-loop.c: Include infrun.h.
4591 * infcall.c: Include infrun.h.
4592 * infcmd.c: Include infrun.h.
4593 * infrun.c: Include infrun.h.
4594 * linux-fork.c: Include infrun.h.
4595 * linux-nat.c: Include infrun.h.
4596 * linux-thread-db.c: Include infrun.h.
4597 * monitor.c: Include infrun.h.
4598 * nto-tdep.c: Include infrun.h.
4599 * procfs.c: Include infrun.h.
4600 * record-btrace.c: Include infrun.h.
4601 * record-full.c: Include infrun.h.
4602 * remote-m32r-sdi.c: Include infrun.h.
4603 * remote-mips.c: Include infrun.h.
4604 * remote-notif.c: Include infrun.h.
4605 * remote-sim.c: Include infrun.h.
4606 * remote.c: Include infrun.h.
4607 * reverse.c: Include infrun.h.
4608 * rs6000-tdep.c: Include infrun.h.
4609 * s390-linux-tdep.c: Include infrun.h.
4610 * solib-irix.c: Include infrun.h.
4611 * solib-osf.c: Include infrun.h.
4612 * solib-svr4.c: Include infrun.h.
4613 * target.c: Include infrun.h.
4614 * top.c: Include infrun.h.
4615 * windows-nat.c: Include infrun.h.
4616 * mi/mi-interp.c: Include infrun.h.
4617 * mi/mi-main.c: Include infrun.h.
4618 * python/py-threadevent.c: Include infrun.h.
4620 2014-05-22 Pedro Alves <palves@redhat.com>
4622 * infrun.c (handle_inferior_event): Store the exit code for
4623 --return-child-result here, instead of ...
4624 (print_exited_reason): ... here.
4626 2014-05-21 Pedro Alves <palves@redhat.com>
4629 * gdbthread.h (struct thread_control_state): New field
4631 * infrun.c (follow_fork): Copy the new thread control field to the
4633 (clear_proceed_status_thread): Clear the new thread control field.
4634 (proceed): Set the new thread control field.
4635 * interps.h (command_interp): Declare.
4636 * interps.c (command_interpreter): New global.
4637 (command_interp): New function.
4638 (interp_exec): Set `command_interpreter' while here.
4639 * cli-out.c (cli_uiout_dtor): New function.
4640 (cli_ui_out_impl): Install it.
4641 * mi/mi-interp.c: Include cli-out.h.
4642 (mi_cmd_interpreter_exec): Add comment.
4643 (restore_current_uiout_cleanup): New function.
4644 (ui_out_free_cleanup): New function.
4645 (mi_on_normal_stop): If finishing an execution command started by
4646 a CLI command, or any kind of breakpoint-like event triggered,
4647 print the stop event to the output (CLI) stream.
4648 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4650 2014-05-21 Pedro Alves <palves@redhat.com>
4652 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4653 current source line having changed.
4654 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4655 * infrun.c (normal_stop): Adjust call to
4656 set_current_sal_from_frame.
4657 * source.c (clear_lines_listed_range): New function.
4658 (set_current_source_symtab_and_line, identify_source_line): Clear
4659 the lines listed range.
4660 (line_info): Handle the first "info line" after the current source
4661 line having changed.
4662 * stack.c (print_stack_frame): Remove center handling.
4663 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4666 2014-05-21 Pedro Alves <palves@redhat.com>
4668 * inf-child.c (inf_child_mourn_inferior): New function.
4669 * inf-child.h (inf_child_mourn_inferior): New declaration.
4670 * darwin-nat.c (darwin_mourn_inferior): Use
4671 inf_child_mourn_inferior.
4672 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4673 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4674 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4675 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4676 * windows-nat.c (windows_mourn_inferior): Likewise.
4678 2014-05-21 Doug Evans <xdje42@gmail.com>
4680 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4682 2014-05-21 Doug Evans <xdje42@gmail.com>
4684 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4685 (gdbscm_out_of_range_error): Ditto.
4686 (gdbscm_memory_error): Ditto.
4687 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4688 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4689 (gdbscm_out_of_range_error): Update.
4690 (gdbscm_memory_error): Update.
4691 (gdbscm_scm_to_target_string_unsafe): Delete.
4693 2014-05-21 Pedro Alves <palves@redhat.com>
4695 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4697 (inf_child_open_target): New function.
4698 (inf_child_open): Use inf_child_open_target to push the target
4699 instead of erroring out.
4700 (inf_child_disconnect, inf_child_close)
4701 (inf_child_maybe_unpush_target): New functions.
4702 (inf_child_target): Install inf_child_disconnect and
4703 inf_child_close. Store a pointer to the returned object.
4704 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4706 * target.c (auto_connect_native_target): New global.
4707 (show_default_run_target): New function.
4708 (find_default_run_target): Return NULL if automatically connecting
4709 to the native target is disabled.
4710 (_initialize_target): Install set/show auto-connect-native-target.
4711 * NEWS: Mention "set auto-connect-native-target", and "target
4713 * linux-nat.c (super_close): New global.
4714 (linux_nat_close): Call super_close.
4715 (linux_nat_add_target): Store a pointer to the base class's
4717 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4718 inf_child_maybe_unpush.
4719 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4721 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4722 the inferior. Use inf_child_maybe_unpush_target.
4723 (inf_ttrace_attach): Don't push the target if it is already
4725 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4726 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4727 after mourning the inferior. Use inf_child_maybe_unpush_target.
4728 (darwin_attach_pid): Don't push the target if it is already
4730 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4731 mourning the inferior. Use inf_child_maybe_unpush_target.
4732 (gnu_detach): Use inf_child_maybe_unpush_target.
4733 * go32-nat.c (go32_create_inferior): Don't push the target if it
4735 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4736 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4737 (procfs_open): Rename to ...
4738 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4739 comments. Can target_preopen before changing node. Call
4740 inf_child_open_target to push the target explicitly.
4741 (procfs_attach): Don't push the target if it is already pushed.
4742 (procfs_detach): Use inf_child_maybe_unpush_target.
4743 (procfs_create_inferior): Don't push the target if it is already
4745 (nto_native_ops): New global.
4746 (procfs_open): Reimplement.
4747 (procfs_native_open): New function.
4748 (init_procfs_targets): Install procfs_native_open as to_open of
4749 "target native". Store a pointer to the "native" target in
4751 * procfs.c (procfs_attach): Don't push the target if it is already
4753 (procfs_detach): Use inf_child_maybe_unpush_target.
4754 (procfs_mourn_inferior): Only unpush the target after mourning the
4755 inferior. Use inf_child_maybe_unpush_target.
4756 (procfs_init_inferior): Don't push the target if it is already
4758 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4759 if it is already pushed.
4761 2014-05-21 Pedro Alves <palves@redhat.com>
4763 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4764 and "procfs" targets are now called "native" instead.
4766 2014-05-21 Pedro Alves <palves@redhat.com>
4768 * go32-nat.c (go32_open): Delete.
4769 (go32_target): Don't override the to_open method.
4771 2014-05-21 Pedro Alves <palves@redhat.com>
4773 * nto-procfs.c (procfs_can_run): New function.
4774 (nto_procfs_ops): New global.
4775 (init_procfs_targets): New, based on procfs_target. Install
4776 "target native" in addition to "target procfs".
4777 (_initialize_procfs): Call init_procfs_targets instead of adding
4780 2014-05-21 Pedro Alves <palves@redhat.com>
4782 * windows-nat.c (windows_target): Don't override to_shortname,
4783 to_longname or to_doc.
4785 2014-05-21 Pedro Alves <palves@redhat.com>
4787 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4790 2014-05-21 Pedro Alves <palves@redhat.com>
4792 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4793 to_shortname, to_longname or to_doc.
4795 2014-05-21 Pedro Alves <palves@redhat.com>
4797 * go32-nat.c (go32_target): Don't override to_shortname,
4798 to_longname or to_doc.
4800 2014-05-21 Pedro Alves <palves@redhat.com>
4802 * inf-child.c (inf_child_open): Remove mention of "child".
4803 (inf_child_target): Rename target to "native" instead of "child".
4805 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4807 * Makefile.in (SFILES): Delete "regset.c".
4808 (COMMON_OBS): Delete "regset.o".
4810 * regset.h (regset_alloc): Delete prototype.
4812 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4814 * sparc-linux-tdep.c (sparc32_linux_gregset)
4815 (sparc32_linux_fpregset): New static regset structures.
4816 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4817 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4819 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4820 (sparc64_linux_fpregset): New static regset structures.
4821 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4822 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4823 New static regset structures.
4824 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4825 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4826 New static regset structures.
4827 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4828 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4829 New static regset structures.
4830 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4831 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4832 New static regset structures.
4833 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4835 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4837 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4838 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4839 register maps ("regmaps") from "*regset" to "*regmap". Do this
4840 for all regmap types and variables.
4841 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4842 (sparc32_linux_supply_core_gregset)
4843 (sparc32_linux_collect_core_gregset)
4844 (sparc32_linux_supply_core_fpregset)
4845 (sparc32_linux_collect_core_fpregset): Likewise.
4846 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4847 (sparc_gregmap, sparc_fpregmap): ... these.
4848 (sparc_supply_gregset, sparc_collect_gregset)
4849 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4850 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4851 (_initialize_sparc_nat): Rename regmaps.
4852 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4853 (sparc_gregmap, sparc_fpregmap): ... these.
4854 (sparc_supply_gregset, sparc_collect_gregset)
4855 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4856 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4858 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4859 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4861 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4863 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4864 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4865 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4867 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4868 (sparc32_bsd_fpregset): Rename to...
4869 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4870 (sparc32_bsd_fpregmap): ... these.
4871 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4872 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4873 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4874 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4875 (struct sparc_gregmap, struct sparc_fpregmap)
4876 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4877 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4878 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4879 (sparc32_supply_regset, sparc32_collect_gregset)
4880 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4882 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4883 (sparc64_linux_ptrace_gregmap): ... this.
4884 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4885 (_initialize_sparc64_linux_nat): Rename regmaps.
4886 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4887 (sparc64_linux_core_gregmap): ... this.
4888 (sparc64_linux_supply_core_gregset)
4889 (sparc64_linux_collect_core_gregset)
4890 (sparc64_linux_supply_core_fpregset)
4891 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4892 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4893 (sparc64_sol2_fpregset): Rename to...
4894 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4895 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4896 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4898 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4899 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4900 (sparc64_bsd_fpregset): Rename to...
4901 (struct sparc_gregmap, sparc64_sol2_gregmap)
4902 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4903 (sparc64_bsd_fpregmap): ... these.
4904 (sparc64_supply_gregset, sparc64_collect_gregset)
4905 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4907 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4908 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4909 (sparc64fbsd_gregmap): ... this.
4910 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4911 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4913 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4914 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4915 (sparc64nbsd_collect_fpregset): Likewise.
4916 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4917 (sparc64nbsd_gregmap): ... this.
4918 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4920 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4921 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4922 (sparc64obsd_gregmap): ... this.
4923 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4925 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4926 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4927 (sparc32nbsd_gregmap): ... this.
4928 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4931 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4933 * score-tdep.c (score7_linux_gregset): New static regset
4935 (score7_linux_regset_from_core_section): Remove dynamic regset
4937 (score_gdbarch_init): Drop allocation of tdep structure.
4938 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4940 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4942 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4944 (am33_regset_from_core_section): Remove dynamic regset
4947 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4949 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4950 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4952 (mips_linux_regset_from_core_section): Remove dynamic regset
4954 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4955 'gregset64', 'fpregset', and 'fpregset64'.
4956 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4957 deleted tdep fields.
4959 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4961 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4963 (amd64_regset_from_core_section): Remove dynamic regset
4965 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4967 (amd64obsd_regset_from_core_section): Remove dynamic regset
4969 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4971 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4972 x86-common regset supply function.
4973 * i386-tdep.c (i386_collect_gregset): Make static.
4974 (i386_gregset): New global regset structure.
4975 (i386_fpregset, i386_xstateregset): New static regset structures.
4976 (i386_regset_from_core_section): Remove dynamic regset
4978 (i386_gdbarch_init): Remove initialization of tdep fields
4979 'gregset', 'fpregset', and 'xstateregset'.
4980 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4981 'fpregset', and 'xstateregset'.
4982 (i386_collect_gregset): Remove prototype.
4983 (i386_gregset): New declaration.
4984 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4986 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4989 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4991 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4992 (arm_linux_vfpregset): New static regset structures.
4993 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4995 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4996 and 'vfpregset' fields.
4998 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5000 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5001 (aarch64_linux_fpregset): New static regset structures.
5002 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5003 of regset structures.
5004 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5007 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5009 * regset.h (struct regset): Remove gdbarch field.
5010 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5011 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5012 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5014 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5015 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5016 (ppc32_linux_vsxregset): Likewise.
5017 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5018 via the regcache instead of the regset.
5019 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5020 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5021 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5022 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5025 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5027 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5028 Constify structures.
5029 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5030 (alphanbsd_aout_gregset): Likewise.
5031 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5032 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5034 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5035 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5037 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5038 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5039 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5040 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5041 * m88k-tdep.c (m88k_gregset): Likewise.
5042 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5043 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5044 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5045 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5046 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5047 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5048 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5049 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5050 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5052 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5053 * sh-tdep.h (sh_corefile_gregset): Likewise.
5054 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5055 * vax-tdep.c (vax_gregset): Likewise.
5057 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5059 Fix TLS access for -static -pthread.
5060 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5061 (try_thread_db_load_1): Initialize it.
5062 (thread_db_get_thread_local_address): Call it if LM is zero.
5063 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5064 * target.h (struct target_ops) (to_get_thread_local_address): Add
5065 load_module_addr comment.
5067 2014-05-21 Pedro Alves <palves@redhat.com>
5069 * dcache.c (dcache_read_memory_partial): If reading the cache line
5070 fails, fallback to reading just the memory the caller wanted.
5072 2014-05-20 Doug Evans <dje@google.com>
5074 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5075 instead of get_current_arch.
5077 2014-05-20 Pedro Alves <palves@redhat.com>
5079 * NEWS: Mention that compare-sections now works with all targets.
5081 * remote.c (PACKET_qCRC): New enum value.
5082 (remote_verify_memory): Don't send qCRC if the target has no
5083 execution. Use packet_support/packet_ok. If the target doesn't
5084 support the qCRC packet, fallback to a deep memory copy.
5085 (compare_sections_command): Say "target image" instead of "remote
5087 (_initialize_remote): Add PACKET_qCRC to the list of config
5088 packets that have no associated command. Extend comment.
5089 * target.c (simple_verify_memory, default_verify_memory): New
5091 * target.h (struct target_ops) <to_verify_memory>: Default to
5092 default_verify_memory.
5093 (simple_verify_memory): New declaration.
5094 * target-delegates.c: Regenerate.
5096 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5098 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5100 2014-05-20 Hui Zhu <hui@codesourcery.com>
5101 Yao Qi <yao@codesourcery.com>
5104 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5105 and change address of sp and pc.
5107 2014-05-19 Tom Tromey <tromey@redhat.com>
5109 * gdbtypes.c (rank_function): Use XNEWVEC.
5110 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5112 2014-05-19 Doug Evans <dje@google.com>
5114 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5115 build_type_unit_groups and moved closer to only caller. Remove
5116 arguments. All references updated. Remove outdated .gdb_index
5118 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5119 build_type_psymtabs_1.
5121 2014-05-19 Doug Evans <dje@google.com>
5123 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5124 n_type_unit_groups, all_type_unit_groups. All uses removed.
5125 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5126 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5127 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5128 (add_type_unit_group_to_table): Delete.
5130 2014-05-19 Doug Evans <dje@google.com>
5132 * eval.c (evaluate_subexp_standard): Add some comments.
5134 2014-05-17 Doug Evans <xdje42@gmail.com>
5136 * progspace.c (remove_program_space): Delete, unused.
5137 * progspace.h (remove_program_space): Ditto.
5139 2014-05-17 Doug Evans <xdje42@gmail.com>
5141 * inferior.c (prune_inferiors): Fix comment.
5142 (remove_inferior_command): Call prune_program_spaces.
5144 2014-05-16 Doug Evans <dje@google.com>
5146 New command line option -D.
5148 * main.c (set_gdb_data_directory): New function.
5149 (captured_main): Recognize -D. Flag error for --data-directory "".
5150 Call set_gdb_data_directory.
5151 (print_gdb_help): Print --data-directory, -D.
5152 * main.h (set_gdb_data_directory): Declare.
5153 * top.c (staged_gdb_datadir): New static global.
5154 (set_gdb_datadir): Call set_gdb_data_directory
5155 (show_gdb_datadir): New function.
5156 (init_main): Update init of data-directory parameter.
5158 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5160 Import the "dirfd" gnulib module.
5161 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5162 * gnulib/aclocal.m4: Update.
5163 * gnulib/config.in: Update.
5164 * gnulib/configure: Update.
5165 * gnulib/import/Makefile.am: Update.
5166 * gnulib/import/Makefile.in: Update.
5167 * gnulib/import/dirfd.c: New.
5168 * gnulib/import/m4/dirfd.m4: New.
5169 * gnulib/import/m4/gnulib-cache.m4: Update.
5170 * gnulib/import/m4/gnulib-comp.m4: Update.
5172 2014-05-16 Pierre Muller <muller@sourceware.org>
5173 Yao Qi <yao@codesourcery.com>
5175 * valprint.c (print_wchar): Move the code on checking whether
5176 W is a printable wide char to the default branch of switch
5177 statement below. Call wchar_printable instead of gdb_iswprint.
5179 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5181 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5182 ldr.w and ldrd instructions.
5184 2014-05-15 Doug Evans <dje@google.com>
5186 * dwarf2read.c (read_structure_type): Delete outdated comments.
5188 2014-05-14 Tom Tromey <tromey@redhat.com>
5190 * macrocmd.c (print_macro_definition): Reindent.
5192 2014-05-13 Doug Evans <xdje42@gmail.com>
5194 * python/py-cmd.c (cmdpy_completer): Add comment.
5195 (completers): Make const.
5197 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5199 * infrun.c (resume): Remove should_resume (unused). Move up
5200 declaration of resume_ptid.
5202 2014-05-13 Tom Tromey <tromey@redhat.com>
5204 * language.h (unop_type_check): Remove.
5205 (binop_type_check): Don't declare.
5207 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5209 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5210 call to regcache_raw_collect.
5212 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5214 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5215 mi_console->quote as the quoting character.
5217 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5219 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5221 2014-04-29 Tom Tromey <tromey@redhat.com>
5223 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5224 "show debug varobj".
5226 2014-05-07 Kyle McMartin <kyle@redhat.com>
5228 Pushed by Joel Brobecker <brobecker@adacore.com>.
5229 * aarch64-tdep.c (aarch64_software_single_step): New function.
5230 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5231 with aarch64_software_single_step.
5233 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5237 2014-05-05 Keith Seitz <keiths@redhat.com>
5239 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5240 variable or history value is successfully parsed.
5242 2014-05-05 Yao Qi <yao@codesourcery.com>
5243 Pedro Alves <palves@redhat.com>
5245 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5246 address of blocks that intersects the requested range. Trim
5247 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5249 * ctf.c (ctf_xfer_partial): Likewise.
5251 2014-05-05 Yao Qi <yao@codesourcery.com>
5253 * printcmd.c (display_command): Remove the check to
5254 target_has_execution.
5256 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5258 * ppcobsd-nat.c: Include "obsd-nat.h".
5259 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5261 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5263 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5265 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5266 and 16-bit signed and unsigned arguments. Update comment.
5267 (stap_parse_probe_arguments): Extend code to handle such
5268 arguments. Use warning instead of complaint to notify about
5269 unrecognized bitness.
5271 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5273 PR breakpoints/16889
5274 * stap-probe.c (stap_parse_probe_arguments): Simplify
5275 check for non-prefixed probes (i.e., probes whose
5276 arguments do not start with "N@"). Always set the
5277 argument type to a sane value.
5279 2014-05-01 David Taylor <dtaylor@emc.com>
5281 * remote.c (compare_sections_command): Add -r option to compare
5282 all loadable read-only sections.
5284 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5286 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5287 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5289 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5290 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5291 Remove unused CORE_ADDR argument. Update all callers.
5293 2014-04-29 Pedro Alves <palves@redhat.com>
5295 * remote.c (struct packet_config) <detect>: Extend comment.
5296 (add_packet_config_cmd): Don't set the config's detect or support
5298 (init_all_packet_configs): Also initialize the config's 'detect'
5300 (reset_all_packet_configs_support): New function.
5301 (remote_open_1): Call reset_all_packet_configs_support instead of
5302 init_all_packet_configs.
5303 (_initialize_remote): Initialize all packet configs. Assert that
5304 all packets have an associated command, except a few known
5307 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5309 * dwarf2read.c (read_subrange_type): Handle dynamic
5310 DW_AT_lower_bound attributes.
5312 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5314 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5315 dynamic bounds before computing its upper bound.
5316 (ada_discrete_type_low_bound): Same as above with the lower bound.
5318 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5320 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5321 range types. Adjust the array handling implementation to
5322 take advantage of this change.
5323 (resolve_dynamic_range): New function, mostly extracted from
5324 resolve_dynamic_bounds.
5325 (resolve_dynamic_array): New function, mostly extracted from
5326 resolve_dynamic_bounds.
5327 (resolve_dynamic_bounds): Delete.
5328 (resolve_dynamic_type): Reimplement. Add handling of
5329 TYPE_CODE_RANGE types.
5331 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5333 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5334 handling of parallel ___XA types.
5336 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5338 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5339 unnecessary second call to static_unwrap_type.
5341 2014-04-27 Hui Zhu <hui@codesourcery.com>
5343 * stack.c (print_frame_info): Call do_gdb_disassembly with
5344 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5346 2014-04-26 Doug Evans <xdje42@gmail.com>
5348 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5350 2014-04-25 Pedro Alves <palves@redhat.com>
5353 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5354 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5355 and newline from built string.
5356 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5357 (linux_ptrace_attach_fail_reason): ... this.
5358 * linux-nat.c (linux_nat_attach): Adjust to use
5359 linux_ptrace_attach_fail_reason.
5361 2014-04-25 Pedro Alves <palves@redhat.com>
5363 * remote.c (struct remote_state): Remove multi_process_aware,
5364 non_stop_aware, cond_tracepoints, cond_breakpoints,
5365 breakpoint_commands, fast_tracepoints, static_tracepoints,
5366 install_in_trace, disconnected_tracing,
5367 enable_disable_tracepoints, string_tracing, and
5368 augmented_libraries_svr4_read fields.
5369 (remote_multi_process_p): Move further below in the file.
5370 (struct packet_config): Add comments.
5371 (update_packet_config): Delete function.
5372 (show_packet_config_cmd): Use packet_config_support.
5373 (add_packet_config_cmd): Use NULL as set callback.
5374 (packet_ok): "set remote foo-packet"-style commands no longer
5375 change config->supported -- adjust.
5376 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5377 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5378 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5379 (PACKET_QNonStop, PACKET_multiprocess_feature)
5380 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5381 (PACKET_DisconnectedTracing_feature)
5382 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5383 (set_remote_protocol_packet_cmd): Delete function.
5384 (packet_config_support, packet_support): New functions.
5385 (set_remote_protocol_Z_packet_cmd): Don't call
5386 update_packet_config.
5387 (remote_query_attached, remote_pass_signals)
5388 (remote_program_signals, remote_threads_info)
5389 (remote_threads_extra_info, remote_start_remote): Use
5391 (remote_start_remote): Use packet_config_support and
5393 (init_all_packet_configs): Set all packets to unknown support,
5394 instead of calling update_packet_config.
5395 (remote_check_symbols): Use packet_support.
5396 (remote_supported_packet): Unconditionally set the packet config's
5398 (remote_multi_process_feature, remote_non_stop_feature)
5399 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5400 (remote_breakpoint_commands_feature)
5401 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5402 (remote_install_in_trace_feature)
5403 (remote_disconnected_tracing_feature)
5404 (remote_enable_disable_tracepoint_feature)
5405 (remote_string_tracing_feature)
5406 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5407 (remote_protocol_features): Adjust to use remote_supported_packet
5408 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5409 "ConditionalTracepoints", "ConditionalBreakpoints",
5410 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5411 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5412 "EnableDisableTracepoints", and "tracenz".
5413 (remote_query_supported): Use packet_support.
5414 (remote_open_1): Adjust.
5415 (extended_remote_attach_1): Use packet_support. Switch on the
5416 result of packet_ok instead of checking whether the packet ended
5418 (remote_vcont_resume): Use packet_support.
5419 (remote_resume, remote_stop_ns, fetch_register_using_p)
5420 (remote_prepare_to_store, store_register_using_P)
5421 (check_binary_download, remote_write_bytes): Use packet_support.
5422 (remote_vkill): Use packet_support. Switch on the result of
5423 packet_ok instead of checking whether the packet ended up
5425 (extended_remote_supports_disable_randomization): Use
5427 (extended_remote_run): Switch on the result of packet_ok instead
5428 of checking whether the packet ended up disabled.
5429 (remote_insert_breakpoint, remote_remove_breakpoint)
5430 (remote_insert_watchpoint, remote_remove_watchpoint)
5431 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5433 (remote_search_memory): Use packet_config_support.
5434 (remote_get_thread_local_address, remote_get_tib_address)
5435 (remote_hostio_send_command, remote_can_execute_reverse): Use
5437 (remote_supports_cond_tracepoints)
5438 (remote_supports_cond_breakpoints)
5439 (remote_supports_fast_tracepoints)
5440 (remote_supports_static_tracepoints)
5441 (remote_supports_install_in_trace)
5442 (remote_supports_enable_disable_tracepoint)
5443 (remote_supports_string_tracing)
5444 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5445 the packet config says the feature is enabled or disabled.
5446 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5447 (remote_get_trace_status): Use packet_support.
5448 (remote_set_disconnected_tracing): Adjust to check whether the
5449 feature is enabled with packet_support.
5450 (remote_set_trace_buffer_size, remote_use_agent)
5451 (remote_can_use_agent, remote_supports_btrace): Use
5453 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5454 Use packet_config_support.
5455 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5456 the packet config says the feature is enabled or disabled.
5457 (set_range_stepping): Use packet_support.
5459 2014-04-25 Tom Tromey <tromey@redhat.com>
5461 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5464 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5466 * NEWS: Mention support for C99 variable length arrays.
5468 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5470 * ada-lang.c (standard_exc): Expand introductory comment.
5472 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5473 Walfred Tedeschi <walfred.tedeschi@intel.com>
5475 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5477 (amd64_linux_read_description): Add code to handle AVX512 xstate
5478 mask and return respective tdesc.
5479 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5480 and features/i386/x32-avx512-linux.c.
5481 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5482 (amd64_linux_core_read_description): Add code to handle AVX512
5483 xstate mask and return respective tdesc.
5484 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5485 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5487 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5488 (tdesc_amd64_avx512_linux): New prototype.
5489 (tdesc_x32_avx512_linux): Likewise.
5490 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5491 features/i386/x32-avx512.c.
5492 (amd64_ymm_avx512_names): New register names for pseudo
5494 (amd64_ymmh_avx512_names): New register names for raw registers
5496 (amd64_k_names): New register names for K registers.
5497 (amd64_zmmh_names): New register names for ZMM raw registers.
5498 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5499 (amd64_xmm_avx512_names): New register names for XMM16-31
5501 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5503 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5504 if feature is present.
5505 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5506 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5507 (AMD64_NUM_REGS): Adjust to new number of registers.
5508 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5509 registers supplied via XSTATE by AVX512 registers.
5510 (i386_linux_read_description): Add case for AVX512.
5511 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5512 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5513 (i386_linux_core_read_description): Add case for AVX512.
5514 (i386_linux_init_abi): Install supported register note section
5516 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5518 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5519 registers to be number of zmm7h + 1.
5520 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5521 * i386-tdep.c: Include features/i386/i386-avx512.c.
5522 (i386_zmm_names): Add ZMM pseudo register names array.
5523 (i386_zmmh_names): Add ZMM raw register names array.
5524 (i386_k_names): Add K raw register names array.
5525 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5526 registers. AVX512 has 16 more ZMM registers than there are YMM
5528 (i386_zmmh_regnum_p): Add function to look up register number of
5530 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5531 (i386_k_regnum_p): Likewise for K raw registers.
5532 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5533 registers added by AVX512.
5534 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5535 registers added by AVX512.
5536 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5538 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5539 (i386_pseudo_register_name): Add ZMM pseudo registers.
5540 (i386_zmm_type): Construct and return vector registers type for ZMM
5542 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5543 ZMM0-31 pseudo registers and K registers.
5544 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5545 and YMM16-31 registers from register cache.
5546 (i386_pseudo_register_write): Add code to write K, ZMM and
5548 (i386_register_reggroup_p): Add code to include/exclude AVX512
5549 registers in/from respective register groups.
5550 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5551 registers if feature is present in xcr0.
5552 (i386_gdbarch_init): Add code to initialize AVX512 feature
5553 variables in tdep structure, wire in pseudo registers and call
5554 initialize_tdesc_i386_avx512.
5555 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5557 (i386_regnum): Add AVX512 registers.
5558 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5559 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5560 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5561 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5563 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5564 (i386_ymm_avx512_regnum_p): Likewise.
5565 (i386_k_regnum_p): Likewise.
5566 (i386_zmm_regnum_p): Likewise.
5567 (i386_zmmh_regnum_p): Likewise.
5568 * i387-tdep.c : Update year in copyright notice.
5569 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5571 (XSAVE_YMM_AVX512_ADDR): New macro.
5572 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5574 (XSAVE_XMM_AVX512_ADDR): New macro.
5575 (xsave_avx512_k_offset): New table for K register offsets in
5577 (XSAVE_AVX512_K_ADDR): New macro.
5578 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5580 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5581 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5583 (i387_collect_xsave): Add code to collect AVX512 registers from
5585 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5586 of XMM16-31 registers.
5587 (I387_NUM_K_REGS): New define for number of K registers.
5588 (I387_K0_REGNUM): New define for K0 register number.
5589 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5590 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5591 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5593 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5594 (I387_XMM16_REGNUM): New define for XMM16 register number.
5595 (I387_YMM0_REGNUM): New define for YMM0 register number.
5596 (I387_KEND_REGNUM): New define for last K register number.
5597 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5598 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5600 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5602 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5604 * features/Makefile: Add AVX512 related files.
5605 * features/i386/32bit-avx512.xml: New file.
5606 * features/i386/64bit-avx512.xml: Likewise.
5607 * features/i386/amd64-avx512-linux.c: Likewise.
5608 * features/i386/amd64-avx512-linux.xml: Likewise.
5609 * features/i386/amd64-avx512.c: Likewise.
5610 * features/i386/amd64-avx512.xml: Likewise.
5611 * features/i386/i386-avx512-linux.c: Likewise.
5612 * features/i386/i386-avx512-linux.xml: Likewise.
5613 * features/i386/i386-avx512.c: Likewise.
5614 * features/i386/i386-avx512.xml: Likewise.
5615 * features/i386/x32-avx512-linux.c: Likewise.
5616 * features/i386/x32-avx512-linux.xml: Likewise.
5617 * features/i386/x32-avx512.c: Likewise.
5618 * features/i386/x32-avx512.xml: Likewise.
5619 * regformats/i386/amd64-avx512-linux.dat: New file.
5620 * regformats/i386/amd64-avx512.dat: Likewise.
5621 * regformats/i386/i386-avx512-linux.dat: Likewise.
5622 * regformats/i386/i386-avx512.dat: Likewise.
5623 * regformats/i386/x32-avx512-linux.dat: Likewise.
5624 * regformats/i386/x32-avx512.dat: Likewise.
5625 * NEWS: Add note about new support for AVX512.
5628 2014-04-23 Pedro Alves <palves@redhat.com>
5630 * breakpoint.c (insert_bp_location): Tolerate errors if the
5631 breakpoint is set in a user-loaded objfile.
5632 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5633 location is marked shlib_disabled. If the breakpoint is set in a
5634 user-loaded objfile is a GDB-side memory breakpoint, validate it
5635 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5636 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5638 * mem-break.c (memory_validate_breakpoint): New function.
5639 * objfiles.c (userloaded_objfile_contains_address_p): New
5641 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5642 * target.h (memory_validate_breakpoint): New declaration.
5644 2014-04-23 Pedro Alves <palves@redhat.com>
5646 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5647 the breakpoint is set in a shared library, only suppress
5648 errors for software breakpoints, not hardware breakpoints.
5650 2014-04-22 Pedro Alves <palves@redhat.com>
5652 * infrun.c (schedlock_applies): New function, factored out from
5653 find_thread_needs_step_over.
5654 (find_thread_needs_step_over): Use it.
5655 (switch_back_to_stepped_thread): Always clear trap_expected if the
5656 step over is finished. Return early if scheduler locking applies.
5657 Look for the stepping thread and a potential step-over thread with
5659 (currently_stepping_or_nexting_callback): Delete.
5661 2014-04-22 Nick Clifton <nickc@redhat.com>
5663 * NEWS: Mention that ARM sim now supports tracing.
5665 2014-04-22 Yao Qi <yao@codesourcery.com>
5667 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5669 * tracefile.c (tracefile_fetch_registers): ... it. New
5671 * tracefile.h (tracefile_fetch_registers): Declare.
5672 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5673 tracefile_fetch_registers.
5675 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5678 * windows-nat.c (thread_rec): Don't display a warning when
5679 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5680 fails for any reason, set th->suspended to -1, so that we don't
5681 try to resume such a thread. Also, don't return NULL in these
5682 cases, to avoid completely ruin the session due to "PC register is
5683 not available" error.
5684 (do_windows_fetch_inferior_registers): Check errors in
5685 GetThreadContext call.
5686 (windows_continue): Accept an additional argument KILLED; if not
5687 zero, ignore errors in the SetThreadContext call, since the
5688 inferior was killed and is shutting down.
5689 (windows_resume, get_windows_debug_event)
5690 (windows_create_inferior, windows_mourn_inferior)
5691 (windows_kill_inferior): All callers of windows_continue changed
5692 to adjust to its new calling sequence.
5694 2014-04-19 Yao Qi <yao@codesourcery.com>
5696 * ctf.c (ctf_open): Call post_create_inferior.
5698 2014-04-19 Yao Qi <yao@codesourcery.com>
5700 * ctf.c (handle_id): New static variable.
5701 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5702 value. Get the declaration of event "register" and get length
5703 of field "contents".
5705 2014-04-19 Yao Qi <yao@codesourcery.com>
5707 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5709 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5711 * valops.c (oload_method_static): Remove unnecessary argument
5712 METHOD. Update all callers.
5714 2014-04-18 Pedro alves <palves@redhat.com>
5715 Tom Tromey <tromey@redhat.com>
5718 * frame.c (get_prev_frame_1): Rename to ...
5719 (get_prev_frame_always): ... this, and make extern. Adjust.
5720 (skip_artificial_frames): Use get_prev_frame_always.
5721 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5722 (get_frame_unwind_stop_reason): Adjust to rename.
5723 * frame.h (get_prev_frame_always): Declare.
5724 * inline-frame.c: Include frame.h.
5725 (inline_frame_this_id): Use get_prev_frame_always.
5727 2014-04-18 Tristan Gingold <gingold@adacore.com>
5729 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5730 code by using bfd_mach_o_get_base_address.
5732 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5734 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5735 (spu_ax_pseudo_register_collect): New function.
5736 (spu_ax_pseudo_register_push_stack): Likewise.
5737 (spu_dwarf_reg_to_regnum): Likewise.
5738 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5740 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5742 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5743 Replace FRAME argument with FRAME_ID.
5744 * gdbarch.c, gdbarch.h: Regenerate.
5745 * findvar.c (default_value_from_register): Add GDBARCH argument;
5746 replace FRAME by FRAME_ID. No longer call get_frame_id.
5747 (value_from_register): Update call to gdbarch_value_from_register.
5748 * value.h (default_value_from_register): Update prototype.
5749 * s390-linux-tdep.c (s390_value_from_register): Update interface
5750 and call to default_value_from_register.
5751 * spu-tdep.c (spu_value_from_register): Likewise.
5753 * findvar.c (address_from_register): Remove TYPE argument.
5754 Do not call value_from_register; use gdbarch_value_from_register
5755 with null_frame_id instead.
5756 * value.h (address_from_register): Update prototype.
5757 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5758 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5759 address_from_register interface change.
5761 2014-04-17 Yao Qi <yao@codesourcery.com>
5763 * gdbtypes.h: Update comments to link to types and macros'
5766 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5768 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5770 2014-04-16 Keith Seitz <keiths@redhat.com>
5773 * dwarf2read.c (skip_one_die): Check that all relative-offset
5774 sibling DIEs fall within range of the current reader's buffer.
5775 (read_partial_die): Likewise.
5777 2014-04-16 Keith Seitz <keiths@redhat.com>
5780 * cp-namespace.c (lookup_symbol_file): If the type name of
5781 `this' is NULL, return immediately.
5783 2014-04-14 Keith Seitz <keiths@redhat.com>
5786 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5787 from symbol_matches_domain in symtab.c. All local callers
5788 of symbol_matches_domain updated.
5789 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5790 search STRUCT_DOMAIN.
5791 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5792 independently. standard_lookup will do that automatically.
5793 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5794 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5795 (cp_lookup_symbol_in_namespace): Likewise.
5796 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5797 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5798 may return a STRUCT_DOMAIN match.
5799 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5800 * cp-support.c: Include language.h.
5801 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5803 * psymtab.c (match_partial_symbol): Compare the requested
5804 domain with the symbol's domain directly.
5805 (lookup_partial_symbol): Likewise.
5806 * symtab.c (lookup_symbol_in_language): Explain when/why
5807 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5808 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5809 appropriate languages.
5810 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5811 and moved to ada-lang.c
5812 (lookup_block_symbol): Explain that this function only returns
5813 symbol matching the requested DOMAIN.
5814 Compare the requested domain with the symbol's domain directly.
5815 (iterate_over_symbols): Compare the requested domain with the
5816 symbol's domain directly.
5817 * symtab.h (symbol_matches_domain): Remove.
5819 2014-04-14 Tom Tromey <tromey@redhat.com>
5822 * c-exp.y (type_aggregate_p): New function.
5823 (qualified_name, classify_inner_name): Use it.
5824 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5825 and TYPE_TARGET_TYPE of an enum type.
5826 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5828 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5829 handle TYPE_DECLARED_CLASS.
5830 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5832 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5833 * valops.c (enum_constant_from_type): New function.
5834 (value_aggregate_elt): Use it.
5835 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5838 2014-04-14 Tom Tromey <tromey@redhat.com>
5840 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5841 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5843 * value.h (value_aggregate_elt): Update.
5845 2014-04-14 Tom Tromey <tromey@redhat.com>
5847 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5849 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5851 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5852 (evaluate_subexp_standard): Pass noside argument.
5853 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5854 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5855 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5856 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5857 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5859 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5861 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5862 points to a constant blob.
5864 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5866 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5867 property and store it as the high bound and flag the range accordingly.
5868 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5869 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5870 * gdbtypes.h (enum range_flags): New enum.
5871 (struct range_bounds): Add flags member.
5873 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5875 * c-typeprint.c (c_type_print_varspec_suffix): Added
5876 check for not yet resolved high bound. If unresolved, print
5877 "variable length" string to the console instead of random
5880 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5882 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5884 (ada_template_to_fixed_record_type_1): Likewise.
5885 (ada_to_fixed_type_1): Likewise.
5886 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5887 (cp_print_value): Likewise.
5888 * d-valprint.c (dynamic_array_type): Likewise.
5889 * findvar.c (address_of_variable): Likewise.
5890 * jv-valprint.c (java_value_print): Likewise.
5891 * valops.c (value_ind): Likewise.
5892 * value.c (coerce_ref): Likewise.
5894 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5896 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5897 value and retrieve the dynamic type size.
5899 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5901 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5902 passed to sizeof is dynamic evaluate the argument to compute the length.
5904 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5905 Joel Brobecker <brobecker@adacore.com>
5907 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5908 (dwarf2_evaluate_property): New function.
5909 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5910 * dwarf2read.c (attr_to_dynamic_prop): New function.
5911 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5913 * gdbtypes.c: Include dwarf2loc.h.
5914 (is_dynamic_type): New function.
5915 (resolve_dynamic_type): New function.
5916 (resolve_dynamic_bounds): New function.
5917 (get_type_length): New function.
5918 (check_typedef): Use get_type_length to compute type length.
5919 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5920 (TYPE_LOW_BOUND_KIND): New macro.
5921 (is_dynamic_type): New function prototype.
5922 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5923 to resolve dynamic properties of the type. Update comment.
5924 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5926 2014-04-14 Richard Henderson <rth@redhat.com>
5928 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5930 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5931 Doug Evans <xdje42@gmail.com>
5933 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5934 dereference TYPE_CODE_REF values.
5936 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5938 Revert the following changes due to regressions:
5940 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5941 (dwarf2_evaluate_property): New function.
5942 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5943 * dwarf2read.c (attr_to_dynamic_prop): New function.
5944 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5946 * gdbtypes.c: Include dwarf2loc.h.
5947 (is_dynamic_type): New function.
5948 (resolve_dynamic_type): New function.
5949 (resolve_dynamic_bounds): New function.
5950 (get_type_length): New function.
5951 (check_typedef): Use get_type_length to compute type length.
5952 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5953 (TYPE_LOW_BOUND_KIND): New macro.
5954 (is_dynamic_type): New function prototype.
5955 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5956 to resolve dynamic properties of the type. Update comment.
5957 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5959 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5960 passed to sizeof is dynamic evaluate the argument to compute the length.
5962 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5963 value and retrieve the dynamic type size.
5965 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5966 (ada_template_to_fixed_record_type_1): Likewise.
5967 (ada_to_fixed_type_1): Likewise.
5968 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5969 (cp_print_value): Likewise.
5970 * d-valprint.c (dynamic_array_type): Likewise.
5971 * eval.c (evaluate_subexp_with_coercion): Likewise.
5972 * findvar.c (address_of_variable): Likewise.
5973 * jv-valprint.c (java_value_print): Likewise.
5974 * valops.c (value_ind): Likewise.
5975 * value.c (coerce_ref): Likewise.
5977 * c-typeprint.c (c_type_print_varspec_suffix): Added
5978 check for not yet resolved high bound. If unresolved, print
5979 "variable length" string to the console instead of random
5982 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5983 property and store it as the high bound and flag the range accordingly.
5984 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5985 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5986 * gdbtypes.h (enum range_flags): New enum.
5987 (struct range_bounds): Add flags member.
5989 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5990 points to a constant blob.
5992 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5993 (evaluate_subexp_standard): Pass noside argument.
5994 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5995 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5996 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5997 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5998 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6000 2014-04-11 Keith Seitz <keiths@redhat.com>
6003 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6004 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6007 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6009 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6010 (evaluate_subexp_standard): Pass noside argument.
6011 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6012 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6013 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6014 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6015 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6017 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6019 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6020 points to a constant blob.
6022 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6024 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6025 property and store it as the high bound and flag the range accordingly.
6026 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6027 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6028 * gdbtypes.h (enum range_flags): New enum.
6029 (struct range_bounds): Add flags member.
6031 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6033 * c-typeprint.c (c_type_print_varspec_suffix): Added
6034 check for not yet resolved high bound. If unresolved, print
6035 "variable length" string to the console instead of random
6038 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6040 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6041 (ada_template_to_fixed_record_type_1): Likewise.
6042 (ada_to_fixed_type_1): Likewise.
6043 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6044 (cp_print_value): Likewise.
6045 * d-valprint.c (dynamic_array_type): Likewise.
6046 * eval.c (evaluate_subexp_with_coercion): Likewise.
6047 * findvar.c (address_of_variable): Likewise.
6048 * jv-valprint.c (java_value_print): Likewise.
6049 * valops.c (value_ind): Likewise.
6050 * value.c (coerce_ref): Likewise.
6052 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6054 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6055 value and retrieve the dynamic type size.
6057 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6059 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6060 passed to sizeof is dynamic evaluate the argument to compute the length.
6062 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6064 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6065 (dwarf2_evaluate_property): New function.
6066 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6067 * dwarf2read.c (attr_to_dynamic_prop): New function.
6068 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6070 * gdbtypes.c: Include dwarf2loc.h.
6071 (is_dynamic_type): New function.
6072 (resolve_dynamic_type): New function.
6073 (resolve_dynamic_bounds): New function.
6074 (get_type_length): New function.
6075 (check_typedef): Use get_type_length to compute type length.
6076 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6077 (TYPE_LOW_BOUND_KIND): New macro.
6078 (is_dynamic_type): New function prototype.
6079 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6080 to resolve dynamic properties of the type. Update comment.
6081 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6083 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6085 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6086 declaring high/low bounds and change uses accordingly. Call
6087 create_range_type instead of create_static_range_type.
6088 * gdbtypes.c (create_range_type): New function.
6089 (create_range_type): Convert bounds into struct bound_prop and pass
6090 them to create_range_type.
6091 * gdbtypes.h (struct bound_prop): New struct.
6092 (create_range_type): New function prototype.
6093 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6094 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6095 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6097 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6099 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6101 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6102 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6103 * ada-lang.c: All uses of create_range_type updated.
6104 * coffread.c: All uses of create_range_type updated.
6105 * dwarf2read.c: All uses of create_range_type updated.
6106 * f-exp.y: All uses of create_range_type updated.
6107 * m2-valprint.c: All uses of create_range_type updated.
6108 * mdebugread.c: All uses of create_range_type updated.
6109 * stabsread.c: All uses of create_range_type updated.
6110 * valops.c: All uses of create_range_type updated.
6111 * valprint.c: All uses of create_range_type updated.
6113 2014-04-10 Pedro Alves <palves@redhat.com>
6115 * breakpoint.c (single_step_breakpoints)
6116 (single_step_gdbarch): Move up in the file.
6117 (one_breakpoint_xfer_memory): New function, factored out from ...
6118 (breakpoint_xfer_memory): ... here. Also process single-step
6121 2014-04-09 Tristan Gingold <gingold@adacore.com>
6123 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6125 (darwin_decode_exception_message): Free port only after use.
6127 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6129 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6130 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6131 when setting the size of call_length.
6133 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6135 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6136 dereference TYPE_CODE_REF values.
6138 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6140 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6141 end of warning message.
6143 2014-04-03 Doug Evans <dje@google.com>
6145 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6146 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6148 2014-04-02 Alan Modra <amodra@gmail.com>
6150 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6151 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6152 (struct symbol_file_add_from_memory_args): Add size field.
6153 (find_vdso_size): New function.
6154 (add_vsyscall_page): Attempt to find vdso size.
6156 2014-04-01 Doug Evans <dje@google.com>
6158 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6160 2014-04-01 Tristan Gingold <gingold@adacore.com>
6162 * darwin-nat.c (darwin_encode_reply): Add prototype.
6163 (darwin_decode_exception_message): Reply to unknown inferiors.
6164 (darwin_decode_message): Handle message by id. Ignore message
6165 to unknown inferior.
6166 (darwin_wait): Discard unknown messages, add debug trace.
6168 2014-03-31 Doug Evans <dje@google.com>
6170 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6173 2014-03-31 Doug Evans <dje@google.com>
6175 New option "set print symbol-loading".
6177 * solib.c (solib_read_symbols): Only print symbol loading messages
6179 (solib_add): If symbol loading is in "brief" mode, notify user
6180 symbols are being loaded.
6181 (reload_shared_libraries_1): Ditto.
6182 * symfile.c (print_symbol_loading_off): New static global.
6183 (print_symbol_loading_brief): New static global.
6184 (print_symbol_loading_full): New static global.
6185 (print_symbol_loading_enums): New static global.
6186 (print_symbol_loading): New static global.
6187 (print_symbol_loading_p): New function.
6188 (symbol_file_add_with_addrs): Only print symbol loading messages
6190 (_initialize_symfile): Register "print symbol-loading" set/show
6192 * symfile.h (print_symbol_loading_p): Declare.
6194 2014-03-30 Doug Evans <xdje42@gmail.com>
6196 * infrun.c (set_last_target_status): New function.
6197 (handle_inferior_event): Call it.
6199 2014-03-30 Doug Evans <xdje42@gmail.com>
6201 * inferior.h (enum stop_kind): Improve comment.
6203 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6205 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6206 a reference, strip the reference layer before calling
6207 the lang_ops value_has_mutated callback.
6209 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6211 Remove some globals from our parser.
6212 * language.c (unk_lang_parser): Add "struct parser_state"
6214 * language.h (struct language_defn) <la_parser>: Likewise.
6215 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6216 (initialize_expout): Add "struct parser_state" argument.
6217 Rewrite function to use the parser state.
6218 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6219 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6220 write_exp_elt_longcst, write_exp_elt_dblcst,
6221 write_exp_elt_decfloatcst, write_exp_elt_type,
6222 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6223 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6224 write_dollar_variable): Likewise.
6225 (parse_exp_in_context_1): Use parser state.
6226 (insert_type_address_space): Add "struct parser_state" argument.
6228 (increase_expout_size): New function.
6229 * parser-defs.h: Forward declare "struct language_defn" and
6230 "struct parser_state".
6231 (expout, expout_size, expout_ptr): Remove extern declarations.
6232 (parse_gdbarch, parse_language): Rewrite macro declarations to
6233 accept the parser state.
6234 (struct parser_state): New struct.
6235 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6236 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6237 write_exp_elt_decfloatcst, write_exp_elt_type,
6238 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6239 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6240 write_exp_msymbol, write_dollar_variable,
6241 mark_struct_expression, insert_type_address_space): Add "struct
6242 parser_state" argument.
6243 (increase_expout_size): New function.
6244 * utils.c (do_clear_parser_state): New function.
6245 (make_cleanup_clear_parser_state): Likewise.
6246 * utils.h (make_cleanup_clear_parser_state): New function
6248 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6249 Update calls to write_exp* in order to pass the parser state.
6250 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6251 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6252 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6253 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6254 * stap-probe.c (stap_parse_register_operand): Likewise.
6255 (stap_parse_single_operand): Likewise.
6256 (stap_parse_argument_1): Likewise.
6257 (stap_parse_argument): Use parser state.
6258 * stap-probe.h: Include "parser-defs.h".
6259 (struct stap_parse_info) <pstate>: New field.
6260 * c-exp.y (parse_type): Rewrite to use parser state.
6261 (yyparse): Redefine to c_parse_internal.
6262 (pstate): New global variable.
6263 (parse_number): Add "struct parser_state" argument.
6264 (write_destructor_name): Likewise.
6265 (type_exp): Update calls to write_exp* and similars in order to
6267 (exp1, exp, variable, qualified_name, space_identifier,
6268 typename, typebase): Likewise.
6269 (write_destructor_name, parse_number, lex_one_token,
6270 classify_name, classify_inner_name, c_parse): Add "struct
6271 parser_state" argument. Update function to use parser state.
6272 * c-lang.h: Forward declare "struct parser_state".
6273 (c_parse): Add "struct parser_state" argument.
6274 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6275 (yyparse): Redefine macro to ada_parse_internal.
6276 (pstate): New variable.
6277 (write_int, write_object_renaming, write_var_or_type,
6278 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6279 type_int, type_long, type_long_long, type_float, type_double,
6280 type_long_double, type_char, type_boolean, type_system_address):
6281 Add "struct parser_state" argument.
6282 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6283 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6284 var_or_type, aggregate, aggregate_component_list,
6285 positional_list, others, component_group,
6286 component_associations): Update calls to write_exp* and similar
6287 functions in order to use parser state.
6288 (ada_parse, write_var_from_sym, write_int,
6289 write_exp_op_with_string, write_object_renaming,
6290 find_primitive_type, write_selectors, write_ambiguous_var,
6291 write_var_or_type, write_name_assoc, type_int, type_long,
6292 type_long_long, type_float, type_double, type_long_double,
6293 type_char, type_boolean, type_system_address): Add "struct
6294 parser_state" argument. Adjust function to use parser state.
6295 * ada-lang.c (parse): Likewise.
6296 * ada-lang.h: Forward declare "struct parser_state".
6297 (ada_parse): Add "struct parser_state" argument.
6298 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6299 calls to both functions.
6300 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6302 (yyparse): Redefine macro to f_parse_internal.
6303 (pstate): New variable.
6304 (parse_number): Add "struct parser_state" argument.
6305 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6306 and similars in order to use parser state.
6307 (parse_number): Adjust code to use parser state.
6309 (f_parse): New function.
6310 * f-lang.h: Forward declare "struct parser_state".
6311 (f_parse): Add "struct parser_state" argument.
6312 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6314 (yyparse): Redefine macro for java_parse_internal.
6315 (pstate): New variable.
6316 (push_expression_name, push_expression_name, insert_exp): Add
6317 "struct parser_state" argument.
6318 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6319 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6320 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6321 PostIncrementExpression, PostDecrementExpression,
6322 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6323 UnaryExpressionNotPlusMinus, CastExpression,
6324 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6325 RelationalExpression, EqualityExpression, AndExpression,
6326 ExclusiveOrExpression, InclusiveOrExpression,
6327 ConditionalAndExpression, ConditionalOrExpression,
6328 ConditionalExpression, Assignment, LeftHandSide): Update
6329 calls to write_exp* and similars in order to use parser state.
6330 (parse_number): Ajust code to use parser state.
6332 (java_parse): New function.
6333 (push_variable): Add "struct parser_state" argument. Adjust
6334 code to user parser state.
6335 (push_fieldnames, push_qualified_expression_name,
6336 push_expression_name, insert_exp): Likewise.
6337 * jv-lang.h: Forward declare "struct parser_state".
6338 (java_parse): Add "struct parser_state" argument.
6339 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6341 (yyparse): Redefine macro to m2_parse_internal.
6342 (pstate): New variable.
6343 (type_exp, exp, fblock, variable, type): Update calls to
6344 write_exp* and similars to use parser state.
6346 (m2_parse): New function.
6347 * m2-lang.h: Forward declare "struct parser_state".
6348 (m2_parse): Add "struct parser_state" argument.
6349 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6350 * objc-lang.h: Forward declare "struct parser_state".
6351 (end_msglist): Add "struct parser_state" argument.
6352 * p-exp.y (parse_type): Rewrite macro to use parser state.
6353 (yyparse): Redefine macro to pascal_parse_internal.
6354 (pstate): New variable.
6355 (parse_number): Add "struct parser_state" argument.
6356 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6357 write_exp* and similars in order to use parser state.
6358 (parse_number, yylex): Adjust code to use parser state.
6359 (pascal_parse): New function.
6360 * p-lang.h: Forward declare "struct parser_state".
6361 (pascal_parse): Add "struct parser_state" argument.
6362 * go-exp.y (parse_type): Rewrite macro to use parser state.
6363 (yyparse): Redefine macro to go_parse_internal.
6364 (pstate): New variable.
6365 (parse_number): Add "struct parser_state" argument.
6366 (type_exp, exp1, exp, variable, type): Update calls to
6367 write_exp* and similars in order to use parser state.
6368 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6369 to use parser state.
6370 (go_parse): Likewise.
6371 * go-lang.h: Forward declare "struct parser_state".
6372 (go_parse): Add "struct parser_state" argument.
6374 2014-03-27 Doug Evans <dje@google.com>
6376 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6378 2014-03-27 Doug Evans <dje@google.com>
6380 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6381 Remove argument abbrev_section. All callers updated.
6383 2014-03-27 Doug Evans <dje@google.com>
6385 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6386 addr_base, ranges_base.
6388 2014-03-26 Keith Seitz <keiths@redhat.com>
6390 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6391 types, not VAR_DOMAIN.
6393 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6395 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6397 * features/nios2-linux.c: Regenerated.
6398 * features/nios2.c: Regenerated.
6400 2014-03-25 Pedro Alves <palves@redhat.com>
6402 * cli/cli-script.c (script_from_file): Force the interpreter to
6405 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6407 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6408 small stack allocation.
6410 2014-03-24 Tristan Gingold <gingold@adacore.com>
6412 * darwin-nat.c (exc_server): Remove unused prototype.
6413 (darwin_dump_message): Correctly display data on x86_64.
6414 (darwin_encode_reply): Fix style.
6415 Add comments and fix indentation.
6417 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6419 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6421 2014-03-22 Doug Evans <xdje42@gmail.com>
6423 * infcmd.c: Whitespace fixes.
6424 (interrupt_command): Merge two function comments into one.
6426 2014-03-22 Doug Evans <xdje42@gmail.com>
6428 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6431 2014-03-22 Yao Qi <yao@codesourcery.com>
6433 * remote.c (target_read_live_memory): Remove.
6434 (memory_xfer_live_readonly_partial): Rename it to
6435 remote_xfer_live_readonly_partial. Remove argument 'object'.
6436 All callers updated. Call remote_read_bytes_1
6437 instead of target_read_live_memory.
6438 * tracepoint.c (set_traceframe_number): Remove.
6439 (make_cleanup_restore_traceframe_number): Likewise .
6440 * tracepoint.h (set_traceframe_number): Remove declaration.
6441 (make_cleanup_restore_traceframe_number): Likewise.
6443 2014-03-22 Yao Qi <yao@codesourcery.com>
6445 * remote.c (remote_read_bytes): Move code on reading from the
6447 (remote_read_bytes_1): ... here. New function.
6449 2014-03-22 Yao Qi <yao@codesourcery.com>
6451 * ctf.c (ctf_xfer_partial): Check the return value of
6452 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6453 return TARGET_XFER_UNAVAILABLE.
6454 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6455 * target.c (target_read_live_memory): Move it to remote.c.
6456 (memory_xfer_live_readonly_partial): Likewise.
6457 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6458 * remote.c (target_read_live_memory): Moved from target.c.
6459 (memory_xfer_live_readonly_partial): Likewise.
6460 (remote_read_bytes): Factored out from
6461 memory_xfer_partial_1.
6463 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6465 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6468 2014-03-21 Pedro Alves <palves@redhat.com>
6470 * infrun.c (normal_stop): Extend comment.
6472 2014-03-21 Hui Zhu <hui@codesourcery.com>
6473 Pedro Alves <palves@redhat.com>
6475 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6477 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6478 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6479 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6481 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6483 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6484 `z' formatted output modifier.
6486 2014-03-20 Tom Tromey <tromey@redhat.com>
6487 Sergio Durigan Junior <sergiodj@redhat.com>
6489 * probe.c (parse_probes): Turn assert into an ordinary error.
6490 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6491 exceptions when parsing probes. Rearrange the code for clarity.
6493 2014-03-20 Tom Tromey <tromey@redhat.com>
6496 * top.c (execute_command): Only dispatch events if the command
6499 2014-03-20 Tom Tromey <tromey@redhat.com>
6502 * infcall.c: Include event-top.h.
6503 (run_inferior_call): Call async_disable_stdin if needed.
6505 2014-03-20 Pedro Alves <palves@redhat.com>
6507 * infrun.c (prepare_to_proceed): Delete.
6508 (thread_still_needs_step_over): New function.
6509 (find_thread_needs_step_over): New function.
6510 (proceed): If the current thread needs a step-over, set its
6511 steping_over_breakpoint flag. Adjust to use
6512 find_thread_needs_step_over instead of prepare_to_proceed.
6513 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6514 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6516 (switch_back_to_stepped_thread): Step over breakpoints of all
6517 threads not the stepping thread, before switching back to the
6520 2014-03-20 Pedro Alves <palves@redhat.com>
6522 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6524 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6525 * infrun.c (saved_singlestep_ptid)
6526 (stepping_past_singlestep_breakpoint): Delete.
6527 (resume): Remove stepping_past_singlestep_breakpoint handling.
6528 (proceed): Store the prev_pc of the stepping thread too.
6529 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6531 (enum infwait_states): Delete infwait_thread_hop_state.
6532 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6534 (handle_inferior_event): Adjust.
6535 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6536 handling and the thread-hop code. Before removing single-step
6537 breakpoints, check whether the thread hit a single-step breakpoint
6538 of another thread. If it did, the trap is not a random signal.
6539 (switch_back_to_stepped_thread): If the event thread hit a
6540 single-step breakpoint, unblock it before switching to the
6541 stepping thread. Handle the case of the stepped thread having
6543 (keep_going): Handle the case of the current thread moving past a
6544 single-step breakpoint.
6546 2014-03-20 Pedro Alves <palves@redhat.com>
6549 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6550 are being stepped over.
6551 (breakpoint_address_match): Make extern.
6552 * breakpoint.h (breakpoint_address_match): New declaration.
6553 * inferior.h (stepping_past_instruction_at): New declaration.
6554 * infrun.c (struct step_over_info): New type.
6555 (step_over_info): New global.
6556 (set_step_over_info, clear_step_over_info)
6557 (stepping_past_instruction_at): New functions.
6558 (handle_inferior_event): Clear the step-over info when
6559 trap_expected is cleared.
6560 (resume): Remove now stale comment.
6561 (clear_proceed_status): Clear step-over info.
6562 (proceed): Adjust step-over handling to set or clear the step-over
6563 info instead of removing all breakpoints.
6564 (handle_signal_stop): When setting up a thread-hop, don't remove
6566 (stop_stepping): Clear step-over info.
6567 (keep_going): Adjust step-over handling to set or clear step-over
6568 info and then always inserting breakpoints, instead of removing
6569 all breakpoints when stepping over one.
6571 2014-03-20 Pedro Alves <palves@redhat.com>
6573 * infrun.c (previous_inferior_ptid): Adjust comment.
6574 (deferred_step_ptid): Delete.
6575 (infrun_thread_ptid_changed, prepare_to_proceed)
6576 (init_wait_for_inferior): Adjust.
6577 (handle_signal_stop): Delete deferred_step_ptid handling.
6579 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6582 * defs.h (sync_quit_force_run): New declaration.
6583 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6584 * event-top.c (async_sigterm_handler): New declaration.
6585 (async_sigterm_token): New variable.
6586 (async_init_signals): Create also async_sigterm_token.
6587 (async_sigterm_handler): New function.
6588 (sync_quit_force_run): New variable.
6589 (handle_sigterm): Replace quit_force call by other calls.
6590 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6592 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6594 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6595 offset into SPE pseudo registers.
6597 2014-03-18 Pedro Alves <palves@redhat.com>
6600 * inferior.h (print_stop_event): Declare.
6601 * infrun.c (print_stop_event): New, factored out from ...
6602 (normal_stop): ... this.
6603 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6604 of bpstat_print/print_stack_frame.
6606 2014-03-17 Tom Tromey <tromey@redhat.com>
6608 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6610 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6612 * ada-lang.c (decode_constrained_packed_array): Perform a
6613 minimal coercion for reference with coerce_ref instead of
6616 2014-03-17 Tristan Gingold <gingold@adacore.com>
6618 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6619 (darwin_solib_create_inferior_hook): Emit a warning if version
6622 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6624 * python/py-value.c (get_field_flag): Cast flag_name argument to
6625 PyObject_GetAttrString to support Python 2.4.
6627 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6629 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6630 (Global Maintainers): Remove Jan Kratochvil.
6632 2014-03-14 Pedro Alves <palves@redhat.com>
6634 * inferior.h (terminal_ours_for_output): Rename to ...
6635 (child_terminal_ours_for_output): ... this.
6636 (terminal_save_ours): Rename to ...
6637 (child_terminal_save_ours): ... this.
6638 (terminal_ours): Rename to ...
6639 (child_terminal_ours): ... this.
6640 (terminal_inferior): Rename to ...
6641 (child_terminal_inferior): ... this.
6642 (terminal_init_inferior): Rename to ...
6643 (child_terminal_init_inferior): ... this.
6644 (terminal_init_inferior_with_pgrp): Rename to ...
6645 (child_terminal_init_inferior_with_pgrp): ... this.
6646 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6647 (child_terminal_init_with_pgrp): ... this.
6648 (terminal_save_ours): Rename to ...
6649 (child_terminal_save_ours): ... this.
6650 (terminal_init_inferior): Rename to ...
6651 (child_terminal_init): ... this. Adjust.
6652 (terminal_inferior): Rename to ...
6653 (child_terminal_inferior): ... this.
6654 (terminal_ours_for_output): Rename to ...
6655 (child_terminal_ours_for_output): ... this. Adjust.
6656 (terminal_ours): Rename to ...
6657 (child_terminal_ours): ... this.
6658 (terminal_ours_1): Rename to ...
6659 (child_terminal_ours_1): ... this. Adjust.
6660 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6661 * windows-nat.c (do_initial_windows_stuff): Adjust.
6662 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6663 (gnu_terminal_init): ... this. Adjust.
6664 (gnu_target): Adjust.
6665 * inf-child.c (inf_child_target): Adjust.
6667 2014-03-13 Doug Evans <xdje42@gmail.com>
6670 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6673 2014-03-13 Doug Evans <xdje42@gmail.com>
6675 * value.c (record_latest_value): Call release_value_or_incref
6676 instead of release_value.
6678 2014-03-13 Pedro Alves <palves@redhat.com>
6680 * procfs.c (procfs_target): Don't override to_shortname,
6681 to_longname or to_doc.
6683 2014-03-13 Pedro Alves <palves@redhat.com>
6685 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6686 Unix in user visible strings.
6688 2014-03-12 Stan Shebs <stan@codesourcery.com>
6690 * gdbtypes.h: Annotate comments for Doxygen, add a page
6691 block comment with some general info.
6693 2014-03-12 Pedro Alves <palves@redhat.com>
6695 * infcmd.c (prepare_execution_command): New function, factored out
6696 from several execution commands.
6697 (run_command_1, continue_command, step_1, jump_command)
6698 (signal_command, until_command, advance_command, finish_command)
6699 (attach_command): Use prepare_execution_command.
6701 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6703 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6706 (struct arm_linux_thread_points): Removed.
6707 (struct arm_linux_process_info): New.
6708 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6709 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6710 (arm_linux_find_breakpoints_by_tid): Removed.
6711 (struct arch_lwp_info): New.
6712 (arm_linux_find_process_pid): New functions.
6713 (arm_linux_add_process): New functions.
6714 (arm_linux_process_info_get): New functions.
6715 (arm_linux_forget_process): New function.
6716 (arm_linux_get_debug_reg_state): New function.
6717 (struct update_registers_data): New.
6718 (update_registers_callback): New function.
6719 (arm_linux_insert_hw_breakpoint1): Updated.
6720 (arm_linux_remove_hw_breakpoint1): Updated.
6721 (arm_linux_insert_hw_breakpoint): Updated.
6722 (arm_linux_remove_hw_breakpoint): Updated.
6723 (arm_linux_insert_watchpoint): Updated.
6724 (arm_linux_remove_watchpoint): Updated.
6725 (arm_linux_new_thread): Updated.
6726 (arm_linux_prepare_to_resume): New function.
6727 (arm_linux_new_fork): New function.
6728 (_initialize_arm_linux_nat): Updated.
6730 2014-03-12 Pedro Alves <palves@redhat.com>
6732 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6734 2014-03-12 Tom Tromey <tromey@redhat.com>
6736 * inf-child.c (return_zero): New function.
6737 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6738 * aix-thread.c (aix_thread_inferior_created): New function.
6739 (aix_thread_attach): Remove.
6740 (init_aix_thread_ops): Don't set to_attach.
6741 (_initialize_aix_thread): Register inferior_created observer.
6742 * corelow.c (init_core_ops): Don't set to_attach or
6744 * exec.c (init_exec_ops): Don't set to_attach or
6746 * infcmd.c (run_command_1): Use find_run_target. Make direct
6748 (attach_command): Use find_attach_target. Make direct target
6750 * record-btrace.c (init_record_btrace_ops): Don't set
6752 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6754 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6755 set to_create_inferior.
6756 * target.c (complete_target_initialization): Add assertion.
6757 (target_create_inferior): Remove.
6758 (find_default_attach, find_default_create_inferior): Remove.
6759 (find_attach_target, find_run_target): New functions.
6760 (find_default_is_async_p, find_default_can_async_p)
6761 (target_supports_non_stop, target_attach): Remove.
6762 (init_dummy_target): Don't set to_create_inferior or
6763 to_supports_non_stop.
6764 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6765 TARGET_DEFAULT_FUNC.
6766 <to_create_inferior>: Add comment.
6767 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6768 TARGET_DEFAULT_RETURN.
6769 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6770 (find_attach_target, find_run_target): Declare.
6771 (target_create_inferior): Remove.
6772 (target_has_execution_1): Update comment.
6773 (target_supports_non_stop): Remove.
6774 * target-delegates.c: Rebuild.
6776 2014-03-12 Pedro Alves <palves@redhat.com>
6778 * inf-child.h: Update comment to not mention Unix.
6780 2014-03-12 Pedro Alves <palves@redhat.com>
6782 * inf-child.c: Update top comment to not mention Unix. Add
6783 generic comment describing how this target is meant to be used.
6784 (inf_child_post_attach, inf_child_post_startup_inferior)
6785 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6788 2014-03-12 Pedro Alves <palves@redhat.com>
6790 * nto-procfs.c: Include inf-child.h.
6791 (procfs_ops): Delete global.
6792 (procfs_can_run): Delete method.
6793 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6794 target pointer instead of referencing procfs_ops.
6795 (procfs_prepare_to_store): Delete.
6796 (init_procfs_ops): Delete function.
6797 (procfs_target): New function, based on init_procfs_ops, but
6798 inherit inf_child_target.
6799 (_initialize_procfs): Use procfs_target.
6801 2014-03-12 Pedro Alves <palves@redhat.com>
6803 * windows-nat.c: Include inf-child.h.
6804 (windows_ops): Delete global.
6805 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6807 (init_windows_ops): Delete function.
6808 (windows_target): New function, based on init_windows_ops, but
6809 inherit inf_child_target.
6810 (_initialize_windows_nat): Use windows_target. Install x86
6811 specific target methods here.
6813 2014-03-10 Doug Evans <xdje42@gmail.com>
6815 * guile/guile.c (call_initialize_gdb_module): New function.
6816 (initialize_guile): Replace call to scm_init_guile with call to
6819 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6821 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6822 in call to TYPE_CODE macro.
6824 2014-03-10 Jerome Guitton <guitton@adacore.com>
6826 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6827 Resolve tagged types to full view.
6829 2014-03-10 Hui Zhu <hui@codesourcery.com>
6831 * target.h (target_insert_breakpoint): Remove "hardware" from its
6834 2014-03-07 Doug Evans <dje@google.com>
6836 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6838 2014-03-07 Doug Evans <dje@google.com>
6840 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6841 Remove unused local comp_dir_attr. Assert exactly one of
6842 stub_comp_unit_die, stub_comp_dir is non-NULL.
6844 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6846 * target.h (complete_target_initialization, add_target):
6849 2014-03-07 Pedro Alves <palves@redhat.com>
6851 * go32-nat.c: Include inf-child.h.
6852 (go32_ops): Delete global.
6853 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6855 (go32_create_inferior): Push the passed in target pointer instead
6856 of referencing go32_ops.
6857 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6858 (go32_target): New function, based on init_go32_ops, but inherit
6860 (_initialize_go32_nat): Use go32_target. Move parts of
6863 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6865 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6866 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6867 SYMBOL_VALUE_ADDRESS.
6868 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6870 2014-03-06 Yao Qi <yao@codesourcery.com>
6872 * breakpoint.c (get_tracepoint_by_number): Remove argument
6873 optional_p. All callers updated. Adjust comments. Update
6875 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6877 2014-03-06 Yao Qi <yao@codesourcery.com>
6879 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6880 early if get_number returns zero. Use 'p' instead of 'args'.
6882 2014-03-06 Yao Qi <yao@codesourcery.com>
6884 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6887 2014-03-06 Yao Qi <yao@codesourcery.com>
6889 PR breakpoints/16508
6890 * tracepoint.c (check_trace_running): New function.
6891 (trace_find_command): Move code to check_trace_running and
6892 call check_trace_running.
6893 (trace_find_pc_command): Likewise.
6894 (trace_find_tracepoint_command): Likewise.
6895 (trace_find_line_command): Likewise.
6896 (trace_find_range_command): Likewise.
6897 * tracepoint.h (check_trace_running): Likewise.
6898 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6900 2014-03-06 Yao Qi <yao@codesourcery.com>
6902 * target.h (struct target_ops) <to_traceframe_info>: Use
6903 TARGET_DEFAULT_NORETURN (tcomplain ()).
6904 * target-delegates.c: Regenerated.
6906 2014-03-05 Pedro Alves <palves@redhat.com>
6909 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6910 void. Update comment.
6911 (dcache_xfer_memory): Delete.
6912 (dcache_read_memory_partial): New, based on the read bits of
6914 (dcache_update): Add status parameter. Use ULONGEST for len, and
6915 adjust. Discard cache lines if the reason for the update was
6917 * dcache.h (dcache_xfer_memory): Delete declaration.
6918 (dcache_read_memory_partial): New declaration.
6919 (dcache_update): Update prototype.
6920 * target.c (raw_memory_xfer_partial): Update the dcache here.
6921 (memory_xfer_partial_1): Don't handle dcache writes here.
6923 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6925 * remote-sim.c (gdbsim_load): Add const to prog.
6927 2014-03-03 Tom Tromey <tromey@redhat.com>
6929 * elfread.c (probe_key): Change to bfd_data.
6930 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6931 now per-BFD, not per-objfile.
6932 * stap-probe.c (stap_probe_destroy): Update comment.
6933 (handle_stap_probe): Allocate on the per-BFD obstack.
6935 2014-03-03 Tom Tromey <tromey@redhat.com>
6937 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6938 * breakpoint.c (create_longjmp_master_breakpoint): Use
6940 (add_location_to_breakpoint, bkpt_probe_insert_location)
6941 (bkpt_probe_remove_location): Update.
6942 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6943 * elfread.c (elf_symfile_relocate_probe): Remove.
6944 (elf_probe_fns): Update.
6945 (insert_exception_resume_breakpoint): Change type of "probe"
6946 parameter to bound_probe.
6947 (check_exception_resume): Update.
6948 * objfiles.c (objfile_relocate1): Don't relocate probes.
6949 * probe.c (bound_probe_s): New typedef.
6950 (parse_probes): Use get_probe_address. Set sal's objfile.
6951 (find_probe_by_pc): Return a bound_probe.
6952 (collect_probes): Return a VEC(bound_probe_s).
6953 (compare_probes): Update.
6954 (gen_ui_out_table_header_info): Change type of "probes"
6956 (info_probes_for_ops): Update.
6957 (get_probe_address): New function.
6958 (probe_safe_evaluate_at_pc): Update.
6959 * probe.h (struct probe_ops) <get_probe_address>: New field.
6960 <set_semaphore, clear_semaphore>: Add objfile parameter.
6961 (struct probe) <objfile>: Remove field.
6963 <address>: Update comment.
6964 (struct bound_probe): New.
6965 (find_probe_by_pc): Return a bound_probe.
6966 (get_probe_address): Declare.
6967 * solib-svr4.c (struct probe_and_action) <address>: New field.
6968 (hash_probe_and_action, equal_probe_and_action): Update.
6969 (register_solib_event_probe): Add address parameter.
6970 (solib_event_probe_at): Update.
6971 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6973 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6974 (stap_get_probe_address): New function.
6975 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6976 (compile_probe_arg): Update.
6977 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6979 (handle_stap_probe): Don't relocate the probe.
6980 (stap_relocate): Remove.
6981 (stap_gen_info_probes_table_values): Update.
6982 (stap_probe_ops): Remove stap_relocate.
6983 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6984 (debug_sym_probe_fns): Update.
6985 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6986 * symtab.c (init_sal): Use memset.
6987 * symtab.h (struct symtab_and_line) <objfile>: New field.
6988 * tracepoint.c (start_tracing, stop_tracing): Update.
6990 2014-03-03 Tom Tromey <tromey@redhat.com>
6992 * probe.h (parse_probes, find_probe_by_pc)
6993 (find_probes_in_objfile): Fix comments.
6995 2014-03-02 Doug Evans <xdje42@gmail.com>
6997 * infrun.c (handle_signal_stop): Replace test for
6998 TARGET_WAITKIND_STOPPED with an assert.
7000 2014-03-02 Doug Evans <xdje42@gmail.com>
7002 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7004 2014-03-02 Doug Evans <xdje42@gmail.com>
7006 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7008 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7010 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7012 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7014 * i386obsd-nat.c: Include "obsd-nat.h".
7015 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7017 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7019 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7021 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7023 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7025 * mips64obsd-nat.c: Include "obsd-nath".
7026 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7028 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7030 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7032 * amd64obsd-nat.c: Include "obsd-nat,h.
7033 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7035 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7037 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7039 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7040 (find_overload_match): Update call to find_oload_champ.
7041 (find_oload_champ_namespace_loop): Likewise
7043 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7045 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7047 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7048 * config/sparc/obsd64.mh: New file.
7049 * sparc64obsd-nat.c: New file.
7051 * obsd-nat.h: New file.
7052 * obsd-nat.c: New file.
7053 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7054 (ALLDEPFILES): Add obsd-nat.c.
7056 2014-02-28 Tom Tromey <tromey@redhat.com>
7058 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7059 * cli-out.h (cli_ui_out_impl): Now const.
7060 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7061 * ui-out.c (struct ui_out) <impl>: Now const.
7062 (default_ui_out_impl): Now const.
7063 (ui_out_new): Make 'impl' parameter const.
7064 * ui-out.h (ui_out_new): Update.
7066 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7068 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7070 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7072 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7074 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7076 Additional PR 8882 fix.
7077 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7079 2014-02-27 Pedro Alves <palves@redhat.com>
7081 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7084 2014-02-27 Pedro Alves <palves@redhat.com>
7087 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7088 * nat/linux-waitpid.c: Include string.h.
7089 (status_to_str): Moved here and made extern.
7090 * nat/linux-waitpid.h (status_to_str): New declaration.
7092 2014-02-27 Hui Zhu <hui@codesourcery.com>
7095 * infrun.c (ptid_match): Move ...
7096 * common/ptid.c (ptid_match): ... here.
7097 * inferior.h (ptid_match): Move ...
7098 * common/ptid.h (ptid_match): ... here.
7100 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7102 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7103 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7106 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7108 * obsd-tdep.c (obsd_auxv_parse): New function.
7109 (obsd_init_abi): Set auxv_parse.
7111 * gdbarch.sh (auxv_parse): New.
7112 * gdbarch.h: Regenerated.
7113 * gdbarch.c: Regenerated.
7114 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7116 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7118 * guile/scm-value.c (gdbscm_history_append_x): New function.
7119 (value_functions): Add it.
7121 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7123 * dwarf2read.c (attr_value_as_address): New function.
7124 (dwarf2_find_base_address, read_call_site_scope): Use
7125 attr_value_as_address in place of DW_ADDR.
7126 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7127 the low and high addresses. Slight rework of the handling
7128 of the high pc being a constant form, and limit it to
7129 DWARF verson 4 or higher.
7130 (dwarf2_record_block_ranges): Likewise.
7131 (read_partial_die): Likewise.
7132 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7134 2014-02-26 Tom Tromey <tromey@redhat.com>
7136 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7138 2014-02-26 Tom Tromey <tromey@redhat.com>
7140 * elfread.c (elf_read_minimal_symbols): Return early if
7141 minimal symbols have already been read. Add "ei" parameter.
7142 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7143 * minsyms.c (prim_record_minimal_symbol_full): Update.
7144 * objfiles.h (struct objstats) <n_minsyms>: Move...
7145 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7146 * symmisc.c (print_objfile_statistics): Update.
7148 2014-02-26 Tom Tromey <tromey@redhat.com>
7150 * elfread.c (elf_read_minimal_symbols): New function, from
7152 (elf_symfile_read): Call it.
7154 2014-02-26 Tom Tromey <tromey@redhat.com>
7156 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7157 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7158 (lookup_minimal_symbol_solib_trampoline)
7159 (lookup_minimal_symbol_by_pc_section_1)
7160 (lookup_minimal_symbol_and_objfile): Update.
7161 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7162 Don't allocate a minimal symbol if minsyms have already been read.
7163 (build_minimal_symbol_hash_tables): Update.
7164 (install_minimal_symbols): Do nothing if minsyms already read.
7165 Use the per-BFD obstack.
7166 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7167 * objfiles.c (allocate_objfile): Call
7168 terminate_minimal_symbol_table later.
7169 (have_minimal_symbols): Update.
7170 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7171 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7172 Move from struct objfile.
7173 <minsyms_read>: New field.
7174 (struct objfile) <msymbols, minimal_symbol_count,
7175 msymbol_hash, msymbol_demangled_hash>: Move.
7176 (ALL_OBJFILE_MSYMBOLS): Update.
7177 * symfile.c (read_symbols): Set minsyms_read.
7178 (reread_symbols): Update.
7179 * symmisc.c (dump_objfile, dump_msymbols): Update.
7181 2014-02-26 Tom Tromey <tromey@redhat.com>
7183 * minsyms.c (msymbols_sort): Remove.
7184 * minsyms.h (msymbols_sort): Remove.
7185 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7186 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7187 * elfread.c (elf_symtab_read): Don't add section offsets.
7188 * xcoffread.c (record_minimal_symbol): Don't add section offset
7189 to minimal symbol address.
7190 * somread.c (text_offset, data_offset): Remove.
7191 (som_symtab_read): Don't add section offsets to minimal symbol
7193 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7194 Don't add section offsets to minimal symbols.
7195 * coffread.c (coff_symtab_read): Don't add section offsets
7196 to minimal symbol addresses.
7197 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7198 to minimal symbol addresses.
7199 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7200 section offset to minimal symbol addresses.
7201 * mdebugread.c (parse_partial_symbols): Don't add section
7202 offset to minimal symbol addresses.
7203 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7204 offset to minimal symbol addresses.
7206 2014-02-26 Tom Tromey <tromey@redhat.com>
7208 * ada-lang.c (ada_main_name): Update.
7209 (ada_add_standard_exceptions): Update.
7210 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7211 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7212 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7213 * auxv.c (ld_so_xfer_auxv): Update.
7214 * avr-tdep.c (avr_scan_prologue): Update.
7215 * ax-gdb.c (gen_var_ref): Update.
7216 * blockframe.c (get_pc_function_start)
7217 (find_pc_partial_function_gnu_ifunc): Update.
7218 * breakpoint.c (create_overlay_event_breakpoint)
7219 (create_longjmp_master_breakpoint)
7220 (create_std_terminate_master_breakpoint)
7221 (create_exception_master_breakpoint): Update.
7222 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7223 * c-valprint.c (c_val_print): Update.
7224 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7225 * common/agent.c (agent_look_up_symbols): Update.
7226 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7227 * dwarf2loc.c (call_site_to_target_addr): Update.
7228 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7229 * elfread.c (elf_gnu_ifunc_record_cache)
7230 (elf_gnu_ifunc_resolve_by_got): Update.
7231 * findvar.c (default_read_var_value): Update.
7232 * frame.c (inside_main_func): Update.
7233 * frv-tdep.c (frv_frame_this_id): Update.
7234 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7235 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7237 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7238 (hppa_hpux_find_dummy_bpaddr): Update.
7239 * hppa-tdep.c (hppa_symbol_address): Update.
7240 * infcmd.c (until_next_command): Update.
7241 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7243 * linespec.c (minsym_found, add_minsym): Update.
7244 * linux-nat.c (get_signo): Update.
7245 * linux-thread-db.c (inferior_has_bug): Update.
7246 * m32c-tdep.c (m32c_return_value)
7247 (m32c_m16c_address_to_pointer): Update.
7248 * m32r-tdep.c (m32r_frame_this_id): Update.
7249 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7250 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7251 * maint.c (maintenance_translate_address): Update.
7252 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7253 (frob_address): New function.
7254 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7255 frob_address. Rename parameter to "pc_in".
7256 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7258 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7260 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7261 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7262 * objc-lang.c (find_objc_msgsend): Update.
7263 * objfiles.c (objfile_relocate1): Update.
7264 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7265 * p-valprint.c (pascal_val_print): Update.
7266 * parse.c (write_exp_msymbol): Update.
7267 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7268 (ppc_elfv2_skip_entrypoint): Update.
7269 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7270 * printcmd.c (build_address_symbolic, msym_info)
7271 (address_info): Update.
7272 * proc-service.c (ps_pglobal_lookup): Update.
7273 * psymtab.c (find_pc_sect_psymtab_closer)
7274 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7275 Change msymbol parameter to bound_minimal_symbol.
7276 * ravenscar-thread.c (get_running_thread_id): Update.
7277 * remote.c (remote_check_symbols): Update.
7278 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7280 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7281 * solib-dsbt.c (lm_base): Update.
7282 * solib-frv.c (lm_base, main_got): Update.
7283 * solib-irix.c (locate_base): Update.
7284 * solib-som.c (som_solib_create_inferior_hook)
7285 (link_map_start): Update.
7286 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7287 * solib-svr4.c (elf_locate_base, enable_break): Update.
7288 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7289 (flush_ea_cache): Update.
7290 * stabsread.c (define_symbol, scan_file_globals): Update.
7291 * stack.c (find_frame_funname): Update.
7292 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7293 (debug_qf_find_pc_sect_symtab): Update.
7294 * symfile.c (simple_read_overlay_table)
7295 (simple_overlay_update): Update.
7296 * symfile.h (struct quick_symbol_functions)
7297 <find_pc_sect_symtab>: Change type of msymbol to
7298 bound_minimal_symbol.
7299 * symmisc.c (dump_msymbols): Update.
7300 * symtab.c (find_pc_sect_symtab_via_partial)
7301 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7302 (search_symbols, print_msymbol_info): Update.
7303 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7304 (MSYMBOL_VALUE_ADDRESS): Redefine.
7305 (BMSYMBOL_VALUE_ADDRESS): New macro.
7306 * tracepoint.c (scope_info): Update.
7307 * tui/tui-disasm.c (tui_find_disassembly_address)
7308 (tui_get_begin_asm_address): Update.
7309 * valops.c (find_function_in_inferior): Update.
7310 * value.c (value_static_field, value_fn_field): Update.
7312 2014-02-26 Tom Tromey <tromey@redhat.com>
7314 * ada-lang.c (ada_update_initial_language): Update.
7315 (ada_main_name, ada_has_this_exception_support): Update.
7316 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7317 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7318 * arm-tdep.c (arm_skip_stub): Update.
7319 * auxv.c (ld_so_xfer_auxv): Update.
7320 * avr-tdep.c (avr_scan_prologue): Update.
7321 * ax-gdb.c (gen_var_ref): Update.
7322 * breakpoint.c (struct breakpoint_objfile_data)
7323 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7324 type to bound_minimal_symbol.
7325 (create_overlay_event_breakpoint)
7326 (create_longjmp_master_breakpoint)
7327 (create_std_terminate_master_breakpoint)
7328 (create_exception_master_breakpoint): Update.
7329 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7330 * c-exp.y (classify_name): Update.
7331 * coffread.c (coff_symfile_read): Update.
7332 * common/agent.c (agent_look_up_symbols): Update.
7333 * d-lang.c (d_main_name): Update.
7334 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7335 * dec-thread.c (enable_dec_thread): Update.
7336 * dwarf2loc.c (call_site_to_target_addr): Update.
7337 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7338 * eval.c (evaluate_subexp_standard): Update.
7339 * findvar.c (struct minsym_lookup_data) <result>: Change type
7340 to bound_minimal_symbol.
7342 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7343 * frame.c (inside_main_func): Update.
7344 * frv-tdep.c (frv_frame_this_id): Update.
7345 * gcore.c (call_target_sbrk): Update.
7346 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7347 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7349 * go-lang.c (go_main_name): Update.
7350 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7351 (hppa_hpux_find_import_stub_for_addr): Update.
7352 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7353 Update. Change return type.
7354 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7356 * jit.c (jit_breakpoint_re_set_internal): Update.
7357 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7359 * linux-nat.c (get_signo): Update.
7360 * linux-thread-db.c (inferior_has_bug): Update
7361 * m32c-tdep.c (m32c_return_value)
7362 (m32c_m16c_address_to_pointer): Update.
7363 * m32r-tdep.c (m32r_frame_this_id): Update.
7364 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7365 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7366 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7367 lookup_minimal_symbol. Change return type.
7368 (lookup_minimal_symbol): Remove.
7369 (lookup_bound_minimal_symbol): Update.
7370 (lookup_minimal_symbol_text): Change return type.
7371 (lookup_minimal_symbol_solib_trampoline): Change return type.
7372 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7373 (lookup_minimal_symbol_solib_trampoline): Change return type.
7374 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7375 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7376 (value_nsstring, find_imps): Update.
7377 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7378 * p-lang.c (pascal_main_name): Update.
7379 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7380 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7381 * proc-service.c (ps_pglobal_lookup): Update.
7382 * ravenscar-thread.c (get_running_thread_msymbol): Change
7384 (has_ravenscar_runtime, get_running_thread_id): Update.
7385 * remote.c (remote_check_symbols): Update.
7386 * sol-thread.c (ps_pglobal_lookup): Update.
7387 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7388 * solib-dsbt.c (lm_base): Update.
7389 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7391 * solib-irix.c (locate_base): Update.
7392 * solib-som.c (som_solib_create_inferior_hook)
7393 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7395 * solib-spu.c (spu_enable_break): Update.
7396 * solib-svr4.c (elf_locate_base, enable_break): Update.
7397 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7398 (flush_ea_cache): Update.
7399 * stabsread.c (define_symbol): Update.
7400 * symfile.c (simple_read_overlay_table): Update.
7401 * symtab.c (find_pc_sect_line): Update.
7402 * tracepoint.c (scope_info): Update.
7403 * tui-disasm.c (tui_get_begin_asm_address): Update.
7404 * value.c (value_static_field): Update.
7406 2014-02-26 Tom Tromey <tromey@redhat.com>
7408 * minsyms.c (prim_record_minimal_symbol_full): Use
7409 SET_MSYMBOL_VALUE_ADDRESS.
7410 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7411 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7412 SET_MSYMBOL_VALUE_ADDRESS.
7413 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7414 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7416 2014-02-26 Tom Tromey <tromey@redhat.com>
7418 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7419 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7420 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7421 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7422 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7423 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7424 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7425 * ada-lang.c (ada_main_name): Update.
7426 (ada_lookup_simple_minsym): Update.
7427 (ada_make_symbol_completion_list): Update.
7428 (ada_add_standard_exceptions): Update.
7429 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7430 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7431 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7432 * arm-tdep.c (skip_prologue_function): Update.
7433 (arm_skip_stack_protector, arm_skip_stub): Update.
7434 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7435 (arm_wince_skip_main_prologue): Update.
7436 * auxv.c (ld_so_xfer_auxv): Update.
7437 * avr-tdep.c (avr_scan_prologue): Update.
7438 * ax-gdb.c (gen_var_ref): Update.
7439 * block.c (call_site_for_pc): Update.
7440 * blockframe.c (get_pc_function_start): Update.
7441 (find_pc_partial_function_gnu_ifunc): Update.
7442 * breakpoint.c (create_overlay_event_breakpoint): Update.
7443 (create_longjmp_master_breakpoint): Update.
7444 (create_std_terminate_master_breakpoint): Update.
7445 (create_exception_master_breakpoint): Update.
7446 (resolve_sal_pc): Update.
7447 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7448 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7450 * c-valprint.c (c_val_print): Update.
7451 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7452 * coffread.c (coff_symfile_read): Update.
7453 * common/agent.c (agent_look_up_symbols): Update.
7454 * dbxread.c (find_stab_function_addr): Update.
7455 (end_psymtab): Update.
7456 * dwarf2loc.c (call_site_to_target_addr): Update.
7457 (func_verify_no_selftailcall): Update.
7458 (tailcall_dump): Update.
7459 (call_site_find_chain_1): Update.
7460 (dwarf_expr_reg_to_entry_parameter): Update.
7461 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7462 (elf_gnu_ifunc_resolve_by_got): Update.
7463 * f-valprint.c (info_common_command): Update.
7464 * findvar.c (read_var_value): Update.
7465 * frame.c (get_prev_frame_1): Update.
7466 (inside_main_func): Update.
7467 * frv-tdep.c (frv_skip_main_prologue): Update.
7468 (frv_frame_this_id): Update.
7469 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7470 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7471 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7472 (gnuv3_skip_trampoline): Update.
7473 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7474 (hppa64_hpux_in_solib_call_trampoline): Update.
7475 (hppa_hpux_skip_trampoline_code): Update.
7476 (hppa64_hpux_search_dummy_call_sequence): Update.
7477 (hppa_hpux_find_import_stub_for_addr): Update.
7478 (hppa_hpux_find_dummy_bpaddr): Update.
7479 * hppa-tdep.c (hppa_symbol_address)
7480 (hppa_lookup_stub_minimal_symbol): Update.
7481 * i386-tdep.c (i386_skip_main_prologue): Update.
7482 (i386_pe_skip_trampoline_code): Update.
7483 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7484 * infcall.c (get_function_name): Update.
7485 * infcmd.c (until_next_command): Update.
7486 * jit.c (jit_breakpoint_re_set_internal): Update.
7487 (jit_inferior_init): Update.
7488 * linespec.c (minsym_found): Update.
7489 (add_minsym): Update.
7490 * linux-fork.c (info_checkpoints_command): Update.
7491 * linux-nat.c (get_signo): Update.
7492 * linux-thread-db.c (inferior_has_bug): Update.
7493 * m32c-tdep.c (m32c_return_value): Update.
7494 (m32c_m16c_address_to_pointer): Update.
7495 (m32c_m16c_pointer_to_address): Update.
7496 * m32r-tdep.c (m32r_frame_this_id): Update.
7497 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7498 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7499 * maint.c (maintenance_translate_address): Update.
7500 * minsyms.c (add_minsym_to_hash_table): Update.
7501 (add_minsym_to_demangled_hash_table): Update.
7502 (msymbol_objfile): Update.
7503 (lookup_minimal_symbol): Update.
7504 (iterate_over_minimal_symbols): Update.
7505 (lookup_minimal_symbol_text): Update.
7506 (lookup_minimal_symbol_by_pc_name): Update.
7507 (lookup_minimal_symbol_solib_trampoline): Update.
7508 (lookup_minimal_symbol_by_pc_section_1): Update.
7509 (lookup_minimal_symbol_and_objfile): Update.
7510 (prim_record_minimal_symbol_full): Update.
7511 (compare_minimal_symbols): Update.
7512 (compact_minimal_symbols): Update.
7513 (build_minimal_symbol_hash_tables): Update.
7514 (install_minimal_symbols): Update.
7515 (terminate_minimal_symbol_table): Update.
7516 (find_solib_trampoline_target): Update.
7517 (minimal_symbol_upper_bound): Update.
7518 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7519 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7520 (mips_skip_pic_trampoline_code): Update.
7521 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7522 * objc-lang.c (selectors_info): Update.
7523 (classes_info): Update.
7524 (find_methods): Update.
7525 (find_imps): Update.
7526 (find_objc_msgsend): Update.
7527 * objfiles.c (objfile_relocate1): Update.
7528 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7529 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7530 * p-valprint.c (pascal_val_print): Update.
7531 * parse.c (write_exp_msymbol): Update.
7532 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7533 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7534 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7535 * printcmd.c (build_address_symbolic): Update.
7537 (address_info): Update.
7538 * proc-service.c (ps_pglobal_lookup): Update.
7539 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7540 (find_pc_sect_psymtab): Update.
7541 * python/py-framefilter.c (py_print_frame): Update.
7542 * ravenscar-thread.c (get_running_thread_id): Update.
7543 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7545 * remote.c (remote_check_symbols): Update.
7546 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7547 (rs6000_skip_trampoline_code): Update.
7548 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7549 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7550 * solib-dsbt.c (lm_base): Update.
7551 * solib-frv.c (lm_base): Update.
7553 * solib-irix.c (locate_base): Update.
7554 * solib-som.c (som_solib_create_inferior_hook): Update.
7555 (som_solib_desire_dynamic_linker_symbols): Update.
7556 (link_map_start): Update.
7557 * solib-spu.c (spu_enable_break): Update.
7558 (ocl_enable_break): Update.
7559 * solib-svr4.c (elf_locate_base): Update.
7560 (enable_break): Update.
7561 * spu-tdep.c (spu_get_overlay_table): Update.
7562 (spu_catch_start): Update.
7563 (flush_ea_cache): Update.
7564 * stabsread.c (define_symbol): Update.
7565 (scan_file_globals): Update.
7566 * stack.c (find_frame_funname): Update.
7567 (frame_info): Update.
7568 * symfile.c (simple_read_overlay_table): Update.
7569 (simple_overlay_update): Update.
7570 * symmisc.c (dump_msymbols): Update.
7571 * symtab.c (fixup_section): Update.
7572 (find_pc_sect_line): Update.
7573 (skip_prologue_sal): Update.
7574 (search_symbols): Update.
7575 (print_msymbol_info): Update.
7576 (rbreak_command): Update.
7577 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7578 (completion_list_objc_symbol): Update.
7579 (default_make_symbol_completion_list_break_on): Update.
7580 * tracepoint.c (scope_info): Update.
7581 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7582 (tui_get_begin_asm_address): Update.
7583 * valops.c (find_function_in_inferior): Update.
7584 * value.c (value_static_field): Update.
7585 (value_fn_field): Update.
7587 2014-02-26 Tom Tromey <tromey@redhat.com>
7589 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7590 bound minimal symbols. Move code that knows about minsym
7592 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7594 * minsyms.h (minimal_symbol_upper_bound): Declare.
7595 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7596 minimal_symbol_upper_bound.
7598 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7600 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7601 Use the type's name if its basic type does not have a tag.
7603 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7605 * dwarf2read.c (read_subrange_type): Add comment.
7607 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7609 * dwarf2read.c (update_enumeration_type_from_children): New
7610 function, mostly extracted from process_structure_scope.
7611 (read_enumeration_type): Call update_enumeration_type_from_children.
7612 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7613 and flag_flag_enum fields.
7615 2014-02-26 Pedro Alves <palves@redhat.com>
7617 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7618 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7619 to_xfer_partial method.
7621 2014-02-26 Pedro Alves <palves@redhat.com>
7623 * target.c (complete_target_initialization): Don't install
7624 default_xfer_partial as to_xfer_partial hook.
7626 (update_current_target): Don't INHERIT nor de_fault
7627 deprecated_xfer_memory. Delete de_fault macro.
7628 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7629 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7630 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7633 2014-02-26 Pedro Alves <palves@redhat.com>
7635 * go32-nat.c (my_write_child): New function.
7636 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7637 (go32_xfer_partial): New function.
7638 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7639 Instead install a to_xfer_partial hook.
7641 2014-02-26 Pedro Alves <palves@redhat.com>
7643 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7644 to_xfer_partial helper. Rewrite.
7645 (procfs_xfer_partial): New function.
7646 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7647 Install a to_xfer_partial hook.
7649 2014-02-26 Pedro Alves <palves@redhat.com>
7651 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7652 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7653 (m32r_xfer_partial): New function.
7654 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7655 Install a to_xfer_partial hook.
7657 2014-02-26 Pedro Alves <palves@redhat.com>
7659 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7661 (mips_xfer_partial): New function.
7662 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7663 hook. Install a to_xfer_partial hook.
7665 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7667 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7668 * gdbtypes.c (create_array_type_with_stride): New function,
7669 renaming create_array_type, but with an added parameter
7670 called "bit_stride".
7671 (create_array_type): Re-implement using
7672 create_array_type_with_stride.
7673 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7674 and DW_AT_bit_stride attributes.
7676 2014-02-26 Pedro Alves <palves@redhat.com>
7678 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7679 task-specific breakpoints.
7681 2014-02-25 Pedro Alves <palves@redhat.com>
7683 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7684 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7686 2014-02-25 Stan Shebs <stan@codesourcery.com>
7688 * defs.h: Annotate comments for Doxygen.
7690 2014-02-25 Tom Tromey <tromey@redhat.com>
7692 * target.h (target_ignore): Don't declare.
7693 * target.c (target_ignore): Remove.
7695 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7698 * auto-load.c (auto_load_objfile_script_1): Change filename to
7701 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7703 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7704 documentation. Adjust prototype to match the target_ops
7705 to_xfer_partial method. Adjust implementation accordingly.
7707 2014-02-25 Hui Zhu <hui@codesourcery.com>
7709 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7712 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7714 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7715 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7716 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7717 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7718 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7719 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7720 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7721 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7723 (rl78_register_type): Use a data pointer type for SP and
7724 new pseudo registers mentioned above. Use a 16 bit integer
7725 type for all other register pairs.
7726 (rl78_register_name, rl78_g10_register_name): Update for
7727 new pseudo registers.
7728 (rl78_pseudo_register_read): Likewise.
7729 (rl78_pseudo_register_write): Likewise.
7730 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7731 to the newly added pseudo registers.
7733 2014-02-24 Doug Evans <dje@google.com>
7735 * value.c (record_latest_value): Fix comment.
7736 * printcmd.c (print_command_1): Remove code to handle -1 return from
7737 record_latest_value.
7739 2014-02-24 Pedro Alves <palves@redhat.com>
7741 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7742 deprecated_xfer_memory hook.
7743 (procfs_xfer_partial): Call procfs_xfer_memory instead
7744 of the deprecated_xfer_memory target hook.
7745 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7748 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7750 * windows-nat.c (windows_xfer_shared_libraries): Return
7751 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7752 requested object is TARGET_OBJECT_LIBRARIES.
7754 2014-02-24 Yao Qi <yao@codesourcery.com>
7756 * target.h (enum target_xfer_status)
7757 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7758 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7760 * corefile.c (memory_error_message): User updated.
7761 * exec.c (section_table_read_available_memory): Likewise.
7762 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7763 * target.c (target_xfer_status_to_string): Likewise.
7764 (raw_memory_xfer_partial): Likewise.
7765 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7766 * valops.c (read_value_memory): Likewise.
7767 * exec.h: Update comments.
7769 2014-02-24 Yao Qi <yao@codesourcery.com>
7771 * target.c (target_xfer_status_to_string): Rename argument err
7773 * target.h (target_xfer_status_to_string): Update declaration.
7774 Replace target_xfer_error_to_string with
7775 target_xfer_status_to_string in comment.
7777 2014-02-24 Yao Qi <yao@codesourcery.com>
7779 * mips-linux-nat.c (super_close): Update its type.
7780 (mips_linux_close): Pass 'self' to super_close.
7782 2014-02-24 Yao Qi <yao@codesourcery.com>
7784 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7785 * corefile.c (read_memory): Adjusted.
7786 * target.c (target_write_with_progress): Adjusted.
7788 2014-02-23 Yao Qi <yao@codesourcery.com>
7792 2013-10-25 Yao Qi <yao@codesourcery.com>
7794 * remote.c (remote_traceframe_info): Return early if
7795 traceframe is not selected.
7797 2013-07-19 Yao Qi <yao@codesourcery.com>
7799 * target.c (update_current_target): Change the default action
7800 of 'to_traceframe_info' from tcomplain to return_zero.
7801 * target.h (struct target_ops) <to_traceframe_info>: Add more
7804 2014-02-23 Yao Qi <yao@codesourcery.com>
7806 * valops.c (read_value_memory): Rewrite it. Call
7807 target_xfer_partial in a loop.
7808 * exec.h (section_table_available_memory): Remove declaration.
7809 Move comments to ...
7810 * exec.c (section_table_available_memory): ... here. Make it
7813 2014-02-23 Yao Qi <yao@codesourcery.com>
7815 * exec.c (section_table_read_available_memory): New function.
7816 * exec.h (section_table_read_available_memory): Declare.
7817 * ctf.c (ctf_xfer_partial): Call
7818 section_table_read_available_memory.
7819 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7821 2014-02-23 Yao Qi <yao@codesourcery.com>
7823 * ctf.c (ctf_xfer_partial): Move code to ...
7824 * exec.c (exec_read_partial_read_only): ... it. New function.
7825 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7826 * tracefile.c: Include "exec.h".
7827 * exec.h (exec_read_partial_read_only): Declare.
7829 2014-02-23 Yao Qi <yao@codesourcery.com>
7831 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7832 (tfile_has_memory): Remove.
7833 (init_tfile_ops): Don't set fields to_has_all_memory and
7834 to_has_memory of tfile_ops.
7835 * tracefile.c (tracefile_has_all_memory): New function.
7836 (tracefile_has_memory): New function.
7837 (init_tracefile_ops): Initialize fields to_has_all_memory and
7838 to_has_memory of 'ops'.
7840 2014-02-23 Yao Qi <yao@codesourcery.com>
7842 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7843 (ctf_thread_alive, ctf_get_trace_status): Remove.
7844 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7846 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7847 (tfile_has_stack, tfile_has_registers): Remove.
7848 (tfile_thread_alive): Remove.
7849 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7851 * tracefile.c (tracefile_has_stack): New function.
7852 (tracefile_has_registers): New function.
7853 (tracefile_thread_alive): New function.
7854 (tracefile_get_trace_status): New function.
7855 (init_tracefile_ops): New function.
7856 * tracefile.h (init_tracefile_ops): Declare.
7858 2014-02-23 Yao Qi <yao@codesourcery.com>
7860 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7861 (O_LARGEFILE): Likewise.
7862 (tfile_ops): Likewise.
7863 (TRACE_HEADER_SIZE): Likewise.
7864 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7865 (cur_data_size): Likewise.
7866 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7867 (tfile_close, tfile_files_info): Likewise.
7868 (tfile_get_trace_status): Likewise.
7869 (tfile_get_tracepoint_status): Likewise.
7870 (tfile_get_traceframe_address): Likewise.
7871 (tfile_trace_find, match_blocktype): Likewise.
7872 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7873 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7874 (tfile_get_trace_state_variable_value): Likewise.
7875 (tfile_has_all_memory, tfile_has_memory): Likewise.
7876 (tfile_has_stack, tfile_has_registers): Likewise.
7877 (tfile_thread_alive, build_traceframe_info): Likewise.
7878 (tfile_traceframe_info, init_tfile_ops): Likewise.
7879 (_initialize_tracepoint): Don't call init_tfile_ops
7880 and add_target_with_completer.
7881 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7882 exec.h, completer.h and filenames.h.
7883 (_initialize_tracefile_tfile): New function.
7885 2014-02-23 Yao Qi <yao@codesourcery.com>
7887 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7889 (HFILES_NO_SRCDIR): Add tracefile.h.
7890 * ctf.c: Include "tracefile.h".
7891 * tracefile.h: New file.
7892 * tracefile.c: New file
7893 * tracefile-tfile.c: New file.
7894 * tracepoint.c: Include "tracefile.h".
7895 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7896 (stop_reason_names): Add const.
7897 (trace_file_writer_xfree): Move it to tracefile.c.
7898 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7899 (trace_save_ctf): Likewise.
7900 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7901 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7902 (tfile_write_header, tfile_write_regblock_type): Likewise.
7903 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7904 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7905 (tfile_write_raw_data, tfile_end): Likewise.
7906 (tfile_trace_file_writer_new): Likewise.
7907 (free_uploaded_tp): Make it extern.
7908 (free_uploaded_tsv): Make it extern.
7909 (_initialize_tracepoint): Move code to register command 'tsave'
7911 * tracepoint.h (stop_reason_names): Declare.
7912 (struct trace_frame_write_ops): Move it to tracefile.h.
7913 (struct trace_file_write_ops): Likewise.
7914 (struct trace_file_writer): Likewise.
7915 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7917 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7920 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7922 (get_cores_used_by_process): New parameter num_cores, use it.
7923 (linux_xfer_osdata_processes): Pass num_cores to it.
7924 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7927 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7929 * target.c (memory_xfer_partial): Fix length arg in call to
7930 breakpoint_xfer_memory.
7932 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7935 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7936 number comes after the + or - signs. Adjust length of register
7937 name to be extracted.
7939 2014-02-20 Tom Tromey <tromey@redhat.com>
7941 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7942 (ada_varobj_ops): Mark "extern".
7944 2014-02-20 Tom Tromey <tromey@redhat.com>
7946 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7948 2014-02-20 Doug Evans <xdje42@gmail.com>
7950 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7951 All callers updated.
7952 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7953 All callers updated.
7954 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7955 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7957 2014-02-20 lin zuojian <manjian2006@gmail.com>
7958 Joel Brobecker <brobecker@adacore.com>
7959 Doug Evans <xdje42@gmail.com>
7962 * dwarf2read.c (struct die_info): New member in_process.
7963 (reset_die_in_process): New function.
7964 (process_die): Set it at the start, reset when returning.
7965 (inherit_abstract_dies): Only call process_die if origin_child_die
7966 not already being processed.
7968 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7970 * windows-nat.c (handle_unload_dll): Add function documentation.
7971 (do_initial_windows_stuff): Add comment explaining why we wait
7972 until after inferior initialization has finished before
7973 processing all DLLs.
7975 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7977 * windows-nat.c (get_module_name): Delete.
7978 (windows_get_exec_module_filename): New function, mostly
7979 inspired from get_module_name.
7980 (windows_pid_to_exec_file): Replace call to get_module_name
7981 by call to windows_get_exec_module_filename.
7983 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7985 * windows-nat.c (handle_load_dll): Rewrite this function's
7986 introductory comment. Remove code using get_module_name
7987 to get the DLL's name.
7989 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7991 * windows-nat.c (get_windows_debug_event): Ignore
7992 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7993 if windows_initialization_done == 0.
7994 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7995 Adjust implementation to always load all DLLs.
7996 (do_initial_windows_stuff): Replace call to
7997 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7999 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8001 * windows-nat.c (_initialize_windows_nat): Deprecate the
8002 "dll-symbols" command. Turn the "add-shared-symbol-files"
8003 and "assf" aliases into commands, and deprecate them as well.
8004 * NEWS: Add entry explaining that "dll-symbols" and its two
8005 aliases are now deprecated.
8007 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8009 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8010 new-line in debug string. Remove trailing spaces.
8012 2014-02-19 Stan Shebs <stan@codesourcery.com>
8014 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8016 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8018 * NEWS: Add entry for the new feature
8019 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8022 2014-02-19 Stan Shebs <stan@codesourcery.com>
8024 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8026 2014-02-19 Pedro Alves <palves@redhat.com>
8028 * common/ptid.h (struct ptid): Mention that process_stratum
8029 targets should prefer ptid.lwp.
8031 2014-02-19 Pedro Alves <palves@redhat.com>
8033 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8034 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8035 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8036 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8037 store remote thread ids rather than ptid.tid.
8038 (_initialize_remote): Adjust.
8040 2014-02-19 Tom Tromey <tromey@redhat.com>
8042 * target.c (target_get_unwinder): Rewrite.
8043 (target_get_tailcall_unwinder): Rewrite.
8044 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8045 (record_btrace_to_get_tailcall_unwinder): New function.
8046 (init_record_btrace_ops): Update.
8047 * target.h (struct target_ops) <to_get_unwinder,
8048 to_get_tailcall_unwinder>: Now function pointers. Use
8049 TARGET_DEFAULT_RETURN.
8051 2014-02-19 Tom Tromey <tromey@redhat.com>
8053 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8055 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8057 2014-02-19 Tom Tromey <tromey@redhat.com>
8059 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8061 * target-delegates.c: Rebuild.
8062 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8063 TARGET_DEFAULT_FUNC.
8064 * target.c (default_target_decr_pc_after_break): Rename from
8065 forward_target_decr_pc_after_break. Simplify.
8066 (target_decr_pc_after_break): Rely on delegation.
8068 2014-02-19 Tom Tromey <tromey@redhat.com>
8070 * target.c (update_current_target): Do not INHERIT to_doc or
8071 to_magic. Do not de_fault to_open or to_close.
8073 2014-02-19 Tom Tromey <tromey@redhat.com>
8075 * gcore.h (objfile_find_memory_regions): Declare.
8076 * gcore.c (objfile_find_memory_regions): No longer static. Add
8078 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8079 * exec.c: Include gcore.h.
8080 (exec_set_find_memory_regions): Remove.
8081 (exec_find_memory_regions): Remove.
8082 (exec_do_find_memory_regions): Remove.
8083 (init_exec_ops): Update.
8084 * defs.h (exec_set_find_memory_regions): Remove.
8086 2014-02-19 Tom Tromey <tromey@redhat.com>
8088 * target-delegates.c: Rebuild.
8089 * target.h (struct target_ops) <to_extra_thread_info,
8090 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8091 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8092 not 0, in TARGET_DEFAULT_RETURN.
8094 2014-02-19 Tom Tromey <tromey@redhat.com>
8096 * target.c (complete_target_initialization): Remove casts. Use
8097 return_zero_has_execution.
8098 (return_zero): Add "ignore" argument.
8099 (return_zero_has_execution): New function.
8100 (init_dummy_target): Remove casts. Use
8101 return_zero_has_execution.
8103 2014-02-19 Tom Tromey <tromey@redhat.com>
8105 * target.c (update_current_target): Update comments. Do not
8108 2014-02-19 Tom Tromey <tromey@redhat.com>
8110 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8112 * corelow.c (core_read_description): Delegate when needed.
8113 * remote.c (remote_read_description): Delegate when needed.
8114 * target-delegates.c: Rebuild.
8115 * target.c (target_read_description): Rewrite.
8116 * target.h (struct target_ops) <to_read_description>: Update
8117 comment. Use TARGET_DEFAULT_RETURN.
8119 2014-02-19 Tom Tromey <tromey@redhat.com>
8121 * target-delegates.c: Rebuild.
8122 * target.c (update_current_target): Don't inherit or default
8124 (find_default_run_target): Check against delegate_can_run.
8125 * target.h (struct target_ops) <to_can_run>: Use
8126 TARGET_DEFAULT_RETURN.
8128 2014-02-19 Tom Tromey <tromey@redhat.com>
8130 * target-delegates.c: Rebuild.
8131 * target.c (target_disconnect): Unconditionally delegate.
8132 * target.h (struct target_ops) <to_disconnect>: Use
8133 TARGET_DEFAULT_NORETURN.
8135 2014-02-19 Tom Tromey <tromey@redhat.com>
8137 * record.c (record_stop): Unconditionally delegate.
8138 * target-delegates.c: Rebuild.
8139 * target.c (target_stop_recording): Unconditionally delegate.
8140 * target.h (struct target_ops) <to_stop_recording>: Use
8141 TARGET_DEFAULT_IGNORE.
8143 2014-02-19 Tom Tromey <tromey@redhat.com>
8145 * target-delegates.c: Rebuild.
8146 * target.c (target_enable_btrace): Unconditionally delegate.
8147 * target.h (struct target_ops) <to_enable_btrace>: Use
8148 TARGET_DEFAULT_NORETURN.
8150 2014-02-19 Tom Tromey <tromey@redhat.com>
8152 * target-delegates.c: Rebuild.
8153 * target.c (target_read_btrace): Unconditionally delegate.
8154 * target.h (struct target_ops) <to_read_btrace>: Use
8155 TARGET_DEFAULT_NORETURN.
8157 2014-02-19 Tom Tromey <tromey@redhat.com>
8159 * target-delegates.c: Rebuild.
8160 * target.c (target_teardown_btrace): Unconditionally delegate.
8161 * target.h (struct target_ops) <to_teardown_btrace>: Use
8162 TARGET_DEFAULT_NORETURN.
8164 2014-02-19 Tom Tromey <tromey@redhat.com>
8166 * target-delegates.c: Rebuild.
8167 * target.c (target_disable_btrace): Unconditionally delegate.
8168 * target.h (struct target_ops) <to_disable_btrace>: Use
8169 TARGET_DEFAULT_NORETURN.
8171 2014-02-19 Tom Tromey <tromey@redhat.com>
8173 * target-delegates.c: Rebuild.
8174 * target.c (default_search_memory): New function.
8175 (simple_search_memory): Update comment.
8176 (target_search_memory): Unconditionally delegate.
8177 * target.h (struct target_ops) <to_search_memory>: Use
8178 TARGET_DEFAULT_FUNC.
8180 2014-02-19 Tom Tromey <tromey@redhat.com>
8182 * auxv.c (default_auxv_parse): No longer static.
8183 (target_auxv_parse): Unconditionally delegate.
8184 * auxv.h (default_auxv_parse): Declare.
8185 * target-delegates.c: Rebuild.
8186 * target.c: Include auxv.h.
8187 * target.h (struct target_ops) <to_auxv_parse>: Use
8188 TARGET_DEFAULT_FUNC.
8190 2014-02-19 Tom Tromey <tromey@redhat.com>
8192 * target-delegates.c: Rebuild.
8193 * target.c (target_memory_map): Unconditionally delegate.
8194 * target.h (struct target_ops) <to_memory_map>: Use
8195 TARGET_DEFAULT_RETURN.
8197 2014-02-19 Tom Tromey <tromey@redhat.com>
8199 * target-delegates.c: Rebuild.
8200 * target.c (target_thread_alive): Unconditionally delegate.
8201 * target.h (struct target_ops) <to_thread_alive>: Use
8202 TARGET_DEFAULT_RETURN.
8204 2014-02-19 Tom Tromey <tromey@redhat.com>
8206 * target-delegates.c: Rebuild.
8207 * target.c (target_save_record): Unconditionally delegate.
8208 * target.h (struct target_ops) <to_save_record>: Use
8209 TARGET_DEFAULT_NORETURN.
8211 2014-02-19 Tom Tromey <tromey@redhat.com>
8213 * target-delegates.c: Rebuild.
8214 * target.c (target_delete_record): Unconditionally delegate.
8215 * target.h (struct target_ops) <to_delete_record>: Use
8216 TARGET_DEFAULT_NORETURN.
8218 2014-02-19 Tom Tromey <tromey@redhat.com>
8220 * target-delegates.c: Rebuild.
8221 * target.c (target_record_is_replaying): Unconditionally
8223 * target.h (struct target_ops) <to_record_is_replaying>: Use
8224 TARGET_DEFAULT_RETURN.
8226 2014-02-19 Tom Tromey <tromey@redhat.com>
8228 * target-delegates.c: Rebuild.
8229 * target.c (target_goto_record_begin): Unconditionally delegate.
8230 * target.h (struct target_ops) <to_goto_record_begin>: Use
8231 TARGET_DEFAULT_NORETURN.
8233 2014-02-19 Tom Tromey <tromey@redhat.com>
8235 * target-delegates.c: Rebuild.
8236 * target.c (target_goto_record_end): Unconditionally delegate.
8237 * target.h (struct target_ops) <to_goto_record_end>: Use
8238 TARGET_DEFAULT_NORETURN.
8240 2014-02-19 Tom Tromey <tromey@redhat.com>
8242 * target-delegates.c: Rebuild.
8243 * target.c (target_goto_record): Unconditionally delegate.
8244 * target.h (struct target_ops) <to_goto_record>: Use
8245 TARGET_DEFAULT_NORETURN.
8247 2014-02-19 Tom Tromey <tromey@redhat.com>
8249 * target-delegates.c: Rebuild.
8250 * target.c (target_insn_history): Unconditionally delegate.
8251 * target.h (struct target_ops) <to_insn_history>: Use
8252 TARGET_DEFAULT_NORETURN.
8254 2014-02-19 Tom Tromey <tromey@redhat.com>
8256 * target-delegates.c: Rebuild.
8257 * target.c (target_insn_history_from): Unconditionally delegate.
8258 * target.h (struct target_ops) <to_insn_history_from>: Use
8259 TARGET_DEFAULT_NORETURN.
8261 2014-02-19 Tom Tromey <tromey@redhat.com>
8263 * target-delegates.c: Rebuild.
8264 * target.c (target_insn_history_range): Unconditionally delegate.
8265 * target.h (struct target_ops) <to_insn_history_range>: Use
8266 TARGET_DEFAULT_NORETURN.
8268 2014-02-19 Tom Tromey <tromey@redhat.com>
8270 * target-delegates.c: Rebuild.
8271 * target.c (target_call_history): Unconditionally delegate.
8272 * target.h (struct target_ops) <to_call_history>: Use
8273 TARGET_DEFAULT_NORETURN.
8275 2014-02-19 Tom Tromey <tromey@redhat.com>
8277 * target-delegates.c: Rebuild.
8278 * target.c (target_call_history_from): Unconditionally delegate.
8279 * target.h (struct target_ops) <to_call_history_from>: Use
8280 TARGET_DEFAULT_NORETURN.
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8284 * target-delegates.c: Rebuild.
8285 * target.c (target_call_history_range): Unconditionally delegate.
8286 * target.h (struct target_ops) <to_call_history_range>: Use
8287 TARGET_DEFAULT_NORETURN.
8289 2014-02-19 Tom Tromey <tromey@redhat.com>
8291 * target-delegates.c: Rebuild.
8292 * target.c (target_verify_memory): Unconditionally delegate.
8293 * target.h (struct target_ops) <to_verify_memory>: Use
8294 TARGET_DEFAULT_NORETURN.
8296 2014-02-19 Tom Tromey <tromey@redhat.com>
8298 * target-delegates.c: Rebuild.
8299 * target.c (target_core_of_thread): Unconditionally delegate.
8300 * target.h (struct target_ops) <to_core_of_thread>: Use
8301 TARGET_DEFAULT_RETURN.
8303 2014-02-19 Tom Tromey <tromey@redhat.com>
8305 * target-delegates.c: Rebuild.
8306 * target.c (target_flash_done): Unconditionally delegate.
8307 * target.h (struct target_ops) <to_flash_done>: Use
8308 TARGET_DEFAULT_NORETURN.
8310 2014-02-19 Tom Tromey <tromey@redhat.com>
8312 * target-delegates.c: Rebuild.
8313 * target.c (target_flash_erase): Unconditionally delegate.
8314 * target.h (struct target_ops) <to_flash_erase>: Use
8315 TARGET_DEFAULT_NORETURN.
8317 2014-02-19 Tom Tromey <tromey@redhat.com>
8319 * target-delegates.c: Rebuild.
8320 * target.c (target_get_section_table): Unconditionally delegate.
8321 * target.h (struct target_ops) <to_get_section_table>: Use
8322 TARGET_DEFAULT_RETURN.
8324 2014-02-19 Tom Tromey <tromey@redhat.com>
8326 * target-delegates.c: Rebuild.
8327 * target.c (target_pid_to_str): Unconditionally delegate.
8328 (init_dummy_target): Don't initialize to_pid_to_str.
8329 (default_pid_to_str): Rename from dummy_pid_to_str.
8330 * target.h (struct target_ops) <to_pid_to_str>: Use
8331 TARGET_DEFAULT_FUNC.
8333 2014-02-19 Tom Tromey <tromey@redhat.com>
8335 * target-delegates.c: Rebuild.
8336 * target.c (target_find_new_threads): Unconditionally delegate.
8337 * target.h (struct target_ops) <to_find_new_threads>: Use
8338 TARGET_DEFAULT_RETURN.
8340 2014-02-19 Tom Tromey <tromey@redhat.com>
8342 * target-delegates.c: Rebuild.
8343 * target.c (target_program_signals): Unconditionally delegate.
8344 * target.h (struct target_ops) <to_program_signals>: Use
8345 TARGET_DEFAULT_IGNORE.
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8349 * target-delegates.c: Rebuild.
8350 * target.c (target_pass_signals): Unconditionally delegate.
8351 * target.h (struct target_ops) <to_pass_signals>: Use
8352 TARGET_DEFAULT_IGNORE.
8354 2014-02-19 Tom Tromey <tromey@redhat.com>
8356 * target-delegates.c: Rebuild.
8357 * target.c (default_mourn_inferior): New function.
8358 (target_mourn_inferior): Unconditionally delegate.
8359 * target.h (struct target_ops) <to_mourn_inferior>: Use
8360 TARGET_DEFAULT_FUNC.
8362 2014-02-19 Tom Tromey <tromey@redhat.com>
8364 * target-delegates.c: Rebuild.
8365 * target.c (default_follow_fork): New function.
8366 (target_follow_fork): Unconditionally delegate.
8367 * target.h (struct target_ops) <to_follow_fork>: Use
8368 TARGET_DEFAULT_FUNC.
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8372 * target-delegates.c: Rebuild.
8373 * target.c (target_kill): Unconditionally delegate.
8374 * target.h (struct target_ops) <to_kill>: Use
8375 TARGET_DEFAULT_NORETURN.
8377 2014-02-19 Tom Tromey <tromey@redhat.com>
8379 * target-delegates.c: Rebuild.
8380 * target.c (target_masked_watch_num_registers): Unconditionally
8382 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8383 Use TARGET_DEFAULT_RETURN.
8385 2014-02-19 Tom Tromey <tromey@redhat.com>
8387 * target-delegates.c: Rebuild.
8388 * target.c (target_remove_mask_watchpoint): Unconditionally
8390 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8391 TARGET_DEFAULT_RETURN.
8393 2014-02-19 Tom Tromey <tromey@redhat.com>
8395 * target-delegates.c: Rebuild.
8396 * target.c (target_insert_mask_watchpoint): Unconditionally
8398 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8399 TARGET_DEFAULT_RETURN.
8401 2014-02-19 Tom Tromey <tromey@redhat.com>
8403 * target-delegates.c: Rebuild.
8404 * target.c (target_ranged_break_num_registers): Unconditionally
8406 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8407 Use TARGET_DEFAULT_RETURN.
8409 2014-02-19 Tom Tromey <tromey@redhat.com>
8411 * target-delegates.c: Rebuild.
8412 * target.c (target_fetch_registers): Unconditionally delegate.
8413 * target.h (struct target_ops) <to_fetch_registers>: Use
8414 TARGET_DEFAULT_NORETURN.
8416 2014-02-19 Tom Tromey <tromey@redhat.com>
8418 * target-delegates.c: Rebuild.
8419 * target.c (update_current_target): Don't inherit or default
8421 * target.h (struct target_ops) <to_stop>: Use
8422 TARGET_DEFAULT_IGNORE.
8424 2014-02-19 Tom Tromey <tromey@redhat.com>
8426 * target-delegates.c: Rebuild.
8427 * target.c (update_current_target): Don't inherit or default
8428 to_can_run_breakpoint_commands.
8429 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8430 Use TARGET_DEFAULT_RETURN.
8432 2014-02-19 Tom Tromey <tromey@redhat.com>
8434 * target-delegates.c: Rebuild.
8435 * target.c (update_current_target): Don't inherit or default
8436 to_supports_evaluation_of_breakpoint_conditions.
8437 * target.h (struct target_ops)
8438 <to_supports_evaluation_of_breakpoint_conditions>: Use
8439 TARGET_DEFAULT_RETURN.
8441 2014-02-19 Tom Tromey <tromey@redhat.com>
8443 * target-delegates.c: Rebuild.
8444 * target.c (update_current_target): Don't inherit or default
8445 to_augmented_libraries_svr4_read.
8446 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8447 Use TARGET_DEFAULT_RETURN.
8449 2014-02-19 Tom Tromey <tromey@redhat.com>
8451 * target-delegates.c: Rebuild.
8452 * target.c (update_current_target): Don't inherit or default
8454 * target.h (struct target_ops) <to_can_use_agent>: Use
8455 TARGET_DEFAULT_RETURN.
8457 2014-02-19 Tom Tromey <tromey@redhat.com>
8459 * target-delegates.c: Rebuild.
8460 * target.c (update_current_target): Don't inherit or default
8462 * target.h (struct target_ops) <to_use_agent>: Use
8463 TARGET_DEFAULT_NORETURN.
8465 2014-02-19 Tom Tromey <tromey@redhat.com>
8467 * target-delegates.c: Rebuild.
8468 * target.c (update_current_target): Don't inherit or default
8470 (return_null): Remove.
8471 * target.h (struct target_ops) <to_traceframe_info>: Use
8472 TARGET_DEFAULT_RETURN.
8474 2014-02-19 Tom Tromey <tromey@redhat.com>
8476 * target-delegates.c: Rebuild.
8477 * target.c (update_current_target): Don't inherit or default
8478 to_static_tracepoint_markers_by_strid.
8479 * target.h (struct target_ops)
8480 <to_static_tracepoint_markers_by_strid>: Use
8481 TARGET_DEFAULT_NORETURN.
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8485 * target-delegates.c: Rebuild.
8486 * target.c (update_current_target): Don't inherit or default
8487 to_static_tracepoint_marker_at.
8488 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8489 Use TARGET_DEFAULT_RETURN.
8491 2014-02-19 Tom Tromey <tromey@redhat.com>
8493 * target-delegates.c: Rebuild.
8494 * target.c (update_current_target): Don't inherit or default
8496 * target.h (struct target_ops) <to_set_permissions>: Use
8497 TARGET_DEFAULT_IGNORE.
8499 2014-02-19 Tom Tromey <tromey@redhat.com>
8501 * target-delegates.c: Rebuild.
8502 * target.c (update_current_target): Don't inherit or default
8504 * target.h (struct target_ops) <to_get_tib_address>: Use
8505 TARGET_DEFAULT_NORETURN.
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8509 * target-delegates.c: Rebuild.
8510 * target.c (update_current_target): Don't inherit or default
8512 * target.h (struct target_ops) <to_set_trace_notes>: Use
8513 TARGET_DEFAULT_RETURN.
8515 2014-02-19 Tom Tromey <tromey@redhat.com>
8517 * target-delegates.c: Rebuild.
8518 * target.c (update_current_target): Don't initialize
8519 to_set_trace_buffer_size.
8520 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8521 TARGET_DEFAULT_IGNORE.
8523 2014-02-19 Tom Tromey <tromey@redhat.com>
8525 * target-delegates.c: Rebuild.
8526 * target.c (update_current_target): Don't inherit or default
8527 to_set_circular_trace_buffer.
8528 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8529 TARGET_DEFAULT_IGNORE.
8531 2014-02-19 Tom Tromey <tromey@redhat.com>
8533 * target-delegates.c: Rebuild.
8534 * target.c (update_current_target): Don't inherit or default
8535 to_set_disconnected_tracing.
8536 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8537 TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
8544 (return_minus_one): Remove.
8545 * target.h (struct target_ops)
8546 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8550 * target-delegates.c: Rebuild.
8551 * target.c (update_current_target): Don't inherit or default
8552 to_get_raw_trace_data.
8553 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8554 TARGET_DEFAULT_NORETURN.
8556 2014-02-19 Tom Tromey <tromey@redhat.com>
8558 * target-delegates.c: Rebuild.
8559 * target.c (update_current_target): Don't inherit or default
8560 to_upload_trace_state_variables.
8561 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8562 Use TARGET_DEFAULT_RETURN.
8564 2014-02-19 Tom Tromey <tromey@redhat.com>
8566 * target-delegates.c: Rebuild.
8567 * target.c (update_current_target): Don't inherit or default
8568 to_upload_tracepoints.
8569 * target.h (struct target_ops) <to_upload_tracepoints>: 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
8577 * target.h (struct target_ops) <to_save_trace_data>: Use
8578 TARGET_DEFAULT_NORETURN.
8580 2014-02-19 Tom Tromey <tromey@redhat.com>
8582 * target-delegates.c: Rebuild.
8583 * target.c (update_current_target): Don't inherit or default
8584 to_get_trace_state_variable_value.
8585 * target.h (struct target_ops)
8586 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8590 * target-delegates.c: Rebuild.
8591 * target.c (update_current_target): Don't inherit or default
8593 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8595 2014-02-19 Tom Tromey <tromey@redhat.com>
8597 * target-delegates.c: Rebuild.
8598 * target.c (update_current_target): Don't inherit or default
8600 * target.h (struct target_ops) <to_trace_stop>: Use
8601 TARGET_DEFAULT_NORETURN.
8603 2014-02-19 Tom Tromey <tromey@redhat.com>
8605 * target-delegates.c: Rebuild.
8606 * target.c (update_current_target): Don't inherit or default
8607 to_get_tracepoint_status.
8608 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8609 TARGET_DEFAULT_NORETURN.
8611 2014-02-19 Tom Tromey <tromey@redhat.com>
8613 * target-delegates.c: Rebuild.
8614 * target.c (update_current_target): Don't inherit or default
8615 to_get_trace_status.
8616 * target.h (struct target_ops) <to_get_trace_status>: Use
8617 TARGET_DEFAULT_RETURN.
8619 2014-02-19 Tom Tromey <tromey@redhat.com>
8621 * target-delegates.c: Rebuild.
8622 * target.c (update_current_target): Don't inherit or default
8624 * target.h (struct target_ops) <to_trace_start>: Use
8625 TARGET_DEFAULT_NORETURN.
8627 2014-02-19 Tom Tromey <tromey@redhat.com>
8629 * target-delegates.c: Rebuild.
8630 * target.c (update_current_target): Don't inherit or default
8631 to_trace_set_readonly_regions.
8632 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8633 Use TARGET_DEFAULT_NORETURN.
8635 2014-02-19 Tom Tromey <tromey@redhat.com>
8637 * target-delegates.c: Rebuild.
8638 * target.c (update_current_target): Don't inherit or default
8639 to_disable_tracepoint.
8640 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8641 TARGET_DEFAULT_NORETURN.
8643 2014-02-19 Tom Tromey <tromey@redhat.com>
8645 * target-delegates.c: Rebuild.
8646 * target.c (update_current_target): Don't inherit or default
8647 to_enable_tracepoint.
8648 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8649 TARGET_DEFAULT_NORETURN.
8651 2014-02-19 Tom Tromey <tromey@redhat.com>
8653 * target-delegates.c: Rebuild.
8654 * target.c (update_current_target): Don't inherit or default
8655 to_download_trace_state_variable.
8656 * target.h (struct target_ops) <to_download_trace_state_variable>:
8657 Use TARGET_DEFAULT_NORETURN.
8659 2014-02-19 Tom Tromey <tromey@redhat.com>
8661 * target-delegates.c: Rebuild.
8662 * target.c (update_current_target): Don't inherit or default
8663 to_can_download_tracepoint.
8664 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8665 TARGET_DEFAULT_RETURN.
8667 2014-02-19 Tom Tromey <tromey@redhat.com>
8669 * target-delegates.c: Rebuild.
8670 * target.c (update_current_target): Don't inherit or default
8671 to_download_tracepoint.
8672 * target.h (struct target_ops) <to_download_tracepoint>: Use
8673 TARGET_DEFAULT_NORETURN.
8675 2014-02-19 Tom Tromey <tromey@redhat.com>
8677 * target-delegates.c: Rebuild.
8678 * target.c (update_current_target): Don't inherit or default
8680 * target.h (struct target_ops) <to_trace_init>: Use
8681 TARGET_DEFAULT_RETURN.
8683 2014-02-19 Tom Tromey <tromey@redhat.com>
8685 * target-delegates.c: Rebuild.
8686 * target.c (update_current_target): Don't inherit or default
8687 to_supports_string_tracing.
8688 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8689 TARGET_DEFAULT_RETURN.
8691 2014-02-19 Tom Tromey <tromey@redhat.com>
8693 * target-delegates.c: Rebuild.
8694 * target.c (update_current_target): Don't inherit or default
8695 to_supports_enable_disable_tracepoint.
8696 * target.h (struct target_ops)
8697 <to_supports_enable_disable_tracepoint>: Use
8698 TARGET_DEFAULT_RETURN.
8700 2014-02-19 Tom Tromey <tromey@redhat.com>
8702 * target-delegates.c: Rebuild.
8703 * target.c (update_current_target): Don't inherit or default
8704 to_supports_multi_process.
8705 * target.h (struct target_ops) <to_supports_multi_process>: Use
8706 TARGET_DEFAULT_RETURN.
8708 2014-02-19 Tom Tromey <tromey@redhat.com>
8710 * target-delegates.c: Rebuild.
8711 * target.c (update_current_target): Don't inherit or default
8712 to_get_ada_task_ptid.
8713 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8714 TARGET_DEFAULT_FUNC.
8716 2014-02-19 Tom Tromey <tromey@redhat.com>
8718 * target-delegates.c: Rebuild.
8719 * target.c (update_current_target): Don't inherit or default
8720 to_thread_architecture.
8721 * target.h (struct target_ops) <to_thread_architecture>: Use
8722 TARGET_DEFAULT_FUNC.
8724 2014-02-19 Tom Tromey <tromey@redhat.com>
8726 * target-delegates.c: Rebuild.
8727 * target.c (update_current_target): Don't inherit or default
8728 to_execution_direction.
8729 * target.h (struct target_ops) <to_execution_direction>: Use
8730 TARGET_DEFAULT_FUNC.
8732 2014-02-19 Tom Tromey <tromey@redhat.com>
8734 * target-delegates.c: Rebuild.
8735 * target.c (update_current_target): Don't inherit or default
8736 to_can_execute_reverse.
8737 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8738 TARGET_DEFAULT_RETURN.
8739 (target_can_execute_reverse): Unconditionally delegate.
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8743 * target-delegates.c: Rebuild.
8744 * target.c (update_current_target): Don't inherit or default
8746 (dummy_goto_bookmark): Remove.
8747 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8748 * target.h (struct target_ops) <to_goto_bookmark>: Use
8749 TARGET_DEFAULT_NORETURN.
8751 2014-02-19 Tom Tromey <tromey@redhat.com>
8753 * target-delegates.c: Rebuild.
8754 * target.c (update_current_target): Don't inherit or default
8756 (dummy_get_bookmark): Remove.
8757 (init_dummy_target): Don't inherit or default to_get_bookmark.
8758 * target.h (struct target_ops) <to_get_bookmark>: Use
8759 TARGET_DEFAULT_NORETURN
8761 2014-02-19 Tom Tromey <tromey@redhat.com>
8763 * target-delegates.c: Rebuild.
8764 * target.c (update_current_target): Don't inherit or default
8765 to_make_corefile_notes.
8766 (init_dummy_target): Don't initialize to_make_corefile_notes.
8767 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8768 TARGET_DEFAULT_FUNC.
8770 2014-02-19 Tom Tromey <tromey@redhat.com>
8772 * target-delegates.c: Rebuild.
8773 * target.c (update_current_target): Don't inherit or default
8774 to_find_memory_regions.
8775 (init_dummy_target): Don't initialize to_find_memory_regions.
8776 * target.h (struct target_ops) <to_find_memory_regions>: Use
8777 TARGET_DEFAULT_FUNC.
8779 2014-02-19 Tom Tromey <tromey@redhat.com>
8781 * target-delegates.c: Rebuild.
8782 * target.c (update_current_target): Don't inherit or default
8784 * target.h (struct target_ops) <to_log_command>: Use
8785 TARGET_DEFAULT_IGNORE.
8786 (target_log_command): Unconditionally delegate.
8788 2014-02-19 Tom Tromey <tromey@redhat.com>
8790 * target-delegates.c: Rebuild.
8791 * target.c (update_current_target): Don't inherit or default
8792 to_pid_to_exec_file.
8793 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8794 TARGET_DEFAULT_RETURN.
8796 2014-02-19 Tom Tromey <tromey@redhat.com>
8798 * target-delegates.c: Rebuild.
8799 * target.c (update_current_target): Don't inherit or default
8801 (target_thread_name): Unconditionally delegate.
8802 * target.h (struct target_ops) <to_thread_name>: Use
8803 TARGET_DEFAULT_RETURN.
8805 2014-02-19 Tom Tromey <tromey@redhat.com>
8807 * target-delegates.c: Rebuild.
8808 * target.c (update_current_target): Don't inherit or default
8809 to_extra_thread_info.
8810 * target.h (struct target_ops) <to_extra_thread_info>: Use
8811 TARGET_DEFAULT_RETURN.
8813 2014-02-19 Tom Tromey <tromey@redhat.com>
8815 * target-delegates.c: Rebuild.
8816 * target.c (update_current_target): Don't inherit or default
8818 * target.h (struct target_ops) <to_has_exited>: Use
8819 TARGET_DEFAULT_RETURN..
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8823 * target-delegates.c: Rebuild.
8824 * target.c (update_current_target): Don't inherit or default
8825 to_set_syscall_catchpoint.
8826 (return_one): Remove.
8827 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8828 TARGET_DEFAULT_RETURN.
8830 2014-02-19 Tom Tromey <tromey@redhat.com>
8832 * target-delegates.c: Rebuild.
8833 * target.c (update_current_target): Don't inherit or default
8834 to_insert_exec_catchpoint.
8835 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8836 TARGET_DEFAULT_RETURN.
8838 2014-01-08 Tom Tromey <tromey@redhat.com>
8840 * target-delegates.c: Rebuild.
8841 * target.c (update_current_target): Don't inherit or default
8842 to_insert_exec_catchpoint.
8843 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8844 TARGET_DEFAULT_RETURN.
8846 2014-02-19 Tom Tromey <tromey@redhat.com>
8848 * target-delegates.c: Rebuild.
8849 * target.c (update_current_target): Don't inherit or default
8850 to_remove_vfork_catchpoint.
8851 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8852 TARGET_DEFAULT_RETURN.
8854 2014-02-19 Tom Tromey <tromey@redhat.com>
8856 * target-delegates.c: Rebuild.
8857 * target.c (update_current_target): Don't inherit or default
8858 to_insert_vfork_catchpoint.
8859 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8860 TARGET_DEFAULT_RETURN.
8862 2014-02-19 Tom Tromey <tromey@redhat.com>
8864 * target-delegates.c: Rebuild.
8865 * target.c (update_current_target): Don't inherit or default
8866 to_remove_fork_catchpoint.
8867 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8868 TARGET_DEFAULT_RETURN.
8870 2014-02-19 Tom Tromey <tromey@redhat.com>
8872 * target-delegates.c: Rebuild.
8873 * target.c (update_current_target): Don't inherit or default
8874 to_insert_fork_catchpoint.
8875 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8876 TARGET_DEFAULT_RETURN.
8878 2014-02-19 Tom Tromey <tromey@redhat.com>
8880 * target-delegates.c: Rebuild.
8881 * target.c (update_current_target): Don't inherit or default
8882 to_post_startup_inferior.
8883 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8884 TARGET_DEFAULT_IGNORE.
8886 2014-02-19 Tom Tromey <tromey@redhat.com>
8888 * target-delegates.c: Rebuild.
8889 * target.c (update_current_target): Don't inherit or default
8891 * target.h (struct target_ops) <to_load>: Use
8892 TARGET_DEFAULT_NORETURN.
8894 2014-02-19 Tom Tromey <tromey@redhat.com>
8896 * target-delegates.c: Rebuild.
8897 * target.c (update_current_target): Don't inherit or default
8899 * target.h (struct target_ops) <to_terminal_info>: Use
8900 TARGET_DEFAULT_FUNC.
8902 2014-02-19 Tom Tromey <tromey@redhat.com>
8904 * target-delegates.c: Rebuild.
8905 * target.c (update_current_target): Don't inherit or default
8906 to_terminal_save_ours.
8907 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8908 TARGET_DEFAULT_IGNORE.
8910 2014-02-19 Tom Tromey <tromey@redhat.com>
8912 * target-delegates.c: Rebuild.
8913 * target.c (update_current_target): Don't inherit or default
8915 * target.h (struct target_ops) <to_terminal_ours>: Use
8916 TARGET_DEFAULT_IGNORE.
8918 2014-02-19 Tom Tromey <tromey@redhat.com>
8920 * target-delegates.c: Rebuild.
8921 * target.c (update_current_target): Don't inherit or default
8922 to_terminal_ours_for_output.
8923 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8924 TARGET_DEFAULT_IGNORE.
8926 2014-02-19 Tom Tromey <tromey@redhat.com>
8928 * target-delegates.c: Rebuild.
8929 * target.c (update_current_target): Don't inherit or default
8930 to_terminal_inferior.
8931 * target.h (struct target_ops) <to_terminal_inferior>: Use
8932 TARGET_DEFAULT_IGNORE.
8934 2014-02-19 Tom Tromey <tromey@redhat.com>
8936 * target-delegates.c: Rebuild.
8937 * target.c (update_current_target): Don't inherit or default
8939 * target.h (struct target_ops) <to_terminal_init>: Use
8940 TARGET_DEFAULT_IGNORE.
8942 2014-02-19 Tom Tromey <tromey@redhat.com>
8944 * target-delegates.c: Rebuild.
8945 * target.c (update_current_target): Don't inherit or default
8946 to_can_accel_watchpoint_condition.
8947 * target.h (struct target_ops)
8948 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8950 2014-02-19 Tom Tromey <tromey@redhat.com>
8952 * target-delegates.c: Rebuild.
8953 * target.c (update_current_target): Don't inherit or default
8954 to_region_ok_for_hw_watchpoint.
8955 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8956 Use TARGET_DEFAULT_FUNC.
8958 2014-02-19 Tom Tromey <tromey@redhat.com>
8960 * target-delegates.c: Rebuild.
8961 * target.c (update_current_target): Don't inherit or default
8962 to_watchpoint_addr_within_range.
8963 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8964 Use TARGET_DEFAULT_FUNC.
8966 2014-02-19 Tom Tromey <tromey@redhat.com>
8968 * target-delegates.c: Rebuild.
8969 * target.c (update_current_target): Don't inherit or default
8970 to_remove_watchpoint.
8971 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8972 TARGET_DEFAULT_NORETURN.
8974 2014-02-19 Tom Tromey <tromey@redhat.com>
8976 * target-delegates.c: Rebuild.
8977 * target.c (update_current_target): Don't inherit or default
8978 to_insert_watchpoint.
8979 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8980 TARGET_DEFAULT_RETURN.
8982 2014-02-19 Tom Tromey <tromey@redhat.com>
8984 * target-delegates.c: Rebuild.
8985 * target.c (update_current_target): Don't inherit or default
8986 to_remove_hw_breakpoint.
8987 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8988 TARGET_DEFAULT_RETURN.
8990 2014-02-19 Tom Tromey <tromey@redhat.com>
8992 * target-delegates.c: Rebuild.
8993 * target.c (update_current_target): Don't inherit or default
8994 to_insert_hw_breakpoint.
8995 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8996 TARGET_DEFAULT_RETURN.
8998 2014-02-19 Tom Tromey <tromey@redhat.com>
9000 * target-delegates.c: Rebuild.
9001 * target.c (update_current_target): Don't inherit or default
9002 to_can_use_hw_breakpoint.
9003 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9004 TARGET_DEFAULT_RETURN.
9006 2014-02-19 Tom Tromey <tromey@redhat.com>
9008 * target-delegates.c: Rebuild.
9009 * target.c (update_current_target): Don't inherit or default
9011 * target.h (struct target_ops) <to_files_info>: Use
9012 TARGET_DEFAULT_IGNORE.
9014 2014-02-19 Tom Tromey <tromey@redhat.com>
9016 * target-delegates.c: Rebuild.
9017 * target.c (update_current_target): Don't inherit or default
9019 * target.h (struct target_ops) <to_store>: Use
9020 TARGET_DEFAULT_NORETURN.
9022 2014-02-19 Tom Tromey <tromey@redhat.com>
9024 * target-delegates.c: Rebuild.
9025 * target.c (update_current_target): Don't inherit or default
9027 * target.h (struct target_ops) <to_post_attach>: Use
9028 TARGET_DEFAULT_IGNORE.
9030 2014-02-19 Tom Tromey <tromey@redhat.com>
9032 * target-delegates.c: Rebuild.
9033 * target.c (update_current_target): Don't inherit or default
9035 (default_rcmd): New function.
9036 (do_monitor_command): Unconditionally delegate.
9037 * target.h (struct target_ops) <to_rmcd>: Use
9038 TARGET_DEFAULT_FUNC.
9040 2014-02-19 Tom Tromey <tromey@redhat.com>
9042 * target-delegates.c: Rebuild.
9043 * target.c (init_dummy_target): Don't initialize to_attach.
9044 (target_attach): Unconditionally delegate.
9045 * target.h (struct target_ops) <to_attach>: Use
9046 TARGET_DEFAULT_FUNC.
9048 2014-02-19 Tom Tromey <tromey@redhat.com>
9050 * target-delegates.c: Rebuild.
9051 * target.c (target_detach): Unconditionally delegate.
9052 (init_dummy_target): Don't initialize to_detach.
9053 * target.h (struct target_ops) <to_detach>: Use
9054 TARGET_DEFAULT_IGNORE.
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9058 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9060 (target_augmented_libraries_svr4_read): Add argument.
9061 * target.c (update_current_target): Update.
9062 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9067 * target.h (struct target_ops) <to_call_history_range>: Add
9069 * target.c (target_call_history_range): Add argument.
9070 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9072 (record_btrace_call_history_from): Update.
9074 2014-02-19 Tom Tromey <tromey@redhat.com>
9076 * target.h (struct target_ops) <to_call_history_from>: Add
9078 * target.c (target_call_history_from): Add argument.
9079 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9082 2014-02-19 Tom Tromey <tromey@redhat.com>
9084 * target.h (struct target_ops) <to_call_history>: Add argument.
9085 * target.c (target_call_history): Add argument.
9086 * record-btrace.c (record_btrace_call_history): Add 'self'
9089 2014-02-19 Tom Tromey <tromey@redhat.com>
9091 * target.h (struct target_ops) <to_insn_history_range>: Add
9093 * target.c (target_insn_history_range): Add argument.
9094 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9096 (record_btrace_insn_history_from): Update.
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9100 * target.h (struct target_ops) <to_insn_history_from>: Add
9102 * target.c (target_insn_history_from): Add argument.
9103 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9106 2014-02-19 Tom Tromey <tromey@redhat.com>
9108 * target.h (struct target_ops) <to_insn_history>: Add argument.
9109 * target.c (target_insn_history): Add argument.
9110 * record-btrace.c (record_btrace_insn_history): Add 'self'
9113 2014-02-19 Tom Tromey <tromey@redhat.com>
9115 * target.h (struct target_ops) <to_goto_record>: Add argument.
9116 * target.c (target_goto_record): Add argument.
9117 * record-full.c (record_full_goto): Add 'self' argument.
9118 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9122 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9123 * target.c (target_goto_record_end): Add argument.
9124 * record-full.c (record_full_goto_end): Add 'self' argument.
9125 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9127 2014-02-19 Tom Tromey <tromey@redhat.com>
9129 * target.h (struct target_ops) <to_goto_record_begin>: Add
9131 * target.c (target_goto_record_begin): Add argument.
9132 * record-full.c (record_full_goto_begin): Add 'self' argument.
9133 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9138 * target.h (struct target_ops) <to_record_is_replaying>: Add
9140 * target.c (target_record_is_replaying): Add argument.
9141 * record-full.c (record_full_is_replaying): Add 'self' argument.
9142 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9144 (record_btrace_xfer_partial, record_btrace_store_registers)
9145 (record_btrace_prepare_to_store, record_btrace_resume)
9146 (record_btrace_wait, record_btrace_decr_pc_after_break)
9147 (record_btrace_find_new_threads, record_btrace_thread_alive):
9150 2014-02-19 Tom Tromey <tromey@redhat.com>
9152 * target.h (struct target_ops) <to_delete_record>: Add argument.
9153 * target.c (target_delete_record): Add argument.
9154 * record-full.c (record_full_delete): Add 'self' argument.
9156 2014-02-19 Tom Tromey <tromey@redhat.com>
9158 * target.h (struct target_ops) <to_save_record>: Add argument.
9159 * target.c (target_save_record): Add argument.
9160 * record-full.c (record_full_save): Add 'self' argument.
9161 (record_full_save): Add 'self' argument.
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9165 * target.h (struct target_ops) <to_info_record>: Add argument.
9166 * target.c (target_info_record): Add argument.
9167 * record.c (info_record_command): Add argument.
9168 * record-full.c (record_full_info): Add 'self' argument.
9169 * record-btrace.c (record_btrace_info): Add 'self' argument.
9171 2014-02-19 Tom Tromey <tromey@redhat.com>
9173 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9174 * target.c (target_stop_recording): Add argument.
9175 * record.c (record_stop): Add argument.
9176 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9179 2014-02-19 Tom Tromey <tromey@redhat.com>
9181 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9182 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9183 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9185 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9186 (_initialize_amd64_linux_nat): Use it.
9187 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9188 (_initialize_i386_linux_nat): Use it.
9190 2014-02-19 Tom Tromey <tromey@redhat.com>
9192 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9193 * target.c (target_teardown_btrace): Add argument.
9194 * remote.c (remote_teardown_btrace): Add 'self' argument.
9195 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9197 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9200 2014-02-19 Tom Tromey <tromey@redhat.com>
9202 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9203 * target.c (target_disable_btrace): Add argument.
9204 * remote.c (remote_disable_btrace): Add 'self' argument.
9205 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9207 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9210 2014-02-19 Tom Tromey <tromey@redhat.com>
9212 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9213 * target.c (target_enable_btrace): Add argument.
9214 * remote.c (remote_enable_btrace): Add 'self' argument.
9215 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9217 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9220 2014-02-19 Tom Tromey <tromey@redhat.com>
9222 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9223 (target_can_use_agent): Add argument.
9224 * target.c (update_current_target): Update.
9225 * remote.c (remote_can_use_agent): Add 'self' argument.
9226 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9230 * target.h (struct target_ops) <to_use_agent>: Add argument.
9231 (target_use_agent): Add argument.
9232 * target.c (update_current_target): Update.
9233 * remote.c (remote_use_agent): Add 'self' argument.
9234 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9238 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9239 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9240 (target_traceframe_info): Add argument.
9241 * target.c (update_current_target): Update.
9242 * remote.c (remote_traceframe_info): Add 'self' argument.
9243 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9247 * target.h (target_static_tracepoint_markers_by_strid): Add
9249 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9251 * target.c (update_current_target): Update.
9252 * remote.c (struct target_ops)
9253 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9254 * linux-nat.c (struct target_ops)
9255 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9257 2014-02-19 Tom Tromey <tromey@redhat.com>
9259 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9261 (target_static_tracepoint_marker_at): Add argument.
9262 * target.c (update_current_target): Update.
9263 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9266 2014-02-19 Tom Tromey <tromey@redhat.com>
9268 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9269 (target_set_permissions): Add argument.
9270 * target.c (update_current_target): Update.
9271 * remote.c (remote_set_permissions): Add 'self' argument.
9272 (remote_start_remote): Update.
9274 2014-02-19 Tom Tromey <tromey@redhat.com>
9276 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9277 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9278 (target_get_tib_address): Add argument.
9279 * target.c (update_current_target): Update.
9280 * remote.c (remote_get_tib_address): Add 'self' argument.
9282 2014-02-19 Tom Tromey <tromey@redhat.com>
9284 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9285 (target_set_trace_notes): Add argument.
9286 * target.c (update_current_target): Update.
9287 * remote.c (remote_set_trace_notes): Add 'self' argument.
9289 2014-02-19 Tom Tromey <tromey@redhat.com>
9291 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9293 (target_set_trace_buffer_size): Add argument.
9294 * target.c (update_current_target): Update.
9295 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9297 2014-02-19 Tom Tromey <tromey@redhat.com>
9299 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9301 (target_set_circular_trace_buffer): Add argument.
9302 * target.c (update_current_target): Update.
9303 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9306 2014-02-19 Tom Tromey <tromey@redhat.com>
9308 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9310 (target_set_disconnected_tracing): Add argument.
9311 * target.c (update_current_target): Update.
9312 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9314 2014-02-19 Tom Tromey <tromey@redhat.com>
9316 * target.h (struct target_ops)
9317 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9318 (target_get_min_fast_tracepoint_insn_len): Add argument.
9319 * target.c (update_current_target): Update.
9320 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9323 2014-02-19 Tom Tromey <tromey@redhat.com>
9325 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9327 (target_get_raw_trace_data): Add argument.
9328 * target.c (update_current_target): Update.
9329 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9331 2014-02-19 Tom Tromey <tromey@redhat.com>
9333 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9335 (target_upload_trace_state_variables): Add argument.
9336 * target.c (update_current_target): Update.
9337 * remote.c (remote_upload_trace_state_variables): Add 'self'
9339 (remote_start_remote): Update.
9341 2014-02-19 Tom Tromey <tromey@redhat.com>
9343 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9345 (target_upload_tracepoints): Add argument.
9346 * target.c (update_current_target): Update.
9347 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9348 (remote_start_remote): Update.
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9352 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9353 (target_save_trace_data): Add argument.
9354 * target.c (update_current_target): Update.
9355 * remote.c (remote_save_trace_data): Add 'self' argument.
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9359 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9361 * target.h (struct target_ops)
9362 <to_get_trace_state_variable_value>: Add argument.
9363 (target_get_trace_state_variable_value): Add argument.
9364 * target.c (update_current_target): Update.
9365 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9367 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9369 2014-02-19 Tom Tromey <tromey@redhat.com>
9371 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9372 * target.h (struct target_ops) <to_trace_find>: Add argument.
9373 (target_trace_find): Add argument.
9374 * target.c (update_current_target): Update.
9375 * remote.c (remote_trace_find): Add 'self' argument.
9376 * ctf.c (ctf_trace_find): Add 'self' argument.
9378 2014-02-19 Tom Tromey <tromey@redhat.com>
9380 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9381 (target_trace_stop): Add argument.
9382 * target.c (update_current_target): Update.
9383 * remote.c (remote_trace_stop): Add 'self' argument.
9385 2014-02-19 Tom Tromey <tromey@redhat.com>
9387 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9388 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9390 (target_get_tracepoint_status): Add argument.
9391 * target.c (update_current_target): Update.
9392 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9394 2014-02-19 Tom Tromey <tromey@redhat.com>
9396 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9397 * target.h (struct target_ops) <to_get_trace_status>: Add
9399 (target_get_trace_status): Add argument.
9400 * target.c (update_current_target): Update.
9401 * remote.c (remote_get_trace_status): Add 'self' argument.
9402 (remote_start_remote, remote_can_download_tracepoint): Update.
9403 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9405 2014-02-19 Tom Tromey <tromey@redhat.com>
9407 * target.h (struct target_ops) <to_trace_start>: Add argument.
9408 (target_trace_start): Add argument.
9409 * target.c (update_current_target): Update.
9410 * remote.c (remote_trace_start): Add 'self' argument.
9412 2014-02-19 Tom Tromey <tromey@redhat.com>
9414 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9416 (target_trace_set_readonly_regions): Add argument.
9417 * target.c (update_current_target): Update.
9418 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9421 2014-02-19 Tom Tromey <tromey@redhat.com>
9423 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9425 (target_disable_tracepoint): Add argument.
9426 * target.c (update_current_target): Update.
9427 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9431 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9433 (target_enable_tracepoint): Add argument.
9434 * target.c (update_current_target): Update.
9435 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9437 2014-02-19 Tom Tromey <tromey@redhat.com>
9439 * target.h (struct target_ops) <to_download_trace_state_variable>:
9441 (target_download_trace_state_variable): Add argument.
9442 * target.c (update_current_target): Update.
9443 * remote.c (remote_download_trace_state_variable): Add 'self'
9446 2014-02-19 Tom Tromey <tromey@redhat.com>
9448 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9450 (target_can_download_tracepoint): Add argument.
9451 * target.c (update_current_target): Update.
9452 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9456 * target.h (struct target_ops) <to_download_tracepoint>: Add
9458 (target_download_tracepoint): Add argument.
9459 * target.c (update_current_target): Update.
9460 * remote.c (remote_download_tracepoint): Add 'self' argument.
9462 2014-02-19 Tom Tromey <tromey@redhat.com>
9464 * target.h (struct target_ops) <to_trace_init>: Add argument.
9465 (target_trace_init): Add argument.
9466 * target.c (update_current_target): Update.
9467 * remote.c (remote_trace_init): Add 'self' argument.
9469 2014-02-19 Tom Tromey <tromey@redhat.com>
9471 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9472 * target.c (target_fileio_readlink): Add argument.
9473 * remote.c (remote_hostio_readlink): Add 'self' argument.
9474 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9476 2014-02-19 Tom Tromey <tromey@redhat.com>
9478 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9479 * target.c (target_fileio_unlink): Add argument.
9480 * remote.c (remote_hostio_unlink): Add 'self' argument.
9481 (remote_file_delete): Update.
9482 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9484 2014-02-19 Tom Tromey <tromey@redhat.com>
9486 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9487 * target.c (target_fileio_close): Add argument.
9488 * remote.c (remote_hostio_close): Add 'self' argument.
9489 (remote_hostio_close_cleanup): Update.
9490 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9492 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9494 2014-02-19 Tom Tromey <tromey@redhat.com>
9496 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9497 * target.c (target_fileio_pread): Add argument.
9498 * remote.c (remote_hostio_pread): Add 'self' argument.
9499 (remote_bfd_iovec_pread, remote_file_get): Update.
9500 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9502 2014-02-19 Tom Tromey <tromey@redhat.com>
9504 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9505 * target.c (target_fileio_pwrite): Add argument.
9506 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9507 (remote_file_put): Update.
9508 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9510 2014-02-19 Tom Tromey <tromey@redhat.com>
9512 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9513 * target.c (target_fileio_open): Add argument.
9514 * remote.c (remote_hostio_open): Add 'self' argument.
9515 (remote_bfd_iovec_open): Add 'self' argument.
9516 (remote_file_put): Add 'self' argument.
9517 (remote_file_get): Add 'self' argument.
9518 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9522 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9524 (target_can_run_breakpoint_commands): Add argument.
9525 * target.c (update_current_target): Update.
9526 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9528 (remote_insert_breakpoint): Add 'self' argument.
9529 (remote_insert_hw_breakpoint): Add 'self' argument.
9530 (remote_can_run_breakpoint_commands): Add 'self' argument.
9532 2014-02-19 Tom Tromey <tromey@redhat.com>
9534 * target.h (struct target_ops)
9535 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9536 (target_supports_evaluation_of_breakpoint_conditions): Add
9538 * target.c (update_current_target): Update.
9539 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9541 (remote_insert_breakpoint): Add 'self' argument.
9542 (remote_insert_hw_breakpoint): Add 'self' argument.
9543 (remote_supports_cond_breakpoints): Add 'self' argument.
9545 2014-02-19 Tom Tromey <tromey@redhat.com>
9547 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9549 (target_supports_string_tracing): Add argument.
9550 * target.c (update_current_target): Update.
9551 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9553 2014-02-19 Tom Tromey <tromey@redhat.com>
9555 * target.h (struct target_ops)
9556 <to_supports_disable_randomization>: Add argument.
9557 * target.c (find_default_supports_disable_randomization): Add
9559 (target_supports_disable_randomization): Add argument.
9560 (find_default_supports_disable_randomization): Add 'self'
9562 * remote.c (extended_remote_supports_disable_randomization): Add
9564 (remote_supports_disable_randomization): Add 'self' argument.
9565 (extended_remote_create_inferior): Update.
9566 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9571 * target.h (struct target_ops)
9572 <to_supports_enable_disable_tracepoint>: Add argument.
9573 (target_supports_enable_disable_tracepoint): Add argument.
9574 * target.c (update_current_target): Update.
9575 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9580 * target.h (struct target_ops) <to_supports_multi_process>: Add
9582 (target_supports_multi_process): Add argument.
9583 * target.c (update_current_target): Update.
9584 * remote.c (remote_supports_multi_process): Add 'self' argument.
9585 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9587 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9590 2014-02-19 Tom Tromey <tromey@redhat.com>
9592 * target.h (struct target_ops) <to_execution_direction>: Add
9594 (target_execution_direction): Add argument.
9595 * target.c (default_execution_direction): Add 'self' argument.
9596 * record-full.c (record_full_execution_direction): Add 'self'
9599 2014-02-19 Tom Tromey <tromey@redhat.com>
9601 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9603 (target_can_execute_reverse): Add argument.
9604 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9605 * record-full.c (record_full_can_execute_reverse): Add 'self'
9607 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9610 2014-02-19 Tom Tromey <tromey@redhat.com>
9612 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9613 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9615 (target_get_ada_task_ptid): Add argument.
9616 * target.c (update_current_target): Update.
9617 (default_get_ada_task_ptid): Add 'self' argument.
9618 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9619 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9620 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9622 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9624 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9626 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9628 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9629 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9632 2014-02-19 Tom Tromey <tromey@redhat.com>
9634 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9635 (target_goto_bookmark): Add argument.
9636 * target.c (dummy_goto_bookmark): Add 'self' argument.
9637 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9639 2014-02-19 Tom Tromey <tromey@redhat.com>
9641 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9642 (target_get_bookmark): Add argument.
9643 * target.c (dummy_get_bookmark): Add 'self' argument.
9644 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9646 2014-02-19 Tom Tromey <tromey@redhat.com>
9648 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9650 (target_make_corefile_notes): Add argument.
9651 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9652 * procfs.c (procfs_make_note_section): Add 'self' argument.
9653 (procfs_make_note_section): Add 'self' argument.
9654 (procfs_make_note_section): Add 'self' argument.
9655 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9657 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9658 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9659 * exec.c (exec_make_note_section): Add 'self' argument.
9660 (exec_make_note_section): Add 'self' argument.
9662 2014-02-19 Tom Tromey <tromey@redhat.com>
9664 * target.h (struct target_ops) <to_find_memory_regions>: Add
9666 (target_find_memory_regions): Add argument.
9667 * target.c (dummy_find_memory_regions): Add 'self' argument.
9668 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9669 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9670 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9671 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9672 * exec. (exec_do_find_memory_regions): New global.
9673 (exec_set_find_memory_regions): Rewrite.
9674 (exec_find_memory_regions): New function.
9675 (init_exec_ops): Use exec_find_memory_regions.
9677 2014-02-19 Tom Tromey <tromey@redhat.com>
9679 * target.h (struct target_ops) <to_supports_non_stop>: Add
9681 * target.c (find_default_supports_non_stop): Add argument.
9682 (target_supports_non_stop): Add argument.
9683 (find_default_supports_non_stop): Add 'self' argument.
9684 * remote.c (remote_supports_non_stop): Add 'self' argument.
9685 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9687 2014-02-19 Tom Tromey <tromey@redhat.com>
9689 * target.h (struct target_ops) <to_log_command>: Add argument.
9690 (target_log_command): Add argument.
9691 * serial.h (serial_log_command): Add 'self' argument.
9692 * serial.c (serial_log_command): Add 'self' argument.
9694 2014-02-19 Tom Tromey <tromey@redhat.com>
9696 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9697 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9699 (target_pid_to_exec_file): Add argument.
9700 * target.c (debug_to_pid_to_exec_file): Add argument.
9701 (update_current_target): Update.
9702 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9703 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9704 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9705 (linux_handle_extended_wait): Update.
9706 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9707 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9708 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9709 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9711 2014-02-19 Tom Tromey <tromey@redhat.com>
9713 * target.h (struct target_ops) <to_rcmd>: Add argument.
9714 (target_rcmd): Add argument.
9715 * target.c (debug_to_rcmd): Add argument.
9716 (update_current_target, do_monitor_command): Update.
9717 * remote.c (remote_rcmd): Add 'self' argument.
9718 * monitor.c (monitor_rcmd): Add 'self' argument.
9720 2014-02-19 Tom Tromey <tromey@redhat.com>
9722 * windows-nat.c (windows_stop): Add 'self' argument.
9723 * target.h (struct target_ops) <to_stop>: Add argument.
9724 * target.c (target_stop): Add argument.
9725 (debug_to_stop): Add argument.
9726 (update_current_target): Update.
9727 * remote.c (remote_stop): Add 'self' argument.
9728 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9729 (gdbsim_cntrl_c): Update.
9730 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9731 * procfs.c (procfs_stop): Add 'self' argument.
9732 * nto-procfs.c (procfs_stop): Add 'self' argument.
9733 * monitor.c (monitor_stop): Add 'self' argument.
9734 (monitor_open): Update.
9735 * linux-nat.c (linux_nat_stop): Add argument.
9736 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9737 * gnu-nat.c (gnu_stop): Add 'self' argument.
9738 * darwin-nat.c (darwin_stop): Add 'self' argument.
9740 2014-02-19 Tom Tromey <tromey@redhat.com>
9742 * target.h (struct target_ops) <to_thread_name>: Add argument.
9743 * target.c (target_thread_name): Add argument.
9744 (update_current_target): Update.
9745 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9747 2014-02-19 Tom Tromey <tromey@redhat.com>
9749 * target.h (struct target_ops) <to_extra_thread_info>: Add
9751 (target_extra_thread_info): Add argument.
9752 * target.c (update_current_target): Update.
9753 * remote.c (remote_threads_extra_info): Add 'self' argument.
9754 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9756 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9757 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9758 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9760 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9762 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9764 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9767 2014-02-19 Tom Tromey <tromey@redhat.com>
9769 * target.h (struct target_ops) <to_program_signals>: Add argument.
9770 * target.c (target_program_signals): Add argument.
9771 * remote.c (remote_program_signals): Add 'self' argument.
9773 2014-02-19 Tom Tromey <tromey@redhat.com>
9775 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9776 * target.c (target_pass_signals): Add argument.
9777 * remote.c (remote_pass_signals): Add 'self' argument.
9778 (remote_start_remote): Update.
9779 * procfs.c (procfs_pass_signals): Add 'self' argument.
9780 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9781 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9782 (linux_nat_create_inferior, linux_nat_attach): Update.
9784 2014-02-19 Tom Tromey <tromey@redhat.com>
9786 * windows-nat.c (windows_can_run): Add 'self' argument.
9787 * target.h (struct target_ops) <to_can_run>: Add argument.
9788 (target_can_run): Add argument.
9789 * target.c (debug_to_can_run): Add argument.
9790 (update_current_target): Update.
9791 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9792 * inf-child.c (inf_child_can_run): Add 'self' argument.
9793 * go32-nat.c (go32_can_run): Add 'self' argument.
9795 2014-02-19 Tom Tromey <tromey@redhat.com>
9797 * target.h (struct target_ops) <to_has_exited>: Add argument.
9798 (target_has_exited): Add argument.
9799 * target.c (debug_to_has_exited): Add argument.
9800 (update_current_target): Update.
9802 2014-02-19 Tom Tromey <tromey@redhat.com>
9804 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9806 (target_set_syscall_catchpoint): Add argument.
9807 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9809 * target.c (update_current_target): Update.
9811 2014-02-19 Tom Tromey <tromey@redhat.com>
9813 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9815 (target_remove_exec_catchpoint): Add argument.
9816 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9817 (update_current_target): Update.
9818 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9821 2014-02-19 Tom Tromey <tromey@redhat.com>
9823 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9825 (target_insert_exec_catchpoint): Add argument.
9826 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9827 (update_current_target): Update.
9828 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9831 2014-02-19 Tom Tromey <tromey@redhat.com>
9833 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9835 (target_remove_vfork_catchpoint): Add argument.
9836 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9837 (update_current_target): Update.
9838 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9841 2014-02-19 Tom Tromey <tromey@redhat.com>
9843 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9845 (target_insert_vfork_catchpoint): Add argument.
9846 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9847 (update_current_target): Update.
9848 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9851 2014-02-19 Tom Tromey <tromey@redhat.com>
9853 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9855 (target_remove_fork_catchpoint): Add argument.
9856 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9857 (update_current_target): Update.
9858 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9861 2014-02-19 Tom Tromey <tromey@redhat.com>
9863 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9865 (target_insert_fork_catchpoint): Add argument.
9866 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9867 (update_current_target): Update.
9868 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9871 2014-02-19 Tom Tromey <tromey@redhat.com>
9873 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9875 (target_post_startup_inferior): Add argument.
9876 * target.c (debug_to_post_startup_inferior): Add argument.
9877 (update_current_target): Update.
9878 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9880 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9882 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9884 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9886 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9888 (super_post_startup_inferior): Likewise.
9889 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9891 (super_post_startup_inferior): Likewise.
9892 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9893 Add 'self' argument.
9894 (super_post_startup_inferior): Likewise.
9896 2014-02-19 Tom Tromey <tromey@redhat.com>
9898 * target.h (struct target_ops) <to_load>: Add argument.
9899 * target.c (target_load): Add argument.
9900 (debug_to_load): Add argument.
9901 (update_current_target): Update.
9902 * remote.c (remote_load): Add 'self' argument.
9903 * remote-sim.c (gdbsim_load): Add 'self' argument.
9904 * remote-mips.c (mips_load): Add 'self' argument.
9905 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9906 * monitor.c (monitor_load): Add 'self' argument.
9907 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9909 2014-02-19 Tom Tromey <tromey@redhat.com>
9911 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9912 (target_terminal_info): Add argument.
9913 * target.c (debug_to_terminal_info): Add argument.
9914 (default_terminal_info): Likewise.
9915 * inflow.c (child_terminal_info): Add 'self' argument.
9916 * inferior.h (child_terminal_info): Add 'self' argument.
9917 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9919 2014-02-19 Tom Tromey <tromey@redhat.com>
9921 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9923 (target_terminal_save_ours): Add argument.
9924 * target.c (debug_to_terminal_save_ours): Add argument.
9925 (update_current_target): Update.
9926 * inflow.c (terminal_save_ours): Add 'self' argument.
9927 * inferior.h (terminal_save_ours): Add 'self' argument.
9929 2014-02-19 Tom Tromey <tromey@redhat.com>
9931 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9932 (target_terminal_ours): Add argument.
9933 * target.c (debug_to_terminal_ours): Add argument.
9934 (update_current_target): Update.
9935 * remote.c (remote_terminal_ours): Add 'self' argument.
9936 (remote_close): Update.
9937 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9938 * inflow.c (terminal_ours): Add 'self' argument.
9939 * inferior.h (terminal_ours): Add 'self' argument.
9940 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9942 2014-02-19 Pedro Alves <palves@redhat.com>
9943 Tom Tromey <tromey@redhat.com>
9945 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9947 (target_terminal_ours_for_output): Add argument.
9948 * target.c (debug_to_terminal_ours_for_output): Add argument.
9949 (update_current_target): Update.
9950 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9951 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9952 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9954 2014-02-19 Tom Tromey <tromey@redhat.com>
9956 * target.h (struct target_ops) <to_terminal_inferior>: Add
9958 * target.c (target_terminal_inferior): Add argument.
9959 (update_current_target): Update.
9960 * remote.c (remote_terminal_inferior): Add 'self' argument.
9961 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9962 * inflow.c (terminal_inferior): Add 'self' argument.
9963 * inferior.h (terminal_inferior): Add 'self' argument.
9964 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9965 (go32_terminal_inferior): Add 'self' argument.
9967 2014-02-19 Tom Tromey <tromey@redhat.com>
9969 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9970 (target_terminal_init): Add argument.
9971 * target.c (debug_to_terminal_init): Add argument.
9972 (update_current_target): Update.
9973 * inflow.c (terminal_init_inferior): Add 'self' argument.
9974 * inferior.h (terminal_init_inferior): Add 'self' argument.
9975 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9976 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9978 2014-02-19 Tom Tromey <tromey@redhat.com>
9980 * target.h (struct target_ops)
9981 <to_can_accel_watchpoint_condition>: Add argument.
9982 (target_can_accel_watchpoint_condition): Add argument.
9983 * target.c (debug_to_can_accel_watchpoint_condition): Add
9985 (update_current_target): Update.
9986 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9989 2014-02-19 Tom Tromey <tromey@redhat.com>
9991 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9993 (target_region_ok_for_hw_watchpoint): Add argument.
9994 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9995 (default_region_ok_for_hw_watchpoint): Add argument.
9996 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9997 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9999 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10001 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10003 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10005 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10007 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10009 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10010 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10012 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10013 Add 'self' argument.
10015 2014-02-19 Tom Tromey <tromey@redhat.com>
10017 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10019 (target_insert_watchpoint): Add argument.
10020 * target.c (debug_to_insert_watchpoint): Add argument.
10021 (update_current_target): Update.
10022 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10023 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10024 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10025 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10026 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10027 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10029 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10030 (procfs_insert_hw_watchpoint): Add 'self' argument.
10031 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10033 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10035 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10037 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10038 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10040 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10043 2014-02-19 Tom Tromey <tromey@redhat.com>
10045 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10047 (target_remove_watchpoint): Add argument.
10048 * target.c (debug_to_remove_watchpoint): Add argument.
10049 (update_current_target): Update.
10050 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10051 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10052 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10053 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10054 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10055 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10057 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10058 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10060 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10062 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10064 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10065 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10067 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10070 2014-02-19 Tom Tromey <tromey@redhat.com>
10072 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10074 (target_remove_hw_breakpoint): Add argument.
10075 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10076 (update_current_target): Update.
10077 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10078 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10080 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10081 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10083 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10086 2014-02-19 Tom Tromey <tromey@redhat.com>
10088 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10090 (target_insert_hw_breakpoint): Add argument.
10091 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10092 (update_current_target): Update.
10093 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10094 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10096 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10097 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10098 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10100 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10103 2014-02-19 Tom Tromey <tromey@redhat.com>
10105 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10107 (target_can_use_hardware_watchpoint): Add argument.
10108 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10109 (update_current_target): Update.
10110 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10112 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10114 * remote.c (remote_check_watch_resources): Add 'self' argument.
10115 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10116 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10118 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10119 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10121 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10123 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10125 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10127 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10129 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10131 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10132 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10134 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10137 2014-02-19 Tom Tromey <tromey@redhat.com>
10139 * target.h (struct target_ops) <to_post_attach>: Add argument.
10140 (target_post_attach): Add argument.
10141 * target.c (debug_to_post_attach): Add argument.
10142 (update_current_target): Update.
10143 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10144 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10145 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10146 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10147 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10149 2014-02-19 Tom Tromey <tromey@redhat.com>
10151 * windows-nat.c (windows_close): Add 'self' argument.
10152 * tracepoint.c (tfile_close): Add 'self' argument.
10153 * target.h (struct target_ops) <to_close>: Add argument.
10154 * target.c (target_close): Add argument.
10155 (update_current_target): Update.
10156 * remote.c (remote_close): Add 'self' argument.
10157 * remote-sim.c (gdbsim_close): Add 'self' argument.
10158 * remote-mips.c (mips_close): Add 'self' argument.
10159 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10160 * record-full.c (record_full_close): Add 'self' argument.
10161 * record-btrace.c (record_btrace_close): Add 'self' argument.
10162 * monitor.h (monitor_close): Add 'self' argument.
10163 * monitor.c (monitor_close): Add 'self' argument.
10164 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10165 * linux-nat.c (linux_nat_close): Add argument.
10166 * go32-nat.c (go32_close): Add 'self' argument.
10167 * exec.c (exec_close_1): Add 'self' argument.
10168 * ctf.c (ctf_close): Add 'self' argument.
10169 * corelow.c (core_close): Add 'self' argument.
10170 (core_close_cleanup): Update.
10171 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10172 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10174 2014-02-19 Tom Tromey <tromey@redhat.com>
10176 * remote.c (remote_load): New function.
10177 (init_remote_ops): Use it.
10179 2014-02-19 Tom Tromey <tromey@redhat.com>
10181 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10183 * common/linux-btrace.h (linux_supports_btrace): Update.
10184 * remote.c (remote_supports_btrace): Add "self" argument.
10185 * target-delegates.c: Rebuild.
10186 * target.c (target_supports_btrace): Remove.
10187 * target.h (struct target_ops) <to_supports_btrace>: Add
10188 target_ops argument.
10189 (target_supports_btrace): New define.
10191 2014-02-19 Tom Tromey <tromey@redhat.com>
10193 * record-full.c (record_full_beneath_to_resume_ops)
10194 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10195 (record_full_beneath_to_wait)
10196 (record_full_beneath_to_store_registers_ops)
10197 (record_full_beneath_to_store_registers)
10198 (record_full_beneath_to_xfer_partial_ops)
10199 (record_full_beneath_to_xfer_partial)
10200 (record_full_beneath_to_insert_breakpoint_ops)
10201 (record_full_beneath_to_insert_breakpoint)
10202 (record_full_beneath_to_remove_breakpoint_ops)
10203 (record_full_beneath_to_remove_breakpoint)
10204 (record_full_beneath_to_stopped_by_watchpoint)
10205 (record_full_beneath_to_stopped_data_address)
10206 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10207 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10208 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10209 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10210 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10211 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10212 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10213 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10214 (record_full_resume, record_full_wait_1)
10215 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10216 (record_full_store_registers, record_full_xfer_partial)
10217 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10218 (record_full_async, record_full_core_xfer_partial): Use target
10220 * target-delegates.c: Rebuild.
10221 * target.c (current_xfer_partial): Remove.
10222 (update_current_target): Do not INHERIT or de_fault
10223 to_insert_breakpoint, to_remove_breakpoint,
10224 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10225 to_is_async_p, to_async. Do not set to_xfer_partial field.
10226 (default_xfer_partial): Simplify.
10227 (current_xfer_partial): Remove.
10228 (target_wait, target_resume): Simplify.
10229 (find_default_can_async_p, find_default_is_async_p): Update.
10230 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10231 to_xfer_partial, to_stopped_by_watchpoint,
10232 to_stopped_data_address.
10233 (target_store_registers): Simplify.
10234 (forward_target_remove_breakpoint)
10235 (forward_target_insert_breakpoint): Remove.
10236 (target_remove_breakpoint, target_insert_breakpoint)
10237 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10238 * target.h (struct target_ops) <to_resume, to_wait,
10239 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10240 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10241 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10243 (forward_target_remove_breakpoint)
10244 (forward_target_insert_breakpoint): Remove.
10245 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10247 (record_btrace_insert_breakpoint): Delegate directly.
10249 2014-02-19 Tom Tromey <tromey@redhat.com>
10252 * target-delegates.c: New file.
10253 * target.c: Include target-delegates.c.
10254 (init_dummy_target): Call install_dummy_methods.
10255 (complete_target_initialization): Call install_delegators.
10256 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10257 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10258 * make-target-delegates: New file.
10260 2014-02-19 Tom Tromey <tromey@redhat.com>
10262 * record.c (find_record_target): Use find_target_at.
10263 * target.c (find_target_at): New function.
10264 * target.h (find_target_at): Declare.
10266 2014-02-19 Tom Tromey <tromey@redhat.com>
10268 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10269 Add 'ops' argument.
10270 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10272 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10273 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10275 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10277 * linux-nat.c (save_sigtrap): Update.
10278 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10279 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10280 (linux_nat_close): Update.
10281 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10283 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10285 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10286 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10287 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10288 (tmp_to_async): Add 'ops' argument.
10289 (record_full_stopped_by_watchpoint, record_full_async)
10290 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10292 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10293 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10294 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10295 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10296 (remote_is_async_p, remote_async): Add 'ops' argument.
10297 (remote_stopped_data_address): Update.
10298 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10299 * target.c (update_current_target)
10300 (find_default_can_async_p, find_default_is_async_p): Update.
10301 (init_dummy_target): Update.
10302 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10303 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10304 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10305 (target_can_async_p, target_is_async_p, target_async)
10306 (target_stopped_by_watchpoint): Update.
10308 2014-02-19 Yao Qi <yao@codesourcery.com>
10311 * gdbarch.sh: Remove startup_gdbarch.
10312 * gdbarch.c: Regenerated.
10313 * gdbarch.h: Likewise.
10315 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10317 * rl78-tdep.c (rl78_g10_register_name): New function.
10318 (rl78_return_value): Add g10 support.
10319 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10322 2014-02-17 Doug Evans <xdje42@gmail.com>
10324 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10325 (SUBDIR_GUILE_SRCS): Ditto.
10326 (scm-gsmob.o): Ditto.
10328 2014-02-17 Yao Qi <yao@codesourcery.com>
10330 * gnu-nat.c (ILL_RPC): Declare defined function.
10332 2014-02-17 Yao Qi <yao@codesourcery.com>
10334 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10335 mach_msg_type_number_t.
10336 (gnu_write_inferior): Likewise.
10338 2014-02-17 Yao Qi <yao@codesourcery.com>
10340 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10342 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10343 (inf_validate_procs, inf_signal): Likewise.
10344 (S_exception_raise_request): Likewise.
10345 (do_mach_notify_dead_name): Likewise.
10346 (steal_exc_port): Likewise.
10347 (gnu_read_inferior): Change 'copy_count''s type to
10348 mach_msg_type_number_t.
10349 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10352 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10354 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10355 flag. Adjust all users; in particular...
10356 (gnu_wait): ..., don't decrement its value in here...
10357 (gnu_create_inferior): ..., and instead set the flag in here,
10358 around the startup_inferior call, and call that one with
10359 START_INFERIOR_TRAPS_EXPECTED.
10361 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10362 (ILL_RPC): ... new macro.
10363 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10364 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10365 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10366 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10367 functions with ILL_RPC macro.
10368 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10369 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10370 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10371 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10372 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10373 (S_proc_getlogin_reply, S_proc_getsid_reply)
10374 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10375 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10376 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10377 (S_proc_getnports_reply, S_proc_is_important_reply)
10378 (S_proc_get_code_reply): New stub functions, generated with
10381 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10382 collected the type check structures.
10384 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10386 2014-02-14 Doug Evans <dje@google.com>
10388 * target.c (target_write_partial): Fix result type.
10390 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10392 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10393 the proper offsets to access fpregset_t.
10395 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10397 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10398 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10399 * h8300-tdep.c (setmachinelist): Remove global.
10400 * hppa-tdep.c (hppa_sigtramp): Remove global.
10401 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10402 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10403 * ravenscar-thread.c (update_target_observer): Remove global.
10404 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10406 2014-02-12 Tom Tromey <tromey@redhat.com>
10408 * common/rsp-low.c: Update comments.
10409 * common/rsp-low.h: Update comments.
10411 2014-02-12 Tom Tromey <tromey@redhat.com>
10413 * common/rsp-low.c (convert_ascii_to_int): Remove.
10414 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10416 2014-02-12 Tom Tromey <tromey@redhat.com>
10418 * common/rsp-low.h (unhexify): Don't declare.
10419 * common/rsp-low.c (unhexify): Remove.
10421 2014-02-12 Tom Tromey <tromey@redhat.com>
10423 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10424 * common/rsp-low.c (convert_int_to_ascii): Remove.
10426 2014-02-12 Tom Tromey <tromey@redhat.com>
10428 * common/rsp-low.h (hexify): Don't declare.
10429 * common/rsp-low.c (hexify): Remove.
10431 2014-02-12 Tom Tromey <tromey@redhat.com>
10433 * common/rsp-low.c (hexify): Never take strlen of argument.
10435 2014-02-12 Tom Tromey <tromey@redhat.com>
10437 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10438 * remote.c (extended_remote_run, remote_rcmd)
10439 (remote_download_trace_state_variable, remote_save_trace_data)
10440 (remote_set_trace_notes): Update.
10441 * tracepoint.c (encode_source_string, tfile_write_status)
10442 (tfile_write_uploaded_tsv): Update.
10444 2014-02-12 Tom Tromey <tromey@redhat.com>
10446 * tracepoint.c: Include rsp-low.h.
10447 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10448 * remote.c: Include rsp-low.h.
10449 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10450 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10451 (remote_unescape_input): Move to common/rsp-low.c.
10452 * common/rsp-low.h: New file.
10453 * common/rsp-low.c: New file.
10454 * Makefile.in (SFILES): Add common/rsp-low.c.
10455 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10456 (COMMON_OBS): Add rsp-low.o.
10457 (rsp-low.o): New target.
10459 2014-02-12 Tom Tromey <tromey@redhat.com>
10461 * utils.h: Include print-utils.h.
10462 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10463 (int_string, core_addr_to_string, core_addr_to_string_nz)
10464 (hex_string, hex_string_custom): Don't declare.
10465 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10466 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10467 (hex_string_custom, int_string, core_addr_to_string)
10468 (core_addr_to_string_nz, host_address_to_string): Move to
10469 common/print-utils.c.
10470 * common/print-utils.h: New file.
10471 * common/print-utils.c: New file
10472 * Makefile.in (SFILES): Add common/print-utils.c.
10473 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10474 (COMMON_OBS): Add print-utils.o.
10475 (print-utils.o): New target.
10477 2014-02-12 Tom Tromey <tromey@redhat.com>
10479 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10481 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10483 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10485 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10487 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10488 if a PT_IO ptrace request returns sucessfully but indicates that 0
10489 bytes were transferred.
10491 2014-02-12 Pedro Alves <palves@redhat.com>
10492 Kevin Buettner <kevinb@redhat.com>
10494 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10495 TYPE_INSTANCE_FLAG_CODE_SPACE.
10497 2014-02-12 Pedro Alves <palves@redhat.com>
10499 * h8300-tdep.c (pseudo_from_raw_register)
10500 (raw_from_pseudo_register): New functions.
10501 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10504 2014-02-12 Pedro Alves <palves@redhat.com>
10506 * h8300-tdep.c (h8300_register_sim_regno): New function.
10507 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10508 gdbarch_register_sim_regno hook.
10510 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10512 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10514 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10516 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10518 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10520 * obsd-tdep.h (obsd_init_abi): New prototype.
10521 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10522 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10523 (obsd_init_abi): New functions.
10524 * i386obsd-tdep.c: Include "obsd-tdep.h".
10525 (i386obsd_init_abi): Call obsd_init_abi.
10526 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10527 (amd64obsd_init_abi): Call obsd_init_abi.
10528 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10529 obsd-tdep.c to gdb_target_obs.
10531 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10533 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10534 double float arguments to 16-byte in the argument slots.
10536 2014-02-11 Doug Evans <xdje42@gmail.com>
10538 * configure.ac: Don't crash if pkg-config is not found and guile
10539 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10541 * configure: Regenerate.
10543 2014-02-11 Yao Qi <yao@codesourcery.com>
10545 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10546 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10547 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10548 * gnu-nat.c (gnu_xfer_memory): Likewise.
10549 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10550 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10551 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10552 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10554 2014-02-11 Yao Qi <yao@codesourcery.com>
10556 * target.h (enum target_xfer_error): Rename to ...
10557 (enum target_xfer_status): ... it. New. All users updated.
10558 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10560 (TARGET_XFER_STATUS_ERROR_P): New macro.
10561 (target_xfer_error_to_string): Remove declaration.
10562 (target_xfer_status_to_string): Declare.
10563 (target_xfer_partial_ftype): Adjust it.
10564 (struct target_ops) <to_xfer_partial>: Return
10565 target_xfer_status. Add argument xfered_len. Update
10567 * target.c (target_xfer_error_to_string): Rename to ...
10568 (target_xfer_status_to_string): ... it. New. All callers
10570 (target_read_live_memory): Likewise. Call target_xfer_partial
10571 instead of target_read.
10572 (memory_xfer_live_readonly_partial): Return
10573 target_xfer_status. Add argument xfered_len.
10574 (raw_memory_xfer_partial): Likewise.
10575 (memory_xfer_partial_1): Likewise.
10576 (memory_xfer_partial): Likewise.
10577 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10578 properly. Update debug message.
10579 (default_xfer_partial, current_xfer_partial): Likewise.
10580 (target_write_partial): Likewise.
10581 (target_read_partial): Likewise. All callers updated.
10582 (read_whatever_is_readable): Likewise.
10583 (target_write_with_progress): Likewise.
10584 (target_read_alloc_1): Likewise.
10586 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10587 * auxv.c (procfs_xfer_auxv): Likewise.
10588 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10589 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10590 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10591 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10592 * corefile.c (read_memory): Adjust.
10593 * corelow.c (core_xfer_partial): Likewise.
10594 * ctf.c (ctf_xfer_partial): Likewise.
10595 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10597 (darwin_xfer_partial): Likewise.
10598 * exec.c (section_table_xfer_memory_partial): Likewise. All
10600 (exec_xfer_partial): Likewise.
10601 * exec.h (section_table_xfer_memory_partial): Update
10603 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10605 (gnu_xfer_partial): Likewise.
10606 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10607 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10608 (ia64_hpux_xfer_solib_got): Likewise.
10609 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10610 type of 'partial_len' to ULONGEST.
10611 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10612 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10613 (linux_nat_xfer_partial): Likewise.
10614 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10615 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10616 * monitor.c (monitor_xfer_memory): Likewise.
10617 (monitor_xfer_partial): Likewise.
10618 * procfs.c (procfs_xfer_partial): Likewise.
10619 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10620 * record-full.c (record_full_xfer_partial): Likewise.
10621 (record_full_core_xfer_partial): Likewise.
10622 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10623 (gdbsim_xfer_partial): Likewise.
10624 * remote.c (remote_write_bytes_aux): Likewise. All callers
10626 (remote_write_bytes, remote_read_bytes): Likewise. All
10628 (remote_flash_erase): Likewise. All callers updated.
10629 (remote_write_qxfer): Likewise. All callers updated.
10630 (remote_read_qxfer): Likewise. All callers updated.
10631 (remote_xfer_partial): Likewise.
10632 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10633 (rs6000_xfer_shared_libraries): Likewise.
10634 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10635 (sol_thread_xfer_partial): Likewise.
10636 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10637 (sparc_xfer_partial): Likewise.
10638 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10640 (spu_xfer_partial): Likewise.
10641 * spu-multiarch.c (spu_xfer_partial): Likewise.
10642 * tracepoint.c (tfile_xfer_partial): Likewise.
10643 * windows-nat.c (windows_xfer_memory): Likewise.
10644 (windows_xfer_shared_libraries): Likewise.
10645 (windows_xfer_partial): Likewise.
10646 * valprint.c: Replace 'target_xfer_error' with
10647 'target_xfer_status' in comments.
10649 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10651 Checked in by Joel Brobecker <brobecker@adacore.com>.
10652 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10654 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10656 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10657 function parameters.
10659 2014-02-10 Will Newton <will.newton@linaro.org>
10661 * elfread.c (elf_rel_plt_read): Look for a .got section if
10662 looking up .got.plt fails.
10663 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10664 on address passed to elf_gnu_ifunc_record_cache.
10665 (elf_gnu_ifunc_resolve_addr): Likewise.
10666 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10668 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10670 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10671 (X_RETTURN): New macro.
10672 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10674 * sparc64-tdep.c (sparc64_init_abi): Hook
10675 sparc_in_function_epilogue_p.
10677 2014-02-10 Gary Benson <gbenson@redhat.com>
10679 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10680 Rename name_matcher to symbol_matcher.
10682 2014-02-10 Gary Benson <gbenson@redhat.com>
10684 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10685 Use expand_symtabs_file_matcher_ftype and
10686 expand_symtabs_symbol_matcher_ftype.
10688 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10690 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10691 (struct ada_symbol_cache): New.
10692 (ada_free_symbol_cache): Forward declare.
10693 (struct ada_pspace_data): New.
10694 (ada_pspace_data_handle): New static global.
10695 (get_ada_pspace_data, ada_pspace_data_cleanup)
10696 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10697 (cache_space, cache): Delete, now folded inside struct
10699 (ada_get_symbol_cache): New function.
10700 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10702 (_initialize_ada_language): Remove initialization of cache_space.
10703 Move call to observer_attach_inferior_exit up, grouping it
10704 with the other observer registrations inside this function.
10705 Rename command to be more general. Add call to
10706 register_program_space_data_with_cleanup.
10708 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10710 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10711 ada_new_objfile_observer.
10712 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10713 (_initialize_tasks): Update uses of ada_new_objfile_observer
10714 and ada_tasks_normal_stop_observer.
10716 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10718 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10719 returned by the 'Length attribute to integer.
10721 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10723 * ada-lang.c (_initialize_ada_language): Initialize
10724 cache_space obstack.
10726 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10728 * ada-lang.c (HASH_SIZE): New macro.
10729 (struct cache_entry): New type.
10730 (cache_space, cache): New static globals.
10731 (ada_clear_symbol_cache, find_entry): New functions.
10732 (lookup_cached_symbol, cache_symbol): Implement.
10733 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10734 (_initialize_ada_language): Attach ada_new_objfile_observer
10735 and ada_free_objfile_observer.
10737 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10739 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10740 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10741 struct block * parameter.
10742 (ada_lookup_symbol_list_worker): Constify local variable "block".
10743 Remove cast which is no longer necessary.
10745 2014-02-10 Doug Evans <xdje42@gmail.com>
10747 Add Guile as an extension language.
10748 * NEWS: Mention Guile scripting.
10749 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10750 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10751 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10752 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10753 (CLIBS): Add GUILE_LIBS.
10754 (install-guile): New rule.
10755 (guile.o): New rule.
10756 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10757 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10758 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10759 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10760 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10761 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10762 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10763 * configure.ac: New option --with-guile.
10764 * configure: Regenerate.
10765 * config.in: Regenerate.
10766 * auto-load.c: Remove #include "python/python.h". Add #include
10767 "gdb/section-scripts.h".
10768 (source_section_scripts): Handle Guile scripts.
10769 (_initialize_auto_load): Add name of Guile objfile script to
10770 scripts-directory help text.
10771 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10772 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10773 (struct breakpoint): New member scm_bp_object.
10774 * defs.h (enum command_control_type): New value guile_control.
10775 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10777 (show_user): Update comment.
10778 (_initialize_cli_cmds): Update help text for "show user". Update help
10779 text for max-user-call-depth.
10780 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10782 (multi_line_command_p): Add guile_control.
10783 (print_command_lines): Handle guile_control.
10784 (execute_control_command, recurse_read_control_structure): Ditto.
10785 (process_next_line): Recognize "guile" commands.
10786 * disasm.c (gdb_disassemble_info): Make non-static.
10787 * disasm.h: #include "dis-asm.h".
10788 (struct gdbarch): Add forward decl.
10789 (gdb_disassemble_info): Declare.
10790 * extension.c: #include "guile/guile.h".
10791 (extension_languages): Add guile.
10792 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10793 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10794 * gdbtypes.c (get_unsigned_type_max): New function.
10795 (get_signed_type_minmax): New function.
10796 * gdbtypes.h (get_unsigned_type_max): Declare.
10797 (get_signed_type_minmax): Declare.
10798 * guile/README: New file.
10799 * guile/guile-internal.h: New file.
10800 * guile/guile.c: New file.
10801 * guile/guile.h: New file.
10802 * guile/scm-arch.c: New file.
10803 * guile/scm-auto-load.c: New file.
10804 * guile/scm-block.c: New file.
10805 * guile/scm-breakpoint.c: New file.
10806 * guile/scm-disasm.c: New file.
10807 * guile/scm-exception.c: New file.
10808 * guile/scm-frame.c: New file.
10809 * guile/scm-gsmob.c: New file.
10810 * guile/scm-iterator.c: New file.
10811 * guile/scm-lazy-string.c: New file.
10812 * guile/scm-math.c: New file.
10813 * guile/scm-objfile.c: New file.
10814 * guile/scm-ports.c: New file.
10815 * guile/scm-pretty-print.c: New file.
10816 * guile/scm-safe-call.c: New file.
10817 * guile/scm-string.c: New file.
10818 * guile/scm-symbol.c: New file.
10819 * guile/scm-symtab.c: New file.
10820 * guile/scm-type.c: New file.
10821 * guile/scm-utils.c: New file.
10822 * guile/scm-value.c: New file.
10823 * guile/lib/gdb.scm: New file.
10824 * guile/lib/gdb/boot.scm: New file.
10825 * guile/lib/gdb/experimental.scm: New file.
10826 * guile/lib/gdb/init.scm: New file.
10827 * guile/lib/gdb/iterator.scm: New file.
10828 * guile/lib/gdb/printing.scm: New file.
10829 * guile/lib/gdb/types.scm: New file.
10830 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10831 (VPATH): Add $(GUILE_SRCDIR).
10832 (GUILE_DIR): New variable.
10833 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10834 (all): Add stamp-guile dependency.
10835 (stamp-guile): New rule.
10836 (clean-guile, install-guile, uninstall-guile): New rules.
10837 (install-only): Add install-guile dependency.
10838 (uninstall): Add uninstall-guile dependency.
10839 (clean): Add clean-guile dependency.
10841 2014-02-09 Doug Evans <xdje42@gmail.com>
10843 Revert this patch (which I approved, mea culpa).
10845 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10847 * Makefile.in (all-lib): Remove.
10848 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10850 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10852 Fix Python stack corruption.
10853 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10856 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10858 * Makefile.in (all-lib): Remove.
10859 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10861 2014-02-07 Doug Evans <dje@google.com>
10863 * extension-priv.h (extension_language_script_ops): Add comment.
10864 (extension_language_ops): Add comment.
10865 (active_ext_lang_state): Fix typo in comment.
10867 2014-02-07 Pedro Alves <palves@redhat.com>
10869 PR breakpoints/16292
10870 * infrun.c (handle_signal_stop) <signal arrives while stepping
10871 over a breakpoint>: Switch back to the stepping thread.
10873 2014-02-07 Yao Qi <yao@codesourcery.com>
10875 * target.c (target_xfer_partial): Return zero if LEN is zero.
10877 2014-02-07 Yao Qi <yao@codesourcery.com>
10879 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10880 (ld_so_xfer_auxv): Likewise.
10881 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10882 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10883 * corelow.c (core_xfer_partial): Likewise.
10884 * ctf.c (ctf_xfer_partial): Likewise.
10885 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10886 (darwin_xfer_partial): Likewise.
10887 * exec.c (exec_xfer_partial): Likewise.
10888 * gnu-nat.c (gnu_xfer_partial): Likewise.
10889 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10890 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10891 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10892 * linux-nat.c (linux_xfer_siginfo): Likewise.
10893 (linux_proc_xfer_spu): Likewise.
10894 * procfs.c (procfs_xfer_partial): Likewise.
10895 * record-full.c (record_full_xfer_partial): Likewise.
10896 (record_full_core_xfer_partial): Likewise.
10897 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10898 * remote.c (remote_write_qxfer): Likewise.
10899 (remote_write_qxfer, remote_read_qxfer): Likewise.
10900 (remote_xfer_partial): Likewise.
10901 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10902 (rs6000_xfer_shared_libraries): Likewise.
10903 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10904 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10905 (spu_xfer_partial): Likewise.
10906 * target.c (memory_xfer_partial_1): Likewise.
10907 * tracepoint.c (tfile_xfer_partial): Likewise.
10908 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10909 (windows_xfer_partial): Likewise.
10911 2014-02-07 Yao Qi <yao@codesourcery.com>
10913 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10915 (core_xfer_shared_libraries_aix): Likewise.
10916 * gdbarch.c, gdbarch.h: Regenerated.
10917 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10918 ULONGEST. Change 'len_avail' type to ULONGEST.
10919 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10920 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10922 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10924 2014-02-07 Yao Qi <yao@codesourcery.com>
10926 * corefile.c (memory_error): Get 'exception' from ERR and pass
10927 'exception' to throw_error.
10929 2014-02-06 Doug Evans <xdje42@gmail.com>
10931 * configure.ac (libpython checking): Remove all but python.o from
10932 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10933 * configure: Regenerate.
10935 * Makefile.in (SFILES): Add extension.c.
10936 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10937 (COMMON_OBS): Add extension.o.
10938 * extension.h: New file.
10939 * extension-priv.h: New file.
10940 * extension.c: New file.
10942 * python/python-internal.h: #include "extension.h".
10943 (gdbpy_auto_load_enabled): Declare.
10944 (gdbpy_apply_val_pretty_printer): Declare.
10945 (gdbpy_apply_frame_filter): Declare.
10946 (gdbpy_preserve_values): Declare.
10947 (gdbpy_breakpoint_cond_says_stop): Declare.
10948 (gdbpy_breakpoint_has_cond): Declare.
10949 (void source_python_script_for_objfile): Delete.
10950 * python/python.c: #include "extension-priv.h".
10951 Delete inclusion of "observer.h".
10952 (extension_language_python): Moved here and renamed from
10953 script_language_python in py-auto-load.c.
10954 Redefined to be of type extension_language_defn.
10955 (python_extension_script_ops): New global.
10956 (python_extension_ops): New global.
10957 (struct python_env): New member previous_active.
10958 (restore_python_env): Call restore_active_ext_lang.
10959 (ensure_python_env): Call set_active_ext_lang.
10960 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10962 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10964 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10966 (gdbpy_eval_from_control_command): Renamed from
10967 eval_python_from_control_command, made static. New arg extlang.
10968 (gdbpy_source_script) Renamed from source_python_script, made static.
10970 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10971 result to int. New arg extlang.
10972 (gdbpy_source_objfile_script): Renamed from
10973 source_python_script_for_objfile, made static. New arg extlang.
10974 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10975 static. New args extlang, extlang_printers. Change result type to
10977 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10978 static. New arg extlang. Rename arg printers to extlang_printers
10979 and change type to ext_lang_type_printers *.
10980 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10981 static. Replace argument arg with extlang, extlang_printers.
10982 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10983 (!HAVE_PYTHON, source_python_script): Delete.
10984 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10985 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10986 (!HAVE_PYTHON, start_type_printers): Delete.
10987 (!HAVE_PYTHON, apply_type_printers): Delete.
10988 (!HAVE_PYTHON, free_type_printers): Delete.
10989 (_initialize_python): Delete call to observer_attach_before_prompt.
10990 (finalize_python): Set/restore active extension language.
10991 (gdbpy_finish_initialization) Renamed from
10992 finish_python_initialization, made static. New arg extlang.
10993 (gdbpy_initialized): New function.
10994 * python/python.h: #include "extension.h". Delete #include
10995 "value.h", "mi/mi-cmds.h".
10996 (extension_language_python): Declare.
10997 (GDBPY_AUTO_FILE_NAME): Delete.
10998 (enum py_bt_status): Moved to extension.h and renamed to
10999 ext_lang_bt_status.
11000 (enum frame_filter_flags): Moved to extension.h.
11001 (enum py_frame_args): Moved to extension.h and renamed to
11002 ext_lang_frame_args.
11003 (finish_python_initialization): Delete.
11004 (eval_python_from_control_command): Delete.
11005 (source_python_script): Delete.
11006 (apply_val_pretty_printer): Delete.
11007 (apply_frame_filter): Delete.
11008 (preserve_python_values): Delete.
11009 (gdbpy_script_language_defn): Delete.
11010 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11011 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11013 * auto-load.c: #include "extension.h".
11014 (GDB_AUTO_FILE_NAME): Delete.
11015 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11016 (script_language_gdb): Delete, moved to extension.c and renamed to
11017 extension_language_gdb.
11018 (source_gdb_script_for_objfile): Delete.
11019 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11020 (loaded_script): Change type of language member to
11021 struct extension_language_defn *.
11022 (init_loaded_scripts_info): Initialize
11023 unsupported_script_warning_printed.
11024 (maybe_add_script): Make static. Change type of language arg to
11025 struct extension_language_defn *.
11026 (clear_section_scripts): Reset unsupported_script_warning_printed.
11027 (auto_load_objfile_script_1): Rewrite to use extension language API.
11028 (auto_load_objfile_script): Make public. Remove support-compiled-in
11029 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11030 (source_section_scripts): Rewrite to use extension language API.
11031 (load_auto_scripts_for_objfile): Rewrite to use
11032 auto_load_scripts_for_objfile.
11033 (collect_matching_scripts_data): Change type of language member to
11034 struct extension_language_defn *.
11035 (auto_load_info_scripts): Change type of language arg to
11036 struct extension_language_defn *.
11037 (unsupported_script_warning_print): New function.
11038 (script_not_found_warning_print): Make static.
11039 (_initialize_auto_load): Rewrite construction of scripts-directory
11041 * auto-load.h (struct objfile): Add forward decl.
11042 (struct script_language): Delete.
11043 (struct auto_load_pspace_info): Add forward decl.
11044 (struct extension_language_defn): Add forward decl.
11045 (maybe_add_script): Delete.
11046 (auto_load_objfile_script): Declare.
11047 (script_not_found_warning_print): Delete.
11048 (auto_load_info_scripts): Update prototype.
11049 (auto_load_gdb_scripts_enabled): Declare.
11050 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11051 auto_load_python_scripts_enabled and made public.
11052 (script_language_python): Delete, moved to python.c.
11053 (gdbpy_script_language_defn): Delete.
11054 (info_auto_load_python_scripts): Update to use
11055 extension_language_python.
11057 * breakpoint.c (condition_command): Replace call to
11058 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11059 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11060 with call to breakpoint_ext_lang_cond_says_stop.
11061 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11062 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11063 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11064 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11066 (local_setattro): Print name of extension language with existing
11069 * valprint.c (val_print, value_print): Update to call
11070 apply_ext_lang_val_pretty_printer.
11071 * cp-valprint.c (cp_print_value): Update call to
11072 apply_ext_lang_val_pretty_printer.
11073 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11074 (gdbpy_apply_val_pretty_printer): Renamed from
11075 apply_val_pretty_printer. New arg extlang.
11076 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11078 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11079 extension language API.
11080 * cli/cli-script.c (execute_control_command): Update to call
11081 eval_ext_lang_from_control_command.
11083 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11084 enum ext_lang_bt_status values. Update call to
11085 apply_ext_lang_frame_filter.
11086 (mi_cmd_stack_list_locals): Ditto.
11087 (mi_cmd_stack_list_args): Ditto.
11088 (mi_cmd_stack_list_variables): Ditto.
11089 * mi/mi-main.c: Delete #include "python/python-internal.h".
11090 Add #include "extension.h".
11091 (mi_cmd_list_features): Replace reference to python internal variable
11092 gdb_python_initialized with call to ext_lang_initialized_p.
11094 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11095 Update to use enum ext_lang_frame_args. Update to call
11096 apply_ext_lang_frame_filter.
11097 * python/py-framefilter.c (extract_sym): Update to use enum
11098 ext_lang_bt_status.
11099 (extract_value, py_print_type, py_print_value): Ditto.
11100 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11101 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11102 (py_print_frame): Ditto.
11103 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11104 New arg extlang. Update to use enum ext_lang_bt_status.
11106 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11107 finish_python_initialization. Replace with call to
11108 finish_ext_lang_initialization.
11110 * typeprint.c (do_free_global_table): Update to call
11111 free_ext_lang_type_printers.
11112 (create_global_typedef_table): Update to call
11113 start_ext_lang_type_printers.
11114 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11115 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11116 (type_print_options): Change type of global_printers from "void *"
11117 to "struct ext_lang_type_printers *".
11119 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11120 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11121 (gdbpy_preserve_values): Renamed from preserve_python_values.
11123 (!HAVE_PYTHON, preserve_python_values): Delete.
11125 * utils.c (quit_flag): Delete, moved to extension.c.
11126 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11129 * eval.c: Delete #include "python/python.h".
11130 * main.c: Delete #include "python/python.h".
11132 * defs.h: Update comment.
11134 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11138 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11140 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11143 2014-02-05 Yao Qi <yao@codesourcery.com>
11145 * remote.c (remote_pass_signals): Remove local 'buf' and use
11147 (remote_program_signals): Likewise.
11149 2014-02-05 Yao Qi <yao@codesourcery.com>
11151 * ctf.c: Include "inferior.h" and "gdbthread.h".
11152 (CTF_PID): A new macro.
11153 (ctf_open): Call inferior_appeared and add_thread_silent.
11154 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11155 (ctf_thread_alive): New function.
11156 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11158 2014-02-05 Yao Qi <yao@codesourcery.com>
11162 2013-05-24 Yao Qi <yao@codesourcery.com>
11164 * tracepoint.c (TFILE_PID): Remove.
11165 (tfile_open): Don't add thread and inferior.
11166 (tfile_close): Don't set 'inferior_ptid'. Don't call
11167 exit_inferior_silent.
11168 (tfile_thread_alive): Remove.
11169 (init_tfile_ops): Don't set field 'to_thread_alive' of
11172 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11174 * remote.c (remote_start_remote): Call remote_check_symbols even
11175 if only symbol-file (not file) has been given.
11177 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11179 * gdbarch.sh (skip_entrypoint): New callback.
11180 * gdbarch.c, gdbarch.h: Regenerate.
11181 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11182 * infrun.c (fill_in_stop_func): Likewise.
11183 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11184 (ppc_elfv2_elf_make_msymbol_special): New function.
11185 (ppc_elfv2_skip_entrypoint): Likewise.
11186 (ppc_linux_init_abi): Install them for ELFv2.
11188 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11190 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11191 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11192 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11193 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11194 structures returned in GPRs.
11196 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11198 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11199 offset to the stack parameter list for the ELFv2 ABI.
11201 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11203 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11204 set_gdbarch_convert_from_func_ptr_addr and
11205 set_gdbarch_elf_make_msymbol_special for ELFv1.
11206 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11207 function descriptors on ELFv1.
11208 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11209 set up r12 at function entry.
11211 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11213 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11214 (struct gdbarch_tdep): New member elf_abi.
11216 * rs6000-tdep.c: Include "elf/ppc64.h".
11217 (rs6000_gdbarch_init): Detect ELF ABI version.
11219 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11221 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11222 within a register pair holding a DFP 128-bit value on little-endian.
11223 (ppc64_sysv_abi_return_value_base): Likewise.
11224 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11225 (dfp_pseudo_register_write): Likewise.
11227 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11229 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11230 offset on little-endian when passing _Decimal32.
11231 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11233 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11235 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11236 of the overlapped FP register within the VSX register on little-
11238 (efpr_pseudo_register_write): Likewise.
11240 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11242 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11243 offset on little-endian when passing small structures.
11245 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11247 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11248 (struct ppc64_sysv_argpos): New data structure.
11249 (ppc64_sysv_abi_push_float): Remove.
11250 (ppc64_sysv_abi_push_val): New function.
11251 (ppc64_sysv_abi_push_integer): Likewise.
11252 (ppc64_sysv_abi_push_freg): Likewise.
11253 (ppc64_sysv_abi_push_vreg): Likewise.
11254 (ppc64_sysv_abi_push_param): Likewise.
11255 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11256 (ppc64_sysv_abi_return_value_base): New function.
11257 (ppc64_sysv_abi_return_value): Refactor to use it.
11259 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11261 * NEWS: Document new target powerpc64le-*-linux*.
11263 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11265 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11266 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11268 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11269 register set used in ELF core dumps. Add floating-point register set.
11271 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11273 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11274 dwarf2_to_gdb[] table using symbolic constants. Adjust
11275 penultimate entry from number representing the PC register
11276 to symbolic constant representing the MDR register. Add
11277 constant for the PC register to the end of the table.
11279 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11281 * bsd-kvm.c: Include <sys/param.h>
11283 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11285 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11287 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11289 * ada-lang.h (clear_ada_sym_cache): Delete.
11291 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11293 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11295 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11297 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11298 the sigreturn register save area only if the syscall is
11301 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11303 * valops.c (value_slice): Minor reformatting.
11305 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11307 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11309 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11311 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11312 New static globals.
11313 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11314 (ada_ignore_descriptive_types_p): New static global.
11315 (find_parallel_type_by_descriptive_type): Return immediately
11316 if ada_ignore_descriptive_types_p is set.
11317 (_initialize_ada_language): Register new commands "maintenance
11318 set ada", "maintenance show ada", "maintenance set ada
11319 ignore-descriptive-types" and "maintenance show ada
11320 ignore-descriptive-types".
11321 * NEWS: Add entry for new "maint ada set/show
11322 ignore-descriptive-types" commands.
11324 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11326 * record-btrace.c (record_btrace_close): Call btrace_teardown
11329 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11331 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11334 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11336 * ada-typeprint (type_is_full_subrange_of_target_type):
11338 (print_range): Add parameter bounds_prefered_p. If not set,
11339 try printing range types using the name of their base type.
11340 (print_range_type): Add parameter bounds_prefered_p.
11341 Use it in call to print_range.
11342 (print_array_type, ada_print_type): Update calls to print_range
11343 and print_range_type.
11345 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11347 * ada-typeprint.c (print_array_type, print_choices, print_range)
11348 (print_range_bound, print_dynamic_range_bound, print_range_type):
11349 Remove declaration.
11351 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11353 * ada-typeprint.c (print_range): Add missing empty line
11354 after local declaration.
11356 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11358 * ada-valprint.c (print_optional_low_bound): Get index_type's
11359 target type for as long as it is a TYPE_CODE_RANGE.
11361 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11363 * procfs.c (procfs_make_note_section): Remove assertion and
11364 associated comment.
11366 2014-01-24 Yao Qi <yao@codesourcery.com>
11368 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11369 * corelow.c (get_core_siginfo): Likewise.
11371 2014-01-24 Yao Qi <yao@codesourcery.com>
11373 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11374 ULONGEST. Don't check 'len' is negative.
11375 (remote_write_bytes): Change type of 'len' to ULONGEST.
11377 2014-01-23 Tom Tromey <tromey@redhat.com>
11380 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11381 Handle exception from frame.block.
11382 (FrameVars.fetch_frame_locals): Likewise.
11384 2014-01-23 Tom Tromey <tromey@redhat.com>
11387 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11388 on a NULL pointer. Move "goto error" to correct place.
11390 2014-01-23 Tom Tromey <tromey@redhat.com>
11393 * python/py-framefilter.c (apply_frame_filter): Call
11394 ensure_python_env after computing gdbarch.
11396 2014-01-23 Yao Qi <yao@codesourcery.com>
11398 * target.c (raw_memory_xfer_partial): Change argument type
11399 from void * to gdb_byte *.
11400 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11402 2014-01-22 Doug Evans <dje@google.com>
11404 New gdbserver option --debug-format=timestamp.
11405 * NEWS: Mention it.
11407 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11409 * syscalls/s390x-linux.xml: New file.
11410 * syscalls/s390-linux.xml: New file.
11411 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11412 (XML_SYSCALL_FILENAME_S390X): Likewise.
11413 (op_svc): New enum value for SVC opcode.
11414 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11415 (s390_linux_get_syscall_number): New function.
11416 (s390_gdbarch_init): Register '*get_syscall_number' and the
11417 syscall xml file name.
11418 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11419 "s390-linux.xml" and "s390x-linux.xml".
11420 * NEWS: Announce new feature.
11422 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11424 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11426 2014-01-22 Pedro Alves <palves@redhat.com>
11428 * xtensa-config.c: Include defs.h.
11430 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11432 * common/common-utils.h: Add "ARI:" comment beside __func__
11435 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11437 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11438 documentation a bit.
11440 2014-01-21 Roland McGrath <mcgrathr@google.com>
11442 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11443 * configure: Regenerate.
11444 * aclocal.m4: Regenerate.
11445 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11446 New substituted variables.
11447 (install-strip): New target.
11448 (INSTALL_SCRIPT): New substituted variable.
11449 (FLAGS_TO_PASS): Add it.
11450 (install-only): Use $(INSTALL_SCRIPT) rather than
11451 $(INSTALL_PROGRAM) for gcore.
11453 2014-01-20 Tom Tromey <tromey@redhat.com>
11455 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11458 2014-01-20 Tom Tromey <tromey@redhat.com>
11460 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11461 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11462 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11463 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11464 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11465 (struct cmd_list_element) <flags>: Remove.
11466 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11467 doc_allocated>: New fields.
11468 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11470 * maint.c (maintenance_do_deprecate): Update.
11471 * top.c (execute_command): Update.
11473 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11475 * xtensa-linux-nat.c: Include asm/ptrace.h.
11477 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11479 * Makefile.in (SFILES): Add d-support.c.
11480 (COMMON_OBS): Add d-support.o.
11481 * d-lang.h (d_parse_symbol): Add comment, now defined in
11483 * d-lang.c (parse_call_convention)
11484 (parse_attributes, parse_function_types)
11485 (parse_function_args, parse_type, parse_identifier)
11486 (call_convention_p, d_parse_symbol): Move functions to ...
11487 * d-support.c: ... New file.
11489 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11491 * d-lang.h (d_parse_symbol): Add declaration.
11492 * d-lang.c (extract_identifiers)
11493 (extract_type_info): Remove functions.
11494 (parse_call_convention, parse_attributes)
11495 (parse_function_types, parse_function_args)
11496 (parse_type, parse_identifier, call_convention_p)
11497 (d_parse_symbol): New functions.
11498 (d_demangle): Use d_parse_symbol to demangle D symbols.
11500 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11502 * d-lang.h (struct builtin_d_type): New data type.
11503 (builtin_d_type): Add declaration.
11504 * d-lang.c (d_language_arch_info, build_d_types)
11505 (builtin_d_type): New functions.
11506 (enum d_primitive_types): New data type.
11507 (d_language_defn): Change c_language_arch_info to
11508 d_language_arch_info.
11509 (d_type_data): New static variable.
11510 (_initialize_d_language): Initialize d_type_data.
11512 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11514 * d-lang.h (d_main_name): Add declaration.
11515 * d-lang.c (d_main_name): New function.
11516 * symtab.c (find_main_name): Add call to d_main_name.
11518 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11520 * d-lang.c (d_language_defn): Change macro_expansion_c to
11521 macro_expansion_no.
11523 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11525 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11527 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11529 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11530 gdb_exception" declaration.
11531 * remote.c (getpkt_or_notif_sane): Likewise.
11533 2014-01-17 Doug Evans <dje@google.com>
11535 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11536 function, contents of dirnames_to_char_ptr_vec_append moved here.
11537 (delim_string_to_char_ptr_vec): New function.
11538 (dirnames_to_char_ptr_vec_append): Rewrite.
11539 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11541 2014-01-17 Doug Evans <dje@google.com>
11543 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11545 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11546 #include "common-utils.h".
11547 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11548 * common/vec.h (VEC_ASSERT_PASS): Update.
11549 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11550 (MACH_CHECK_ERROR): Update.
11552 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11554 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11556 * gdbarch.h: Regenerate.
11558 2014-01-16 Tom Tromey <tromey@redhat.com>
11560 * value.c (struct value) <regnum>: Move earlier.
11562 2014-01-16 Tom Tromey <tromey@redhat.com>
11564 * remote.c (extended_remote_create_inferior): Rename from
11565 extended_remote_create_inferior_1. Add "ops" argument. Remove
11566 old implementation.
11568 2014-01-16 Pedro Alves <palves@redhat.com>
11570 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11571 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11574 2014-01-16 Doug Evans <dje@google.com>
11576 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11578 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11580 * btrace.h (btrace_thread_flag): New.
11581 (struct btrace_thread_info) <flags>: New.
11582 * record-btrace.c (record_btrace_resume_thread)
11583 (record_btrace_find_thread_to_move, btrace_step_no_history)
11584 (btrace_step_stopped, record_btrace_start_replaying)
11585 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11586 (record_btrace_find_resume_thread): New.
11587 (record_btrace_resume, record_btrace_wait): Extend.
11588 (record_btrace_can_execute_reverse): New.
11589 (record_btrace_open): Fail in non-stop mode.
11590 (record_btrace_set_replay): Split into this, ...
11591 (record_btrace_stop_replaying): ... this, ...
11592 (record_btrace_clear_histories): ... and this.
11593 (init_record_btrace_ops): Init to_can_execute_reverse.
11594 * NEWS: Announce it.
11596 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11598 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11599 (forward_target_decr_pc_after_break)
11600 (target_decr_pc_after_break): New.
11601 * target.c (forward_target_decr_pc_after_break)
11602 (target_decr_pc_after_break): New.
11603 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11604 instead of gdbarch_decr_pc_after_break.
11605 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11606 instead of gdbarch_decr_pc_after_break.
11607 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11608 instead of gdbarch_decr_pc_after_break.
11609 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11610 instead of gdbarch_decr_pc_after_break.
11611 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11612 instead of gdbarch_decr_pc_after_break.
11613 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11614 instead of gdbarch_decr_pc_after_break.
11616 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11618 * btrace.c: Include regcache.h.
11619 (btrace_add_pc): New.
11620 (btrace_enable): Call btrace_add_pc.
11621 (btrace_is_empty): New.
11622 * btrace.h (btrace_is_empty): New.
11623 * record-btrace.c (require_btrace, record_btrace_info): Call
11626 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11628 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11629 Support delta reads.
11630 (linux_disable_btrace): Change return type.
11631 * common/linux-btrace.h (linux_read_btrace): Change parameters
11632 and return type to allow error reporting. Update users.
11633 (linux_disable_btrace): Change return type. Update users.
11634 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11636 (btrace_error): New.
11637 (btrace_block) <begin>: Comment on BEGIN == 0.
11638 * btrace.c (btrace_compute_ftrace): Start from the end of
11640 (btrace_stitch_trace, btrace_clear_history): New.
11641 (btrace_fetch): Read delta trace, return if replaying.
11642 (btrace_clear): Move clear history code to btrace_clear_history.
11643 (parse_xml_btrace): Throw an error if parsing failed.
11644 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11645 and return type to allow error reporting.
11646 (target_read_btrace): Change parameters and return type to allow
11648 * target.c (target_read_btrace): Update.
11649 * remote.c (remote_read_btrace): Support delta reads. Pass
11651 * NEWS: Announce it.
11653 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11655 * record.h (record_btrace_frame_unwind)
11656 (record_btrace_tailcall_frame_unwind): New declarations.
11657 * dwarf2-frame: Include record.h
11658 (dwarf2_frame_cfa): Throw an error for btrace frames.
11659 * record-btrace.c: Include hashtab.h.
11660 (btrace_get_bfun_name): New.
11661 (btrace_call_history): Call btrace_get_bfun_name.
11662 (struct btrace_frame_cache): New.
11664 (bfcache_hash, bfcache_eq, bfcache_new): New.
11665 (btrace_get_frame_function): New.
11666 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11667 (record_btrace_frame_this_id): Compute own id.
11668 (record_btrace_frame_prev_register): Provide PC, throw_error
11669 for all other registers.
11670 (record_btrace_frame_sniffer): Detect btrace frames.
11671 (record_btrace_tailcall_frame_sniffer): New.
11672 (record_btrace_frame_dealloc_cache): New.
11673 (record_btrace_frame_unwind): Add new functions.
11674 (record_btrace_tailcall_frame_unwind): New.
11675 (_initialize_record_btrace): Allocate cache.
11676 * btrace.c (btrace_clear): Call reinit_frame_cache.
11677 * NEWS: Announce it.
11679 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11681 * record-btrace.c (record_btrace_set_replay)
11682 (record_btrace_goto_begin, record_btrace_goto_end)
11683 (record_btrace_goto): New.
11684 (init_record_btrace_ops): Initialize them.
11685 * NEWS: Announce it.
11687 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11689 * record-btrace.c (record_btrace_find_new_threads)
11690 (record_btrace_thread_alive): New.
11691 (init_record_btrace_ops): Initialize to_find_new_threads and
11694 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11696 * record-btrace.c (record_btrace_resume): New.
11697 (record_btrace_wait): New.
11698 (init_record_btrace_ops): Initialize to_wait and to_resume.
11700 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11702 * record-btrace.c (record_btrace_xfer_partial)
11703 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11704 (record_btrace_allow_memory_access): New.
11705 (init_record_btrace_ops): Initialize new methods.
11706 * target.c (raw_memory_xfer_partial): Bail out if target reports
11707 that this memory is not available.
11709 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11711 * target.h (target_ops) <to_insert_breakpoint>
11712 <to_remove_breakpoint>: Add target_ops parameter.
11713 (forward_target_insert_breakpoint): New.
11714 (forward_target_remove_breakpoint): New.
11715 (memory_remove_breakpoint, memory_insert_breakpoint):
11716 Add target_ops parameter.
11717 * target.c (target_insert_breakpoint): Split into this and ...
11718 (forward_target_insert_breakpoint): ... this.
11719 (target_remove_breakpoint): Split into this and ...
11720 (forward_target_remove_breakpoint): ... this.
11721 (debug_to_insert_breakpoint): Add target_ops parameter.
11722 Call forward_target_insert_breakpoint.
11723 (debug_to_remove_breakpoint): Add target_ops parameter.
11724 Call forward_target_remove_breakpoint.
11725 (update_current_target): Do not inherit or default to_insert_breakpoint
11726 and to_remove_breakpoint.
11727 * corelow.c (ignore): Add target_ops parameter.
11728 * exec.c (ignore): Add target_ops parameter.
11729 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11730 Add target_ops parameter.
11731 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11732 Add target_ops parameter.
11733 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11734 Add target_ops parameter.
11735 * record-full.c (record_full_beneath_to_insert_breakpoint)
11736 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11737 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11738 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11739 (record_full_core_remove_breakpoint): Add target_ops parameter.
11741 (record_full_beneath_to_insert_breakpoint_ops)
11742 (record_full_beneath_to_remove_breakpoint_ops)
11743 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11744 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11745 tmp_to_remove_breakpoint_ops,
11746 record_full_beneath_to_insert_breakpoint_ops, and
11747 record_full_beneath_to_remove_breakpoint_ops.
11748 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11749 (m32r_remove_breakpoint): Add target_ops parameter.
11750 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11751 Add target_ops parameter.
11752 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11753 Add target_ops parameter.
11755 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11756 Markus Metzger <markus.t.metzger@intel.com>
11758 * record-btrace.c: Include frame-unwind.h.
11759 (record_btrace_frame_unwind_stop_reason)
11760 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11761 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11763 (init_record_btrace_ops): Install it.
11765 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11767 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11770 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11772 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11775 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11777 * frame-unwind.c: Include target.h.
11778 (frame_unwind_try_unwinder): New function with code from ...
11779 (frame_unwind_find_by_frame): ... here. New variable
11780 unwinder_from_target, call also target_get_unwinder)
11781 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11782 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11783 * target.h (struct target_ops): New fields to_get_unwinder and
11784 to_get_tailcall_unwinder.
11785 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11787 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11789 * record-btrace.c (record_btrace_fetch_registers)
11790 (record_btrace_store_registers)
11791 (record_btrace_to_prepare_to_store): New.
11792 (init_record_btrace_ops): Add the above.
11794 2014-01-16 Tom Tromey <tromey@redhat.com>
11796 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11797 * target.h (struct target_ops) <to_prepare_to_store>: Add
11799 (target_prepare_to_store): Add argument.
11800 * target.c (debug_to_prepare_to_store): Add argument.
11801 (update_current_target): Update.
11802 * remote.c (remote_prepare_to_store): Add 'self' argument.
11803 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11804 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11805 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11806 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11808 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11809 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11810 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11811 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11812 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11814 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11816 * btrace.h (replay) <replay>: New.
11817 (btrace_is_replaying): New.
11818 * btrace.c (btrace_clear): Free replay iterator.
11819 (btrace_is_replaying): New.
11820 * record-btrace.c (record_btrace_is_replaying): New.
11821 (record_btrace_info): Print insn number if replaying.
11822 (record_btrace_insn_history): Start at replay position.
11823 (record_btrace_call_history): Start at replay position.
11824 (init_record_btrace_ops): Init to_record_is_replaying.
11826 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11828 * record-btrace.c (record_btrace_insn_history_range): Include
11830 (record_btrace_insn_history_from): Adjust range.
11831 (record_btrace_call_history_range): Include
11833 (record_btrace_call_history_from): Adjust range.
11834 * NEWS: Announce changes.
11836 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11838 * record.h (enum record_print_flag)
11839 <record_print_indent_calls>: New.
11840 * record.c (get_call_history_modifiers): Recognize /c modifier.
11841 (_initialize_record): Document /c modifier.
11842 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11843 Reorder fields. Optionally indent the function name. Update
11845 * NEWS: Announce changes.
11847 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11849 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11851 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11853 * btrace.c (ftrace_new_function): Start counting at one.
11854 * record-btrace.c (record_btrace_info): Adjust number of calls
11856 * NEWS: Announce it.
11858 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11860 * record-btrace.c (btrace_call_history_insn_range): Print
11861 insn range as [begin, end].
11863 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11865 * btrace.h (struct btrace_func_link): New.
11866 (enum btrace_function_flag): New.
11867 (struct btrace_inst): Rename to ...
11868 (struct btrace_insn): ...this. Update all users.
11869 (struct btrace_func) <ibegin, iend>: Remove.
11870 (struct btrace_func_link): New.
11871 (struct btrace_func): Rename to ...
11872 (struct btrace_function): ...this. Update all users.
11873 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11874 (number, level, flags>: New.
11875 (struct btrace_insn_iterator): Rename to ...
11876 (struct btrace_insn_history): ...this.
11878 (struct btrace_insn_iterator, btrace_call_iterator): New.
11879 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11880 (struct btrace_target_info) <begin, end, level>
11881 <insn_history, call_history>: New.
11882 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11883 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11884 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11885 (btrace_call_number, btrace_call_begin, btrace_call_end)
11886 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11887 (btrace_find_function_by_number, btrace_set_insn_history)
11888 (btrace_set_call_history): New.
11889 * btrace.c (btrace_init_insn_iterator)
11890 (btrace_init_func_iterator, compute_itrace): Remove.
11891 (ftrace_print_function_name, ftrace_print_filename)
11892 (ftrace_skip_file): Change
11893 parameter to const.
11894 (ftrace_init_func): Remove.
11895 (ftrace_debug): Use new btrace_function fields.
11896 (ftrace_function_switched): Also consider gaining and
11897 losing symbol information).
11898 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11899 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11900 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11902 (ftrace_new_function): Move. Remove debug print.
11903 (ftrace_update_lines, ftrace_update_insns): New.
11904 (ftrace_update_function): Check for call, ret, and jump.
11905 (compute_ftrace): Renamed to ...
11906 (btrace_compute_ftrace): ...this. Rewritten to compute call
11908 (btrace_fetch, btrace_clear): Updated.
11909 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11910 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11911 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11912 (btrace_call_number, btrace_call_begin, btrace_call_end)
11913 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11914 (btrace_find_function_by_number, btrace_set_insn_history)
11915 (btrace_set_call_history): New.
11916 * record-btrace.c (require_btrace): Use new btrace thread
11918 (record_btrace_info, btrace_insn_history)
11919 (record_btrace_insn_history, record_btrace_insn_history_range):
11920 Use new btrace thread info fields and new iterator.
11921 (btrace_func_history_src_line): Rename to ...
11922 (btrace_call_history_src_line): ...this. Use new btrace
11923 thread info fields.
11924 (btrace_func_history): Rename to ...
11925 (btrace_call_history): ...this. Use new btrace thread info
11926 fields and new iterator.
11927 (record_btrace_call_history, record_btrace_call_history_range):
11928 Use new btrace thread info fields and new iterator.
11930 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11932 * frame.h (frame_id_build_unavailable_stack_special): New.
11933 * frame.c (frame_id_build_unavailable_stack_special): New.
11935 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11937 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11938 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11939 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11941 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11942 (i386_insn_is_jump, i386_jmp_p): New.
11943 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11944 insn_is_jump to gdbarch.
11945 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11946 * gdbarch.h: Regenerated.
11947 * gdbarch.c: Regenerated.
11948 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11949 (default_insn_is_jump): New.
11950 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11951 (default_insn_is_jump): New.
11953 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11955 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11957 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11958 (btrace_read_type) <btrace_read_new>: Change to ...
11959 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11961 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11963 * common/linux-btrace.c (linux_read_btrace): Free trace from
11964 previous iteration.
11966 2014-01-15 Doug Evans <dje@google.com>
11968 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11971 2014-01-15 Tom Tromey <tromey@redhat.com>
11973 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11974 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11975 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11976 (set_objfile_main_name): New function.
11977 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11978 language_of_main>: New fields.
11979 (set_objfile_main_name): Declare.
11980 * symtab.c (find_main_name): Loop over objfiles to find the main
11982 (set_main_name): Now static.
11983 (get_main_info): Add comment.
11984 * symtab.h (set_main_name): Don't declare.
11986 2014-01-15 Tom Tromey <tromey@redhat.com>
11988 * symtab.c (main_progspace_key): New global.
11989 (struct main_info): New.
11990 (name_of_main, language_of_main): Remove.
11991 (get_main_info, main_info_cleanup): New function.
11992 (set_main_name, main_name, main_language): Use get_main_info.
11993 (_initialize_symtab): Initialize main_progspace_key.
11995 2014-01-15 Tom Tromey <tromey@redhat.com>
11997 * dbxread.c (process_one_symbol): Update.
11998 * dwarf2read.c (read_partial_die): Update.
11999 * symfile.c (set_initial_language): Call main_language.
12000 * symtab.c (language_of_main): Now static.
12001 (set_main_name): Add 'lang' parameter.
12002 (find_main_name): Update.
12003 (main_language): New function.
12004 (symtab_observer_executable_changed): Update.
12005 * symtab.h (set_main_name): Update.
12006 (language_of_main): Remove.
12007 (main_language): Declare.
12009 2014-01-15 Tom Tromey <tromey@redhat.com>
12011 * symfile.c (init_entry_point_info): Use new "initialized" field.
12013 * objfiles.h (struct entry_point) <initialized>: New field.
12014 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12015 (struct objfile) <ei>: ...here. Remove.
12016 * objfiles.c (entry_point_address_query): Update.
12018 2014-01-15 Tom Tromey <tromey@redhat.com>
12020 * objfiles.c (entry_point_address_query): Relocate entry point
12022 (objfile_relocate1): Do not relocate entry point address.
12023 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12024 <the_bfd_section_index>: New field.
12025 * symfile.c (init_entry_point_info): Find the entry point's
12028 2014-01-15 Tom Tromey <tromey@redhat.com>
12030 * solib-frv.c (enable_break): Use entry_point_address_query.
12032 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12034 * NEWS: Add note on improved process record-replay on
12035 arm*-linux* targets.
12037 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12039 * arm-tdep.c (enum arm_record_result): New enum.
12040 (arm_record_unsupported_insn): New function.
12041 (arm_record_coproc_data_proc): Removed.
12042 (thumb2_record_ld_st_multiple): New function.
12043 (thumb2_record_ld_st_dual_ex_tbb): New function.
12044 (thumb2_record_data_proc_sreg_mimm): New function.
12045 (thumb2_record_ps_dest_generic): New function.
12046 (thumb2_record_branch_misc_cntrl): New function.
12047 (thumb2_record_str_single_data): New function.
12048 (thumb2_record_ld_mem_hints): New function.
12049 (thumb2_record_ld_word): New function.
12050 (thumb2_record_lmul_lmla_div): New function.
12051 (thumb2_record_decode_insn_handler): New function.
12052 (decode_insn): Add thumb32 instruction handlers.
12054 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12056 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12057 (struct arm_linux_record_tdep): Declare.
12058 (arm_canonicalize_syscall): New function.
12059 (arm_all_but_pc_registers_record): New function.
12060 (arm_linux_syscall_record): New function.
12061 (arm_linux_init_abi): Add syscall recording constructs.
12062 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12063 decoding. (arm_record_coproc_data_proc): Update arm syscall
12065 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12066 <arm_syscall_record>: New field.
12067 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12070 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12072 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12073 register for push instruction recording.
12075 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12077 * arm-tdep.c (thumb_record_misc): Update to correct logical
12078 error while recording ldm, ldmia and pop instructions.
12080 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12082 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12084 2014-01-15 Pedro Alves <palves@redhat.com>
12086 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12087 (go32_resume, go32_fetch_registers, store_register)
12088 (go32_store_registers, go32_prepare_to_store)
12089 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12090 (go32_create_inferior, go32_can_run, go32_terminal_init)
12091 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12094 2014-01-15 Tom Tromey <tromey@redhat.com>
12096 * target.h (async_callback_ftype): New typedef.
12097 (struct target_ops) <to_async>: Use it.
12099 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12101 * python/py-value.c (get_field_type): Remove unnecessary curly
12102 braces for single-statement if block.
12104 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12106 * python/py-type.c (convert_field): Add missing empty line
12107 after declarations.
12109 2014-01-14 Doug Evans <dje@google.com>
12111 * symfile.h (expand_symtabs_matching): Renamed from
12112 expand_partial_symbol_names. Update prototype.
12113 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12114 * symfile.c (expand_symtabs_matching): Renamed from
12115 expand_partial_symbol_names. New args file_matcher, kind.
12116 Rename arg fun to symbol_matcher.
12117 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12118 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12119 ada_expand_partial_symbol_name.
12120 (ada_make_symbol_completion_list): Update to call
12121 expand_symtabs_matching.
12122 (ada_add_global_exceptions): Call expand_symtabs_matching.
12123 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12124 call map_symbol_filenames.
12125 * symtab.c (sources_info): Update to call map_symbol_filenames.
12126 (search_symbols): Call expand_symtabs_matching.
12127 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12128 (default_make_symbol_completion_list_break_on): Update to call
12129 expand_symtabs_matching.
12130 (make_source_files_completion_list): Update to call
12131 map_symbol_filenames.
12133 2014-01-14 Doug Evans <dje@google.com>
12135 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12136 (expand_symtabs_symbol_matcher_ftype): New typedef.
12137 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12138 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12139 * symfile.c (expand_partial_symbol_names): Update to use
12140 expand_symtabs_symbol_matcher_ftype.
12141 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12142 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12143 Arg name_matcher renamed to symbol_matcher.
12144 * psymtab.c (recursively_search_psymtabs): Update to use
12145 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12147 (expand_symtabs_matching_via_partial): Update to use
12148 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12149 Arg name_matcher renamed to symbol_matcher.
12151 2014-01-14 Doug Evans <dje@google.com>
12153 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12154 (map_partial_symbol_filenames): Ditto.
12155 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12156 (map_partial_symbol_filenames): Ditto.
12157 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12158 (map_partial_symbol_filenames): Ditto.
12159 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12160 (map_partial_symbol_filenames): Ditto.
12161 * symtab.c: Delete #include "psymtab.h".
12163 2014-01-14 Pedro Alves <palves@redhat.com>
12164 Tom Tromey <tromey@redhat.com>
12166 * infrun.c (use_displaced_stepping): Use find_record_target
12167 instead of RECORD_IS_USED.
12168 (adjust_pc_after_break): Use record_full_is_used instead of
12170 * record-btrace.c (record_btrace_open): Call record_preopen
12171 instead of checking RECORD_IS_USED.
12172 * record-full.c (record_full_shortname)
12173 (record_full_core_shortname): New globals.
12174 (record_full_is_used): New function.
12175 (find_full_open): Call record_preopen instead of checking
12177 (init_record_full_ops): Set the target's shortname to
12178 record_full_shortname.
12179 (init_record_full_core_ops): Set the target's shortname to
12180 record_full_core_shortname.
12181 * record-full.h (record_full_is_used): Declare.
12182 * record.c (find_record_target): Make extern.
12183 (record_preopen): New function.
12184 * record.h (RECORD_IS_USED): Delete macro.
12185 (find_record_target, record_preopen): Declare functions.
12187 2014-01-14 Yao Qi <yao@codesourcery.com>
12189 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12190 'len''s type to ULONGEST.
12191 (core_xfer_shared_libraries_aix): Likewise.
12192 * gdbarch.c, gdbarch.h: Regenerated.
12193 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12194 Change type of 'len' to ULONGEST.
12195 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12196 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12198 2014-01-14 Yao Qi <yao@codesourcery.com>
12200 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12201 type of 'len' to ULONGEST.
12202 (linux_xfer_osdata_processgroups): Likewise.
12203 (linux_xfer_osdata_threads): Likewise.
12204 (linux_xfer_osdata_fds): Likewise.
12205 (linux_xfer_osdata_isockets): Likewise.
12206 (linux_xfer_osdata_shm): Likewise.
12207 (linux_xfer_osdata_sem): Likewise.
12208 (linux_xfer_osdata_msg): Likewise.
12209 (linux_common_xfer_osdata): Likewise.
12210 (struct osdata_type) <getter>: Likewise.
12211 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12214 2014-01-14 Yao Qi <yao@codesourcery.com>
12216 * target.h (target_xfer_partial_ftype): Update.
12217 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12219 * aix-thread.c (aix_thread_xfer_partial): Change type of
12220 argument 'len' to ULONGEST.
12221 * auxv.c (procfs_xfer_auxv): Likewise.
12222 (ld_so_xfer_auxv): Likewise.
12223 (memory_xfer_auxv): Likewise.
12224 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12225 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12226 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12227 * corelow.c (core_xfer_partial): Likewise.
12228 * ctf.c (ctf_xfer_partial): Likewise.
12229 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12231 (darwin_read_dyld_info): Likewise.
12232 (darwin_xfer_partial): Likewise.
12233 * exec.c (section_table_xfer_memory_partial): Likewise.
12234 (exec_xfer_partial): Likewise.
12235 * exec.h (section_table_xfer_memory_partial): Update
12237 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12238 instead of plongest.
12239 (gnu_xfer_partial): Likewise.
12240 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12241 (ia64_hpux_xfer_solib_got): Likewise.
12242 (ia64_hpux_xfer_partial): Likewise.
12243 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12244 * inf-ptrace.c (inf_ptrace_xfer_partial):
12245 * inf-ttrace.c (inf_ttrace_xfer_partial):
12246 * linux-nat.c (linux_xfer_siginfo): Likewise.
12247 (linux_nat_xfer_partial): Likewise.
12248 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12249 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12250 * monitor.c (monitor_xfer_memory): Likewise.
12251 (monitor_xfer_partial): Likewise.
12252 * procfs.c (procfs_xfer_partial): Likewise.
12253 * record-full.c (record_full_xfer_partial): Likewise.
12254 (record_full_core_xfer_partial): Likewise.
12255 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12256 instead of plongest.
12257 (gdbsim_xfer_partial): Likewise.
12258 * remote.c (remote_xfer_partial): Likewise.
12259 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12260 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12262 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12263 (rs6000_xfer_shared_libraries): Likewise.
12264 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12265 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12266 (sparc_xfer_partial): Likewise.
12267 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12268 (spu_xfer_partial): Likewise.
12269 * spu-multiarch.c (spu_xfer_partial): Likewise.
12270 * target.c (target_read_live_memory): Likewise.
12271 (memory_xfer_live_readonly_partial): Likewise.
12272 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12273 (target_xfer_partial, default_xfer_partial): Likewise.
12274 (current_xfer_partial): Likewise.
12275 * tracepoint.c (tfile_xfer_partial): Likewise.
12276 * windows-nat.c (windows_xfer_memory): Likewise. Call
12277 pulongest instead of plongest.
12278 (windows_xfer_partial): Likewise.
12279 (windows_xfer_shared_libraries): Likewise.
12281 2014-01-14 Yao Qi <yao@codesourcery.com>
12283 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12284 target_xfer_partial_ftype.
12286 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12290 * valops.c (value_struct_elt_bitpos): New function
12291 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12292 object to 'None' if the field name is an empty string ("").
12293 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12294 attribute to look for a field when 'name' is 'None'.
12295 (get_field_type): New function
12297 2014-01-13 Doug Evans <dje@google.com>
12300 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12301 (try_open_dwop_file): Ditto.
12302 * gdb_bfd.c: #include "vec.h".
12303 (bfdp): New typedef.
12304 (struct gdb_bfd_data): New member included_bfds.
12305 (gdb_bfd_unref): Unref all included bfds.
12306 (gdb_bfd_record_inclusion): New function.
12307 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12309 2014-01-13 Tom Tromey <tromey@redhat.com>
12311 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12313 2014-01-13 Tom Tromey <tromey@redhat.com>
12315 * defs.h (use_windows): Remove.
12316 * gdb.c (main): Update.
12317 * main.c (captured_main, gdb_main): Update.
12318 * main.h (struct captured_main_args) <use_windows>: Remove.
12319 * top.c (use_windows): Remove.
12321 2014-01-13 Tom Tromey <tromey@redhat.com>
12323 * defs.h (deprecated_flush_hook): Remove.
12325 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12328 * linux-thread-db.c (try_thread_db_load): Add parameter
12329 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12330 (try_thread_db_load_from_pdir_1): Move it there from here.
12331 (try_thread_db_load_from_sdir): Update caller.
12332 (try_thread_db_load_from_dir): Move it there from here.
12334 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12336 * regformats/regdat.sh: Always rewrite the register file.
12338 2014-01-13 Pedro Alves <palves@redhat.com>
12340 * Makefile.in (CHECK_HEADERS): New variable.
12341 (check-headers:): New rule.
12343 2014-01-13 Tom Tromey <tromey@redhat.com>
12345 * cli/cli-setshow.c (do_set_command): Update.
12346 * defs.h (deprecated_set_hook): Remove.
12347 * top.c (deprecated_set_hook): Remove.
12349 2014-01-13 Pedro Alves <palves@redhat.com>
12351 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12352 the tracepoint if the PC is a pseudo-register.
12354 2014-01-13 Tom Tromey <tromey@redhat.com>
12356 * defs.h (XCALLOC): Remove.
12357 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12358 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12359 * dwarf2loc.c (allocate_piece_closure): Likewise.
12360 * elfread.c (elf_symfile_segments): Likewise.
12361 (elf_symfile_segments): Likewise.
12362 * gdbtypes.c (copy_type_recursive): Likewise.
12363 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12364 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12365 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12367 * mt-tdep.c (mt_gdbarch_init): Likewise.
12368 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12370 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12371 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12372 * registry.c (registry_alloc_data): Likewise.
12373 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12374 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12375 * serial.c (serial_fdopen_ops): Likewise.
12376 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12378 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12379 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12382 2014-01-13 Tom Tromey <tromey@redhat.com>
12384 * defs.h (XMALLOC): Remove.
12385 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12386 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12387 * cli-out.c (struct ui_out *): Likewise.
12388 * cli/cli-dump.c (add_dump_command): Likewise.
12389 (add_dump_command): Likewise.
12390 * complaints.c (get_complaints): Likewise.
12391 (find_complaint): Likewise.
12392 * dwarf2-frame.c (execute_cfa_program): Likewise.
12393 * dwarf2read.c (abbrev_table_read_table): Likewise.
12394 * gdbarch.sh: Likewise.
12395 * gdbarch.c: Rebuild.
12396 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12397 * interps.c (interp_new): Likewise.
12398 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12399 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12400 * mi/mi-console.c (mi_console_file_new): Likewise.
12401 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12402 * mi/mi-out.c (mi_out_new): Likewise.
12403 * mi/mi-parse.c (mi_parse): Likewise.
12404 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12405 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12406 * observer.c (xalloc_observer_list_node): Likewise.
12407 * regcache.c (regcache_xmalloc_1): Likewise.
12408 * reggroups.c (reggroup_new): Likewise.
12409 (_initialize_reggroup): Likewise.
12410 * registry.c (register_data_with_cleanup): Likewise.
12411 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12412 * ser-base.c (serial_ttystate): Likewise.
12413 * ser-mingw.c (make_pipe_state): Likewise.
12414 * ser-pipe.c (pipe_open): Likewise.
12415 * serial.c (serial_open): Likewise.
12416 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12417 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12418 (tui_alloc_win_info): Likewise.
12419 (tui_add_content_elements): Likewise.
12420 * tui/tui-file.c (tui_file_new): Likewise.
12421 * tui/tui-out.c (tui_out_new): Likewise.
12422 * ui-file.c (mem_file_new): Likewise.
12423 * ui-out.c (push_level): Likewise.
12424 (make_cleanup_ui_out_end): Likewise.
12425 (append_header_to_list): Likewise.
12426 (ui_out_new): Likewise.
12427 * user-regs.c (user_reg_add_builtin): Likewise.
12429 2014-01-13 Tom Tromey <tromey@redhat.com>
12431 * defs.h (XZALLOC): Remove.
12432 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12433 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12434 (get_ada_tasks_inferior_data): Likewise.
12435 * auto-load.c (get_auto_load_pspace_data): Likewise.
12436 * auxv.c (get_auxv_inferior_data): Likewise.
12437 * bfd-target.c (target_bfd_reopen): Likewise.
12438 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12439 (deprecated_insert_raw_breakpoint): Likewise.
12440 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12441 * corelow.c (core_open): Likewise.
12442 * darwin-nat.c (darwin_check_new_threads): Likewise.
12443 (darwin_attach_pid): Likewise.
12444 * dummy-frame.c (dummy_frame_push): Likewise.
12445 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12446 * dwarf2loc.c (allocate_piece_closure): Likewise.
12447 * elfread.c (elf_symfile_segments): Likewise.
12448 * eval.c (ptrmath_type_p): Likewise.
12449 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12450 * gdbtypes.c (alloc_type_arch): Likewise.
12451 (alloc_type_instance): Likewise.
12452 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12453 * inf-child.c (inf_child_can_use_agent): Likewise.
12454 * inflow.c (get_inflow_inferior_data): Likewise.
12455 * infrun.c (save_infcall_suspend_state): Likewise.
12456 * jit.c (jit_reader_load): Likewise.
12457 (get_jit_objfile_data): Likewise.
12458 (get_jit_program_space_data): Likewise.
12459 (jit_object_open_impl): Likewise.
12460 (jit_symtab_open_impl): Likewise.
12461 (jit_block_open_impl): Likewise.
12462 (jit_frame_sniffer): Likewise.
12463 * linux-fork.c (add_fork): Likewise.
12464 * maint.c (make_command_stats_cleanup): Likewise.
12465 * objfiles.c (get_objfile_pspace_data): Likewise.
12466 * opencl-lang.c (struct lval_closure): Likewise.
12467 * osdata.c (osdata_start_osdata): Likewise.
12468 * progspace.c (new_address_space): Likewise.
12469 (add_program_space): Likewise.
12470 * remote-sim.c (get_sim_inferior_data): Likewise.
12471 * sh-tdep.c (sh_gdbarch_init): Likewise.
12472 * skip.c (Ignore): Likewise.
12473 (skip_delete_command): Likewise.
12474 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12475 (library_list_start_library): Likewise.
12476 (solib_aix_current_sos): Likewise.
12477 * solib-darwin.c (get_darwin_info): Likewise.
12478 (darwin_current_sos): Likewise.
12479 * solib-dsbt.c (get_dsbt_info): Likewise.
12480 * solib-ia64-hpux.c (new_so_list): Likewise.
12481 (ia64_hpux_get_solib_linkage_addr): Likewise.
12482 * solib-spu.c (append_ocl_sos): Likewise.
12483 (spu_current_sos): Likewise.
12484 * solib-svr4.c (get_svr4_info): Likewise.
12485 (svr4_keep_data_in_core): Likewise.
12486 (library_list_start_library): Likewise.
12487 (svr4_default_sos): Likewise.
12488 (svr4_read_so_list): Likewise.
12489 * solib-target.c (library_list_start_library): Likewise.
12490 (solib_target_current_sos): Likewise.
12491 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12492 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12493 * symfile.c (default_symfile_segments): Likewise.
12494 * target-descriptions.c (tdesc_data_init): Likewise.
12495 (tdesc_create_reg): Likewise.
12496 (struct tdesc_type *): Likewise.
12497 (tdesc_create_vector): Likewise.
12498 (tdesc_set_struct_size): Likewise.
12499 (struct tdesc_type *): Likewise.
12500 (tdesc_free_feature): Likewise.
12501 (tdesc_create_feature): Likewise.
12502 * windows-nat.c (windows_add_thread): Likewise.
12503 (windows_make_so): Likewise.
12504 * xml-support.c (gdb_xml_body_text): Likewise.
12505 (gdb_xml_create_parser_and_cleanup): Likewise.
12506 (xml_process_xincludes): Likewise.
12507 * xml-syscall.c (allocate_syscalls_info): Likewise.
12508 (syscall_create_syscall_desc): Likewise.
12510 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12512 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12513 function, with code from i386_stap_parse_special_token.
12514 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12515 (i386_stap_parse_special_token): Move code to the two functions
12516 above; simplify it.
12518 2014-01-09 Pedro Alves <palves@redhat.com>
12519 Hui Zhu <hui@codesourcery.com>
12522 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12523 bp_err_string. Don't mark the location shlib_disabled if the
12524 error thrown wasn't a generic or memory error. Catch errors
12525 thrown while inserting breakpoints in overlayed code. Output
12526 error message of software breakpoints.
12527 * remote.c (remote_insert_breakpoint): If this breakpoint has
12528 target-side commands but this stub doesn't support Z0 packets,
12529 throw NOT_SUPPORTED_ERROR error.
12530 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12531 * target.h (target_insert_breakpoint): Extend comment.
12532 (target_insert_hw_breakpoint): Add comment.
12534 2014-01-08 Pedro Alves <palves@redhat.com>
12536 * remote.c (remote_add_thread): Add threads silently if starting
12538 (remote_notice_new_inferior): If in all-stop, and starting up,
12539 don't call notice_new_inferior.
12540 (get_current_thread): New function, factored out from ...
12541 (add_current_inferior_and_thread): ... this. Adjust.
12542 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12543 found any thread, then select the remote's current thread as GDB's
12544 current thread too.
12546 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12548 * NEWS: Create a new section for the next release branch.
12549 Rename the section of the current branch, now that it has
12552 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12554 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12555 * version.in: Bump version to 7.7.50.DATE-cvs.
12557 2014-01-08 Yao Qi <yao@codesourcery.com>
12559 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12560 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12561 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12563 2014-01-08 Yao Qi <yao@codesourcery.com>
12565 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12566 return value of bfd_get_filename to symbol_file_add_from_bfd.
12568 2014-01-08 Pierre Muller <muller@sourceware.org>
12571 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12572 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12573 to prim_record_mininal_symbol_and_info.
12574 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12575 in call to prim_record_minimal_symbol_and_info.
12576 (read_pe_exported_syms): Set index field of section_data.
12578 2014-01-07 Andrew Pinski <apinski@cavium.com>
12580 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12581 * features/aarch64.c: Regenerate.
12583 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12585 * target.c (return_null): Define.
12586 (update_current_target): Use it instead of return_zero for
12587 functions that return a pointer.
12589 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12591 * source.c (add_path): Fix check for duplicated paths in the previously
12594 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12596 * ada-lang.c: Remove duplicated include statements.
12597 * alphabsd-nat.c: Ditto.
12598 * amd64-darwin-tdep.c: Ditto.
12599 * amd64fbsd-nat.c: Ditto.
12600 * auto-load.c: Ditto.
12602 * breakpoint.c: Ditto.
12603 * dbxread.c: Ditto.
12604 * fork-child.c: Ditto.
12605 * gdb_usleep.c: Ditto.
12606 * i386-darwin-tdep.c: Ditto.
12607 * i386fbsd-nat.c: Ditto.
12609 * inferior.c: Ditto.
12610 * jv-lang.c: Ditto.
12611 * linux-nat.c: Ditto.
12612 * linux-tdep.c: Ditto.
12613 * m68kbsd-nat.c: Ditto.
12614 * m68klinux-nat.c: Ditto.
12615 * microblaze-tdep.c: Ditto.
12616 * mips-linux-tdep.c: Ditto.
12617 * mn10300-tdep.c: Ditto.
12618 * nto-tdep.c: Ditto.
12619 * opencl-lang.c: Ditto.
12621 * printcmd.c: Ditto.
12622 * regcache.c: Ditto.
12623 * remote-m32r-sdi.c: Ditto.
12625 * symfile.c: Ditto.
12627 * tilegx-linux-nat.c: Ditto.
12628 * tilegx-tdep.c: Ditto.
12629 * tracepoint.c: Ditto.
12631 * vaxbsd-nat.c: Ditto.
12632 * windows-nat.c: Ditto.
12633 * xtensa-tdep.c: Ditto.
12635 2014-01-07 Yao Qi <yao@codesourcery.com>
12637 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12639 2014-01-07 Yao Qi <yao@codesourcery.com>
12640 Joel Brobecker <brobecker@adacore.com>
12642 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12643 (pdc_write_regs): Likewise.
12644 (fetch_regs_kernel_thread): Likewise.
12645 (store_regs_kernel_thread): Likewise.
12647 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12649 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12650 tagged type objects to their actual type.
12652 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12654 * ada-valprint.c (print_field_values): Add "language" parameter.
12655 Update calls to print_field_values and print_variant_part.
12656 Pass new parameter "language" in call to val_print instead
12657 of "current_language". Replace call to ada_val_print by call
12659 (print_variant_part): Add "language" parameter.
12660 (ada_val_print_struct_union): Update call to print_field_values.
12662 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12664 * ada-valprint.c (ui_memcpy): Delete.
12665 (ada_print_floating): Update documentation. Add empty line
12666 between between function documentation and implementation.
12667 Delete variable "buffer". Use ui_file_xstrdup in place of
12668 ui_file_put. Minor adjustments following this change.
12670 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12672 * ada-valprint.c (ada_val_print_string): New function,
12673 extracted from ada_val_print_array.
12674 (ada_val_print_array): Replace extracted code by call
12675 to ada_val_print_string followed by a return. Move
12676 "else" branch to the function's top block.
12678 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12680 * ada-valprint.c (ada_val_print_array): Move implementation
12681 down. Rename parameter "offset" and "val" into "offset_aligned"
12682 and "original_value" respectively. Add parameter "offset".
12684 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12686 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12687 re-organizing the code. Change the "???" message printed
12688 when target type is a TYPE_CODE_UNDEF into
12689 "<ref to undefined type>".
12691 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12693 * ada-valprint.c (print_record): Delete, implementation inlined...
12694 (ada_val_print_struct_union): ... here. Remove call to
12695 ada_check_typedef in inlined implementation.
12697 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12699 * ada-valprint.c (ada_val_print_gnat_array): New function,
12700 extracted from ada_val_print_1;
12701 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12702 (ada_val_print_flt, ada_val_print_struct_union)
12703 (ada_val_print_ref): Likewise.
12704 (ada_val_print_1): Delete variables i and elttype.
12705 Replace extracted-out code by call to corresponding
12708 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12710 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12712 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12714 * ada-valprint.c (ada_val_print_1): Replace calls to
12715 ada_val_print_1 by calls to val_print.
12717 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12719 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12720 Update calls to self accordingly. Replace calls to c_val_print
12721 by calls to val_print.
12723 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12725 * ada-valprint.c (print_record): Delete declaration.
12726 (adjust_type_signedness, ada_val_print_1): Likewise.
12727 (ada_val_print): Move function implementation down.
12728 (print_variant_part, print_field_values, print_record):
12729 Move function implementation up.
12731 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12733 * python/py-type.c (typy_get_name): New function.
12734 (type_object_getset): Add entry for attribute "name".
12735 * NEWS: Add entry mentioning this new attribute.
12737 2014-01-07 Yao Qi <yao@codesourcery.com>
12739 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12742 2014-01-07 Yao Qi <yao@codesourcery.com>
12744 * gnu-nat.c (info_port_rights): Add qualifier const to
12747 2014-01-07 Yao Qi <yao@codesourcery.com>
12749 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12751 2014-01-07 Yao Qi <yao@codesourcery.com>
12753 * gnu-nat.c (make_inf) Update declaration.
12754 (make_inf): Make it static.
12755 (inf_set_traced): Likewise.
12756 (inf_port_to_thread, inf_task_died_status): Likewise.
12758 2014-01-07 Yao Qi <yao@codesourcery.com>
12760 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12762 2014-01-07 Yao Qi <yao@codesourcery.com>
12764 * gnu-nat.c (_initialize_gnu_nat): Declare.
12766 2014-01-07 Yao Qi <yao@codesourcery.com>
12768 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12770 (struct gdbarch_info) <byte_order>: Change type to
12772 <byte_order_for_code>: Likewise.
12773 * gdbarch.c, gdbarch.h: Regenerated.
12775 2014-01-06 Sasha Smundak <asmundak@google.com>
12777 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12779 2014-01-06 Tom Tromey <tromey@redhat.com>
12781 * doublest.c (convert_doublest_to_floatformat): Use const, not
12783 * somread.c (som_symtab_read): Likewise.
12785 2014-01-07 Hui Zhu <hui@codesourcery.com>
12787 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12788 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12789 (gdb_bfd_fopen): Ditto.
12790 (gdb_bfd_openr): Ditto.
12791 (gdb_bfd_openw): Ditto.
12792 (gdb_bfd_openr_iovec): Ditto.
12793 (gdb_bfd_fdopenr): Ditto.
12794 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12795 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12797 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12799 * symfile-mem.c (symbol_file_add_from_memory): Removed
12800 gdb_bfd_stash_filename.
12802 2014-01-03 Doug Evans <dje@google.com>
12804 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12807 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12809 Update year range in copyright notice of all files.
12811 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12813 * top.c (print_gdb_version): Set copyright year to 2014.
12815 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12817 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12819 For older changes see ChangeLog-2013.
12825 version-control: never