1 2014-09-12 Gary Benson <gbenson@redhat.com>
3 * nat/linux-btrace.c: Include common-defs.h.
4 Don't include defs.h, server.h or gdbthread.h.
5 * nat/linux-btrace.h (struct target_ops): New forward declaration.
7 2014-09-12 Gary Benson <gbenson@redhat.com>
9 * common/agent.c: Include common-defs.h.
10 Don't include defs.h or server.h.
11 * common/buffer.c: Likewise.
12 * common/common-debug.c: Likewise.
13 * common/common-utils.c: Likewise.
14 * common/errors.c: Likewise.
15 * common/filestuff.c: Likewise.
16 * common/format.c: Likewise.
17 * common/gdb_vecs.c: Likewise.
18 * common/print-utils.c: Likewise.
19 * common/ptid.c: Likewise.
20 * common/rsp-low.c: Likewise.
21 * common/signals.c: Likewise.
22 * common/vec.c: Likewise.
23 * common/xml-utils.c: Likewise.
24 * nat/linux-osdata.c: Likewise.
25 * nat/linux-procfs.c: Likewise.
26 * nat/linux-ptrace.c: Likewise.
27 * nat/mips-linux-watch.c: Likewise.
28 * target/waitstatus.c: Likewise.
30 2014-09-12 Tom Tromey <tromey@redhat.com>
31 Gary Benson <gbenson@redhat.com>
33 * common/common-regcache.h: New file.
34 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
35 * regcache.h: Include common-regcache.h.
36 (regcache_read_pc): Don't declare.
37 * regcache.c (get_thread_regcache_for_ptid): New function.
38 * nat/linux-btrace.c: Don't include regcache.h.
39 Include common-regcache.h.
40 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
42 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
44 * regcache.h (struct regset): Declare.
46 2014-09-11 Pedro Alves <palves@redhat.com>
49 * main.c: Include "infrun.h".
50 (catch_command_errors, catch_command_errors_const): Wait for the
51 foreground command to complete.
52 * top.c (maybe_wait_sync_command_done): New function, factored out
54 (maybe_wait_sync_command_done): ... here.
55 * top.h (maybe_wait_sync_command_done): New declaration.
57 2014-09-11 Tom Tromey <tromey@redhat.com>
58 Gary Benson <gbenson@redhat.com>
60 * common/symbol.h: New file.
61 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
62 * minsyms.c (find_minimal_symbol_address): New function.
63 * common/agent.c: Include common/symbol.h.
64 [!GDBSERVER]: Don't include objfiles.h.
65 (agent_look_up_symbols): Use find_minimal_symbol_address.
67 2014-09-11 Gary Benson <gbenson@redhat.com>
69 * target/target.h (target_stop_ptid, target_continue_ptid):
71 * target.c (target_stop_ptid, target_continue_ptid): New
73 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
74 (agent_run_command): Always use target_stop_ptid and
77 2014-09-11 Tom Tromey <tromey@redhat.com>
78 Gary Benson <gbenson@redhat.com>
80 * target/target.h: New file.
81 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
82 * target.h: Include target/target.h.
83 (target_read_memory, target_write_memory): Don't declare.
84 * target.c (target_read_uint32): New function.
85 * common/agent.c: Include target/target.h.
86 [!GDBSERVER]: Don't include target.h.
87 (helper_thread_id): Type changed to uint32_t.
88 (agent_get_helper_thread_id): Use target_read_uint32.
89 (agent_run_command): Always use target_read_memory and
91 (agent_capability): Type changed to uint32_t.
92 (agent_capability_check): Use target_read_uint32.
94 2014-09-11 Gary Benson <gbenson@redhat.com>
96 * common/common-debug.h (show_debug_regs): Declare.
97 * common/common-debug.c (show_debug_regs): Define.
98 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
99 all uses with show_debug_regs. Replace all uses that considered
100 debug_hw_points as a multi-value integer with straight boolean
102 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
103 with show_debug_regs.
104 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
105 all uses with show_debug_regs.
106 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
107 uses with show_debug_regs.
109 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
111 * findvar.c (address_from_register): Handle targets requiring
112 a special conversion routine even for plain pointer types.
114 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
116 * rs6000-nat.c (exec_one_dummy_insn): Remove.
117 (store_register): Do not call exec_one_dummy_insn.
119 2014-09-10 Joel Brobecker <brobecker@adacore.com>
121 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
122 dereference it first. Use value_enclosing_type instead of
124 (ada_array_length): Likewise.
126 2014-09-10 Joel Brobecker <brobecker@adacore.com>
128 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
129 Adjust function implementation and documentation accordingly.
130 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
131 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
132 Update call to ada_value_ptr_subscript.
134 2014-09-10 Joel Brobecker <brobecker@adacore.com>
136 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
137 instead of VAL's type.
139 2014-09-10 Joel Brobecker <brobecker@adacore.com>
141 * amd64-linux-nat.c: Add <sys/uio.h> #include.
143 2014-09-09 Doug Evans <xdje42@gmail.com>
146 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
147 last parameter to pkg-config, not first.
148 * configure.ac: Pass --with-guile provided pkg-config path to
149 GDB_GUILE_PROGRAM_NAMES.
150 * configure: Regenerate.
152 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
154 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
157 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
159 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
160 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
161 the list of sections determining GDB_OSABI_IRIX.
163 2014-09-09 James Hogan <james.hogan@imgtec.com>
165 * MAINTAINERS (Write After Approval): Add "James Hogan".
167 2014-09-09 James Hogan <james.hogan@imgtec.com>
169 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
171 2014-09-09 Joel Brobecker <brobecker@adacore.com>
173 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
175 2014-09-08 Doug Evans <xdje42@gmail.com>
178 * guile.c: #include <signal.h>.
179 (_initialize_guile): Block SIGCHLD while initializing Guile.
181 Replaces the following, which is reverted.
183 2014-07-26 Doug Evans <xdje42@gmail.com>
186 * configure.ac: Add check for header gc/gc.h.
187 Add check for function setenv.
188 * configure: Regenerate.
189 * config.in: Regenerate.
190 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
192 2014-09-08 Doug Evans <xdje42@gmail.com>
194 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
195 with named constant. Fix style of pointer comparison.
196 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
198 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
201 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
202 decide whether we display the command on "show user".
203 * cli/cli-script.c (show_user_1): Only verify cmdlines after
204 printing command name.
205 * cli/cli-decode.h (cli_user_command_p): Declare new function.
206 * cli/cli-decode.c (cli_user_command_p): Create helper function
207 to verify whether cmd_list_element is a user-defined command.
209 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
212 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
213 Fix goto out of TRY_CATCH.
215 2014-09-06 Doug Evans <xdje42@gmail.com>
216 Tom Tromey <tromey@redhat.com>
219 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
220 $_any_caller_matches.
221 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
222 * python/lib/gdb/function/caller_is.py: New file.
224 2014-09-06 Doug Evans <xdje42@gmail.com>
226 * infcmd.c (program_info): Fix typo.
228 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
231 * stap-probe.c (stap_parse_single_operand): Delete unused variable
232 'number'. New variable 'has_digit'. Rewrite code to deal with
233 subexpressions on SDT probes.
235 2014-09-04 Pedro Alves <palves@redhat.com>
237 * c-exp.y (parse_number): Skip handling base-switching prefixes if
238 the input is only one character long.
240 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
243 * f-valprint.c (f_val_print): Specify the correct print option to
244 use when printing integer values.
246 2014-09-04 Gary Benson <gbenson@redhat.com>
248 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
249 Remove code to cope with LWPs wrapped as PIDs.
250 Add assertions to ensure no wrapped LWPs are passed.
252 2014-09-04 Pedro Alves <palves@redhat.com>
254 * value.c (value_ranges_copy_adjusted): New function, factored out
256 (value_contents_copy_raw): ... here.
257 (unpack_value_bits_as_long_1): Rename back to ...
258 (unpack_bits_as_long): ... this. Remove 'original_value' and
259 'result' parameters. Change return type to LONGEST.
260 (unpack_value_bits_as_long): Delete.
261 (unpack_value_field_as_long_1): Delete.
262 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
263 (unpack_value_bitfield): New function.
264 (value_field_bitfield): Reimplement using unpack_value_bitfield.
265 (value_fetch_lazy): Use unpack_value_bitfield.
266 * value.h (unpack_value_bits_as_long): Delete declaration.
268 2014-09-03 Sasha Smundak <asmundak@google.com>
270 * python/py-frame.c (frapy_read_register): New function.
272 2014-09-03 James Hogan <james.hogan@imgtec.com>
274 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
275 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
277 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
280 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
282 (add_cmd): Set "completer_handle_brkchars" to NULL.
283 * cli/cli-decode.h (struct cmd_list_element)
284 <completer_handle_brkchars>: New field.
285 * command.h (completer_ftype_void): New typedef.
286 (set_cmd_completer_handle_brkchars): New prototype.
287 * completer.c (set_gdb_completion_word_break_characters): New
289 (complete_line_internal): Call "completer_handle_brkchars"
290 callback from command.
291 * completer.h: Include "command.h".
292 (set_gdb_completion_word_break_characters): New prototype.
293 * python/py-cmd.c (cmdpy_completer_helper): New function.
294 (cmdpy_completer_handle_brkchars): New function.
295 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
296 (cmdpy_init): Set completer_handle_brkchars to
297 cmdpy_completer_handle_brkchars.
299 2014-09-03 Gary Benson <gbenson@redhat.com>
301 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
302 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
303 Loop conditions changed to equivalent form.
304 (struct x86_debug_reg_state): Updated dr_ref_count comment.
305 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
306 ALL_DEBUG_ADDRESS_REGISTERS.
308 2014-09-03 Joel Brobecker <brobecker@adacore.com>
310 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
313 2014-09-02 Doug Evans <dje@google.com>
315 * typeprint.c (find_global_typedef): Fix comment.
317 2014-09-02 Gary Benson <gbenson@redhat.com>
319 * i386-nat.h: Renamed as...
320 * x86-nat.h: New file. All type, function and variable name
321 prefixes changed from "i386_" to "x86_". All references updated.
322 * i386-nat.c: Renamed as...
323 * x86-nat.c: New file. All type, function and variable name
324 prefixes changed from "i386_" to "x86_". All references updated.
325 * common/i386-xstate.h: Renamed as...
326 * common/x86-xstate.h: New file. All type, function and variable
327 name prefixes changed from "i386_" to "x86_". All references
329 * nat/i386-cpuid.h: Renamed as...
330 * nat/x86-cpuid.h: New file. All type, function and variable name
331 prefixes changed from "i386_" to "x86_". All references updated.
332 * nat/i386-gcc-cpuid.h: Renamed as...
333 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
334 name prefixes changed from "i386_" to "x86_". All references
336 * nat/i386-dregs.h: Renamed as...
337 * nat/x86-dregs.h: New file. All type, function and variable name
338 prefixes changed from "i386_" to "x86_". All references updated.
339 * nat/i386-dregs.c: Renamed as...
340 * nat/x86-dregs.c: New file. All type, function and variable name
341 prefixes changed from "i386_" to "x86_". All references updated.
343 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
345 * varobj.c (_initialize_varobj): Move to the end of file.
347 2014-08-29 Gary Benson <gbenson@redhat.com>
349 * common/common-exceptions.h: New file.
350 * common/common-exceptions.c: Likewise.
351 * Makefile.in (SFILES): Add common/common-exceptions.c.
352 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
353 (COMMON_OBS): Add common-exceptions.o.
354 (common-exceptions.o): New rule.
355 * exceptions.h (common-exceptions.h): Include.
356 (gdb_setjmp.h): Do not include.
357 (return_reason): Moved to common-exceptions.h.
358 (enum return_reason): Likewise.
359 (RETURN_MASK): Likewise.
360 (typedef return_mask): Likewise.
361 (enum errors): Likewise.
362 (struct gdb_exception): Likewise.
363 (exceptions_state_mc_init): Likewise.
364 (exceptions_state_mc_action_iter): Likewise.
365 (exceptions_state_mc_action_iter_1): Likewise.
366 (TRY_CATCH): Likewise.
367 (throw_exception): Likewise.
368 (throw_verror): Likewise.
369 (throw_vquit): Likewise.
370 (throw_error): Likewise.
371 (throw_quit): Likewise.
372 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
373 (enum catcher_action): Likewise.
374 (struct catcher): Likewise.
375 (current_catcher): Likewise.
376 (catcher_list_size): Likewise.
377 (exceptions_state_mc_init): Likewise.
378 (catcher_pop): Likewise.
379 (exceptions_state_mc): Likewise.
380 (exceptions_state_mc_action_iter): Likewise.
381 (exceptions_state_mc_action_iter_1): Likewise.
382 (throw_exception): Likewise.
383 (exception_messages): Likewise.
384 (exception_messages_size): Likewise.
385 (throw_it): Likewise.
386 (throw_verror): Likewise.
387 (throw_vquit): Likewise.
388 (throw_error): Likewise.
389 (throw_quit): Likewise.
390 (prepare_to_throw_exception): New function.
392 2014-08-29 Gary Benson <gbenson@redhat.com>
394 * common/gdb_setjmp.h: New file.
395 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
396 * configure.ac: Move sigsetjmp check...
397 * common/common.m4: ...here.
398 * configure: Regenerate.
399 * cp-support.c (SIGJMP_BUF): Delete.
400 (SIGSETJMP): Likewise.
401 (SIGLONGJMP): Likewise.
402 * exceptions.h (gdb_setjmp.h): Include.
403 (setjmp.h): Do not include.
404 (EXCEPTIONS_SIGJMP_BUF): Delete.
405 (EXCEPTIONS_SIGSETJMP): Likewise.
406 (EXCEPTIONS_SIGLONGJMP): Likewise.
407 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
409 * exceptions.c: Likewise.
411 2014-08-29 Gary Benson <gbenson@redhat.com>
413 * cleanups.h: Moved to...
414 * common/cleanups.h: New file.
415 * cleanups.c: Moved to...
416 * common/cleanups.c: New file. Include common-defs.h and
417 cleanups.h. Do not include defs.h.
418 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
419 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
420 (cleanups.o): New rule.
422 2014-08-29 Gary Benson <gbenson@redhat.com>
424 * common/errors.h (internal_warning): New declaration.
425 (internal_vwarning): Likewise.
426 * common/errors.c (internal_warning): New function.
427 * utils.h (internal_warning): Don't declare.
428 (internal_vwarning): Likewise.
429 * utils.c (internal_warning): Removed.
431 2014-08-29 Gary Benson <gbenson@redhat.com>
433 * main.c (captured_main): Use warning during startup.
434 Prefix startup warning messages with command name.
436 2014-08-29 Gary Benson <gbenson@redhat.com>
438 * main.c (captured_main): Handle usage errors with error.
440 2014-08-29 Gary Benson <gbenson@redhat.com>
442 * go32-nat.c (go32_create_inferior): Replace a fprintf/
443 exit pair with a call to error. Wrap the message with _().
445 2014-08-29 Gary Benson <gbenson@redhat.com>
447 * main.c (captured_main): Replace a fprintf/exit
448 pair with a call to error. Wrap the message with _().
450 2014-08-29 Gary Benson <gbenson@redhat.com>
452 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
453 pairs with calls to error. Wrap the message with _().
455 2014-08-29 Gary Benson <gbenson@redhat.com>
457 * utils.c (vwarning): Protect calls to target_terminal_ours
460 2014-08-29 Gary Benson <gbenson@redhat.com>
462 * exceptions.c (print_flush): Protect calls to
463 target_terminal_ours and wrap_here.
465 2014-08-29 Gary Benson <gbenson@redhat.com>
467 * utils.h (filtered_printing_initialized): New declaration.
468 * utils.c (abort_with_message): New function.
469 (internal_vproblem): Use abort_with_message for first level
470 recursive internal problems, and if gdb_stderr is not set up.
471 Protect calls to target_terminal_ours, begin_line and query.
473 2014-08-28 Doug Evans <dje@google.com>
475 * symtab.c (in_prologue): Move definition to better spot.
476 (skip_prologue_using_sal): Ditto.
478 2014-08-28 Doug Evans <dje@google.com>
480 * symtab.c (find_function_start_sal): Move definition to better spot.
482 2014-08-28 Yao Qi <yao@codesourcery.com>
484 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
485 found_stack_adjust in forward scan. Remove condition check
486 on found_stack_adjust which is always true. Indent the code.
488 2014-08-28 Yao Qi <yao@codesourcery.com>
490 * dwarf2read.c (dwarf_decode_lines): Update declaration.
491 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
492 (dwarf_decode_lines): Remove argument
493 want_line_info. Remove condition check on want_line_info.
496 2014-08-27 Doug Evans <dje@google.com>
498 * dwarf2read.c (dwarf_record_line): Fix typo.
500 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
502 * target.h (struct target_ops::to_terminal_save_ours): Remove
504 (target_terminal_save_ours): Remove macro.
505 * target-delegates.c: Regenerate.
506 * inf-child.c (inf_child_target): Don't set the nonexistent
507 field to_terminal_save_ours.
508 * inferior.h (child_terminal_save_ours): Remove declaration.
509 * terminal.h (gdb_save_tty_state): New declaration.
510 * inflow.c (child_terminal_save_ours): Rename to ...
511 (gdb_save_tty_state): ... this.
512 * tui/tui.c: Include terminal.h.
513 (tui_enable): Use gdb_save_tty_state instead of
514 target_terminal_save_ours.
515 (tui_disable): Likewise.
517 2014-08-25 Doug Evans <dje@google.com>
519 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
520 Pass NULL instead of 0 for context pointer.
522 2014-08-25 Yao Qi <yao@codesourcery.com>
524 * dwarf2read.c: Fix grammatical error.
526 2014-08-24 Yao Qi <yao@codesourcery.com>
528 * dwarf2read.c (scan_partial_symbols): Update comments.
529 Rename argument 'need_pc' with 'set_addrmap'.
530 (add_partial_namespace): Rename argument 'need_pc' with
532 (add_partial_module): Likewise.
533 (add_partial_subprogram): Likewise. Update comments.
534 (dwarf2_name): Fix typo.
536 2014-08-22 Doug Evans <dje@google.com>
539 * dwarf2read.c (dwarf_record_line_p): New function.
540 (dwarf_decode_lines_1): Ignore subsequent line number entries
541 for the same line if any entry had a non-zero discriminator.
543 2014-08-22 Doug Evans <dje@google.com>
545 * buildsym.h (record_line_ftype): New typedef.
546 (record_line): Use it.
547 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
548 (dwarf_decode_lines_1): Call them.
550 2014-08-22 Yao Qi <yao@codesourcery.com>
552 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
553 (ctf_end): Remove code.
555 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
557 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
558 (linux_make_corefile_notes): call update_thread_list, protected against
561 2014-08-21 Pedro Alves <palves@redhat.com>
563 * infcmd.c (attach_command): Remove comment.
565 2014-08-21 Bin Cheng <bin.cheng@arm.com>
567 * aarch64-linux-nat.c (dr_changed_t): Change the type from
568 unsigned LONGEST to ULONGEST.
570 2014-08-20 Pedro Alves <palves@redhat.com>
572 * Makefile.in (check-read1): New rule.
574 2014-08-20 Joel Brobecker <brobecker@adacore.com>
576 * value.c (value_from_contents_and_address): Strip resolved_type's
577 typedef layers before checking its TYPE_DATA_LOCATION.
579 2014-08-20 Pedro Alves <palves@redhat.com>
581 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
583 2014-08-20 Yao Qi <yao@codesourcery.com>
585 * amd64-tdep.c (amd64_classify): Add a blank line after the
586 example. Move "*/" to a new line.
587 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
588 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
589 * dwarf2read.c (psymtab_include_file_name): Likewise.
591 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
592 Pedro Alves <palves@redhat.com>
596 * ada-lang.c (coerce_unspec_val_to_type): Use
597 value_contents_copy_raw.
598 * ada-valprint.c (val_print_packed_array_elements): Adjust.
599 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
600 * cp-valprint.c (cp_print_value_fields): Let the common printing
601 code handle optimized out values.
602 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
603 * d-valprint.c (dynamic_array_type): Use
604 value_bits_any_optimized_out.
605 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
606 check_any_valid fields.
607 (check_pieced_value_bits): Delete and inline ...
608 (check_pieced_synthetic_pointer): ... here.
609 (check_pieced_value_validity): Delete.
610 (check_pieced_value_invalid): Delete.
611 (pieced_value_funcs): Remove check_validity and check_any_valid
613 (read_pieced_value): Use mark_value_bits_optimized_out.
614 (write_pieced_value): Switch to use
615 mark_value_bytes_optimized_out.
616 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
617 of assuming the whole value is optimized out.
618 * findvar.c (read_frame_register_value): Remove special handling
619 of optimized out registers.
620 (value_from_register): Use mark_value_bytes_optimized_out.
621 * frame-unwind.c (frame_unwind_got_optimized): Use
622 mark_value_bytes_optimized_out.
623 * jv-valprint.c (java_value_print): Adjust.
624 (java_print_value_fields): Let the common printing code handle
625 optimized out values.
626 * mips-tdep.c (mips_print_register): Remove special handling of
627 optimized out registers.
628 * opencl-lang.c (lval_func_check_validity): Delete.
629 (lval_func_check_any_valid): Delete.
630 (opencl_value_funcs): Remove check_validity and check_any_valid
632 * p-valprint.c (pascal_object_print_value_fields): Let the common
633 printing code handle optimized out values.
634 * stack.c (read_frame_arg): Remove special handling of optimized
635 out values. Fetch both VAL and ENTRYVAL before comparing
636 contents. Adjust to value_available_contents_eq rename.
637 * valprint.c (valprint_check_validity)
638 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
639 (val_print_array_elements): Adjust.
640 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
641 (value_bits_any_optimized_out): New function.
642 (value_entirely_covered_by_range_vector): New function, factored
643 out from value_entirely_unavailable.
644 (value_entirely_unavailable): Reimplement.
645 (value_entirely_optimized_out): New function.
646 (insert_into_bit_range_vector): New function, factored out from
647 mark_value_bits_unavailable.
648 (mark_value_bits_unavailable): Reimplement.
649 (struct ranges_and_idx): New struct.
650 (find_first_range_overlap_and_match): New function, factored out
651 from value_available_contents_bits_eq.
652 (value_available_contents_bits_eq): Rename to ...
653 (value_contents_bits_eq): ... this. Check both unavailable
654 contents and optimized out contents.
655 (value_available_contents_eq): Rename to ...
656 (value_contents_eq): ... this.
657 (allocate_value_lazy): Remove reference to the old optimized_out
659 (allocate_optimized_out_value): Use
660 mark_value_bytes_optimized_out.
661 (require_not_optimized_out): Adjust to check whether the
662 optimized_out vec is empty.
663 (ranges_copy_adjusted): New function, factored out from
664 value_contents_copy_raw.
665 (value_contents_copy_raw): Also copy the optimized out ranges.
666 Assert the destination ranges aren't optimized out.
667 (value_contents_copy): Update comment, remove call to
668 require_not_optimized_out.
669 (value_contents_equal): Adjust to check whether the optimized_out
671 (set_value_optimized_out, value_optimized_out_const): Delete.
672 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
674 (value_entirely_optimized_out, value_bits_valid): Delete.
675 (value_copy): Take a VEC copy of the 'optimized_out' field.
676 (value_primitive_field): Remove special handling of optimized out.
677 (value_fetch_lazy): Assert that lazy values have no unavailable
678 regions. Use value_bits_any_optimized_out. Remove some special
679 handling for optimized out values.
680 * value.h: Add intro comment about <optimized out> and
682 (struct lval_funcs): Remove check_validity and check_any_valid
684 (set_value_optimized_out, value_optimized_out_const): Remove.
685 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
687 (value_bits_any_optimized_out): New declaration.
688 (value_bits_valid): Delete declaration.
689 (value_available_contents_eq): Rename to ...
690 (value_contents_eq): ... this, and extend comments.
692 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
694 Fix -fsanitize=address on unreadable inferior strings.
695 * valprint.c (val_print_string): Fix access before BUFFER.
697 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
699 * target.c (target_struct_size): Remove.
700 (target_struct_allocsize): Remove.
701 (DEFAULT_ALLOCSIZE): Remove.
702 (target_ops_p): New typedef.
703 (DEF_VEC_P (target_ops_p)): New vector type.
704 (target_structs): Change type to VEC (target_ops_p).
705 (add_target_with_completer): Replace "push" code by VEC_safe_push.
706 (find_default_run_target): Rewrite for loop following changes to
709 2014-08-19 Joel Brobecker <brobecker@adacore.com>
711 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
712 Adjust code accordingly. Adjust function description comment.
714 2014-08-19 Yao Qi <yao@codesourcery.com>
716 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
719 2014-08-19 Alan Modra <amodra@gmail.com>
721 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
722 * config.in: Regenerate.
723 * configure: Regenerate.
725 2014-08-19 Tom Tromey <tromey@redhat.com>
726 Gary Benson <gbenson@redhat.com>
728 * common/common-debug.h: New file.
729 * common/common-debug.c: Likewise.
731 * Makefile.in (SFILES): Add common/common-debug.c.
732 (HFILES_NO_SRCDIR): Add common/common-debug.h.
733 (COMMON_OBS): Add common-debug.o and debug.o.
734 (common-debug.o): New rule.
735 * common/common-defs.h: Include common-debug.h.
736 * common/agent.c (debug_agent_printf): New function.
737 (DEBUG_AGENT): Redefine.
738 * nat/i386-dregs.c (debug_printf): Undefine.
740 2014-08-19 Gary Benson <gbenson@redhat.com>
742 * common/common-defs.h: Include print-utils.h.
743 * utils.h: Do not include print-utils.h.
745 2014-08-19 Tom Tromey <tromey@redhat.com>
746 Gary Benson <gbenson@redhat.com>
748 * common/common-types.h: New file.
749 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
750 * common/common-defs.h: Include common-types.h.
751 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
754 2014-08-19 Tom Tromey <tromey@redhat.com>
755 Gary Benson <gbenson@redhat.com>
757 * common/errors.h: New file.
758 * common/errors.c: Likewise.
759 * Makefile.in (SFILES): Add common/errors.c.
760 (HFILES_NO_SRCDIR): Add common/errors.h.
761 (COMMON_OBS): Add errors.o.
762 (errors.o): New rule.
763 * common/common-defs.h: Include errors.h.
764 * utils.h (perror_with_name, error, verror, warning, vwarning):
766 * common/common-utils.h: (malloc_failure, internal_error):
769 2014-08-19 Gary Benson <gbenson@redhat.com>
771 * utils.c (internal_vproblem): Always print the message.
773 2014-08-18 Doug Evans <dje@google.com>
775 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
777 2014-08-18 Joel Brobecker <brobecker@adacore.com>
779 * ada-typeprint.c (type_is_full_subrange_of_target_type):
780 Return 0 if TYPE is dynamic.
781 (print_range): Add handling of dynamic ranges.
783 2014-08-18 Keven Boell <keven.boell@intel.com>
784 Joel Brobecker <brobecker@adacore.com>
786 * gdbtypes.h (struct main_type): Add field "data_location".
787 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
788 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
789 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
790 a dynamic data location.
791 (resolve_dynamic_type): Add DW_AT_data_location handling.
792 (copy_recursive, copy_type): Copy the data_location information
794 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
795 * value.c (value_from_contents_and_address): Add
796 DW_AT_data_location handling.
798 2014-08-18 Keven Boell <keven.boell@intel.com>
799 Joel Brobecker <brobecker@adacore.com>
801 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
802 field "get_object_address".
803 * dwarf2expr.c (execute_stack_op): Add handling for
804 DW_OP_push_object_address.
805 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
806 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
807 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
808 (dwarf_expr_get_obj_addr): New function.
809 (dwarf_expr_ctx_funcs): Add get_object_address field.
810 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
811 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
812 (dwarf2_evaluate_property): Add parameter "address". Use it.
813 (needs_get_obj_addr): New function.
814 (needs_frame_ctx_funcs): Add get_object_address field.
815 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
816 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
817 (resolve_dynamic_array): Likewise.
819 2014-08-18 Joel Brobecker <brobecker@adacore.com>
821 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
822 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
823 fixed value for records and unions for which some GNAT encodings
826 2014-08-18 Joel Brobecker <brobecker@adacore.com>
828 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
829 rewrite to avoid "else if" and "else" constructs. Should be
832 2014-08-18 Joel Brobecker <brobecker@adacore.com>
834 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
837 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
840 * eval.c: Update all calls to find_overload_match.
841 * valarith.c: Likewise.
842 (value_user_defined_cpp_op, value_user_defined_op): New
843 argument NOSIDE. Update all callers.
844 * valops.c (find_overload_match): New argument NOSIDE.
845 * value.h (find_overload_match): Update signature.
847 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
849 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
850 'items' methods instead of 'iteritems' method on dictionaries.
852 2014-08-15 Doug Evans <dje@google.com>
854 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
857 2014-08-15 Doug Evans <dje@google.com>
859 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
861 2014-08-15 Doug Evans <dje@google.com>
863 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
865 2014-08-15 Doug Evans <dje@google.com>
867 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
870 2014-08-15 Eli Zaretskii <eliz@gnu.org>
872 * dcache.h: Include target.h, to avoid compile time warnings.
874 2014-08-15 Joel Brobecker <brobecker@adacore.com>
876 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
877 frame_info" partial declaration.
878 * gdbarch.h: Regenerate.
880 2014-08-15 Yao Qi <yao@codesourcery.com>
882 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
883 Add parameter 'decode_for_pst_p'. Callers update.
885 2014-08-13 Yao Qi <yao@codesourcery.com>
888 * configure.ac: Use local variable 'pos'.
889 * configure: Regenerated.
891 2014-08-11 Doug Evans <dje@google.com>
893 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
894 message, it is redundant with "Reading symbols from ..." message.
896 2014-08-10 Doug Evans <xdje42@gmail.com>
898 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
900 2014-08-09 Yao Qi <yao@codesourcery.com>
903 * remote.c (remote_xfer_partial): Remove dead code.
905 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
907 * ia64-linux-tdep.c: Include "regset.h".
908 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
909 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
910 (ia64_linux_supply_fpregset): New function.
911 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
912 (ia64_linux_regset_from_core_section): New function.
913 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
916 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
918 * m68klinux-tdep.c: Include "regset.h".
919 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
920 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
921 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
922 (m68k_linux_regset_from_core_section): New function.
923 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
926 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
928 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
929 function. Move logic to...
930 (tilegx_linux_regmap): ... this new register map.
931 (tilegx_linux_regset): Refer to register map, replace supply
932 method by regcache_supply_regset, and add collect method.
933 * tilegx-tdep.h (enum tilegx_regnum): New enum value
934 TILEGX_FIRST_EASY_REGNUM.
936 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
938 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
939 that calls regcache_supply_regset and handles the EPC register
940 separately. Move main logic to...
941 (score7_linux_gregmap): ... this new register map.
942 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
943 (score7_linux_gregset): Refer to register map. Add collect method.
944 (score7_linux_regset_from_core_section): Replace
945 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
946 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
947 (struct regset): Delete unused forward declaraction.
948 (struct pt_regs): Delete structure definition.
949 (elf_gregset_t): Delete typedef.
951 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
953 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
954 (nios2_core_regset): Add collect method.
956 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
958 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
959 platform-independent and don't write to read-only input buffer.
960 (m32r_linux_collect_gregset): New function.
961 (m32r_linux_gregset): Add collect method.
963 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
965 * hppa-linux-tdep.c (greg_map): Rename to...
966 (hppa_linux_gregmap): ... this. Also convert to
967 regcache_map_entry format.
968 (hppa_linux_supply_regset): Delete function.
969 (hppa_linux_supply_fpregset): Delete function. Move logic to...
970 (hppa_linux_fpregmap): ... this new register map.
971 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
972 register map, replace supply method by regcache_supply_regset, and
973 add collect method regcache_collect_regset.
975 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
977 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
978 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
979 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
980 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
981 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
982 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
983 (frv_linux_supply_gregset): Replace main logic by call to
984 regcache_supply_regset, but keep clearing gr32-gr63.
985 (frv_linux_supply_fpregset): Delete function.
986 (frv_linux_gregset): Refer to appropriate register map and add
987 regcache_collect_regset as the collect method.
988 (frv_linux_fpregset): Likewise. Also exchange the supply method
989 by regcache_supply_regset.
991 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
993 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
994 by call to alpha_supply_int_regs.
995 (alpha_linux_collect_gregset): New function.
996 (alpha_linux_supply_fpregset): Replace logic by call to
997 alpha_supply_fp_regs.
998 (alpha_linux_collect_fpregset): New function.
999 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1001 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1003 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1004 by call to regcache_collect_regset.
1005 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1006 instead of aarch64_linux_supply_gregset/_fpregset.
1007 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1008 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1009 header file instead.
1010 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1011 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1012 functions. Move logic to ...
1013 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1015 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1016 refer to new register maps, replace *_regset_from_core by
1017 regcache_supply_regset, and also use regcache_collect_regset.
1018 * aarch64-linux-tdep.h: Include "regset.h".
1019 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1021 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1022 macros, moved from C source file.
1023 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1024 variable declarations.
1026 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1028 * s390-linux-nat.c: Include "regset.h".
1029 (regmap_gregset): Delete macro.
1030 (s390_64_regmap_gregset): New register map for
1031 regcache_supply/_collect_regset.
1032 (s390_64_gregset): New regset.
1033 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1034 (regmap_fpregset): Delete macro.
1035 (s390_native_supply, s390_native_collect): Delete functions.
1036 (supply_gregset, fill_gregset): Replace s390-specific regmap
1037 handling by a call to regcache_supply/_collect_regset.
1038 (supply_fpregset, fill_fpregset): Call regcache_supply/
1039 _collect_regset instead of s390_native_supply/_collect.
1040 (fetch_regset, store_regset): Likewise. Also change the last
1041 parameter to a regset instead of a regmap.
1042 (s390_linux_fetch_inferior_registers)
1043 (390_linux_store_inferior_registers): Adjust last parameter in
1044 calls to fetch_regset and store_regset.
1045 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1046 (s390_gregmap): ... this. Also make static const and convert to
1047 regcache_map_entry format.
1048 (s390x_regmap_gregset): Delete.
1049 (s390_regmap_fpregset): Rename to...
1050 (s390_fpregmap): ... this. Make static const and convert to
1051 regcache_map_entry format.
1052 (s390_regmap_upper, s390_regmap_last_break)
1053 (s390x_regmap_last_break, s390_regmap_system_call)
1054 (s390_regmap_tdb): Likewise.
1055 (s390_supply_regset, s390_collect_regset): Remove functions.
1056 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1058 (s390_gregset, s390_fpregset, s390_upper_regset)
1059 (s390_last_break_regset, s390x_last_break_regset)
1060 (s390_system_call_regset, s390_tdb_regset): Make global and
1061 replace s390_supply/_collect_regset by regcache_supply/
1063 (s390x_gregset): Delete.
1064 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1065 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1066 (s390_regmap_fpregset, s390_regmap_last_break)
1067 (s390x_regmap_last_break, s390_regmap_system_call)
1068 (s390_regmap_tdb): Delete global variable declarations.
1069 (s390_gregset, s390_fpregset, s390_last_break_regset)
1070 (s390x_last_break_regset, s390_system_call_regset)
1071 (s390_tdb_regset): New global variable declarations.
1073 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1075 * regcache.c: Include "regset.h".
1076 (regcache_transfer_regset): New local function.
1077 (regcache_supply_regset, regcache_collect_regset): New functions.
1078 * regcache.h (struct regcache_map_entry): New structure.
1079 (REGCACHE_MAP_SKIP): New enum value.
1080 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1082 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1084 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1085 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1086 (ppc_linux_collect_gregset ): Likewise.
1087 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1088 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1089 (ppc_collect_vrregset): Likewise.
1090 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1093 2014-08-07 Yao Qi <yao@codesourcery.com>
1095 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1096 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1097 * remote.c (remote_read_bytes): Likewise.
1099 2014-08-07 Yao Qi <yao@codesourcery.com>
1101 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1103 2014-08-07 Yao Qi <yao@codesourcery.com>
1106 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1107 TARGET_XFER_OK instead of 0.
1109 2014-08-07 Gary Benson <gbenson@redhat.com>
1111 * common/common-defs.h: Include errno.h.
1112 * defs.h: Do not include errno.h.
1113 * ada-typeprint.c: Likewise.
1114 * c-typeprint.c: Likewise.
1115 * core-regset.c: Likewise.
1116 * corefile.c: Likewise.
1117 * corelow.c: Likewise.
1118 * event-loop.c: Likewise.
1119 * f-typeprint.c: Likewise.
1120 * gnu-nat.c: Likewise.
1121 * go32-nat.c: Likewise.
1122 * i386gnu-nat.c: Likewise.
1123 * m2-typeprint.c: Likewise.
1124 * nat/linux-btrace.c: Likewise.
1125 * p-typeprint.c: Likewise.
1126 * procfs.c: Likewise.
1127 * remote-sim.c: Likewise.
1128 * rs6000-nat.c: Likewise.
1129 * target.c: Likewise.
1130 * typeprint.c: Likewise.
1131 * ui-file.c: Likewise.
1132 * valops.c: Likewise.
1133 * valprint.c: Likewise.
1135 2014-08-07 Gary Benson <gbenson@redhat.com>
1137 * common/common-defs.h: Include string.h.
1138 * aarch64-tdep.c: Do not include string.h.
1139 * ada-exp.y: Likewise.
1140 * ada-lang.c: Likewise.
1141 * ada-lex.l: Likewise.
1142 * ada-typeprint.c: Likewise.
1143 * ada-valprint.c: Likewise.
1144 * aix-thread.c: Likewise.
1145 * alpha-linux-tdep.c: Likewise.
1146 * alpha-mdebug-tdep.c: Likewise.
1147 * alpha-nat.c: Likewise.
1148 * alpha-osf1-tdep.c: Likewise.
1149 * alpha-tdep.c: Likewise.
1150 * alphanbsd-tdep.c: Likewise.
1151 * amd64-dicos-tdep.c: Likewise.
1152 * amd64-linux-tdep.c: Likewise.
1153 * amd64-nat.c: Likewise.
1154 * amd64-sol2-tdep.c: Likewise.
1155 * amd64fbsd-tdep.c: Likewise.
1156 * amd64obsd-tdep.c: Likewise.
1157 * arch-utils.c: Likewise.
1158 * arm-linux-nat.c: Likewise.
1159 * arm-linux-tdep.c: Likewise.
1160 * arm-tdep.c: Likewise.
1161 * arm-wince-tdep.c: Likewise.
1162 * armbsd-tdep.c: Likewise.
1163 * armnbsd-nat.c: Likewise.
1164 * armnbsd-tdep.c: Likewise.
1165 * armobsd-tdep.c: Likewise.
1166 * avr-tdep.c: Likewise.
1167 * ax-gdb.c: Likewise.
1168 * ax-general.c: Likewise.
1169 * bcache.c: Likewise.
1170 * bfin-tdep.c: Likewise.
1171 * breakpoint.c: Likewise.
1172 * build-id.c: Likewise.
1173 * buildsym.c: Likewise.
1174 * c-exp.y: Likewise.
1175 * c-lang.c: Likewise.
1176 * c-typeprint.c: Likewise.
1177 * c-valprint.c: Likewise.
1178 * charset.c: Likewise.
1179 * cli-out.c: Likewise.
1180 * cli/cli-cmds.c: Likewise.
1181 * cli/cli-decode.c: Likewise.
1182 * cli/cli-dump.c: Likewise.
1183 * cli/cli-interp.c: Likewise.
1184 * cli/cli-logging.c: Likewise.
1185 * cli/cli-script.c: Likewise.
1186 * cli/cli-setshow.c: Likewise.
1187 * cli/cli-utils.c: Likewise.
1188 * coffread.c: Likewise.
1189 * common/agent.c: Likewise.
1190 * common/buffer.c: Likewise.
1191 * common/buffer.h: Likewise.
1192 * common/common-utils.c: Likewise.
1193 * common/filestuff.c: Likewise.
1194 * common/filestuff.c: Likewise.
1195 * common/format.c: Likewise.
1196 * common/print-utils.c: Likewise.
1197 * common/rsp-low.c: Likewise.
1198 * common/signals.c: Likewise.
1199 * common/vec.h: Likewise.
1200 * common/xml-utils.c: Likewise.
1201 * core-regset.c: Likewise.
1202 * corefile.c: Likewise.
1203 * corelow.c: Likewise.
1204 * cp-abi.c: Likewise.
1205 * cp-name-parser.y: Likewise.
1206 * cp-support.c: Likewise.
1207 * cp-valprint.c: Likewise.
1208 * cris-tdep.c: Likewise.
1209 * d-exp.y: Likewise.
1210 * darwin-nat.c: Likewise.
1211 * dbxread.c: Likewise.
1212 * dcache.c: Likewise.
1213 * demangle.c: Likewise.
1214 * dicos-tdep.c: Likewise.
1215 * disasm.c: Likewise.
1216 * doublest.c: Likewise.
1217 * dsrec.c: Likewise.
1218 * dummy-frame.c: Likewise.
1219 * dwarf2-frame.c: Likewise.
1220 * dwarf2loc.c: Likewise.
1221 * dwarf2read.c: Likewise.
1222 * elfread.c: Likewise.
1223 * environ.c: Likewise.
1225 * event-loop.c: Likewise.
1226 * exceptions.c: Likewise.
1228 * expprint.c: Likewise.
1229 * f-exp.y: Likewise.
1230 * f-lang.c: Likewise.
1231 * f-typeprint.c: Likewise.
1232 * f-valprint.c: Likewise.
1233 * fbsd-nat.c: Likewise.
1234 * findcmd.c: Likewise.
1235 * findvar.c: Likewise.
1236 * fork-child.c: Likewise.
1237 * frame.c: Likewise.
1238 * frv-linux-tdep.c: Likewise.
1239 * frv-tdep.c: Likewise.
1241 * gdb_bfd.c: Likewise.
1242 * gdbarch.c: Likewise.
1243 * gdbarch.sh: Likewise.
1244 * gdbtypes.c: Likewise.
1245 * gnu-nat.c: Likewise.
1246 * gnu-v2-abi.c: Likewise.
1247 * gnu-v3-abi.c: Likewise.
1248 * go-exp.y: Likewise.
1249 * go-lang.c: Likewise.
1250 * go32-nat.c: Likewise.
1251 * guile/guile.c: Likewise.
1252 * guile/scm-auto-load.c: Likewise.
1253 * hppa-hpux-tdep.c: Likewise.
1254 * hppa-linux-nat.c: Likewise.
1255 * hppanbsd-tdep.c: Likewise.
1256 * hppaobsd-tdep.c: Likewise.
1257 * i386-cygwin-tdep.c: Likewise.
1258 * i386-dicos-tdep.c: Likewise.
1259 * i386-linux-tdep.c: Likewise.
1260 * i386-nto-tdep.c: Likewise.
1261 * i386-sol2-tdep.c: Likewise.
1262 * i386-tdep.c: Likewise.
1263 * i386bsd-tdep.c: Likewise.
1264 * i386gnu-nat.c: Likewise.
1265 * i386nbsd-tdep.c: Likewise.
1266 * i386obsd-tdep.c: Likewise.
1267 * i387-tdep.c: Likewise.
1268 * ia64-libunwind-tdep.c: Likewise.
1269 * ia64-linux-nat.c: Likewise.
1270 * inf-child.c: Likewise.
1271 * inf-ptrace.c: Likewise.
1272 * inf-ttrace.c: Likewise.
1273 * infcall.c: Likewise.
1274 * infcmd.c: Likewise.
1275 * inflow.c: Likewise.
1276 * infrun.c: Likewise.
1277 * interps.c: Likewise.
1278 * iq2000-tdep.c: Likewise.
1279 * irix5-nat.c: Likewise.
1280 * jv-exp.y: Likewise.
1281 * jv-lang.c: Likewise.
1282 * jv-typeprint.c: Likewise.
1283 * jv-valprint.c: Likewise.
1284 * language.c: Likewise.
1285 * linux-fork.c: Likewise.
1286 * linux-nat.c: Likewise.
1287 * lm32-tdep.c: Likewise.
1288 * m2-exp.y: Likewise.
1289 * m2-typeprint.c: Likewise.
1290 * m32c-tdep.c: Likewise.
1291 * m32r-linux-nat.c: Likewise.
1292 * m32r-linux-tdep.c: Likewise.
1293 * m32r-rom.c: Likewise.
1294 * m32r-tdep.c: Likewise.
1295 * m68hc11-tdep.c: Likewise.
1296 * m68k-tdep.c: Likewise.
1297 * m68kbsd-tdep.c: Likewise.
1298 * m68klinux-nat.c: Likewise.
1299 * m68klinux-tdep.c: Likewise.
1300 * m88k-tdep.c: Likewise.
1301 * machoread.c: Likewise.
1302 * macrocmd.c: Likewise.
1304 * mdebugread.c: Likewise.
1305 * mem-break.c: Likewise.
1306 * memattr.c: Likewise.
1307 * memory-map.c: Likewise.
1308 * mep-tdep.c: Likewise.
1309 * mi/mi-cmd-break.c: Likewise.
1310 * mi/mi-cmd-disas.c: Likewise.
1311 * mi/mi-cmd-env.c: Likewise.
1312 * mi/mi-cmd-stack.c: Likewise.
1313 * mi/mi-cmd-var.c: Likewise.
1314 * mi/mi-cmds.c: Likewise.
1315 * mi/mi-console.c: Likewise.
1316 * mi/mi-getopt.c: Likewise.
1317 * mi/mi-interp.c: Likewise.
1318 * mi/mi-main.c: Likewise.
1319 * mi/mi-parse.c: Likewise.
1320 * microblaze-rom.c: Likewise.
1321 * microblaze-tdep.c: Likewise.
1322 * mingw-hdep.c: Likewise.
1323 * minidebug.c: Likewise.
1324 * minsyms.c: Likewise.
1325 * mips-irix-tdep.c: Likewise.
1326 * mips-linux-tdep.c: Likewise.
1327 * mips-tdep.c: Likewise.
1328 * mips64obsd-tdep.c: Likewise.
1329 * mipsnbsd-tdep.c: Likewise.
1330 * mipsread.c: Likewise.
1331 * mn10300-linux-tdep.c: Likewise.
1332 * mn10300-tdep.c: Likewise.
1333 * monitor.c: Likewise.
1334 * moxie-tdep.c: Likewise.
1335 * mt-tdep.c: Likewise.
1336 * nat/linux-btrace.c: Likewise.
1337 * nat/linux-osdata.c: Likewise.
1338 * nat/linux-procfs.c: Likewise.
1339 * nat/linux-ptrace.c: Likewise.
1340 * nat/linux-waitpid.c: Likewise.
1341 * nbsd-tdep.c: Likewise.
1342 * nios2-linux-tdep.c: Likewise.
1343 * nto-procfs.c: Likewise.
1344 * nto-tdep.c: Likewise.
1345 * objc-lang.c: Likewise.
1346 * objfiles.c: Likewise.
1347 * opencl-lang.c: Likewise.
1348 * osabi.c: Likewise.
1349 * osdata.c: Likewise.
1350 * p-exp.y: Likewise.
1351 * p-lang.c: Likewise.
1352 * p-typeprint.c: Likewise.
1353 * parse.c: Likewise.
1354 * posix-hdep.c: Likewise.
1355 * ppc-linux-nat.c: Likewise.
1356 * ppc-sysv-tdep.c: Likewise.
1357 * ppcfbsd-tdep.c: Likewise.
1358 * ppcnbsd-tdep.c: Likewise.
1359 * ppcobsd-tdep.c: Likewise.
1360 * printcmd.c: Likewise.
1361 * procfs.c: Likewise.
1362 * prologue-value.c: Likewise.
1363 * python/py-auto-load.c: Likewise.
1364 * python/py-gdb-readline.c: Likewise.
1365 * ravenscar-thread.c: Likewise.
1366 * regcache.c: Likewise.
1367 * registry.c: Likewise.
1368 * remote-fileio.c: Likewise.
1369 * remote-m32r-sdi.c: Likewise.
1370 * remote-mips.c: Likewise.
1371 * remote-notif.c: Likewise.
1372 * remote-sim.c: Likewise.
1373 * remote.c: Likewise.
1374 * reverse.c: Likewise.
1375 * rs6000-aix-tdep.c: Likewise.
1376 * ser-base.c: Likewise.
1377 * ser-go32.c: Likewise.
1378 * ser-mingw.c: Likewise.
1379 * ser-pipe.c: Likewise.
1380 * ser-tcp.c: Likewise.
1381 * ser-unix.c: Likewise.
1382 * serial.c: Likewise.
1383 * sh-tdep.c: Likewise.
1384 * sh64-tdep.c: Likewise.
1385 * shnbsd-tdep.c: Likewise.
1387 * sol-thread.c: Likewise.
1388 * solib-dsbt.c: Likewise.
1389 * solib-frv.c: Likewise.
1390 * solib-osf.c: Likewise.
1391 * solib-som.c: Likewise.
1392 * solib-spu.c: Likewise.
1393 * solib-target.c: Likewise.
1394 * solib.c: Likewise.
1395 * somread.c: Likewise.
1396 * source.c: Likewise.
1397 * sparc-nat.c: Likewise.
1398 * sparc-sol2-tdep.c: Likewise.
1399 * sparc-tdep.c: Likewise.
1400 * sparc64-tdep.c: Likewise.
1401 * sparc64fbsd-tdep.c: Likewise.
1402 * sparc64nbsd-tdep.c: Likewise.
1403 * sparcnbsd-tdep.c: Likewise.
1404 * spu-linux-nat.c: Likewise.
1405 * spu-multiarch.c: Likewise.
1406 * spu-tdep.c: Likewise.
1407 * stabsread.c: Likewise.
1408 * stack.c: Likewise.
1409 * std-regs.c: Likewise.
1410 * symfile.c: Likewise.
1411 * symmisc.c: Likewise.
1412 * symtab.c: Likewise.
1413 * target.c: Likewise.
1414 * thread.c: Likewise.
1415 * tilegx-linux-nat.c: Likewise.
1416 * tilegx-tdep.c: Likewise.
1418 * tracepoint.c: Likewise.
1419 * tui/tui-command.c: Likewise.
1420 * tui/tui-data.c: Likewise.
1421 * tui/tui-disasm.c: Likewise.
1422 * tui/tui-file.c: Likewise.
1423 * tui/tui-layout.c: Likewise.
1424 * tui/tui-out.c: Likewise.
1425 * tui/tui-regs.c: Likewise.
1426 * tui/tui-source.c: Likewise.
1427 * tui/tui-stack.c: Likewise.
1428 * tui/tui-win.c: Likewise.
1429 * tui/tui-windata.c: Likewise.
1430 * tui/tui-winsource.c: Likewise.
1431 * typeprint.c: Likewise.
1432 * ui-file.c: Likewise.
1433 * ui-out.c: Likewise.
1434 * user-regs.c: Likewise.
1435 * utils.c: Likewise.
1436 * v850-tdep.c: Likewise.
1437 * valarith.c: Likewise.
1438 * valops.c: Likewise.
1439 * valprint.c: Likewise.
1440 * value.c: Likewise.
1441 * varobj.c: Likewise.
1442 * vax-tdep.c: Likewise.
1443 * vaxnbsd-tdep.c: Likewise.
1444 * vaxobsd-tdep.c: Likewise.
1445 * windows-nat.c: Likewise.
1446 * xcoffread.c: Likewise.
1447 * xml-support.c: Likewise.
1448 * xstormy16-tdep.c: Likewise.
1449 * xtensa-linux-nat.c: Likewise.
1451 2014-08-07 Gary Benson <gbenson@redhat.com>
1453 * common/common-defs.h: Include gdb_assert.h.
1454 * aarch64-tdep.c: Do not include gdb_assert.h.
1455 * addrmap.c: Likewise.
1456 * aix-thread.c: Likewise.
1457 * alpha-linux-tdep.c: Likewise.
1458 * alpha-mdebug-tdep.c: Likewise.
1459 * alphanbsd-tdep.c: Likewise.
1460 * amd64-nat.c: Likewise.
1461 * amd64-tdep.c: Likewise.
1462 * amd64bsd-nat.c: Likewise.
1463 * amd64fbsd-nat.c: Likewise.
1464 * amd64fbsd-tdep.c: Likewise.
1465 * amd64nbsd-nat.c: Likewise.
1466 * amd64nbsd-tdep.c: Likewise.
1467 * amd64obsd-nat.c: Likewise.
1468 * amd64obsd-tdep.c: Likewise.
1469 * arch-utils.c: Likewise.
1470 * arm-tdep.c: Likewise.
1471 * armbsd-tdep.c: Likewise.
1473 * bcache.c: Likewise.
1474 * bfin-tdep.c: Likewise.
1475 * blockframe.c: Likewise.
1476 * breakpoint.c: Likewise.
1477 * bsd-kvm.c: Likewise.
1478 * bsd-uthread.c: Likewise.
1479 * buildsym.c: Likewise.
1480 * c-exp.y: Likewise.
1481 * c-lang.c: Likewise.
1482 * charset.c: Likewise.
1483 * cleanups.c: Likewise.
1484 * cli-out.c: Likewise.
1485 * cli/cli-decode.c: Likewise.
1486 * cli/cli-dump.c: Likewise.
1487 * cli/cli-logging.c: Likewise.
1488 * cli/cli-script.c: Likewise.
1489 * cli/cli-utils.c: Likewise.
1490 * coffread.c: Likewise.
1491 * common/common-utils.c: Likewise.
1492 * common/queue.h: Likewise.
1493 * common/signals.c: Likewise.
1494 * common/vec.h: Likewise.
1495 * complaints.c: Likewise.
1496 * completer.c: Likewise.
1497 * corelow.c: Likewise.
1498 * cp-abi.c: Likewise.
1499 * cp-name-parser.y: Likewise.
1500 * cp-namespace.c: Likewise.
1501 * cp-support.c: Likewise.
1502 * cris-tdep.c: Likewise.
1503 * dbxread.c: Likewise.
1504 * dictionary.c: Likewise.
1505 * doublest.c: Likewise.
1506 * dsrec.c: Likewise.
1507 * dummy-frame.c: Likewise.
1508 * dwarf2-frame-tailcall.c: Likewise.
1509 * dwarf2-frame.c: Likewise.
1510 * dwarf2expr.c: Likewise.
1511 * dwarf2loc.c: Likewise.
1512 * dwarf2read.c: Likewise.
1514 * event-loop.c: Likewise.
1515 * exceptions.c: Likewise.
1516 * expprint.c: Likewise.
1517 * f-valprint.c: Likewise.
1518 * fbsd-nat.c: Likewise.
1519 * findvar.c: Likewise.
1520 * frame-unwind.c: Likewise.
1521 * frame.c: Likewise.
1522 * frv-tdep.c: Likewise.
1523 * gcore.c: Likewise.
1524 * gdb-dlfcn.c: Likewise.
1525 * gdb_bfd.c: Likewise.
1526 * gdbarch.c: Likewise.
1527 * gdbarch.sh: Likewise.
1528 * gdbtypes.c: Likewise.
1529 * gnu-nat.c: Likewise.
1530 * gnu-v3-abi.c: Likewise.
1531 * go-lang.c: Likewise.
1532 * guile/scm-exception.c: Likewise.
1533 * guile/scm-gsmob.c: Likewise.
1534 * guile/scm-lazy-string.c: Likewise.
1535 * guile/scm-math.c: Likewise.
1536 * guile/scm-pretty-print.c: Likewise.
1537 * guile/scm-safe-call.c: Likewise.
1538 * guile/scm-utils.c: Likewise.
1539 * guile/scm-value.c: Likewise.
1540 * h8300-tdep.c: Likewise.
1541 * hppa-hpux-nat.c: Likewise.
1542 * hppa-tdep.c: Likewise.
1543 * hppanbsd-tdep.c: Likewise.
1544 * hppaobsd-tdep.c: Likewise.
1545 * i386-darwin-nat.c: Likewise.
1546 * i386-darwin-tdep.c: Likewise.
1547 * i386-nto-tdep.c: Likewise.
1548 * i386-tdep.c: Likewise.
1549 * i386bsd-nat.c: Likewise.
1550 * i386fbsd-tdep.c: Likewise.
1551 * i386gnu-nat.c: Likewise.
1552 * i386nbsd-tdep.c: Likewise.
1553 * i386obsd-tdep.c: Likewise.
1554 * i387-tdep.c: Likewise.
1555 * ia64-libunwind-tdep.c: Likewise.
1556 * ia64-tdep.c: Likewise.
1557 * inf-ptrace.c: Likewise.
1558 * inf-ttrace.c: Likewise.
1559 * infcall.c: Likewise.
1560 * infcmd.c: Likewise.
1561 * infrun.c: Likewise.
1562 * inline-frame.c: Likewise.
1563 * interps.c: Likewise.
1564 * jv-lang.c: Likewise.
1565 * jv-typeprint.c: Likewise.
1566 * linux-fork.c: Likewise.
1567 * linux-nat.c: Likewise.
1568 * linux-thread-db.c: Likewise.
1569 * m32c-tdep.c: Likewise.
1570 * m32r-linux-nat.c: Likewise.
1571 * m32r-tdep.c: Likewise.
1572 * m68k-tdep.c: Likewise.
1573 * m68kbsd-nat.c: Likewise.
1574 * m68kbsd-tdep.c: Likewise.
1575 * m88k-tdep.c: Likewise.
1576 * machoread.c: Likewise.
1577 * macroexp.c: Likewise.
1578 * macrotab.c: Likewise.
1579 * maint.c: Likewise.
1580 * mdebugread.c: Likewise.
1581 * memory-map.c: Likewise.
1582 * mep-tdep.c: Likewise.
1583 * mi/mi-common.c: Likewise.
1584 * microblaze-tdep.c: Likewise.
1585 * mingw-hdep.c: Likewise.
1586 * mips-linux-nat.c: Likewise.
1587 * mips-linux-tdep.c: Likewise.
1588 * mips-tdep.c: Likewise.
1589 * mips64obsd-tdep.c: Likewise.
1590 * mipsnbsd-tdep.c: Likewise.
1591 * mn10300-linux-tdep.c: Likewise.
1592 * mn10300-tdep.c: Likewise.
1593 * moxie-tdep.c: Likewise.
1594 * mt-tdep.c: Likewise.
1595 * nat/linux-btrace.c: Likewise.
1596 * nat/linux-osdata.c: Likewise.
1597 * nat/linux-ptrace.c: Likewise.
1598 * nat/mips-linux-watch.c: Likewise.
1599 * nios2-linux-tdep.c: Likewise.
1600 * nios2-tdep.c: Likewise.
1601 * objc-lang.c: Likewise.
1602 * objfiles.c: Likewise.
1603 * obsd-nat.c: Likewise.
1604 * opencl-lang.c: Likewise.
1605 * osabi.c: Likewise.
1606 * parse.c: Likewise.
1607 * ppc-linux-nat.c: Likewise.
1608 * ppc-sysv-tdep.c: Likewise.
1609 * ppcfbsd-nat.c: Likewise.
1610 * ppcfbsd-tdep.c: Likewise.
1611 * ppcnbsd-nat.c: Likewise.
1612 * ppcnbsd-tdep.c: Likewise.
1613 * ppcobsd-nat.c: Likewise.
1614 * ppcobsd-tdep.c: Likewise.
1615 * printcmd.c: Likewise.
1616 * procfs.c: Likewise.
1617 * prologue-value.c: Likewise.
1618 * psymtab.c: Likewise.
1619 * python/py-lazy-string.c: Likewise.
1620 * python/py-value.c: Likewise.
1621 * regcache.c: Likewise.
1622 * reggroups.c: Likewise.
1623 * registry.c: Likewise.
1624 * remote-sim.c: Likewise.
1625 * remote.c: Likewise.
1626 * rs6000-aix-tdep.c: Likewise.
1627 * rs6000-tdep.c: Likewise.
1628 * s390-linux-tdep.c: Likewise.
1629 * score-tdep.c: Likewise.
1630 * ser-base.c: Likewise.
1631 * ser-mingw.c: Likewise.
1632 * sh-tdep.c: Likewise.
1633 * sh64-tdep.c: Likewise.
1634 * solib-darwin.c: Likewise.
1635 * solib-spu.c: Likewise.
1636 * solib-svr4.c: Likewise.
1637 * source.c: Likewise.
1638 * sparc-nat.c: Likewise.
1639 * sparc-sol2-tdep.c: Likewise.
1640 * sparc-tdep.c: Likewise.
1641 * sparc64-sol2-tdep.c: Likewise.
1642 * sparc64-tdep.c: Likewise.
1643 * sparc64fbsd-tdep.c: Likewise.
1644 * sparc64nbsd-tdep.c: Likewise.
1645 * sparc64obsd-tdep.c: Likewise.
1646 * sparcnbsd-tdep.c: Likewise.
1647 * sparcobsd-tdep.c: Likewise.
1648 * spu-multiarch.c: Likewise.
1649 * spu-tdep.c: Likewise.
1650 * stabsread.c: Likewise.
1651 * stack.c: Likewise.
1652 * symfile.c: Likewise.
1653 * symtab.c: Likewise.
1654 * target-descriptions.c: Likewise.
1655 * target-memory.c: Likewise.
1656 * target.c: Likewise.
1657 * tic6x-linux-tdep.c: Likewise.
1658 * tic6x-tdep.c: Likewise.
1659 * tilegx-linux-nat.c: Likewise.
1660 * tilegx-tdep.c: Likewise.
1662 * tramp-frame.c: Likewise.
1663 * tui/tui-out.c: Likewise.
1664 * tui/tui-winsource.c: Likewise.
1665 * ui-out.c: Likewise.
1666 * user-regs.c: Likewise.
1667 * utils.c: Likewise.
1668 * v850-tdep.c: Likewise.
1669 * valops.c: Likewise.
1670 * value.c: Likewise.
1671 * varobj.c: Likewise.
1672 * vax-nat.c: Likewise.
1673 * xml-syscall.c: Likewise.
1674 * xml-tdesc.c: Likewise.
1675 * xstormy16-tdep.c: Likewise.
1676 * xtensa-linux-nat.c: Likewise.
1677 * xtensa-tdep.c: Likewise.
1679 2014-08-07 Gary Benson <gbenson@redhat.com>
1681 * common/common-defs.h: Include common-utils.h.
1682 * defs.h: Do not include common-utils.h.
1683 * common/gdb_assert.h: Likewise.
1684 * darwin-nat.h: Likewise.
1685 * nat/linux-btrace.c: Likewise.
1686 * target/waitstatus.h: Likewise.
1688 2014-08-07 Gary Benson <gbenson@redhat.com>
1690 * common/common-defs.h: Include ptid.h.
1691 * defs.h: Do not include ptid.h.
1692 * inferior.h: Likewise.
1693 * infrun.h: Likewise.
1694 * nat/linux-btrace.h: Likewise.
1695 * nat/linux-osdata.h: Likewise.
1696 * target/waitstatus.h: Likewise.
1698 2014-08-07 Gary Benson <gbenson@redhat.com>
1700 * common/common-defs.h: Include gdb_locale.h.
1701 * defs.h: Do not include gdb_locale.h.
1703 2014-08-07 Gary Benson <gbenson@redhat.com>
1705 * common/common-defs.h: Include gdb/signals.h.
1706 * defs.h: Do not include gdb/signals.h.
1708 2014-08-07 Gary Benson <gbenson@redhat.com>
1710 * common/common-defs.h: Include pathmax.h.
1711 * defs.h: Do not include pathmax.h.
1713 2014-08-07 Gary Benson <gbenson@redhat.com>
1715 * common/common-defs.h: Include libiberty.h.
1716 * defs.h: Do not include libiberty.h.
1717 * common/queue.h: Likewise.
1718 * cp-name-parser.y: Likewise.
1719 * mi/mi-cmd-catch.c: Likewise.
1720 * python/python.c: Likewise.
1722 2014-08-07 Gary Benson <gbenson@redhat.com>
1724 * common/common-defs.h: Include ansidecl.h.
1725 * defs.h: Do not include ansidecl.h.
1726 * common/buffer.h: Likewise.
1727 * common/common-utils.h: Likewise.
1729 2014-08-07 Gary Benson <gbenson@redhat.com>
1731 * common/common-defs.h: Include stddef.h.
1732 * defs.h: Do not include stddef.h.
1733 * common/common-utils.h: Likewise.
1734 * amd64fbsd-nat.c: Likewise.
1735 * bcache.c: Likewise.
1736 * charset.c: Likewise.
1737 * common/buffer.h: Likewise.
1738 * common/vec.h: Likewise.
1739 * i386bsd-nat.c: Likewise.
1740 * nat/linux-btrace.h: Likewise.
1741 * ppcfbsd-nat.c: Likewise.
1742 * ppcnbsd-tdep.h: Likewise.
1743 * ppcobsd-nat.c: Likewise.
1744 * ppcobsd-tdep.h: Likewise.
1745 * python/py-gdb-readline.c: Likewise.
1747 2014-08-07 Gary Benson <gbenson@redhat.com>
1749 * common/common-defs.h: Include stdarg.h.
1750 * defs.h: Do not include stdarg.h.
1751 * ada-lang.c: Likewise.
1752 * common/common-utils.h: Likewise.
1753 * guile/scm-string.c: Likewise.
1754 * guile/scm-utils.c: Likewise.
1755 * m32c-tdep.c: Likewise.
1757 2014-08-07 Gary Benson <gbenson@redhat.com>
1759 * common/common-defs.h: Include stdlib.h.
1760 * defs.h: Do not include stdlib.h.
1761 * addrmap.c: Likewise.
1762 * bcache.c: Likewise.
1763 * common/buffer.c: Likewise.
1764 * common/common-utils.c: Likewise.
1765 * cp-name-parser.y: Likewise.
1766 * go32-nat.c: Likewise.
1767 * mn10300-linux-tdep.c: Likewise.
1768 * nat/linux-osdata.c: Likewise.
1769 * tui/tui.c: Likewise.
1770 * windows-nat.c: Likewise.
1772 2014-08-07 Gary Benson <gbenson@redhat.com>
1774 * common/common-defs.h: Include stdio.h.
1775 * defs.h: Do not include stdio.h.
1776 * ada-lang.c: Likewise.
1777 * common/buffer.c: Likewise.
1778 * common/common-utils.c: Likewise.
1779 * cp-name-parser.y: Likewise.
1780 * gnu-nat.c: Likewise.
1781 * go32-nat.c: Likewise.
1782 * i386gnu-nat.c: Likewise.
1783 * proc-api.c: Likewise.
1784 * proc-events.c: Likewise.
1785 * proc-flags.c: Likewise.
1786 * proc-why.c: Likewise.
1787 * python/python-internal.h: Likewise.
1788 * target-memory.c: Likewise.
1789 * tui/tui-io.c: Likewise.
1790 * tui/tui.c: Likewise.
1792 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1794 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1795 (scan_dyntag_auxv): Same.
1797 2014-08-06 Yao Qi <yao@codesourcery.com>
1799 * amd64-linux-nat.c: Remove duplicated include
1801 * i386-linux-nat.c: Likewise.
1803 2014-08-06 Yao Qi <yao@codesourcery.com>
1805 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1806 operand" with "Special opcode" in comments.
1808 2014-08-05 Gary Benson <gbenson@redhat.com>
1810 * interps.c (initialize_interps): Remove prototype.
1811 (interpreter_initialized): Remove static global.
1812 (interp_add): Do not call initialize_interps.
1813 (initialize_interps): Remove function.
1815 2014-08-05 Gary Benson <gbenson@redhat.com>
1817 * utils.c (vwarning): Remove spurious va_end.
1819 2014-08-05 Alan Modra <amodra@gmail.com>
1821 * charset.c (convert_between_encodings): Cast result of obstack_base.
1822 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1823 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1824 (read_unwind_info): Use size_t for some locals.
1825 * jit.c (finalize_symtab): Likewise.
1826 * utils.c (hashtab_obstack_allocate): Likewise.
1827 * symmisc.c (print_objfile_statistics): Update format strings.
1829 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1831 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1832 (Changes in GDB 7.8): ... here.
1834 2014-08-04 Tom Tromey <tromey@redhat.com>
1836 * target.c (set_targetdebug): New function.
1837 (initialize_targets): Pass set_targetdebug when creating "set
1840 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1842 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1843 if detecting a variable-sized field that is not the last field.
1844 Fix struct type length computation.
1846 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1848 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1851 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1853 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1854 Remove "+ 8" offset in computation of CHAIN_VMA.
1856 2014-07-31 Doug Evans <dje@google.com>
1858 * inflow.c (child_terminal_inferior): Add comment.
1859 (child_terminal_ours_for_output): Add comment.
1860 (child_terminal_ours): Add comment.
1861 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1862 (linux_nat_terminal_ours): Add comment.
1864 2014-07-31 Gary Benson <gbenson@redhat.com>
1866 * common/btrace-common.h: Do not include defs.h or server.h.
1867 * nat/mips-linux-watch.h: Likewise.
1868 * gdb-dlfcn.h: Do not include defs.h.
1869 * tracefile.h: Likewise.
1871 2014-07-30 Roland McGrath <mcgrathr@google.com>
1873 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1875 2014-07-30 Tom Tromey <tromey@redhat.com>
1877 * bsd-kvm.c (bsd_kvm_open): Constify.
1878 * corelow.c (core_open): Constify.
1879 * ctf.c (ctf_open): Constify.
1880 * dbug-rom.c (dbug_open): Constify.
1881 * exec.c (exec_open): Constify.
1882 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1883 * microblaze-rom.c (picobug_open): Constify.
1884 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1886 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1887 * record-btrace.c (record_btrace_open): Constify.
1888 * record-full.c (record_full_core_open_1, record_full_open_1)
1889 (record_full_open): Constify.
1890 * remote-m32r-sdi.c (m32r_open): Constify.
1891 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1892 (rockhopper_open, lsi_open): Constify.
1893 * remote-sim.c (gdbsim_open): Constify.
1894 * remote.c (remote_open, extended_remote_open, remote_open_1):
1896 * target.h (struct target_ops) <to_open>: Make "arg" const.
1897 * tracefile-tfile.c (tfile_open): Constify.
1899 2014-07-30 Tom Tromey <tromey@redhat.com>
1901 * breakpoint.c (map_breakpoint_numbers): Update.
1902 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1903 (get_number_const): New function.
1904 (get_number): Rewrite using get_number_const.
1905 (init_number_or_range): Make "string" const.
1906 (number_is_in_list): Make "list" const.
1907 * cli/cli-utils.h (get_number_const): Declare.
1908 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1909 (init_number_or_range, number_is_in_list): Update.
1910 * printcmd.c (map_display_numbers): Update.
1911 * value.c (value_from_history_ref): Constify.
1912 * value.h (value_from_history_ref): Update.
1914 2014-07-30 Tom Tromey <tromey@redhat.com>
1916 * corefile.c (hook_type, call_extra_exec_file_hooks)
1917 (specify_exec_file_hook): Constify.
1918 * exec.c (exec_file_attach): Make "filename" const.
1919 * gdbcore.h (deprecated_exec_file_display_hook)
1920 (specify_exec_file_hook, exec_file_attach): Constify.
1921 * main.c (captured_main): Use catch_command_errors_const.
1923 2014-07-30 Tom Tromey <tromey@redhat.com>
1925 * target.c (open_target): New function.
1926 (add_target_with_completer, add_deprecated_target_alias): Use
1927 set_cmd_sfunc, set_cmd_context.
1928 (debug_to_open): Remove.
1929 (setup_target_debug): Update.
1931 2014-07-30 Yao Qi <yao@codesourcery.com>
1933 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1935 * parse.c (exp_iterate): Update comments.
1937 2014-07-30 Gary Benson <gbenson@redhat.com>
1939 * common/common-defs.h: New file.
1940 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1941 * defs.h: Include common-defs.h.
1942 Do not include config.h or build-gnulib/config.h.
1944 2014-07-30 Gary Benson <gbenson@redhat.com>
1946 * common/common-utils.h: Do not include config.h.
1947 * nat/linux-btrace.h: Likewise.
1949 2014-07-30 Gary Benson <gbenson@redhat.com>
1951 * btrace.c: Include defs.h.
1952 * common/ptid.c: Include defs.h or server.h as appropriate.
1953 * nat/mips-linux-watch.c: Likewise.
1955 2014-07-29 Tom Tromey <tromey@redhat.com>
1957 * target.c (target_is_pushed): Simplify.
1959 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1963 2014-07-29 Yao Qi <yao@codesourcery.com>
1966 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1968 2014-07-28 Doug Evans <xdje42@gmail.com>
1971 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1972 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1975 2014-07-28 Will Newton <will.newton@linaro.org>
1977 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1978 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1979 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1980 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1981 (THUMB2_EABI_SYSCALL): Likewise.
1982 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1984 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1985 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1987 2014-07-27 Doug Evans <xdje42@gmail.com>
1989 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1991 2014-07-27 Doug Evans <xdje42@gmail.com>
1993 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1995 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1996 Doug Evans <xdje42@gmail.com>
1999 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2000 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2001 * configure.ac: Try to use guild to compile an scm file, if it fails
2002 then disable guile support.
2003 * configure: Regenerate.
2004 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2006 (GUILE_COMPILED_FILES): New variable.
2007 (GUILE_FILES) Update.
2008 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2009 (stamp-guile): Compile scm files.
2010 * guile/guile.c (boot_guile_support): New function.
2011 (standard_throw_args_p): New function.
2012 (print_standard_throw_error, print_throw_error): New functions.
2013 (handle_boot_error): New function.
2014 (initialize_scheme_side): Rewrite to call boot_guile_support.
2015 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2016 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2018 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2019 Doug Evans <xdje42@gmail.com>
2022 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2023 * guile/lib/gdb/support.scm: New file.
2024 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2025 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2027 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2029 (%assert-type): Ditto, and renamed to assert-type.
2030 (%exception-print-style): Delete.
2032 2014-07-26 Doug Evans <xdje42@gmail.com>
2035 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2036 * configure: Regenerate.
2037 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2039 (PYTHON_FILES): New variable.
2040 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2041 (GUILE_FILES): New variable.
2042 (stamp-python, install-python, uninstall-python): Handle empty
2044 (stamp-guile, install-guile, uninstall-guile): Ditto.
2046 2014-07-26 Doug Evans <xdje42@gmail.com>
2049 * guile/lib/gdb.scm (pretty-printers): Export.
2050 (set-pretty-printers!): Export.
2051 * guile/lib/gdb/printing.scm (gdb module): Update.
2052 (prepend-pretty-printer!, append-pretty-printer!): Update.
2053 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2054 (pretty_printer_list_var): Delete.
2055 (pretty_printer_list): New static global.
2056 (gdbscm_pretty_printers): New function.
2057 (gdbscm_set_pretty_printers_x): New function.
2058 (ppscm_find_pretty_printer_from_gdb): Update.
2059 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2060 (gdbscm_initialize_pretty_printers): Update.
2062 2014-07-26 Doug Evans <xdje42@gmail.com>
2065 * configure.ac: Add check for header gc/gc.h.
2066 Add check for function setenv.
2067 * configure: Regenerate.
2068 * config.in: Regenerate.
2069 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2071 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2073 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2074 variation in gdbarch matching.
2076 2014-07-25 Tom Tromey <tromey@redhat.com>
2078 * exec.c (using_exec_ops): Remove.
2079 (exec_close_1): Update. Remove extraneous block, reindent.
2080 (add_target_sections): Use target_is_pushed.
2082 2014-07-25 Pedro Alves <palves@redhat.com>
2084 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2085 * monitor.c (monitor_create_inferior): Likewise.
2086 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2087 * remote-sim.c (gdbsim_create_inferior): Likewise.
2088 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2089 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2090 * windows-nat.c (do_initial_windows_stuff): Likewise.
2092 2014-07-25 Pedro Alves <palves@redhat.com>
2094 * NEWS: Mention signal passing and "signal" command changes.
2095 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2097 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2099 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2100 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2101 (jump_command): Adjust clear_proceed_status call.
2102 (signal_command): Warn if other thread that are resumed have
2103 signals that will be delivered. Adjust clear_proceed_status call.
2104 (until_next_command, finish_command)
2105 (proceed_after_attach_callback, attach_command_post_wait)
2106 (attach_command): Adjust clear_proceed_status call.
2107 * infrun.c (proceed_after_vfork_done): Likewise.
2108 (proceed_after_attach_callback): Adjust comment.
2109 (clear_proceed_status_thread): Clear stop_signal if not in pass
2111 (clear_proceed_status_callback): Delete.
2112 (clear_proceed_status): New 'step' parameter. Only clear the
2113 proceed status of threads the command being prepared is about to
2115 (proceed): If passed in an explicit signal, override stop_signal
2116 with it. Don't pass the last stop signal to the thread we're
2118 (init_wait_for_inferior): Adjust clear_proceed_status call.
2119 (switch_back_to_stepped_thread): Clear the signal if it should not
2121 * infrun.h (clear_proceed_status): New 'step' parameter.
2122 (user_visible_resume_ptid): Add comment.
2123 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2124 signal is in pass state.
2125 * remote.c (append_pending_thread_resumptions): Likewise.
2126 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2128 2014-07-25 Tom Tromey <tromey@redhat.com>
2130 * target.h (target_stopped_data_address)
2131 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2134 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2136 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2138 (avr_pointer_to_address): Likewise.
2140 2014-07-24 Tom Tromey <tromey@redhat.com>
2142 * monitor.c (compile_pattern): Update.
2143 * target.h (struct target_ops) <to_shortname, to_longname,
2146 2014-07-24 Tom Tromey <tromey@redhat.com>
2148 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2149 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2150 (add_info_alias, add_com): Make "doc" const.
2151 (print_doc_line): Make "str" const.
2152 (delete_cmd): Update.
2153 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2154 (print_doc_line): Update.
2155 * cli/cli-script.c (document_command): Update.
2156 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2157 (add_com, add_info, add_info_alias): Update.
2158 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2159 * python/py-cmd.c (cmdpy_destroyer): Update.
2161 2014-07-24 Tom Tromey <tromey@redhat.com>
2163 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2164 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2165 (help_cmd_list): Constify.
2166 (lookup_cmd): Update.
2167 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2169 (help_cmd_list, apropos_cmd): Update.
2170 * cli/cli-script.c (show_user): Update.
2171 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2172 * cli/cli-setshow.h (cmd_show_list): Update.
2173 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2174 (cmd_show_list): Update.
2175 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2176 * python/py-cmd.c (cmdpy_destroyer): Update.
2178 2014-07-24 Tom Tromey <tromey@redhat.com>
2180 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2181 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2183 * command.h (deprecate_cmd): Update.
2184 * maint.c (maintenance_do_deprecate): Add casts.
2186 2014-07-24 Tom Tromey <tromey@redhat.com>
2188 * cli/cli-decode.c (help_cmd): Make parameter "const".
2189 * cli/cli-decode.h (help_cmd): Update.
2191 2014-07-24 Tom Tromey <tromey@redhat.com>
2193 * stack.c (up_silently_base, down_silently_base): Make argument
2196 2014-07-24 Tom Tromey <tromey@redhat.com>
2198 * solib.c (solib_add): Make "pattern" const.
2199 * solib.h (solib_add): Update.
2201 2014-07-24 Tom Tromey <tromey@redhat.com>
2203 * remote.c (remote_serial_open, print_packet, putpkt)
2204 (putpkt_binary): Constify.
2205 * remote.h (putpkt): Update.
2207 2014-07-24 Tom Tromey <tromey@redhat.com>
2209 * monitor.c (monitor_open): Make "args" const.
2210 * monitor.h (monitor_open): Update.
2212 2014-07-24 Tom Tromey <tromey@redhat.com>
2214 * maint.c (match_bfd_flags): Make "string" const.
2215 (print_bfd_section_info): Remove casts.
2216 (print_objfile_section_info): Make "string" const.
2218 2014-07-24 Tom Tromey <tromey@redhat.com>
2220 * inf-child.c (inf_child_open_target): Make "arg" const.
2221 * inf-child.h (inf_child_open_target): Update.
2223 2014-07-24 Tom Tromey <tromey@redhat.com>
2225 * environ.c (unset_in_environ): Make "var" const.
2226 * environ.h (unset_in_environ): Update.
2228 2014-07-24 Tom Tromey <tromey@redhat.com>
2230 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2232 (scan_filename_with_cleanup): Likewise.
2233 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2234 Make arguments const.
2235 (restore_command): Update.
2237 2014-07-24 Pedro Alves <palves@redhat.com>
2239 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2241 2014-07-24 Tom Tromey <tromey@redhat.com>
2242 Gary Benson <gbenson@redhat.com>
2244 * nat/linux-ptrace.c (additional_flags): New global.
2245 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2246 additional_flags; don't check GDBSERVER.
2247 (linux_ptrace_set_additional_flags): New function.
2248 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2250 * linux-nat.c (_initialize_linux_nat): Call
2251 linux_ptrace_set_additional_flags.
2253 2014-07-24 Tom Tromey <tromey@redhat.com>
2255 * make-target-delegates (munge_type, write_debugmethod): New
2257 (debug_names): New global.
2258 ($TARGET_DEBUG_PRINTER): New global.
2259 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2261 Write debug methods. Generate init_debug_target.
2262 * target-debug.h: New file.
2263 * target-delegates.c: Rebuild.
2264 * target.c: Include target-debug.h.
2265 (debug_target): Hoist definition.
2266 (target_kill, target_get_section_table, target_memory_map)
2267 (target_flash_erase, target_flash_done, target_detach)
2268 (target_disconnect, target_wait, target_resume)
2269 (target_pass_signals, target_program_signals, target_follow_fork)
2270 (target_mourn_inferior, target_search_memory)
2271 (target_thread_address_space, target_close)
2272 (target_find_new_threads, target_core_of_thread)
2273 (target_verify_memory, target_insert_mask_watchpoint)
2274 (target_remove_mask_watchpoint): Remove targetdebug code.
2275 (debug_to_post_attach, debug_to_prepare_to_store)
2276 (debug_to_files_info, debug_to_insert_breakpoint)
2277 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2278 (debug_to_region_ok_for_hw_watchpoint)
2279 (debug_to_can_accel_watchpoint_condition)
2280 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2281 (debug_to_watchpoint_addr_within_range)
2282 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2283 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2284 (debug_to_terminal_init, debug_to_terminal_inferior)
2285 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2286 (debug_to_terminal_save_ours, debug_to_terminal_info)
2287 (debug_to_load, debug_to_post_startup_inferior)
2288 (debug_to_insert_fork_catchpoint)
2289 (debug_to_remove_fork_catchpoint)
2290 (debug_to_insert_vfork_catchpoint)
2291 (debug_to_remove_vfork_catchpoint)
2292 (debug_to_insert_exec_catchpoint)
2293 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2294 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2295 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2296 (setup_target_debug): Call init_debug_target.
2297 * target.h (TARGET_DEBUG_PRINTER): New macro.
2298 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2299 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2301 2014-07-24 Gary Benson <gbenson@redhat.com>
2303 * exceptions.h (throw_vfatal): Renamed to...
2304 (throw_vquit): New declaration.
2305 (throw_quit): Likewise.
2306 * exceptions.c (throw_vfatal): Renamed to...
2307 (throw_vquit): New function.
2308 (throw_quit): Likewise.
2309 (throw_error): Call throw_verror rather than throw_it.
2310 * utils.h (vfatal): Removed.
2312 * utils.c (vfatal): Removed.
2314 (internal_verror): Replaced call to fatal with call to throw_quit.
2315 (quit): Replaced calls to fatal with calls to throw_quit.
2317 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2319 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2322 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2324 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2325 less than zero in conditional expression.
2327 2014-07-23 Tom Tromey <tromey@redhat.com>
2329 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2330 ($INTRO_PART): Don't match whitespace.
2331 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2333 ($METHOD): Add $METHOD_TRAILER.
2335 (scan_target_h): New sub.
2336 Change main loop not to collect state.
2337 * target-delegates.c: Rebuild.
2339 2014-07-23 Gary Benson <gbenson@redhat.com>
2341 * cp-support.c (gdb_demangle): Fix build on systems without
2344 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2346 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2347 for reference entry value target data value.
2349 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2351 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2352 value_available_contents_eq.
2354 2014-07-22 Pedro Alves <palves@redhat.com>
2356 * value.c (allocate_optimized_out_value): Don't mark value as
2359 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2361 * MAINTAINERS (Write After Approval): Update my email address.
2363 2014-07-20 Doug Evans <dje@google.com>
2366 * remote.c (putpkt_binary): Add text to error message.
2368 2014-07-20 Yao Qi <yao@codesourcery.com>
2370 * eval.c: Remove "Chill" from comments.
2371 * gdbtypes.h: Likewise.
2372 * symtab.h: Likewise.
2374 2014-07-20 Yao Qi <yao@codesourcery.com>
2376 * std-operator.def: Update comments to TERNOP_SLICE.
2378 2014-07-20 Yao Qi <yao@codesourcery.com>
2380 * std-operator.def: Remove BINOP_RANGE.
2381 * breakpoint.c (watchpoint_exp_is_const): Update.
2382 * expprint.c (dump_subexp_body_standard): Likewise.
2383 * eval.c (init_array_element): Remove dead code.
2384 (evaluate_subexp_standard): Likewise.
2386 2014-07-20 Yao Qi <yao@codesourcery.com>
2388 * std-operator.def: Remove BINOP_IN.
2389 * breakpoint.c (watchpoint_exp_is_const): Update.
2390 * eval.c (evaluate_subexp_standard): Likewise.
2391 * expprint.c (dump_subexp_body_standard): Likewise.
2393 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2395 * microblaze-tdep.c (microblaze_register_names): Add
2396 the rshr and rslr register names.
2397 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2398 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2399 Use of tdesc_numbered_register. Use of
2400 microblaze_register_g_packet_guesses. Use of
2401 tdesc_use_registers. Use of set_gdbarch_register_type.
2402 (microblaze_register_g_packet_guesses): New.
2403 * microblaze-tdep.h (microblaze_reg_num): Add
2404 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2405 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2406 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2407 * features/microblaze-core.xml: New file.
2408 * features/microblaze-stack-protect.xml: New file.
2409 * features/microblaze-with-stack-protect.c: New file.
2410 * features/microblaze-with-stack-protect.xml: New file.
2411 * features/microblaze.xml: New file.
2412 * features/microblaze.c: New file.
2413 * features/Makefile (microblaze-with-stack-protect): Add
2414 microblaze-with-stack-protect microblaze and microblaze-expedite.
2415 * regformats/microblaze-with-stack-protect.dat: New file.
2416 * regformats/microblaze.dat: New file.
2417 * doc/gdb.texinfo (MicroBlaze Features): Added.
2419 2014-07-18 Tom Tromey <tromey@redhat.com>
2421 * exec.c (exec_ops): Now static.
2422 * exec.h (exec_ops): Don't declare.
2424 2014-07-18 Tom Tromey <tromey@redhat.com>
2426 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2427 to find_target_beneath.
2428 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2429 find_target_beneath.
2430 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2432 2014-07-18 Tom Tromey <tromey@redhat.com>
2435 * utils.c (quit): Use target_supports_terminal_ours.
2436 * target.h (target_supports_terminal_ours): Declare.
2437 * target.c (target_supports_delete_record): Don't check
2438 to_delete_record against NULL.
2439 (target_supports_terminal_ours): New function.
2441 2014-07-18 Tom Tromey <tromey@redhat.com>
2444 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2445 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2446 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2447 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2448 * windows-nat.c (windows_xfer_partial): Always delegate.
2449 * record-btrace.c (record_btrace_xfer_partial): Simplify
2451 (record_btrace_fetch_registers, record_btrace_store_registers)
2452 (record_btrace_prepare_to_store, record_btrace_resume)
2453 (record_btrace_wait, record_btrace_find_new_threads)
2454 (record_btrace_thread_alive): Likewise.
2455 * procfs.c (procfs_xfer_partial): Always delegate.
2456 * corelow.c (core_xfer_partial): Always delegate.
2457 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2459 2014-07-18 Tom Tromey <tromey@redhat.com>
2461 * exec.c (exec_make_note_section): Move earlier.
2463 2014-07-17 Doug Evans <dje@google.com>
2466 * maint.c (count_symtabs_and_blocks): Handle NULL
2467 current_program_space.
2468 (report_command_stats): Check global enabled flag in addition to
2469 recorded enabled flag.
2470 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2472 2014-07-16 Pedro Alves <palves@redhat.com>
2474 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2476 2014-07-16 Tom Tromey <tromey@redhat.com>
2478 * target.h (struct target_ops) <to_delete_record>: Reformat
2481 2014-07-16 Tom Tromey <tromey@redhat.com>
2483 * target-delegates.c: Rebuild.
2485 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2487 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2488 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2489 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2490 (avr_pointer_to_address): Likewise.
2491 (avr_address_class_type_flags): New function.
2492 (avr_address_class_type_flags_to_name): Likewise.
2493 (avr_address_class_name_to_type_flags): Likewise.
2494 (avr_gdbarch_init): Set address_class_type_flags,
2495 address_class_type_flags_to_name and
2496 address_class_name_to_type_flags.
2498 2014-07-15 Pedro Alves <palves@redhat.com>
2500 * linux-nat.c (kill_callback): Save errno and work with saved
2503 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2505 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2507 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2509 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2510 breakpoint support correctly.
2512 2014-07-14 Pedro Alves <palves@redhat.com>
2514 * utils.c (prompt_for_continue): Call target_terminal_ours.
2516 2014-07-14 Pedro Alves <palves@redhat.com>
2518 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2519 catch_errors. Don't re-enable stdin or notify observers where,
2521 (fetch_inferior_event_wrapper): Delete.
2523 2014-07-14 Pedro Alves <palves@redhat.com>
2526 * top.c: Include "inf-loop.h".
2527 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2529 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2531 (gdb_readline_wrapper): Store whether the target is async, and
2534 2014-07-14 Pedro Alves <palves@redhat.com>
2537 * top.c (gdb_readline_wrapper_line): Tweak comment.
2538 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2539 the input handler callback.
2541 2014-07-14 Pedro Alves <palves@redhat.com>
2544 * main.c: Include event-top.h.
2545 (handle_command_errors): New function.
2546 (catch_command_errors, catch_command_errors_const): Use it.
2548 2014-07-14 Pedro Alves <palves@redhat.com>
2550 * exceptions.c (catch_command_errors, catch_command_errors_const):
2552 * exceptions.h (catch_command_errors_ftype)
2553 (catch_command_errors_const_ftype): Moved to main.c.
2554 (catch_command_errors, catch_command_errors_const): Delete
2556 * main.c (catch_command_errors_ftype)
2557 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2558 (catch_command_errors, catch_command_errors_const)): Moved here
2559 from exceptions.c and make static.
2561 2014-07-14 Pedro Alves <palves@redhat.com>
2563 * exceptions.c (print_any_exception): Delete.
2564 (catch_exceptions_with_msg): Use exception_print instead of
2565 print_any_exception.
2566 (catch_errors): Use exception_fprintf instead of
2567 print_any_exception.
2568 (catch_command_errors, catch_command_errors_const): Use
2569 exception_print instead of print_any_exception.
2571 2014-07-14 Pedro Alves <palves@redhat.com>
2573 * infcall.c (run_inferior_call): Set 'sync_execution' while
2574 running the inferior call.
2576 2014-07-14 Pedro Alves <palves@redhat.com>
2578 * value.c (value_contents_equal): Delete function.
2579 * value.h (value_contents_equal): Delete declaration.
2581 2014-07-14 Tom Tromey <tromey@redhat.com>
2584 * gdbtypes.c (is_dynamic_type_internal): New function, from
2586 (is_dynamic_type): Rewrite.
2587 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2588 (resolve_dynamic_struct): Likewise.
2589 (resolve_dynamic_type_internal): New function, from
2590 resolve_dynamic_type.
2591 (resolve_dynamic_type): Rewrite.
2593 2014-07-14 Tom Tromey <tromey@redhat.com>
2595 * target.c (target_require_runnable): Also check record_stratum.
2598 2014-07-11 Yao Qi <yao@codesourcery.com>
2600 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2601 thumb_instruction_restores_sp return true.
2603 2014-07-11 Yao Qi <yao@codesourcery.com>
2605 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2606 (thumb_in_function_epilogue_p): Call
2607 thumb_instruction_restores_sp.
2609 2014-07-11 Yao Qi <yao@codesourcery.com>
2611 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2613 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2615 2014-07-11 Gary Benson <gbenson@redhat.com>
2617 * amd64-linux-nat.c (gdbcore.h): Remove include.
2618 (regset.h): Likewise.
2619 (nat/linux-btrace.h): Likewise.
2620 (btrace.h): Likewise.
2621 (gdb_assert.h): Likewise.
2622 (string.h): Likewise.
2623 (sys/uio.h): Likewise.
2624 (sys/debugreg.h): Likewise.
2625 (sys/syscall.h): Likewise.
2626 (sys/procfs.h): Likewise.
2627 (sys/user.h): Likewise.
2628 (asm/ptrace.h): Likewise.
2629 (i386-nat.h): Likewise.
2630 * i386-linux-nat.c (i386-nat.h): Likewise.
2631 (regset.h): Likewise.
2632 (target.h): Likewise.
2633 (linux-nat.h): Likewise.
2634 (nat/linux-btrace.h): Likewise.
2635 (btrace.h): Likewise.
2636 (gdb_assert.h): Likewise.
2637 (string.h): Likewise.
2638 (sys/uio.h): Likewise.
2639 (sys/user.h): Likewise.
2640 (sys/procfs.h): Likewise.
2641 (sys/reg.h): Likewise.
2642 (sys/debugreg.h): Likewise.
2643 (ORIG_EAX): Remove definition.
2645 2014-07-11 Gary Benson <gbenson@redhat.com>
2647 * i386-linux-nat.h: New file.
2648 * x86-linux-nat.h: Likewise.
2649 * x86-linux-nat.c: Likewise.
2650 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2651 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2652 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2653 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2654 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2655 (PTRACE_SETREGSET): Likewise.
2656 (arch_lwp_info): Now in x86-linux-nat.c.
2657 (have_ptrace_getregset): Now in x86-linux-nat.h.
2658 (x86_linux_dr_get): Now in x86-linux-nat.c.
2659 (x86_linux_dr_set): Likewise.
2660 (x86_linux_dr_get_addr): Likewise.
2661 (x86_linux_dr_get_control): Likewise.
2662 (x86_linux_dr_get_status): Likewise.
2663 (update_debug_registers_callback): Likewise.
2664 (x86_linux_dr_set_control): Likewise.
2665 (x86_linux_dr_set_addr): Likewise.
2666 (x86_linux_prepare_to_resume): Likewise.
2667 (x86_linux_new_thread): Likewise.
2668 (x86_linux_new_fork): Likewise.
2669 (x86_linux_get_thread_area): Likewise.
2670 (super_post_startup_inferior): Likewise.
2671 (x86_linux_child_post_startup_inferior): Likewise.
2672 (AMD64_LINUX_USER64_CS): Likewise.
2673 (AMD64_LINUX_X32_DS): Likewise.
2674 (x86_linux_read_description): Likewise.
2675 (x86_linux_enable_btrace): Likewise.
2676 (x86_linux_disable_btrace): Likewise.
2677 (x86_linux_teardown_btrace): Likewise.
2678 (x86_linux_read_btrace): Likewise.
2679 (x86_linux_create_target): Likewise.
2680 (x86_linux_add_target): Likewise.
2681 * i386-linux-nat.c (x86-linux-nat.h): New include.
2682 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2683 (PTRACE_SETREGSET): Likewise.
2684 (arch_lwp_info): Now in x86-linux-nat.c.
2685 (have_ptrace_getregset): Now in x86-linux-nat.h.
2686 (x86_linux_dr_get): Now in x86-linux-nat.c.
2687 (x86_linux_dr_set): Likewise.
2688 (x86_linux_dr_get_addr): Likewise.
2689 (x86_linux_dr_get_control): Likewise.
2690 (x86_linux_dr_get_status): Likewise.
2691 (update_debug_registers_callback): Likewise.
2692 (x86_linux_dr_set_control): Likewise.
2693 (x86_linux_dr_set_addr): Likewise.
2694 (x86_linux_prepare_to_resume): Likewise.
2695 (x86_linux_new_thread): Likewise.
2696 (x86_linux_new_fork): Likewise.
2697 (x86_linux_get_thread_area): Likewise.
2698 (super_post_startup_inferior): Likewise.
2699 (x86_linux_child_post_startup_inferior): Likewise.
2700 (AMD64_LINUX_USER64_CS): Likewise.
2701 (AMD64_LINUX_X32_DS): Likewise.
2702 (x86_linux_read_description): Likewise.
2703 (x86_linux_enable_btrace): Likewise.
2704 (x86_linux_disable_btrace): Likewise.
2705 (x86_linux_teardown_btrace): Likewise.
2706 (x86_linux_read_btrace): Likewise.
2707 (x86_linux_create_target): Likewise.
2708 (x86_linux_add_target): Likewise.
2710 2014-07-11 Gary Benson <gbenson@redhat.com>
2712 * amd64-linux-nat.c: Comment and whitespace changes.
2713 * i386-linux-nat.c: Comment and whitespace changes.
2715 2014-07-11 Gary Benson <gbenson@redhat.com>
2717 * amd64-linux-nat.c (x86_linux_create_target): New function.
2718 (x86_linux_add_target): Likewise.
2719 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2720 * i386-linux-nat.c (x86_linux_create_target): New function.
2721 (x86_linux_add_target): Likewise.
2722 (_initialize_i386_linux_nat): Delegate to the above new functions.
2724 2014-07-11 Gary Benson <gbenson@redhat.com>
2726 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2727 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2728 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2729 (ps_get_thread_area): Delegate to the above.
2731 2014-07-11 Gary Benson <gbenson@redhat.com>
2733 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2734 x86_linux_read_description. All uses updated. amd64-specific
2735 code conditionalized. Conditionalized i386-specific code added.
2736 Redundant cast removed.
2737 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2738 x86_linux_read_description. All uses updated. i386-specific
2739 code conditionalized. Conditionalized amd64-specific code added.
2740 One sizeof replaced with the actual type it is describing.
2742 2014-07-11 Gary Benson <gbenson@redhat.com>
2744 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2745 x86_linux_dr_get. All uses updated.
2746 (amd64_linux_dr_set): Renamed to
2747 x86_linux_dr_set. All uses updated.
2748 (amd64_linux_dr_get_addr): Renamed to
2749 x86_linux_dr_get_addr. All uses updated.
2750 (amd64_linux_dr_get_control): Renamed to
2751 x86_linux_dr_get_control. All uses updated.
2752 (amd64_linux_dr_get_status): Renamed to
2753 x86_linux_dr_get_status. All uses updated.
2754 (amd64_linux_dr_set_control): Renamed to
2755 x86_linux_dr_set_control. All uses updated.
2756 (amd64_linux_dr_set_addr): Renamed to
2757 x86_linux_dr_set_addr. All uses updated.
2758 (amd64_linux_prepare_to_resume): Renamed to
2759 x86_linux_prepare_to_resume. All uses updated.
2760 (amd64_linux_new_thread): Renamed to
2761 x86_linux_new_thread. All uses updated.
2762 (amd64_linux_new_fork): Renamed to
2763 x86_linux_new_fork. All uses updated.
2764 (amd64_linux_child_post_startup_inferior): Renamed to
2765 x86_linux_child_post_startup_inferior. All uses updated.
2766 (amd64_linux_enable_btrace): Renamed to
2767 x86_linux_enable_btrace. All uses updated.
2768 (amd64_linux_disable_btrace): Renamed to
2769 x86_linux_disable_btrace. All uses updated.
2770 (amd64_linux_teardown_btrace): Renamed to
2771 x86_linux_teardown_btrace. All uses updated.
2772 (amd64_linux_read_btrace): Renamed to
2773 x86_linux_read_btrace. All uses updated.
2774 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2775 x86_linux_dr_get. All uses updated.
2776 (i386_linux_dr_set): Renamed to
2777 x86_linux_dr_set. All uses updated.
2778 (i386_linux_dr_get_addr): Renamed to
2779 x86_linux_dr_get_addr. All uses updated.
2780 (i386_linux_dr_get_control): Renamed to
2781 x86_linux_dr_get_control. All uses updated.
2782 (i386_linux_dr_get_status): Renamed to
2783 x86_linux_dr_get_status. All uses updated.
2784 (i386_linux_dr_set_control): Renamed to
2785 x86_linux_dr_set_control. All uses updated.
2786 (i386_linux_dr_set_addr): Renamed to
2787 x86_linux_dr_set_addr. All uses updated.
2788 (i386_linux_prepare_to_resume): Renamed to
2789 x86_linux_prepare_to_resume. All uses updated.
2790 (i386_linux_new_thread): Renamed to
2791 x86_linux_new_thread. All uses updated.
2792 (i386_linux_new_fork): Renamed to
2793 x86_linux_new_fork. All uses updated.
2794 (i386_linux_child_post_startup_inferior): Renamed to
2795 x86_linux_child_post_startup_inferior. All uses updated.
2796 (i386_linux_enable_btrace): Renamed to
2797 x86_linux_enable_btrace. All uses updated.
2798 (i386_linux_disable_btrace): Renamed to
2799 x86_linux_disable_btrace. All uses updated.
2800 (i386_linux_teardown_btrace): Renamed to
2801 x86_linux_teardown_btrace. All uses updated.
2802 (i386_linux_read_btrace): Renamed to
2803 x86_linux_read_btrace. All uses updated.
2805 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2807 * remote.c (extended_remote_post_attach): New function.
2808 (init_extended_remote_ops): Install it as to_post_attach method.
2810 2014-07-09 Pedro Alves <palves@redhat.com>
2812 * infcmd.c (attach_command_post_wait): Don't call
2813 target_terminal_inferior here.
2814 (attach_command): Call it here instead.
2816 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2818 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2820 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2821 from varobj.c, with additional checks.
2822 (c_varobj_ops): Fill in is_path_expr_parent field.
2823 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2824 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2826 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2828 (varobj_default_is_path_expr_parent): New function.
2829 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2830 (varobj_default_is_path_expr_parent): Declare new function.
2832 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2834 * infcmd.c (finish_backward): Turn internal error into normal error.
2836 2014-07-07 Pedro Alves <palves@redhat.com>
2839 * remote.c (async_handle_remote_sigint)
2840 (async_handle_remote_sigint_twice): Call
2841 gdb_call_async_signal_handler instead of
2842 mark_async_signal_handler.
2844 2014-07-07 Tom Tromey <tromey@redhat.com>
2846 * target-delegates.c: Rebuild.
2847 * target.c (target_info_record): Remove.
2848 * record.c (info_record_command): Unconditionally call
2850 * target.h (struct target_ops) <to_info_record>: Use
2851 TARGET_DEFAULT_IGNORE.
2852 (target_info_record): Remove.
2854 2014-07-07 Tom Tromey <tromey@redhat.com>
2856 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2857 TARGET_DEFAULT_NORETURN.
2858 * target.c (generic_tls_error): New function.
2859 (target_translate_tls_address): Don't search target stack.
2860 * target-delegates.c: Rebuild.
2861 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2863 * linux-thread-db.c (thread_db_get_thread_local_address):
2864 Unconditionally call beneath target.
2866 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2868 * cli/cli-logging.c (pop_output_files): Assign targerr to
2871 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2873 * MAINTAINERS (Write After Approval): Update my email address.
2875 2014-07-02 Gary Benson <gbenson@redhat.com>
2877 * proc-service.c (ps_xfer_memory): Update comment.
2878 (ps_pstop): Remove unused function.
2879 (ps_pcontinue): Likewise.
2880 (ps_lstop): Likewise.
2881 (ps_lcontinue): Likewise.
2882 (ps_lgetxregsize): Likewise.
2883 (ps_lgetxregs): Likewise.
2884 (ps_lsetxregs): Likewise.
2885 (ps_plog): Likewise.
2886 (ps_ptread): Likewise.
2887 (ps_ptwrite): Likewise.
2889 2014-07-01 Mark Wielaard <mjw@redhat.com>
2891 * dwarf2read.c (add_array_cv_type): New function.
2892 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2893 (read_tag_volatile_type): Likewise.
2895 2014-07-01 Tom Tromey <tromey@redhat.com>
2897 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2898 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2899 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2900 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2901 * command.h (cmd_cfunc_ftype): Move earlier.
2902 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2903 (add_com, add_info): Use cmd_cfunc_ftype.
2905 2014-06-30 Tom Tromey <tromey@redhat.com>
2907 * symtab.c (operator_chars): Make parameters and return type
2909 (file_matches): Make "files" const.
2910 (struct search_symbols_data) <files>: Now const.
2911 (search_symbols): Make "regexp" and "files" parameters const.
2913 (symtab_symbol_info): Remove cast.
2914 (rbreak_command): Update.
2915 * symtab.h (search_symbols): Update.
2917 2014-06-27 Yao Qi <yao@codesourcery.com>
2919 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2920 Change parameter type to 'struct thread_info *'. Caller
2922 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2924 * dummy-frame.c (struct dummy_frame_id): New.
2925 (dummy_frame_id_eq): New function.
2926 (struct dummy_frame) <id>: Change its type to 'struct
2928 (dummy_frame_push): Add parameter ptid and save it in
2930 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2932 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2934 (lookup_dummy_frame): Change parameter type to 'struct
2935 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2936 instead of frame_id_eq.
2937 (dummy_frame_pop): Add parameter ptid. Callers updated.
2938 Update comments. Compose dummy_frame_id and pass it to
2940 (dummy_frame_discard): Add parameter ptid.
2941 (dummy_frame_sniffer): Compose dummy_frame_id and call
2942 dummy_frame_id_eq instead of frame_id_eq.
2943 (fprint_dummy_frames): Print ptid.
2944 * dummy-frame.h: Remove comments.
2945 (dummy_frame_push): Add ptid in declaration.
2946 (dummy_frame_pop, dummy_frame_discard): Likewise.
2948 2014-06-26 Tom Tromey <tromey@redhat.com>
2950 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2951 * command.h (error_no_arg): Update.
2953 2014-06-26 Tom Tromey <tromey@redhat.com>
2955 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2956 (do_show_command): Make "arg" const.
2957 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2959 2014-06-26 Tom Tromey <tromey@redhat.com>
2961 * record-full.c (record_full_get_bookmark): Make "args" const.
2962 (record_full_goto_bookmark): Make "raw_bookmark" const.
2963 * record.c (record_goto): New function.
2964 (cmd_record_goto): Use it. Now static.
2965 * record.h (record_goto): Declare.
2966 (cmd_record_goto): Remove declaration.
2967 * target-delegates.c: Rebuild.
2968 * target.h (struct target_ops) <to_get_bookmark,
2969 to_goto_bookmark>: Make parameter const.
2971 2014-06-26 Tom Tromey <tromey@redhat.com>
2973 * defs.h (generic_load): Update.
2974 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2975 * monitor.c (monitor_load): Make "args" const.
2976 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2977 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2979 (mips_load): Make "file" const.
2980 * remote-sim.c (gdbsim_load): Make "args" const.
2981 * remote.c (remote_load): Make "name" const.
2982 * symfile.c (generic_load): Make "args" const.
2983 * target-delegates.c: Rebuild.
2984 * target.c (target_load): Make "arg" const.
2985 (debug_to_load): Make "args" const.
2986 * target.h (struct target_ops) <to_load>: Make parameter const.
2987 (target_load): Update.
2989 2014-06-26 Tom Tromey <tromey@redhat.com>
2992 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2993 (dwarf2_physname, read_partial_die)
2994 (guess_partial_die_structure_name, fixup_partial_die)
2995 (guess_full_die_structure_name, anonymous_struct_prefix)
2996 (dwarf2_name): Use per-BFD obstack.
2998 2014-06-26 Yao Qi <yao@codesourcery.com>
3000 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3001 dummyframe and this_id into inner block below.
3003 2014-06-26 Yao Qi <yao@codesourcery.com>
3005 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3006 with "signal_pass[0]" in the initialization of signal_pass.
3008 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3010 * record-btrace.c (record_btrace_generating_corefile)
3011 (record_btrace_prepare_to_generate_core)
3012 (record_btrace_done_generating_core): New.
3013 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3014 (record_btrace_store_registers, record_btrace_prepare_to_store):
3015 Forward request when generating a core file.
3016 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3017 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3018 to_done_generating_core.
3020 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3022 * target.h (target_ops) <to_prepare_to_generate_core>
3023 <to_done_generating_core>: New.
3024 (target_prepare_to_generate_core, target_done_generating_core): New.
3025 * target.c (target_prepare_to_generate_core)
3026 (target_done_generating_core): New.
3027 * target-delegates.c: Regenerate.
3028 * gcore.c: (write_gcore_file): Rename to ...
3029 (write_gcore_file_1): ...this.
3030 (write_gcore_file): Call target_prepare_to_generate_core
3031 and target_done_generating_core.
3033 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3035 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3036 * gcore.c (write_gcore_file): Free memory returned from
3037 make_corefile_notes.
3038 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3039 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3041 2014-06-24 Yao Qi <yao@codesourcery.com>
3043 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3044 (arm_linux_init_abi): Set skip_trampoline_code with
3045 gdbarch_skip_trampoline_code instead of
3046 find_solib_trampoline_target.
3048 2014-06-24 Yao Qi <yao@codesourcery.com>
3050 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3051 arm_skip_bx_reg returns non-zero.
3053 2014-06-24 Yao Qi <yao@codesourcery.com>
3055 * arm-tdep.c (arm_skip_bx_reg): New function.
3056 (arm_skip_stub): Call arm_skip_bx_reg.
3058 2014-06-23 Don Breazeal <donb@codesourcery.com>
3060 * MAINTAINERS: Add myself as write-after-approval maintainer.
3062 2014-06-23 Pedro Alves <palves@redhat.com>
3064 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3065 DR_CONTROL before setting DR0..DR3.
3066 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3067 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3068 bits of DR_CONTROL related to the debug register slot being
3069 disabled. If all slots are vacant, clear local slowdown as well,
3070 and assert DR_CONTROL is 0.
3072 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3074 * python/lib/gdb/command/xmethods.py
3075 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3076 current progspace only if the string "progspace" matches LOCUS_RE.
3078 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3080 Fix --with-system-readline with readline-6.3 patch 5.
3081 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3082 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3085 2014-06-20 Tom Tromey <tromey@redhat.com>
3087 * dwarf2read.c (dw2_get_real_path): Use correct type in
3089 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3091 2014-06-20 Gary Benson <gbenson@redhat.com>
3093 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3094 * common/glibc_thread_db.h: Likewise.
3095 * common/i386-cpuid.h: Likewise.
3096 * common/i386-gcc-cpuid.h: Likewise.
3097 * common/linux-btrace.h: Likewise.
3098 * common/linux-osdata.h: Likewise.
3099 * common/linux-procfs.h: Likewise.
3100 * common/linux-ptrace.h: Likewise.
3101 * common/mips-linux-watch.h: Likewise.
3102 * common/linux-btrace.c: Moved to nat.
3103 * common/linux-osdata.c: Likewise.
3104 * common/linux-procfs.c: Likewise.
3105 * common/linux-ptrace.c: Likewise.
3106 * common/mips-linux-watch.c: Likewise.
3107 * nat/gdb_thread_db.h: Moved from common.
3108 * nat/glibc_thread_db.h: Likewise.
3109 * nat/i386-cpuid.h: Likewise.
3110 * nat/i386-gcc-cpuid.h: Likewise.
3111 * nat/linux-btrace.c: Likewise.
3112 * nat/linux-btrace.h: Likewise.
3113 * nat/linux-osdata.c: Likewise.
3114 * nat/linux-osdata.h: Likewise.
3115 * nat/linux-procfs.c: Likewise.
3116 * nat/linux-procfs.h: Likewise.
3117 * nat/linux-ptrace.c: Likewise.
3118 * nat/linux-ptrace.h: Likewise.
3119 * nat/mips-linux-watch.c: Likewise.
3120 * nat/mips-linux-watch.h: Likewise.
3121 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3122 (object file files): Reordered.
3123 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3124 of glibc_thread_db.h.
3126 2014-06-20 Gary Benson <gbenson@redhat.com>
3128 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3129 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3130 (i386_dr_low): Likewise.
3131 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3132 (i386_dr_low_set_addr): Likewise.
3133 (i386_dr_low_get_addr): Likewise.
3134 (i386_dr_low_can_set_control): Likewise.
3135 (i386_dr_low_set_control): Likewise.
3136 (i386_dr_low_get_control): Likewise.
3137 (i386_dr_low_get_status): Likewise.
3138 (i386_get_debug_register_length): Likewise.
3139 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3140 (i386_dr_low): Likewise.
3141 * nat/i386-dregs.c (i386-low.h): Remove include.
3142 (i386-nat.h): Likewise.
3143 (nat/i386-dregs.h): New include.
3144 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3145 (i386_dr_low_set_addr): Likewise.
3146 (i386_dr_low_get_addr): Likewise.
3147 (i386_dr_low_can_set_control): Likewise.
3148 (i386_dr_low_set_control): Likewise.
3149 (i386_dr_low_get_control): Likewise.
3150 (i386_dr_low_get_status): Likewise.
3151 (i386_get_debug_register_length): Likewise.
3152 (debug_hw_points): Likewise.
3154 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3156 * Makefile.in (SFILES): Add d-exp.y.
3157 (YYFILES): Add d-exp.c.
3158 (YYOBJ): Add d-exp.o.
3159 (local-maintainer-clean): Delete d-exp.c.
3160 * d-exp.y: New file.
3161 * d-lang.h (d_parse): New declaration.
3162 (d_error): New declaration.
3163 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3164 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3165 PREC_ORDER operators.
3166 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3168 2014-06-19 Yao Qi <yao@codesourcery.com>
3170 * gdbthread.h (any_running): Remove the declaration.
3171 * thread.c (any_running): Remove.
3173 2014-06-19 Yao Qi <yao@codesourcery.com>
3175 * gdbthread.h (struct thread_info) <state>: Change its type to
3176 'enum thread_state'. Update comments.
3178 2014-06-19 Pedro Alves <palves@redhat.com>
3180 * gdbthread.h (ALL_THREADS): Delete.
3181 (ALL_NON_EXITED_THREADS): New macro.
3182 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3183 instead of ALL_THREADS.
3184 * infrun.c (find_thread_needs_step_over)
3185 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3186 instead of ALL_THREADS.
3187 * record-btrace.c (record_btrace_open)
3188 (record_btrace_stop_recording, record_btrace_close)
3189 (record_btrace_is_replaying, record_btrace_resume)
3190 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3191 * remote.c (append_pending_thread_resumptions): Likewise.
3192 * thread.c (thread_apply_all_command): Likewise.
3194 2014-06-19 Gary Benson <gbenson@redhat.com>
3196 * i386-nat.c (i386_stopped_by_watchpoint):
3197 Use i386_dr_stopped_by_watchpoint.
3198 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3199 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3201 2014-06-19 Gary Benson <gbenson@redhat.com>
3203 * nat/i386-dregs.c: New file.
3204 * Makefile.in (i386-dregs.o): New rule.
3205 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3206 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3207 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3208 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3209 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3210 * config/i386/go32.mh (NATDEPFILES): Likewise.
3211 * config/i386/linux.mh (NATDEPFILES): Likewise.
3212 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3213 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3214 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3215 * i386-nat.h (debug_hw_points): New declaration.
3216 * i386-nat.c (breakpoint.h): Remove include.
3217 (command.h): Likewise.
3218 (target.h): Likewise.
3219 (gdb_assert.h): Likewise.
3220 (debug_hw_points): Made nonstatic.
3221 (debug_printf): Now in i386-dregs.c.
3222 (TARGET_HAS_DR_LEN_8): Likewise.
3223 (DR_CONTROL_SHIFT): Likewise.
3224 (DR_CONTROL_SIZE): Likewise.
3225 (DR_RW_EXECUTE): Likewise.
3226 (DR_RW_WRITE): Likewise.
3227 (DR_RW_READ): Likewise.
3228 (DR_RW_IORW): Likewise.
3229 (DR_LEN_1): Likewise.
3230 (DR_LEN_2): Likewise.
3231 (DR_LEN_4): Likewise.
3232 (DR_LEN_8): Likewise.
3233 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3234 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3235 (DR_ENABLE_SIZE): Likewise.
3236 (DR_LOCAL_SLOWDOWN): Likewise.
3237 (DR_GLOBAL_SLOWDOWN): Likewise.
3238 (DR_CONTROL_RESERVED): Likewise.
3239 (I386_DR_CONTROL_MASK): Likewise.
3240 (I386_DR_VACANT): Likewise.
3241 (I386_DR_LOCAL_ENABLE): Likewise.
3242 (I386_DR_GLOBAL_ENABLE): Likewise.
3243 (I386_DR_DISABLE): Likewise.
3244 (I386_DR_SET_RW_LEN): Likewise.
3245 (I386_DR_GET_RW_LEN): Likewise.
3246 (I386_DR_WATCH_HIT): Likewise.
3247 (i386_wp_op_t): Likewise.
3248 (i386_show_dr): Likewise.
3249 (i386_length_and_rw_bits): Likewise.
3250 (i386_insert_aligned_watchpoint): Likewise.
3251 (i386_remove_aligned_watchpoint): Likewise.
3252 (i386_handle_nonaligned_watchpoint): Likewise.
3253 (i386_update_inferior_debug_regs): Likewise.
3254 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3255 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3256 (i386_region_ok_for_watchpoint):
3257 Use i386_dr_region_ok_for_watchpoint.
3258 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3260 2014-06-19 Gary Benson <gbenson@redhat.com>
3262 * i386-nat.c (i386_insert_hw_breakpoint): Use
3263 i386_insert_watchpoint.
3264 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3266 2014-06-19 Gary Benson <gbenson@redhat.com>
3268 * i386-nat.c (i386_dr_show): Renamed to
3269 i386_show_dr and made static. All uses updated.
3270 (i386_dr_length_and_rw_bits): Renamed to
3271 i386_length_and_rw_bits and made static.
3273 (i386_dr_insert_aligned_watchpoint): Renamed to
3274 i386_insert_aligned_watchpoint and made static.
3276 (i386_dr_remove_aligned_watchpoint): Renamed to
3277 i386_remove_aligned_watchpoint and made static.
3279 (i386_dr_update_inferior_debug_regs): Renamed to
3280 i386_update_inferior_debug_regs and made static.
3282 * nat/i386-dregs.h (i386_dr_show): Removed.
3283 (i386_dr_length_and_rw_bits): Likewise.
3284 (i386_dr_insert_aligned_watchpoint): Likewise.
3285 (i386_dr_remove_aligned_watchpoint): Likewise.
3286 (i386_dr_update_inferior_debug_regs): Likewise.
3288 2014-06-19 Gary Benson <gbenson@redhat.com>
3290 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3291 * configure: Regenerate.
3292 * config.in: Likewise.
3293 * main.c (signal.h): New include.
3294 (setup_alternate_signal_stack): New function.
3295 (captured_main): Call the above.
3296 * cp-support.c (signal.h): New include.
3297 (catch_demangler_crashes): New flag.
3298 (SIGJMP_BUF): New define.
3299 (SIGSETJMP): Likewise.
3300 (SIGLONGJMP): Likewise.
3301 (gdb_demangle_jmp_buf): New static global.
3302 (gdb_demangle_attempt_core_dump): Likewise.
3303 (gdb_demangle_signal_handler): New function.
3304 (gdb_demangle): If catch_demangler_crashes is set, install the
3305 above signal handler before calling bfd_demangle, and restore
3306 the original signal handler afterwards. Display the offending
3307 symbol and call demangler_warning the first time a segmentation
3309 (_initialize_cp_support): New maint set/show command.
3311 2014-06-19 Gary Benson <gbenson@redhat.com>
3313 * utils.h (resource_limit_kind): New enum.
3314 (can_dump_core): New declaration.
3315 (warn_cant_dump_core): Likewise.
3316 (dump_core): Likewise.
3317 * utils.c (dump_core): Made nonstatic. Added new
3318 parameter "limit_kind".
3319 (can_dump_core): Made nonstatic. Moved printing code to...
3320 (warn_cant_dump_core): New function.
3321 (can_dump_core_warn): Likewise.
3322 (internal_vproblem): Replace calls to can_dump_core with
3323 calls to can_dump_core_warn. Supply new argument to each.
3325 2014-06-19 Gary Benson <gbenson@redhat.com>
3327 * utils.h (demangler_vwarning): New declaration.
3328 (demangler_warning): Likewise.
3329 * utils.c (struct internal_problem)
3330 <user_settable_should_quit>: New field.
3331 <user_settable_should_dump_core>: Likewise
3332 (internal_error_problem): Add values for above new fields.
3333 (internal_warning_problem): Likewise.
3334 (demangler_warning_problem): New static global.
3335 (demangler_vwarning): New function.
3336 (demangler_warning): Likewise.
3337 (add_internal_problem_command): Selectively add commands.
3338 (_initialize_utils): New internal problem command.
3339 * maint.c (maintenance_demangler_warning): New function.
3340 (_initialize_maint_cmds): New command.
3342 2014-06-18 Tom Tromey <tromey@redhat.com>
3344 * f-valprint.c (info_common_command_for_block): Update.
3345 * symtab.h (struct general_symbol_info) <common_block>: Now
3348 2014-06-18 Tom Tromey <tromey@redhat.com>
3350 * symtab.h (struct symtab) <blockvector>: Now const.
3351 * ada-lang.c (ada_add_global_exceptions): Update.
3352 * buildsym.c (augment_type_symtab): Update.
3353 * dwarf2read.c (dw2_lookup_symbol): Update.
3354 * jit.c (finalize_symtab): Update.
3355 * jv-lang.c (add_class_symtab_symbol): Update.
3356 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3358 * objfiles.c (objfile_relocate1): Update.
3359 * psymtab.c (lookup_symbol_aux_psymtabs)
3360 (maintenance_check_psymtabs): Update.
3361 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3363 * spu-tdep.c (spu_catch_start): Update.
3364 * symmisc.c (dump_symtab_1): Update.
3365 * symtab.c (lookup_global_symbol_from_objfile)
3366 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3367 (basic_lookup_transparent_type_quick)
3368 (basic_lookup_transparent_type, find_pc_sect_symtab)
3369 (find_pc_sect_line, search_symbols): Update.
3370 * block.c (find_block_in_blockvector): Make "bl" const.
3371 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3373 (blockvector_contains_pc): Make "bv" const.
3374 (block_for_pc_sect): Update.
3375 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3376 (blockvector_contains_pc): Update.
3377 * breakpoint.c (resolve_sal_pc): Update.
3378 * inline-frame.c (block_starting_point_at): Update.
3380 2014-06-18 Tom Tromey <tromey@redhat.com>
3382 * completer.c (complete_line): Make "line_buffer" const.
3383 * completer.h (complete_line): Update.
3385 2014-06-18 Tom Tromey <tromey@redhat.com>
3387 * symtab.c (add_macro_name): Remove unneeded cast.
3389 2014-06-18 Tom Tromey <tromey@redhat.com>
3391 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3392 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3394 2014-06-18 Tom Tromey <tromey@redhat.com>
3396 * probe.c (info_probes_for_ops): Make "arg" const.
3397 * probe.h (info_probes_for_ops): Update.
3399 2014-06-18 Tom Tromey <tromey@redhat.com>
3401 * varobj.c (varobj_create): Update.
3402 * valops.c (value_of_this): Update.
3403 * tracepoint.c (add_local_symbols, scope_info): Update.
3404 * symtab.h (struct general_symbol_info) <block>: Now const.
3405 * symtab.c (skip_prologue_sal)
3406 (default_make_symbol_completion_list_break_on)
3407 (skip_prologue_using_sal): Update.
3408 * stack.h (iterate_over_block_locals)
3409 (iterate_over_block_local_vars): Update.
3410 * stack.c (print_frame_args): Update.
3411 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3413 (get_selected_block): Make return type const.
3414 * python/py-frame.c (frapy_block): Update.
3415 * python/py-block.c (gdbpy_block_for_pc): Update.
3416 * p-exp.y (%union) <bval>: Now const.
3417 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3418 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3419 * m2-exp.y (%union) <bval>: Now const.
3420 * linespec.c (get_current_search_block): Make return type const.
3421 (create_sals_line_offset, find_label_symbols): Update.
3422 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3424 (block_starting_point_at): Make "block" const.
3425 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3426 (check_exception_resume): Update.
3427 * guile/scm-frame.c (gdbscm_frame_block): Update.
3428 * guile/scm-block.c (gdbscm_lookup_block): Update.
3429 * frame.h (get_frame_block): Update.
3430 (get_selected_block): Make return type const.
3431 * frame.c (frame_id_inner): Update.
3432 * f-valprint.c (info_common_command_for_block)
3433 (info_common_command): Update.
3434 * dwarf2loc.c (dwarf2_find_location_expression)
3435 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3436 (locexpr_describe_location_piece): Update.
3437 * c-exp.y (%union) <bval>: Now const.
3438 * breakpoint.c (resolve_sal_pc): Update.
3439 * blockframe.c (get_frame_block):Make return type const.
3440 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3441 (block_innermost_frame): Update.
3442 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3443 (block_for_pc, block_for_pc_sect): Update.
3444 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3446 (block_for_pc_sect, block_for_pc): Make return type const.
3447 * ax-gdb.c (gen_expr): Update.
3448 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3449 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3450 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3451 (ada_read_var_value): Update.
3452 * ada-exp.y (struct name_info) <block>: Now const.
3454 (block_lookup): Constify.
3456 2014-06-18 Gary Benson <gbenson@redhat.com>
3458 * nat/i386-dregs.h: New file.
3459 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3460 * i386-nat.h (i386-dregs.h): New include.
3461 (DR_FIRSTADDR): Now in i386-dregs.h.
3462 (DR_LASTADDR): Likewise.
3463 (DR_NADDR): Likewise.
3464 (DR_STATUS): Likewise.
3465 (DR_CONTROL): Likewise.
3466 (i386_debug_reg_state): Likewise.
3467 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3469 2014-06-18 Don Breazeal <donb@codesourcery.com>
3471 * breakpoint.c (set_longjmp_breakpoint): Call
3472 momentary_breakpoint_from_master with additional argument.
3473 (set_longjmp_breakpoint_for_call_dummy): Call
3474 momentary_breakpoint_from_master with additional argument.
3475 (set_std_terminate_breakpoint): Call
3476 momentary_breakpoint_from_master with additional argument.
3477 (momentary_breakpoint_from_master): Add argument to function
3478 definition and use it to initialize structure member flag.
3479 (clone_momentary_breakpoint): Call
3480 momentary_breakpoint_from_master with additional argument.
3481 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3482 member flags set in momentary_breakpoint_from_master.
3484 2014-06-18 Gary Benson <gbenson@redhat.com>
3486 * i386-nat.c (i386_show_dr): Renamed to
3487 i386_dr_show and made nonstatic. All uses updated.
3488 (i386_length_and_rw_bits): Renamed to
3489 i386_dr_length_and_rw_bits and made nonstatic.
3491 (i386_insert_aligned_watchpoint): Renamed to
3492 i386_dr_insert_aligned_watchpoint and made nonstatic.
3494 (i386_remove_aligned_watchpoint): Renamed to
3495 i386_dr_remove_aligned_watchpoint and made nonstatic.
3497 (i386_update_inferior_debug_regs): Renamed to
3498 i386_dr_update_inferior_debug_regs and made nonstatic.
3501 2014-06-18 Gary Benson <gbenson@redhat.com>
3503 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3504 (i386_dr_low_can_set_control): Likewise.
3505 (i386_dr_low_set_addr): Likewise.
3506 (i386_dr_low_set_control): Likewise.
3507 (i386_dr_low_get_addr): Likewise.
3508 (i386_dr_low_get_status): Likewise.
3509 (i386_dr_low_get_control): Likewise.
3510 (i386_insert_aligned_watchpoint): Use new macros.
3511 (i386_update_inferior_debug_regs): Likewise.
3512 (i386_stopped_data_address): Likewise.
3514 2014-06-18 Gary Benson <gbenson@redhat.com>
3516 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3517 New parameter. All uses updated.
3519 2014-06-18 Gary Benson <gbenson@redhat.com>
3521 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3524 2014-06-18 Gary Benson <gbenson@redhat.com>
3526 * i386-nat.c (debug_printf): New macro.
3527 (i386_get_debug_register_length): Likewise.
3528 (TARGET_HAS_DR_LEN_8): Use above macro.
3529 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3530 and printf_unfiltered. Use phex to format values.
3532 2014-06-18 Gary Benson <gbenson@redhat.com>
3534 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3537 2014-06-18 Gary Benson <gbenson@redhat.com>
3539 * i386-nat.c: Comment changes.
3541 2014-06-18 Gary Benson <gbenson@redhat.com>
3543 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3545 2014-06-18 Gary Benson <gbenson@redhat.com>
3547 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3548 (i386_insert_aligned_watchpoint): Likewise.
3549 (i386_remove_aligned_watchpoint): Likewise.
3550 (i386_handle_nonaligned_watchpoint): Likewise.
3552 2014-06-18 Gary Benson <gbenson@redhat.com>
3554 * i386-nat.c: Whitespace changes.
3556 2014-06-17 Samuel Bronson <naesten@gmail.com>
3558 * MAINTAINERS: Update Roland McGrath's email address.
3559 Thanks to Sergio Durigan Junior for pointing out that he left
3560 Red Hat a while ago, and giving me a current address.
3562 2014-06-17 Tom Tromey <tromey@redhat.com>
3564 * utils.h (savestring): Remove declaration.
3566 2014-06-17 Tom Tromey <tromey@redhat.com>
3568 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3570 2014-06-16 Keith Seitz <keiths@redhat.com>
3573 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3574 to update the varobj if inferior_ptid is null_ptid.
3576 2014-06-16 Tom Tromey <tromey@redhat.com>
3578 * target.h (struct target_ops) <to_info_proc>: Make parameter
3580 (target_info_proc): Update.
3581 * target.c (target_info_proc): Make "args" const.
3582 * procfs.c (procfs_info_proc): Update.
3583 * linux-tdep.c (linux_info_proc): Update.
3584 (linux_core_info_proc_mappings): Make "args" const.
3585 (linux_core_info_proc): Update.
3586 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3587 * gdbarch.c: Rebuild.
3588 * gdbarch.h: Rebuild.
3589 * corelow.c (core_info_proc): Update.
3591 2014-06-16 Tom Tromey <tromey@redhat.com>
3593 * target.h (struct target_ops) <to_disconnect>: Make parameter
3595 (target_disconnect): Update.
3596 * target.c (target_disconnect): Make "args" const.
3597 * target-delegates.c: Rebuild.
3598 * remote.c (remote_disconnect): Update.
3599 * record.h (record_disconnect): Update.
3600 * record.c (record_disconnect): Update.
3601 * inf-child.c (inf_child_disconnect): Update.
3603 2014-06-16 Tom Tromey <tromey@redhat.com>
3605 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3606 * target.c (debug_to_rcmd, default_rcmd): Update.
3607 * target-delegates.c: Rebuild.
3608 * remote.c (remote_rcmd): Update.
3609 * monitor.c (monitor_rcmd): Update.
3611 2014-06-16 Pedro Alves <palves@redhat.com>
3613 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3614 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3615 have OBJF_SHARED set.
3616 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3617 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3618 instead of OBJF_USERLOADED.
3619 * objfiles.h (OBJF_SHARED): Update comment.
3620 (userloaded_objfile_contains_address_p): Rename to ...
3621 (shared_objfile_contains_address_p): ... this, and update
3623 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3625 (remove_symbol_file_command): Skip objfiles that don't have
3628 2014-06-16 Tom Tromey <tromey@redhat.com>
3630 * minsyms.h (prim_record_minimal_symbol)
3631 (prim_record_minimal_symbol_and_info): Update comments.
3633 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3635 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3636 or --without-guile, according to how GDB was built.
3638 2014-06-13 Tom Tromey <tromey@redhat.com>
3640 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3642 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3644 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3646 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3647 help_list.Pass all_commands, not -1, to help_list.
3648 * cli/cli-dump.c (dump_command, append_command)
3649 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3650 (binary_dump_command, binary_append_command): Pass all_commands,
3651 not -1, to help_list.
3652 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3654 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3656 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3658 * top.c (set_history): Pass all_commands, not -1, to help_list.
3659 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3660 all_commands, not -1, to help_list.
3661 * symfile.c (overlay_command): Pass all_commands, not -1, to
3663 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3665 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3667 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3669 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3670 not -1, to help_list.
3671 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3672 not -1, to help_list.
3673 * maint.c (maintenance_command, maintenance_info_command)
3674 (maintenance_print_command, maintenance_set_cmd): Pass
3675 all_commands, not -1, to help_list.
3676 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3678 * language.c (set_check): Pass all_commands, not -1, to help_list.
3679 * infcmd.c (unset_command): Pass all_commands, not -1, to
3681 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3683 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3685 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3687 * breakpoint.c (save_command): Pass all_commands, not -1, to
3689 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3690 all_commands, not -1, to help_list.
3692 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3694 * regcache.c (struct register_to_invalidate): New structure.
3695 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3697 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3699 2014-06-12 Yao Qi <yao@codesourcery.com>
3701 * varobj.c (varobj_get_num_children): Call
3702 varobj_is_dynamic_p.
3703 (varobj_list_children): Likewise.
3704 (varobj_update): Likewise. Update comments.
3706 2014-06-12 Yao Qi <yao@codesourcery.com>
3708 * varobj.c (varobj_pretty_printed_p): Rename to ...
3709 (varobj_is_dynamic_p): ... this. New function.
3710 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3711 (varobj_is_dynamic_p): Declare.
3712 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3713 (mi_print_value_p, varobj_update_one): Likewise.
3715 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3716 Yao Qi <yao@codesourcery.com>
3718 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3719 (varobj_get_iterator): Wrap up code for pretty-printer by
3720 "#if HAVE_PYTHON" and "#endif".
3721 (update_dynamic_varobj_children): Likewise.
3723 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3724 Yao Qi <yao@codesourcery.com>
3726 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3727 gdb_python_initialized is false. Move some code from varobj.c.
3728 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3729 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3730 (struct varobj_item): Moved to varobj-iter.h".
3731 (varobj_clear_saved_item): New function.
3732 (update_dynamic_varobj_children): Move python-related code to
3734 (free_variable): Call varobj_clear_saved_item and
3737 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3738 Yao Qi <yao@codesourcery.com>
3740 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3741 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3742 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3743 (py-varobj.o): New rule.
3744 * python/py-varobj.c: New file.
3745 * python/python-internal.h (py_varobj_get_iterator): Declare.
3746 * varobj-iter.h: New file.
3747 * varobj.c: Include "varobj-iter.h"
3748 (struct varobj) <child_iter>: Change its type from "PyObject *"
3749 to "struct varobj_iter *".
3750 <saved_item>: Likewise.
3751 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3752 [HAVE_PYTHON] (varobj_get_iterator): New function.
3753 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3754 python-specific code to python/py-varobj.c.
3755 (install_visualizer): Call varobj_iter_delete instead of
3757 * varobj.h (varobj_ensure_python_env): Declare.
3759 2014-06-12 Yao Qi <yao@codesourcery.com>
3761 * varobj.c (struct varobj_item): New structure.
3762 (create_child_with_value): Update declaration.
3763 (varobj_add_child): Replace arguments 'name' and 'value' with
3764 'item'. All callers updated.
3765 (install_dynamic_child): Likewise.
3766 (update_dynamic_varobj_children): Likewise.
3767 (varobj_add_child): Likewise.
3768 (create_child_with_value): Likewise.
3770 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3772 * NEWS: Create a new section for the next release branch.
3773 Rename the section of the current branch, now that it has
3776 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3778 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3779 * version.in: Bump version to 7.8.50.DATE-cvs.
3781 2014-06-11 Pedro Alves <palves@redhat.com>
3784 * ser-mingw.c (net_windows_socket_check_pending): New function.
3785 (net_windows_select_thread): Ignore spurious wakeups. Use
3786 net_windows_socket_check_pending.
3787 (net_windows_wait_handle): Check for pending events with
3788 ioctlsocket, through net_windows_socket_check_pending, instead of
3789 checking the socket's event.
3791 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3793 * python/python-internal.h (gdb_PyObject_GetAttrString)
3794 (gdb_PyObject_HasAttrString): New inline function definitions.
3795 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3796 char * of the second argument to PyObject_GetAttrString.
3798 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3800 * serial.c (serial_write): Fix index of character to be printed
3801 in call to serial_logchar when serial debug traces are enabled.
3803 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3805 * gdbtypes (resolve_dynamic_range): Add function description.
3807 2014-06-09 Pedro Alves <palves@redhat.com>
3809 * linux-nat.c (linux_child_follow_fork): Initialize status with
3810 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3811 inner block. Only pass the signal to PTRACE_DETACH if in pass
3814 2014-06-09 Gary Benson <gbenson@redhat.com>
3816 * common/signals.c (gdb_signal_from_host): Reorder to separate
3817 the always-available ANSI-standard signals from the signals that
3819 (do_gdb_signal_to_host): Likewise.
3820 * proc-events.c (signal_table): Likewise.
3822 2014-06-08 Hui Zhu <hui@codesourcery.com>
3824 * common/linux-ptrace.c (linux_disable_event_reporting): New
3826 * common/linux-ptrace.h (linux_disable_event_reporting): New
3828 * linux-nat.c (linux_child_follow_fork): Do a single step before
3831 2014-06-07 Keith Seitz <keiths@redhat.com>
3835 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3836 from symbol_matches_domain in symtab.c. All local callers
3837 of symbol_matches_domain updated.
3838 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3839 search STRUCT_DOMAIN.
3840 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3841 independently. standard_lookup will do that automatically.
3842 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3843 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3844 (cp_lookup_symbol_in_namespace): Likewise.
3845 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3846 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3847 may return a STRUCT_DOMAIN match.
3848 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3849 * cp-support.c: Include language.h.
3850 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3852 * psymtab.c (match_partial_symbol): Compare the requested
3853 domain with the symbol's domain directly.
3854 (lookup_partial_symbol): Likewise.
3855 * symtab.c (lookup_symbol_in_language): Explain when/why
3856 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3857 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3858 appropriate languages.
3859 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3860 and moved to ada-lang.c
3861 (lookup_block_symbol): Explain that this function only returns
3862 symbol matching the requested DOMAIN.
3863 Compare the requested domain with the symbol's domain directly.
3864 (iterate_over_symbols): Compare the requested domain with the
3865 symbol's domain directly.
3866 * symtab.h (symbol_matches_domain): Remove.
3868 2014-06-06 Doug Evans <xdje42@gmail.com>
3870 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3871 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3872 (gdbscm_guile_version_is_at_least): Declare.
3873 (gdbscm_scm_string_to_int): Declare.
3874 * guile/guile.c (gdbscm_guile_major_version): New global.
3875 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3876 (guile_datadir): New static global.
3877 (gdbscm_guile_data_directory): New function.
3878 (initialize_scheme_side): Update.
3879 (misc_guile_functions): Add guile-data-directory.
3880 (initialize_gdb_module): Fetch guile version number.
3881 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3882 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3883 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3884 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3886 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3887 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3888 * guile/scm-value.c (gdbscm_value_to_string): Only call
3889 scm_port_conversion_strategy if Guile version >= 2.0.6.
3891 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3893 * main.c (print_gdb_help): Add -q and --silent.
3895 2014-06-06 Gary Benson <gbenson@redhat.com>
3897 * common/signals.c: Remove preprocessor conditionals for
3898 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3899 SIGSEGV and SIGTERM.
3900 * proc-events.c: Likewise.
3902 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3904 * symfile.c (symfile_free_objfile): Remove restriction to
3906 * symfile-mem.c (symbol_file_add_from_memory): Call
3907 add_target_sections_of_objfile.
3909 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3911 * guile/scm-value.c (gdbscm_history_append_x): Use
3912 'vlscm_get_value_smob_arg_unsafe' instead of
3913 'vlscm_scm_to_value'.
3915 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3918 * utils.c (printchar): Don't escape at all if quoter is NUL.
3919 Update function documentation to clarify effect of parameter
3921 * remote.c (escape_buffer): Pass '\\' as the quoter to
3922 fputstrn_unfiltered.
3923 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3924 generate the output.
3925 (mi_solib_unloaded): Same.
3927 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3929 * development.sh: Delete.
3930 * Makefile.in (config.status): Adjust dependency on development.sh.
3931 * configure.ac: Adjust development.sh source call.
3932 * configure: Regenerate.
3934 2014-06-04 Doug Evans <xdje42@gmail.com>
3936 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3937 is_scheme_bkpt, spec.
3938 (bpscm_make_breakpoint_smob): Initialize new members.
3939 (gdbscm_create_breakpoint_x): Split into two ...
3940 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3941 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3942 (scheme_function breakpoint_functions): Update.
3943 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3944 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3945 register-breakpoint!.
3947 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3950 * mem-break.c (z_type_supported): Return zero if
3951 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3953 2014-06-04 Tom Tromey <tromey@redhat.com>
3955 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3956 value_from_contents_and_address_unresolved.
3957 (ada_template_to_fixed_record_type_1): Likewise.
3958 (ada_which_variant_applies): Likewise.
3959 * value.h (value_from_contents_and_address_unresolved): Declare.
3960 * value.c (value_from_contents_and_address_unresolved): New
3962 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3963 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3964 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3966 2014-06-04 Tom Tromey <tromey@redhat.com>
3968 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3970 2014-06-04 Tom Tromey <tromey@redhat.com>
3972 * procfs.c (procfs_attach): Make "args" const.
3973 * windows-nat.c (windows_attach): Make "args" const.
3974 * nto-procfs.c (procfs_attach): Make "args" const.
3975 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3976 * go32-nat.c (go32_attach): Make "args" const.
3977 * gnu-nat.c (gnu_attach): Make "args" const.
3978 * darwin-nat.c (darwin_attach): Make "args" const.
3979 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3980 * linux-nat.c (linux_nat_attach): Make "args" const.
3981 * remote.c (extended_remote_attach_1, extended_remote_attach):
3983 * target.h (struct target_ops) <to_attach>: Make "args" const.
3984 (find_default_attach): Likewise.
3985 * utils.c (parse_pid_to_attach): Make "args" const.
3986 * utils.h (parse_pid_to_attach): Update.
3988 2014-06-04 Tom Tromey <tromey@redhat.com>
3990 * target-delegates.c: Rebuild.
3991 * target.c (default_thread_address_space): New function.
3992 (target_thread_address_space): Simplify.
3993 * target.h (struct target_ops) <to_thread_address_space>: Add
3994 TARGET_DEFAULT_FUNC.
3996 2014-06-04 Doug Evans <xdje42@gmail.com>
3998 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4000 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4002 * record-btrace.c: Include event-loop.h and inf-loop.h.
4003 (record_btrace_resume_exec_dir)
4004 (record_btrace_async_inferior_event_handler)
4005 (record_btrace_handle_async_inferior_event): New.
4006 (record_btrace_open): Create async event handler.
4007 (record_btrace_close): Delete async event handler.
4008 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4009 Mark async event handler.
4010 (record_btrace_execution_direction): New.
4011 (init_record_btrace_ops): Initialize to_execution_direction.
4013 2014-06-03 Doug Evans <xdje42@gmail.com>
4015 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4016 (gdbscm_make_parameter): Ditto.
4018 2014-06-03 Doug Evans <dje@google.com>
4020 * exec.c (exec_close_1): Call clear_section_table instead of
4021 resize_section_table.
4022 (clear_section_table): New function.
4023 (resize_section_table): Make static. Rename arg num_added to
4025 * exec.h (clear_section_table): Declare.
4026 (resize_section_table): Delete.
4027 * progspace.c (release_program_space): Call clear_section_table
4028 instead of resize_section_table.
4030 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4032 * NEWS (Python Scripting): Add entry about the new xmethods
4035 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4037 * python/py-xmethods.c: New file.
4038 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4039 (objfpy_dealloc): XDECREF on the new xmethods field.
4040 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4042 (objfpy_get_xmethods): New function.
4043 (objfile_getset): New entry 'xmethods'.
4044 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4045 (pspy_dealloc): XDECREF on the new xmethods field.
4046 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4048 (pspy_get_xmethods): New function.
4049 (pspace_getset): New entry 'xmethods'.
4050 * python/python-internal.h: Add declarations for new functions.
4051 * python/python.c (_initialize_python): Invoke
4052 gdbpy_initialize_xmethods.
4053 * python/lib/gdb/__init__.py (xmethods): New
4055 * python/lib/gdb/xmethod.py: New file.
4056 * python/lib/gdb/command/xmethods.py: New file.
4058 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4060 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4061 best match method returned by find_overload_match is an xmethod.
4062 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4063 the best matching operator returned by find_overload_match is an
4065 * valops.c: #include "extension.h".
4066 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4067 Return void. The list of matching source methods is returned in
4068 "fn_list" and a vector of matching debug method workers is
4069 returned in "xm_worker_vec". Update all callers.
4070 (value_find_oload_method_list): Likewise.
4071 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4072 non-NULL, then the index of the best matching method in this
4073 vector is returned. Update all callers.
4074 (find_overload_match): Include xmethods while performing overload
4077 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4079 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4080 * extension-priv.h (struct extension_language_ops): Add the
4082 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4083 get_matching_xmethod_workers, get_xmethod_argtypes,
4084 invoke_xmethod, free_xmethod_worker,
4085 free_xmethod_worker_vec): New functions.
4086 * extension.h: #include "common/vec.h".
4087 New function declarations.
4088 (struct xmethod_worker): New struct.
4089 (VEC (xmethod_worker_ptr)): New vector type.
4090 (xmethod_worker_ptr): New typedef.
4091 (xmethod_worker_vec): Likewise.
4092 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4094 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4095 (struct builtin_type): New field "xmethod".
4096 * valarith.c (value_ptradd): Assert that the value argument is not
4098 * valops.c (value_must_coerce_to_target): Return 0 for
4099 lval_xcallable values.
4100 * value.c (struct value): New field XM_WORKER in the field
4102 (value_address, value_raw_address): Return 0 for lval_xcallable
4104 (set_value_address): Assert that the value is not an
4106 (value_free): Free the associated xmethod worker when freeing
4107 lval_xcallable values.
4108 (set_value_component_location): Assert that the WHOLE value is not
4110 (value_of_xmethod, call_xmethod): New functions.
4111 * value.h: Declare "struct xmethod_worker".
4112 Declare new functions value_of_xmethod, call_xmethod.
4114 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4115 Pedro Alves <palves@redhat.com>
4117 PR breakpoints/17000
4118 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4119 New function, extracted from software_breakpoint_inserted_here_p.
4120 (software_breakpoint_inserted_here_p): Replace factored out code
4121 by call to find_non_raw_software_breakpoint_inserted_here.
4122 (bp_target_info_copy_insertion_state): New function.
4123 (bkpt_insert_location): Handle the case of a single-step
4124 breakpoint already inserted at the same address.
4125 (bkpt_remove_location): Handle the case of a single-step
4126 breakpoint still inserted at the same address.
4127 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4128 breakpoint already inserted at the same address.
4129 (deprecated_remove_raw_breakpoint): Handle the case of a
4130 non-raw breakpoint still inserted at the same address.
4131 (find_single_step_breakpoint): New function, extracted from
4132 single_step_breakpoint_inserted_here_p.
4133 (find_single_step_breakpoint): New function,
4134 factored out from single_step_breakpoint_inserted_here_p.
4135 (single_step_breakpoint_inserted_here_p): Reimplement.
4137 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4139 Pushed by Joel Brobecker <brobecker@adacore.com>
4140 * source.c (show_substitute_path_command): Fix display of matching
4143 2014-06-03 Gary Benson <gbenson@redhat.com>
4145 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4147 2014-06-02 Doug Evans <xdje42@gmail.com>
4149 Add parameter support for Guile.
4150 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4151 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4152 (scm-param.o): New rule.
4153 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4154 (gdbscm_misc_error): Declare.
4155 (gdbscm_canonicalize_command_name): Declare.
4156 (gdbscm_scm_to_host_string): Declare.
4157 (gdbscm_scm_from_host_string): Declare.
4158 (gdbscm_initialize_parameters): Declare.
4159 * guile/guile.c (initialize_gdb_module): Call
4160 gdbscm_initialize_parameters.
4161 * guile/lib/gdb.scm: Export parameter symbols.
4162 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4163 cmdscm_canonicalize_name and made public. All callers updated.
4164 * guile/scm-exception.c (gdbscm_misc_error): New function.
4165 * guile/scm-param.c: New file.
4166 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4167 (gdbscm_scm_to_host_string): New function.
4168 (gdbscm_scm_from_host_string): New function.
4169 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4171 2014-06-02 Doug Evans <xdje42@gmail.com>
4173 Add command support for Guile.
4174 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4175 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4176 (scm-cmd.o): New rule.
4177 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4178 (gdbscm_user_error_p): Declare.
4179 (gdbscm_parse_command_name): Declare.
4180 (gdbscm_valid_command_class_p): Declare.
4181 (gdbscm_initialize_commands): Declare.
4182 * guile/guile.c (initialize_gdb_module): Call
4183 gdbscm_initialize_commands.
4184 * guile/lib/gdb.scm: Export command symbols.
4185 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4186 (throw-user-error): New function.
4187 * guile/scm-cmd.c: New file.
4188 * guile/scm-exception.c (user_error_symbol): New static global.
4189 (gdbscm_user_error_p): New function.
4190 (gdbscm_initialize_exceptions): Set user_error_symbol.
4191 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4193 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4195 * top.c (command_loop): Handle comments here...
4196 (command_line_input): ... not here.
4198 2014-06-02 Doug Evans <xdje42@gmail.com>
4200 Add progspace support for Guile.
4201 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4202 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4203 (scm-progspace.o): New rule.
4204 * guile/guile-internal.h (pspace_smob): New typedef.
4205 (psscm_pspace_smob_pretty_printers): Declare.
4206 (psscm_pspace_smob_from_pspace): Declare.
4207 (psscm_scm_from_pspace): Declare.
4208 * guile/guile.c (initialize_gdb_module): Call
4209 gdbscm_initialize_pspaces.
4210 * guile/lib/gdb.scm: Export progspace symbols.
4211 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4213 (append-pretty-printer!): Ditto.
4214 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4216 * guile/scm-progspace.c: New file.
4218 2014-06-03 Alan Modra <amodra@gmail.com>
4220 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4221 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4223 2014-06-02 Doug Evans <dje@google.com>
4225 Add support for skeletonless type units.
4226 * dwarf2read.c (struct dwarf2_per_objfile): New member
4227 n_allocated_type_units.
4228 (struct dwarf2_per_objfile) <tu_stats>: New member
4229 nr_all_type_units_reallocs.
4230 (create_signatured_type_table_from_index): Initialize
4231 n_allocated_type_units
4232 (create_all_type_units): Ditto.
4233 (add_type_unit): Move up in file. New arg slot.
4234 All callers updated. Increase space for all_type_units more
4236 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4237 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4238 (lookup_dwp_signatured_type): Ditto.
4239 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4240 All callers updated.
4241 (build_type_psymtabs_1): Leave type_unit_groups as
4242 NULL if no TUs present.
4243 (print_tu_stats): New function.
4244 (process_skeletonless_type_unit): New function.
4245 (process_dwo_file_for_skeletonless_type_units): New
4247 (process_skeletonless_type_units): New function.
4248 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4249 Call print tu_stats if debugging enabled.
4251 2014-06-02 Pedro Alves <palves@redhat.com>
4253 * breakpoint.c (build_target_command_list): Don't build a command
4254 list if we have any duplicate location that isn't a dprintf.
4256 2014-06-02 Pedro Alves <palves@redhat.com>
4258 * breakpoint.c (dprintf_breakpoint_hit): New function.
4259 (initialize_breakpoint_ops): Install it as dprintf's
4260 breakpoint_hit method.
4262 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4264 * source.c (substitute_path_rule_matches): Simplify using
4265 filename_ncmp instead of FILENAME_CMP.
4267 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4269 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4271 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4273 * configure.ac: When Guile is available, check for the
4274 availability of 'scm_new_smob'.
4275 * configure, config.h.in: Regenerate.
4276 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4279 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4281 * frame.c (struct frame_info): Add stop_string field.
4282 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4283 (get_prev_frame_always): Old content moved into
4284 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4285 TRY_CATCH, handle MEMORY_ERROR exceptions.
4286 (frame_stop_reason_string): New function definition.
4287 * frame.h (unwind_stop_reason_to_string): Extend comment to
4288 mention frame_stop_reason_string.
4289 (frame_stop_reason_string): New function declaration.
4290 * stack.c (frame_info): Switch to frame_stop_reason_string.
4291 (backtrace_command_1): Switch to frame_stop_reason_string.
4292 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4293 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4294 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4296 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4298 * frame.c (frame_stop_reason_string): Rename to ...
4299 (unwind_stop_reason_to_string): this.
4300 * frame.h (frame_stop_reason_string): Rename to ...
4301 (unwind_stop_reason_to_string): this.
4302 * stack.c (frame_info): Update call to frame_stop_reason_string.
4303 (backtrace_command_1): Likewise.
4304 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4305 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4307 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4309 * frame.c (remove_prev_frame): New function.
4310 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4313 2014-05-29 Pedro Alves <palves@redhat.com>
4315 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4316 and make it const. When a single-step decays to a continue,
4317 clear 'step', not 'hw_step'. Pass whether the caller wanted
4318 to step to user_visible_resume_ptid, not what we ask the
4321 2014-05-29 Pedro Alves <palves@redhat.com>
4323 * infrun.c (process_event_stop_test, handle_step_into_function)
4324 (handle_step_into_function_backward): Adjust.
4325 Don't set the even thread's stop_step and call stop_waiting before
4326 calling end_stepping_range. Instead do that ...
4327 (end_stepping_range): ... here. Take an ecs pointer parameter.
4329 2014-05-29 Pedro Alves <palves@redhat.com>
4331 * infrun.c (stop_stepping): Rename to ...
4332 (stop_waiting): ... this.
4333 (proceed): Update comment.
4334 (process_event_stop_test, handle_inferior_event)
4335 (handle_signal_stop, handle_step_into_function)
4336 (handle_step_into_function_backward): Update.
4338 2014-05-29 Pedro Alves <palves@redhat.com>
4340 * infcall.c (run_inferior_call): Don't check whether the current
4341 thread is running after the proceed call.
4343 2014-05-29 Pedro Alves <palves@redhat.com>
4344 Tom Tromey <tromey@redhat.com>
4346 * NEWS: Mention "maint set target-async", "set mi-async", and that
4347 background execution commands are now always available.
4348 * target.h (target_async_permitted): Update comment.
4349 * target.c (target_async_permitted, target_async_permitted_1):
4351 (set_target_async_command): Rename to ...
4352 (maint_set_target_async_command): ... this.
4353 (show_target_async_command): Rename to ...
4354 (maint_show_target_async_command): ... this.
4355 (_initialize_target): Adjust.
4356 * infcmd.c (prepare_execution_command): Make extern.
4357 * inferior.h (prepare_execution_command): Declare.
4358 * infrun.c (set_observer_mode): Leave target async alone.
4359 * mi/mi-interp.c (mi_interpreter_init): Install
4360 mi_on_sync_execution_done as sync_execution_done observer.
4361 (mi_on_sync_execution_done): New function.
4362 (mi_execute_command_input_handler): Don't print the prompt if we
4363 just started a synchronous command with an async target.
4364 (mi_on_resume): Check sync_execution before printing prompt.
4365 * mi/mi-main.h (mi_async_p): Declare.
4366 * mi/mi-main.c: Include gdbcmd.h.
4367 (mi_async_p): New function.
4368 (mi_async, mi_async_1): New globals.
4369 (set_mi_async_command, show_mi_async_command, mi_async): New
4371 (exec_continue): Call prepare_execution_command.
4372 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4373 (mi_execute_async_cli_command): Use mi_async_p.
4374 (_initialize_mi_main): Install "set mi-async". Make
4375 "target-async" a deprecated alias.
4377 2014-05-29 Pedro Alves <palves@redhat.com>
4379 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4380 (_initialize_cli_interp): Adjust.
4381 * event-loop.c: Include "observer.h".
4382 (start_event_loop): Notify 'command_error' observers instead of
4383 calling display_gdb_prompt. Remove FIXME comment.
4384 * event-top.c (display_gdb_prompt): Remove call into the
4386 * inf-loop.c: Include "observer.h".
4387 (inferior_event_handler): Notify 'command_error' observers instead
4388 of calling display_gdb_prompt.
4389 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4390 observers instead of calling display_gdb_prompt.
4391 * interps.c (interp_set): Don't call display_gdb_prompt.
4392 (current_interp_display_prompt_p): Delete.
4393 * interps.h (interp_prompt_p): Delete declaration.
4394 (interp_prompt_p_ftype): Delete.
4395 (struct interp_procs) <prompt_proc_p>: Delete field.
4396 (current_interp_display_prompt_p): Delete declaration.
4397 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4398 (_initialize_mi_interp): Adjust.
4399 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4400 'command_error' observers.
4401 (tui_on_sync_execution_done, tui_on_command_error): New
4403 (tui_display_prompt_p): Delete.
4404 (_initialize_tui_interp): Adjust.
4406 2014-05-29 Pedro Alves <palves@redhat.com>
4409 * cli/cli-interp.c: Include infrun.h and observer.h.
4410 (cli_uiout, cli_interp): New globals.
4411 (cli_on_signal_received, cli_on_end_stepping_range)
4412 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4414 (cli_interpreter_init): Install them as 'end_stepping_range',
4415 'signal_received' 'signal_exited', 'exited' and 'no_history'
4417 (_initialize_cli_interp): Remove cli_interp local.
4418 * infrun.c (handle_inferior_event): Call the several stop reason
4419 observers instead of printing the stop reason directly.
4420 (end_stepping_range): New function.
4421 (print_end_stepping_range_reason, print_signal_exited_reason)
4422 (print_exited_reason, print_signal_received_reason)
4423 (print_no_history_reason): Make static, and add an uiout
4424 parameter. Print to that instead of to CURRENT_UIOUT.
4425 * infrun.h (print_end_stepping_range_reason)
4426 (print_signal_exited_reason, print_exited_reason)
4427 (print_signal_received_reason print_no_history_reason): New
4429 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4431 <cli_uiout>: New field.
4432 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4433 uiout for CLI output. Install 'signal_received',
4434 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4436 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4437 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4438 (mi_on_no_history): New functions.
4439 (ui_out_free_cleanup): Delete function.
4440 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4441 instead use the one already stored in the MI interpreter data.
4442 (mi_ui_out): Adjust.
4443 * tui/tui-interp.c: Include infrun.h and observer.h.
4444 (tui_interp): New global.
4445 (tui_on_signal_received, tui_on_end_stepping_range)
4446 (tui_on_signal_exited, tui_on_exited)
4447 (tui_on_no_history): New functions.
4448 (tui_init): Install them as 'end_stepping_range',
4449 'signal_received' 'signal_exited', 'exited' and 'no_history'
4451 (_initialize_tui_interp): Delete tui_interp local.
4453 2014-05-29 Pedro Alves <palves@redhat.com>
4456 * linux-nat.c (linux_nat_resume_callback): Rename the second
4457 parameter to 'except'. Skip LP if it points to EXCEPT.
4458 (linux_nat_resume): Don't mark the event lwp as not stopped
4459 before resuming sibling lwps. Instead ask
4460 linux_nat_resume_callback to skip the event lwp. Mark it as not
4461 stopped after actually resuming it.
4462 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4464 (wait_lwp): Mark the lwp as stopped here.
4465 (stop_wait_callback): Mark the lwp as not stopped right after
4466 resuming it. Don't mark lwps as stopped here.
4467 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4468 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4470 2014-05-29 Pedro Alves <palves@redhat.com>
4473 * infrun.c (resume): Determine how much to resume depending on
4474 whether the caller wanted a step, not whether we can hardware step
4475 the target. Mark all threads that we intend to run as running,
4476 unless we're calling an inferior function.
4477 (normal_stop): If the thread is running an infcall, don't finish
4479 * target.c (target_resume): Don't mark threads as running here.
4481 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4483 * serial.c (_initialize_serial): Remove support for
4484 the "set remotebaud" and "show remotebaud" commands.
4485 * NEWS: Add entry documenting the removal of that command.
4487 2014-05-28 Yao Qi <yao@codesourcery.com>
4489 * charset.c: Fix typo in comments.
4491 2014-05-27 Gary Benson <gbenson@redhat.com>
4493 * utils.c (internal_vproblem): Prompt for a bug report.
4495 2014-05-26 Andy Wingo <wingo@igalia.com>
4497 * guile/scm-arch.c (arscm_mark_arch_smob):
4498 * guile/scm-block.c (bkscm_mark_block_smob)
4499 (bkscm_mark_block_syms_progress_smob):
4500 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4501 * guile/scm-exception.c (exscm_mark_exception_smob):
4502 * guile/scm-frame.c (frscm_mark_frame_smob):
4503 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4504 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4505 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4506 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4507 (ppscm_mark_pretty_printer_worker_smob):
4508 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4509 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4510 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4511 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4513 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4516 2014-05-26 Andy Wingo <wingo@igalia.com>
4517 Doug Evans <xdje42@gmail.com>
4519 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4520 empty_base_class. All uses updated.
4521 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4522 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4524 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4525 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4526 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4527 (gdbscm_gsmob_has_property_p, add_property_name)
4528 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4529 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4530 (gdb-object-has-property?, gdb-object-properties): Remove.
4531 (gdb-object-kind): Renamed from gsmob-kind.
4533 2014-05-26 Andy Wingo <wingo@igalia.com>
4535 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4536 * configure: Regenerate.
4538 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4540 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4542 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4544 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4545 (replay_memory_access_read_only, replay_memory_access_read_write)
4546 (replay_memory_access_types, replay_memory_access)
4547 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4548 (cmd_set_record_btrace, cmd_show_record_btrace)
4549 (cmd_show_replay_memory_access): New.
4550 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4551 (record_btrace_remove_breakpoint): Replace
4552 record_btrace_allow_memory_access with replay_memory_access.
4553 (_initialize_record_btrace): Add commands.
4554 * NEWS: Announce it.
4556 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4558 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4560 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4562 * MAINTAINERS (Write After Approval): Move self back from
4565 2014-05-22 Pedro Alves <palves@redhat.com>
4567 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4568 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4569 (disable_randomization, enum exec_direction_kind)
4570 (execution_direction, stop_registers, start_remote)
4571 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4572 (wait_for_inferior, normal_stop, get_last_target_status)
4573 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4574 (insert_step_resume_breakpoint_at_sal)
4575 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4576 (set_step_info, print_stop_event, signal_stop_state)
4577 (signal_print_state, signal_pass_state, signal_stop_update)
4578 (signal_print_update, signal_pass_update)
4579 (update_signals_program_target, clear_exit_convenience_vars)
4580 (displaced_step_dump_bytes, update_observer_mode)
4581 (signal_catch_update, gdb_signal_from_command): Move
4583 * infrun.h: ... to this new file.
4584 * amd64-tdep.c: Include infrun.h.
4585 * annotate.c: Include infrun.h.
4586 * arch-utils.c: Include infrun.h.
4587 * arm-linux-tdep.c: Include infrun.h.
4588 * arm-tdep.c: Include infrun.h.
4589 * break-catch-sig.c: Include infrun.h.
4590 * breakpoint.c: Include infrun.h.
4591 * common/agent.c: Include infrun.h instead of inferior.h.
4592 * corelow.c: Include infrun.h.
4593 * event-top.c: Include infrun.h.
4594 * go32-nat.c: Include infrun.h.
4595 * i386-tdep.c: Include infrun.h.
4596 * inf-loop.c: Include infrun.h.
4597 * infcall.c: Include infrun.h.
4598 * infcmd.c: Include infrun.h.
4599 * infrun.c: Include infrun.h.
4600 * linux-fork.c: Include infrun.h.
4601 * linux-nat.c: Include infrun.h.
4602 * linux-thread-db.c: Include infrun.h.
4603 * monitor.c: Include infrun.h.
4604 * nto-tdep.c: Include infrun.h.
4605 * procfs.c: Include infrun.h.
4606 * record-btrace.c: Include infrun.h.
4607 * record-full.c: Include infrun.h.
4608 * remote-m32r-sdi.c: Include infrun.h.
4609 * remote-mips.c: Include infrun.h.
4610 * remote-notif.c: Include infrun.h.
4611 * remote-sim.c: Include infrun.h.
4612 * remote.c: Include infrun.h.
4613 * reverse.c: Include infrun.h.
4614 * rs6000-tdep.c: Include infrun.h.
4615 * s390-linux-tdep.c: Include infrun.h.
4616 * solib-irix.c: Include infrun.h.
4617 * solib-osf.c: Include infrun.h.
4618 * solib-svr4.c: Include infrun.h.
4619 * target.c: Include infrun.h.
4620 * top.c: Include infrun.h.
4621 * windows-nat.c: Include infrun.h.
4622 * mi/mi-interp.c: Include infrun.h.
4623 * mi/mi-main.c: Include infrun.h.
4624 * python/py-threadevent.c: Include infrun.h.
4626 2014-05-22 Pedro Alves <palves@redhat.com>
4628 * infrun.c (handle_inferior_event): Store the exit code for
4629 --return-child-result here, instead of ...
4630 (print_exited_reason): ... here.
4632 2014-05-21 Pedro Alves <palves@redhat.com>
4635 * gdbthread.h (struct thread_control_state): New field
4637 * infrun.c (follow_fork): Copy the new thread control field to the
4639 (clear_proceed_status_thread): Clear the new thread control field.
4640 (proceed): Set the new thread control field.
4641 * interps.h (command_interp): Declare.
4642 * interps.c (command_interpreter): New global.
4643 (command_interp): New function.
4644 (interp_exec): Set `command_interpreter' while here.
4645 * cli-out.c (cli_uiout_dtor): New function.
4646 (cli_ui_out_impl): Install it.
4647 * mi/mi-interp.c: Include cli-out.h.
4648 (mi_cmd_interpreter_exec): Add comment.
4649 (restore_current_uiout_cleanup): New function.
4650 (ui_out_free_cleanup): New function.
4651 (mi_on_normal_stop): If finishing an execution command started by
4652 a CLI command, or any kind of breakpoint-like event triggered,
4653 print the stop event to the output (CLI) stream.
4654 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4656 2014-05-21 Pedro Alves <palves@redhat.com>
4658 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4659 current source line having changed.
4660 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4661 * infrun.c (normal_stop): Adjust call to
4662 set_current_sal_from_frame.
4663 * source.c (clear_lines_listed_range): New function.
4664 (set_current_source_symtab_and_line, identify_source_line): Clear
4665 the lines listed range.
4666 (line_info): Handle the first "info line" after the current source
4667 line having changed.
4668 * stack.c (print_stack_frame): Remove center handling.
4669 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4672 2014-05-21 Pedro Alves <palves@redhat.com>
4674 * inf-child.c (inf_child_mourn_inferior): New function.
4675 * inf-child.h (inf_child_mourn_inferior): New declaration.
4676 * darwin-nat.c (darwin_mourn_inferior): Use
4677 inf_child_mourn_inferior.
4678 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4679 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4680 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4681 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4682 * windows-nat.c (windows_mourn_inferior): Likewise.
4684 2014-05-21 Doug Evans <xdje42@gmail.com>
4686 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4688 2014-05-21 Doug Evans <xdje42@gmail.com>
4690 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4691 (gdbscm_out_of_range_error): Ditto.
4692 (gdbscm_memory_error): Ditto.
4693 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4694 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4695 (gdbscm_out_of_range_error): Update.
4696 (gdbscm_memory_error): Update.
4697 (gdbscm_scm_to_target_string_unsafe): Delete.
4699 2014-05-21 Pedro Alves <palves@redhat.com>
4701 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4703 (inf_child_open_target): New function.
4704 (inf_child_open): Use inf_child_open_target to push the target
4705 instead of erroring out.
4706 (inf_child_disconnect, inf_child_close)
4707 (inf_child_maybe_unpush_target): New functions.
4708 (inf_child_target): Install inf_child_disconnect and
4709 inf_child_close. Store a pointer to the returned object.
4710 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4712 * target.c (auto_connect_native_target): New global.
4713 (show_default_run_target): New function.
4714 (find_default_run_target): Return NULL if automatically connecting
4715 to the native target is disabled.
4716 (_initialize_target): Install set/show auto-connect-native-target.
4717 * NEWS: Mention "set auto-connect-native-target", and "target
4719 * linux-nat.c (super_close): New global.
4720 (linux_nat_close): Call super_close.
4721 (linux_nat_add_target): Store a pointer to the base class's
4723 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4724 inf_child_maybe_unpush.
4725 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4727 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4728 the inferior. Use inf_child_maybe_unpush_target.
4729 (inf_ttrace_attach): Don't push the target if it is already
4731 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4732 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4733 after mourning the inferior. Use inf_child_maybe_unpush_target.
4734 (darwin_attach_pid): Don't push the target if it is already
4736 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4737 mourning the inferior. Use inf_child_maybe_unpush_target.
4738 (gnu_detach): Use inf_child_maybe_unpush_target.
4739 * go32-nat.c (go32_create_inferior): Don't push the target if it
4741 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4742 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4743 (procfs_open): Rename to ...
4744 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4745 comments. Can target_preopen before changing node. Call
4746 inf_child_open_target to push the target explicitly.
4747 (procfs_attach): Don't push the target if it is already pushed.
4748 (procfs_detach): Use inf_child_maybe_unpush_target.
4749 (procfs_create_inferior): Don't push the target if it is already
4751 (nto_native_ops): New global.
4752 (procfs_open): Reimplement.
4753 (procfs_native_open): New function.
4754 (init_procfs_targets): Install procfs_native_open as to_open of
4755 "target native". Store a pointer to the "native" target in
4757 * procfs.c (procfs_attach): Don't push the target if it is already
4759 (procfs_detach): Use inf_child_maybe_unpush_target.
4760 (procfs_mourn_inferior): Only unpush the target after mourning the
4761 inferior. Use inf_child_maybe_unpush_target.
4762 (procfs_init_inferior): Don't push the target if it is already
4764 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4765 if it is already pushed.
4767 2014-05-21 Pedro Alves <palves@redhat.com>
4769 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4770 and "procfs" targets are now called "native" instead.
4772 2014-05-21 Pedro Alves <palves@redhat.com>
4774 * go32-nat.c (go32_open): Delete.
4775 (go32_target): Don't override the to_open method.
4777 2014-05-21 Pedro Alves <palves@redhat.com>
4779 * nto-procfs.c (procfs_can_run): New function.
4780 (nto_procfs_ops): New global.
4781 (init_procfs_targets): New, based on procfs_target. Install
4782 "target native" in addition to "target procfs".
4783 (_initialize_procfs): Call init_procfs_targets instead of adding
4786 2014-05-21 Pedro Alves <palves@redhat.com>
4788 * windows-nat.c (windows_target): Don't override to_shortname,
4789 to_longname or to_doc.
4791 2014-05-21 Pedro Alves <palves@redhat.com>
4793 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4796 2014-05-21 Pedro Alves <palves@redhat.com>
4798 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4799 to_shortname, to_longname or to_doc.
4801 2014-05-21 Pedro Alves <palves@redhat.com>
4803 * go32-nat.c (go32_target): Don't override to_shortname,
4804 to_longname or to_doc.
4806 2014-05-21 Pedro Alves <palves@redhat.com>
4808 * inf-child.c (inf_child_open): Remove mention of "child".
4809 (inf_child_target): Rename target to "native" instead of "child".
4811 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4813 * Makefile.in (SFILES): Delete "regset.c".
4814 (COMMON_OBS): Delete "regset.o".
4816 * regset.h (regset_alloc): Delete prototype.
4818 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4820 * sparc-linux-tdep.c (sparc32_linux_gregset)
4821 (sparc32_linux_fpregset): New static regset structures.
4822 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4823 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4825 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4826 (sparc64_linux_fpregset): New static regset structures.
4827 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4828 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4829 New static regset structures.
4830 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4831 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4832 New static regset structures.
4833 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4834 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4835 New static regset structures.
4836 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4837 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4838 New static regset structures.
4839 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4841 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4843 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4844 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4845 register maps ("regmaps") from "*regset" to "*regmap". Do this
4846 for all regmap types and variables.
4847 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4848 (sparc32_linux_supply_core_gregset)
4849 (sparc32_linux_collect_core_gregset)
4850 (sparc32_linux_supply_core_fpregset)
4851 (sparc32_linux_collect_core_fpregset): Likewise.
4852 * sparc-nat.c (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_fetch_inferior_registers, sparc_store_inferior_registers)
4857 (_initialize_sparc_nat): Rename regmaps.
4858 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4859 (sparc_gregmap, sparc_fpregmap): ... these.
4860 (sparc_supply_gregset, sparc_collect_gregset)
4861 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4862 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4864 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4865 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4867 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4869 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4870 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4871 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4873 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4874 (sparc32_bsd_fpregset): Rename to...
4875 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4876 (sparc32_bsd_fpregmap): ... these.
4877 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4878 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4879 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4880 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4881 (struct sparc_gregmap, struct sparc_fpregmap)
4882 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4883 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4884 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4885 (sparc32_supply_regset, sparc32_collect_gregset)
4886 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4888 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4889 (sparc64_linux_ptrace_gregmap): ... this.
4890 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4891 (_initialize_sparc64_linux_nat): Rename regmaps.
4892 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4893 (sparc64_linux_core_gregmap): ... this.
4894 (sparc64_linux_supply_core_gregset)
4895 (sparc64_linux_collect_core_gregset)
4896 (sparc64_linux_supply_core_fpregset)
4897 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4898 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4899 (sparc64_sol2_fpregset): Rename to...
4900 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4901 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4902 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4904 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4905 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4906 (sparc64_bsd_fpregset): Rename to...
4907 (struct sparc_gregmap, sparc64_sol2_gregmap)
4908 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4909 (sparc64_bsd_fpregmap): ... these.
4910 (sparc64_supply_gregset, sparc64_collect_gregset)
4911 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4913 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4914 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4915 (sparc64fbsd_gregmap): ... this.
4916 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4917 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4919 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4920 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4921 (sparc64nbsd_collect_fpregset): Likewise.
4922 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4923 (sparc64nbsd_gregmap): ... this.
4924 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4926 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4927 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4928 (sparc64obsd_gregmap): ... this.
4929 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4931 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4932 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4933 (sparc32nbsd_gregmap): ... this.
4934 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4937 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4939 * score-tdep.c (score7_linux_gregset): New static regset
4941 (score7_linux_regset_from_core_section): Remove dynamic regset
4943 (score_gdbarch_init): Drop allocation of tdep structure.
4944 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4946 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4948 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4950 (am33_regset_from_core_section): Remove dynamic regset
4953 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4955 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4956 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4958 (mips_linux_regset_from_core_section): Remove dynamic regset
4960 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4961 'gregset64', 'fpregset', and 'fpregset64'.
4962 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4963 deleted tdep fields.
4965 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4967 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4969 (amd64_regset_from_core_section): Remove dynamic regset
4971 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4973 (amd64obsd_regset_from_core_section): Remove dynamic regset
4975 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4977 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4978 x86-common regset supply function.
4979 * i386-tdep.c (i386_collect_gregset): Make static.
4980 (i386_gregset): New global regset structure.
4981 (i386_fpregset, i386_xstateregset): New static regset structures.
4982 (i386_regset_from_core_section): Remove dynamic regset
4984 (i386_gdbarch_init): Remove initialization of tdep fields
4985 'gregset', 'fpregset', and 'xstateregset'.
4986 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4987 'fpregset', and 'xstateregset'.
4988 (i386_collect_gregset): Remove prototype.
4989 (i386_gregset): New declaration.
4990 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4992 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4995 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4997 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4998 (arm_linux_vfpregset): New static regset structures.
4999 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5001 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5002 and 'vfpregset' fields.
5004 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5006 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5007 (aarch64_linux_fpregset): New static regset structures.
5008 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5009 of regset structures.
5010 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5013 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5015 * regset.h (struct regset): Remove gdbarch field.
5016 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5017 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5018 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5020 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5021 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5022 (ppc32_linux_vsxregset): Likewise.
5023 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5024 via the regcache instead of the regset.
5025 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5026 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5027 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5028 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5031 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5033 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5034 Constify structures.
5035 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5036 (alphanbsd_aout_gregset): Likewise.
5037 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5038 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5040 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5041 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5043 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5044 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5045 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5046 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5047 * m88k-tdep.c (m88k_gregset): Likewise.
5048 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5049 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5050 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5051 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5052 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5053 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5054 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5055 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5056 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5058 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5059 * sh-tdep.h (sh_corefile_gregset): Likewise.
5060 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5061 * vax-tdep.c (vax_gregset): Likewise.
5063 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5065 Fix TLS access for -static -pthread.
5066 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5067 (try_thread_db_load_1): Initialize it.
5068 (thread_db_get_thread_local_address): Call it if LM is zero.
5069 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5070 * target.h (struct target_ops) (to_get_thread_local_address): Add
5071 load_module_addr comment.
5073 2014-05-21 Pedro Alves <palves@redhat.com>
5075 * dcache.c (dcache_read_memory_partial): If reading the cache line
5076 fails, fallback to reading just the memory the caller wanted.
5078 2014-05-20 Doug Evans <dje@google.com>
5080 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5081 instead of get_current_arch.
5083 2014-05-20 Pedro Alves <palves@redhat.com>
5085 * NEWS: Mention that compare-sections now works with all targets.
5087 * remote.c (PACKET_qCRC): New enum value.
5088 (remote_verify_memory): Don't send qCRC if the target has no
5089 execution. Use packet_support/packet_ok. If the target doesn't
5090 support the qCRC packet, fallback to a deep memory copy.
5091 (compare_sections_command): Say "target image" instead of "remote
5093 (_initialize_remote): Add PACKET_qCRC to the list of config
5094 packets that have no associated command. Extend comment.
5095 * target.c (simple_verify_memory, default_verify_memory): New
5097 * target.h (struct target_ops) <to_verify_memory>: Default to
5098 default_verify_memory.
5099 (simple_verify_memory): New declaration.
5100 * target-delegates.c: Regenerate.
5102 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5104 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5106 2014-05-20 Hui Zhu <hui@codesourcery.com>
5107 Yao Qi <yao@codesourcery.com>
5110 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5111 and change address of sp and pc.
5113 2014-05-19 Tom Tromey <tromey@redhat.com>
5115 * gdbtypes.c (rank_function): Use XNEWVEC.
5116 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5118 2014-05-19 Doug Evans <dje@google.com>
5120 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5121 build_type_unit_groups and moved closer to only caller. Remove
5122 arguments. All references updated. Remove outdated .gdb_index
5124 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5125 build_type_psymtabs_1.
5127 2014-05-19 Doug Evans <dje@google.com>
5129 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5130 n_type_unit_groups, all_type_unit_groups. All uses removed.
5131 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5132 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5133 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5134 (add_type_unit_group_to_table): Delete.
5136 2014-05-19 Doug Evans <dje@google.com>
5138 * eval.c (evaluate_subexp_standard): Add some comments.
5140 2014-05-17 Doug Evans <xdje42@gmail.com>
5142 * progspace.c (remove_program_space): Delete, unused.
5143 * progspace.h (remove_program_space): Ditto.
5145 2014-05-17 Doug Evans <xdje42@gmail.com>
5147 * inferior.c (prune_inferiors): Fix comment.
5148 (remove_inferior_command): Call prune_program_spaces.
5150 2014-05-16 Doug Evans <dje@google.com>
5152 New command line option -D.
5154 * main.c (set_gdb_data_directory): New function.
5155 (captured_main): Recognize -D. Flag error for --data-directory "".
5156 Call set_gdb_data_directory.
5157 (print_gdb_help): Print --data-directory, -D.
5158 * main.h (set_gdb_data_directory): Declare.
5159 * top.c (staged_gdb_datadir): New static global.
5160 (set_gdb_datadir): Call set_gdb_data_directory
5161 (show_gdb_datadir): New function.
5162 (init_main): Update init of data-directory parameter.
5164 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5166 Import the "dirfd" gnulib module.
5167 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5168 * gnulib/aclocal.m4: Update.
5169 * gnulib/config.in: Update.
5170 * gnulib/configure: Update.
5171 * gnulib/import/Makefile.am: Update.
5172 * gnulib/import/Makefile.in: Update.
5173 * gnulib/import/dirfd.c: New.
5174 * gnulib/import/m4/dirfd.m4: New.
5175 * gnulib/import/m4/gnulib-cache.m4: Update.
5176 * gnulib/import/m4/gnulib-comp.m4: Update.
5178 2014-05-16 Pierre Muller <muller@sourceware.org>
5179 Yao Qi <yao@codesourcery.com>
5181 * valprint.c (print_wchar): Move the code on checking whether
5182 W is a printable wide char to the default branch of switch
5183 statement below. Call wchar_printable instead of gdb_iswprint.
5185 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5187 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5188 ldr.w and ldrd instructions.
5190 2014-05-15 Doug Evans <dje@google.com>
5192 * dwarf2read.c (read_structure_type): Delete outdated comments.
5194 2014-05-14 Tom Tromey <tromey@redhat.com>
5196 * macrocmd.c (print_macro_definition): Reindent.
5198 2014-05-13 Doug Evans <xdje42@gmail.com>
5200 * python/py-cmd.c (cmdpy_completer): Add comment.
5201 (completers): Make const.
5203 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5205 * infrun.c (resume): Remove should_resume (unused). Move up
5206 declaration of resume_ptid.
5208 2014-05-13 Tom Tromey <tromey@redhat.com>
5210 * language.h (unop_type_check): Remove.
5211 (binop_type_check): Don't declare.
5213 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5215 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5216 call to regcache_raw_collect.
5218 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5220 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5221 mi_console->quote as the quoting character.
5223 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5225 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5227 2014-04-29 Tom Tromey <tromey@redhat.com>
5229 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5230 "show debug varobj".
5232 2014-05-07 Kyle McMartin <kyle@redhat.com>
5234 Pushed by Joel Brobecker <brobecker@adacore.com>.
5235 * aarch64-tdep.c (aarch64_software_single_step): New function.
5236 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5237 with aarch64_software_single_step.
5239 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5243 2014-05-05 Keith Seitz <keiths@redhat.com>
5245 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5246 variable or history value is successfully parsed.
5248 2014-05-05 Yao Qi <yao@codesourcery.com>
5249 Pedro Alves <palves@redhat.com>
5251 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5252 address of blocks that intersects the requested range. Trim
5253 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5255 * ctf.c (ctf_xfer_partial): Likewise.
5257 2014-05-05 Yao Qi <yao@codesourcery.com>
5259 * printcmd.c (display_command): Remove the check to
5260 target_has_execution.
5262 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5264 * ppcobsd-nat.c: Include "obsd-nat.h".
5265 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5267 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5269 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5271 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5272 and 16-bit signed and unsigned arguments. Update comment.
5273 (stap_parse_probe_arguments): Extend code to handle such
5274 arguments. Use warning instead of complaint to notify about
5275 unrecognized bitness.
5277 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5279 PR breakpoints/16889
5280 * stap-probe.c (stap_parse_probe_arguments): Simplify
5281 check for non-prefixed probes (i.e., probes whose
5282 arguments do not start with "N@"). Always set the
5283 argument type to a sane value.
5285 2014-05-01 David Taylor <dtaylor@emc.com>
5287 * remote.c (compare_sections_command): Add -r option to compare
5288 all loadable read-only sections.
5290 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5292 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5293 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5295 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5296 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5297 Remove unused CORE_ADDR argument. Update all callers.
5299 2014-04-29 Pedro Alves <palves@redhat.com>
5301 * remote.c (struct packet_config) <detect>: Extend comment.
5302 (add_packet_config_cmd): Don't set the config's detect or support
5304 (init_all_packet_configs): Also initialize the config's 'detect'
5306 (reset_all_packet_configs_support): New function.
5307 (remote_open_1): Call reset_all_packet_configs_support instead of
5308 init_all_packet_configs.
5309 (_initialize_remote): Initialize all packet configs. Assert that
5310 all packets have an associated command, except a few known
5313 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5315 * dwarf2read.c (read_subrange_type): Handle dynamic
5316 DW_AT_lower_bound attributes.
5318 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5320 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5321 dynamic bounds before computing its upper bound.
5322 (ada_discrete_type_low_bound): Same as above with the lower bound.
5324 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5326 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5327 range types. Adjust the array handling implementation to
5328 take advantage of this change.
5329 (resolve_dynamic_range): New function, mostly extracted from
5330 resolve_dynamic_bounds.
5331 (resolve_dynamic_array): New function, mostly extracted from
5332 resolve_dynamic_bounds.
5333 (resolve_dynamic_bounds): Delete.
5334 (resolve_dynamic_type): Reimplement. Add handling of
5335 TYPE_CODE_RANGE types.
5337 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5339 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5340 handling of parallel ___XA types.
5342 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5344 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5345 unnecessary second call to static_unwrap_type.
5347 2014-04-27 Hui Zhu <hui@codesourcery.com>
5349 * stack.c (print_frame_info): Call do_gdb_disassembly with
5350 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5352 2014-04-26 Doug Evans <xdje42@gmail.com>
5354 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5356 2014-04-25 Pedro Alves <palves@redhat.com>
5359 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5360 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5361 and newline from built string.
5362 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5363 (linux_ptrace_attach_fail_reason): ... this.
5364 * linux-nat.c (linux_nat_attach): Adjust to use
5365 linux_ptrace_attach_fail_reason.
5367 2014-04-25 Pedro Alves <palves@redhat.com>
5369 * remote.c (struct remote_state): Remove multi_process_aware,
5370 non_stop_aware, cond_tracepoints, cond_breakpoints,
5371 breakpoint_commands, fast_tracepoints, static_tracepoints,
5372 install_in_trace, disconnected_tracing,
5373 enable_disable_tracepoints, string_tracing, and
5374 augmented_libraries_svr4_read fields.
5375 (remote_multi_process_p): Move further below in the file.
5376 (struct packet_config): Add comments.
5377 (update_packet_config): Delete function.
5378 (show_packet_config_cmd): Use packet_config_support.
5379 (add_packet_config_cmd): Use NULL as set callback.
5380 (packet_ok): "set remote foo-packet"-style commands no longer
5381 change config->supported -- adjust.
5382 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5383 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5384 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5385 (PACKET_QNonStop, PACKET_multiprocess_feature)
5386 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5387 (PACKET_DisconnectedTracing_feature)
5388 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5389 (set_remote_protocol_packet_cmd): Delete function.
5390 (packet_config_support, packet_support): New functions.
5391 (set_remote_protocol_Z_packet_cmd): Don't call
5392 update_packet_config.
5393 (remote_query_attached, remote_pass_signals)
5394 (remote_program_signals, remote_threads_info)
5395 (remote_threads_extra_info, remote_start_remote): Use
5397 (remote_start_remote): Use packet_config_support and
5399 (init_all_packet_configs): Set all packets to unknown support,
5400 instead of calling update_packet_config.
5401 (remote_check_symbols): Use packet_support.
5402 (remote_supported_packet): Unconditionally set the packet config's
5404 (remote_multi_process_feature, remote_non_stop_feature)
5405 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5406 (remote_breakpoint_commands_feature)
5407 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5408 (remote_install_in_trace_feature)
5409 (remote_disconnected_tracing_feature)
5410 (remote_enable_disable_tracepoint_feature)
5411 (remote_string_tracing_feature)
5412 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5413 (remote_protocol_features): Adjust to use remote_supported_packet
5414 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5415 "ConditionalTracepoints", "ConditionalBreakpoints",
5416 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5417 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5418 "EnableDisableTracepoints", and "tracenz".
5419 (remote_query_supported): Use packet_support.
5420 (remote_open_1): Adjust.
5421 (extended_remote_attach_1): Use packet_support. Switch on the
5422 result of packet_ok instead of checking whether the packet ended
5424 (remote_vcont_resume): Use packet_support.
5425 (remote_resume, remote_stop_ns, fetch_register_using_p)
5426 (remote_prepare_to_store, store_register_using_P)
5427 (check_binary_download, remote_write_bytes): Use packet_support.
5428 (remote_vkill): Use packet_support. Switch on the result of
5429 packet_ok instead of checking whether the packet ended up
5431 (extended_remote_supports_disable_randomization): Use
5433 (extended_remote_run): Switch on the result of packet_ok instead
5434 of checking whether the packet ended up disabled.
5435 (remote_insert_breakpoint, remote_remove_breakpoint)
5436 (remote_insert_watchpoint, remote_remove_watchpoint)
5437 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5439 (remote_search_memory): Use packet_config_support.
5440 (remote_get_thread_local_address, remote_get_tib_address)
5441 (remote_hostio_send_command, remote_can_execute_reverse): Use
5443 (remote_supports_cond_tracepoints)
5444 (remote_supports_cond_breakpoints)
5445 (remote_supports_fast_tracepoints)
5446 (remote_supports_static_tracepoints)
5447 (remote_supports_install_in_trace)
5448 (remote_supports_enable_disable_tracepoint)
5449 (remote_supports_string_tracing)
5450 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5451 the packet config says the feature is enabled or disabled.
5452 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5453 (remote_get_trace_status): Use packet_support.
5454 (remote_set_disconnected_tracing): Adjust to check whether the
5455 feature is enabled with packet_support.
5456 (remote_set_trace_buffer_size, remote_use_agent)
5457 (remote_can_use_agent, remote_supports_btrace): Use
5459 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5460 Use packet_config_support.
5461 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5462 the packet config says the feature is enabled or disabled.
5463 (set_range_stepping): Use packet_support.
5465 2014-04-25 Tom Tromey <tromey@redhat.com>
5467 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5470 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5472 * NEWS: Mention support for C99 variable length arrays.
5474 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5476 * ada-lang.c (standard_exc): Expand introductory comment.
5478 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5479 Walfred Tedeschi <walfred.tedeschi@intel.com>
5481 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5483 (amd64_linux_read_description): Add code to handle AVX512 xstate
5484 mask and return respective tdesc.
5485 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5486 and features/i386/x32-avx512-linux.c.
5487 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5488 (amd64_linux_core_read_description): Add code to handle AVX512
5489 xstate mask and return respective tdesc.
5490 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5491 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5493 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5494 (tdesc_amd64_avx512_linux): New prototype.
5495 (tdesc_x32_avx512_linux): Likewise.
5496 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5497 features/i386/x32-avx512.c.
5498 (amd64_ymm_avx512_names): New register names for pseudo
5500 (amd64_ymmh_avx512_names): New register names for raw registers
5502 (amd64_k_names): New register names for K registers.
5503 (amd64_zmmh_names): New register names for ZMM raw registers.
5504 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5505 (amd64_xmm_avx512_names): New register names for XMM16-31
5507 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5509 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5510 if feature is present.
5511 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5512 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5513 (AMD64_NUM_REGS): Adjust to new number of registers.
5514 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5515 registers supplied via XSTATE by AVX512 registers.
5516 (i386_linux_read_description): Add case for AVX512.
5517 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5518 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5519 (i386_linux_core_read_description): Add case for AVX512.
5520 (i386_linux_init_abi): Install supported register note section
5522 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5524 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5525 registers to be number of zmm7h + 1.
5526 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5527 * i386-tdep.c: Include features/i386/i386-avx512.c.
5528 (i386_zmm_names): Add ZMM pseudo register names array.
5529 (i386_zmmh_names): Add ZMM raw register names array.
5530 (i386_k_names): Add K raw register names array.
5531 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5532 registers. AVX512 has 16 more ZMM registers than there are YMM
5534 (i386_zmmh_regnum_p): Add function to look up register number of
5536 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5537 (i386_k_regnum_p): Likewise for K raw registers.
5538 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5539 registers added by AVX512.
5540 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5541 registers added by AVX512.
5542 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5544 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5545 (i386_pseudo_register_name): Add ZMM pseudo registers.
5546 (i386_zmm_type): Construct and return vector registers type for ZMM
5548 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5549 ZMM0-31 pseudo registers and K registers.
5550 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5551 and YMM16-31 registers from register cache.
5552 (i386_pseudo_register_write): Add code to write K, ZMM and
5554 (i386_register_reggroup_p): Add code to include/exclude AVX512
5555 registers in/from respective register groups.
5556 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5557 registers if feature is present in xcr0.
5558 (i386_gdbarch_init): Add code to initialize AVX512 feature
5559 variables in tdep structure, wire in pseudo registers and call
5560 initialize_tdesc_i386_avx512.
5561 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5563 (i386_regnum): Add AVX512 registers.
5564 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5565 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5566 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5567 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5569 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5570 (i386_ymm_avx512_regnum_p): Likewise.
5571 (i386_k_regnum_p): Likewise.
5572 (i386_zmm_regnum_p): Likewise.
5573 (i386_zmmh_regnum_p): Likewise.
5574 * i387-tdep.c : Update year in copyright notice.
5575 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5577 (XSAVE_YMM_AVX512_ADDR): New macro.
5578 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5580 (XSAVE_XMM_AVX512_ADDR): New macro.
5581 (xsave_avx512_k_offset): New table for K register offsets in
5583 (XSAVE_AVX512_K_ADDR): New macro.
5584 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5586 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5587 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5589 (i387_collect_xsave): Add code to collect AVX512 registers from
5591 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5592 of XMM16-31 registers.
5593 (I387_NUM_K_REGS): New define for number of K registers.
5594 (I387_K0_REGNUM): New define for K0 register number.
5595 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5596 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5597 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5599 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5600 (I387_XMM16_REGNUM): New define for XMM16 register number.
5601 (I387_YMM0_REGNUM): New define for YMM0 register number.
5602 (I387_KEND_REGNUM): New define for last K register number.
5603 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5604 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5606 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5608 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5610 * features/Makefile: Add AVX512 related files.
5611 * features/i386/32bit-avx512.xml: New file.
5612 * features/i386/64bit-avx512.xml: Likewise.
5613 * features/i386/amd64-avx512-linux.c: Likewise.
5614 * features/i386/amd64-avx512-linux.xml: Likewise.
5615 * features/i386/amd64-avx512.c: Likewise.
5616 * features/i386/amd64-avx512.xml: Likewise.
5617 * features/i386/i386-avx512-linux.c: Likewise.
5618 * features/i386/i386-avx512-linux.xml: Likewise.
5619 * features/i386/i386-avx512.c: Likewise.
5620 * features/i386/i386-avx512.xml: Likewise.
5621 * features/i386/x32-avx512-linux.c: Likewise.
5622 * features/i386/x32-avx512-linux.xml: Likewise.
5623 * features/i386/x32-avx512.c: Likewise.
5624 * features/i386/x32-avx512.xml: Likewise.
5625 * regformats/i386/amd64-avx512-linux.dat: New file.
5626 * regformats/i386/amd64-avx512.dat: Likewise.
5627 * regformats/i386/i386-avx512-linux.dat: Likewise.
5628 * regformats/i386/i386-avx512.dat: Likewise.
5629 * regformats/i386/x32-avx512-linux.dat: Likewise.
5630 * regformats/i386/x32-avx512.dat: Likewise.
5631 * NEWS: Add note about new support for AVX512.
5634 2014-04-23 Pedro Alves <palves@redhat.com>
5636 * breakpoint.c (insert_bp_location): Tolerate errors if the
5637 breakpoint is set in a user-loaded objfile.
5638 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5639 location is marked shlib_disabled. If the breakpoint is set in a
5640 user-loaded objfile is a GDB-side memory breakpoint, validate it
5641 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5642 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5644 * mem-break.c (memory_validate_breakpoint): New function.
5645 * objfiles.c (userloaded_objfile_contains_address_p): New
5647 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5648 * target.h (memory_validate_breakpoint): New declaration.
5650 2014-04-23 Pedro Alves <palves@redhat.com>
5652 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5653 the breakpoint is set in a shared library, only suppress
5654 errors for software breakpoints, not hardware breakpoints.
5656 2014-04-22 Pedro Alves <palves@redhat.com>
5658 * infrun.c (schedlock_applies): New function, factored out from
5659 find_thread_needs_step_over.
5660 (find_thread_needs_step_over): Use it.
5661 (switch_back_to_stepped_thread): Always clear trap_expected if the
5662 step over is finished. Return early if scheduler locking applies.
5663 Look for the stepping thread and a potential step-over thread with
5665 (currently_stepping_or_nexting_callback): Delete.
5667 2014-04-22 Nick Clifton <nickc@redhat.com>
5669 * NEWS: Mention that ARM sim now supports tracing.
5671 2014-04-22 Yao Qi <yao@codesourcery.com>
5673 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5675 * tracefile.c (tracefile_fetch_registers): ... it. New
5677 * tracefile.h (tracefile_fetch_registers): Declare.
5678 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5679 tracefile_fetch_registers.
5681 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5684 * windows-nat.c (thread_rec): Don't display a warning when
5685 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5686 fails for any reason, set th->suspended to -1, so that we don't
5687 try to resume such a thread. Also, don't return NULL in these
5688 cases, to avoid completely ruin the session due to "PC register is
5689 not available" error.
5690 (do_windows_fetch_inferior_registers): Check errors in
5691 GetThreadContext call.
5692 (windows_continue): Accept an additional argument KILLED; if not
5693 zero, ignore errors in the SetThreadContext call, since the
5694 inferior was killed and is shutting down.
5695 (windows_resume, get_windows_debug_event)
5696 (windows_create_inferior, windows_mourn_inferior)
5697 (windows_kill_inferior): All callers of windows_continue changed
5698 to adjust to its new calling sequence.
5700 2014-04-19 Yao Qi <yao@codesourcery.com>
5702 * ctf.c (ctf_open): Call post_create_inferior.
5704 2014-04-19 Yao Qi <yao@codesourcery.com>
5706 * ctf.c (handle_id): New static variable.
5707 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5708 value. Get the declaration of event "register" and get length
5709 of field "contents".
5711 2014-04-19 Yao Qi <yao@codesourcery.com>
5713 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5715 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5717 * valops.c (oload_method_static): Remove unnecessary argument
5718 METHOD. Update all callers.
5720 2014-04-18 Pedro alves <palves@redhat.com>
5721 Tom Tromey <tromey@redhat.com>
5724 * frame.c (get_prev_frame_1): Rename to ...
5725 (get_prev_frame_always): ... this, and make extern. Adjust.
5726 (skip_artificial_frames): Use get_prev_frame_always.
5727 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5728 (get_frame_unwind_stop_reason): Adjust to rename.
5729 * frame.h (get_prev_frame_always): Declare.
5730 * inline-frame.c: Include frame.h.
5731 (inline_frame_this_id): Use get_prev_frame_always.
5733 2014-04-18 Tristan Gingold <gingold@adacore.com>
5735 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5736 code by using bfd_mach_o_get_base_address.
5738 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5740 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5741 (spu_ax_pseudo_register_collect): New function.
5742 (spu_ax_pseudo_register_push_stack): Likewise.
5743 (spu_dwarf_reg_to_regnum): Likewise.
5744 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5746 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5748 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5749 Replace FRAME argument with FRAME_ID.
5750 * gdbarch.c, gdbarch.h: Regenerate.
5751 * findvar.c (default_value_from_register): Add GDBARCH argument;
5752 replace FRAME by FRAME_ID. No longer call get_frame_id.
5753 (value_from_register): Update call to gdbarch_value_from_register.
5754 * value.h (default_value_from_register): Update prototype.
5755 * s390-linux-tdep.c (s390_value_from_register): Update interface
5756 and call to default_value_from_register.
5757 * spu-tdep.c (spu_value_from_register): Likewise.
5759 * findvar.c (address_from_register): Remove TYPE argument.
5760 Do not call value_from_register; use gdbarch_value_from_register
5761 with null_frame_id instead.
5762 * value.h (address_from_register): Update prototype.
5763 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5764 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5765 address_from_register interface change.
5767 2014-04-17 Yao Qi <yao@codesourcery.com>
5769 * gdbtypes.h: Update comments to link to types and macros'
5772 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5774 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5776 2014-04-16 Keith Seitz <keiths@redhat.com>
5779 * dwarf2read.c (skip_one_die): Check that all relative-offset
5780 sibling DIEs fall within range of the current reader's buffer.
5781 (read_partial_die): Likewise.
5783 2014-04-16 Keith Seitz <keiths@redhat.com>
5786 * cp-namespace.c (lookup_symbol_file): If the type name of
5787 `this' is NULL, return immediately.
5789 2014-04-14 Keith Seitz <keiths@redhat.com>
5792 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5793 from symbol_matches_domain in symtab.c. All local callers
5794 of symbol_matches_domain updated.
5795 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5796 search STRUCT_DOMAIN.
5797 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5798 independently. standard_lookup will do that automatically.
5799 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5800 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5801 (cp_lookup_symbol_in_namespace): Likewise.
5802 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5803 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5804 may return a STRUCT_DOMAIN match.
5805 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5806 * cp-support.c: Include language.h.
5807 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5809 * psymtab.c (match_partial_symbol): Compare the requested
5810 domain with the symbol's domain directly.
5811 (lookup_partial_symbol): Likewise.
5812 * symtab.c (lookup_symbol_in_language): Explain when/why
5813 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5814 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5815 appropriate languages.
5816 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5817 and moved to ada-lang.c
5818 (lookup_block_symbol): Explain that this function only returns
5819 symbol matching the requested DOMAIN.
5820 Compare the requested domain with the symbol's domain directly.
5821 (iterate_over_symbols): Compare the requested domain with the
5822 symbol's domain directly.
5823 * symtab.h (symbol_matches_domain): Remove.
5825 2014-04-14 Tom Tromey <tromey@redhat.com>
5828 * c-exp.y (type_aggregate_p): New function.
5829 (qualified_name, classify_inner_name): Use it.
5830 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5831 and TYPE_TARGET_TYPE of an enum type.
5832 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5834 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5835 handle TYPE_DECLARED_CLASS.
5836 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5838 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5839 * valops.c (enum_constant_from_type): New function.
5840 (value_aggregate_elt): Use it.
5841 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5844 2014-04-14 Tom Tromey <tromey@redhat.com>
5846 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5847 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5849 * value.h (value_aggregate_elt): Update.
5851 2014-04-14 Tom Tromey <tromey@redhat.com>
5853 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5855 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5857 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5858 (evaluate_subexp_standard): Pass noside argument.
5859 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5860 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5861 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5862 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5863 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5865 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5867 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5868 points to a constant blob.
5870 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5872 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5873 property and store it as the high bound and flag the range accordingly.
5874 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5875 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5876 * gdbtypes.h (enum range_flags): New enum.
5877 (struct range_bounds): Add flags member.
5879 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5881 * c-typeprint.c (c_type_print_varspec_suffix): Added
5882 check for not yet resolved high bound. If unresolved, print
5883 "variable length" string to the console instead of random
5886 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5888 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5890 (ada_template_to_fixed_record_type_1): Likewise.
5891 (ada_to_fixed_type_1): Likewise.
5892 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5893 (cp_print_value): Likewise.
5894 * d-valprint.c (dynamic_array_type): Likewise.
5895 * findvar.c (address_of_variable): Likewise.
5896 * jv-valprint.c (java_value_print): Likewise.
5897 * valops.c (value_ind): Likewise.
5898 * value.c (coerce_ref): Likewise.
5900 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5902 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5903 value and retrieve the dynamic type size.
5905 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5907 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5908 passed to sizeof is dynamic evaluate the argument to compute the length.
5910 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5911 Joel Brobecker <brobecker@adacore.com>
5913 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5914 (dwarf2_evaluate_property): New function.
5915 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5916 * dwarf2read.c (attr_to_dynamic_prop): New function.
5917 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5919 * gdbtypes.c: Include dwarf2loc.h.
5920 (is_dynamic_type): New function.
5921 (resolve_dynamic_type): New function.
5922 (resolve_dynamic_bounds): New function.
5923 (get_type_length): New function.
5924 (check_typedef): Use get_type_length to compute type length.
5925 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5926 (TYPE_LOW_BOUND_KIND): New macro.
5927 (is_dynamic_type): New function prototype.
5928 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5929 to resolve dynamic properties of the type. Update comment.
5930 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5932 2014-04-14 Richard Henderson <rth@redhat.com>
5934 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5936 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5937 Doug Evans <xdje42@gmail.com>
5939 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5940 dereference TYPE_CODE_REF values.
5942 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5944 Revert the following changes due to regressions:
5946 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5947 (dwarf2_evaluate_property): New function.
5948 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5949 * dwarf2read.c (attr_to_dynamic_prop): New function.
5950 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5952 * gdbtypes.c: Include dwarf2loc.h.
5953 (is_dynamic_type): New function.
5954 (resolve_dynamic_type): New function.
5955 (resolve_dynamic_bounds): New function.
5956 (get_type_length): New function.
5957 (check_typedef): Use get_type_length to compute type length.
5958 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5959 (TYPE_LOW_BOUND_KIND): New macro.
5960 (is_dynamic_type): New function prototype.
5961 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5962 to resolve dynamic properties of the type. Update comment.
5963 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5965 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5966 passed to sizeof is dynamic evaluate the argument to compute the length.
5968 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5969 value and retrieve the dynamic type size.
5971 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5972 (ada_template_to_fixed_record_type_1): Likewise.
5973 (ada_to_fixed_type_1): Likewise.
5974 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5975 (cp_print_value): Likewise.
5976 * d-valprint.c (dynamic_array_type): Likewise.
5977 * eval.c (evaluate_subexp_with_coercion): Likewise.
5978 * findvar.c (address_of_variable): Likewise.
5979 * jv-valprint.c (java_value_print): Likewise.
5980 * valops.c (value_ind): Likewise.
5981 * value.c (coerce_ref): Likewise.
5983 * c-typeprint.c (c_type_print_varspec_suffix): Added
5984 check for not yet resolved high bound. If unresolved, print
5985 "variable length" string to the console instead of random
5988 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5989 property and store it as the high bound and flag the range accordingly.
5990 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5991 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5992 * gdbtypes.h (enum range_flags): New enum.
5993 (struct range_bounds): Add flags member.
5995 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5996 points to a constant blob.
5998 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5999 (evaluate_subexp_standard): Pass noside argument.
6000 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6001 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6002 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6003 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6004 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6006 2014-04-11 Keith Seitz <keiths@redhat.com>
6009 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6010 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6013 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6015 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6016 (evaluate_subexp_standard): Pass noside argument.
6017 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6018 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6019 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6020 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6021 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6023 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6025 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6026 points to a constant blob.
6028 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6030 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6031 property and store it as the high bound and flag the range accordingly.
6032 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6033 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6034 * gdbtypes.h (enum range_flags): New enum.
6035 (struct range_bounds): Add flags member.
6037 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6039 * c-typeprint.c (c_type_print_varspec_suffix): Added
6040 check for not yet resolved high bound. If unresolved, print
6041 "variable length" string to the console instead of random
6044 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6046 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6047 (ada_template_to_fixed_record_type_1): Likewise.
6048 (ada_to_fixed_type_1): Likewise.
6049 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6050 (cp_print_value): Likewise.
6051 * d-valprint.c (dynamic_array_type): Likewise.
6052 * eval.c (evaluate_subexp_with_coercion): Likewise.
6053 * findvar.c (address_of_variable): Likewise.
6054 * jv-valprint.c (java_value_print): Likewise.
6055 * valops.c (value_ind): Likewise.
6056 * value.c (coerce_ref): Likewise.
6058 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6060 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6061 value and retrieve the dynamic type size.
6063 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6065 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6066 passed to sizeof is dynamic evaluate the argument to compute the length.
6068 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6070 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6071 (dwarf2_evaluate_property): New function.
6072 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6073 * dwarf2read.c (attr_to_dynamic_prop): New function.
6074 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6076 * gdbtypes.c: Include dwarf2loc.h.
6077 (is_dynamic_type): New function.
6078 (resolve_dynamic_type): New function.
6079 (resolve_dynamic_bounds): New function.
6080 (get_type_length): New function.
6081 (check_typedef): Use get_type_length to compute type length.
6082 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6083 (TYPE_LOW_BOUND_KIND): New macro.
6084 (is_dynamic_type): New function prototype.
6085 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6086 to resolve dynamic properties of the type. Update comment.
6087 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6089 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6091 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6092 declaring high/low bounds and change uses accordingly. Call
6093 create_range_type instead of create_static_range_type.
6094 * gdbtypes.c (create_range_type): New function.
6095 (create_range_type): Convert bounds into struct bound_prop and pass
6096 them to create_range_type.
6097 * gdbtypes.h (struct bound_prop): New struct.
6098 (create_range_type): New function prototype.
6099 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6100 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6101 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6103 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6105 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6107 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6108 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6109 * ada-lang.c: All uses of create_range_type updated.
6110 * coffread.c: All uses of create_range_type updated.
6111 * dwarf2read.c: All uses of create_range_type updated.
6112 * f-exp.y: All uses of create_range_type updated.
6113 * m2-valprint.c: All uses of create_range_type updated.
6114 * mdebugread.c: All uses of create_range_type updated.
6115 * stabsread.c: All uses of create_range_type updated.
6116 * valops.c: All uses of create_range_type updated.
6117 * valprint.c: All uses of create_range_type updated.
6119 2014-04-10 Pedro Alves <palves@redhat.com>
6121 * breakpoint.c (single_step_breakpoints)
6122 (single_step_gdbarch): Move up in the file.
6123 (one_breakpoint_xfer_memory): New function, factored out from ...
6124 (breakpoint_xfer_memory): ... here. Also process single-step
6127 2014-04-09 Tristan Gingold <gingold@adacore.com>
6129 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6131 (darwin_decode_exception_message): Free port only after use.
6133 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6135 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6136 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6137 when setting the size of call_length.
6139 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6141 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6142 dereference TYPE_CODE_REF values.
6144 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6146 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6147 end of warning message.
6149 2014-04-03 Doug Evans <dje@google.com>
6151 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6152 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6154 2014-04-02 Alan Modra <amodra@gmail.com>
6156 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6157 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6158 (struct symbol_file_add_from_memory_args): Add size field.
6159 (find_vdso_size): New function.
6160 (add_vsyscall_page): Attempt to find vdso size.
6162 2014-04-01 Doug Evans <dje@google.com>
6164 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6166 2014-04-01 Tristan Gingold <gingold@adacore.com>
6168 * darwin-nat.c (darwin_encode_reply): Add prototype.
6169 (darwin_decode_exception_message): Reply to unknown inferiors.
6170 (darwin_decode_message): Handle message by id. Ignore message
6171 to unknown inferior.
6172 (darwin_wait): Discard unknown messages, add debug trace.
6174 2014-03-31 Doug Evans <dje@google.com>
6176 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6179 2014-03-31 Doug Evans <dje@google.com>
6181 New option "set print symbol-loading".
6183 * solib.c (solib_read_symbols): Only print symbol loading messages
6185 (solib_add): If symbol loading is in "brief" mode, notify user
6186 symbols are being loaded.
6187 (reload_shared_libraries_1): Ditto.
6188 * symfile.c (print_symbol_loading_off): New static global.
6189 (print_symbol_loading_brief): New static global.
6190 (print_symbol_loading_full): New static global.
6191 (print_symbol_loading_enums): New static global.
6192 (print_symbol_loading): New static global.
6193 (print_symbol_loading_p): New function.
6194 (symbol_file_add_with_addrs): Only print symbol loading messages
6196 (_initialize_symfile): Register "print symbol-loading" set/show
6198 * symfile.h (print_symbol_loading_p): Declare.
6200 2014-03-30 Doug Evans <xdje42@gmail.com>
6202 * infrun.c (set_last_target_status): New function.
6203 (handle_inferior_event): Call it.
6205 2014-03-30 Doug Evans <xdje42@gmail.com>
6207 * inferior.h (enum stop_kind): Improve comment.
6209 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6211 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6212 a reference, strip the reference layer before calling
6213 the lang_ops value_has_mutated callback.
6215 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6217 Remove some globals from our parser.
6218 * language.c (unk_lang_parser): Add "struct parser_state"
6220 * language.h (struct language_defn) <la_parser>: Likewise.
6221 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6222 (initialize_expout): Add "struct parser_state" argument.
6223 Rewrite function to use the parser state.
6224 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6225 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6226 write_exp_elt_longcst, write_exp_elt_dblcst,
6227 write_exp_elt_decfloatcst, write_exp_elt_type,
6228 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6229 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6230 write_dollar_variable): Likewise.
6231 (parse_exp_in_context_1): Use parser state.
6232 (insert_type_address_space): Add "struct parser_state" argument.
6234 (increase_expout_size): New function.
6235 * parser-defs.h: Forward declare "struct language_defn" and
6236 "struct parser_state".
6237 (expout, expout_size, expout_ptr): Remove extern declarations.
6238 (parse_gdbarch, parse_language): Rewrite macro declarations to
6239 accept the parser state.
6240 (struct parser_state): New struct.
6241 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6242 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6243 write_exp_elt_decfloatcst, write_exp_elt_type,
6244 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6245 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6246 write_exp_msymbol, write_dollar_variable,
6247 mark_struct_expression, insert_type_address_space): Add "struct
6248 parser_state" argument.
6249 (increase_expout_size): New function.
6250 * utils.c (do_clear_parser_state): New function.
6251 (make_cleanup_clear_parser_state): Likewise.
6252 * utils.h (make_cleanup_clear_parser_state): New function
6254 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6255 Update calls to write_exp* in order to pass the parser state.
6256 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6257 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6258 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6259 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6260 * stap-probe.c (stap_parse_register_operand): Likewise.
6261 (stap_parse_single_operand): Likewise.
6262 (stap_parse_argument_1): Likewise.
6263 (stap_parse_argument): Use parser state.
6264 * stap-probe.h: Include "parser-defs.h".
6265 (struct stap_parse_info) <pstate>: New field.
6266 * c-exp.y (parse_type): Rewrite to use parser state.
6267 (yyparse): Redefine to c_parse_internal.
6268 (pstate): New global variable.
6269 (parse_number): Add "struct parser_state" argument.
6270 (write_destructor_name): Likewise.
6271 (type_exp): Update calls to write_exp* and similars in order to
6273 (exp1, exp, variable, qualified_name, space_identifier,
6274 typename, typebase): Likewise.
6275 (write_destructor_name, parse_number, lex_one_token,
6276 classify_name, classify_inner_name, c_parse): Add "struct
6277 parser_state" argument. Update function to use parser state.
6278 * c-lang.h: Forward declare "struct parser_state".
6279 (c_parse): Add "struct parser_state" argument.
6280 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6281 (yyparse): Redefine macro to ada_parse_internal.
6282 (pstate): New variable.
6283 (write_int, write_object_renaming, write_var_or_type,
6284 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6285 type_int, type_long, type_long_long, type_float, type_double,
6286 type_long_double, type_char, type_boolean, type_system_address):
6287 Add "struct parser_state" argument.
6288 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6289 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6290 var_or_type, aggregate, aggregate_component_list,
6291 positional_list, others, component_group,
6292 component_associations): Update calls to write_exp* and similar
6293 functions in order to use parser state.
6294 (ada_parse, write_var_from_sym, write_int,
6295 write_exp_op_with_string, write_object_renaming,
6296 find_primitive_type, write_selectors, write_ambiguous_var,
6297 write_var_or_type, write_name_assoc, type_int, type_long,
6298 type_long_long, type_float, type_double, type_long_double,
6299 type_char, type_boolean, type_system_address): Add "struct
6300 parser_state" argument. Adjust function to use parser state.
6301 * ada-lang.c (parse): Likewise.
6302 * ada-lang.h: Forward declare "struct parser_state".
6303 (ada_parse): Add "struct parser_state" argument.
6304 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6305 calls to both functions.
6306 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6308 (yyparse): Redefine macro to f_parse_internal.
6309 (pstate): New variable.
6310 (parse_number): Add "struct parser_state" argument.
6311 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6312 and similars in order to use parser state.
6313 (parse_number): Adjust code to use parser state.
6315 (f_parse): New function.
6316 * f-lang.h: Forward declare "struct parser_state".
6317 (f_parse): Add "struct parser_state" argument.
6318 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6320 (yyparse): Redefine macro for java_parse_internal.
6321 (pstate): New variable.
6322 (push_expression_name, push_expression_name, insert_exp): Add
6323 "struct parser_state" argument.
6324 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6325 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6326 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6327 PostIncrementExpression, PostDecrementExpression,
6328 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6329 UnaryExpressionNotPlusMinus, CastExpression,
6330 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6331 RelationalExpression, EqualityExpression, AndExpression,
6332 ExclusiveOrExpression, InclusiveOrExpression,
6333 ConditionalAndExpression, ConditionalOrExpression,
6334 ConditionalExpression, Assignment, LeftHandSide): Update
6335 calls to write_exp* and similars in order to use parser state.
6336 (parse_number): Ajust code to use parser state.
6338 (java_parse): New function.
6339 (push_variable): Add "struct parser_state" argument. Adjust
6340 code to user parser state.
6341 (push_fieldnames, push_qualified_expression_name,
6342 push_expression_name, insert_exp): Likewise.
6343 * jv-lang.h: Forward declare "struct parser_state".
6344 (java_parse): Add "struct parser_state" argument.
6345 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6347 (yyparse): Redefine macro to m2_parse_internal.
6348 (pstate): New variable.
6349 (type_exp, exp, fblock, variable, type): Update calls to
6350 write_exp* and similars to use parser state.
6352 (m2_parse): New function.
6353 * m2-lang.h: Forward declare "struct parser_state".
6354 (m2_parse): Add "struct parser_state" argument.
6355 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6356 * objc-lang.h: Forward declare "struct parser_state".
6357 (end_msglist): Add "struct parser_state" argument.
6358 * p-exp.y (parse_type): Rewrite macro to use parser state.
6359 (yyparse): Redefine macro to pascal_parse_internal.
6360 (pstate): New variable.
6361 (parse_number): Add "struct parser_state" argument.
6362 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6363 write_exp* and similars in order to use parser state.
6364 (parse_number, yylex): Adjust code to use parser state.
6365 (pascal_parse): New function.
6366 * p-lang.h: Forward declare "struct parser_state".
6367 (pascal_parse): Add "struct parser_state" argument.
6368 * go-exp.y (parse_type): Rewrite macro to use parser state.
6369 (yyparse): Redefine macro to go_parse_internal.
6370 (pstate): New variable.
6371 (parse_number): Add "struct parser_state" argument.
6372 (type_exp, exp1, exp, variable, type): Update calls to
6373 write_exp* and similars in order to use parser state.
6374 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6375 to use parser state.
6376 (go_parse): Likewise.
6377 * go-lang.h: Forward declare "struct parser_state".
6378 (go_parse): Add "struct parser_state" argument.
6380 2014-03-27 Doug Evans <dje@google.com>
6382 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6384 2014-03-27 Doug Evans <dje@google.com>
6386 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6387 Remove argument abbrev_section. All callers updated.
6389 2014-03-27 Doug Evans <dje@google.com>
6391 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6392 addr_base, ranges_base.
6394 2014-03-26 Keith Seitz <keiths@redhat.com>
6396 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6397 types, not VAR_DOMAIN.
6399 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6401 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6403 * features/nios2-linux.c: Regenerated.
6404 * features/nios2.c: Regenerated.
6406 2014-03-25 Pedro Alves <palves@redhat.com>
6408 * cli/cli-script.c (script_from_file): Force the interpreter to
6411 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6413 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6414 small stack allocation.
6416 2014-03-24 Tristan Gingold <gingold@adacore.com>
6418 * darwin-nat.c (exc_server): Remove unused prototype.
6419 (darwin_dump_message): Correctly display data on x86_64.
6420 (darwin_encode_reply): Fix style.
6421 Add comments and fix indentation.
6423 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6425 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6427 2014-03-22 Doug Evans <xdje42@gmail.com>
6429 * infcmd.c: Whitespace fixes.
6430 (interrupt_command): Merge two function comments into one.
6432 2014-03-22 Doug Evans <xdje42@gmail.com>
6434 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6437 2014-03-22 Yao Qi <yao@codesourcery.com>
6439 * remote.c (target_read_live_memory): Remove.
6440 (memory_xfer_live_readonly_partial): Rename it to
6441 remote_xfer_live_readonly_partial. Remove argument 'object'.
6442 All callers updated. Call remote_read_bytes_1
6443 instead of target_read_live_memory.
6444 * tracepoint.c (set_traceframe_number): Remove.
6445 (make_cleanup_restore_traceframe_number): Likewise .
6446 * tracepoint.h (set_traceframe_number): Remove declaration.
6447 (make_cleanup_restore_traceframe_number): Likewise.
6449 2014-03-22 Yao Qi <yao@codesourcery.com>
6451 * remote.c (remote_read_bytes): Move code on reading from the
6453 (remote_read_bytes_1): ... here. New function.
6455 2014-03-22 Yao Qi <yao@codesourcery.com>
6457 * ctf.c (ctf_xfer_partial): Check the return value of
6458 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6459 return TARGET_XFER_UNAVAILABLE.
6460 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6461 * target.c (target_read_live_memory): Move it to remote.c.
6462 (memory_xfer_live_readonly_partial): Likewise.
6463 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6464 * remote.c (target_read_live_memory): Moved from target.c.
6465 (memory_xfer_live_readonly_partial): Likewise.
6466 (remote_read_bytes): Factored out from
6467 memory_xfer_partial_1.
6469 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6471 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6474 2014-03-21 Pedro Alves <palves@redhat.com>
6476 * infrun.c (normal_stop): Extend comment.
6478 2014-03-21 Hui Zhu <hui@codesourcery.com>
6479 Pedro Alves <palves@redhat.com>
6481 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6483 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6484 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6485 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6487 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6489 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6490 `z' formatted output modifier.
6492 2014-03-20 Tom Tromey <tromey@redhat.com>
6493 Sergio Durigan Junior <sergiodj@redhat.com>
6495 * probe.c (parse_probes): Turn assert into an ordinary error.
6496 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6497 exceptions when parsing probes. Rearrange the code for clarity.
6499 2014-03-20 Tom Tromey <tromey@redhat.com>
6502 * top.c (execute_command): Only dispatch events if the command
6505 2014-03-20 Tom Tromey <tromey@redhat.com>
6508 * infcall.c: Include event-top.h.
6509 (run_inferior_call): Call async_disable_stdin if needed.
6511 2014-03-20 Pedro Alves <palves@redhat.com>
6513 * infrun.c (prepare_to_proceed): Delete.
6514 (thread_still_needs_step_over): New function.
6515 (find_thread_needs_step_over): New function.
6516 (proceed): If the current thread needs a step-over, set its
6517 steping_over_breakpoint flag. Adjust to use
6518 find_thread_needs_step_over instead of prepare_to_proceed.
6519 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6520 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6522 (switch_back_to_stepped_thread): Step over breakpoints of all
6523 threads not the stepping thread, before switching back to the
6526 2014-03-20 Pedro Alves <palves@redhat.com>
6528 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6530 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6531 * infrun.c (saved_singlestep_ptid)
6532 (stepping_past_singlestep_breakpoint): Delete.
6533 (resume): Remove stepping_past_singlestep_breakpoint handling.
6534 (proceed): Store the prev_pc of the stepping thread too.
6535 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6537 (enum infwait_states): Delete infwait_thread_hop_state.
6538 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6540 (handle_inferior_event): Adjust.
6541 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6542 handling and the thread-hop code. Before removing single-step
6543 breakpoints, check whether the thread hit a single-step breakpoint
6544 of another thread. If it did, the trap is not a random signal.
6545 (switch_back_to_stepped_thread): If the event thread hit a
6546 single-step breakpoint, unblock it before switching to the
6547 stepping thread. Handle the case of the stepped thread having
6549 (keep_going): Handle the case of the current thread moving past a
6550 single-step breakpoint.
6552 2014-03-20 Pedro Alves <palves@redhat.com>
6555 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6556 are being stepped over.
6557 (breakpoint_address_match): Make extern.
6558 * breakpoint.h (breakpoint_address_match): New declaration.
6559 * inferior.h (stepping_past_instruction_at): New declaration.
6560 * infrun.c (struct step_over_info): New type.
6561 (step_over_info): New global.
6562 (set_step_over_info, clear_step_over_info)
6563 (stepping_past_instruction_at): New functions.
6564 (handle_inferior_event): Clear the step-over info when
6565 trap_expected is cleared.
6566 (resume): Remove now stale comment.
6567 (clear_proceed_status): Clear step-over info.
6568 (proceed): Adjust step-over handling to set or clear the step-over
6569 info instead of removing all breakpoints.
6570 (handle_signal_stop): When setting up a thread-hop, don't remove
6572 (stop_stepping): Clear step-over info.
6573 (keep_going): Adjust step-over handling to set or clear step-over
6574 info and then always inserting breakpoints, instead of removing
6575 all breakpoints when stepping over one.
6577 2014-03-20 Pedro Alves <palves@redhat.com>
6579 * infrun.c (previous_inferior_ptid): Adjust comment.
6580 (deferred_step_ptid): Delete.
6581 (infrun_thread_ptid_changed, prepare_to_proceed)
6582 (init_wait_for_inferior): Adjust.
6583 (handle_signal_stop): Delete deferred_step_ptid handling.
6585 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6588 * defs.h (sync_quit_force_run): New declaration.
6589 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6590 * event-top.c (async_sigterm_handler): New declaration.
6591 (async_sigterm_token): New variable.
6592 (async_init_signals): Create also async_sigterm_token.
6593 (async_sigterm_handler): New function.
6594 (sync_quit_force_run): New variable.
6595 (handle_sigterm): Replace quit_force call by other calls.
6596 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6598 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6600 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6601 offset into SPE pseudo registers.
6603 2014-03-18 Pedro Alves <palves@redhat.com>
6606 * inferior.h (print_stop_event): Declare.
6607 * infrun.c (print_stop_event): New, factored out from ...
6608 (normal_stop): ... this.
6609 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6610 of bpstat_print/print_stack_frame.
6612 2014-03-17 Tom Tromey <tromey@redhat.com>
6614 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6616 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6618 * ada-lang.c (decode_constrained_packed_array): Perform a
6619 minimal coercion for reference with coerce_ref instead of
6622 2014-03-17 Tristan Gingold <gingold@adacore.com>
6624 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6625 (darwin_solib_create_inferior_hook): Emit a warning if version
6628 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6630 * python/py-value.c (get_field_flag): Cast flag_name argument to
6631 PyObject_GetAttrString to support Python 2.4.
6633 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6635 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6636 (Global Maintainers): Remove Jan Kratochvil.
6638 2014-03-14 Pedro Alves <palves@redhat.com>
6640 * inferior.h (terminal_ours_for_output): Rename to ...
6641 (child_terminal_ours_for_output): ... this.
6642 (terminal_save_ours): Rename to ...
6643 (child_terminal_save_ours): ... this.
6644 (terminal_ours): Rename to ...
6645 (child_terminal_ours): ... this.
6646 (terminal_inferior): Rename to ...
6647 (child_terminal_inferior): ... this.
6648 (terminal_init_inferior): Rename to ...
6649 (child_terminal_init_inferior): ... this.
6650 (terminal_init_inferior_with_pgrp): Rename to ...
6651 (child_terminal_init_inferior_with_pgrp): ... this.
6652 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6653 (child_terminal_init_with_pgrp): ... this.
6654 (terminal_save_ours): Rename to ...
6655 (child_terminal_save_ours): ... this.
6656 (terminal_init_inferior): Rename to ...
6657 (child_terminal_init): ... this. Adjust.
6658 (terminal_inferior): Rename to ...
6659 (child_terminal_inferior): ... this.
6660 (terminal_ours_for_output): Rename to ...
6661 (child_terminal_ours_for_output): ... this. Adjust.
6662 (terminal_ours): Rename to ...
6663 (child_terminal_ours): ... this.
6664 (terminal_ours_1): Rename to ...
6665 (child_terminal_ours_1): ... this. Adjust.
6666 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6667 * windows-nat.c (do_initial_windows_stuff): Adjust.
6668 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6669 (gnu_terminal_init): ... this. Adjust.
6670 (gnu_target): Adjust.
6671 * inf-child.c (inf_child_target): Adjust.
6673 2014-03-13 Doug Evans <xdje42@gmail.com>
6676 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6679 2014-03-13 Doug Evans <xdje42@gmail.com>
6681 * value.c (record_latest_value): Call release_value_or_incref
6682 instead of release_value.
6684 2014-03-13 Pedro Alves <palves@redhat.com>
6686 * procfs.c (procfs_target): Don't override to_shortname,
6687 to_longname or to_doc.
6689 2014-03-13 Pedro Alves <palves@redhat.com>
6691 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6692 Unix in user visible strings.
6694 2014-03-12 Stan Shebs <stan@codesourcery.com>
6696 * gdbtypes.h: Annotate comments for Doxygen, add a page
6697 block comment with some general info.
6699 2014-03-12 Pedro Alves <palves@redhat.com>
6701 * infcmd.c (prepare_execution_command): New function, factored out
6702 from several execution commands.
6703 (run_command_1, continue_command, step_1, jump_command)
6704 (signal_command, until_command, advance_command, finish_command)
6705 (attach_command): Use prepare_execution_command.
6707 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6709 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6712 (struct arm_linux_thread_points): Removed.
6713 (struct arm_linux_process_info): New.
6714 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6715 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6716 (arm_linux_find_breakpoints_by_tid): Removed.
6717 (struct arch_lwp_info): New.
6718 (arm_linux_find_process_pid): New functions.
6719 (arm_linux_add_process): New functions.
6720 (arm_linux_process_info_get): New functions.
6721 (arm_linux_forget_process): New function.
6722 (arm_linux_get_debug_reg_state): New function.
6723 (struct update_registers_data): New.
6724 (update_registers_callback): New function.
6725 (arm_linux_insert_hw_breakpoint1): Updated.
6726 (arm_linux_remove_hw_breakpoint1): Updated.
6727 (arm_linux_insert_hw_breakpoint): Updated.
6728 (arm_linux_remove_hw_breakpoint): Updated.
6729 (arm_linux_insert_watchpoint): Updated.
6730 (arm_linux_remove_watchpoint): Updated.
6731 (arm_linux_new_thread): Updated.
6732 (arm_linux_prepare_to_resume): New function.
6733 (arm_linux_new_fork): New function.
6734 (_initialize_arm_linux_nat): Updated.
6736 2014-03-12 Pedro Alves <palves@redhat.com>
6738 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6740 2014-03-12 Tom Tromey <tromey@redhat.com>
6742 * inf-child.c (return_zero): New function.
6743 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6744 * aix-thread.c (aix_thread_inferior_created): New function.
6745 (aix_thread_attach): Remove.
6746 (init_aix_thread_ops): Don't set to_attach.
6747 (_initialize_aix_thread): Register inferior_created observer.
6748 * corelow.c (init_core_ops): Don't set to_attach or
6750 * exec.c (init_exec_ops): Don't set to_attach or
6752 * infcmd.c (run_command_1): Use find_run_target. Make direct
6754 (attach_command): Use find_attach_target. Make direct target
6756 * record-btrace.c (init_record_btrace_ops): Don't set
6758 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6760 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6761 set to_create_inferior.
6762 * target.c (complete_target_initialization): Add assertion.
6763 (target_create_inferior): Remove.
6764 (find_default_attach, find_default_create_inferior): Remove.
6765 (find_attach_target, find_run_target): New functions.
6766 (find_default_is_async_p, find_default_can_async_p)
6767 (target_supports_non_stop, target_attach): Remove.
6768 (init_dummy_target): Don't set to_create_inferior or
6769 to_supports_non_stop.
6770 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6771 TARGET_DEFAULT_FUNC.
6772 <to_create_inferior>: Add comment.
6773 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6774 TARGET_DEFAULT_RETURN.
6775 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6776 (find_attach_target, find_run_target): Declare.
6777 (target_create_inferior): Remove.
6778 (target_has_execution_1): Update comment.
6779 (target_supports_non_stop): Remove.
6780 * target-delegates.c: Rebuild.
6782 2014-03-12 Pedro Alves <palves@redhat.com>
6784 * inf-child.h: Update comment to not mention Unix.
6786 2014-03-12 Pedro Alves <palves@redhat.com>
6788 * inf-child.c: Update top comment to not mention Unix. Add
6789 generic comment describing how this target is meant to be used.
6790 (inf_child_post_attach, inf_child_post_startup_inferior)
6791 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6794 2014-03-12 Pedro Alves <palves@redhat.com>
6796 * nto-procfs.c: Include inf-child.h.
6797 (procfs_ops): Delete global.
6798 (procfs_can_run): Delete method.
6799 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6800 target pointer instead of referencing procfs_ops.
6801 (procfs_prepare_to_store): Delete.
6802 (init_procfs_ops): Delete function.
6803 (procfs_target): New function, based on init_procfs_ops, but
6804 inherit inf_child_target.
6805 (_initialize_procfs): Use procfs_target.
6807 2014-03-12 Pedro Alves <palves@redhat.com>
6809 * windows-nat.c: Include inf-child.h.
6810 (windows_ops): Delete global.
6811 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6813 (init_windows_ops): Delete function.
6814 (windows_target): New function, based on init_windows_ops, but
6815 inherit inf_child_target.
6816 (_initialize_windows_nat): Use windows_target. Install x86
6817 specific target methods here.
6819 2014-03-10 Doug Evans <xdje42@gmail.com>
6821 * guile/guile.c (call_initialize_gdb_module): New function.
6822 (initialize_guile): Replace call to scm_init_guile with call to
6825 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6827 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6828 in call to TYPE_CODE macro.
6830 2014-03-10 Jerome Guitton <guitton@adacore.com>
6832 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6833 Resolve tagged types to full view.
6835 2014-03-10 Hui Zhu <hui@codesourcery.com>
6837 * target.h (target_insert_breakpoint): Remove "hardware" from its
6840 2014-03-07 Doug Evans <dje@google.com>
6842 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6844 2014-03-07 Doug Evans <dje@google.com>
6846 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6847 Remove unused local comp_dir_attr. Assert exactly one of
6848 stub_comp_unit_die, stub_comp_dir is non-NULL.
6850 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6852 * target.h (complete_target_initialization, add_target):
6855 2014-03-07 Pedro Alves <palves@redhat.com>
6857 * go32-nat.c: Include inf-child.h.
6858 (go32_ops): Delete global.
6859 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6861 (go32_create_inferior): Push the passed in target pointer instead
6862 of referencing go32_ops.
6863 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6864 (go32_target): New function, based on init_go32_ops, but inherit
6866 (_initialize_go32_nat): Use go32_target. Move parts of
6869 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6871 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6872 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6873 SYMBOL_VALUE_ADDRESS.
6874 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6876 2014-03-06 Yao Qi <yao@codesourcery.com>
6878 * breakpoint.c (get_tracepoint_by_number): Remove argument
6879 optional_p. All callers updated. Adjust comments. Update
6881 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6883 2014-03-06 Yao Qi <yao@codesourcery.com>
6885 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6886 early if get_number returns zero. Use 'p' instead of 'args'.
6888 2014-03-06 Yao Qi <yao@codesourcery.com>
6890 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6893 2014-03-06 Yao Qi <yao@codesourcery.com>
6895 PR breakpoints/16508
6896 * tracepoint.c (check_trace_running): New function.
6897 (trace_find_command): Move code to check_trace_running and
6898 call check_trace_running.
6899 (trace_find_pc_command): Likewise.
6900 (trace_find_tracepoint_command): Likewise.
6901 (trace_find_line_command): Likewise.
6902 (trace_find_range_command): Likewise.
6903 * tracepoint.h (check_trace_running): Likewise.
6904 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6906 2014-03-06 Yao Qi <yao@codesourcery.com>
6908 * target.h (struct target_ops) <to_traceframe_info>: Use
6909 TARGET_DEFAULT_NORETURN (tcomplain ()).
6910 * target-delegates.c: Regenerated.
6912 2014-03-05 Pedro Alves <palves@redhat.com>
6915 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6916 void. Update comment.
6917 (dcache_xfer_memory): Delete.
6918 (dcache_read_memory_partial): New, based on the read bits of
6920 (dcache_update): Add status parameter. Use ULONGEST for len, and
6921 adjust. Discard cache lines if the reason for the update was
6923 * dcache.h (dcache_xfer_memory): Delete declaration.
6924 (dcache_read_memory_partial): New declaration.
6925 (dcache_update): Update prototype.
6926 * target.c (raw_memory_xfer_partial): Update the dcache here.
6927 (memory_xfer_partial_1): Don't handle dcache writes here.
6929 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6931 * remote-sim.c (gdbsim_load): Add const to prog.
6933 2014-03-03 Tom Tromey <tromey@redhat.com>
6935 * elfread.c (probe_key): Change to bfd_data.
6936 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6937 now per-BFD, not per-objfile.
6938 * stap-probe.c (stap_probe_destroy): Update comment.
6939 (handle_stap_probe): Allocate on the per-BFD obstack.
6941 2014-03-03 Tom Tromey <tromey@redhat.com>
6943 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6944 * breakpoint.c (create_longjmp_master_breakpoint): Use
6946 (add_location_to_breakpoint, bkpt_probe_insert_location)
6947 (bkpt_probe_remove_location): Update.
6948 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6949 * elfread.c (elf_symfile_relocate_probe): Remove.
6950 (elf_probe_fns): Update.
6951 (insert_exception_resume_breakpoint): Change type of "probe"
6952 parameter to bound_probe.
6953 (check_exception_resume): Update.
6954 * objfiles.c (objfile_relocate1): Don't relocate probes.
6955 * probe.c (bound_probe_s): New typedef.
6956 (parse_probes): Use get_probe_address. Set sal's objfile.
6957 (find_probe_by_pc): Return a bound_probe.
6958 (collect_probes): Return a VEC(bound_probe_s).
6959 (compare_probes): Update.
6960 (gen_ui_out_table_header_info): Change type of "probes"
6962 (info_probes_for_ops): Update.
6963 (get_probe_address): New function.
6964 (probe_safe_evaluate_at_pc): Update.
6965 * probe.h (struct probe_ops) <get_probe_address>: New field.
6966 <set_semaphore, clear_semaphore>: Add objfile parameter.
6967 (struct probe) <objfile>: Remove field.
6969 <address>: Update comment.
6970 (struct bound_probe): New.
6971 (find_probe_by_pc): Return a bound_probe.
6972 (get_probe_address): Declare.
6973 * solib-svr4.c (struct probe_and_action) <address>: New field.
6974 (hash_probe_and_action, equal_probe_and_action): Update.
6975 (register_solib_event_probe): Add address parameter.
6976 (solib_event_probe_at): Update.
6977 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6979 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6980 (stap_get_probe_address): New function.
6981 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6982 (compile_probe_arg): Update.
6983 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6985 (handle_stap_probe): Don't relocate the probe.
6986 (stap_relocate): Remove.
6987 (stap_gen_info_probes_table_values): Update.
6988 (stap_probe_ops): Remove stap_relocate.
6989 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6990 (debug_sym_probe_fns): Update.
6991 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6992 * symtab.c (init_sal): Use memset.
6993 * symtab.h (struct symtab_and_line) <objfile>: New field.
6994 * tracepoint.c (start_tracing, stop_tracing): Update.
6996 2014-03-03 Tom Tromey <tromey@redhat.com>
6998 * probe.h (parse_probes, find_probe_by_pc)
6999 (find_probes_in_objfile): Fix comments.
7001 2014-03-02 Doug Evans <xdje42@gmail.com>
7003 * infrun.c (handle_signal_stop): Replace test for
7004 TARGET_WAITKIND_STOPPED with an assert.
7006 2014-03-02 Doug Evans <xdje42@gmail.com>
7008 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7010 2014-03-02 Doug Evans <xdje42@gmail.com>
7012 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7014 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7016 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7018 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7020 * i386obsd-nat.c: Include "obsd-nat.h".
7021 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7023 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7025 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7027 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7029 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7031 * mips64obsd-nat.c: Include "obsd-nath".
7032 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7034 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7036 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7038 * amd64obsd-nat.c: Include "obsd-nat,h.
7039 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7041 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7043 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7045 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7046 (find_overload_match): Update call to find_oload_champ.
7047 (find_oload_champ_namespace_loop): Likewise
7049 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7051 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7053 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7054 * config/sparc/obsd64.mh: New file.
7055 * sparc64obsd-nat.c: New file.
7057 * obsd-nat.h: New file.
7058 * obsd-nat.c: New file.
7059 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7060 (ALLDEPFILES): Add obsd-nat.c.
7062 2014-02-28 Tom Tromey <tromey@redhat.com>
7064 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7065 * cli-out.h (cli_ui_out_impl): Now const.
7066 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7067 * ui-out.c (struct ui_out) <impl>: Now const.
7068 (default_ui_out_impl): Now const.
7069 (ui_out_new): Make 'impl' parameter const.
7070 * ui-out.h (ui_out_new): Update.
7072 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7074 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7076 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7078 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7080 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7082 Additional PR 8882 fix.
7083 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7085 2014-02-27 Pedro Alves <palves@redhat.com>
7087 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7090 2014-02-27 Pedro Alves <palves@redhat.com>
7093 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7094 * nat/linux-waitpid.c: Include string.h.
7095 (status_to_str): Moved here and made extern.
7096 * nat/linux-waitpid.h (status_to_str): New declaration.
7098 2014-02-27 Hui Zhu <hui@codesourcery.com>
7101 * infrun.c (ptid_match): Move ...
7102 * common/ptid.c (ptid_match): ... here.
7103 * inferior.h (ptid_match): Move ...
7104 * common/ptid.h (ptid_match): ... here.
7106 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7108 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7109 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7112 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7114 * obsd-tdep.c (obsd_auxv_parse): New function.
7115 (obsd_init_abi): Set auxv_parse.
7117 * gdbarch.sh (auxv_parse): New.
7118 * gdbarch.h: Regenerated.
7119 * gdbarch.c: Regenerated.
7120 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7122 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7124 * guile/scm-value.c (gdbscm_history_append_x): New function.
7125 (value_functions): Add it.
7127 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7129 * dwarf2read.c (attr_value_as_address): New function.
7130 (dwarf2_find_base_address, read_call_site_scope): Use
7131 attr_value_as_address in place of DW_ADDR.
7132 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7133 the low and high addresses. Slight rework of the handling
7134 of the high pc being a constant form, and limit it to
7135 DWARF verson 4 or higher.
7136 (dwarf2_record_block_ranges): Likewise.
7137 (read_partial_die): Likewise.
7138 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7140 2014-02-26 Tom Tromey <tromey@redhat.com>
7142 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7144 2014-02-26 Tom Tromey <tromey@redhat.com>
7146 * elfread.c (elf_read_minimal_symbols): Return early if
7147 minimal symbols have already been read. Add "ei" parameter.
7148 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7149 * minsyms.c (prim_record_minimal_symbol_full): Update.
7150 * objfiles.h (struct objstats) <n_minsyms>: Move...
7151 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7152 * symmisc.c (print_objfile_statistics): Update.
7154 2014-02-26 Tom Tromey <tromey@redhat.com>
7156 * elfread.c (elf_read_minimal_symbols): New function, from
7158 (elf_symfile_read): Call it.
7160 2014-02-26 Tom Tromey <tromey@redhat.com>
7162 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7163 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7164 (lookup_minimal_symbol_solib_trampoline)
7165 (lookup_minimal_symbol_by_pc_section_1)
7166 (lookup_minimal_symbol_and_objfile): Update.
7167 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7168 Don't allocate a minimal symbol if minsyms have already been read.
7169 (build_minimal_symbol_hash_tables): Update.
7170 (install_minimal_symbols): Do nothing if minsyms already read.
7171 Use the per-BFD obstack.
7172 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7173 * objfiles.c (allocate_objfile): Call
7174 terminate_minimal_symbol_table later.
7175 (have_minimal_symbols): Update.
7176 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7177 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7178 Move from struct objfile.
7179 <minsyms_read>: New field.
7180 (struct objfile) <msymbols, minimal_symbol_count,
7181 msymbol_hash, msymbol_demangled_hash>: Move.
7182 (ALL_OBJFILE_MSYMBOLS): Update.
7183 * symfile.c (read_symbols): Set minsyms_read.
7184 (reread_symbols): Update.
7185 * symmisc.c (dump_objfile, dump_msymbols): Update.
7187 2014-02-26 Tom Tromey <tromey@redhat.com>
7189 * minsyms.c (msymbols_sort): Remove.
7190 * minsyms.h (msymbols_sort): Remove.
7191 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7192 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7193 * elfread.c (elf_symtab_read): Don't add section offsets.
7194 * xcoffread.c (record_minimal_symbol): Don't add section offset
7195 to minimal symbol address.
7196 * somread.c (text_offset, data_offset): Remove.
7197 (som_symtab_read): Don't add section offsets to minimal symbol
7199 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7200 Don't add section offsets to minimal symbols.
7201 * coffread.c (coff_symtab_read): Don't add section offsets
7202 to minimal symbol addresses.
7203 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7204 to minimal symbol addresses.
7205 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7206 section offset to minimal symbol addresses.
7207 * mdebugread.c (parse_partial_symbols): Don't add section
7208 offset to minimal symbol addresses.
7209 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7210 offset to minimal symbol addresses.
7212 2014-02-26 Tom Tromey <tromey@redhat.com>
7214 * ada-lang.c (ada_main_name): Update.
7215 (ada_add_standard_exceptions): Update.
7216 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7217 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7218 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7219 * auxv.c (ld_so_xfer_auxv): Update.
7220 * avr-tdep.c (avr_scan_prologue): Update.
7221 * ax-gdb.c (gen_var_ref): Update.
7222 * blockframe.c (get_pc_function_start)
7223 (find_pc_partial_function_gnu_ifunc): Update.
7224 * breakpoint.c (create_overlay_event_breakpoint)
7225 (create_longjmp_master_breakpoint)
7226 (create_std_terminate_master_breakpoint)
7227 (create_exception_master_breakpoint): Update.
7228 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7229 * c-valprint.c (c_val_print): Update.
7230 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7231 * common/agent.c (agent_look_up_symbols): Update.
7232 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7233 * dwarf2loc.c (call_site_to_target_addr): Update.
7234 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7235 * elfread.c (elf_gnu_ifunc_record_cache)
7236 (elf_gnu_ifunc_resolve_by_got): Update.
7237 * findvar.c (default_read_var_value): Update.
7238 * frame.c (inside_main_func): Update.
7239 * frv-tdep.c (frv_frame_this_id): Update.
7240 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7241 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7243 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7244 (hppa_hpux_find_dummy_bpaddr): Update.
7245 * hppa-tdep.c (hppa_symbol_address): Update.
7246 * infcmd.c (until_next_command): Update.
7247 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7249 * linespec.c (minsym_found, add_minsym): Update.
7250 * linux-nat.c (get_signo): Update.
7251 * linux-thread-db.c (inferior_has_bug): Update.
7252 * m32c-tdep.c (m32c_return_value)
7253 (m32c_m16c_address_to_pointer): Update.
7254 * m32r-tdep.c (m32r_frame_this_id): Update.
7255 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7256 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7257 * maint.c (maintenance_translate_address): Update.
7258 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7259 (frob_address): New function.
7260 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7261 frob_address. Rename parameter to "pc_in".
7262 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7264 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7266 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7267 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7268 * objc-lang.c (find_objc_msgsend): Update.
7269 * objfiles.c (objfile_relocate1): Update.
7270 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7271 * p-valprint.c (pascal_val_print): Update.
7272 * parse.c (write_exp_msymbol): Update.
7273 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7274 (ppc_elfv2_skip_entrypoint): Update.
7275 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7276 * printcmd.c (build_address_symbolic, msym_info)
7277 (address_info): Update.
7278 * proc-service.c (ps_pglobal_lookup): Update.
7279 * psymtab.c (find_pc_sect_psymtab_closer)
7280 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7281 Change msymbol parameter to bound_minimal_symbol.
7282 * ravenscar-thread.c (get_running_thread_id): Update.
7283 * remote.c (remote_check_symbols): Update.
7284 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7286 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7287 * solib-dsbt.c (lm_base): Update.
7288 * solib-frv.c (lm_base, main_got): Update.
7289 * solib-irix.c (locate_base): Update.
7290 * solib-som.c (som_solib_create_inferior_hook)
7291 (link_map_start): Update.
7292 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7293 * solib-svr4.c (elf_locate_base, enable_break): Update.
7294 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7295 (flush_ea_cache): Update.
7296 * stabsread.c (define_symbol, scan_file_globals): Update.
7297 * stack.c (find_frame_funname): Update.
7298 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7299 (debug_qf_find_pc_sect_symtab): Update.
7300 * symfile.c (simple_read_overlay_table)
7301 (simple_overlay_update): Update.
7302 * symfile.h (struct quick_symbol_functions)
7303 <find_pc_sect_symtab>: Change type of msymbol to
7304 bound_minimal_symbol.
7305 * symmisc.c (dump_msymbols): Update.
7306 * symtab.c (find_pc_sect_symtab_via_partial)
7307 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7308 (search_symbols, print_msymbol_info): Update.
7309 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7310 (MSYMBOL_VALUE_ADDRESS): Redefine.
7311 (BMSYMBOL_VALUE_ADDRESS): New macro.
7312 * tracepoint.c (scope_info): Update.
7313 * tui/tui-disasm.c (tui_find_disassembly_address)
7314 (tui_get_begin_asm_address): Update.
7315 * valops.c (find_function_in_inferior): Update.
7316 * value.c (value_static_field, value_fn_field): Update.
7318 2014-02-26 Tom Tromey <tromey@redhat.com>
7320 * ada-lang.c (ada_update_initial_language): Update.
7321 (ada_main_name, ada_has_this_exception_support): Update.
7322 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7323 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7324 * arm-tdep.c (arm_skip_stub): Update.
7325 * auxv.c (ld_so_xfer_auxv): Update.
7326 * avr-tdep.c (avr_scan_prologue): Update.
7327 * ax-gdb.c (gen_var_ref): Update.
7328 * breakpoint.c (struct breakpoint_objfile_data)
7329 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7330 type to bound_minimal_symbol.
7331 (create_overlay_event_breakpoint)
7332 (create_longjmp_master_breakpoint)
7333 (create_std_terminate_master_breakpoint)
7334 (create_exception_master_breakpoint): Update.
7335 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7336 * c-exp.y (classify_name): Update.
7337 * coffread.c (coff_symfile_read): Update.
7338 * common/agent.c (agent_look_up_symbols): Update.
7339 * d-lang.c (d_main_name): Update.
7340 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7341 * dec-thread.c (enable_dec_thread): Update.
7342 * dwarf2loc.c (call_site_to_target_addr): Update.
7343 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7344 * eval.c (evaluate_subexp_standard): Update.
7345 * findvar.c (struct minsym_lookup_data) <result>: Change type
7346 to bound_minimal_symbol.
7348 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7349 * frame.c (inside_main_func): Update.
7350 * frv-tdep.c (frv_frame_this_id): Update.
7351 * gcore.c (call_target_sbrk): Update.
7352 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7353 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7355 * go-lang.c (go_main_name): Update.
7356 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7357 (hppa_hpux_find_import_stub_for_addr): Update.
7358 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7359 Update. Change return type.
7360 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7362 * jit.c (jit_breakpoint_re_set_internal): Update.
7363 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7365 * linux-nat.c (get_signo): Update.
7366 * linux-thread-db.c (inferior_has_bug): Update
7367 * m32c-tdep.c (m32c_return_value)
7368 (m32c_m16c_address_to_pointer): Update.
7369 * m32r-tdep.c (m32r_frame_this_id): Update.
7370 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7371 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7372 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7373 lookup_minimal_symbol. Change return type.
7374 (lookup_minimal_symbol): Remove.
7375 (lookup_bound_minimal_symbol): Update.
7376 (lookup_minimal_symbol_text): Change return type.
7377 (lookup_minimal_symbol_solib_trampoline): Change return type.
7378 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7379 (lookup_minimal_symbol_solib_trampoline): Change return type.
7380 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7381 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7382 (value_nsstring, find_imps): Update.
7383 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7384 * p-lang.c (pascal_main_name): Update.
7385 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7386 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7387 * proc-service.c (ps_pglobal_lookup): Update.
7388 * ravenscar-thread.c (get_running_thread_msymbol): Change
7390 (has_ravenscar_runtime, get_running_thread_id): Update.
7391 * remote.c (remote_check_symbols): Update.
7392 * sol-thread.c (ps_pglobal_lookup): Update.
7393 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7394 * solib-dsbt.c (lm_base): Update.
7395 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7397 * solib-irix.c (locate_base): Update.
7398 * solib-som.c (som_solib_create_inferior_hook)
7399 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7401 * solib-spu.c (spu_enable_break): Update.
7402 * solib-svr4.c (elf_locate_base, enable_break): Update.
7403 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7404 (flush_ea_cache): Update.
7405 * stabsread.c (define_symbol): Update.
7406 * symfile.c (simple_read_overlay_table): Update.
7407 * symtab.c (find_pc_sect_line): Update.
7408 * tracepoint.c (scope_info): Update.
7409 * tui-disasm.c (tui_get_begin_asm_address): Update.
7410 * value.c (value_static_field): Update.
7412 2014-02-26 Tom Tromey <tromey@redhat.com>
7414 * minsyms.c (prim_record_minimal_symbol_full): Use
7415 SET_MSYMBOL_VALUE_ADDRESS.
7416 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7417 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7418 SET_MSYMBOL_VALUE_ADDRESS.
7419 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7420 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7422 2014-02-26 Tom Tromey <tromey@redhat.com>
7424 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7425 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7426 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7427 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7428 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7429 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7430 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7431 * ada-lang.c (ada_main_name): Update.
7432 (ada_lookup_simple_minsym): Update.
7433 (ada_make_symbol_completion_list): Update.
7434 (ada_add_standard_exceptions): Update.
7435 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7436 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7437 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7438 * arm-tdep.c (skip_prologue_function): Update.
7439 (arm_skip_stack_protector, arm_skip_stub): Update.
7440 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7441 (arm_wince_skip_main_prologue): Update.
7442 * auxv.c (ld_so_xfer_auxv): Update.
7443 * avr-tdep.c (avr_scan_prologue): Update.
7444 * ax-gdb.c (gen_var_ref): Update.
7445 * block.c (call_site_for_pc): Update.
7446 * blockframe.c (get_pc_function_start): Update.
7447 (find_pc_partial_function_gnu_ifunc): Update.
7448 * breakpoint.c (create_overlay_event_breakpoint): Update.
7449 (create_longjmp_master_breakpoint): Update.
7450 (create_std_terminate_master_breakpoint): Update.
7451 (create_exception_master_breakpoint): Update.
7452 (resolve_sal_pc): Update.
7453 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7454 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7456 * c-valprint.c (c_val_print): Update.
7457 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7458 * coffread.c (coff_symfile_read): Update.
7459 * common/agent.c (agent_look_up_symbols): Update.
7460 * dbxread.c (find_stab_function_addr): Update.
7461 (end_psymtab): Update.
7462 * dwarf2loc.c (call_site_to_target_addr): Update.
7463 (func_verify_no_selftailcall): Update.
7464 (tailcall_dump): Update.
7465 (call_site_find_chain_1): Update.
7466 (dwarf_expr_reg_to_entry_parameter): Update.
7467 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7468 (elf_gnu_ifunc_resolve_by_got): Update.
7469 * f-valprint.c (info_common_command): Update.
7470 * findvar.c (read_var_value): Update.
7471 * frame.c (get_prev_frame_1): Update.
7472 (inside_main_func): Update.
7473 * frv-tdep.c (frv_skip_main_prologue): Update.
7474 (frv_frame_this_id): Update.
7475 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7476 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7477 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7478 (gnuv3_skip_trampoline): Update.
7479 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7480 (hppa64_hpux_in_solib_call_trampoline): Update.
7481 (hppa_hpux_skip_trampoline_code): Update.
7482 (hppa64_hpux_search_dummy_call_sequence): Update.
7483 (hppa_hpux_find_import_stub_for_addr): Update.
7484 (hppa_hpux_find_dummy_bpaddr): Update.
7485 * hppa-tdep.c (hppa_symbol_address)
7486 (hppa_lookup_stub_minimal_symbol): Update.
7487 * i386-tdep.c (i386_skip_main_prologue): Update.
7488 (i386_pe_skip_trampoline_code): Update.
7489 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7490 * infcall.c (get_function_name): Update.
7491 * infcmd.c (until_next_command): Update.
7492 * jit.c (jit_breakpoint_re_set_internal): Update.
7493 (jit_inferior_init): Update.
7494 * linespec.c (minsym_found): Update.
7495 (add_minsym): Update.
7496 * linux-fork.c (info_checkpoints_command): Update.
7497 * linux-nat.c (get_signo): Update.
7498 * linux-thread-db.c (inferior_has_bug): Update.
7499 * m32c-tdep.c (m32c_return_value): Update.
7500 (m32c_m16c_address_to_pointer): Update.
7501 (m32c_m16c_pointer_to_address): Update.
7502 * m32r-tdep.c (m32r_frame_this_id): Update.
7503 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7504 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7505 * maint.c (maintenance_translate_address): Update.
7506 * minsyms.c (add_minsym_to_hash_table): Update.
7507 (add_minsym_to_demangled_hash_table): Update.
7508 (msymbol_objfile): Update.
7509 (lookup_minimal_symbol): Update.
7510 (iterate_over_minimal_symbols): Update.
7511 (lookup_minimal_symbol_text): Update.
7512 (lookup_minimal_symbol_by_pc_name): Update.
7513 (lookup_minimal_symbol_solib_trampoline): Update.
7514 (lookup_minimal_symbol_by_pc_section_1): Update.
7515 (lookup_minimal_symbol_and_objfile): Update.
7516 (prim_record_minimal_symbol_full): Update.
7517 (compare_minimal_symbols): Update.
7518 (compact_minimal_symbols): Update.
7519 (build_minimal_symbol_hash_tables): Update.
7520 (install_minimal_symbols): Update.
7521 (terminate_minimal_symbol_table): Update.
7522 (find_solib_trampoline_target): Update.
7523 (minimal_symbol_upper_bound): Update.
7524 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7525 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7526 (mips_skip_pic_trampoline_code): Update.
7527 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7528 * objc-lang.c (selectors_info): Update.
7529 (classes_info): Update.
7530 (find_methods): Update.
7531 (find_imps): Update.
7532 (find_objc_msgsend): Update.
7533 * objfiles.c (objfile_relocate1): Update.
7534 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7535 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7536 * p-valprint.c (pascal_val_print): Update.
7537 * parse.c (write_exp_msymbol): Update.
7538 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7539 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7540 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7541 * printcmd.c (build_address_symbolic): Update.
7543 (address_info): Update.
7544 * proc-service.c (ps_pglobal_lookup): Update.
7545 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7546 (find_pc_sect_psymtab): Update.
7547 * python/py-framefilter.c (py_print_frame): Update.
7548 * ravenscar-thread.c (get_running_thread_id): Update.
7549 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7551 * remote.c (remote_check_symbols): Update.
7552 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7553 (rs6000_skip_trampoline_code): Update.
7554 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7555 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7556 * solib-dsbt.c (lm_base): Update.
7557 * solib-frv.c (lm_base): Update.
7559 * solib-irix.c (locate_base): Update.
7560 * solib-som.c (som_solib_create_inferior_hook): Update.
7561 (som_solib_desire_dynamic_linker_symbols): Update.
7562 (link_map_start): Update.
7563 * solib-spu.c (spu_enable_break): Update.
7564 (ocl_enable_break): Update.
7565 * solib-svr4.c (elf_locate_base): Update.
7566 (enable_break): Update.
7567 * spu-tdep.c (spu_get_overlay_table): Update.
7568 (spu_catch_start): Update.
7569 (flush_ea_cache): Update.
7570 * stabsread.c (define_symbol): Update.
7571 (scan_file_globals): Update.
7572 * stack.c (find_frame_funname): Update.
7573 (frame_info): Update.
7574 * symfile.c (simple_read_overlay_table): Update.
7575 (simple_overlay_update): Update.
7576 * symmisc.c (dump_msymbols): Update.
7577 * symtab.c (fixup_section): Update.
7578 (find_pc_sect_line): Update.
7579 (skip_prologue_sal): Update.
7580 (search_symbols): Update.
7581 (print_msymbol_info): Update.
7582 (rbreak_command): Update.
7583 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7584 (completion_list_objc_symbol): Update.
7585 (default_make_symbol_completion_list_break_on): Update.
7586 * tracepoint.c (scope_info): Update.
7587 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7588 (tui_get_begin_asm_address): Update.
7589 * valops.c (find_function_in_inferior): Update.
7590 * value.c (value_static_field): Update.
7591 (value_fn_field): Update.
7593 2014-02-26 Tom Tromey <tromey@redhat.com>
7595 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7596 bound minimal symbols. Move code that knows about minsym
7598 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7600 * minsyms.h (minimal_symbol_upper_bound): Declare.
7601 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7602 minimal_symbol_upper_bound.
7604 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7606 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7607 Use the type's name if its basic type does not have a tag.
7609 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7611 * dwarf2read.c (read_subrange_type): Add comment.
7613 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7615 * dwarf2read.c (update_enumeration_type_from_children): New
7616 function, mostly extracted from process_structure_scope.
7617 (read_enumeration_type): Call update_enumeration_type_from_children.
7618 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7619 and flag_flag_enum fields.
7621 2014-02-26 Pedro Alves <palves@redhat.com>
7623 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7624 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7625 to_xfer_partial method.
7627 2014-02-26 Pedro Alves <palves@redhat.com>
7629 * target.c (complete_target_initialization): Don't install
7630 default_xfer_partial as to_xfer_partial hook.
7632 (update_current_target): Don't INHERIT nor de_fault
7633 deprecated_xfer_memory. Delete de_fault macro.
7634 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7635 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7636 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7639 2014-02-26 Pedro Alves <palves@redhat.com>
7641 * go32-nat.c (my_write_child): New function.
7642 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7643 (go32_xfer_partial): New function.
7644 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7645 Instead install a to_xfer_partial hook.
7647 2014-02-26 Pedro Alves <palves@redhat.com>
7649 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7650 to_xfer_partial helper. Rewrite.
7651 (procfs_xfer_partial): New function.
7652 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7653 Install a to_xfer_partial hook.
7655 2014-02-26 Pedro Alves <palves@redhat.com>
7657 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7658 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7659 (m32r_xfer_partial): New function.
7660 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7661 Install a to_xfer_partial hook.
7663 2014-02-26 Pedro Alves <palves@redhat.com>
7665 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7667 (mips_xfer_partial): New function.
7668 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7669 hook. Install a to_xfer_partial hook.
7671 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7673 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7674 * gdbtypes.c (create_array_type_with_stride): New function,
7675 renaming create_array_type, but with an added parameter
7676 called "bit_stride".
7677 (create_array_type): Re-implement using
7678 create_array_type_with_stride.
7679 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7680 and DW_AT_bit_stride attributes.
7682 2014-02-26 Pedro Alves <palves@redhat.com>
7684 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7685 task-specific breakpoints.
7687 2014-02-25 Pedro Alves <palves@redhat.com>
7689 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7690 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7692 2014-02-25 Stan Shebs <stan@codesourcery.com>
7694 * defs.h: Annotate comments for Doxygen.
7696 2014-02-25 Tom Tromey <tromey@redhat.com>
7698 * target.h (target_ignore): Don't declare.
7699 * target.c (target_ignore): Remove.
7701 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7704 * auto-load.c (auto_load_objfile_script_1): Change filename to
7707 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7709 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7710 documentation. Adjust prototype to match the target_ops
7711 to_xfer_partial method. Adjust implementation accordingly.
7713 2014-02-25 Hui Zhu <hui@codesourcery.com>
7715 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7718 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7720 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7721 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7722 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7723 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7724 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7725 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7726 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7727 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7729 (rl78_register_type): Use a data pointer type for SP and
7730 new pseudo registers mentioned above. Use a 16 bit integer
7731 type for all other register pairs.
7732 (rl78_register_name, rl78_g10_register_name): Update for
7733 new pseudo registers.
7734 (rl78_pseudo_register_read): Likewise.
7735 (rl78_pseudo_register_write): Likewise.
7736 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7737 to the newly added pseudo registers.
7739 2014-02-24 Doug Evans <dje@google.com>
7741 * value.c (record_latest_value): Fix comment.
7742 * printcmd.c (print_command_1): Remove code to handle -1 return from
7743 record_latest_value.
7745 2014-02-24 Pedro Alves <palves@redhat.com>
7747 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7748 deprecated_xfer_memory hook.
7749 (procfs_xfer_partial): Call procfs_xfer_memory instead
7750 of the deprecated_xfer_memory target hook.
7751 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7754 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7756 * windows-nat.c (windows_xfer_shared_libraries): Return
7757 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7758 requested object is TARGET_OBJECT_LIBRARIES.
7760 2014-02-24 Yao Qi <yao@codesourcery.com>
7762 * target.h (enum target_xfer_status)
7763 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7764 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7766 * corefile.c (memory_error_message): User updated.
7767 * exec.c (section_table_read_available_memory): Likewise.
7768 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7769 * target.c (target_xfer_status_to_string): Likewise.
7770 (raw_memory_xfer_partial): Likewise.
7771 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7772 * valops.c (read_value_memory): Likewise.
7773 * exec.h: Update comments.
7775 2014-02-24 Yao Qi <yao@codesourcery.com>
7777 * target.c (target_xfer_status_to_string): Rename argument err
7779 * target.h (target_xfer_status_to_string): Update declaration.
7780 Replace target_xfer_error_to_string with
7781 target_xfer_status_to_string in comment.
7783 2014-02-24 Yao Qi <yao@codesourcery.com>
7785 * mips-linux-nat.c (super_close): Update its type.
7786 (mips_linux_close): Pass 'self' to super_close.
7788 2014-02-24 Yao Qi <yao@codesourcery.com>
7790 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7791 * corefile.c (read_memory): Adjusted.
7792 * target.c (target_write_with_progress): Adjusted.
7794 2014-02-23 Yao Qi <yao@codesourcery.com>
7798 2013-10-25 Yao Qi <yao@codesourcery.com>
7800 * remote.c (remote_traceframe_info): Return early if
7801 traceframe is not selected.
7803 2013-07-19 Yao Qi <yao@codesourcery.com>
7805 * target.c (update_current_target): Change the default action
7806 of 'to_traceframe_info' from tcomplain to return_zero.
7807 * target.h (struct target_ops) <to_traceframe_info>: Add more
7810 2014-02-23 Yao Qi <yao@codesourcery.com>
7812 * valops.c (read_value_memory): Rewrite it. Call
7813 target_xfer_partial in a loop.
7814 * exec.h (section_table_available_memory): Remove declaration.
7815 Move comments to ...
7816 * exec.c (section_table_available_memory): ... here. Make it
7819 2014-02-23 Yao Qi <yao@codesourcery.com>
7821 * exec.c (section_table_read_available_memory): New function.
7822 * exec.h (section_table_read_available_memory): Declare.
7823 * ctf.c (ctf_xfer_partial): Call
7824 section_table_read_available_memory.
7825 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7827 2014-02-23 Yao Qi <yao@codesourcery.com>
7829 * ctf.c (ctf_xfer_partial): Move code to ...
7830 * exec.c (exec_read_partial_read_only): ... it. New function.
7831 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7832 * tracefile.c: Include "exec.h".
7833 * exec.h (exec_read_partial_read_only): Declare.
7835 2014-02-23 Yao Qi <yao@codesourcery.com>
7837 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7838 (tfile_has_memory): Remove.
7839 (init_tfile_ops): Don't set fields to_has_all_memory and
7840 to_has_memory of tfile_ops.
7841 * tracefile.c (tracefile_has_all_memory): New function.
7842 (tracefile_has_memory): New function.
7843 (init_tracefile_ops): Initialize fields to_has_all_memory and
7844 to_has_memory of 'ops'.
7846 2014-02-23 Yao Qi <yao@codesourcery.com>
7848 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7849 (ctf_thread_alive, ctf_get_trace_status): Remove.
7850 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7852 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7853 (tfile_has_stack, tfile_has_registers): Remove.
7854 (tfile_thread_alive): Remove.
7855 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7857 * tracefile.c (tracefile_has_stack): New function.
7858 (tracefile_has_registers): New function.
7859 (tracefile_thread_alive): New function.
7860 (tracefile_get_trace_status): New function.
7861 (init_tracefile_ops): New function.
7862 * tracefile.h (init_tracefile_ops): Declare.
7864 2014-02-23 Yao Qi <yao@codesourcery.com>
7866 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7867 (O_LARGEFILE): Likewise.
7868 (tfile_ops): Likewise.
7869 (TRACE_HEADER_SIZE): Likewise.
7870 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7871 (cur_data_size): Likewise.
7872 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7873 (tfile_close, tfile_files_info): Likewise.
7874 (tfile_get_trace_status): Likewise.
7875 (tfile_get_tracepoint_status): Likewise.
7876 (tfile_get_traceframe_address): Likewise.
7877 (tfile_trace_find, match_blocktype): Likewise.
7878 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7879 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7880 (tfile_get_trace_state_variable_value): Likewise.
7881 (tfile_has_all_memory, tfile_has_memory): Likewise.
7882 (tfile_has_stack, tfile_has_registers): Likewise.
7883 (tfile_thread_alive, build_traceframe_info): Likewise.
7884 (tfile_traceframe_info, init_tfile_ops): Likewise.
7885 (_initialize_tracepoint): Don't call init_tfile_ops
7886 and add_target_with_completer.
7887 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7888 exec.h, completer.h and filenames.h.
7889 (_initialize_tracefile_tfile): New function.
7891 2014-02-23 Yao Qi <yao@codesourcery.com>
7893 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7895 (HFILES_NO_SRCDIR): Add tracefile.h.
7896 * ctf.c: Include "tracefile.h".
7897 * tracefile.h: New file.
7898 * tracefile.c: New file
7899 * tracefile-tfile.c: New file.
7900 * tracepoint.c: Include "tracefile.h".
7901 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7902 (stop_reason_names): Add const.
7903 (trace_file_writer_xfree): Move it to tracefile.c.
7904 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7905 (trace_save_ctf): Likewise.
7906 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7907 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7908 (tfile_write_header, tfile_write_regblock_type): Likewise.
7909 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7910 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7911 (tfile_write_raw_data, tfile_end): Likewise.
7912 (tfile_trace_file_writer_new): Likewise.
7913 (free_uploaded_tp): Make it extern.
7914 (free_uploaded_tsv): Make it extern.
7915 (_initialize_tracepoint): Move code to register command 'tsave'
7917 * tracepoint.h (stop_reason_names): Declare.
7918 (struct trace_frame_write_ops): Move it to tracefile.h.
7919 (struct trace_file_write_ops): Likewise.
7920 (struct trace_file_writer): Likewise.
7921 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7923 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7926 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7928 (get_cores_used_by_process): New parameter num_cores, use it.
7929 (linux_xfer_osdata_processes): Pass num_cores to it.
7930 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7933 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7935 * target.c (memory_xfer_partial): Fix length arg in call to
7936 breakpoint_xfer_memory.
7938 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7941 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7942 number comes after the + or - signs. Adjust length of register
7943 name to be extracted.
7945 2014-02-20 Tom Tromey <tromey@redhat.com>
7947 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7948 (ada_varobj_ops): Mark "extern".
7950 2014-02-20 Tom Tromey <tromey@redhat.com>
7952 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7954 2014-02-20 Doug Evans <xdje42@gmail.com>
7956 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7957 All callers updated.
7958 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7959 All callers updated.
7960 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7961 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7963 2014-02-20 lin zuojian <manjian2006@gmail.com>
7964 Joel Brobecker <brobecker@adacore.com>
7965 Doug Evans <xdje42@gmail.com>
7968 * dwarf2read.c (struct die_info): New member in_process.
7969 (reset_die_in_process): New function.
7970 (process_die): Set it at the start, reset when returning.
7971 (inherit_abstract_dies): Only call process_die if origin_child_die
7972 not already being processed.
7974 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7976 * windows-nat.c (handle_unload_dll): Add function documentation.
7977 (do_initial_windows_stuff): Add comment explaining why we wait
7978 until after inferior initialization has finished before
7979 processing all DLLs.
7981 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7983 * windows-nat.c (get_module_name): Delete.
7984 (windows_get_exec_module_filename): New function, mostly
7985 inspired from get_module_name.
7986 (windows_pid_to_exec_file): Replace call to get_module_name
7987 by call to windows_get_exec_module_filename.
7989 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7991 * windows-nat.c (handle_load_dll): Rewrite this function's
7992 introductory comment. Remove code using get_module_name
7993 to get the DLL's name.
7995 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7997 * windows-nat.c (get_windows_debug_event): Ignore
7998 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7999 if windows_initialization_done == 0.
8000 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8001 Adjust implementation to always load all DLLs.
8002 (do_initial_windows_stuff): Replace call to
8003 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8005 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8007 * windows-nat.c (_initialize_windows_nat): Deprecate the
8008 "dll-symbols" command. Turn the "add-shared-symbol-files"
8009 and "assf" aliases into commands, and deprecate them as well.
8010 * NEWS: Add entry explaining that "dll-symbols" and its two
8011 aliases are now deprecated.
8013 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8015 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8016 new-line in debug string. Remove trailing spaces.
8018 2014-02-19 Stan Shebs <stan@codesourcery.com>
8020 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8022 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8024 * NEWS: Add entry for the new feature
8025 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8028 2014-02-19 Stan Shebs <stan@codesourcery.com>
8030 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8032 2014-02-19 Pedro Alves <palves@redhat.com>
8034 * common/ptid.h (struct ptid): Mention that process_stratum
8035 targets should prefer ptid.lwp.
8037 2014-02-19 Pedro Alves <palves@redhat.com>
8039 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8040 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8041 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8042 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8043 store remote thread ids rather than ptid.tid.
8044 (_initialize_remote): Adjust.
8046 2014-02-19 Tom Tromey <tromey@redhat.com>
8048 * target.c (target_get_unwinder): Rewrite.
8049 (target_get_tailcall_unwinder): Rewrite.
8050 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8051 (record_btrace_to_get_tailcall_unwinder): New function.
8052 (init_record_btrace_ops): Update.
8053 * target.h (struct target_ops) <to_get_unwinder,
8054 to_get_tailcall_unwinder>: Now function pointers. Use
8055 TARGET_DEFAULT_RETURN.
8057 2014-02-19 Tom Tromey <tromey@redhat.com>
8059 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8061 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8063 2014-02-19 Tom Tromey <tromey@redhat.com>
8065 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8067 * target-delegates.c: Rebuild.
8068 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8069 TARGET_DEFAULT_FUNC.
8070 * target.c (default_target_decr_pc_after_break): Rename from
8071 forward_target_decr_pc_after_break. Simplify.
8072 (target_decr_pc_after_break): Rely on delegation.
8074 2014-02-19 Tom Tromey <tromey@redhat.com>
8076 * target.c (update_current_target): Do not INHERIT to_doc or
8077 to_magic. Do not de_fault to_open or to_close.
8079 2014-02-19 Tom Tromey <tromey@redhat.com>
8081 * gcore.h (objfile_find_memory_regions): Declare.
8082 * gcore.c (objfile_find_memory_regions): No longer static. Add
8084 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8085 * exec.c: Include gcore.h.
8086 (exec_set_find_memory_regions): Remove.
8087 (exec_find_memory_regions): Remove.
8088 (exec_do_find_memory_regions): Remove.
8089 (init_exec_ops): Update.
8090 * defs.h (exec_set_find_memory_regions): Remove.
8092 2014-02-19 Tom Tromey <tromey@redhat.com>
8094 * target-delegates.c: Rebuild.
8095 * target.h (struct target_ops) <to_extra_thread_info,
8096 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8097 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8098 not 0, in TARGET_DEFAULT_RETURN.
8100 2014-02-19 Tom Tromey <tromey@redhat.com>
8102 * target.c (complete_target_initialization): Remove casts. Use
8103 return_zero_has_execution.
8104 (return_zero): Add "ignore" argument.
8105 (return_zero_has_execution): New function.
8106 (init_dummy_target): Remove casts. Use
8107 return_zero_has_execution.
8109 2014-02-19 Tom Tromey <tromey@redhat.com>
8111 * target.c (update_current_target): Update comments. Do not
8114 2014-02-19 Tom Tromey <tromey@redhat.com>
8116 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8118 * corelow.c (core_read_description): Delegate when needed.
8119 * remote.c (remote_read_description): Delegate when needed.
8120 * target-delegates.c: Rebuild.
8121 * target.c (target_read_description): Rewrite.
8122 * target.h (struct target_ops) <to_read_description>: Update
8123 comment. Use TARGET_DEFAULT_RETURN.
8125 2014-02-19 Tom Tromey <tromey@redhat.com>
8127 * target-delegates.c: Rebuild.
8128 * target.c (update_current_target): Don't inherit or default
8130 (find_default_run_target): Check against delegate_can_run.
8131 * target.h (struct target_ops) <to_can_run>: Use
8132 TARGET_DEFAULT_RETURN.
8134 2014-02-19 Tom Tromey <tromey@redhat.com>
8136 * target-delegates.c: Rebuild.
8137 * target.c (target_disconnect): Unconditionally delegate.
8138 * target.h (struct target_ops) <to_disconnect>: Use
8139 TARGET_DEFAULT_NORETURN.
8141 2014-02-19 Tom Tromey <tromey@redhat.com>
8143 * record.c (record_stop): Unconditionally delegate.
8144 * target-delegates.c: Rebuild.
8145 * target.c (target_stop_recording): Unconditionally delegate.
8146 * target.h (struct target_ops) <to_stop_recording>: Use
8147 TARGET_DEFAULT_IGNORE.
8149 2014-02-19 Tom Tromey <tromey@redhat.com>
8151 * target-delegates.c: Rebuild.
8152 * target.c (target_enable_btrace): Unconditionally delegate.
8153 * target.h (struct target_ops) <to_enable_btrace>: Use
8154 TARGET_DEFAULT_NORETURN.
8156 2014-02-19 Tom Tromey <tromey@redhat.com>
8158 * target-delegates.c: Rebuild.
8159 * target.c (target_read_btrace): Unconditionally delegate.
8160 * target.h (struct target_ops) <to_read_btrace>: Use
8161 TARGET_DEFAULT_NORETURN.
8163 2014-02-19 Tom Tromey <tromey@redhat.com>
8165 * target-delegates.c: Rebuild.
8166 * target.c (target_teardown_btrace): Unconditionally delegate.
8167 * target.h (struct target_ops) <to_teardown_btrace>: Use
8168 TARGET_DEFAULT_NORETURN.
8170 2014-02-19 Tom Tromey <tromey@redhat.com>
8172 * target-delegates.c: Rebuild.
8173 * target.c (target_disable_btrace): Unconditionally delegate.
8174 * target.h (struct target_ops) <to_disable_btrace>: Use
8175 TARGET_DEFAULT_NORETURN.
8177 2014-02-19 Tom Tromey <tromey@redhat.com>
8179 * target-delegates.c: Rebuild.
8180 * target.c (default_search_memory): New function.
8181 (simple_search_memory): Update comment.
8182 (target_search_memory): Unconditionally delegate.
8183 * target.h (struct target_ops) <to_search_memory>: Use
8184 TARGET_DEFAULT_FUNC.
8186 2014-02-19 Tom Tromey <tromey@redhat.com>
8188 * auxv.c (default_auxv_parse): No longer static.
8189 (target_auxv_parse): Unconditionally delegate.
8190 * auxv.h (default_auxv_parse): Declare.
8191 * target-delegates.c: Rebuild.
8192 * target.c: Include auxv.h.
8193 * target.h (struct target_ops) <to_auxv_parse>: Use
8194 TARGET_DEFAULT_FUNC.
8196 2014-02-19 Tom Tromey <tromey@redhat.com>
8198 * target-delegates.c: Rebuild.
8199 * target.c (target_memory_map): Unconditionally delegate.
8200 * target.h (struct target_ops) <to_memory_map>: Use
8201 TARGET_DEFAULT_RETURN.
8203 2014-02-19 Tom Tromey <tromey@redhat.com>
8205 * target-delegates.c: Rebuild.
8206 * target.c (target_thread_alive): Unconditionally delegate.
8207 * target.h (struct target_ops) <to_thread_alive>: Use
8208 TARGET_DEFAULT_RETURN.
8210 2014-02-19 Tom Tromey <tromey@redhat.com>
8212 * target-delegates.c: Rebuild.
8213 * target.c (target_save_record): Unconditionally delegate.
8214 * target.h (struct target_ops) <to_save_record>: Use
8215 TARGET_DEFAULT_NORETURN.
8217 2014-02-19 Tom Tromey <tromey@redhat.com>
8219 * target-delegates.c: Rebuild.
8220 * target.c (target_delete_record): Unconditionally delegate.
8221 * target.h (struct target_ops) <to_delete_record>: Use
8222 TARGET_DEFAULT_NORETURN.
8224 2014-02-19 Tom Tromey <tromey@redhat.com>
8226 * target-delegates.c: Rebuild.
8227 * target.c (target_record_is_replaying): Unconditionally
8229 * target.h (struct target_ops) <to_record_is_replaying>: Use
8230 TARGET_DEFAULT_RETURN.
8232 2014-02-19 Tom Tromey <tromey@redhat.com>
8234 * target-delegates.c: Rebuild.
8235 * target.c (target_goto_record_begin): Unconditionally delegate.
8236 * target.h (struct target_ops) <to_goto_record_begin>: Use
8237 TARGET_DEFAULT_NORETURN.
8239 2014-02-19 Tom Tromey <tromey@redhat.com>
8241 * target-delegates.c: Rebuild.
8242 * target.c (target_goto_record_end): Unconditionally delegate.
8243 * target.h (struct target_ops) <to_goto_record_end>: Use
8244 TARGET_DEFAULT_NORETURN.
8246 2014-02-19 Tom Tromey <tromey@redhat.com>
8248 * target-delegates.c: Rebuild.
8249 * target.c (target_goto_record): Unconditionally delegate.
8250 * target.h (struct target_ops) <to_goto_record>: Use
8251 TARGET_DEFAULT_NORETURN.
8253 2014-02-19 Tom Tromey <tromey@redhat.com>
8255 * target-delegates.c: Rebuild.
8256 * target.c (target_insn_history): Unconditionally delegate.
8257 * target.h (struct target_ops) <to_insn_history>: Use
8258 TARGET_DEFAULT_NORETURN.
8260 2014-02-19 Tom Tromey <tromey@redhat.com>
8262 * target-delegates.c: Rebuild.
8263 * target.c (target_insn_history_from): Unconditionally delegate.
8264 * target.h (struct target_ops) <to_insn_history_from>: Use
8265 TARGET_DEFAULT_NORETURN.
8267 2014-02-19 Tom Tromey <tromey@redhat.com>
8269 * target-delegates.c: Rebuild.
8270 * target.c (target_insn_history_range): Unconditionally delegate.
8271 * target.h (struct target_ops) <to_insn_history_range>: Use
8272 TARGET_DEFAULT_NORETURN.
8274 2014-02-19 Tom Tromey <tromey@redhat.com>
8276 * target-delegates.c: Rebuild.
8277 * target.c (target_call_history): Unconditionally delegate.
8278 * target.h (struct target_ops) <to_call_history>: Use
8279 TARGET_DEFAULT_NORETURN.
8281 2014-02-19 Tom Tromey <tromey@redhat.com>
8283 * target-delegates.c: Rebuild.
8284 * target.c (target_call_history_from): Unconditionally delegate.
8285 * target.h (struct target_ops) <to_call_history_from>: Use
8286 TARGET_DEFAULT_NORETURN.
8288 2014-02-19 Tom Tromey <tromey@redhat.com>
8290 * target-delegates.c: Rebuild.
8291 * target.c (target_call_history_range): Unconditionally delegate.
8292 * target.h (struct target_ops) <to_call_history_range>: Use
8293 TARGET_DEFAULT_NORETURN.
8295 2014-02-19 Tom Tromey <tromey@redhat.com>
8297 * target-delegates.c: Rebuild.
8298 * target.c (target_verify_memory): Unconditionally delegate.
8299 * target.h (struct target_ops) <to_verify_memory>: Use
8300 TARGET_DEFAULT_NORETURN.
8302 2014-02-19 Tom Tromey <tromey@redhat.com>
8304 * target-delegates.c: Rebuild.
8305 * target.c (target_core_of_thread): Unconditionally delegate.
8306 * target.h (struct target_ops) <to_core_of_thread>: Use
8307 TARGET_DEFAULT_RETURN.
8309 2014-02-19 Tom Tromey <tromey@redhat.com>
8311 * target-delegates.c: Rebuild.
8312 * target.c (target_flash_done): Unconditionally delegate.
8313 * target.h (struct target_ops) <to_flash_done>: Use
8314 TARGET_DEFAULT_NORETURN.
8316 2014-02-19 Tom Tromey <tromey@redhat.com>
8318 * target-delegates.c: Rebuild.
8319 * target.c (target_flash_erase): Unconditionally delegate.
8320 * target.h (struct target_ops) <to_flash_erase>: Use
8321 TARGET_DEFAULT_NORETURN.
8323 2014-02-19 Tom Tromey <tromey@redhat.com>
8325 * target-delegates.c: Rebuild.
8326 * target.c (target_get_section_table): Unconditionally delegate.
8327 * target.h (struct target_ops) <to_get_section_table>: Use
8328 TARGET_DEFAULT_RETURN.
8330 2014-02-19 Tom Tromey <tromey@redhat.com>
8332 * target-delegates.c: Rebuild.
8333 * target.c (target_pid_to_str): Unconditionally delegate.
8334 (init_dummy_target): Don't initialize to_pid_to_str.
8335 (default_pid_to_str): Rename from dummy_pid_to_str.
8336 * target.h (struct target_ops) <to_pid_to_str>: Use
8337 TARGET_DEFAULT_FUNC.
8339 2014-02-19 Tom Tromey <tromey@redhat.com>
8341 * target-delegates.c: Rebuild.
8342 * target.c (target_find_new_threads): Unconditionally delegate.
8343 * target.h (struct target_ops) <to_find_new_threads>: Use
8344 TARGET_DEFAULT_RETURN.
8346 2014-02-19 Tom Tromey <tromey@redhat.com>
8348 * target-delegates.c: Rebuild.
8349 * target.c (target_program_signals): Unconditionally delegate.
8350 * target.h (struct target_ops) <to_program_signals>: Use
8351 TARGET_DEFAULT_IGNORE.
8353 2014-02-19 Tom Tromey <tromey@redhat.com>
8355 * target-delegates.c: Rebuild.
8356 * target.c (target_pass_signals): Unconditionally delegate.
8357 * target.h (struct target_ops) <to_pass_signals>: Use
8358 TARGET_DEFAULT_IGNORE.
8360 2014-02-19 Tom Tromey <tromey@redhat.com>
8362 * target-delegates.c: Rebuild.
8363 * target.c (default_mourn_inferior): New function.
8364 (target_mourn_inferior): Unconditionally delegate.
8365 * target.h (struct target_ops) <to_mourn_inferior>: Use
8366 TARGET_DEFAULT_FUNC.
8368 2014-02-19 Tom Tromey <tromey@redhat.com>
8370 * target-delegates.c: Rebuild.
8371 * target.c (default_follow_fork): New function.
8372 (target_follow_fork): Unconditionally delegate.
8373 * target.h (struct target_ops) <to_follow_fork>: Use
8374 TARGET_DEFAULT_FUNC.
8376 2014-02-19 Tom Tromey <tromey@redhat.com>
8378 * target-delegates.c: Rebuild.
8379 * target.c (target_kill): Unconditionally delegate.
8380 * target.h (struct target_ops) <to_kill>: Use
8381 TARGET_DEFAULT_NORETURN.
8383 2014-02-19 Tom Tromey <tromey@redhat.com>
8385 * target-delegates.c: Rebuild.
8386 * target.c (target_masked_watch_num_registers): Unconditionally
8388 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8389 Use TARGET_DEFAULT_RETURN.
8391 2014-02-19 Tom Tromey <tromey@redhat.com>
8393 * target-delegates.c: Rebuild.
8394 * target.c (target_remove_mask_watchpoint): Unconditionally
8396 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8397 TARGET_DEFAULT_RETURN.
8399 2014-02-19 Tom Tromey <tromey@redhat.com>
8401 * target-delegates.c: Rebuild.
8402 * target.c (target_insert_mask_watchpoint): Unconditionally
8404 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8405 TARGET_DEFAULT_RETURN.
8407 2014-02-19 Tom Tromey <tromey@redhat.com>
8409 * target-delegates.c: Rebuild.
8410 * target.c (target_ranged_break_num_registers): Unconditionally
8412 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8413 Use TARGET_DEFAULT_RETURN.
8415 2014-02-19 Tom Tromey <tromey@redhat.com>
8417 * target-delegates.c: Rebuild.
8418 * target.c (target_fetch_registers): Unconditionally delegate.
8419 * target.h (struct target_ops) <to_fetch_registers>: Use
8420 TARGET_DEFAULT_NORETURN.
8422 2014-02-19 Tom Tromey <tromey@redhat.com>
8424 * target-delegates.c: Rebuild.
8425 * target.c (update_current_target): Don't inherit or default
8427 * target.h (struct target_ops) <to_stop>: Use
8428 TARGET_DEFAULT_IGNORE.
8430 2014-02-19 Tom Tromey <tromey@redhat.com>
8432 * target-delegates.c: Rebuild.
8433 * target.c (update_current_target): Don't inherit or default
8434 to_can_run_breakpoint_commands.
8435 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8436 Use TARGET_DEFAULT_RETURN.
8438 2014-02-19 Tom Tromey <tromey@redhat.com>
8440 * target-delegates.c: Rebuild.
8441 * target.c (update_current_target): Don't inherit or default
8442 to_supports_evaluation_of_breakpoint_conditions.
8443 * target.h (struct target_ops)
8444 <to_supports_evaluation_of_breakpoint_conditions>: Use
8445 TARGET_DEFAULT_RETURN.
8447 2014-02-19 Tom Tromey <tromey@redhat.com>
8449 * target-delegates.c: Rebuild.
8450 * target.c (update_current_target): Don't inherit or default
8451 to_augmented_libraries_svr4_read.
8452 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8453 Use TARGET_DEFAULT_RETURN.
8455 2014-02-19 Tom Tromey <tromey@redhat.com>
8457 * target-delegates.c: Rebuild.
8458 * target.c (update_current_target): Don't inherit or default
8460 * target.h (struct target_ops) <to_can_use_agent>: Use
8461 TARGET_DEFAULT_RETURN.
8463 2014-02-19 Tom Tromey <tromey@redhat.com>
8465 * target-delegates.c: Rebuild.
8466 * target.c (update_current_target): Don't inherit or default
8468 * target.h (struct target_ops) <to_use_agent>: Use
8469 TARGET_DEFAULT_NORETURN.
8471 2014-02-19 Tom Tromey <tromey@redhat.com>
8473 * target-delegates.c: Rebuild.
8474 * target.c (update_current_target): Don't inherit or default
8476 (return_null): Remove.
8477 * target.h (struct target_ops) <to_traceframe_info>: Use
8478 TARGET_DEFAULT_RETURN.
8480 2014-02-19 Tom Tromey <tromey@redhat.com>
8482 * target-delegates.c: Rebuild.
8483 * target.c (update_current_target): Don't inherit or default
8484 to_static_tracepoint_markers_by_strid.
8485 * target.h (struct target_ops)
8486 <to_static_tracepoint_markers_by_strid>: Use
8487 TARGET_DEFAULT_NORETURN.
8489 2014-02-19 Tom Tromey <tromey@redhat.com>
8491 * target-delegates.c: Rebuild.
8492 * target.c (update_current_target): Don't inherit or default
8493 to_static_tracepoint_marker_at.
8494 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8495 Use TARGET_DEFAULT_RETURN.
8497 2014-02-19 Tom Tromey <tromey@redhat.com>
8499 * target-delegates.c: Rebuild.
8500 * target.c (update_current_target): Don't inherit or default
8502 * target.h (struct target_ops) <to_set_permissions>: Use
8503 TARGET_DEFAULT_IGNORE.
8505 2014-02-19 Tom Tromey <tromey@redhat.com>
8507 * target-delegates.c: Rebuild.
8508 * target.c (update_current_target): Don't inherit or default
8510 * target.h (struct target_ops) <to_get_tib_address>: Use
8511 TARGET_DEFAULT_NORETURN.
8513 2014-02-19 Tom Tromey <tromey@redhat.com>
8515 * target-delegates.c: Rebuild.
8516 * target.c (update_current_target): Don't inherit or default
8518 * target.h (struct target_ops) <to_set_trace_notes>: Use
8519 TARGET_DEFAULT_RETURN.
8521 2014-02-19 Tom Tromey <tromey@redhat.com>
8523 * target-delegates.c: Rebuild.
8524 * target.c (update_current_target): Don't initialize
8525 to_set_trace_buffer_size.
8526 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8527 TARGET_DEFAULT_IGNORE.
8529 2014-02-19 Tom Tromey <tromey@redhat.com>
8531 * target-delegates.c: Rebuild.
8532 * target.c (update_current_target): Don't inherit or default
8533 to_set_circular_trace_buffer.
8534 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8535 TARGET_DEFAULT_IGNORE.
8537 2014-02-19 Tom Tromey <tromey@redhat.com>
8539 * target-delegates.c: Rebuild.
8540 * target.c (update_current_target): Don't inherit or default
8541 to_set_disconnected_tracing.
8542 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8543 TARGET_DEFAULT_IGNORE.
8545 2014-02-19 Tom Tromey <tromey@redhat.com>
8547 * target-delegates.c: Rebuild.
8548 * target.c (update_current_target): Don't inherit or default
8549 to_get_min_fast_tracepoint_insn_len.
8550 (return_minus_one): Remove.
8551 * target.h (struct target_ops)
8552 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8554 2014-02-19 Tom Tromey <tromey@redhat.com>
8556 * target-delegates.c: Rebuild.
8557 * target.c (update_current_target): Don't inherit or default
8558 to_get_raw_trace_data.
8559 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8560 TARGET_DEFAULT_NORETURN.
8562 2014-02-19 Tom Tromey <tromey@redhat.com>
8564 * target-delegates.c: Rebuild.
8565 * target.c (update_current_target): Don't inherit or default
8566 to_upload_trace_state_variables.
8567 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8568 Use TARGET_DEFAULT_RETURN.
8570 2014-02-19 Tom Tromey <tromey@redhat.com>
8572 * target-delegates.c: Rebuild.
8573 * target.c (update_current_target): Don't inherit or default
8574 to_upload_tracepoints.
8575 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8576 TARGET_DEFAULT_RETURN.
8578 2014-02-19 Tom Tromey <tromey@redhat.com>
8580 * target-delegates.c: Rebuild.
8581 * target.c (update_current_target): Don't inherit or default
8583 * target.h (struct target_ops) <to_save_trace_data>: Use
8584 TARGET_DEFAULT_NORETURN.
8586 2014-02-19 Tom Tromey <tromey@redhat.com>
8588 * target-delegates.c: Rebuild.
8589 * target.c (update_current_target): Don't inherit or default
8590 to_get_trace_state_variable_value.
8591 * target.h (struct target_ops)
8592 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8594 2014-02-19 Tom Tromey <tromey@redhat.com>
8596 * target-delegates.c: Rebuild.
8597 * target.c (update_current_target): Don't inherit or default
8599 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8601 2014-02-19 Tom Tromey <tromey@redhat.com>
8603 * target-delegates.c: Rebuild.
8604 * target.c (update_current_target): Don't inherit or default
8606 * target.h (struct target_ops) <to_trace_stop>: Use
8607 TARGET_DEFAULT_NORETURN.
8609 2014-02-19 Tom Tromey <tromey@redhat.com>
8611 * target-delegates.c: Rebuild.
8612 * target.c (update_current_target): Don't inherit or default
8613 to_get_tracepoint_status.
8614 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8615 TARGET_DEFAULT_NORETURN.
8617 2014-02-19 Tom Tromey <tromey@redhat.com>
8619 * target-delegates.c: Rebuild.
8620 * target.c (update_current_target): Don't inherit or default
8621 to_get_trace_status.
8622 * target.h (struct target_ops) <to_get_trace_status>: Use
8623 TARGET_DEFAULT_RETURN.
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8627 * target-delegates.c: Rebuild.
8628 * target.c (update_current_target): Don't inherit or default
8630 * target.h (struct target_ops) <to_trace_start>: Use
8631 TARGET_DEFAULT_NORETURN.
8633 2014-02-19 Tom Tromey <tromey@redhat.com>
8635 * target-delegates.c: Rebuild.
8636 * target.c (update_current_target): Don't inherit or default
8637 to_trace_set_readonly_regions.
8638 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8639 Use TARGET_DEFAULT_NORETURN.
8641 2014-02-19 Tom Tromey <tromey@redhat.com>
8643 * target-delegates.c: Rebuild.
8644 * target.c (update_current_target): Don't inherit or default
8645 to_disable_tracepoint.
8646 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8647 TARGET_DEFAULT_NORETURN.
8649 2014-02-19 Tom Tromey <tromey@redhat.com>
8651 * target-delegates.c: Rebuild.
8652 * target.c (update_current_target): Don't inherit or default
8653 to_enable_tracepoint.
8654 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8655 TARGET_DEFAULT_NORETURN.
8657 2014-02-19 Tom Tromey <tromey@redhat.com>
8659 * target-delegates.c: Rebuild.
8660 * target.c (update_current_target): Don't inherit or default
8661 to_download_trace_state_variable.
8662 * target.h (struct target_ops) <to_download_trace_state_variable>:
8663 Use TARGET_DEFAULT_NORETURN.
8665 2014-02-19 Tom Tromey <tromey@redhat.com>
8667 * target-delegates.c: Rebuild.
8668 * target.c (update_current_target): Don't inherit or default
8669 to_can_download_tracepoint.
8670 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8671 TARGET_DEFAULT_RETURN.
8673 2014-02-19 Tom Tromey <tromey@redhat.com>
8675 * target-delegates.c: Rebuild.
8676 * target.c (update_current_target): Don't inherit or default
8677 to_download_tracepoint.
8678 * target.h (struct target_ops) <to_download_tracepoint>: Use
8679 TARGET_DEFAULT_NORETURN.
8681 2014-02-19 Tom Tromey <tromey@redhat.com>
8683 * target-delegates.c: Rebuild.
8684 * target.c (update_current_target): Don't inherit or default
8686 * target.h (struct target_ops) <to_trace_init>: Use
8687 TARGET_DEFAULT_RETURN.
8689 2014-02-19 Tom Tromey <tromey@redhat.com>
8691 * target-delegates.c: Rebuild.
8692 * target.c (update_current_target): Don't inherit or default
8693 to_supports_string_tracing.
8694 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8695 TARGET_DEFAULT_RETURN.
8697 2014-02-19 Tom Tromey <tromey@redhat.com>
8699 * target-delegates.c: Rebuild.
8700 * target.c (update_current_target): Don't inherit or default
8701 to_supports_enable_disable_tracepoint.
8702 * target.h (struct target_ops)
8703 <to_supports_enable_disable_tracepoint>: Use
8704 TARGET_DEFAULT_RETURN.
8706 2014-02-19 Tom Tromey <tromey@redhat.com>
8708 * target-delegates.c: Rebuild.
8709 * target.c (update_current_target): Don't inherit or default
8710 to_supports_multi_process.
8711 * target.h (struct target_ops) <to_supports_multi_process>: Use
8712 TARGET_DEFAULT_RETURN.
8714 2014-02-19 Tom Tromey <tromey@redhat.com>
8716 * target-delegates.c: Rebuild.
8717 * target.c (update_current_target): Don't inherit or default
8718 to_get_ada_task_ptid.
8719 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8720 TARGET_DEFAULT_FUNC.
8722 2014-02-19 Tom Tromey <tromey@redhat.com>
8724 * target-delegates.c: Rebuild.
8725 * target.c (update_current_target): Don't inherit or default
8726 to_thread_architecture.
8727 * target.h (struct target_ops) <to_thread_architecture>: Use
8728 TARGET_DEFAULT_FUNC.
8730 2014-02-19 Tom Tromey <tromey@redhat.com>
8732 * target-delegates.c: Rebuild.
8733 * target.c (update_current_target): Don't inherit or default
8734 to_execution_direction.
8735 * target.h (struct target_ops) <to_execution_direction>: Use
8736 TARGET_DEFAULT_FUNC.
8738 2014-02-19 Tom Tromey <tromey@redhat.com>
8740 * target-delegates.c: Rebuild.
8741 * target.c (update_current_target): Don't inherit or default
8742 to_can_execute_reverse.
8743 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8744 TARGET_DEFAULT_RETURN.
8745 (target_can_execute_reverse): Unconditionally delegate.
8747 2014-02-19 Tom Tromey <tromey@redhat.com>
8749 * target-delegates.c: Rebuild.
8750 * target.c (update_current_target): Don't inherit or default
8752 (dummy_goto_bookmark): Remove.
8753 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8754 * target.h (struct target_ops) <to_goto_bookmark>: Use
8755 TARGET_DEFAULT_NORETURN.
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't inherit or default
8762 (dummy_get_bookmark): Remove.
8763 (init_dummy_target): Don't inherit or default to_get_bookmark.
8764 * target.h (struct target_ops) <to_get_bookmark>: Use
8765 TARGET_DEFAULT_NORETURN
8767 2014-02-19 Tom Tromey <tromey@redhat.com>
8769 * target-delegates.c: Rebuild.
8770 * target.c (update_current_target): Don't inherit or default
8771 to_make_corefile_notes.
8772 (init_dummy_target): Don't initialize to_make_corefile_notes.
8773 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8774 TARGET_DEFAULT_FUNC.
8776 2014-02-19 Tom Tromey <tromey@redhat.com>
8778 * target-delegates.c: Rebuild.
8779 * target.c (update_current_target): Don't inherit or default
8780 to_find_memory_regions.
8781 (init_dummy_target): Don't initialize to_find_memory_regions.
8782 * target.h (struct target_ops) <to_find_memory_regions>: Use
8783 TARGET_DEFAULT_FUNC.
8785 2014-02-19 Tom Tromey <tromey@redhat.com>
8787 * target-delegates.c: Rebuild.
8788 * target.c (update_current_target): Don't inherit or default
8790 * target.h (struct target_ops) <to_log_command>: Use
8791 TARGET_DEFAULT_IGNORE.
8792 (target_log_command): Unconditionally delegate.
8794 2014-02-19 Tom Tromey <tromey@redhat.com>
8796 * target-delegates.c: Rebuild.
8797 * target.c (update_current_target): Don't inherit or default
8798 to_pid_to_exec_file.
8799 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8800 TARGET_DEFAULT_RETURN.
8802 2014-02-19 Tom Tromey <tromey@redhat.com>
8804 * target-delegates.c: Rebuild.
8805 * target.c (update_current_target): Don't inherit or default
8807 (target_thread_name): Unconditionally delegate.
8808 * target.h (struct target_ops) <to_thread_name>: Use
8809 TARGET_DEFAULT_RETURN.
8811 2014-02-19 Tom Tromey <tromey@redhat.com>
8813 * target-delegates.c: Rebuild.
8814 * target.c (update_current_target): Don't inherit or default
8815 to_extra_thread_info.
8816 * target.h (struct target_ops) <to_extra_thread_info>: Use
8817 TARGET_DEFAULT_RETURN.
8819 2014-02-19 Tom Tromey <tromey@redhat.com>
8821 * target-delegates.c: Rebuild.
8822 * target.c (update_current_target): Don't inherit or default
8824 * target.h (struct target_ops) <to_has_exited>: Use
8825 TARGET_DEFAULT_RETURN..
8827 2014-02-19 Tom Tromey <tromey@redhat.com>
8829 * target-delegates.c: Rebuild.
8830 * target.c (update_current_target): Don't inherit or default
8831 to_set_syscall_catchpoint.
8832 (return_one): Remove.
8833 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8834 TARGET_DEFAULT_RETURN.
8836 2014-02-19 Tom Tromey <tromey@redhat.com>
8838 * target-delegates.c: Rebuild.
8839 * target.c (update_current_target): Don't inherit or default
8840 to_insert_exec_catchpoint.
8841 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8842 TARGET_DEFAULT_RETURN.
8844 2014-01-08 Tom Tromey <tromey@redhat.com>
8846 * target-delegates.c: Rebuild.
8847 * target.c (update_current_target): Don't inherit or default
8848 to_insert_exec_catchpoint.
8849 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8850 TARGET_DEFAULT_RETURN.
8852 2014-02-19 Tom Tromey <tromey@redhat.com>
8854 * target-delegates.c: Rebuild.
8855 * target.c (update_current_target): Don't inherit or default
8856 to_remove_vfork_catchpoint.
8857 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8858 TARGET_DEFAULT_RETURN.
8860 2014-02-19 Tom Tromey <tromey@redhat.com>
8862 * target-delegates.c: Rebuild.
8863 * target.c (update_current_target): Don't inherit or default
8864 to_insert_vfork_catchpoint.
8865 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8866 TARGET_DEFAULT_RETURN.
8868 2014-02-19 Tom Tromey <tromey@redhat.com>
8870 * target-delegates.c: Rebuild.
8871 * target.c (update_current_target): Don't inherit or default
8872 to_remove_fork_catchpoint.
8873 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8874 TARGET_DEFAULT_RETURN.
8876 2014-02-19 Tom Tromey <tromey@redhat.com>
8878 * target-delegates.c: Rebuild.
8879 * target.c (update_current_target): Don't inherit or default
8880 to_insert_fork_catchpoint.
8881 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8882 TARGET_DEFAULT_RETURN.
8884 2014-02-19 Tom Tromey <tromey@redhat.com>
8886 * target-delegates.c: Rebuild.
8887 * target.c (update_current_target): Don't inherit or default
8888 to_post_startup_inferior.
8889 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8890 TARGET_DEFAULT_IGNORE.
8892 2014-02-19 Tom Tromey <tromey@redhat.com>
8894 * target-delegates.c: Rebuild.
8895 * target.c (update_current_target): Don't inherit or default
8897 * target.h (struct target_ops) <to_load>: Use
8898 TARGET_DEFAULT_NORETURN.
8900 2014-02-19 Tom Tromey <tromey@redhat.com>
8902 * target-delegates.c: Rebuild.
8903 * target.c (update_current_target): Don't inherit or default
8905 * target.h (struct target_ops) <to_terminal_info>: Use
8906 TARGET_DEFAULT_FUNC.
8908 2014-02-19 Tom Tromey <tromey@redhat.com>
8910 * target-delegates.c: Rebuild.
8911 * target.c (update_current_target): Don't inherit or default
8912 to_terminal_save_ours.
8913 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8914 TARGET_DEFAULT_IGNORE.
8916 2014-02-19 Tom Tromey <tromey@redhat.com>
8918 * target-delegates.c: Rebuild.
8919 * target.c (update_current_target): Don't inherit or default
8921 * target.h (struct target_ops) <to_terminal_ours>: Use
8922 TARGET_DEFAULT_IGNORE.
8924 2014-02-19 Tom Tromey <tromey@redhat.com>
8926 * target-delegates.c: Rebuild.
8927 * target.c (update_current_target): Don't inherit or default
8928 to_terminal_ours_for_output.
8929 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8930 TARGET_DEFAULT_IGNORE.
8932 2014-02-19 Tom Tromey <tromey@redhat.com>
8934 * target-delegates.c: Rebuild.
8935 * target.c (update_current_target): Don't inherit or default
8936 to_terminal_inferior.
8937 * target.h (struct target_ops) <to_terminal_inferior>: Use
8938 TARGET_DEFAULT_IGNORE.
8940 2014-02-19 Tom Tromey <tromey@redhat.com>
8942 * target-delegates.c: Rebuild.
8943 * target.c (update_current_target): Don't inherit or default
8945 * target.h (struct target_ops) <to_terminal_init>: Use
8946 TARGET_DEFAULT_IGNORE.
8948 2014-02-19 Tom Tromey <tromey@redhat.com>
8950 * target-delegates.c: Rebuild.
8951 * target.c (update_current_target): Don't inherit or default
8952 to_can_accel_watchpoint_condition.
8953 * target.h (struct target_ops)
8954 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8956 2014-02-19 Tom Tromey <tromey@redhat.com>
8958 * target-delegates.c: Rebuild.
8959 * target.c (update_current_target): Don't inherit or default
8960 to_region_ok_for_hw_watchpoint.
8961 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8962 Use TARGET_DEFAULT_FUNC.
8964 2014-02-19 Tom Tromey <tromey@redhat.com>
8966 * target-delegates.c: Rebuild.
8967 * target.c (update_current_target): Don't inherit or default
8968 to_watchpoint_addr_within_range.
8969 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8970 Use TARGET_DEFAULT_FUNC.
8972 2014-02-19 Tom Tromey <tromey@redhat.com>
8974 * target-delegates.c: Rebuild.
8975 * target.c (update_current_target): Don't inherit or default
8976 to_remove_watchpoint.
8977 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8978 TARGET_DEFAULT_NORETURN.
8980 2014-02-19 Tom Tromey <tromey@redhat.com>
8982 * target-delegates.c: Rebuild.
8983 * target.c (update_current_target): Don't inherit or default
8984 to_insert_watchpoint.
8985 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8986 TARGET_DEFAULT_RETURN.
8988 2014-02-19 Tom Tromey <tromey@redhat.com>
8990 * target-delegates.c: Rebuild.
8991 * target.c (update_current_target): Don't inherit or default
8992 to_remove_hw_breakpoint.
8993 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8994 TARGET_DEFAULT_RETURN.
8996 2014-02-19 Tom Tromey <tromey@redhat.com>
8998 * target-delegates.c: Rebuild.
8999 * target.c (update_current_target): Don't inherit or default
9000 to_insert_hw_breakpoint.
9001 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9002 TARGET_DEFAULT_RETURN.
9004 2014-02-19 Tom Tromey <tromey@redhat.com>
9006 * target-delegates.c: Rebuild.
9007 * target.c (update_current_target): Don't inherit or default
9008 to_can_use_hw_breakpoint.
9009 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9010 TARGET_DEFAULT_RETURN.
9012 2014-02-19 Tom Tromey <tromey@redhat.com>
9014 * target-delegates.c: Rebuild.
9015 * target.c (update_current_target): Don't inherit or default
9017 * target.h (struct target_ops) <to_files_info>: Use
9018 TARGET_DEFAULT_IGNORE.
9020 2014-02-19 Tom Tromey <tromey@redhat.com>
9022 * target-delegates.c: Rebuild.
9023 * target.c (update_current_target): Don't inherit or default
9025 * target.h (struct target_ops) <to_store>: Use
9026 TARGET_DEFAULT_NORETURN.
9028 2014-02-19 Tom Tromey <tromey@redhat.com>
9030 * target-delegates.c: Rebuild.
9031 * target.c (update_current_target): Don't inherit or default
9033 * target.h (struct target_ops) <to_post_attach>: Use
9034 TARGET_DEFAULT_IGNORE.
9036 2014-02-19 Tom Tromey <tromey@redhat.com>
9038 * target-delegates.c: Rebuild.
9039 * target.c (update_current_target): Don't inherit or default
9041 (default_rcmd): New function.
9042 (do_monitor_command): Unconditionally delegate.
9043 * target.h (struct target_ops) <to_rmcd>: Use
9044 TARGET_DEFAULT_FUNC.
9046 2014-02-19 Tom Tromey <tromey@redhat.com>
9048 * target-delegates.c: Rebuild.
9049 * target.c (init_dummy_target): Don't initialize to_attach.
9050 (target_attach): Unconditionally delegate.
9051 * target.h (struct target_ops) <to_attach>: Use
9052 TARGET_DEFAULT_FUNC.
9054 2014-02-19 Tom Tromey <tromey@redhat.com>
9056 * target-delegates.c: Rebuild.
9057 * target.c (target_detach): Unconditionally delegate.
9058 (init_dummy_target): Don't initialize to_detach.
9059 * target.h (struct target_ops) <to_detach>: Use
9060 TARGET_DEFAULT_IGNORE.
9062 2014-02-19 Tom Tromey <tromey@redhat.com>
9064 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9066 (target_augmented_libraries_svr4_read): Add argument.
9067 * target.c (update_current_target): Update.
9068 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9071 2014-02-19 Tom Tromey <tromey@redhat.com>
9073 * target.h (struct target_ops) <to_call_history_range>: Add
9075 * target.c (target_call_history_range): Add argument.
9076 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9078 (record_btrace_call_history_from): Update.
9080 2014-02-19 Tom Tromey <tromey@redhat.com>
9082 * target.h (struct target_ops) <to_call_history_from>: Add
9084 * target.c (target_call_history_from): Add argument.
9085 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9090 * target.h (struct target_ops) <to_call_history>: Add argument.
9091 * target.c (target_call_history): Add argument.
9092 * record-btrace.c (record_btrace_call_history): Add 'self'
9095 2014-02-19 Tom Tromey <tromey@redhat.com>
9097 * target.h (struct target_ops) <to_insn_history_range>: Add
9099 * target.c (target_insn_history_range): Add argument.
9100 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9102 (record_btrace_insn_history_from): Update.
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9106 * target.h (struct target_ops) <to_insn_history_from>: Add
9108 * target.c (target_insn_history_from): Add argument.
9109 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9112 2014-02-19 Tom Tromey <tromey@redhat.com>
9114 * target.h (struct target_ops) <to_insn_history>: Add argument.
9115 * target.c (target_insn_history): Add argument.
9116 * record-btrace.c (record_btrace_insn_history): Add 'self'
9119 2014-02-19 Tom Tromey <tromey@redhat.com>
9121 * target.h (struct target_ops) <to_goto_record>: Add argument.
9122 * target.c (target_goto_record): Add argument.
9123 * record-full.c (record_full_goto): Add 'self' argument.
9124 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9126 2014-02-19 Tom Tromey <tromey@redhat.com>
9128 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9129 * target.c (target_goto_record_end): Add argument.
9130 * record-full.c (record_full_goto_end): Add 'self' argument.
9131 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9135 * target.h (struct target_ops) <to_goto_record_begin>: Add
9137 * target.c (target_goto_record_begin): Add argument.
9138 * record-full.c (record_full_goto_begin): Add 'self' argument.
9139 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9142 2014-02-19 Tom Tromey <tromey@redhat.com>
9144 * target.h (struct target_ops) <to_record_is_replaying>: Add
9146 * target.c (target_record_is_replaying): Add argument.
9147 * record-full.c (record_full_is_replaying): Add 'self' argument.
9148 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9150 (record_btrace_xfer_partial, record_btrace_store_registers)
9151 (record_btrace_prepare_to_store, record_btrace_resume)
9152 (record_btrace_wait, record_btrace_decr_pc_after_break)
9153 (record_btrace_find_new_threads, record_btrace_thread_alive):
9156 2014-02-19 Tom Tromey <tromey@redhat.com>
9158 * target.h (struct target_ops) <to_delete_record>: Add argument.
9159 * target.c (target_delete_record): Add argument.
9160 * record-full.c (record_full_delete): Add 'self' argument.
9162 2014-02-19 Tom Tromey <tromey@redhat.com>
9164 * target.h (struct target_ops) <to_save_record>: Add argument.
9165 * target.c (target_save_record): Add argument.
9166 * record-full.c (record_full_save): Add 'self' argument.
9167 (record_full_save): Add 'self' argument.
9169 2014-02-19 Tom Tromey <tromey@redhat.com>
9171 * target.h (struct target_ops) <to_info_record>: Add argument.
9172 * target.c (target_info_record): Add argument.
9173 * record.c (info_record_command): Add argument.
9174 * record-full.c (record_full_info): Add 'self' argument.
9175 * record-btrace.c (record_btrace_info): Add 'self' argument.
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9179 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9180 * target.c (target_stop_recording): Add argument.
9181 * record.c (record_stop): Add argument.
9182 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9187 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9188 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9189 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9191 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9192 (_initialize_amd64_linux_nat): Use it.
9193 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9194 (_initialize_i386_linux_nat): Use it.
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9198 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9199 * target.c (target_teardown_btrace): Add argument.
9200 * remote.c (remote_teardown_btrace): Add 'self' argument.
9201 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9203 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9206 2014-02-19 Tom Tromey <tromey@redhat.com>
9208 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9209 * target.c (target_disable_btrace): Add argument.
9210 * remote.c (remote_disable_btrace): Add 'self' argument.
9211 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9213 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9216 2014-02-19 Tom Tromey <tromey@redhat.com>
9218 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9219 * target.c (target_enable_btrace): Add argument.
9220 * remote.c (remote_enable_btrace): Add 'self' argument.
9221 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9223 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9226 2014-02-19 Tom Tromey <tromey@redhat.com>
9228 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9229 (target_can_use_agent): Add argument.
9230 * target.c (update_current_target): Update.
9231 * remote.c (remote_can_use_agent): Add 'self' argument.
9232 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9234 2014-02-19 Tom Tromey <tromey@redhat.com>
9236 * target.h (struct target_ops) <to_use_agent>: Add argument.
9237 (target_use_agent): Add argument.
9238 * target.c (update_current_target): Update.
9239 * remote.c (remote_use_agent): Add 'self' argument.
9240 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9242 2014-02-19 Tom Tromey <tromey@redhat.com>
9244 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9245 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9246 (target_traceframe_info): Add argument.
9247 * target.c (update_current_target): Update.
9248 * remote.c (remote_traceframe_info): Add 'self' argument.
9249 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9251 2014-02-19 Tom Tromey <tromey@redhat.com>
9253 * target.h (target_static_tracepoint_markers_by_strid): Add
9255 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9257 * target.c (update_current_target): Update.
9258 * remote.c (struct target_ops)
9259 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9260 * linux-nat.c (struct target_ops)
9261 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9263 2014-02-19 Tom Tromey <tromey@redhat.com>
9265 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9267 (target_static_tracepoint_marker_at): Add argument.
9268 * target.c (update_current_target): Update.
9269 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9272 2014-02-19 Tom Tromey <tromey@redhat.com>
9274 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9275 (target_set_permissions): Add argument.
9276 * target.c (update_current_target): Update.
9277 * remote.c (remote_set_permissions): Add 'self' argument.
9278 (remote_start_remote): Update.
9280 2014-02-19 Tom Tromey <tromey@redhat.com>
9282 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9283 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9284 (target_get_tib_address): Add argument.
9285 * target.c (update_current_target): Update.
9286 * remote.c (remote_get_tib_address): Add 'self' argument.
9288 2014-02-19 Tom Tromey <tromey@redhat.com>
9290 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9291 (target_set_trace_notes): Add argument.
9292 * target.c (update_current_target): Update.
9293 * remote.c (remote_set_trace_notes): Add 'self' argument.
9295 2014-02-19 Tom Tromey <tromey@redhat.com>
9297 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9299 (target_set_trace_buffer_size): Add argument.
9300 * target.c (update_current_target): Update.
9301 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9303 2014-02-19 Tom Tromey <tromey@redhat.com>
9305 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9307 (target_set_circular_trace_buffer): Add argument.
9308 * target.c (update_current_target): Update.
9309 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9314 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9316 (target_set_disconnected_tracing): Add argument.
9317 * target.c (update_current_target): Update.
9318 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9320 2014-02-19 Tom Tromey <tromey@redhat.com>
9322 * target.h (struct target_ops)
9323 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9324 (target_get_min_fast_tracepoint_insn_len): Add argument.
9325 * target.c (update_current_target): Update.
9326 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9329 2014-02-19 Tom Tromey <tromey@redhat.com>
9331 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9333 (target_get_raw_trace_data): Add argument.
9334 * target.c (update_current_target): Update.
9335 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9337 2014-02-19 Tom Tromey <tromey@redhat.com>
9339 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9341 (target_upload_trace_state_variables): Add argument.
9342 * target.c (update_current_target): Update.
9343 * remote.c (remote_upload_trace_state_variables): Add 'self'
9345 (remote_start_remote): Update.
9347 2014-02-19 Tom Tromey <tromey@redhat.com>
9349 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9351 (target_upload_tracepoints): Add argument.
9352 * target.c (update_current_target): Update.
9353 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9354 (remote_start_remote): Update.
9356 2014-02-19 Tom Tromey <tromey@redhat.com>
9358 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9359 (target_save_trace_data): Add argument.
9360 * target.c (update_current_target): Update.
9361 * remote.c (remote_save_trace_data): Add 'self' argument.
9363 2014-02-19 Tom Tromey <tromey@redhat.com>
9365 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9367 * target.h (struct target_ops)
9368 <to_get_trace_state_variable_value>: Add argument.
9369 (target_get_trace_state_variable_value): Add argument.
9370 * target.c (update_current_target): Update.
9371 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9373 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9375 2014-02-19 Tom Tromey <tromey@redhat.com>
9377 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9378 * target.h (struct target_ops) <to_trace_find>: Add argument.
9379 (target_trace_find): Add argument.
9380 * target.c (update_current_target): Update.
9381 * remote.c (remote_trace_find): Add 'self' argument.
9382 * ctf.c (ctf_trace_find): Add 'self' argument.
9384 2014-02-19 Tom Tromey <tromey@redhat.com>
9386 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9387 (target_trace_stop): Add argument.
9388 * target.c (update_current_target): Update.
9389 * remote.c (remote_trace_stop): Add 'self' argument.
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9393 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9394 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9396 (target_get_tracepoint_status): Add argument.
9397 * target.c (update_current_target): Update.
9398 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9400 2014-02-19 Tom Tromey <tromey@redhat.com>
9402 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9403 * target.h (struct target_ops) <to_get_trace_status>: Add
9405 (target_get_trace_status): Add argument.
9406 * target.c (update_current_target): Update.
9407 * remote.c (remote_get_trace_status): Add 'self' argument.
9408 (remote_start_remote, remote_can_download_tracepoint): Update.
9409 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9411 2014-02-19 Tom Tromey <tromey@redhat.com>
9413 * target.h (struct target_ops) <to_trace_start>: Add argument.
9414 (target_trace_start): Add argument.
9415 * target.c (update_current_target): Update.
9416 * remote.c (remote_trace_start): Add 'self' argument.
9418 2014-02-19 Tom Tromey <tromey@redhat.com>
9420 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9422 (target_trace_set_readonly_regions): Add argument.
9423 * target.c (update_current_target): Update.
9424 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9429 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9431 (target_disable_tracepoint): Add argument.
9432 * target.c (update_current_target): Update.
9433 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9435 2014-02-19 Tom Tromey <tromey@redhat.com>
9437 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9439 (target_enable_tracepoint): Add argument.
9440 * target.c (update_current_target): Update.
9441 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9443 2014-02-19 Tom Tromey <tromey@redhat.com>
9445 * target.h (struct target_ops) <to_download_trace_state_variable>:
9447 (target_download_trace_state_variable): Add argument.
9448 * target.c (update_current_target): Update.
9449 * remote.c (remote_download_trace_state_variable): Add 'self'
9452 2014-02-19 Tom Tromey <tromey@redhat.com>
9454 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9456 (target_can_download_tracepoint): Add argument.
9457 * target.c (update_current_target): Update.
9458 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9460 2014-02-19 Tom Tromey <tromey@redhat.com>
9462 * target.h (struct target_ops) <to_download_tracepoint>: Add
9464 (target_download_tracepoint): Add argument.
9465 * target.c (update_current_target): Update.
9466 * remote.c (remote_download_tracepoint): Add 'self' argument.
9468 2014-02-19 Tom Tromey <tromey@redhat.com>
9470 * target.h (struct target_ops) <to_trace_init>: Add argument.
9471 (target_trace_init): Add argument.
9472 * target.c (update_current_target): Update.
9473 * remote.c (remote_trace_init): Add 'self' argument.
9475 2014-02-19 Tom Tromey <tromey@redhat.com>
9477 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9478 * target.c (target_fileio_readlink): Add argument.
9479 * remote.c (remote_hostio_readlink): Add 'self' argument.
9480 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9482 2014-02-19 Tom Tromey <tromey@redhat.com>
9484 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9485 * target.c (target_fileio_unlink): Add argument.
9486 * remote.c (remote_hostio_unlink): Add 'self' argument.
9487 (remote_file_delete): Update.
9488 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9490 2014-02-19 Tom Tromey <tromey@redhat.com>
9492 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9493 * target.c (target_fileio_close): Add argument.
9494 * remote.c (remote_hostio_close): Add 'self' argument.
9495 (remote_hostio_close_cleanup): Update.
9496 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9498 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9500 2014-02-19 Tom Tromey <tromey@redhat.com>
9502 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9503 * target.c (target_fileio_pread): Add argument.
9504 * remote.c (remote_hostio_pread): Add 'self' argument.
9505 (remote_bfd_iovec_pread, remote_file_get): Update.
9506 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9510 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9511 * target.c (target_fileio_pwrite): Add argument.
9512 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9513 (remote_file_put): Update.
9514 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9516 2014-02-19 Tom Tromey <tromey@redhat.com>
9518 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9519 * target.c (target_fileio_open): Add argument.
9520 * remote.c (remote_hostio_open): Add 'self' argument.
9521 (remote_bfd_iovec_open): Add 'self' argument.
9522 (remote_file_put): Add 'self' argument.
9523 (remote_file_get): Add 'self' argument.
9524 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9526 2014-02-19 Tom Tromey <tromey@redhat.com>
9528 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9530 (target_can_run_breakpoint_commands): Add argument.
9531 * target.c (update_current_target): Update.
9532 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9534 (remote_insert_breakpoint): Add 'self' argument.
9535 (remote_insert_hw_breakpoint): Add 'self' argument.
9536 (remote_can_run_breakpoint_commands): Add 'self' argument.
9538 2014-02-19 Tom Tromey <tromey@redhat.com>
9540 * target.h (struct target_ops)
9541 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9542 (target_supports_evaluation_of_breakpoint_conditions): Add
9544 * target.c (update_current_target): Update.
9545 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9547 (remote_insert_breakpoint): Add 'self' argument.
9548 (remote_insert_hw_breakpoint): Add 'self' argument.
9549 (remote_supports_cond_breakpoints): Add 'self' argument.
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9553 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9555 (target_supports_string_tracing): Add argument.
9556 * target.c (update_current_target): Update.
9557 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9561 * target.h (struct target_ops)
9562 <to_supports_disable_randomization>: Add argument.
9563 * target.c (find_default_supports_disable_randomization): Add
9565 (target_supports_disable_randomization): Add argument.
9566 (find_default_supports_disable_randomization): Add 'self'
9568 * remote.c (extended_remote_supports_disable_randomization): Add
9570 (remote_supports_disable_randomization): Add 'self' argument.
9571 (extended_remote_create_inferior): Update.
9572 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9575 2014-02-19 Tom Tromey <tromey@redhat.com>
9577 * target.h (struct target_ops)
9578 <to_supports_enable_disable_tracepoint>: Add argument.
9579 (target_supports_enable_disable_tracepoint): Add argument.
9580 * target.c (update_current_target): Update.
9581 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9584 2014-02-19 Tom Tromey <tromey@redhat.com>
9586 * target.h (struct target_ops) <to_supports_multi_process>: Add
9588 (target_supports_multi_process): Add argument.
9589 * target.c (update_current_target): Update.
9590 * remote.c (remote_supports_multi_process): Add 'self' argument.
9591 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9593 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9596 2014-02-19 Tom Tromey <tromey@redhat.com>
9598 * target.h (struct target_ops) <to_execution_direction>: Add
9600 (target_execution_direction): Add argument.
9601 * target.c (default_execution_direction): Add 'self' argument.
9602 * record-full.c (record_full_execution_direction): Add 'self'
9605 2014-02-19 Tom Tromey <tromey@redhat.com>
9607 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9609 (target_can_execute_reverse): Add argument.
9610 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9611 * record-full.c (record_full_can_execute_reverse): Add 'self'
9613 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9616 2014-02-19 Tom Tromey <tromey@redhat.com>
9618 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9619 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9621 (target_get_ada_task_ptid): Add argument.
9622 * target.c (update_current_target): Update.
9623 (default_get_ada_task_ptid): Add 'self' argument.
9624 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9625 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9626 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9628 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9630 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9632 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9634 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9635 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9638 2014-02-19 Tom Tromey <tromey@redhat.com>
9640 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9641 (target_goto_bookmark): Add argument.
9642 * target.c (dummy_goto_bookmark): Add 'self' argument.
9643 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9645 2014-02-19 Tom Tromey <tromey@redhat.com>
9647 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9648 (target_get_bookmark): Add argument.
9649 * target.c (dummy_get_bookmark): Add 'self' argument.
9650 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9652 2014-02-19 Tom Tromey <tromey@redhat.com>
9654 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9656 (target_make_corefile_notes): Add argument.
9657 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9658 * procfs.c (procfs_make_note_section): Add 'self' argument.
9659 (procfs_make_note_section): Add 'self' argument.
9660 (procfs_make_note_section): Add 'self' argument.
9661 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9663 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9664 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9665 * exec.c (exec_make_note_section): Add 'self' argument.
9666 (exec_make_note_section): Add 'self' argument.
9668 2014-02-19 Tom Tromey <tromey@redhat.com>
9670 * target.h (struct target_ops) <to_find_memory_regions>: Add
9672 (target_find_memory_regions): Add argument.
9673 * target.c (dummy_find_memory_regions): Add 'self' argument.
9674 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9675 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9676 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9677 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9678 * exec. (exec_do_find_memory_regions): New global.
9679 (exec_set_find_memory_regions): Rewrite.
9680 (exec_find_memory_regions): New function.
9681 (init_exec_ops): Use exec_find_memory_regions.
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9685 * target.h (struct target_ops) <to_supports_non_stop>: Add
9687 * target.c (find_default_supports_non_stop): Add argument.
9688 (target_supports_non_stop): Add argument.
9689 (find_default_supports_non_stop): Add 'self' argument.
9690 * remote.c (remote_supports_non_stop): Add 'self' argument.
9691 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9693 2014-02-19 Tom Tromey <tromey@redhat.com>
9695 * target.h (struct target_ops) <to_log_command>: Add argument.
9696 (target_log_command): Add argument.
9697 * serial.h (serial_log_command): Add 'self' argument.
9698 * serial.c (serial_log_command): Add 'self' argument.
9700 2014-02-19 Tom Tromey <tromey@redhat.com>
9702 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9703 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9705 (target_pid_to_exec_file): Add argument.
9706 * target.c (debug_to_pid_to_exec_file): Add argument.
9707 (update_current_target): Update.
9708 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9709 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9710 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9711 (linux_handle_extended_wait): Update.
9712 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9713 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9714 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9715 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9717 2014-02-19 Tom Tromey <tromey@redhat.com>
9719 * target.h (struct target_ops) <to_rcmd>: Add argument.
9720 (target_rcmd): Add argument.
9721 * target.c (debug_to_rcmd): Add argument.
9722 (update_current_target, do_monitor_command): Update.
9723 * remote.c (remote_rcmd): Add 'self' argument.
9724 * monitor.c (monitor_rcmd): Add 'self' argument.
9726 2014-02-19 Tom Tromey <tromey@redhat.com>
9728 * windows-nat.c (windows_stop): Add 'self' argument.
9729 * target.h (struct target_ops) <to_stop>: Add argument.
9730 * target.c (target_stop): Add argument.
9731 (debug_to_stop): Add argument.
9732 (update_current_target): Update.
9733 * remote.c (remote_stop): Add 'self' argument.
9734 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9735 (gdbsim_cntrl_c): Update.
9736 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9737 * procfs.c (procfs_stop): Add 'self' argument.
9738 * nto-procfs.c (procfs_stop): Add 'self' argument.
9739 * monitor.c (monitor_stop): Add 'self' argument.
9740 (monitor_open): Update.
9741 * linux-nat.c (linux_nat_stop): Add argument.
9742 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9743 * gnu-nat.c (gnu_stop): Add 'self' argument.
9744 * darwin-nat.c (darwin_stop): Add 'self' argument.
9746 2014-02-19 Tom Tromey <tromey@redhat.com>
9748 * target.h (struct target_ops) <to_thread_name>: Add argument.
9749 * target.c (target_thread_name): Add argument.
9750 (update_current_target): Update.
9751 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9753 2014-02-19 Tom Tromey <tromey@redhat.com>
9755 * target.h (struct target_ops) <to_extra_thread_info>: Add
9757 (target_extra_thread_info): Add argument.
9758 * target.c (update_current_target): Update.
9759 * remote.c (remote_threads_extra_info): Add 'self' argument.
9760 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9762 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9763 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9764 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9766 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9768 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9770 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9773 2014-02-19 Tom Tromey <tromey@redhat.com>
9775 * target.h (struct target_ops) <to_program_signals>: Add argument.
9776 * target.c (target_program_signals): Add argument.
9777 * remote.c (remote_program_signals): Add 'self' argument.
9779 2014-02-19 Tom Tromey <tromey@redhat.com>
9781 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9782 * target.c (target_pass_signals): Add argument.
9783 * remote.c (remote_pass_signals): Add 'self' argument.
9784 (remote_start_remote): Update.
9785 * procfs.c (procfs_pass_signals): Add 'self' argument.
9786 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9787 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9788 (linux_nat_create_inferior, linux_nat_attach): Update.
9790 2014-02-19 Tom Tromey <tromey@redhat.com>
9792 * windows-nat.c (windows_can_run): Add 'self' argument.
9793 * target.h (struct target_ops) <to_can_run>: Add argument.
9794 (target_can_run): Add argument.
9795 * target.c (debug_to_can_run): Add argument.
9796 (update_current_target): Update.
9797 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9798 * inf-child.c (inf_child_can_run): Add 'self' argument.
9799 * go32-nat.c (go32_can_run): Add 'self' argument.
9801 2014-02-19 Tom Tromey <tromey@redhat.com>
9803 * target.h (struct target_ops) <to_has_exited>: Add argument.
9804 (target_has_exited): Add argument.
9805 * target.c (debug_to_has_exited): Add argument.
9806 (update_current_target): Update.
9808 2014-02-19 Tom Tromey <tromey@redhat.com>
9810 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9812 (target_set_syscall_catchpoint): Add argument.
9813 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9815 * target.c (update_current_target): Update.
9817 2014-02-19 Tom Tromey <tromey@redhat.com>
9819 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9821 (target_remove_exec_catchpoint): Add argument.
9822 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9823 (update_current_target): Update.
9824 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9827 2014-02-19 Tom Tromey <tromey@redhat.com>
9829 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9831 (target_insert_exec_catchpoint): Add argument.
9832 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9833 (update_current_target): Update.
9834 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9837 2014-02-19 Tom Tromey <tromey@redhat.com>
9839 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9841 (target_remove_vfork_catchpoint): Add argument.
9842 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9843 (update_current_target): Update.
9844 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9847 2014-02-19 Tom Tromey <tromey@redhat.com>
9849 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9851 (target_insert_vfork_catchpoint): Add argument.
9852 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9853 (update_current_target): Update.
9854 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9857 2014-02-19 Tom Tromey <tromey@redhat.com>
9859 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9861 (target_remove_fork_catchpoint): Add argument.
9862 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9863 (update_current_target): Update.
9864 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9867 2014-02-19 Tom Tromey <tromey@redhat.com>
9869 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9871 (target_insert_fork_catchpoint): Add argument.
9872 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9873 (update_current_target): Update.
9874 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9879 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9881 (target_post_startup_inferior): Add argument.
9882 * target.c (debug_to_post_startup_inferior): Add argument.
9883 (update_current_target): Update.
9884 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9886 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9888 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9890 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9892 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9894 (super_post_startup_inferior): Likewise.
9895 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9897 (super_post_startup_inferior): Likewise.
9898 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9899 Add 'self' argument.
9900 (super_post_startup_inferior): Likewise.
9902 2014-02-19 Tom Tromey <tromey@redhat.com>
9904 * target.h (struct target_ops) <to_load>: Add argument.
9905 * target.c (target_load): Add argument.
9906 (debug_to_load): Add argument.
9907 (update_current_target): Update.
9908 * remote.c (remote_load): Add 'self' argument.
9909 * remote-sim.c (gdbsim_load): Add 'self' argument.
9910 * remote-mips.c (mips_load): Add 'self' argument.
9911 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9912 * monitor.c (monitor_load): Add 'self' argument.
9913 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9915 2014-02-19 Tom Tromey <tromey@redhat.com>
9917 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9918 (target_terminal_info): Add argument.
9919 * target.c (debug_to_terminal_info): Add argument.
9920 (default_terminal_info): Likewise.
9921 * inflow.c (child_terminal_info): Add 'self' argument.
9922 * inferior.h (child_terminal_info): Add 'self' argument.
9923 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9927 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9929 (target_terminal_save_ours): Add argument.
9930 * target.c (debug_to_terminal_save_ours): Add argument.
9931 (update_current_target): Update.
9932 * inflow.c (terminal_save_ours): Add 'self' argument.
9933 * inferior.h (terminal_save_ours): Add 'self' argument.
9935 2014-02-19 Tom Tromey <tromey@redhat.com>
9937 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9938 (target_terminal_ours): Add argument.
9939 * target.c (debug_to_terminal_ours): Add argument.
9940 (update_current_target): Update.
9941 * remote.c (remote_terminal_ours): Add 'self' argument.
9942 (remote_close): Update.
9943 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9944 * inflow.c (terminal_ours): Add 'self' argument.
9945 * inferior.h (terminal_ours): Add 'self' argument.
9946 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9948 2014-02-19 Pedro Alves <palves@redhat.com>
9949 Tom Tromey <tromey@redhat.com>
9951 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9953 (target_terminal_ours_for_output): Add argument.
9954 * target.c (debug_to_terminal_ours_for_output): Add argument.
9955 (update_current_target): Update.
9956 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9957 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9958 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9960 2014-02-19 Tom Tromey <tromey@redhat.com>
9962 * target.h (struct target_ops) <to_terminal_inferior>: Add
9964 * target.c (target_terminal_inferior): Add argument.
9965 (update_current_target): Update.
9966 * remote.c (remote_terminal_inferior): Add 'self' argument.
9967 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9968 * inflow.c (terminal_inferior): Add 'self' argument.
9969 * inferior.h (terminal_inferior): Add 'self' argument.
9970 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9971 (go32_terminal_inferior): Add 'self' argument.
9973 2014-02-19 Tom Tromey <tromey@redhat.com>
9975 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9976 (target_terminal_init): Add argument.
9977 * target.c (debug_to_terminal_init): Add argument.
9978 (update_current_target): Update.
9979 * inflow.c (terminal_init_inferior): Add 'self' argument.
9980 * inferior.h (terminal_init_inferior): Add 'self' argument.
9981 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9982 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9984 2014-02-19 Tom Tromey <tromey@redhat.com>
9986 * target.h (struct target_ops)
9987 <to_can_accel_watchpoint_condition>: Add argument.
9988 (target_can_accel_watchpoint_condition): Add argument.
9989 * target.c (debug_to_can_accel_watchpoint_condition): Add
9991 (update_current_target): Update.
9992 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9995 2014-02-19 Tom Tromey <tromey@redhat.com>
9997 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9999 (target_region_ok_for_hw_watchpoint): Add argument.
10000 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10001 (default_region_ok_for_hw_watchpoint): Add argument.
10002 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10003 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10005 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10007 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10009 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10011 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10013 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10015 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10016 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10018 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10019 Add 'self' argument.
10021 2014-02-19 Tom Tromey <tromey@redhat.com>
10023 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10025 (target_insert_watchpoint): Add argument.
10026 * target.c (debug_to_insert_watchpoint): Add argument.
10027 (update_current_target): Update.
10028 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10029 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10030 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10031 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10032 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10033 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10035 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10036 (procfs_insert_hw_watchpoint): Add 'self' argument.
10037 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10039 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10041 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10043 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10044 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10046 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10049 2014-02-19 Tom Tromey <tromey@redhat.com>
10051 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10053 (target_remove_watchpoint): Add argument.
10054 * target.c (debug_to_remove_watchpoint): Add argument.
10055 (update_current_target): Update.
10056 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10057 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10058 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10059 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10060 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10061 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10063 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10064 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10066 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10068 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10070 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10071 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10073 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10076 2014-02-19 Tom Tromey <tromey@redhat.com>
10078 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10080 (target_remove_hw_breakpoint): Add argument.
10081 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10082 (update_current_target): Update.
10083 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10084 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10086 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10087 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10089 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10092 2014-02-19 Tom Tromey <tromey@redhat.com>
10094 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10096 (target_insert_hw_breakpoint): Add argument.
10097 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10098 (update_current_target): Update.
10099 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10100 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10102 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10103 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10104 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10106 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10109 2014-02-19 Tom Tromey <tromey@redhat.com>
10111 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10113 (target_can_use_hardware_watchpoint): Add argument.
10114 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10115 (update_current_target): Update.
10116 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10118 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10120 * remote.c (remote_check_watch_resources): Add 'self' argument.
10121 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10122 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10124 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10125 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10127 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10129 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10131 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10133 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10135 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10137 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10138 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10140 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10143 2014-02-19 Tom Tromey <tromey@redhat.com>
10145 * target.h (struct target_ops) <to_post_attach>: Add argument.
10146 (target_post_attach): Add argument.
10147 * target.c (debug_to_post_attach): Add argument.
10148 (update_current_target): Update.
10149 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10150 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10151 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10152 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10153 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10155 2014-02-19 Tom Tromey <tromey@redhat.com>
10157 * windows-nat.c (windows_close): Add 'self' argument.
10158 * tracepoint.c (tfile_close): Add 'self' argument.
10159 * target.h (struct target_ops) <to_close>: Add argument.
10160 * target.c (target_close): Add argument.
10161 (update_current_target): Update.
10162 * remote.c (remote_close): Add 'self' argument.
10163 * remote-sim.c (gdbsim_close): Add 'self' argument.
10164 * remote-mips.c (mips_close): Add 'self' argument.
10165 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10166 * record-full.c (record_full_close): Add 'self' argument.
10167 * record-btrace.c (record_btrace_close): Add 'self' argument.
10168 * monitor.h (monitor_close): Add 'self' argument.
10169 * monitor.c (monitor_close): Add 'self' argument.
10170 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10171 * linux-nat.c (linux_nat_close): Add argument.
10172 * go32-nat.c (go32_close): Add 'self' argument.
10173 * exec.c (exec_close_1): Add 'self' argument.
10174 * ctf.c (ctf_close): Add 'self' argument.
10175 * corelow.c (core_close): Add 'self' argument.
10176 (core_close_cleanup): Update.
10177 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10178 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10180 2014-02-19 Tom Tromey <tromey@redhat.com>
10182 * remote.c (remote_load): New function.
10183 (init_remote_ops): Use it.
10185 2014-02-19 Tom Tromey <tromey@redhat.com>
10187 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10189 * common/linux-btrace.h (linux_supports_btrace): Update.
10190 * remote.c (remote_supports_btrace): Add "self" argument.
10191 * target-delegates.c: Rebuild.
10192 * target.c (target_supports_btrace): Remove.
10193 * target.h (struct target_ops) <to_supports_btrace>: Add
10194 target_ops argument.
10195 (target_supports_btrace): New define.
10197 2014-02-19 Tom Tromey <tromey@redhat.com>
10199 * record-full.c (record_full_beneath_to_resume_ops)
10200 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10201 (record_full_beneath_to_wait)
10202 (record_full_beneath_to_store_registers_ops)
10203 (record_full_beneath_to_store_registers)
10204 (record_full_beneath_to_xfer_partial_ops)
10205 (record_full_beneath_to_xfer_partial)
10206 (record_full_beneath_to_insert_breakpoint_ops)
10207 (record_full_beneath_to_insert_breakpoint)
10208 (record_full_beneath_to_remove_breakpoint_ops)
10209 (record_full_beneath_to_remove_breakpoint)
10210 (record_full_beneath_to_stopped_by_watchpoint)
10211 (record_full_beneath_to_stopped_data_address)
10212 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10213 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10214 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10215 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10216 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10217 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10218 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10219 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10220 (record_full_resume, record_full_wait_1)
10221 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10222 (record_full_store_registers, record_full_xfer_partial)
10223 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10224 (record_full_async, record_full_core_xfer_partial): Use target
10226 * target-delegates.c: Rebuild.
10227 * target.c (current_xfer_partial): Remove.
10228 (update_current_target): Do not INHERIT or de_fault
10229 to_insert_breakpoint, to_remove_breakpoint,
10230 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10231 to_is_async_p, to_async. Do not set to_xfer_partial field.
10232 (default_xfer_partial): Simplify.
10233 (current_xfer_partial): Remove.
10234 (target_wait, target_resume): Simplify.
10235 (find_default_can_async_p, find_default_is_async_p): Update.
10236 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10237 to_xfer_partial, to_stopped_by_watchpoint,
10238 to_stopped_data_address.
10239 (target_store_registers): Simplify.
10240 (forward_target_remove_breakpoint)
10241 (forward_target_insert_breakpoint): Remove.
10242 (target_remove_breakpoint, target_insert_breakpoint)
10243 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10244 * target.h (struct target_ops) <to_resume, to_wait,
10245 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10246 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10247 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10249 (forward_target_remove_breakpoint)
10250 (forward_target_insert_breakpoint): Remove.
10251 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10253 (record_btrace_insert_breakpoint): Delegate directly.
10255 2014-02-19 Tom Tromey <tromey@redhat.com>
10258 * target-delegates.c: New file.
10259 * target.c: Include target-delegates.c.
10260 (init_dummy_target): Call install_dummy_methods.
10261 (complete_target_initialization): Call install_delegators.
10262 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10263 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10264 * make-target-delegates: New file.
10266 2014-02-19 Tom Tromey <tromey@redhat.com>
10268 * record.c (find_record_target): Use find_target_at.
10269 * target.c (find_target_at): New function.
10270 * target.h (find_target_at): Declare.
10272 2014-02-19 Tom Tromey <tromey@redhat.com>
10274 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10275 Add 'ops' argument.
10276 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10278 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10279 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10281 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10283 * linux-nat.c (save_sigtrap): Update.
10284 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10285 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10286 (linux_nat_close): Update.
10287 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10289 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10291 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10292 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10293 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10294 (tmp_to_async): Add 'ops' argument.
10295 (record_full_stopped_by_watchpoint, record_full_async)
10296 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10298 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10299 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10300 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10301 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10302 (remote_is_async_p, remote_async): Add 'ops' argument.
10303 (remote_stopped_data_address): Update.
10304 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10305 * target.c (update_current_target)
10306 (find_default_can_async_p, find_default_is_async_p): Update.
10307 (init_dummy_target): Update.
10308 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10309 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10310 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10311 (target_can_async_p, target_is_async_p, target_async)
10312 (target_stopped_by_watchpoint): Update.
10314 2014-02-19 Yao Qi <yao@codesourcery.com>
10317 * gdbarch.sh: Remove startup_gdbarch.
10318 * gdbarch.c: Regenerated.
10319 * gdbarch.h: Likewise.
10321 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10323 * rl78-tdep.c (rl78_g10_register_name): New function.
10324 (rl78_return_value): Add g10 support.
10325 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10328 2014-02-17 Doug Evans <xdje42@gmail.com>
10330 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10331 (SUBDIR_GUILE_SRCS): Ditto.
10332 (scm-gsmob.o): Ditto.
10334 2014-02-17 Yao Qi <yao@codesourcery.com>
10336 * gnu-nat.c (ILL_RPC): Declare defined function.
10338 2014-02-17 Yao Qi <yao@codesourcery.com>
10340 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10341 mach_msg_type_number_t.
10342 (gnu_write_inferior): Likewise.
10344 2014-02-17 Yao Qi <yao@codesourcery.com>
10346 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10348 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10349 (inf_validate_procs, inf_signal): Likewise.
10350 (S_exception_raise_request): Likewise.
10351 (do_mach_notify_dead_name): Likewise.
10352 (steal_exc_port): Likewise.
10353 (gnu_read_inferior): Change 'copy_count''s type to
10354 mach_msg_type_number_t.
10355 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10358 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10360 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10361 flag. Adjust all users; in particular...
10362 (gnu_wait): ..., don't decrement its value in here...
10363 (gnu_create_inferior): ..., and instead set the flag in here,
10364 around the startup_inferior call, and call that one with
10365 START_INFERIOR_TRAPS_EXPECTED.
10367 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10368 (ILL_RPC): ... new macro.
10369 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10370 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10371 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10372 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10373 functions with ILL_RPC macro.
10374 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10375 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10376 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10377 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10378 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10379 (S_proc_getlogin_reply, S_proc_getsid_reply)
10380 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10381 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10382 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10383 (S_proc_getnports_reply, S_proc_is_important_reply)
10384 (S_proc_get_code_reply): New stub functions, generated with
10387 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10388 collected the type check structures.
10390 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10392 2014-02-14 Doug Evans <dje@google.com>
10394 * target.c (target_write_partial): Fix result type.
10396 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10398 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10399 the proper offsets to access fpregset_t.
10401 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10403 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10404 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10405 * h8300-tdep.c (setmachinelist): Remove global.
10406 * hppa-tdep.c (hppa_sigtramp): Remove global.
10407 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10408 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10409 * ravenscar-thread.c (update_target_observer): Remove global.
10410 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10412 2014-02-12 Tom Tromey <tromey@redhat.com>
10414 * common/rsp-low.c: Update comments.
10415 * common/rsp-low.h: Update comments.
10417 2014-02-12 Tom Tromey <tromey@redhat.com>
10419 * common/rsp-low.c (convert_ascii_to_int): Remove.
10420 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10422 2014-02-12 Tom Tromey <tromey@redhat.com>
10424 * common/rsp-low.h (unhexify): Don't declare.
10425 * common/rsp-low.c (unhexify): Remove.
10427 2014-02-12 Tom Tromey <tromey@redhat.com>
10429 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10430 * common/rsp-low.c (convert_int_to_ascii): Remove.
10432 2014-02-12 Tom Tromey <tromey@redhat.com>
10434 * common/rsp-low.h (hexify): Don't declare.
10435 * common/rsp-low.c (hexify): Remove.
10437 2014-02-12 Tom Tromey <tromey@redhat.com>
10439 * common/rsp-low.c (hexify): Never take strlen of argument.
10441 2014-02-12 Tom Tromey <tromey@redhat.com>
10443 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10444 * remote.c (extended_remote_run, remote_rcmd)
10445 (remote_download_trace_state_variable, remote_save_trace_data)
10446 (remote_set_trace_notes): Update.
10447 * tracepoint.c (encode_source_string, tfile_write_status)
10448 (tfile_write_uploaded_tsv): Update.
10450 2014-02-12 Tom Tromey <tromey@redhat.com>
10452 * tracepoint.c: Include rsp-low.h.
10453 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10454 * remote.c: Include rsp-low.h.
10455 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10456 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10457 (remote_unescape_input): Move to common/rsp-low.c.
10458 * common/rsp-low.h: New file.
10459 * common/rsp-low.c: New file.
10460 * Makefile.in (SFILES): Add common/rsp-low.c.
10461 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10462 (COMMON_OBS): Add rsp-low.o.
10463 (rsp-low.o): New target.
10465 2014-02-12 Tom Tromey <tromey@redhat.com>
10467 * utils.h: Include print-utils.h.
10468 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10469 (int_string, core_addr_to_string, core_addr_to_string_nz)
10470 (hex_string, hex_string_custom): Don't declare.
10471 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10472 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10473 (hex_string_custom, int_string, core_addr_to_string)
10474 (core_addr_to_string_nz, host_address_to_string): Move to
10475 common/print-utils.c.
10476 * common/print-utils.h: New file.
10477 * common/print-utils.c: New file
10478 * Makefile.in (SFILES): Add common/print-utils.c.
10479 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10480 (COMMON_OBS): Add print-utils.o.
10481 (print-utils.o): New target.
10483 2014-02-12 Tom Tromey <tromey@redhat.com>
10485 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10487 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10489 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10491 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10493 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10494 if a PT_IO ptrace request returns sucessfully but indicates that 0
10495 bytes were transferred.
10497 2014-02-12 Pedro Alves <palves@redhat.com>
10498 Kevin Buettner <kevinb@redhat.com>
10500 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10501 TYPE_INSTANCE_FLAG_CODE_SPACE.
10503 2014-02-12 Pedro Alves <palves@redhat.com>
10505 * h8300-tdep.c (pseudo_from_raw_register)
10506 (raw_from_pseudo_register): New functions.
10507 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10510 2014-02-12 Pedro Alves <palves@redhat.com>
10512 * h8300-tdep.c (h8300_register_sim_regno): New function.
10513 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10514 gdbarch_register_sim_regno hook.
10516 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10518 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10520 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10522 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10524 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10526 * obsd-tdep.h (obsd_init_abi): New prototype.
10527 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10528 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10529 (obsd_init_abi): New functions.
10530 * i386obsd-tdep.c: Include "obsd-tdep.h".
10531 (i386obsd_init_abi): Call obsd_init_abi.
10532 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10533 (amd64obsd_init_abi): Call obsd_init_abi.
10534 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10535 obsd-tdep.c to gdb_target_obs.
10537 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10539 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10540 double float arguments to 16-byte in the argument slots.
10542 2014-02-11 Doug Evans <xdje42@gmail.com>
10544 * configure.ac: Don't crash if pkg-config is not found and guile
10545 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10547 * configure: Regenerate.
10549 2014-02-11 Yao Qi <yao@codesourcery.com>
10551 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10552 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10553 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10554 * gnu-nat.c (gnu_xfer_memory): Likewise.
10555 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10556 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10557 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10558 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10560 2014-02-11 Yao Qi <yao@codesourcery.com>
10562 * target.h (enum target_xfer_error): Rename to ...
10563 (enum target_xfer_status): ... it. New. All users updated.
10564 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10566 (TARGET_XFER_STATUS_ERROR_P): New macro.
10567 (target_xfer_error_to_string): Remove declaration.
10568 (target_xfer_status_to_string): Declare.
10569 (target_xfer_partial_ftype): Adjust it.
10570 (struct target_ops) <to_xfer_partial>: Return
10571 target_xfer_status. Add argument xfered_len. Update
10573 * target.c (target_xfer_error_to_string): Rename to ...
10574 (target_xfer_status_to_string): ... it. New. All callers
10576 (target_read_live_memory): Likewise. Call target_xfer_partial
10577 instead of target_read.
10578 (memory_xfer_live_readonly_partial): Return
10579 target_xfer_status. Add argument xfered_len.
10580 (raw_memory_xfer_partial): Likewise.
10581 (memory_xfer_partial_1): Likewise.
10582 (memory_xfer_partial): Likewise.
10583 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10584 properly. Update debug message.
10585 (default_xfer_partial, current_xfer_partial): Likewise.
10586 (target_write_partial): Likewise.
10587 (target_read_partial): Likewise. All callers updated.
10588 (read_whatever_is_readable): Likewise.
10589 (target_write_with_progress): Likewise.
10590 (target_read_alloc_1): Likewise.
10592 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10593 * auxv.c (procfs_xfer_auxv): Likewise.
10594 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10595 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10596 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10597 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10598 * corefile.c (read_memory): Adjust.
10599 * corelow.c (core_xfer_partial): Likewise.
10600 * ctf.c (ctf_xfer_partial): Likewise.
10601 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10603 (darwin_xfer_partial): Likewise.
10604 * exec.c (section_table_xfer_memory_partial): Likewise. All
10606 (exec_xfer_partial): Likewise.
10607 * exec.h (section_table_xfer_memory_partial): Update
10609 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10611 (gnu_xfer_partial): Likewise.
10612 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10613 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10614 (ia64_hpux_xfer_solib_got): Likewise.
10615 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10616 type of 'partial_len' to ULONGEST.
10617 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10618 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10619 (linux_nat_xfer_partial): Likewise.
10620 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10621 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10622 * monitor.c (monitor_xfer_memory): Likewise.
10623 (monitor_xfer_partial): Likewise.
10624 * procfs.c (procfs_xfer_partial): Likewise.
10625 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10626 * record-full.c (record_full_xfer_partial): Likewise.
10627 (record_full_core_xfer_partial): Likewise.
10628 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10629 (gdbsim_xfer_partial): Likewise.
10630 * remote.c (remote_write_bytes_aux): Likewise. All callers
10632 (remote_write_bytes, remote_read_bytes): Likewise. All
10634 (remote_flash_erase): Likewise. All callers updated.
10635 (remote_write_qxfer): Likewise. All callers updated.
10636 (remote_read_qxfer): Likewise. All callers updated.
10637 (remote_xfer_partial): Likewise.
10638 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10639 (rs6000_xfer_shared_libraries): Likewise.
10640 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10641 (sol_thread_xfer_partial): Likewise.
10642 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10643 (sparc_xfer_partial): Likewise.
10644 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10646 (spu_xfer_partial): Likewise.
10647 * spu-multiarch.c (spu_xfer_partial): Likewise.
10648 * tracepoint.c (tfile_xfer_partial): Likewise.
10649 * windows-nat.c (windows_xfer_memory): Likewise.
10650 (windows_xfer_shared_libraries): Likewise.
10651 (windows_xfer_partial): Likewise.
10652 * valprint.c: Replace 'target_xfer_error' with
10653 'target_xfer_status' in comments.
10655 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10657 Checked in by Joel Brobecker <brobecker@adacore.com>.
10658 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10660 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10662 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10663 function parameters.
10665 2014-02-10 Will Newton <will.newton@linaro.org>
10667 * elfread.c (elf_rel_plt_read): Look for a .got section if
10668 looking up .got.plt fails.
10669 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10670 on address passed to elf_gnu_ifunc_record_cache.
10671 (elf_gnu_ifunc_resolve_addr): Likewise.
10672 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10674 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10676 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10677 (X_RETTURN): New macro.
10678 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10680 * sparc64-tdep.c (sparc64_init_abi): Hook
10681 sparc_in_function_epilogue_p.
10683 2014-02-10 Gary Benson <gbenson@redhat.com>
10685 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10686 Rename name_matcher to symbol_matcher.
10688 2014-02-10 Gary Benson <gbenson@redhat.com>
10690 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10691 Use expand_symtabs_file_matcher_ftype and
10692 expand_symtabs_symbol_matcher_ftype.
10694 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10696 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10697 (struct ada_symbol_cache): New.
10698 (ada_free_symbol_cache): Forward declare.
10699 (struct ada_pspace_data): New.
10700 (ada_pspace_data_handle): New static global.
10701 (get_ada_pspace_data, ada_pspace_data_cleanup)
10702 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10703 (cache_space, cache): Delete, now folded inside struct
10705 (ada_get_symbol_cache): New function.
10706 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10708 (_initialize_ada_language): Remove initialization of cache_space.
10709 Move call to observer_attach_inferior_exit up, grouping it
10710 with the other observer registrations inside this function.
10711 Rename command to be more general. Add call to
10712 register_program_space_data_with_cleanup.
10714 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10716 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10717 ada_new_objfile_observer.
10718 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10719 (_initialize_tasks): Update uses of ada_new_objfile_observer
10720 and ada_tasks_normal_stop_observer.
10722 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10724 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10725 returned by the 'Length attribute to integer.
10727 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10729 * ada-lang.c (_initialize_ada_language): Initialize
10730 cache_space obstack.
10732 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10734 * ada-lang.c (HASH_SIZE): New macro.
10735 (struct cache_entry): New type.
10736 (cache_space, cache): New static globals.
10737 (ada_clear_symbol_cache, find_entry): New functions.
10738 (lookup_cached_symbol, cache_symbol): Implement.
10739 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10740 (_initialize_ada_language): Attach ada_new_objfile_observer
10741 and ada_free_objfile_observer.
10743 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10745 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10746 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10747 struct block * parameter.
10748 (ada_lookup_symbol_list_worker): Constify local variable "block".
10749 Remove cast which is no longer necessary.
10751 2014-02-10 Doug Evans <xdje42@gmail.com>
10753 Add Guile as an extension language.
10754 * NEWS: Mention Guile scripting.
10755 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10756 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10757 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10758 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10759 (CLIBS): Add GUILE_LIBS.
10760 (install-guile): New rule.
10761 (guile.o): New rule.
10762 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10763 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10764 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10765 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10766 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10767 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10768 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10769 * configure.ac: New option --with-guile.
10770 * configure: Regenerate.
10771 * config.in: Regenerate.
10772 * auto-load.c: Remove #include "python/python.h". Add #include
10773 "gdb/section-scripts.h".
10774 (source_section_scripts): Handle Guile scripts.
10775 (_initialize_auto_load): Add name of Guile objfile script to
10776 scripts-directory help text.
10777 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10778 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10779 (struct breakpoint): New member scm_bp_object.
10780 * defs.h (enum command_control_type): New value guile_control.
10781 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10783 (show_user): Update comment.
10784 (_initialize_cli_cmds): Update help text for "show user". Update help
10785 text for max-user-call-depth.
10786 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10788 (multi_line_command_p): Add guile_control.
10789 (print_command_lines): Handle guile_control.
10790 (execute_control_command, recurse_read_control_structure): Ditto.
10791 (process_next_line): Recognize "guile" commands.
10792 * disasm.c (gdb_disassemble_info): Make non-static.
10793 * disasm.h: #include "dis-asm.h".
10794 (struct gdbarch): Add forward decl.
10795 (gdb_disassemble_info): Declare.
10796 * extension.c: #include "guile/guile.h".
10797 (extension_languages): Add guile.
10798 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10799 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10800 * gdbtypes.c (get_unsigned_type_max): New function.
10801 (get_signed_type_minmax): New function.
10802 * gdbtypes.h (get_unsigned_type_max): Declare.
10803 (get_signed_type_minmax): Declare.
10804 * guile/README: New file.
10805 * guile/guile-internal.h: New file.
10806 * guile/guile.c: New file.
10807 * guile/guile.h: New file.
10808 * guile/scm-arch.c: New file.
10809 * guile/scm-auto-load.c: New file.
10810 * guile/scm-block.c: New file.
10811 * guile/scm-breakpoint.c: New file.
10812 * guile/scm-disasm.c: New file.
10813 * guile/scm-exception.c: New file.
10814 * guile/scm-frame.c: New file.
10815 * guile/scm-gsmob.c: New file.
10816 * guile/scm-iterator.c: New file.
10817 * guile/scm-lazy-string.c: New file.
10818 * guile/scm-math.c: New file.
10819 * guile/scm-objfile.c: New file.
10820 * guile/scm-ports.c: New file.
10821 * guile/scm-pretty-print.c: New file.
10822 * guile/scm-safe-call.c: New file.
10823 * guile/scm-string.c: New file.
10824 * guile/scm-symbol.c: New file.
10825 * guile/scm-symtab.c: New file.
10826 * guile/scm-type.c: New file.
10827 * guile/scm-utils.c: New file.
10828 * guile/scm-value.c: New file.
10829 * guile/lib/gdb.scm: New file.
10830 * guile/lib/gdb/boot.scm: New file.
10831 * guile/lib/gdb/experimental.scm: New file.
10832 * guile/lib/gdb/init.scm: New file.
10833 * guile/lib/gdb/iterator.scm: New file.
10834 * guile/lib/gdb/printing.scm: New file.
10835 * guile/lib/gdb/types.scm: New file.
10836 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10837 (VPATH): Add $(GUILE_SRCDIR).
10838 (GUILE_DIR): New variable.
10839 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10840 (all): Add stamp-guile dependency.
10841 (stamp-guile): New rule.
10842 (clean-guile, install-guile, uninstall-guile): New rules.
10843 (install-only): Add install-guile dependency.
10844 (uninstall): Add uninstall-guile dependency.
10845 (clean): Add clean-guile dependency.
10847 2014-02-09 Doug Evans <xdje42@gmail.com>
10849 Revert this patch (which I approved, mea culpa).
10851 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10853 * Makefile.in (all-lib): Remove.
10854 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10856 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10858 Fix Python stack corruption.
10859 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10862 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10864 * Makefile.in (all-lib): Remove.
10865 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10867 2014-02-07 Doug Evans <dje@google.com>
10869 * extension-priv.h (extension_language_script_ops): Add comment.
10870 (extension_language_ops): Add comment.
10871 (active_ext_lang_state): Fix typo in comment.
10873 2014-02-07 Pedro Alves <palves@redhat.com>
10875 PR breakpoints/16292
10876 * infrun.c (handle_signal_stop) <signal arrives while stepping
10877 over a breakpoint>: Switch back to the stepping thread.
10879 2014-02-07 Yao Qi <yao@codesourcery.com>
10881 * target.c (target_xfer_partial): Return zero if LEN is zero.
10883 2014-02-07 Yao Qi <yao@codesourcery.com>
10885 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10886 (ld_so_xfer_auxv): Likewise.
10887 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10888 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10889 * corelow.c (core_xfer_partial): Likewise.
10890 * ctf.c (ctf_xfer_partial): Likewise.
10891 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10892 (darwin_xfer_partial): Likewise.
10893 * exec.c (exec_xfer_partial): Likewise.
10894 * gnu-nat.c (gnu_xfer_partial): Likewise.
10895 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10896 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10897 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10898 * linux-nat.c (linux_xfer_siginfo): Likewise.
10899 (linux_proc_xfer_spu): Likewise.
10900 * procfs.c (procfs_xfer_partial): Likewise.
10901 * record-full.c (record_full_xfer_partial): Likewise.
10902 (record_full_core_xfer_partial): Likewise.
10903 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10904 * remote.c (remote_write_qxfer): Likewise.
10905 (remote_write_qxfer, remote_read_qxfer): Likewise.
10906 (remote_xfer_partial): Likewise.
10907 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10908 (rs6000_xfer_shared_libraries): Likewise.
10909 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10910 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10911 (spu_xfer_partial): Likewise.
10912 * target.c (memory_xfer_partial_1): Likewise.
10913 * tracepoint.c (tfile_xfer_partial): Likewise.
10914 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10915 (windows_xfer_partial): Likewise.
10917 2014-02-07 Yao Qi <yao@codesourcery.com>
10919 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10921 (core_xfer_shared_libraries_aix): Likewise.
10922 * gdbarch.c, gdbarch.h: Regenerated.
10923 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10924 ULONGEST. Change 'len_avail' type to ULONGEST.
10925 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10926 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10928 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10930 2014-02-07 Yao Qi <yao@codesourcery.com>
10932 * corefile.c (memory_error): Get 'exception' from ERR and pass
10933 'exception' to throw_error.
10935 2014-02-06 Doug Evans <xdje42@gmail.com>
10937 * configure.ac (libpython checking): Remove all but python.o from
10938 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10939 * configure: Regenerate.
10941 * Makefile.in (SFILES): Add extension.c.
10942 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10943 (COMMON_OBS): Add extension.o.
10944 * extension.h: New file.
10945 * extension-priv.h: New file.
10946 * extension.c: New file.
10948 * python/python-internal.h: #include "extension.h".
10949 (gdbpy_auto_load_enabled): Declare.
10950 (gdbpy_apply_val_pretty_printer): Declare.
10951 (gdbpy_apply_frame_filter): Declare.
10952 (gdbpy_preserve_values): Declare.
10953 (gdbpy_breakpoint_cond_says_stop): Declare.
10954 (gdbpy_breakpoint_has_cond): Declare.
10955 (void source_python_script_for_objfile): Delete.
10956 * python/python.c: #include "extension-priv.h".
10957 Delete inclusion of "observer.h".
10958 (extension_language_python): Moved here and renamed from
10959 script_language_python in py-auto-load.c.
10960 Redefined to be of type extension_language_defn.
10961 (python_extension_script_ops): New global.
10962 (python_extension_ops): New global.
10963 (struct python_env): New member previous_active.
10964 (restore_python_env): Call restore_active_ext_lang.
10965 (ensure_python_env): Call set_active_ext_lang.
10966 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10968 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10970 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10972 (gdbpy_eval_from_control_command): Renamed from
10973 eval_python_from_control_command, made static. New arg extlang.
10974 (gdbpy_source_script) Renamed from source_python_script, made static.
10976 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10977 result to int. New arg extlang.
10978 (gdbpy_source_objfile_script): Renamed from
10979 source_python_script_for_objfile, made static. New arg extlang.
10980 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10981 static. New args extlang, extlang_printers. Change result type to
10983 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10984 static. New arg extlang. Rename arg printers to extlang_printers
10985 and change type to ext_lang_type_printers *.
10986 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10987 static. Replace argument arg with extlang, extlang_printers.
10988 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10989 (!HAVE_PYTHON, source_python_script): Delete.
10990 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10991 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10992 (!HAVE_PYTHON, start_type_printers): Delete.
10993 (!HAVE_PYTHON, apply_type_printers): Delete.
10994 (!HAVE_PYTHON, free_type_printers): Delete.
10995 (_initialize_python): Delete call to observer_attach_before_prompt.
10996 (finalize_python): Set/restore active extension language.
10997 (gdbpy_finish_initialization) Renamed from
10998 finish_python_initialization, made static. New arg extlang.
10999 (gdbpy_initialized): New function.
11000 * python/python.h: #include "extension.h". Delete #include
11001 "value.h", "mi/mi-cmds.h".
11002 (extension_language_python): Declare.
11003 (GDBPY_AUTO_FILE_NAME): Delete.
11004 (enum py_bt_status): Moved to extension.h and renamed to
11005 ext_lang_bt_status.
11006 (enum frame_filter_flags): Moved to extension.h.
11007 (enum py_frame_args): Moved to extension.h and renamed to
11008 ext_lang_frame_args.
11009 (finish_python_initialization): Delete.
11010 (eval_python_from_control_command): Delete.
11011 (source_python_script): Delete.
11012 (apply_val_pretty_printer): Delete.
11013 (apply_frame_filter): Delete.
11014 (preserve_python_values): Delete.
11015 (gdbpy_script_language_defn): Delete.
11016 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11017 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11019 * auto-load.c: #include "extension.h".
11020 (GDB_AUTO_FILE_NAME): Delete.
11021 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11022 (script_language_gdb): Delete, moved to extension.c and renamed to
11023 extension_language_gdb.
11024 (source_gdb_script_for_objfile): Delete.
11025 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11026 (loaded_script): Change type of language member to
11027 struct extension_language_defn *.
11028 (init_loaded_scripts_info): Initialize
11029 unsupported_script_warning_printed.
11030 (maybe_add_script): Make static. Change type of language arg to
11031 struct extension_language_defn *.
11032 (clear_section_scripts): Reset unsupported_script_warning_printed.
11033 (auto_load_objfile_script_1): Rewrite to use extension language API.
11034 (auto_load_objfile_script): Make public. Remove support-compiled-in
11035 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11036 (source_section_scripts): Rewrite to use extension language API.
11037 (load_auto_scripts_for_objfile): Rewrite to use
11038 auto_load_scripts_for_objfile.
11039 (collect_matching_scripts_data): Change type of language member to
11040 struct extension_language_defn *.
11041 (auto_load_info_scripts): Change type of language arg to
11042 struct extension_language_defn *.
11043 (unsupported_script_warning_print): New function.
11044 (script_not_found_warning_print): Make static.
11045 (_initialize_auto_load): Rewrite construction of scripts-directory
11047 * auto-load.h (struct objfile): Add forward decl.
11048 (struct script_language): Delete.
11049 (struct auto_load_pspace_info): Add forward decl.
11050 (struct extension_language_defn): Add forward decl.
11051 (maybe_add_script): Delete.
11052 (auto_load_objfile_script): Declare.
11053 (script_not_found_warning_print): Delete.
11054 (auto_load_info_scripts): Update prototype.
11055 (auto_load_gdb_scripts_enabled): Declare.
11056 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11057 auto_load_python_scripts_enabled and made public.
11058 (script_language_python): Delete, moved to python.c.
11059 (gdbpy_script_language_defn): Delete.
11060 (info_auto_load_python_scripts): Update to use
11061 extension_language_python.
11063 * breakpoint.c (condition_command): Replace call to
11064 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11065 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11066 with call to breakpoint_ext_lang_cond_says_stop.
11067 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11068 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11069 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11070 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11072 (local_setattro): Print name of extension language with existing
11075 * valprint.c (val_print, value_print): Update to call
11076 apply_ext_lang_val_pretty_printer.
11077 * cp-valprint.c (cp_print_value): Update call to
11078 apply_ext_lang_val_pretty_printer.
11079 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11080 (gdbpy_apply_val_pretty_printer): Renamed from
11081 apply_val_pretty_printer. New arg extlang.
11082 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11084 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11085 extension language API.
11086 * cli/cli-script.c (execute_control_command): Update to call
11087 eval_ext_lang_from_control_command.
11089 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11090 enum ext_lang_bt_status values. Update call to
11091 apply_ext_lang_frame_filter.
11092 (mi_cmd_stack_list_locals): Ditto.
11093 (mi_cmd_stack_list_args): Ditto.
11094 (mi_cmd_stack_list_variables): Ditto.
11095 * mi/mi-main.c: Delete #include "python/python-internal.h".
11096 Add #include "extension.h".
11097 (mi_cmd_list_features): Replace reference to python internal variable
11098 gdb_python_initialized with call to ext_lang_initialized_p.
11100 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11101 Update to use enum ext_lang_frame_args. Update to call
11102 apply_ext_lang_frame_filter.
11103 * python/py-framefilter.c (extract_sym): Update to use enum
11104 ext_lang_bt_status.
11105 (extract_value, py_print_type, py_print_value): Ditto.
11106 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11107 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11108 (py_print_frame): Ditto.
11109 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11110 New arg extlang. Update to use enum ext_lang_bt_status.
11112 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11113 finish_python_initialization. Replace with call to
11114 finish_ext_lang_initialization.
11116 * typeprint.c (do_free_global_table): Update to call
11117 free_ext_lang_type_printers.
11118 (create_global_typedef_table): Update to call
11119 start_ext_lang_type_printers.
11120 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11121 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11122 (type_print_options): Change type of global_printers from "void *"
11123 to "struct ext_lang_type_printers *".
11125 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11126 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11127 (gdbpy_preserve_values): Renamed from preserve_python_values.
11129 (!HAVE_PYTHON, preserve_python_values): Delete.
11131 * utils.c (quit_flag): Delete, moved to extension.c.
11132 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11135 * eval.c: Delete #include "python/python.h".
11136 * main.c: Delete #include "python/python.h".
11138 * defs.h: Update comment.
11140 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11144 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11146 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11149 2014-02-05 Yao Qi <yao@codesourcery.com>
11151 * remote.c (remote_pass_signals): Remove local 'buf' and use
11153 (remote_program_signals): Likewise.
11155 2014-02-05 Yao Qi <yao@codesourcery.com>
11157 * ctf.c: Include "inferior.h" and "gdbthread.h".
11158 (CTF_PID): A new macro.
11159 (ctf_open): Call inferior_appeared and add_thread_silent.
11160 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11161 (ctf_thread_alive): New function.
11162 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11164 2014-02-05 Yao Qi <yao@codesourcery.com>
11168 2013-05-24 Yao Qi <yao@codesourcery.com>
11170 * tracepoint.c (TFILE_PID): Remove.
11171 (tfile_open): Don't add thread and inferior.
11172 (tfile_close): Don't set 'inferior_ptid'. Don't call
11173 exit_inferior_silent.
11174 (tfile_thread_alive): Remove.
11175 (init_tfile_ops): Don't set field 'to_thread_alive' of
11178 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11180 * remote.c (remote_start_remote): Call remote_check_symbols even
11181 if only symbol-file (not file) has been given.
11183 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11185 * gdbarch.sh (skip_entrypoint): New callback.
11186 * gdbarch.c, gdbarch.h: Regenerate.
11187 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11188 * infrun.c (fill_in_stop_func): Likewise.
11189 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11190 (ppc_elfv2_elf_make_msymbol_special): New function.
11191 (ppc_elfv2_skip_entrypoint): Likewise.
11192 (ppc_linux_init_abi): Install them for ELFv2.
11194 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11196 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11197 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11198 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11199 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11200 structures returned in GPRs.
11202 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11204 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11205 offset to the stack parameter list for the ELFv2 ABI.
11207 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11209 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11210 set_gdbarch_convert_from_func_ptr_addr and
11211 set_gdbarch_elf_make_msymbol_special for ELFv1.
11212 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11213 function descriptors on ELFv1.
11214 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11215 set up r12 at function entry.
11217 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11219 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11220 (struct gdbarch_tdep): New member elf_abi.
11222 * rs6000-tdep.c: Include "elf/ppc64.h".
11223 (rs6000_gdbarch_init): Detect ELF ABI version.
11225 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11227 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11228 within a register pair holding a DFP 128-bit value on little-endian.
11229 (ppc64_sysv_abi_return_value_base): Likewise.
11230 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11231 (dfp_pseudo_register_write): Likewise.
11233 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11235 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11236 offset on little-endian when passing _Decimal32.
11237 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11239 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11241 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11242 of the overlapped FP register within the VSX register on little-
11244 (efpr_pseudo_register_write): Likewise.
11246 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11248 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11249 offset on little-endian when passing small structures.
11251 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11253 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11254 (struct ppc64_sysv_argpos): New data structure.
11255 (ppc64_sysv_abi_push_float): Remove.
11256 (ppc64_sysv_abi_push_val): New function.
11257 (ppc64_sysv_abi_push_integer): Likewise.
11258 (ppc64_sysv_abi_push_freg): Likewise.
11259 (ppc64_sysv_abi_push_vreg): Likewise.
11260 (ppc64_sysv_abi_push_param): Likewise.
11261 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11262 (ppc64_sysv_abi_return_value_base): New function.
11263 (ppc64_sysv_abi_return_value): Refactor to use it.
11265 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11267 * NEWS: Document new target powerpc64le-*-linux*.
11269 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11271 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11272 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11274 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11275 register set used in ELF core dumps. Add floating-point register set.
11277 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11279 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11280 dwarf2_to_gdb[] table using symbolic constants. Adjust
11281 penultimate entry from number representing the PC register
11282 to symbolic constant representing the MDR register. Add
11283 constant for the PC register to the end of the table.
11285 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11287 * bsd-kvm.c: Include <sys/param.h>
11289 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11291 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11293 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11295 * ada-lang.h (clear_ada_sym_cache): Delete.
11297 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11299 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11301 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11303 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11304 the sigreturn register save area only if the syscall is
11307 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11309 * valops.c (value_slice): Minor reformatting.
11311 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11313 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11315 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11317 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11318 New static globals.
11319 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11320 (ada_ignore_descriptive_types_p): New static global.
11321 (find_parallel_type_by_descriptive_type): Return immediately
11322 if ada_ignore_descriptive_types_p is set.
11323 (_initialize_ada_language): Register new commands "maintenance
11324 set ada", "maintenance show ada", "maintenance set ada
11325 ignore-descriptive-types" and "maintenance show ada
11326 ignore-descriptive-types".
11327 * NEWS: Add entry for new "maint ada set/show
11328 ignore-descriptive-types" commands.
11330 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11332 * record-btrace.c (record_btrace_close): Call btrace_teardown
11335 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11337 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11340 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11342 * ada-typeprint (type_is_full_subrange_of_target_type):
11344 (print_range): Add parameter bounds_prefered_p. If not set,
11345 try printing range types using the name of their base type.
11346 (print_range_type): Add parameter bounds_prefered_p.
11347 Use it in call to print_range.
11348 (print_array_type, ada_print_type): Update calls to print_range
11349 and print_range_type.
11351 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11353 * ada-typeprint.c (print_array_type, print_choices, print_range)
11354 (print_range_bound, print_dynamic_range_bound, print_range_type):
11355 Remove declaration.
11357 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11359 * ada-typeprint.c (print_range): Add missing empty line
11360 after local declaration.
11362 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11364 * ada-valprint.c (print_optional_low_bound): Get index_type's
11365 target type for as long as it is a TYPE_CODE_RANGE.
11367 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11369 * procfs.c (procfs_make_note_section): Remove assertion and
11370 associated comment.
11372 2014-01-24 Yao Qi <yao@codesourcery.com>
11374 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11375 * corelow.c (get_core_siginfo): Likewise.
11377 2014-01-24 Yao Qi <yao@codesourcery.com>
11379 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11380 ULONGEST. Don't check 'len' is negative.
11381 (remote_write_bytes): Change type of 'len' to ULONGEST.
11383 2014-01-23 Tom Tromey <tromey@redhat.com>
11386 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11387 Handle exception from frame.block.
11388 (FrameVars.fetch_frame_locals): Likewise.
11390 2014-01-23 Tom Tromey <tromey@redhat.com>
11393 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11394 on a NULL pointer. Move "goto error" to correct place.
11396 2014-01-23 Tom Tromey <tromey@redhat.com>
11399 * python/py-framefilter.c (apply_frame_filter): Call
11400 ensure_python_env after computing gdbarch.
11402 2014-01-23 Yao Qi <yao@codesourcery.com>
11404 * target.c (raw_memory_xfer_partial): Change argument type
11405 from void * to gdb_byte *.
11406 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11408 2014-01-22 Doug Evans <dje@google.com>
11410 New gdbserver option --debug-format=timestamp.
11411 * NEWS: Mention it.
11413 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11415 * syscalls/s390x-linux.xml: New file.
11416 * syscalls/s390-linux.xml: New file.
11417 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11418 (XML_SYSCALL_FILENAME_S390X): Likewise.
11419 (op_svc): New enum value for SVC opcode.
11420 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11421 (s390_linux_get_syscall_number): New function.
11422 (s390_gdbarch_init): Register '*get_syscall_number' and the
11423 syscall xml file name.
11424 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11425 "s390-linux.xml" and "s390x-linux.xml".
11426 * NEWS: Announce new feature.
11428 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11430 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11432 2014-01-22 Pedro Alves <palves@redhat.com>
11434 * xtensa-config.c: Include defs.h.
11436 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11438 * common/common-utils.h: Add "ARI:" comment beside __func__
11441 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11443 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11444 documentation a bit.
11446 2014-01-21 Roland McGrath <mcgrathr@google.com>
11448 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11449 * configure: Regenerate.
11450 * aclocal.m4: Regenerate.
11451 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11452 New substituted variables.
11453 (install-strip): New target.
11454 (INSTALL_SCRIPT): New substituted variable.
11455 (FLAGS_TO_PASS): Add it.
11456 (install-only): Use $(INSTALL_SCRIPT) rather than
11457 $(INSTALL_PROGRAM) for gcore.
11459 2014-01-20 Tom Tromey <tromey@redhat.com>
11461 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11464 2014-01-20 Tom Tromey <tromey@redhat.com>
11466 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11467 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11468 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11469 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11470 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11471 (struct cmd_list_element) <flags>: Remove.
11472 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11473 doc_allocated>: New fields.
11474 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11476 * maint.c (maintenance_do_deprecate): Update.
11477 * top.c (execute_command): Update.
11479 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11481 * xtensa-linux-nat.c: Include asm/ptrace.h.
11483 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11485 * Makefile.in (SFILES): Add d-support.c.
11486 (COMMON_OBS): Add d-support.o.
11487 * d-lang.h (d_parse_symbol): Add comment, now defined in
11489 * d-lang.c (parse_call_convention)
11490 (parse_attributes, parse_function_types)
11491 (parse_function_args, parse_type, parse_identifier)
11492 (call_convention_p, d_parse_symbol): Move functions to ...
11493 * d-support.c: ... New file.
11495 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11497 * d-lang.h (d_parse_symbol): Add declaration.
11498 * d-lang.c (extract_identifiers)
11499 (extract_type_info): Remove functions.
11500 (parse_call_convention, parse_attributes)
11501 (parse_function_types, parse_function_args)
11502 (parse_type, parse_identifier, call_convention_p)
11503 (d_parse_symbol): New functions.
11504 (d_demangle): Use d_parse_symbol to demangle D symbols.
11506 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11508 * d-lang.h (struct builtin_d_type): New data type.
11509 (builtin_d_type): Add declaration.
11510 * d-lang.c (d_language_arch_info, build_d_types)
11511 (builtin_d_type): New functions.
11512 (enum d_primitive_types): New data type.
11513 (d_language_defn): Change c_language_arch_info to
11514 d_language_arch_info.
11515 (d_type_data): New static variable.
11516 (_initialize_d_language): Initialize d_type_data.
11518 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11520 * d-lang.h (d_main_name): Add declaration.
11521 * d-lang.c (d_main_name): New function.
11522 * symtab.c (find_main_name): Add call to d_main_name.
11524 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11526 * d-lang.c (d_language_defn): Change macro_expansion_c to
11527 macro_expansion_no.
11529 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11531 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11533 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11535 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11536 gdb_exception" declaration.
11537 * remote.c (getpkt_or_notif_sane): Likewise.
11539 2014-01-17 Doug Evans <dje@google.com>
11541 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11542 function, contents of dirnames_to_char_ptr_vec_append moved here.
11543 (delim_string_to_char_ptr_vec): New function.
11544 (dirnames_to_char_ptr_vec_append): Rewrite.
11545 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11547 2014-01-17 Doug Evans <dje@google.com>
11549 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11551 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11552 #include "common-utils.h".
11553 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11554 * common/vec.h (VEC_ASSERT_PASS): Update.
11555 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11556 (MACH_CHECK_ERROR): Update.
11558 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11560 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11562 * gdbarch.h: Regenerate.
11564 2014-01-16 Tom Tromey <tromey@redhat.com>
11566 * value.c (struct value) <regnum>: Move earlier.
11568 2014-01-16 Tom Tromey <tromey@redhat.com>
11570 * remote.c (extended_remote_create_inferior): Rename from
11571 extended_remote_create_inferior_1. Add "ops" argument. Remove
11572 old implementation.
11574 2014-01-16 Pedro Alves <palves@redhat.com>
11576 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11577 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11580 2014-01-16 Doug Evans <dje@google.com>
11582 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11584 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11586 * btrace.h (btrace_thread_flag): New.
11587 (struct btrace_thread_info) <flags>: New.
11588 * record-btrace.c (record_btrace_resume_thread)
11589 (record_btrace_find_thread_to_move, btrace_step_no_history)
11590 (btrace_step_stopped, record_btrace_start_replaying)
11591 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11592 (record_btrace_find_resume_thread): New.
11593 (record_btrace_resume, record_btrace_wait): Extend.
11594 (record_btrace_can_execute_reverse): New.
11595 (record_btrace_open): Fail in non-stop mode.
11596 (record_btrace_set_replay): Split into this, ...
11597 (record_btrace_stop_replaying): ... this, ...
11598 (record_btrace_clear_histories): ... and this.
11599 (init_record_btrace_ops): Init to_can_execute_reverse.
11600 * NEWS: Announce it.
11602 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11604 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11605 (forward_target_decr_pc_after_break)
11606 (target_decr_pc_after_break): New.
11607 * target.c (forward_target_decr_pc_after_break)
11608 (target_decr_pc_after_break): New.
11609 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11610 instead of gdbarch_decr_pc_after_break.
11611 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11612 instead of gdbarch_decr_pc_after_break.
11613 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11614 instead of gdbarch_decr_pc_after_break.
11615 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11616 instead of gdbarch_decr_pc_after_break.
11617 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11618 instead of gdbarch_decr_pc_after_break.
11619 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11620 instead of gdbarch_decr_pc_after_break.
11622 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11624 * btrace.c: Include regcache.h.
11625 (btrace_add_pc): New.
11626 (btrace_enable): Call btrace_add_pc.
11627 (btrace_is_empty): New.
11628 * btrace.h (btrace_is_empty): New.
11629 * record-btrace.c (require_btrace, record_btrace_info): Call
11632 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11634 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11635 Support delta reads.
11636 (linux_disable_btrace): Change return type.
11637 * common/linux-btrace.h (linux_read_btrace): Change parameters
11638 and return type to allow error reporting. Update users.
11639 (linux_disable_btrace): Change return type. Update users.
11640 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11642 (btrace_error): New.
11643 (btrace_block) <begin>: Comment on BEGIN == 0.
11644 * btrace.c (btrace_compute_ftrace): Start from the end of
11646 (btrace_stitch_trace, btrace_clear_history): New.
11647 (btrace_fetch): Read delta trace, return if replaying.
11648 (btrace_clear): Move clear history code to btrace_clear_history.
11649 (parse_xml_btrace): Throw an error if parsing failed.
11650 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11651 and return type to allow error reporting.
11652 (target_read_btrace): Change parameters and return type to allow
11654 * target.c (target_read_btrace): Update.
11655 * remote.c (remote_read_btrace): Support delta reads. Pass
11657 * NEWS: Announce it.
11659 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11661 * record.h (record_btrace_frame_unwind)
11662 (record_btrace_tailcall_frame_unwind): New declarations.
11663 * dwarf2-frame: Include record.h
11664 (dwarf2_frame_cfa): Throw an error for btrace frames.
11665 * record-btrace.c: Include hashtab.h.
11666 (btrace_get_bfun_name): New.
11667 (btrace_call_history): Call btrace_get_bfun_name.
11668 (struct btrace_frame_cache): New.
11670 (bfcache_hash, bfcache_eq, bfcache_new): New.
11671 (btrace_get_frame_function): New.
11672 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11673 (record_btrace_frame_this_id): Compute own id.
11674 (record_btrace_frame_prev_register): Provide PC, throw_error
11675 for all other registers.
11676 (record_btrace_frame_sniffer): Detect btrace frames.
11677 (record_btrace_tailcall_frame_sniffer): New.
11678 (record_btrace_frame_dealloc_cache): New.
11679 (record_btrace_frame_unwind): Add new functions.
11680 (record_btrace_tailcall_frame_unwind): New.
11681 (_initialize_record_btrace): Allocate cache.
11682 * btrace.c (btrace_clear): Call reinit_frame_cache.
11683 * NEWS: Announce it.
11685 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11687 * record-btrace.c (record_btrace_set_replay)
11688 (record_btrace_goto_begin, record_btrace_goto_end)
11689 (record_btrace_goto): New.
11690 (init_record_btrace_ops): Initialize them.
11691 * NEWS: Announce it.
11693 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11695 * record-btrace.c (record_btrace_find_new_threads)
11696 (record_btrace_thread_alive): New.
11697 (init_record_btrace_ops): Initialize to_find_new_threads and
11700 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11702 * record-btrace.c (record_btrace_resume): New.
11703 (record_btrace_wait): New.
11704 (init_record_btrace_ops): Initialize to_wait and to_resume.
11706 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11708 * record-btrace.c (record_btrace_xfer_partial)
11709 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11710 (record_btrace_allow_memory_access): New.
11711 (init_record_btrace_ops): Initialize new methods.
11712 * target.c (raw_memory_xfer_partial): Bail out if target reports
11713 that this memory is not available.
11715 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11717 * target.h (target_ops) <to_insert_breakpoint>
11718 <to_remove_breakpoint>: Add target_ops parameter.
11719 (forward_target_insert_breakpoint): New.
11720 (forward_target_remove_breakpoint): New.
11721 (memory_remove_breakpoint, memory_insert_breakpoint):
11722 Add target_ops parameter.
11723 * target.c (target_insert_breakpoint): Split into this and ...
11724 (forward_target_insert_breakpoint): ... this.
11725 (target_remove_breakpoint): Split into this and ...
11726 (forward_target_remove_breakpoint): ... this.
11727 (debug_to_insert_breakpoint): Add target_ops parameter.
11728 Call forward_target_insert_breakpoint.
11729 (debug_to_remove_breakpoint): Add target_ops parameter.
11730 Call forward_target_remove_breakpoint.
11731 (update_current_target): Do not inherit or default to_insert_breakpoint
11732 and to_remove_breakpoint.
11733 * corelow.c (ignore): Add target_ops parameter.
11734 * exec.c (ignore): Add target_ops parameter.
11735 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11736 Add target_ops parameter.
11737 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11738 Add target_ops parameter.
11739 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11740 Add target_ops parameter.
11741 * record-full.c (record_full_beneath_to_insert_breakpoint)
11742 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11743 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11744 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11745 (record_full_core_remove_breakpoint): Add target_ops parameter.
11747 (record_full_beneath_to_insert_breakpoint_ops)
11748 (record_full_beneath_to_remove_breakpoint_ops)
11749 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11750 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11751 tmp_to_remove_breakpoint_ops,
11752 record_full_beneath_to_insert_breakpoint_ops, and
11753 record_full_beneath_to_remove_breakpoint_ops.
11754 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11755 (m32r_remove_breakpoint): Add target_ops parameter.
11756 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11757 Add target_ops parameter.
11758 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11759 Add target_ops parameter.
11761 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11762 Markus Metzger <markus.t.metzger@intel.com>
11764 * record-btrace.c: Include frame-unwind.h.
11765 (record_btrace_frame_unwind_stop_reason)
11766 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11767 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11769 (init_record_btrace_ops): Install it.
11771 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11773 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11776 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11778 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11781 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11783 * frame-unwind.c: Include target.h.
11784 (frame_unwind_try_unwinder): New function with code from ...
11785 (frame_unwind_find_by_frame): ... here. New variable
11786 unwinder_from_target, call also target_get_unwinder)
11787 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11788 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11789 * target.h (struct target_ops): New fields to_get_unwinder and
11790 to_get_tailcall_unwinder.
11791 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11793 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11795 * record-btrace.c (record_btrace_fetch_registers)
11796 (record_btrace_store_registers)
11797 (record_btrace_to_prepare_to_store): New.
11798 (init_record_btrace_ops): Add the above.
11800 2014-01-16 Tom Tromey <tromey@redhat.com>
11802 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11803 * target.h (struct target_ops) <to_prepare_to_store>: Add
11805 (target_prepare_to_store): Add argument.
11806 * target.c (debug_to_prepare_to_store): Add argument.
11807 (update_current_target): Update.
11808 * remote.c (remote_prepare_to_store): Add 'self' argument.
11809 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11810 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11811 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11812 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11814 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11815 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11816 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11817 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11818 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11820 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11822 * btrace.h (replay) <replay>: New.
11823 (btrace_is_replaying): New.
11824 * btrace.c (btrace_clear): Free replay iterator.
11825 (btrace_is_replaying): New.
11826 * record-btrace.c (record_btrace_is_replaying): New.
11827 (record_btrace_info): Print insn number if replaying.
11828 (record_btrace_insn_history): Start at replay position.
11829 (record_btrace_call_history): Start at replay position.
11830 (init_record_btrace_ops): Init to_record_is_replaying.
11832 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11834 * record-btrace.c (record_btrace_insn_history_range): Include
11836 (record_btrace_insn_history_from): Adjust range.
11837 (record_btrace_call_history_range): Include
11839 (record_btrace_call_history_from): Adjust range.
11840 * NEWS: Announce changes.
11842 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11844 * record.h (enum record_print_flag)
11845 <record_print_indent_calls>: New.
11846 * record.c (get_call_history_modifiers): Recognize /c modifier.
11847 (_initialize_record): Document /c modifier.
11848 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11849 Reorder fields. Optionally indent the function name. Update
11851 * NEWS: Announce changes.
11853 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11855 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11857 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11859 * btrace.c (ftrace_new_function): Start counting at one.
11860 * record-btrace.c (record_btrace_info): Adjust number of calls
11862 * NEWS: Announce it.
11864 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11866 * record-btrace.c (btrace_call_history_insn_range): Print
11867 insn range as [begin, end].
11869 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11871 * btrace.h (struct btrace_func_link): New.
11872 (enum btrace_function_flag): New.
11873 (struct btrace_inst): Rename to ...
11874 (struct btrace_insn): ...this. Update all users.
11875 (struct btrace_func) <ibegin, iend>: Remove.
11876 (struct btrace_func_link): New.
11877 (struct btrace_func): Rename to ...
11878 (struct btrace_function): ...this. Update all users.
11879 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11880 (number, level, flags>: New.
11881 (struct btrace_insn_iterator): Rename to ...
11882 (struct btrace_insn_history): ...this.
11884 (struct btrace_insn_iterator, btrace_call_iterator): New.
11885 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11886 (struct btrace_target_info) <begin, end, level>
11887 <insn_history, call_history>: New.
11888 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11889 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11890 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11891 (btrace_call_number, btrace_call_begin, btrace_call_end)
11892 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11893 (btrace_find_function_by_number, btrace_set_insn_history)
11894 (btrace_set_call_history): New.
11895 * btrace.c (btrace_init_insn_iterator)
11896 (btrace_init_func_iterator, compute_itrace): Remove.
11897 (ftrace_print_function_name, ftrace_print_filename)
11898 (ftrace_skip_file): Change
11899 parameter to const.
11900 (ftrace_init_func): Remove.
11901 (ftrace_debug): Use new btrace_function fields.
11902 (ftrace_function_switched): Also consider gaining and
11903 losing symbol information).
11904 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11905 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11906 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11908 (ftrace_new_function): Move. Remove debug print.
11909 (ftrace_update_lines, ftrace_update_insns): New.
11910 (ftrace_update_function): Check for call, ret, and jump.
11911 (compute_ftrace): Renamed to ...
11912 (btrace_compute_ftrace): ...this. Rewritten to compute call
11914 (btrace_fetch, btrace_clear): Updated.
11915 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11916 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11917 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11918 (btrace_call_number, btrace_call_begin, btrace_call_end)
11919 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11920 (btrace_find_function_by_number, btrace_set_insn_history)
11921 (btrace_set_call_history): New.
11922 * record-btrace.c (require_btrace): Use new btrace thread
11924 (record_btrace_info, btrace_insn_history)
11925 (record_btrace_insn_history, record_btrace_insn_history_range):
11926 Use new btrace thread info fields and new iterator.
11927 (btrace_func_history_src_line): Rename to ...
11928 (btrace_call_history_src_line): ...this. Use new btrace
11929 thread info fields.
11930 (btrace_func_history): Rename to ...
11931 (btrace_call_history): ...this. Use new btrace thread info
11932 fields and new iterator.
11933 (record_btrace_call_history, record_btrace_call_history_range):
11934 Use new btrace thread info fields and new iterator.
11936 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11938 * frame.h (frame_id_build_unavailable_stack_special): New.
11939 * frame.c (frame_id_build_unavailable_stack_special): New.
11941 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11943 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11944 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11945 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11947 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11948 (i386_insn_is_jump, i386_jmp_p): New.
11949 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11950 insn_is_jump to gdbarch.
11951 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11952 * gdbarch.h: Regenerated.
11953 * gdbarch.c: Regenerated.
11954 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11955 (default_insn_is_jump): New.
11956 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11957 (default_insn_is_jump): New.
11959 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11961 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11963 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11964 (btrace_read_type) <btrace_read_new>: Change to ...
11965 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11967 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11969 * common/linux-btrace.c (linux_read_btrace): Free trace from
11970 previous iteration.
11972 2014-01-15 Doug Evans <dje@google.com>
11974 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11977 2014-01-15 Tom Tromey <tromey@redhat.com>
11979 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11980 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11981 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11982 (set_objfile_main_name): New function.
11983 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11984 language_of_main>: New fields.
11985 (set_objfile_main_name): Declare.
11986 * symtab.c (find_main_name): Loop over objfiles to find the main
11988 (set_main_name): Now static.
11989 (get_main_info): Add comment.
11990 * symtab.h (set_main_name): Don't declare.
11992 2014-01-15 Tom Tromey <tromey@redhat.com>
11994 * symtab.c (main_progspace_key): New global.
11995 (struct main_info): New.
11996 (name_of_main, language_of_main): Remove.
11997 (get_main_info, main_info_cleanup): New function.
11998 (set_main_name, main_name, main_language): Use get_main_info.
11999 (_initialize_symtab): Initialize main_progspace_key.
12001 2014-01-15 Tom Tromey <tromey@redhat.com>
12003 * dbxread.c (process_one_symbol): Update.
12004 * dwarf2read.c (read_partial_die): Update.
12005 * symfile.c (set_initial_language): Call main_language.
12006 * symtab.c (language_of_main): Now static.
12007 (set_main_name): Add 'lang' parameter.
12008 (find_main_name): Update.
12009 (main_language): New function.
12010 (symtab_observer_executable_changed): Update.
12011 * symtab.h (set_main_name): Update.
12012 (language_of_main): Remove.
12013 (main_language): Declare.
12015 2014-01-15 Tom Tromey <tromey@redhat.com>
12017 * symfile.c (init_entry_point_info): Use new "initialized" field.
12019 * objfiles.h (struct entry_point) <initialized>: New field.
12020 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12021 (struct objfile) <ei>: ...here. Remove.
12022 * objfiles.c (entry_point_address_query): Update.
12024 2014-01-15 Tom Tromey <tromey@redhat.com>
12026 * objfiles.c (entry_point_address_query): Relocate entry point
12028 (objfile_relocate1): Do not relocate entry point address.
12029 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12030 <the_bfd_section_index>: New field.
12031 * symfile.c (init_entry_point_info): Find the entry point's
12034 2014-01-15 Tom Tromey <tromey@redhat.com>
12036 * solib-frv.c (enable_break): Use entry_point_address_query.
12038 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12040 * NEWS: Add note on improved process record-replay on
12041 arm*-linux* targets.
12043 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12045 * arm-tdep.c (enum arm_record_result): New enum.
12046 (arm_record_unsupported_insn): New function.
12047 (arm_record_coproc_data_proc): Removed.
12048 (thumb2_record_ld_st_multiple): New function.
12049 (thumb2_record_ld_st_dual_ex_tbb): New function.
12050 (thumb2_record_data_proc_sreg_mimm): New function.
12051 (thumb2_record_ps_dest_generic): New function.
12052 (thumb2_record_branch_misc_cntrl): New function.
12053 (thumb2_record_str_single_data): New function.
12054 (thumb2_record_ld_mem_hints): New function.
12055 (thumb2_record_ld_word): New function.
12056 (thumb2_record_lmul_lmla_div): New function.
12057 (thumb2_record_decode_insn_handler): New function.
12058 (decode_insn): Add thumb32 instruction handlers.
12060 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12062 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12063 (struct arm_linux_record_tdep): Declare.
12064 (arm_canonicalize_syscall): New function.
12065 (arm_all_but_pc_registers_record): New function.
12066 (arm_linux_syscall_record): New function.
12067 (arm_linux_init_abi): Add syscall recording constructs.
12068 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12069 decoding. (arm_record_coproc_data_proc): Update arm syscall
12071 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12072 <arm_syscall_record>: New field.
12073 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12076 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12078 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12079 register for push instruction recording.
12081 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12083 * arm-tdep.c (thumb_record_misc): Update to correct logical
12084 error while recording ldm, ldmia and pop instructions.
12086 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12088 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12090 2014-01-15 Pedro Alves <palves@redhat.com>
12092 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12093 (go32_resume, go32_fetch_registers, store_register)
12094 (go32_store_registers, go32_prepare_to_store)
12095 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12096 (go32_create_inferior, go32_can_run, go32_terminal_init)
12097 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12100 2014-01-15 Tom Tromey <tromey@redhat.com>
12102 * target.h (async_callback_ftype): New typedef.
12103 (struct target_ops) <to_async>: Use it.
12105 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12107 * python/py-value.c (get_field_type): Remove unnecessary curly
12108 braces for single-statement if block.
12110 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12112 * python/py-type.c (convert_field): Add missing empty line
12113 after declarations.
12115 2014-01-14 Doug Evans <dje@google.com>
12117 * symfile.h (expand_symtabs_matching): Renamed from
12118 expand_partial_symbol_names. Update prototype.
12119 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12120 * symfile.c (expand_symtabs_matching): Renamed from
12121 expand_partial_symbol_names. New args file_matcher, kind.
12122 Rename arg fun to symbol_matcher.
12123 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12124 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12125 ada_expand_partial_symbol_name.
12126 (ada_make_symbol_completion_list): Update to call
12127 expand_symtabs_matching.
12128 (ada_add_global_exceptions): Call expand_symtabs_matching.
12129 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12130 call map_symbol_filenames.
12131 * symtab.c (sources_info): Update to call map_symbol_filenames.
12132 (search_symbols): Call expand_symtabs_matching.
12133 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12134 (default_make_symbol_completion_list_break_on): Update to call
12135 expand_symtabs_matching.
12136 (make_source_files_completion_list): Update to call
12137 map_symbol_filenames.
12139 2014-01-14 Doug Evans <dje@google.com>
12141 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12142 (expand_symtabs_symbol_matcher_ftype): New typedef.
12143 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12144 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12145 * symfile.c (expand_partial_symbol_names): Update to use
12146 expand_symtabs_symbol_matcher_ftype.
12147 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12148 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12149 Arg name_matcher renamed to symbol_matcher.
12150 * psymtab.c (recursively_search_psymtabs): Update to use
12151 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12153 (expand_symtabs_matching_via_partial): Update to use
12154 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12155 Arg name_matcher renamed to symbol_matcher.
12157 2014-01-14 Doug Evans <dje@google.com>
12159 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12160 (map_partial_symbol_filenames): Ditto.
12161 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12162 (map_partial_symbol_filenames): Ditto.
12163 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12164 (map_partial_symbol_filenames): Ditto.
12165 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12166 (map_partial_symbol_filenames): Ditto.
12167 * symtab.c: Delete #include "psymtab.h".
12169 2014-01-14 Pedro Alves <palves@redhat.com>
12170 Tom Tromey <tromey@redhat.com>
12172 * infrun.c (use_displaced_stepping): Use find_record_target
12173 instead of RECORD_IS_USED.
12174 (adjust_pc_after_break): Use record_full_is_used instead of
12176 * record-btrace.c (record_btrace_open): Call record_preopen
12177 instead of checking RECORD_IS_USED.
12178 * record-full.c (record_full_shortname)
12179 (record_full_core_shortname): New globals.
12180 (record_full_is_used): New function.
12181 (find_full_open): Call record_preopen instead of checking
12183 (init_record_full_ops): Set the target's shortname to
12184 record_full_shortname.
12185 (init_record_full_core_ops): Set the target's shortname to
12186 record_full_core_shortname.
12187 * record-full.h (record_full_is_used): Declare.
12188 * record.c (find_record_target): Make extern.
12189 (record_preopen): New function.
12190 * record.h (RECORD_IS_USED): Delete macro.
12191 (find_record_target, record_preopen): Declare functions.
12193 2014-01-14 Yao Qi <yao@codesourcery.com>
12195 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12196 'len''s type to ULONGEST.
12197 (core_xfer_shared_libraries_aix): Likewise.
12198 * gdbarch.c, gdbarch.h: Regenerated.
12199 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12200 Change type of 'len' to ULONGEST.
12201 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12202 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12204 2014-01-14 Yao Qi <yao@codesourcery.com>
12206 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12207 type of 'len' to ULONGEST.
12208 (linux_xfer_osdata_processgroups): Likewise.
12209 (linux_xfer_osdata_threads): Likewise.
12210 (linux_xfer_osdata_fds): Likewise.
12211 (linux_xfer_osdata_isockets): Likewise.
12212 (linux_xfer_osdata_shm): Likewise.
12213 (linux_xfer_osdata_sem): Likewise.
12214 (linux_xfer_osdata_msg): Likewise.
12215 (linux_common_xfer_osdata): Likewise.
12216 (struct osdata_type) <getter>: Likewise.
12217 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12220 2014-01-14 Yao Qi <yao@codesourcery.com>
12222 * target.h (target_xfer_partial_ftype): Update.
12223 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12225 * aix-thread.c (aix_thread_xfer_partial): Change type of
12226 argument 'len' to ULONGEST.
12227 * auxv.c (procfs_xfer_auxv): Likewise.
12228 (ld_so_xfer_auxv): Likewise.
12229 (memory_xfer_auxv): Likewise.
12230 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12231 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12232 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12233 * corelow.c (core_xfer_partial): Likewise.
12234 * ctf.c (ctf_xfer_partial): Likewise.
12235 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12237 (darwin_read_dyld_info): Likewise.
12238 (darwin_xfer_partial): Likewise.
12239 * exec.c (section_table_xfer_memory_partial): Likewise.
12240 (exec_xfer_partial): Likewise.
12241 * exec.h (section_table_xfer_memory_partial): Update
12243 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12244 instead of plongest.
12245 (gnu_xfer_partial): Likewise.
12246 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12247 (ia64_hpux_xfer_solib_got): Likewise.
12248 (ia64_hpux_xfer_partial): Likewise.
12249 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12250 * inf-ptrace.c (inf_ptrace_xfer_partial):
12251 * inf-ttrace.c (inf_ttrace_xfer_partial):
12252 * linux-nat.c (linux_xfer_siginfo): Likewise.
12253 (linux_nat_xfer_partial): Likewise.
12254 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12255 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12256 * monitor.c (monitor_xfer_memory): Likewise.
12257 (monitor_xfer_partial): Likewise.
12258 * procfs.c (procfs_xfer_partial): Likewise.
12259 * record-full.c (record_full_xfer_partial): Likewise.
12260 (record_full_core_xfer_partial): Likewise.
12261 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12262 instead of plongest.
12263 (gdbsim_xfer_partial): Likewise.
12264 * remote.c (remote_xfer_partial): Likewise.
12265 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12266 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12268 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12269 (rs6000_xfer_shared_libraries): Likewise.
12270 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12271 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12272 (sparc_xfer_partial): Likewise.
12273 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12274 (spu_xfer_partial): Likewise.
12275 * spu-multiarch.c (spu_xfer_partial): Likewise.
12276 * target.c (target_read_live_memory): Likewise.
12277 (memory_xfer_live_readonly_partial): Likewise.
12278 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12279 (target_xfer_partial, default_xfer_partial): Likewise.
12280 (current_xfer_partial): Likewise.
12281 * tracepoint.c (tfile_xfer_partial): Likewise.
12282 * windows-nat.c (windows_xfer_memory): Likewise. Call
12283 pulongest instead of plongest.
12284 (windows_xfer_partial): Likewise.
12285 (windows_xfer_shared_libraries): Likewise.
12287 2014-01-14 Yao Qi <yao@codesourcery.com>
12289 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12290 target_xfer_partial_ftype.
12292 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12296 * valops.c (value_struct_elt_bitpos): New function
12297 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12298 object to 'None' if the field name is an empty string ("").
12299 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12300 attribute to look for a field when 'name' is 'None'.
12301 (get_field_type): New function
12303 2014-01-13 Doug Evans <dje@google.com>
12306 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12307 (try_open_dwop_file): Ditto.
12308 * gdb_bfd.c: #include "vec.h".
12309 (bfdp): New typedef.
12310 (struct gdb_bfd_data): New member included_bfds.
12311 (gdb_bfd_unref): Unref all included bfds.
12312 (gdb_bfd_record_inclusion): New function.
12313 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12315 2014-01-13 Tom Tromey <tromey@redhat.com>
12317 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12319 2014-01-13 Tom Tromey <tromey@redhat.com>
12321 * defs.h (use_windows): Remove.
12322 * gdb.c (main): Update.
12323 * main.c (captured_main, gdb_main): Update.
12324 * main.h (struct captured_main_args) <use_windows>: Remove.
12325 * top.c (use_windows): Remove.
12327 2014-01-13 Tom Tromey <tromey@redhat.com>
12329 * defs.h (deprecated_flush_hook): Remove.
12331 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12334 * linux-thread-db.c (try_thread_db_load): Add parameter
12335 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12336 (try_thread_db_load_from_pdir_1): Move it there from here.
12337 (try_thread_db_load_from_sdir): Update caller.
12338 (try_thread_db_load_from_dir): Move it there from here.
12340 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12342 * regformats/regdat.sh: Always rewrite the register file.
12344 2014-01-13 Pedro Alves <palves@redhat.com>
12346 * Makefile.in (CHECK_HEADERS): New variable.
12347 (check-headers:): New rule.
12349 2014-01-13 Tom Tromey <tromey@redhat.com>
12351 * cli/cli-setshow.c (do_set_command): Update.
12352 * defs.h (deprecated_set_hook): Remove.
12353 * top.c (deprecated_set_hook): Remove.
12355 2014-01-13 Pedro Alves <palves@redhat.com>
12357 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12358 the tracepoint if the PC is a pseudo-register.
12360 2014-01-13 Tom Tromey <tromey@redhat.com>
12362 * defs.h (XCALLOC): Remove.
12363 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12364 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12365 * dwarf2loc.c (allocate_piece_closure): Likewise.
12366 * elfread.c (elf_symfile_segments): Likewise.
12367 (elf_symfile_segments): Likewise.
12368 * gdbtypes.c (copy_type_recursive): Likewise.
12369 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12370 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12371 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12373 * mt-tdep.c (mt_gdbarch_init): Likewise.
12374 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12376 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12377 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12378 * registry.c (registry_alloc_data): Likewise.
12379 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12380 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12381 * serial.c (serial_fdopen_ops): Likewise.
12382 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12384 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12385 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12388 2014-01-13 Tom Tromey <tromey@redhat.com>
12390 * defs.h (XMALLOC): Remove.
12391 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12392 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12393 * cli-out.c (struct ui_out *): Likewise.
12394 * cli/cli-dump.c (add_dump_command): Likewise.
12395 (add_dump_command): Likewise.
12396 * complaints.c (get_complaints): Likewise.
12397 (find_complaint): Likewise.
12398 * dwarf2-frame.c (execute_cfa_program): Likewise.
12399 * dwarf2read.c (abbrev_table_read_table): Likewise.
12400 * gdbarch.sh: Likewise.
12401 * gdbarch.c: Rebuild.
12402 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12403 * interps.c (interp_new): Likewise.
12404 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12405 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12406 * mi/mi-console.c (mi_console_file_new): Likewise.
12407 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12408 * mi/mi-out.c (mi_out_new): Likewise.
12409 * mi/mi-parse.c (mi_parse): Likewise.
12410 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12411 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12412 * observer.c (xalloc_observer_list_node): Likewise.
12413 * regcache.c (regcache_xmalloc_1): Likewise.
12414 * reggroups.c (reggroup_new): Likewise.
12415 (_initialize_reggroup): Likewise.
12416 * registry.c (register_data_with_cleanup): Likewise.
12417 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12418 * ser-base.c (serial_ttystate): Likewise.
12419 * ser-mingw.c (make_pipe_state): Likewise.
12420 * ser-pipe.c (pipe_open): Likewise.
12421 * serial.c (serial_open): Likewise.
12422 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12423 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12424 (tui_alloc_win_info): Likewise.
12425 (tui_add_content_elements): Likewise.
12426 * tui/tui-file.c (tui_file_new): Likewise.
12427 * tui/tui-out.c (tui_out_new): Likewise.
12428 * ui-file.c (mem_file_new): Likewise.
12429 * ui-out.c (push_level): Likewise.
12430 (make_cleanup_ui_out_end): Likewise.
12431 (append_header_to_list): Likewise.
12432 (ui_out_new): Likewise.
12433 * user-regs.c (user_reg_add_builtin): Likewise.
12435 2014-01-13 Tom Tromey <tromey@redhat.com>
12437 * defs.h (XZALLOC): Remove.
12438 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12439 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12440 (get_ada_tasks_inferior_data): Likewise.
12441 * auto-load.c (get_auto_load_pspace_data): Likewise.
12442 * auxv.c (get_auxv_inferior_data): Likewise.
12443 * bfd-target.c (target_bfd_reopen): Likewise.
12444 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12445 (deprecated_insert_raw_breakpoint): Likewise.
12446 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12447 * corelow.c (core_open): Likewise.
12448 * darwin-nat.c (darwin_check_new_threads): Likewise.
12449 (darwin_attach_pid): Likewise.
12450 * dummy-frame.c (dummy_frame_push): Likewise.
12451 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12452 * dwarf2loc.c (allocate_piece_closure): Likewise.
12453 * elfread.c (elf_symfile_segments): Likewise.
12454 * eval.c (ptrmath_type_p): Likewise.
12455 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12456 * gdbtypes.c (alloc_type_arch): Likewise.
12457 (alloc_type_instance): Likewise.
12458 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12459 * inf-child.c (inf_child_can_use_agent): Likewise.
12460 * inflow.c (get_inflow_inferior_data): Likewise.
12461 * infrun.c (save_infcall_suspend_state): Likewise.
12462 * jit.c (jit_reader_load): Likewise.
12463 (get_jit_objfile_data): Likewise.
12464 (get_jit_program_space_data): Likewise.
12465 (jit_object_open_impl): Likewise.
12466 (jit_symtab_open_impl): Likewise.
12467 (jit_block_open_impl): Likewise.
12468 (jit_frame_sniffer): Likewise.
12469 * linux-fork.c (add_fork): Likewise.
12470 * maint.c (make_command_stats_cleanup): Likewise.
12471 * objfiles.c (get_objfile_pspace_data): Likewise.
12472 * opencl-lang.c (struct lval_closure): Likewise.
12473 * osdata.c (osdata_start_osdata): Likewise.
12474 * progspace.c (new_address_space): Likewise.
12475 (add_program_space): Likewise.
12476 * remote-sim.c (get_sim_inferior_data): Likewise.
12477 * sh-tdep.c (sh_gdbarch_init): Likewise.
12478 * skip.c (Ignore): Likewise.
12479 (skip_delete_command): Likewise.
12480 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12481 (library_list_start_library): Likewise.
12482 (solib_aix_current_sos): Likewise.
12483 * solib-darwin.c (get_darwin_info): Likewise.
12484 (darwin_current_sos): Likewise.
12485 * solib-dsbt.c (get_dsbt_info): Likewise.
12486 * solib-ia64-hpux.c (new_so_list): Likewise.
12487 (ia64_hpux_get_solib_linkage_addr): Likewise.
12488 * solib-spu.c (append_ocl_sos): Likewise.
12489 (spu_current_sos): Likewise.
12490 * solib-svr4.c (get_svr4_info): Likewise.
12491 (svr4_keep_data_in_core): Likewise.
12492 (library_list_start_library): Likewise.
12493 (svr4_default_sos): Likewise.
12494 (svr4_read_so_list): Likewise.
12495 * solib-target.c (library_list_start_library): Likewise.
12496 (solib_target_current_sos): Likewise.
12497 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12498 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12499 * symfile.c (default_symfile_segments): Likewise.
12500 * target-descriptions.c (tdesc_data_init): Likewise.
12501 (tdesc_create_reg): Likewise.
12502 (struct tdesc_type *): Likewise.
12503 (tdesc_create_vector): Likewise.
12504 (tdesc_set_struct_size): Likewise.
12505 (struct tdesc_type *): Likewise.
12506 (tdesc_free_feature): Likewise.
12507 (tdesc_create_feature): Likewise.
12508 * windows-nat.c (windows_add_thread): Likewise.
12509 (windows_make_so): Likewise.
12510 * xml-support.c (gdb_xml_body_text): Likewise.
12511 (gdb_xml_create_parser_and_cleanup): Likewise.
12512 (xml_process_xincludes): Likewise.
12513 * xml-syscall.c (allocate_syscalls_info): Likewise.
12514 (syscall_create_syscall_desc): Likewise.
12516 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12518 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12519 function, with code from i386_stap_parse_special_token.
12520 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12521 (i386_stap_parse_special_token): Move code to the two functions
12522 above; simplify it.
12524 2014-01-09 Pedro Alves <palves@redhat.com>
12525 Hui Zhu <hui@codesourcery.com>
12528 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12529 bp_err_string. Don't mark the location shlib_disabled if the
12530 error thrown wasn't a generic or memory error. Catch errors
12531 thrown while inserting breakpoints in overlayed code. Output
12532 error message of software breakpoints.
12533 * remote.c (remote_insert_breakpoint): If this breakpoint has
12534 target-side commands but this stub doesn't support Z0 packets,
12535 throw NOT_SUPPORTED_ERROR error.
12536 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12537 * target.h (target_insert_breakpoint): Extend comment.
12538 (target_insert_hw_breakpoint): Add comment.
12540 2014-01-08 Pedro Alves <palves@redhat.com>
12542 * remote.c (remote_add_thread): Add threads silently if starting
12544 (remote_notice_new_inferior): If in all-stop, and starting up,
12545 don't call notice_new_inferior.
12546 (get_current_thread): New function, factored out from ...
12547 (add_current_inferior_and_thread): ... this. Adjust.
12548 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12549 found any thread, then select the remote's current thread as GDB's
12550 current thread too.
12552 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12554 * NEWS: Create a new section for the next release branch.
12555 Rename the section of the current branch, now that it has
12558 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12560 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12561 * version.in: Bump version to 7.7.50.DATE-cvs.
12563 2014-01-08 Yao Qi <yao@codesourcery.com>
12565 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12566 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12567 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12569 2014-01-08 Yao Qi <yao@codesourcery.com>
12571 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12572 return value of bfd_get_filename to symbol_file_add_from_bfd.
12574 2014-01-08 Pierre Muller <muller@sourceware.org>
12577 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12578 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12579 to prim_record_mininal_symbol_and_info.
12580 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12581 in call to prim_record_minimal_symbol_and_info.
12582 (read_pe_exported_syms): Set index field of section_data.
12584 2014-01-07 Andrew Pinski <apinski@cavium.com>
12586 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12587 * features/aarch64.c: Regenerate.
12589 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12591 * target.c (return_null): Define.
12592 (update_current_target): Use it instead of return_zero for
12593 functions that return a pointer.
12595 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12597 * source.c (add_path): Fix check for duplicated paths in the previously
12600 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12602 * ada-lang.c: Remove duplicated include statements.
12603 * alphabsd-nat.c: Ditto.
12604 * amd64-darwin-tdep.c: Ditto.
12605 * amd64fbsd-nat.c: Ditto.
12606 * auto-load.c: Ditto.
12608 * breakpoint.c: Ditto.
12609 * dbxread.c: Ditto.
12610 * fork-child.c: Ditto.
12611 * gdb_usleep.c: Ditto.
12612 * i386-darwin-tdep.c: Ditto.
12613 * i386fbsd-nat.c: Ditto.
12615 * inferior.c: Ditto.
12616 * jv-lang.c: Ditto.
12617 * linux-nat.c: Ditto.
12618 * linux-tdep.c: Ditto.
12619 * m68kbsd-nat.c: Ditto.
12620 * m68klinux-nat.c: Ditto.
12621 * microblaze-tdep.c: Ditto.
12622 * mips-linux-tdep.c: Ditto.
12623 * mn10300-tdep.c: Ditto.
12624 * nto-tdep.c: Ditto.
12625 * opencl-lang.c: Ditto.
12627 * printcmd.c: Ditto.
12628 * regcache.c: Ditto.
12629 * remote-m32r-sdi.c: Ditto.
12631 * symfile.c: Ditto.
12633 * tilegx-linux-nat.c: Ditto.
12634 * tilegx-tdep.c: Ditto.
12635 * tracepoint.c: Ditto.
12637 * vaxbsd-nat.c: Ditto.
12638 * windows-nat.c: Ditto.
12639 * xtensa-tdep.c: Ditto.
12641 2014-01-07 Yao Qi <yao@codesourcery.com>
12643 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12645 2014-01-07 Yao Qi <yao@codesourcery.com>
12646 Joel Brobecker <brobecker@adacore.com>
12648 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12649 (pdc_write_regs): Likewise.
12650 (fetch_regs_kernel_thread): Likewise.
12651 (store_regs_kernel_thread): Likewise.
12653 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12655 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12656 tagged type objects to their actual type.
12658 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12660 * ada-valprint.c (print_field_values): Add "language" parameter.
12661 Update calls to print_field_values and print_variant_part.
12662 Pass new parameter "language" in call to val_print instead
12663 of "current_language". Replace call to ada_val_print by call
12665 (print_variant_part): Add "language" parameter.
12666 (ada_val_print_struct_union): Update call to print_field_values.
12668 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12670 * ada-valprint.c (ui_memcpy): Delete.
12671 (ada_print_floating): Update documentation. Add empty line
12672 between between function documentation and implementation.
12673 Delete variable "buffer". Use ui_file_xstrdup in place of
12674 ui_file_put. Minor adjustments following this change.
12676 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12678 * ada-valprint.c (ada_val_print_string): New function,
12679 extracted from ada_val_print_array.
12680 (ada_val_print_array): Replace extracted code by call
12681 to ada_val_print_string followed by a return. Move
12682 "else" branch to the function's top block.
12684 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12686 * ada-valprint.c (ada_val_print_array): Move implementation
12687 down. Rename parameter "offset" and "val" into "offset_aligned"
12688 and "original_value" respectively. Add parameter "offset".
12690 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12692 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12693 re-organizing the code. Change the "???" message printed
12694 when target type is a TYPE_CODE_UNDEF into
12695 "<ref to undefined type>".
12697 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12699 * ada-valprint.c (print_record): Delete, implementation inlined...
12700 (ada_val_print_struct_union): ... here. Remove call to
12701 ada_check_typedef in inlined implementation.
12703 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12705 * ada-valprint.c (ada_val_print_gnat_array): New function,
12706 extracted from ada_val_print_1;
12707 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12708 (ada_val_print_flt, ada_val_print_struct_union)
12709 (ada_val_print_ref): Likewise.
12710 (ada_val_print_1): Delete variables i and elttype.
12711 Replace extracted-out code by call to corresponding
12714 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12716 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12718 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12720 * ada-valprint.c (ada_val_print_1): Replace calls to
12721 ada_val_print_1 by calls to val_print.
12723 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12725 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12726 Update calls to self accordingly. Replace calls to c_val_print
12727 by calls to val_print.
12729 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12731 * ada-valprint.c (print_record): Delete declaration.
12732 (adjust_type_signedness, ada_val_print_1): Likewise.
12733 (ada_val_print): Move function implementation down.
12734 (print_variant_part, print_field_values, print_record):
12735 Move function implementation up.
12737 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12739 * python/py-type.c (typy_get_name): New function.
12740 (type_object_getset): Add entry for attribute "name".
12741 * NEWS: Add entry mentioning this new attribute.
12743 2014-01-07 Yao Qi <yao@codesourcery.com>
12745 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12748 2014-01-07 Yao Qi <yao@codesourcery.com>
12750 * gnu-nat.c (info_port_rights): Add qualifier const to
12753 2014-01-07 Yao Qi <yao@codesourcery.com>
12755 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12757 2014-01-07 Yao Qi <yao@codesourcery.com>
12759 * gnu-nat.c (make_inf) Update declaration.
12760 (make_inf): Make it static.
12761 (inf_set_traced): Likewise.
12762 (inf_port_to_thread, inf_task_died_status): Likewise.
12764 2014-01-07 Yao Qi <yao@codesourcery.com>
12766 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12768 2014-01-07 Yao Qi <yao@codesourcery.com>
12770 * gnu-nat.c (_initialize_gnu_nat): Declare.
12772 2014-01-07 Yao Qi <yao@codesourcery.com>
12774 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12776 (struct gdbarch_info) <byte_order>: Change type to
12778 <byte_order_for_code>: Likewise.
12779 * gdbarch.c, gdbarch.h: Regenerated.
12781 2014-01-06 Sasha Smundak <asmundak@google.com>
12783 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12785 2014-01-06 Tom Tromey <tromey@redhat.com>
12787 * doublest.c (convert_doublest_to_floatformat): Use const, not
12789 * somread.c (som_symtab_read): Likewise.
12791 2014-01-07 Hui Zhu <hui@codesourcery.com>
12793 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12794 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12795 (gdb_bfd_fopen): Ditto.
12796 (gdb_bfd_openr): Ditto.
12797 (gdb_bfd_openw): Ditto.
12798 (gdb_bfd_openr_iovec): Ditto.
12799 (gdb_bfd_fdopenr): Ditto.
12800 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12801 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12803 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12805 * symfile-mem.c (symbol_file_add_from_memory): Removed
12806 gdb_bfd_stash_filename.
12808 2014-01-03 Doug Evans <dje@google.com>
12810 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12813 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12815 Update year range in copyright notice of all files.
12817 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12819 * top.c (print_gdb_version): Set copyright year to 2014.
12821 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12823 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12825 For older changes see ChangeLog-2013.
12831 version-control: never