1 2014-09-16 Patrick Palka <patrick@parcs.ath.cx>
4 * breakpoint.h (struct watchpoint): New fields val_bitpos and
6 * breakpoint.c (watch_command_1): Use these fields to retain
8 (extract_bitfield_from_watchpoint_value): New function.
9 (watchpoint_check): Use it.
10 (update_watchpoint): Use it. Optimize the address and length of a
11 HW watchpoint pointing to a bitfield.
12 * value.h (unpack_value_bitfield): New prototype.
13 * value.c (unpack_value_bitfield): Make extern.
15 2014-09-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
17 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
19 * gnu-nat.c (inf_threads): New function.
20 * gnu-nat.h (inf_threads_ftype): New typedef.
21 (inf_threads): New declaration.
22 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
23 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
24 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
25 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
26 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
27 (i386_gnu_dr_get_control): New functions.
28 (reg_addr): New structure.
29 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
30 i386 debugging register hooks.
33 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
35 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
36 vector data transfer instructions.
37 (arm_record_coproc_data_proc): Updated.
39 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
41 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
42 arm_record_exreg_ld_st_insn.
43 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
46 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
48 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
49 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
50 processing instructions.
52 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
54 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
55 for advance SIMD struct ld/st insn.
56 (thumb2_record_decode_insn_handler): Replace stub handler with
57 thumb2_record_asimd_struct_ld_st.
59 2014-08-13 Omair Javaid <omair.javaid@linaro.org>
61 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
62 for asimd, vfp and coprocessor insns.
63 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
64 and coprocessor insns.
65 (thumb2_record_coproc_insn): New function.
66 (thumb2_record_decode_insn_handler): Update coprocessor insns record
68 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
71 2014-09-13 Doug Evans <xdje42@gmail.com>
73 * NEWS: Mention new "queue-signal" command.
74 * infcmd.c (queue_signal_command): New function.
75 (_initialize_infcmd): Add new queue-signal command.
77 2014-09-13 Doug Evans <xdje42@gmail.com>
79 * linux-nat.c (wait_lwp): Add debugging printf.
80 (linux_nat_wait_1): Ditto.
82 2014-09-12 Pedro Alves <palves@redhat.com>
84 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
85 (create_and_insert_solib_event_breakpoint): New functions.
86 * breakpoint.h (create_and_insert_solib_event_breakpoint)
87 (remove_solib_event_breakpoints_at_next_stop): New declarations.
88 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
89 (remove_dbx_link_breakpoint): Delete function.
90 (insert_dbx_link_bpt_in_file): Use
91 create_and_insert_solib_event_breakpoint instead of
92 deprecated_insert_raw_breakpoint.
93 (procfs_wait): Don't check whether we hit __dbx_link here.
94 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
96 * solib-irix.c (base_breakpoint): Delete global.
97 (disable_break): Delete function.
98 (enable_break): Use create_solib_event_breakpoint
99 instead of deprecated_insert_raw_breakpoint.
100 (irix_solib_handle_event): New function.
101 (irix_solib_create_inferior_hook): Don't run the target or disable
102 the mapping-complete breakpoint here.
103 (_initialize_irix_solib): Install irix_solib_handle_event as
104 so_ops->handle_event hook.
106 2014-09-12 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
107 Ulrich Weigand <uweigand@de.ibm.com>
110 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
111 instead of read_memory_unsigned_integer.
113 2014-09-12 Gary Benson <gbenson@redhat.com>
115 * nat/linux-waitpid.c: Include common-defs.h.
116 [GDBSERVER]: Add FIXME comment.
117 [!GDBSERVER]: Don't include defs.h or signal.h.
118 (linux_debug) [!GDBSERVER]: Remove empty block.
120 2014-09-12 Gary Benson <gbenson@redhat.com>
122 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
123 Don't include defs.h or server.h.
125 2014-09-12 Gary Benson <gbenson@redhat.com>
127 * nat/linux-btrace.c: Include common-defs.h.
128 Don't include defs.h, server.h or gdbthread.h.
129 * nat/linux-btrace.h (struct target_ops): New forward declaration.
131 2014-09-12 Gary Benson <gbenson@redhat.com>
133 * common/agent.c: Include common-defs.h.
134 Don't include defs.h or server.h.
135 * common/buffer.c: Likewise.
136 * common/common-debug.c: Likewise.
137 * common/common-utils.c: Likewise.
138 * common/errors.c: Likewise.
139 * common/filestuff.c: Likewise.
140 * common/format.c: Likewise.
141 * common/gdb_vecs.c: Likewise.
142 * common/print-utils.c: Likewise.
143 * common/ptid.c: Likewise.
144 * common/rsp-low.c: Likewise.
145 * common/signals.c: Likewise.
146 * common/vec.c: Likewise.
147 * common/xml-utils.c: Likewise.
148 * nat/linux-osdata.c: Likewise.
149 * nat/linux-procfs.c: Likewise.
150 * nat/linux-ptrace.c: Likewise.
151 * nat/mips-linux-watch.c: Likewise.
152 * target/waitstatus.c: Likewise.
154 2014-09-12 Tom Tromey <tromey@redhat.com>
155 Gary Benson <gbenson@redhat.com>
157 * common/common-regcache.h: New file.
158 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
159 * regcache.h: Include common-regcache.h.
160 (regcache_read_pc): Don't declare.
161 * regcache.c (get_thread_regcache_for_ptid): New function.
162 * nat/linux-btrace.c: Don't include regcache.h.
163 Include common-regcache.h.
164 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
166 2014-09-11 Thomas Schwinge <thomas@codesourcery.com>
168 * regcache.h (struct regset): Declare.
170 2014-09-11 Pedro Alves <palves@redhat.com>
173 * main.c: Include "infrun.h".
174 (catch_command_errors, catch_command_errors_const): Wait for the
175 foreground command to complete.
176 * top.c (maybe_wait_sync_command_done): New function, factored out
178 (maybe_wait_sync_command_done): ... here.
179 * top.h (maybe_wait_sync_command_done): New declaration.
181 2014-09-11 Tom Tromey <tromey@redhat.com>
182 Gary Benson <gbenson@redhat.com>
184 * common/symbol.h: New file.
185 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
186 * minsyms.c (find_minimal_symbol_address): New function.
187 * common/agent.c: Include common/symbol.h.
188 [!GDBSERVER]: Don't include objfiles.h.
189 (agent_look_up_symbols): Use find_minimal_symbol_address.
191 2014-09-11 Gary Benson <gbenson@redhat.com>
193 * target/target.h (target_stop_ptid, target_continue_ptid):
195 * target.c (target_stop_ptid, target_continue_ptid): New
197 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
198 (agent_run_command): Always use target_stop_ptid and
199 target_continue_ptid.
201 2014-09-11 Tom Tromey <tromey@redhat.com>
202 Gary Benson <gbenson@redhat.com>
204 * target/target.h: New file.
205 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
206 * target.h: Include target/target.h.
207 (target_read_memory, target_write_memory): Don't declare.
208 * target.c (target_read_uint32): New function.
209 * common/agent.c: Include target/target.h.
210 [!GDBSERVER]: Don't include target.h.
211 (helper_thread_id): Type changed to uint32_t.
212 (agent_get_helper_thread_id): Use target_read_uint32.
213 (agent_run_command): Always use target_read_memory and
215 (agent_capability): Type changed to uint32_t.
216 (agent_capability_check): Use target_read_uint32.
218 2014-09-11 Gary Benson <gbenson@redhat.com>
220 * common/common-debug.h (show_debug_regs): Declare.
221 * common/common-debug.c (show_debug_regs): Define.
222 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
223 all uses with show_debug_regs. Replace all uses that considered
224 debug_hw_points as a multi-value integer with straight boolean
226 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
227 with show_debug_regs.
228 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
229 all uses with show_debug_regs.
230 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
231 uses with show_debug_regs.
233 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
235 * findvar.c (address_from_register): Handle targets requiring
236 a special conversion routine even for plain pointer types.
238 2014-09-10 Ulrich Weigand <uweigand@de.ibm.com>
240 * rs6000-nat.c (exec_one_dummy_insn): Remove.
241 (store_register): Do not call exec_one_dummy_insn.
243 2014-09-10 Joel Brobecker <brobecker@adacore.com>
245 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
246 dereference it first. Use value_enclosing_type instead of
248 (ada_array_length): Likewise.
250 2014-09-10 Joel Brobecker <brobecker@adacore.com>
252 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
253 Adjust function implementation and documentation accordingly.
254 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
255 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
256 Update call to ada_value_ptr_subscript.
258 2014-09-10 Joel Brobecker <brobecker@adacore.com>
260 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
261 instead of VAL's type.
263 2014-09-10 Joel Brobecker <brobecker@adacore.com>
265 * amd64-linux-nat.c: Add <sys/uio.h> #include.
267 2014-09-09 Doug Evans <xdje42@gmail.com>
270 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
271 last parameter to pkg-config, not first.
272 * configure.ac: Pass --with-guile provided pkg-config path to
273 GDB_GUILE_PROGRAM_NAMES.
274 * configure: Regenerate.
276 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
278 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
281 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
283 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
284 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
285 the list of sections determining GDB_OSABI_IRIX.
287 2014-09-09 James Hogan <james.hogan@imgtec.com>
289 * MAINTAINERS (Write After Approval): Add "James Hogan".
291 2014-09-09 James Hogan <james.hogan@imgtec.com>
293 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
295 2014-09-09 Joel Brobecker <brobecker@adacore.com>
297 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
299 2014-09-08 Doug Evans <xdje42@gmail.com>
302 * guile.c: #include <signal.h>.
303 (_initialize_guile): Block SIGCHLD while initializing Guile.
305 Replaces the following, which is reverted.
307 2014-07-26 Doug Evans <xdje42@gmail.com>
310 * configure.ac: Add check for header gc/gc.h.
311 Add check for function setenv.
312 * configure: Regenerate.
313 * config.in: Regenerate.
314 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
316 2014-09-08 Doug Evans <xdje42@gmail.com>
318 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
319 with named constant. Fix style of pointer comparison.
320 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
322 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
325 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
326 decide whether we display the command on "show user".
327 * cli/cli-script.c (show_user_1): Only verify cmdlines after
328 printing command name.
329 * cli/cli-decode.h (cli_user_command_p): Declare new function.
330 * cli/cli-decode.c (cli_user_command_p): Create helper function
331 to verify whether cmd_list_element is a user-defined command.
333 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
336 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
337 Fix goto out of TRY_CATCH.
339 2014-09-06 Doug Evans <xdje42@gmail.com>
340 Tom Tromey <tromey@redhat.com>
343 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
344 $_any_caller_matches.
345 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
346 * python/lib/gdb/function/caller_is.py: New file.
348 2014-09-06 Doug Evans <xdje42@gmail.com>
350 * infcmd.c (program_info): Fix typo.
352 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
355 * stap-probe.c (stap_parse_single_operand): Delete unused variable
356 'number'. New variable 'has_digit'. Rewrite code to deal with
357 subexpressions on SDT probes.
359 2014-09-04 Pedro Alves <palves@redhat.com>
361 * c-exp.y (parse_number): Skip handling base-switching prefixes if
362 the input is only one character long.
364 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
367 * f-valprint.c (f_val_print): Specify the correct print option to
368 use when printing integer values.
370 2014-09-04 Gary Benson <gbenson@redhat.com>
372 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
373 Remove code to cope with LWPs wrapped as PIDs.
374 Add assertions to ensure no wrapped LWPs are passed.
376 2014-09-04 Pedro Alves <palves@redhat.com>
378 * value.c (value_ranges_copy_adjusted): New function, factored out
380 (value_contents_copy_raw): ... here.
381 (unpack_value_bits_as_long_1): Rename back to ...
382 (unpack_bits_as_long): ... this. Remove 'original_value' and
383 'result' parameters. Change return type to LONGEST.
384 (unpack_value_bits_as_long): Delete.
385 (unpack_value_field_as_long_1): Delete.
386 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
387 (unpack_value_bitfield): New function.
388 (value_field_bitfield): Reimplement using unpack_value_bitfield.
389 (value_fetch_lazy): Use unpack_value_bitfield.
390 * value.h (unpack_value_bits_as_long): Delete declaration.
392 2014-09-03 Sasha Smundak <asmundak@google.com>
394 * python/py-frame.c (frapy_read_register): New function.
396 2014-09-03 James Hogan <james.hogan@imgtec.com>
398 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
399 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
401 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
404 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
406 (add_cmd): Set "completer_handle_brkchars" to NULL.
407 * cli/cli-decode.h (struct cmd_list_element)
408 <completer_handle_brkchars>: New field.
409 * command.h (completer_ftype_void): New typedef.
410 (set_cmd_completer_handle_brkchars): New prototype.
411 * completer.c (set_gdb_completion_word_break_characters): New
413 (complete_line_internal): Call "completer_handle_brkchars"
414 callback from command.
415 * completer.h: Include "command.h".
416 (set_gdb_completion_word_break_characters): New prototype.
417 * python/py-cmd.c (cmdpy_completer_helper): New function.
418 (cmdpy_completer_handle_brkchars): New function.
419 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
420 (cmdpy_init): Set completer_handle_brkchars to
421 cmdpy_completer_handle_brkchars.
423 2014-09-03 Gary Benson <gbenson@redhat.com>
425 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
426 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
427 Loop conditions changed to equivalent form.
428 (struct x86_debug_reg_state): Updated dr_ref_count comment.
429 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
430 ALL_DEBUG_ADDRESS_REGISTERS.
432 2014-09-03 Joel Brobecker <brobecker@adacore.com>
434 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
437 2014-09-02 Doug Evans <dje@google.com>
439 * typeprint.c (find_global_typedef): Fix comment.
441 2014-09-02 Gary Benson <gbenson@redhat.com>
443 * i386-nat.h: Renamed as...
444 * x86-nat.h: New file. All type, function and variable name
445 prefixes changed from "i386_" to "x86_". All references updated.
446 * i386-nat.c: Renamed as...
447 * x86-nat.c: New file. All type, function and variable name
448 prefixes changed from "i386_" to "x86_". All references updated.
449 * common/i386-xstate.h: Renamed as...
450 * common/x86-xstate.h: New file. All type, function and variable
451 name prefixes changed from "i386_" to "x86_". All references
453 * nat/i386-cpuid.h: Renamed as...
454 * nat/x86-cpuid.h: New file. All type, function and variable name
455 prefixes changed from "i386_" to "x86_". All references updated.
456 * nat/i386-gcc-cpuid.h: Renamed as...
457 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
458 name prefixes changed from "i386_" to "x86_". All references
460 * nat/i386-dregs.h: Renamed as...
461 * nat/x86-dregs.h: New file. All type, function and variable name
462 prefixes changed from "i386_" to "x86_". All references updated.
463 * nat/i386-dregs.c: Renamed as...
464 * nat/x86-dregs.c: New file. All type, function and variable name
465 prefixes changed from "i386_" to "x86_". All references updated.
467 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
469 * varobj.c (_initialize_varobj): Move to the end of file.
471 2014-08-29 Gary Benson <gbenson@redhat.com>
473 * common/common-exceptions.h: New file.
474 * common/common-exceptions.c: Likewise.
475 * Makefile.in (SFILES): Add common/common-exceptions.c.
476 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
477 (COMMON_OBS): Add common-exceptions.o.
478 (common-exceptions.o): New rule.
479 * exceptions.h (common-exceptions.h): Include.
480 (gdb_setjmp.h): Do not include.
481 (return_reason): Moved to common-exceptions.h.
482 (enum return_reason): Likewise.
483 (RETURN_MASK): Likewise.
484 (typedef return_mask): Likewise.
485 (enum errors): Likewise.
486 (struct gdb_exception): Likewise.
487 (exceptions_state_mc_init): Likewise.
488 (exceptions_state_mc_action_iter): Likewise.
489 (exceptions_state_mc_action_iter_1): Likewise.
490 (TRY_CATCH): Likewise.
491 (throw_exception): Likewise.
492 (throw_verror): Likewise.
493 (throw_vquit): Likewise.
494 (throw_error): Likewise.
495 (throw_quit): Likewise.
496 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
497 (enum catcher_action): Likewise.
498 (struct catcher): Likewise.
499 (current_catcher): Likewise.
500 (catcher_list_size): Likewise.
501 (exceptions_state_mc_init): Likewise.
502 (catcher_pop): Likewise.
503 (exceptions_state_mc): Likewise.
504 (exceptions_state_mc_action_iter): Likewise.
505 (exceptions_state_mc_action_iter_1): Likewise.
506 (throw_exception): Likewise.
507 (exception_messages): Likewise.
508 (exception_messages_size): Likewise.
509 (throw_it): Likewise.
510 (throw_verror): Likewise.
511 (throw_vquit): Likewise.
512 (throw_error): Likewise.
513 (throw_quit): Likewise.
514 (prepare_to_throw_exception): New function.
516 2014-08-29 Gary Benson <gbenson@redhat.com>
518 * common/gdb_setjmp.h: New file.
519 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
520 * configure.ac: Move sigsetjmp check...
521 * common/common.m4: ...here.
522 * configure: Regenerate.
523 * cp-support.c (SIGJMP_BUF): Delete.
524 (SIGSETJMP): Likewise.
525 (SIGLONGJMP): Likewise.
526 * exceptions.h (gdb_setjmp.h): Include.
527 (setjmp.h): Do not include.
528 (EXCEPTIONS_SIGJMP_BUF): Delete.
529 (EXCEPTIONS_SIGSETJMP): Likewise.
530 (EXCEPTIONS_SIGLONGJMP): Likewise.
531 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
533 * exceptions.c: Likewise.
535 2014-08-29 Gary Benson <gbenson@redhat.com>
537 * cleanups.h: Moved to...
538 * common/cleanups.h: New file.
539 * cleanups.c: Moved to...
540 * common/cleanups.c: New file. Include common-defs.h and
541 cleanups.h. Do not include defs.h.
542 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
543 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
544 (cleanups.o): New rule.
546 2014-08-29 Gary Benson <gbenson@redhat.com>
548 * common/errors.h (internal_warning): New declaration.
549 (internal_vwarning): Likewise.
550 * common/errors.c (internal_warning): New function.
551 * utils.h (internal_warning): Don't declare.
552 (internal_vwarning): Likewise.
553 * utils.c (internal_warning): Removed.
555 2014-08-29 Gary Benson <gbenson@redhat.com>
557 * main.c (captured_main): Use warning during startup.
558 Prefix startup warning messages with command name.
560 2014-08-29 Gary Benson <gbenson@redhat.com>
562 * main.c (captured_main): Handle usage errors with error.
564 2014-08-29 Gary Benson <gbenson@redhat.com>
566 * go32-nat.c (go32_create_inferior): Replace a fprintf/
567 exit pair with a call to error. Wrap the message with _().
569 2014-08-29 Gary Benson <gbenson@redhat.com>
571 * main.c (captured_main): Replace a fprintf/exit
572 pair with a call to error. Wrap the message with _().
574 2014-08-29 Gary Benson <gbenson@redhat.com>
576 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
577 pairs with calls to error. Wrap the message with _().
579 2014-08-29 Gary Benson <gbenson@redhat.com>
581 * utils.c (vwarning): Protect calls to target_terminal_ours
584 2014-08-29 Gary Benson <gbenson@redhat.com>
586 * exceptions.c (print_flush): Protect calls to
587 target_terminal_ours and wrap_here.
589 2014-08-29 Gary Benson <gbenson@redhat.com>
591 * utils.h (filtered_printing_initialized): New declaration.
592 * utils.c (abort_with_message): New function.
593 (internal_vproblem): Use abort_with_message for first level
594 recursive internal problems, and if gdb_stderr is not set up.
595 Protect calls to target_terminal_ours, begin_line and query.
597 2014-08-28 Doug Evans <dje@google.com>
599 * symtab.c (in_prologue): Move definition to better spot.
600 (skip_prologue_using_sal): Ditto.
602 2014-08-28 Doug Evans <dje@google.com>
604 * symtab.c (find_function_start_sal): Move definition to better spot.
606 2014-08-28 Yao Qi <yao@codesourcery.com>
608 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
609 found_stack_adjust in forward scan. Remove condition check
610 on found_stack_adjust which is always true. Indent the code.
612 2014-08-28 Yao Qi <yao@codesourcery.com>
614 * dwarf2read.c (dwarf_decode_lines): Update declaration.
615 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
616 (dwarf_decode_lines): Remove argument
617 want_line_info. Remove condition check on want_line_info.
620 2014-08-27 Doug Evans <dje@google.com>
622 * dwarf2read.c (dwarf_record_line): Fix typo.
624 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
626 * target.h (struct target_ops::to_terminal_save_ours): Remove
628 (target_terminal_save_ours): Remove macro.
629 * target-delegates.c: Regenerate.
630 * inf-child.c (inf_child_target): Don't set the nonexistent
631 field to_terminal_save_ours.
632 * inferior.h (child_terminal_save_ours): Remove declaration.
633 * terminal.h (gdb_save_tty_state): New declaration.
634 * inflow.c (child_terminal_save_ours): Rename to ...
635 (gdb_save_tty_state): ... this.
636 * tui/tui.c: Include terminal.h.
637 (tui_enable): Use gdb_save_tty_state instead of
638 target_terminal_save_ours.
639 (tui_disable): Likewise.
641 2014-08-25 Doug Evans <dje@google.com>
643 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
644 Pass NULL instead of 0 for context pointer.
646 2014-08-25 Yao Qi <yao@codesourcery.com>
648 * dwarf2read.c: Fix grammatical error.
650 2014-08-24 Yao Qi <yao@codesourcery.com>
652 * dwarf2read.c (scan_partial_symbols): Update comments.
653 Rename argument 'need_pc' with 'set_addrmap'.
654 (add_partial_namespace): Rename argument 'need_pc' with
656 (add_partial_module): Likewise.
657 (add_partial_subprogram): Likewise. Update comments.
658 (dwarf2_name): Fix typo.
660 2014-08-22 Doug Evans <dje@google.com>
663 * dwarf2read.c (dwarf_record_line_p): New function.
664 (dwarf_decode_lines_1): Ignore subsequent line number entries
665 for the same line if any entry had a non-zero discriminator.
667 2014-08-22 Doug Evans <dje@google.com>
669 * buildsym.h (record_line_ftype): New typedef.
670 (record_line): Use it.
671 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
672 (dwarf_decode_lines_1): Call them.
674 2014-08-22 Yao Qi <yao@codesourcery.com>
676 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
677 (ctf_end): Remove code.
679 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
681 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
682 (linux_make_corefile_notes): call update_thread_list, protected against
685 2014-08-21 Pedro Alves <palves@redhat.com>
687 * infcmd.c (attach_command): Remove comment.
689 2014-08-21 Bin Cheng <bin.cheng@arm.com>
691 * aarch64-linux-nat.c (dr_changed_t): Change the type from
692 unsigned LONGEST to ULONGEST.
694 2014-08-20 Pedro Alves <palves@redhat.com>
696 * Makefile.in (check-read1): New rule.
698 2014-08-20 Joel Brobecker <brobecker@adacore.com>
700 * value.c (value_from_contents_and_address): Strip resolved_type's
701 typedef layers before checking its TYPE_DATA_LOCATION.
703 2014-08-20 Pedro Alves <palves@redhat.com>
705 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
707 2014-08-20 Yao Qi <yao@codesourcery.com>
709 * amd64-tdep.c (amd64_classify): Add a blank line after the
710 example. Move "*/" to a new line.
711 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
712 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
713 * dwarf2read.c (psymtab_include_file_name): Likewise.
715 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
716 Pedro Alves <palves@redhat.com>
720 * ada-lang.c (coerce_unspec_val_to_type): Use
721 value_contents_copy_raw.
722 * ada-valprint.c (val_print_packed_array_elements): Adjust.
723 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
724 * cp-valprint.c (cp_print_value_fields): Let the common printing
725 code handle optimized out values.
726 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
727 * d-valprint.c (dynamic_array_type): Use
728 value_bits_any_optimized_out.
729 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
730 check_any_valid fields.
731 (check_pieced_value_bits): Delete and inline ...
732 (check_pieced_synthetic_pointer): ... here.
733 (check_pieced_value_validity): Delete.
734 (check_pieced_value_invalid): Delete.
735 (pieced_value_funcs): Remove check_validity and check_any_valid
737 (read_pieced_value): Use mark_value_bits_optimized_out.
738 (write_pieced_value): Switch to use
739 mark_value_bytes_optimized_out.
740 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
741 of assuming the whole value is optimized out.
742 * findvar.c (read_frame_register_value): Remove special handling
743 of optimized out registers.
744 (value_from_register): Use mark_value_bytes_optimized_out.
745 * frame-unwind.c (frame_unwind_got_optimized): Use
746 mark_value_bytes_optimized_out.
747 * jv-valprint.c (java_value_print): Adjust.
748 (java_print_value_fields): Let the common printing code handle
749 optimized out values.
750 * mips-tdep.c (mips_print_register): Remove special handling of
751 optimized out registers.
752 * opencl-lang.c (lval_func_check_validity): Delete.
753 (lval_func_check_any_valid): Delete.
754 (opencl_value_funcs): Remove check_validity and check_any_valid
756 * p-valprint.c (pascal_object_print_value_fields): Let the common
757 printing code handle optimized out values.
758 * stack.c (read_frame_arg): Remove special handling of optimized
759 out values. Fetch both VAL and ENTRYVAL before comparing
760 contents. Adjust to value_available_contents_eq rename.
761 * valprint.c (valprint_check_validity)
762 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
763 (val_print_array_elements): Adjust.
764 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
765 (value_bits_any_optimized_out): New function.
766 (value_entirely_covered_by_range_vector): New function, factored
767 out from value_entirely_unavailable.
768 (value_entirely_unavailable): Reimplement.
769 (value_entirely_optimized_out): New function.
770 (insert_into_bit_range_vector): New function, factored out from
771 mark_value_bits_unavailable.
772 (mark_value_bits_unavailable): Reimplement.
773 (struct ranges_and_idx): New struct.
774 (find_first_range_overlap_and_match): New function, factored out
775 from value_available_contents_bits_eq.
776 (value_available_contents_bits_eq): Rename to ...
777 (value_contents_bits_eq): ... this. Check both unavailable
778 contents and optimized out contents.
779 (value_available_contents_eq): Rename to ...
780 (value_contents_eq): ... this.
781 (allocate_value_lazy): Remove reference to the old optimized_out
783 (allocate_optimized_out_value): Use
784 mark_value_bytes_optimized_out.
785 (require_not_optimized_out): Adjust to check whether the
786 optimized_out vec is empty.
787 (ranges_copy_adjusted): New function, factored out from
788 value_contents_copy_raw.
789 (value_contents_copy_raw): Also copy the optimized out ranges.
790 Assert the destination ranges aren't optimized out.
791 (value_contents_copy): Update comment, remove call to
792 require_not_optimized_out.
793 (value_contents_equal): Adjust to check whether the optimized_out
795 (set_value_optimized_out, value_optimized_out_const): Delete.
796 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
798 (value_entirely_optimized_out, value_bits_valid): Delete.
799 (value_copy): Take a VEC copy of the 'optimized_out' field.
800 (value_primitive_field): Remove special handling of optimized out.
801 (value_fetch_lazy): Assert that lazy values have no unavailable
802 regions. Use value_bits_any_optimized_out. Remove some special
803 handling for optimized out values.
804 * value.h: Add intro comment about <optimized out> and
806 (struct lval_funcs): Remove check_validity and check_any_valid
808 (set_value_optimized_out, value_optimized_out_const): Remove.
809 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
811 (value_bits_any_optimized_out): New declaration.
812 (value_bits_valid): Delete declaration.
813 (value_available_contents_eq): Rename to ...
814 (value_contents_eq): ... this, and extend comments.
816 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
818 Fix -fsanitize=address on unreadable inferior strings.
819 * valprint.c (val_print_string): Fix access before BUFFER.
821 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
823 * target.c (target_struct_size): Remove.
824 (target_struct_allocsize): Remove.
825 (DEFAULT_ALLOCSIZE): Remove.
826 (target_ops_p): New typedef.
827 (DEF_VEC_P (target_ops_p)): New vector type.
828 (target_structs): Change type to VEC (target_ops_p).
829 (add_target_with_completer): Replace "push" code by VEC_safe_push.
830 (find_default_run_target): Rewrite for loop following changes to
833 2014-08-19 Joel Brobecker <brobecker@adacore.com>
835 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
836 Adjust code accordingly. Adjust function description comment.
838 2014-08-19 Yao Qi <yao@codesourcery.com>
840 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
843 2014-08-19 Alan Modra <amodra@gmail.com>
845 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
846 * config.in: Regenerate.
847 * configure: Regenerate.
849 2014-08-19 Tom Tromey <tromey@redhat.com>
850 Gary Benson <gbenson@redhat.com>
852 * common/common-debug.h: New file.
853 * common/common-debug.c: Likewise.
855 * Makefile.in (SFILES): Add common/common-debug.c.
856 (HFILES_NO_SRCDIR): Add common/common-debug.h.
857 (COMMON_OBS): Add common-debug.o and debug.o.
858 (common-debug.o): New rule.
859 * common/common-defs.h: Include common-debug.h.
860 * common/agent.c (debug_agent_printf): New function.
861 (DEBUG_AGENT): Redefine.
862 * nat/i386-dregs.c (debug_printf): Undefine.
864 2014-08-19 Gary Benson <gbenson@redhat.com>
866 * common/common-defs.h: Include print-utils.h.
867 * utils.h: Do not include print-utils.h.
869 2014-08-19 Tom Tromey <tromey@redhat.com>
870 Gary Benson <gbenson@redhat.com>
872 * common/common-types.h: New file.
873 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
874 * common/common-defs.h: Include common-types.h.
875 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
878 2014-08-19 Tom Tromey <tromey@redhat.com>
879 Gary Benson <gbenson@redhat.com>
881 * common/errors.h: New file.
882 * common/errors.c: Likewise.
883 * Makefile.in (SFILES): Add common/errors.c.
884 (HFILES_NO_SRCDIR): Add common/errors.h.
885 (COMMON_OBS): Add errors.o.
886 (errors.o): New rule.
887 * common/common-defs.h: Include errors.h.
888 * utils.h (perror_with_name, error, verror, warning, vwarning):
890 * common/common-utils.h: (malloc_failure, internal_error):
893 2014-08-19 Gary Benson <gbenson@redhat.com>
895 * utils.c (internal_vproblem): Always print the message.
897 2014-08-18 Doug Evans <dje@google.com>
899 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
901 2014-08-18 Joel Brobecker <brobecker@adacore.com>
903 * ada-typeprint.c (type_is_full_subrange_of_target_type):
904 Return 0 if TYPE is dynamic.
905 (print_range): Add handling of dynamic ranges.
907 2014-08-18 Keven Boell <keven.boell@intel.com>
908 Joel Brobecker <brobecker@adacore.com>
910 * gdbtypes.h (struct main_type): Add field "data_location".
911 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
912 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
913 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
914 a dynamic data location.
915 (resolve_dynamic_type): Add DW_AT_data_location handling.
916 (copy_recursive, copy_type): Copy the data_location information
918 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
919 * value.c (value_from_contents_and_address): Add
920 DW_AT_data_location handling.
922 2014-08-18 Keven Boell <keven.boell@intel.com>
923 Joel Brobecker <brobecker@adacore.com>
925 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
926 field "get_object_address".
927 * dwarf2expr.c (execute_stack_op): Add handling for
928 DW_OP_push_object_address.
929 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
930 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
931 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
932 (dwarf_expr_get_obj_addr): New function.
933 (dwarf_expr_ctx_funcs): Add get_object_address field.
934 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
935 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
936 (dwarf2_evaluate_property): Add parameter "address". Use it.
937 (needs_get_obj_addr): New function.
938 (needs_frame_ctx_funcs): Add get_object_address field.
939 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
940 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
941 (resolve_dynamic_array): Likewise.
943 2014-08-18 Joel Brobecker <brobecker@adacore.com>
945 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
946 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
947 fixed value for records and unions for which some GNAT encodings
950 2014-08-18 Joel Brobecker <brobecker@adacore.com>
952 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
953 rewrite to avoid "else if" and "else" constructs. Should be
956 2014-08-18 Joel Brobecker <brobecker@adacore.com>
958 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
961 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
964 * eval.c: Update all calls to find_overload_match.
965 * valarith.c: Likewise.
966 (value_user_defined_cpp_op, value_user_defined_op): New
967 argument NOSIDE. Update all callers.
968 * valops.c (find_overload_match): New argument NOSIDE.
969 * value.h (find_overload_match): Update signature.
971 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
973 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
974 'items' methods instead of 'iteritems' method on dictionaries.
976 2014-08-15 Doug Evans <dje@google.com>
978 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
981 2014-08-15 Doug Evans <dje@google.com>
983 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
985 2014-08-15 Doug Evans <dje@google.com>
987 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
989 2014-08-15 Doug Evans <dje@google.com>
991 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
994 2014-08-15 Eli Zaretskii <eliz@gnu.org>
996 * dcache.h: Include target.h, to avoid compile time warnings.
998 2014-08-15 Joel Brobecker <brobecker@adacore.com>
1000 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
1001 frame_info" partial declaration.
1002 * gdbarch.h: Regenerate.
1004 2014-08-15 Yao Qi <yao@codesourcery.com>
1006 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
1007 Add parameter 'decode_for_pst_p'. Callers update.
1009 2014-08-13 Yao Qi <yao@codesourcery.com>
1012 * configure.ac: Use local variable 'pos'.
1013 * configure: Regenerated.
1015 2014-08-11 Doug Evans <dje@google.com>
1017 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
1018 message, it is redundant with "Reading symbols from ..." message.
1020 2014-08-10 Doug Evans <xdje42@gmail.com>
1022 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
1024 2014-08-09 Yao Qi <yao@codesourcery.com>
1027 * remote.c (remote_xfer_partial): Remove dead code.
1029 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1031 * ia64-linux-tdep.c: Include "regset.h".
1032 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
1033 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
1034 (ia64_linux_supply_fpregset): New function.
1035 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
1036 (ia64_linux_regset_from_core_section): New function.
1037 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
1040 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1042 * m68klinux-tdep.c: Include "regset.h".
1043 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
1044 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
1045 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
1046 (m68k_linux_regset_from_core_section): New function.
1047 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
1050 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1052 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
1053 function. Move logic to...
1054 (tilegx_linux_regmap): ... this new register map.
1055 (tilegx_linux_regset): Refer to register map, replace supply
1056 method by regcache_supply_regset, and add collect method.
1057 * tilegx-tdep.h (enum tilegx_regnum): New enum value
1058 TILEGX_FIRST_EASY_REGNUM.
1060 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1062 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
1063 that calls regcache_supply_regset and handles the EPC register
1064 separately. Move main logic to...
1065 (score7_linux_gregmap): ... this new register map.
1066 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
1067 (score7_linux_gregset): Refer to register map. Add collect method.
1068 (score7_linux_regset_from_core_section): Replace
1069 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
1070 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
1071 (struct regset): Delete unused forward declaraction.
1072 (struct pt_regs): Delete structure definition.
1073 (elf_gregset_t): Delete typedef.
1075 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1077 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
1078 (nios2_core_regset): Add collect method.
1080 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1082 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
1083 platform-independent and don't write to read-only input buffer.
1084 (m32r_linux_collect_gregset): New function.
1085 (m32r_linux_gregset): Add collect method.
1087 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1089 * hppa-linux-tdep.c (greg_map): Rename to...
1090 (hppa_linux_gregmap): ... this. Also convert to
1091 regcache_map_entry format.
1092 (hppa_linux_supply_regset): Delete function.
1093 (hppa_linux_supply_fpregset): Delete function. Move logic to...
1094 (hppa_linux_fpregmap): ... this new register map.
1095 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
1096 register map, replace supply method by regcache_supply_regset, and
1097 add collect method regcache_collect_regset.
1099 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1101 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
1102 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
1103 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
1104 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
1105 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
1106 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
1107 (frv_linux_supply_gregset): Replace main logic by call to
1108 regcache_supply_regset, but keep clearing gr32-gr63.
1109 (frv_linux_supply_fpregset): Delete function.
1110 (frv_linux_gregset): Refer to appropriate register map and add
1111 regcache_collect_regset as the collect method.
1112 (frv_linux_fpregset): Likewise. Also exchange the supply method
1113 by regcache_supply_regset.
1115 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1117 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
1118 by call to alpha_supply_int_regs.
1119 (alpha_linux_collect_gregset): New function.
1120 (alpha_linux_supply_fpregset): Replace logic by call to
1121 alpha_supply_fp_regs.
1122 (alpha_linux_collect_fpregset): New function.
1123 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
1125 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1127 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
1128 by call to regcache_collect_regset.
1129 (supply_gregset, supply_fpregset): Call regcache_supply_regset
1130 instead of aarch64_linux_supply_gregset/_fpregset.
1131 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
1132 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
1133 header file instead.
1134 (aarch64_linux_supply_gregset, supply_gregset_from_core)
1135 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
1136 functions. Move logic to ...
1137 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
1139 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
1140 refer to new register maps, replace *_regset_from_core by
1141 regcache_supply_regset, and also use regcache_collect_regset.
1142 * aarch64-linux-tdep.h: Include "regset.h".
1143 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
1145 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
1146 macros, moved from C source file.
1147 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
1148 variable declarations.
1150 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1152 * s390-linux-nat.c: Include "regset.h".
1153 (regmap_gregset): Delete macro.
1154 (s390_64_regmap_gregset): New register map for
1155 regcache_supply/_collect_regset.
1156 (s390_64_gregset): New regset.
1157 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
1158 (regmap_fpregset): Delete macro.
1159 (s390_native_supply, s390_native_collect): Delete functions.
1160 (supply_gregset, fill_gregset): Replace s390-specific regmap
1161 handling by a call to regcache_supply/_collect_regset.
1162 (supply_fpregset, fill_fpregset): Call regcache_supply/
1163 _collect_regset instead of s390_native_supply/_collect.
1164 (fetch_regset, store_regset): Likewise. Also change the last
1165 parameter to a regset instead of a regmap.
1166 (s390_linux_fetch_inferior_registers)
1167 (390_linux_store_inferior_registers): Adjust last parameter in
1168 calls to fetch_regset and store_regset.
1169 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
1170 (s390_gregmap): ... this. Also make static const and convert to
1171 regcache_map_entry format.
1172 (s390x_regmap_gregset): Delete.
1173 (s390_regmap_fpregset): Rename to...
1174 (s390_fpregmap): ... this. Make static const and convert to
1175 regcache_map_entry format.
1176 (s390_regmap_upper, s390_regmap_last_break)
1177 (s390x_regmap_last_break, s390_regmap_system_call)
1178 (s390_regmap_tdb): Likewise.
1179 (s390_supply_regset, s390_collect_regset): Remove functions.
1180 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
1182 (s390_gregset, s390_fpregset, s390_upper_regset)
1183 (s390_last_break_regset, s390x_last_break_regset)
1184 (s390_system_call_regset, s390_tdb_regset): Make global and
1185 replace s390_supply/_collect_regset by regcache_supply/
1187 (s390x_gregset): Delete.
1188 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
1189 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
1190 (s390_regmap_fpregset, s390_regmap_last_break)
1191 (s390x_regmap_last_break, s390_regmap_system_call)
1192 (s390_regmap_tdb): Delete global variable declarations.
1193 (s390_gregset, s390_fpregset, s390_last_break_regset)
1194 (s390x_last_break_regset, s390_system_call_regset)
1195 (s390_tdb_regset): New global variable declarations.
1197 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1199 * regcache.c: Include "regset.h".
1200 (regcache_transfer_regset): New local function.
1201 (regcache_supply_regset, regcache_collect_regset): New functions.
1202 * regcache.h (struct regcache_map_entry): New structure.
1203 (REGCACHE_MAP_SKIP): New enum value.
1204 (regcache_supply_regset, regcache_collect_regset): New prototypes.
1206 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
1208 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
1209 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
1210 (ppc_linux_collect_gregset ): Likewise.
1211 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
1212 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
1213 (ppc_collect_vrregset): Likewise.
1214 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
1217 2014-08-07 Yao Qi <yao@codesourcery.com>
1219 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
1220 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
1221 * remote.c (remote_read_bytes): Likewise.
1223 2014-08-07 Yao Qi <yao@codesourcery.com>
1225 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
1227 2014-08-07 Yao Qi <yao@codesourcery.com>
1230 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
1231 TARGET_XFER_OK instead of 0.
1233 2014-08-07 Gary Benson <gbenson@redhat.com>
1235 * common/common-defs.h: Include errno.h.
1236 * defs.h: Do not include errno.h.
1237 * ada-typeprint.c: Likewise.
1238 * c-typeprint.c: Likewise.
1239 * core-regset.c: Likewise.
1240 * corefile.c: Likewise.
1241 * corelow.c: Likewise.
1242 * event-loop.c: Likewise.
1243 * f-typeprint.c: Likewise.
1244 * gnu-nat.c: Likewise.
1245 * go32-nat.c: Likewise.
1246 * i386gnu-nat.c: Likewise.
1247 * m2-typeprint.c: Likewise.
1248 * nat/linux-btrace.c: Likewise.
1249 * p-typeprint.c: Likewise.
1250 * procfs.c: Likewise.
1251 * remote-sim.c: Likewise.
1252 * rs6000-nat.c: Likewise.
1253 * target.c: Likewise.
1254 * typeprint.c: Likewise.
1255 * ui-file.c: Likewise.
1256 * valops.c: Likewise.
1257 * valprint.c: Likewise.
1259 2014-08-07 Gary Benson <gbenson@redhat.com>
1261 * common/common-defs.h: Include string.h.
1262 * aarch64-tdep.c: Do not include string.h.
1263 * ada-exp.y: Likewise.
1264 * ada-lang.c: Likewise.
1265 * ada-lex.l: Likewise.
1266 * ada-typeprint.c: Likewise.
1267 * ada-valprint.c: Likewise.
1268 * aix-thread.c: Likewise.
1269 * alpha-linux-tdep.c: Likewise.
1270 * alpha-mdebug-tdep.c: Likewise.
1271 * alpha-nat.c: Likewise.
1272 * alpha-osf1-tdep.c: Likewise.
1273 * alpha-tdep.c: Likewise.
1274 * alphanbsd-tdep.c: Likewise.
1275 * amd64-dicos-tdep.c: Likewise.
1276 * amd64-linux-tdep.c: Likewise.
1277 * amd64-nat.c: Likewise.
1278 * amd64-sol2-tdep.c: Likewise.
1279 * amd64fbsd-tdep.c: Likewise.
1280 * amd64obsd-tdep.c: Likewise.
1281 * arch-utils.c: Likewise.
1282 * arm-linux-nat.c: Likewise.
1283 * arm-linux-tdep.c: Likewise.
1284 * arm-tdep.c: Likewise.
1285 * arm-wince-tdep.c: Likewise.
1286 * armbsd-tdep.c: Likewise.
1287 * armnbsd-nat.c: Likewise.
1288 * armnbsd-tdep.c: Likewise.
1289 * armobsd-tdep.c: Likewise.
1290 * avr-tdep.c: Likewise.
1291 * ax-gdb.c: Likewise.
1292 * ax-general.c: Likewise.
1293 * bcache.c: Likewise.
1294 * bfin-tdep.c: Likewise.
1295 * breakpoint.c: Likewise.
1296 * build-id.c: Likewise.
1297 * buildsym.c: Likewise.
1298 * c-exp.y: Likewise.
1299 * c-lang.c: Likewise.
1300 * c-typeprint.c: Likewise.
1301 * c-valprint.c: Likewise.
1302 * charset.c: Likewise.
1303 * cli-out.c: Likewise.
1304 * cli/cli-cmds.c: Likewise.
1305 * cli/cli-decode.c: Likewise.
1306 * cli/cli-dump.c: Likewise.
1307 * cli/cli-interp.c: Likewise.
1308 * cli/cli-logging.c: Likewise.
1309 * cli/cli-script.c: Likewise.
1310 * cli/cli-setshow.c: Likewise.
1311 * cli/cli-utils.c: Likewise.
1312 * coffread.c: Likewise.
1313 * common/agent.c: Likewise.
1314 * common/buffer.c: Likewise.
1315 * common/buffer.h: Likewise.
1316 * common/common-utils.c: Likewise.
1317 * common/filestuff.c: Likewise.
1318 * common/filestuff.c: Likewise.
1319 * common/format.c: Likewise.
1320 * common/print-utils.c: Likewise.
1321 * common/rsp-low.c: Likewise.
1322 * common/signals.c: Likewise.
1323 * common/vec.h: Likewise.
1324 * common/xml-utils.c: Likewise.
1325 * core-regset.c: Likewise.
1326 * corefile.c: Likewise.
1327 * corelow.c: Likewise.
1328 * cp-abi.c: Likewise.
1329 * cp-name-parser.y: Likewise.
1330 * cp-support.c: Likewise.
1331 * cp-valprint.c: Likewise.
1332 * cris-tdep.c: Likewise.
1333 * d-exp.y: Likewise.
1334 * darwin-nat.c: Likewise.
1335 * dbxread.c: Likewise.
1336 * dcache.c: Likewise.
1337 * demangle.c: Likewise.
1338 * dicos-tdep.c: Likewise.
1339 * disasm.c: Likewise.
1340 * doublest.c: Likewise.
1341 * dsrec.c: Likewise.
1342 * dummy-frame.c: Likewise.
1343 * dwarf2-frame.c: Likewise.
1344 * dwarf2loc.c: Likewise.
1345 * dwarf2read.c: Likewise.
1346 * elfread.c: Likewise.
1347 * environ.c: Likewise.
1349 * event-loop.c: Likewise.
1350 * exceptions.c: Likewise.
1352 * expprint.c: Likewise.
1353 * f-exp.y: Likewise.
1354 * f-lang.c: Likewise.
1355 * f-typeprint.c: Likewise.
1356 * f-valprint.c: Likewise.
1357 * fbsd-nat.c: Likewise.
1358 * findcmd.c: Likewise.
1359 * findvar.c: Likewise.
1360 * fork-child.c: Likewise.
1361 * frame.c: Likewise.
1362 * frv-linux-tdep.c: Likewise.
1363 * frv-tdep.c: Likewise.
1365 * gdb_bfd.c: Likewise.
1366 * gdbarch.c: Likewise.
1367 * gdbarch.sh: Likewise.
1368 * gdbtypes.c: Likewise.
1369 * gnu-nat.c: Likewise.
1370 * gnu-v2-abi.c: Likewise.
1371 * gnu-v3-abi.c: Likewise.
1372 * go-exp.y: Likewise.
1373 * go-lang.c: Likewise.
1374 * go32-nat.c: Likewise.
1375 * guile/guile.c: Likewise.
1376 * guile/scm-auto-load.c: Likewise.
1377 * hppa-hpux-tdep.c: Likewise.
1378 * hppa-linux-nat.c: Likewise.
1379 * hppanbsd-tdep.c: Likewise.
1380 * hppaobsd-tdep.c: Likewise.
1381 * i386-cygwin-tdep.c: Likewise.
1382 * i386-dicos-tdep.c: Likewise.
1383 * i386-linux-tdep.c: Likewise.
1384 * i386-nto-tdep.c: Likewise.
1385 * i386-sol2-tdep.c: Likewise.
1386 * i386-tdep.c: Likewise.
1387 * i386bsd-tdep.c: Likewise.
1388 * i386gnu-nat.c: Likewise.
1389 * i386nbsd-tdep.c: Likewise.
1390 * i386obsd-tdep.c: Likewise.
1391 * i387-tdep.c: Likewise.
1392 * ia64-libunwind-tdep.c: Likewise.
1393 * ia64-linux-nat.c: Likewise.
1394 * inf-child.c: Likewise.
1395 * inf-ptrace.c: Likewise.
1396 * inf-ttrace.c: Likewise.
1397 * infcall.c: Likewise.
1398 * infcmd.c: Likewise.
1399 * inflow.c: Likewise.
1400 * infrun.c: Likewise.
1401 * interps.c: Likewise.
1402 * iq2000-tdep.c: Likewise.
1403 * irix5-nat.c: Likewise.
1404 * jv-exp.y: Likewise.
1405 * jv-lang.c: Likewise.
1406 * jv-typeprint.c: Likewise.
1407 * jv-valprint.c: Likewise.
1408 * language.c: Likewise.
1409 * linux-fork.c: Likewise.
1410 * linux-nat.c: Likewise.
1411 * lm32-tdep.c: Likewise.
1412 * m2-exp.y: Likewise.
1413 * m2-typeprint.c: Likewise.
1414 * m32c-tdep.c: Likewise.
1415 * m32r-linux-nat.c: Likewise.
1416 * m32r-linux-tdep.c: Likewise.
1417 * m32r-rom.c: Likewise.
1418 * m32r-tdep.c: Likewise.
1419 * m68hc11-tdep.c: Likewise.
1420 * m68k-tdep.c: Likewise.
1421 * m68kbsd-tdep.c: Likewise.
1422 * m68klinux-nat.c: Likewise.
1423 * m68klinux-tdep.c: Likewise.
1424 * m88k-tdep.c: Likewise.
1425 * machoread.c: Likewise.
1426 * macrocmd.c: Likewise.
1428 * mdebugread.c: Likewise.
1429 * mem-break.c: Likewise.
1430 * memattr.c: Likewise.
1431 * memory-map.c: Likewise.
1432 * mep-tdep.c: Likewise.
1433 * mi/mi-cmd-break.c: Likewise.
1434 * mi/mi-cmd-disas.c: Likewise.
1435 * mi/mi-cmd-env.c: Likewise.
1436 * mi/mi-cmd-stack.c: Likewise.
1437 * mi/mi-cmd-var.c: Likewise.
1438 * mi/mi-cmds.c: Likewise.
1439 * mi/mi-console.c: Likewise.
1440 * mi/mi-getopt.c: Likewise.
1441 * mi/mi-interp.c: Likewise.
1442 * mi/mi-main.c: Likewise.
1443 * mi/mi-parse.c: Likewise.
1444 * microblaze-rom.c: Likewise.
1445 * microblaze-tdep.c: Likewise.
1446 * mingw-hdep.c: Likewise.
1447 * minidebug.c: Likewise.
1448 * minsyms.c: Likewise.
1449 * mips-irix-tdep.c: Likewise.
1450 * mips-linux-tdep.c: Likewise.
1451 * mips-tdep.c: Likewise.
1452 * mips64obsd-tdep.c: Likewise.
1453 * mipsnbsd-tdep.c: Likewise.
1454 * mipsread.c: Likewise.
1455 * mn10300-linux-tdep.c: Likewise.
1456 * mn10300-tdep.c: Likewise.
1457 * monitor.c: Likewise.
1458 * moxie-tdep.c: Likewise.
1459 * mt-tdep.c: Likewise.
1460 * nat/linux-btrace.c: Likewise.
1461 * nat/linux-osdata.c: Likewise.
1462 * nat/linux-procfs.c: Likewise.
1463 * nat/linux-ptrace.c: Likewise.
1464 * nat/linux-waitpid.c: Likewise.
1465 * nbsd-tdep.c: Likewise.
1466 * nios2-linux-tdep.c: Likewise.
1467 * nto-procfs.c: Likewise.
1468 * nto-tdep.c: Likewise.
1469 * objc-lang.c: Likewise.
1470 * objfiles.c: Likewise.
1471 * opencl-lang.c: Likewise.
1472 * osabi.c: Likewise.
1473 * osdata.c: Likewise.
1474 * p-exp.y: Likewise.
1475 * p-lang.c: Likewise.
1476 * p-typeprint.c: Likewise.
1477 * parse.c: Likewise.
1478 * posix-hdep.c: Likewise.
1479 * ppc-linux-nat.c: Likewise.
1480 * ppc-sysv-tdep.c: Likewise.
1481 * ppcfbsd-tdep.c: Likewise.
1482 * ppcnbsd-tdep.c: Likewise.
1483 * ppcobsd-tdep.c: Likewise.
1484 * printcmd.c: Likewise.
1485 * procfs.c: Likewise.
1486 * prologue-value.c: Likewise.
1487 * python/py-auto-load.c: Likewise.
1488 * python/py-gdb-readline.c: Likewise.
1489 * ravenscar-thread.c: Likewise.
1490 * regcache.c: Likewise.
1491 * registry.c: Likewise.
1492 * remote-fileio.c: Likewise.
1493 * remote-m32r-sdi.c: Likewise.
1494 * remote-mips.c: Likewise.
1495 * remote-notif.c: Likewise.
1496 * remote-sim.c: Likewise.
1497 * remote.c: Likewise.
1498 * reverse.c: Likewise.
1499 * rs6000-aix-tdep.c: Likewise.
1500 * ser-base.c: Likewise.
1501 * ser-go32.c: Likewise.
1502 * ser-mingw.c: Likewise.
1503 * ser-pipe.c: Likewise.
1504 * ser-tcp.c: Likewise.
1505 * ser-unix.c: Likewise.
1506 * serial.c: Likewise.
1507 * sh-tdep.c: Likewise.
1508 * sh64-tdep.c: Likewise.
1509 * shnbsd-tdep.c: Likewise.
1511 * sol-thread.c: Likewise.
1512 * solib-dsbt.c: Likewise.
1513 * solib-frv.c: Likewise.
1514 * solib-osf.c: Likewise.
1515 * solib-som.c: Likewise.
1516 * solib-spu.c: Likewise.
1517 * solib-target.c: Likewise.
1518 * solib.c: Likewise.
1519 * somread.c: Likewise.
1520 * source.c: Likewise.
1521 * sparc-nat.c: Likewise.
1522 * sparc-sol2-tdep.c: Likewise.
1523 * sparc-tdep.c: Likewise.
1524 * sparc64-tdep.c: Likewise.
1525 * sparc64fbsd-tdep.c: Likewise.
1526 * sparc64nbsd-tdep.c: Likewise.
1527 * sparcnbsd-tdep.c: Likewise.
1528 * spu-linux-nat.c: Likewise.
1529 * spu-multiarch.c: Likewise.
1530 * spu-tdep.c: Likewise.
1531 * stabsread.c: Likewise.
1532 * stack.c: Likewise.
1533 * std-regs.c: Likewise.
1534 * symfile.c: Likewise.
1535 * symmisc.c: Likewise.
1536 * symtab.c: Likewise.
1537 * target.c: Likewise.
1538 * thread.c: Likewise.
1539 * tilegx-linux-nat.c: Likewise.
1540 * tilegx-tdep.c: Likewise.
1542 * tracepoint.c: Likewise.
1543 * tui/tui-command.c: Likewise.
1544 * tui/tui-data.c: Likewise.
1545 * tui/tui-disasm.c: Likewise.
1546 * tui/tui-file.c: Likewise.
1547 * tui/tui-layout.c: Likewise.
1548 * tui/tui-out.c: Likewise.
1549 * tui/tui-regs.c: Likewise.
1550 * tui/tui-source.c: Likewise.
1551 * tui/tui-stack.c: Likewise.
1552 * tui/tui-win.c: Likewise.
1553 * tui/tui-windata.c: Likewise.
1554 * tui/tui-winsource.c: Likewise.
1555 * typeprint.c: Likewise.
1556 * ui-file.c: Likewise.
1557 * ui-out.c: Likewise.
1558 * user-regs.c: Likewise.
1559 * utils.c: Likewise.
1560 * v850-tdep.c: Likewise.
1561 * valarith.c: Likewise.
1562 * valops.c: Likewise.
1563 * valprint.c: Likewise.
1564 * value.c: Likewise.
1565 * varobj.c: Likewise.
1566 * vax-tdep.c: Likewise.
1567 * vaxnbsd-tdep.c: Likewise.
1568 * vaxobsd-tdep.c: Likewise.
1569 * windows-nat.c: Likewise.
1570 * xcoffread.c: Likewise.
1571 * xml-support.c: Likewise.
1572 * xstormy16-tdep.c: Likewise.
1573 * xtensa-linux-nat.c: Likewise.
1575 2014-08-07 Gary Benson <gbenson@redhat.com>
1577 * common/common-defs.h: Include gdb_assert.h.
1578 * aarch64-tdep.c: Do not include gdb_assert.h.
1579 * addrmap.c: Likewise.
1580 * aix-thread.c: Likewise.
1581 * alpha-linux-tdep.c: Likewise.
1582 * alpha-mdebug-tdep.c: Likewise.
1583 * alphanbsd-tdep.c: Likewise.
1584 * amd64-nat.c: Likewise.
1585 * amd64-tdep.c: Likewise.
1586 * amd64bsd-nat.c: Likewise.
1587 * amd64fbsd-nat.c: Likewise.
1588 * amd64fbsd-tdep.c: Likewise.
1589 * amd64nbsd-nat.c: Likewise.
1590 * amd64nbsd-tdep.c: Likewise.
1591 * amd64obsd-nat.c: Likewise.
1592 * amd64obsd-tdep.c: Likewise.
1593 * arch-utils.c: Likewise.
1594 * arm-tdep.c: Likewise.
1595 * armbsd-tdep.c: Likewise.
1597 * bcache.c: Likewise.
1598 * bfin-tdep.c: Likewise.
1599 * blockframe.c: Likewise.
1600 * breakpoint.c: Likewise.
1601 * bsd-kvm.c: Likewise.
1602 * bsd-uthread.c: Likewise.
1603 * buildsym.c: Likewise.
1604 * c-exp.y: Likewise.
1605 * c-lang.c: Likewise.
1606 * charset.c: Likewise.
1607 * cleanups.c: Likewise.
1608 * cli-out.c: Likewise.
1609 * cli/cli-decode.c: Likewise.
1610 * cli/cli-dump.c: Likewise.
1611 * cli/cli-logging.c: Likewise.
1612 * cli/cli-script.c: Likewise.
1613 * cli/cli-utils.c: Likewise.
1614 * coffread.c: Likewise.
1615 * common/common-utils.c: Likewise.
1616 * common/queue.h: Likewise.
1617 * common/signals.c: Likewise.
1618 * common/vec.h: Likewise.
1619 * complaints.c: Likewise.
1620 * completer.c: Likewise.
1621 * corelow.c: Likewise.
1622 * cp-abi.c: Likewise.
1623 * cp-name-parser.y: Likewise.
1624 * cp-namespace.c: Likewise.
1625 * cp-support.c: Likewise.
1626 * cris-tdep.c: Likewise.
1627 * dbxread.c: Likewise.
1628 * dictionary.c: Likewise.
1629 * doublest.c: Likewise.
1630 * dsrec.c: Likewise.
1631 * dummy-frame.c: Likewise.
1632 * dwarf2-frame-tailcall.c: Likewise.
1633 * dwarf2-frame.c: Likewise.
1634 * dwarf2expr.c: Likewise.
1635 * dwarf2loc.c: Likewise.
1636 * dwarf2read.c: Likewise.
1638 * event-loop.c: Likewise.
1639 * exceptions.c: Likewise.
1640 * expprint.c: Likewise.
1641 * f-valprint.c: Likewise.
1642 * fbsd-nat.c: Likewise.
1643 * findvar.c: Likewise.
1644 * frame-unwind.c: Likewise.
1645 * frame.c: Likewise.
1646 * frv-tdep.c: Likewise.
1647 * gcore.c: Likewise.
1648 * gdb-dlfcn.c: Likewise.
1649 * gdb_bfd.c: Likewise.
1650 * gdbarch.c: Likewise.
1651 * gdbarch.sh: Likewise.
1652 * gdbtypes.c: Likewise.
1653 * gnu-nat.c: Likewise.
1654 * gnu-v3-abi.c: Likewise.
1655 * go-lang.c: Likewise.
1656 * guile/scm-exception.c: Likewise.
1657 * guile/scm-gsmob.c: Likewise.
1658 * guile/scm-lazy-string.c: Likewise.
1659 * guile/scm-math.c: Likewise.
1660 * guile/scm-pretty-print.c: Likewise.
1661 * guile/scm-safe-call.c: Likewise.
1662 * guile/scm-utils.c: Likewise.
1663 * guile/scm-value.c: Likewise.
1664 * h8300-tdep.c: Likewise.
1665 * hppa-hpux-nat.c: Likewise.
1666 * hppa-tdep.c: Likewise.
1667 * hppanbsd-tdep.c: Likewise.
1668 * hppaobsd-tdep.c: Likewise.
1669 * i386-darwin-nat.c: Likewise.
1670 * i386-darwin-tdep.c: Likewise.
1671 * i386-nto-tdep.c: Likewise.
1672 * i386-tdep.c: Likewise.
1673 * i386bsd-nat.c: Likewise.
1674 * i386fbsd-tdep.c: Likewise.
1675 * i386gnu-nat.c: Likewise.
1676 * i386nbsd-tdep.c: Likewise.
1677 * i386obsd-tdep.c: Likewise.
1678 * i387-tdep.c: Likewise.
1679 * ia64-libunwind-tdep.c: Likewise.
1680 * ia64-tdep.c: Likewise.
1681 * inf-ptrace.c: Likewise.
1682 * inf-ttrace.c: Likewise.
1683 * infcall.c: Likewise.
1684 * infcmd.c: Likewise.
1685 * infrun.c: Likewise.
1686 * inline-frame.c: Likewise.
1687 * interps.c: Likewise.
1688 * jv-lang.c: Likewise.
1689 * jv-typeprint.c: Likewise.
1690 * linux-fork.c: Likewise.
1691 * linux-nat.c: Likewise.
1692 * linux-thread-db.c: Likewise.
1693 * m32c-tdep.c: Likewise.
1694 * m32r-linux-nat.c: Likewise.
1695 * m32r-tdep.c: Likewise.
1696 * m68k-tdep.c: Likewise.
1697 * m68kbsd-nat.c: Likewise.
1698 * m68kbsd-tdep.c: Likewise.
1699 * m88k-tdep.c: Likewise.
1700 * machoread.c: Likewise.
1701 * macroexp.c: Likewise.
1702 * macrotab.c: Likewise.
1703 * maint.c: Likewise.
1704 * mdebugread.c: Likewise.
1705 * memory-map.c: Likewise.
1706 * mep-tdep.c: Likewise.
1707 * mi/mi-common.c: Likewise.
1708 * microblaze-tdep.c: Likewise.
1709 * mingw-hdep.c: Likewise.
1710 * mips-linux-nat.c: Likewise.
1711 * mips-linux-tdep.c: Likewise.
1712 * mips-tdep.c: Likewise.
1713 * mips64obsd-tdep.c: Likewise.
1714 * mipsnbsd-tdep.c: Likewise.
1715 * mn10300-linux-tdep.c: Likewise.
1716 * mn10300-tdep.c: Likewise.
1717 * moxie-tdep.c: Likewise.
1718 * mt-tdep.c: Likewise.
1719 * nat/linux-btrace.c: Likewise.
1720 * nat/linux-osdata.c: Likewise.
1721 * nat/linux-ptrace.c: Likewise.
1722 * nat/mips-linux-watch.c: Likewise.
1723 * nios2-linux-tdep.c: Likewise.
1724 * nios2-tdep.c: Likewise.
1725 * objc-lang.c: Likewise.
1726 * objfiles.c: Likewise.
1727 * obsd-nat.c: Likewise.
1728 * opencl-lang.c: Likewise.
1729 * osabi.c: Likewise.
1730 * parse.c: Likewise.
1731 * ppc-linux-nat.c: Likewise.
1732 * ppc-sysv-tdep.c: Likewise.
1733 * ppcfbsd-nat.c: Likewise.
1734 * ppcfbsd-tdep.c: Likewise.
1735 * ppcnbsd-nat.c: Likewise.
1736 * ppcnbsd-tdep.c: Likewise.
1737 * ppcobsd-nat.c: Likewise.
1738 * ppcobsd-tdep.c: Likewise.
1739 * printcmd.c: Likewise.
1740 * procfs.c: Likewise.
1741 * prologue-value.c: Likewise.
1742 * psymtab.c: Likewise.
1743 * python/py-lazy-string.c: Likewise.
1744 * python/py-value.c: Likewise.
1745 * regcache.c: Likewise.
1746 * reggroups.c: Likewise.
1747 * registry.c: Likewise.
1748 * remote-sim.c: Likewise.
1749 * remote.c: Likewise.
1750 * rs6000-aix-tdep.c: Likewise.
1751 * rs6000-tdep.c: Likewise.
1752 * s390-linux-tdep.c: Likewise.
1753 * score-tdep.c: Likewise.
1754 * ser-base.c: Likewise.
1755 * ser-mingw.c: Likewise.
1756 * sh-tdep.c: Likewise.
1757 * sh64-tdep.c: Likewise.
1758 * solib-darwin.c: Likewise.
1759 * solib-spu.c: Likewise.
1760 * solib-svr4.c: Likewise.
1761 * source.c: Likewise.
1762 * sparc-nat.c: Likewise.
1763 * sparc-sol2-tdep.c: Likewise.
1764 * sparc-tdep.c: Likewise.
1765 * sparc64-sol2-tdep.c: Likewise.
1766 * sparc64-tdep.c: Likewise.
1767 * sparc64fbsd-tdep.c: Likewise.
1768 * sparc64nbsd-tdep.c: Likewise.
1769 * sparc64obsd-tdep.c: Likewise.
1770 * sparcnbsd-tdep.c: Likewise.
1771 * sparcobsd-tdep.c: Likewise.
1772 * spu-multiarch.c: Likewise.
1773 * spu-tdep.c: Likewise.
1774 * stabsread.c: Likewise.
1775 * stack.c: Likewise.
1776 * symfile.c: Likewise.
1777 * symtab.c: Likewise.
1778 * target-descriptions.c: Likewise.
1779 * target-memory.c: Likewise.
1780 * target.c: Likewise.
1781 * tic6x-linux-tdep.c: Likewise.
1782 * tic6x-tdep.c: Likewise.
1783 * tilegx-linux-nat.c: Likewise.
1784 * tilegx-tdep.c: Likewise.
1786 * tramp-frame.c: Likewise.
1787 * tui/tui-out.c: Likewise.
1788 * tui/tui-winsource.c: Likewise.
1789 * ui-out.c: Likewise.
1790 * user-regs.c: Likewise.
1791 * utils.c: Likewise.
1792 * v850-tdep.c: Likewise.
1793 * valops.c: Likewise.
1794 * value.c: Likewise.
1795 * varobj.c: Likewise.
1796 * vax-nat.c: Likewise.
1797 * xml-syscall.c: Likewise.
1798 * xml-tdesc.c: Likewise.
1799 * xstormy16-tdep.c: Likewise.
1800 * xtensa-linux-nat.c: Likewise.
1801 * xtensa-tdep.c: Likewise.
1803 2014-08-07 Gary Benson <gbenson@redhat.com>
1805 * common/common-defs.h: Include common-utils.h.
1806 * defs.h: Do not include common-utils.h.
1807 * common/gdb_assert.h: Likewise.
1808 * darwin-nat.h: Likewise.
1809 * nat/linux-btrace.c: Likewise.
1810 * target/waitstatus.h: Likewise.
1812 2014-08-07 Gary Benson <gbenson@redhat.com>
1814 * common/common-defs.h: Include ptid.h.
1815 * defs.h: Do not include ptid.h.
1816 * inferior.h: Likewise.
1817 * infrun.h: Likewise.
1818 * nat/linux-btrace.h: Likewise.
1819 * nat/linux-osdata.h: Likewise.
1820 * target/waitstatus.h: Likewise.
1822 2014-08-07 Gary Benson <gbenson@redhat.com>
1824 * common/common-defs.h: Include gdb_locale.h.
1825 * defs.h: Do not include gdb_locale.h.
1827 2014-08-07 Gary Benson <gbenson@redhat.com>
1829 * common/common-defs.h: Include gdb/signals.h.
1830 * defs.h: Do not include gdb/signals.h.
1832 2014-08-07 Gary Benson <gbenson@redhat.com>
1834 * common/common-defs.h: Include pathmax.h.
1835 * defs.h: Do not include pathmax.h.
1837 2014-08-07 Gary Benson <gbenson@redhat.com>
1839 * common/common-defs.h: Include libiberty.h.
1840 * defs.h: Do not include libiberty.h.
1841 * common/queue.h: Likewise.
1842 * cp-name-parser.y: Likewise.
1843 * mi/mi-cmd-catch.c: Likewise.
1844 * python/python.c: Likewise.
1846 2014-08-07 Gary Benson <gbenson@redhat.com>
1848 * common/common-defs.h: Include ansidecl.h.
1849 * defs.h: Do not include ansidecl.h.
1850 * common/buffer.h: Likewise.
1851 * common/common-utils.h: Likewise.
1853 2014-08-07 Gary Benson <gbenson@redhat.com>
1855 * common/common-defs.h: Include stddef.h.
1856 * defs.h: Do not include stddef.h.
1857 * common/common-utils.h: Likewise.
1858 * amd64fbsd-nat.c: Likewise.
1859 * bcache.c: Likewise.
1860 * charset.c: Likewise.
1861 * common/buffer.h: Likewise.
1862 * common/vec.h: Likewise.
1863 * i386bsd-nat.c: Likewise.
1864 * nat/linux-btrace.h: Likewise.
1865 * ppcfbsd-nat.c: Likewise.
1866 * ppcnbsd-tdep.h: Likewise.
1867 * ppcobsd-nat.c: Likewise.
1868 * ppcobsd-tdep.h: Likewise.
1869 * python/py-gdb-readline.c: Likewise.
1871 2014-08-07 Gary Benson <gbenson@redhat.com>
1873 * common/common-defs.h: Include stdarg.h.
1874 * defs.h: Do not include stdarg.h.
1875 * ada-lang.c: Likewise.
1876 * common/common-utils.h: Likewise.
1877 * guile/scm-string.c: Likewise.
1878 * guile/scm-utils.c: Likewise.
1879 * m32c-tdep.c: Likewise.
1881 2014-08-07 Gary Benson <gbenson@redhat.com>
1883 * common/common-defs.h: Include stdlib.h.
1884 * defs.h: Do not include stdlib.h.
1885 * addrmap.c: Likewise.
1886 * bcache.c: Likewise.
1887 * common/buffer.c: Likewise.
1888 * common/common-utils.c: Likewise.
1889 * cp-name-parser.y: Likewise.
1890 * go32-nat.c: Likewise.
1891 * mn10300-linux-tdep.c: Likewise.
1892 * nat/linux-osdata.c: Likewise.
1893 * tui/tui.c: Likewise.
1894 * windows-nat.c: Likewise.
1896 2014-08-07 Gary Benson <gbenson@redhat.com>
1898 * common/common-defs.h: Include stdio.h.
1899 * defs.h: Do not include stdio.h.
1900 * ada-lang.c: Likewise.
1901 * common/buffer.c: Likewise.
1902 * common/common-utils.c: Likewise.
1903 * cp-name-parser.y: Likewise.
1904 * gnu-nat.c: Likewise.
1905 * go32-nat.c: Likewise.
1906 * i386gnu-nat.c: Likewise.
1907 * proc-api.c: Likewise.
1908 * proc-events.c: Likewise.
1909 * proc-flags.c: Likewise.
1910 * proc-why.c: Likewise.
1911 * python/python-internal.h: Likewise.
1912 * target-memory.c: Likewise.
1913 * tui/tui-io.c: Likewise.
1914 * tui/tui.c: Likewise.
1916 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1918 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1919 (scan_dyntag_auxv): Same.
1921 2014-08-06 Yao Qi <yao@codesourcery.com>
1923 * amd64-linux-nat.c: Remove duplicated include
1925 * i386-linux-nat.c: Likewise.
1927 2014-08-06 Yao Qi <yao@codesourcery.com>
1929 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1930 operand" with "Special opcode" in comments.
1932 2014-08-05 Gary Benson <gbenson@redhat.com>
1934 * interps.c (initialize_interps): Remove prototype.
1935 (interpreter_initialized): Remove static global.
1936 (interp_add): Do not call initialize_interps.
1937 (initialize_interps): Remove function.
1939 2014-08-05 Gary Benson <gbenson@redhat.com>
1941 * utils.c (vwarning): Remove spurious va_end.
1943 2014-08-05 Alan Modra <amodra@gmail.com>
1945 * charset.c (convert_between_encodings): Cast result of obstack_base.
1946 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1947 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1948 (read_unwind_info): Use size_t for some locals.
1949 * jit.c (finalize_symtab): Likewise.
1950 * utils.c (hashtab_obstack_allocate): Likewise.
1951 * symmisc.c (print_objfile_statistics): Update format strings.
1953 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1955 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1956 (Changes in GDB 7.8): ... here.
1958 2014-08-04 Tom Tromey <tromey@redhat.com>
1960 * target.c (set_targetdebug): New function.
1961 (initialize_targets): Pass set_targetdebug when creating "set
1964 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1966 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1967 if detecting a variable-sized field that is not the last field.
1968 Fix struct type length computation.
1970 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1972 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1975 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1977 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1978 Remove "+ 8" offset in computation of CHAIN_VMA.
1980 2014-07-31 Doug Evans <dje@google.com>
1982 * inflow.c (child_terminal_inferior): Add comment.
1983 (child_terminal_ours_for_output): Add comment.
1984 (child_terminal_ours): Add comment.
1985 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1986 (linux_nat_terminal_ours): Add comment.
1988 2014-07-31 Gary Benson <gbenson@redhat.com>
1990 * common/btrace-common.h: Do not include defs.h or server.h.
1991 * nat/mips-linux-watch.h: Likewise.
1992 * gdb-dlfcn.h: Do not include defs.h.
1993 * tracefile.h: Likewise.
1995 2014-07-30 Roland McGrath <mcgrathr@google.com>
1997 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1999 2014-07-30 Tom Tromey <tromey@redhat.com>
2001 * bsd-kvm.c (bsd_kvm_open): Constify.
2002 * corelow.c (core_open): Constify.
2003 * ctf.c (ctf_open): Constify.
2004 * dbug-rom.c (dbug_open): Constify.
2005 * exec.c (exec_open): Constify.
2006 * m32r-rom.c (m32r_open, mon2000_open): Constify.
2007 * microblaze-rom.c (picobug_open): Constify.
2008 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
2010 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
2011 * record-btrace.c (record_btrace_open): Constify.
2012 * record-full.c (record_full_core_open_1, record_full_open_1)
2013 (record_full_open): Constify.
2014 * remote-m32r-sdi.c (m32r_open): Constify.
2015 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
2016 (rockhopper_open, lsi_open): Constify.
2017 * remote-sim.c (gdbsim_open): Constify.
2018 * remote.c (remote_open, extended_remote_open, remote_open_1):
2020 * target.h (struct target_ops) <to_open>: Make "arg" const.
2021 * tracefile-tfile.c (tfile_open): Constify.
2023 2014-07-30 Tom Tromey <tromey@redhat.com>
2025 * breakpoint.c (map_breakpoint_numbers): Update.
2026 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
2027 (get_number_const): New function.
2028 (get_number): Rewrite using get_number_const.
2029 (init_number_or_range): Make "string" const.
2030 (number_is_in_list): Make "list" const.
2031 * cli/cli-utils.h (get_number_const): Declare.
2032 (struct get_number_or_range_state) <string, end_ptr>: Now const.
2033 (init_number_or_range, number_is_in_list): Update.
2034 * printcmd.c (map_display_numbers): Update.
2035 * value.c (value_from_history_ref): Constify.
2036 * value.h (value_from_history_ref): Update.
2038 2014-07-30 Tom Tromey <tromey@redhat.com>
2040 * corefile.c (hook_type, call_extra_exec_file_hooks)
2041 (specify_exec_file_hook): Constify.
2042 * exec.c (exec_file_attach): Make "filename" const.
2043 * gdbcore.h (deprecated_exec_file_display_hook)
2044 (specify_exec_file_hook, exec_file_attach): Constify.
2045 * main.c (captured_main): Use catch_command_errors_const.
2047 2014-07-30 Tom Tromey <tromey@redhat.com>
2049 * target.c (open_target): New function.
2050 (add_target_with_completer, add_deprecated_target_alias): Use
2051 set_cmd_sfunc, set_cmd_context.
2052 (debug_to_open): Remove.
2053 (setup_target_debug): Update.
2055 2014-07-30 Yao Qi <yao@codesourcery.com>
2057 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
2059 * parse.c (exp_iterate): Update comments.
2061 2014-07-30 Gary Benson <gbenson@redhat.com>
2063 * common/common-defs.h: New file.
2064 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
2065 * defs.h: Include common-defs.h.
2066 Do not include config.h or build-gnulib/config.h.
2068 2014-07-30 Gary Benson <gbenson@redhat.com>
2070 * common/common-utils.h: Do not include config.h.
2071 * nat/linux-btrace.h: Likewise.
2073 2014-07-30 Gary Benson <gbenson@redhat.com>
2075 * btrace.c: Include defs.h.
2076 * common/ptid.c: Include defs.h or server.h as appropriate.
2077 * nat/mips-linux-watch.c: Likewise.
2079 2014-07-29 Tom Tromey <tromey@redhat.com>
2081 * target.c (target_is_pushed): Simplify.
2083 2014-07-29 Joel Brobecker <brobecker@adacore.com>
2087 2014-07-29 Yao Qi <yao@codesourcery.com>
2090 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
2092 2014-07-28 Doug Evans <xdje42@gmail.com>
2095 * guile/scm-param.c (pascm_parameter_defined_p): New function.
2096 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
2099 2014-07-28 Will Newton <will.newton@linaro.org>
2101 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
2102 (THUMB2_SET_R7_SIGRETURN2): Likewise.
2103 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
2104 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
2105 (THUMB2_EABI_SYSCALL): Likewise.
2106 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
2108 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
2109 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
2111 2014-07-27 Doug Evans <xdje42@gmail.com>
2113 * guile/scm-param.c (pascm_print_param_smob): Fix output.
2115 2014-07-27 Doug Evans <xdje42@gmail.com>
2117 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
2119 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2120 Doug Evans <xdje42@gmail.com>
2123 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
2124 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
2125 * configure.ac: Try to use guild to compile an scm file, if it fails
2126 then disable guile support.
2127 * configure: Regenerate.
2128 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
2130 (GUILE_COMPILED_FILES): New variable.
2131 (GUILE_FILES) Update.
2132 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
2133 (stamp-guile): Compile scm files.
2134 * guile/guile.c (boot_guile_support): New function.
2135 (standard_throw_args_p): New function.
2136 (print_standard_throw_error, print_throw_error): New functions.
2137 (handle_boot_error): New function.
2138 (initialize_scheme_side): Rewrite to call boot_guile_support.
2139 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
2140 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
2142 2014-07-26 Ludovic Courtès <ludo@gnu.org>
2143 Doug Evans <xdje42@gmail.com>
2146 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
2147 * guile/lib/gdb/support.scm: New file.
2148 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
2149 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
2151 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
2153 (%assert-type): Ditto, and renamed to assert-type.
2154 (%exception-print-style): Delete.
2156 2014-07-26 Doug Evans <xdje42@gmail.com>
2159 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
2160 * configure: Regenerate.
2161 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
2163 (PYTHON_FILES): New variable.
2164 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
2165 (GUILE_FILES): New variable.
2166 (stamp-python, install-python, uninstall-python): Handle empty
2168 (stamp-guile, install-guile, uninstall-guile): Ditto.
2170 2014-07-26 Doug Evans <xdje42@gmail.com>
2173 * guile/lib/gdb.scm (pretty-printers): Export.
2174 (set-pretty-printers!): Export.
2175 * guile/lib/gdb/printing.scm (gdb module): Update.
2176 (prepend-pretty-printer!, append-pretty-printer!): Update.
2177 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
2178 (pretty_printer_list_var): Delete.
2179 (pretty_printer_list): New static global.
2180 (gdbscm_pretty_printers): New function.
2181 (gdbscm_set_pretty_printers_x): New function.
2182 (ppscm_find_pretty_printer_from_gdb): Update.
2183 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
2184 (gdbscm_initialize_pretty_printers): Update.
2186 2014-07-26 Doug Evans <xdje42@gmail.com>
2189 * configure.ac: Add check for header gc/gc.h.
2190 Add check for function setenv.
2191 * configure: Regenerate.
2192 * config.in: Regenerate.
2193 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
2195 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
2197 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
2198 variation in gdbarch matching.
2200 2014-07-25 Tom Tromey <tromey@redhat.com>
2202 * exec.c (using_exec_ops): Remove.
2203 (exec_close_1): Update. Remove extraneous block, reindent.
2204 (add_target_sections): Use target_is_pushed.
2206 2014-07-25 Pedro Alves <palves@redhat.com>
2208 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
2209 * monitor.c (monitor_create_inferior): Likewise.
2210 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
2211 * remote-sim.c (gdbsim_create_inferior): Likewise.
2212 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2213 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2214 * windows-nat.c (do_initial_windows_stuff): Likewise.
2216 2014-07-25 Pedro Alves <palves@redhat.com>
2218 * NEWS: Mention signal passing and "signal" command changes.
2219 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
2221 * breakpoint.c (until_break_command): Adjust clear_proceed_status
2223 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
2224 * infcmd.c (proceed_thread_callback, continue_1, step_once)
2225 (jump_command): Adjust clear_proceed_status call.
2226 (signal_command): Warn if other thread that are resumed have
2227 signals that will be delivered. Adjust clear_proceed_status call.
2228 (until_next_command, finish_command)
2229 (proceed_after_attach_callback, attach_command_post_wait)
2230 (attach_command): Adjust clear_proceed_status call.
2231 * infrun.c (proceed_after_vfork_done): Likewise.
2232 (proceed_after_attach_callback): Adjust comment.
2233 (clear_proceed_status_thread): Clear stop_signal if not in pass
2235 (clear_proceed_status_callback): Delete.
2236 (clear_proceed_status): New 'step' parameter. Only clear the
2237 proceed status of threads the command being prepared is about to
2239 (proceed): If passed in an explicit signal, override stop_signal
2240 with it. Don't pass the last stop signal to the thread we're
2242 (init_wait_for_inferior): Adjust clear_proceed_status call.
2243 (switch_back_to_stepped_thread): Clear the signal if it should not
2245 * infrun.h (clear_proceed_status): New 'step' parameter.
2246 (user_visible_resume_ptid): Add comment.
2247 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2248 signal is in pass state.
2249 * remote.c (append_pending_thread_resumptions): Likewise.
2250 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2252 2014-07-25 Tom Tromey <tromey@redhat.com>
2254 * target.h (target_stopped_data_address)
2255 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2258 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2260 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2262 (avr_pointer_to_address): Likewise.
2264 2014-07-24 Tom Tromey <tromey@redhat.com>
2266 * monitor.c (compile_pattern): Update.
2267 * target.h (struct target_ops) <to_shortname, to_longname,
2270 2014-07-24 Tom Tromey <tromey@redhat.com>
2272 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2273 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2274 (add_info_alias, add_com): Make "doc" const.
2275 (print_doc_line): Make "str" const.
2276 (delete_cmd): Update.
2277 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2278 (print_doc_line): Update.
2279 * cli/cli-script.c (document_command): Update.
2280 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2281 (add_com, add_info, add_info_alias): Update.
2282 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2283 * python/py-cmd.c (cmdpy_destroyer): Update.
2285 2014-07-24 Tom Tromey <tromey@redhat.com>
2287 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2288 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2289 (help_cmd_list): Constify.
2290 (lookup_cmd): Update.
2291 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2293 (help_cmd_list, apropos_cmd): Update.
2294 * cli/cli-script.c (show_user): Update.
2295 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2296 * cli/cli-setshow.h (cmd_show_list): Update.
2297 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2298 (cmd_show_list): Update.
2299 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2300 * python/py-cmd.c (cmdpy_destroyer): Update.
2302 2014-07-24 Tom Tromey <tromey@redhat.com>
2304 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2305 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2307 * command.h (deprecate_cmd): Update.
2308 * maint.c (maintenance_do_deprecate): Add casts.
2310 2014-07-24 Tom Tromey <tromey@redhat.com>
2312 * cli/cli-decode.c (help_cmd): Make parameter "const".
2313 * cli/cli-decode.h (help_cmd): Update.
2315 2014-07-24 Tom Tromey <tromey@redhat.com>
2317 * stack.c (up_silently_base, down_silently_base): Make argument
2320 2014-07-24 Tom Tromey <tromey@redhat.com>
2322 * solib.c (solib_add): Make "pattern" const.
2323 * solib.h (solib_add): Update.
2325 2014-07-24 Tom Tromey <tromey@redhat.com>
2327 * remote.c (remote_serial_open, print_packet, putpkt)
2328 (putpkt_binary): Constify.
2329 * remote.h (putpkt): Update.
2331 2014-07-24 Tom Tromey <tromey@redhat.com>
2333 * monitor.c (monitor_open): Make "args" const.
2334 * monitor.h (monitor_open): Update.
2336 2014-07-24 Tom Tromey <tromey@redhat.com>
2338 * maint.c (match_bfd_flags): Make "string" const.
2339 (print_bfd_section_info): Remove casts.
2340 (print_objfile_section_info): Make "string" const.
2342 2014-07-24 Tom Tromey <tromey@redhat.com>
2344 * inf-child.c (inf_child_open_target): Make "arg" const.
2345 * inf-child.h (inf_child_open_target): Update.
2347 2014-07-24 Tom Tromey <tromey@redhat.com>
2349 * environ.c (unset_in_environ): Make "var" const.
2350 * environ.h (unset_in_environ): Update.
2352 2014-07-24 Tom Tromey <tromey@redhat.com>
2354 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2356 (scan_filename_with_cleanup): Likewise.
2357 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2358 Make arguments const.
2359 (restore_command): Update.
2361 2014-07-24 Pedro Alves <palves@redhat.com>
2363 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2365 2014-07-24 Tom Tromey <tromey@redhat.com>
2366 Gary Benson <gbenson@redhat.com>
2368 * nat/linux-ptrace.c (additional_flags): New global.
2369 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2370 additional_flags; don't check GDBSERVER.
2371 (linux_ptrace_set_additional_flags): New function.
2372 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2374 * linux-nat.c (_initialize_linux_nat): Call
2375 linux_ptrace_set_additional_flags.
2377 2014-07-24 Tom Tromey <tromey@redhat.com>
2379 * make-target-delegates (munge_type, write_debugmethod): New
2381 (debug_names): New global.
2382 ($TARGET_DEBUG_PRINTER): New global.
2383 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2385 Write debug methods. Generate init_debug_target.
2386 * target-debug.h: New file.
2387 * target-delegates.c: Rebuild.
2388 * target.c: Include target-debug.h.
2389 (debug_target): Hoist definition.
2390 (target_kill, target_get_section_table, target_memory_map)
2391 (target_flash_erase, target_flash_done, target_detach)
2392 (target_disconnect, target_wait, target_resume)
2393 (target_pass_signals, target_program_signals, target_follow_fork)
2394 (target_mourn_inferior, target_search_memory)
2395 (target_thread_address_space, target_close)
2396 (target_find_new_threads, target_core_of_thread)
2397 (target_verify_memory, target_insert_mask_watchpoint)
2398 (target_remove_mask_watchpoint): Remove targetdebug code.
2399 (debug_to_post_attach, debug_to_prepare_to_store)
2400 (debug_to_files_info, debug_to_insert_breakpoint)
2401 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2402 (debug_to_region_ok_for_hw_watchpoint)
2403 (debug_to_can_accel_watchpoint_condition)
2404 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2405 (debug_to_watchpoint_addr_within_range)
2406 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2407 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2408 (debug_to_terminal_init, debug_to_terminal_inferior)
2409 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2410 (debug_to_terminal_save_ours, debug_to_terminal_info)
2411 (debug_to_load, debug_to_post_startup_inferior)
2412 (debug_to_insert_fork_catchpoint)
2413 (debug_to_remove_fork_catchpoint)
2414 (debug_to_insert_vfork_catchpoint)
2415 (debug_to_remove_vfork_catchpoint)
2416 (debug_to_insert_exec_catchpoint)
2417 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2418 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2419 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2420 (setup_target_debug): Call init_debug_target.
2421 * target.h (TARGET_DEBUG_PRINTER): New macro.
2422 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2423 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2425 2014-07-24 Gary Benson <gbenson@redhat.com>
2427 * exceptions.h (throw_vfatal): Renamed to...
2428 (throw_vquit): New declaration.
2429 (throw_quit): Likewise.
2430 * exceptions.c (throw_vfatal): Renamed to...
2431 (throw_vquit): New function.
2432 (throw_quit): Likewise.
2433 (throw_error): Call throw_verror rather than throw_it.
2434 * utils.h (vfatal): Removed.
2436 * utils.c (vfatal): Removed.
2438 (internal_verror): Replaced call to fatal with call to throw_quit.
2439 (quit): Replaced calls to fatal with calls to throw_quit.
2441 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2443 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2446 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2448 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2449 less than zero in conditional expression.
2451 2014-07-23 Tom Tromey <tromey@redhat.com>
2453 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2454 ($INTRO_PART): Don't match whitespace.
2455 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2457 ($METHOD): Add $METHOD_TRAILER.
2459 (scan_target_h): New sub.
2460 Change main loop not to collect state.
2461 * target-delegates.c: Rebuild.
2463 2014-07-23 Gary Benson <gbenson@redhat.com>
2465 * cp-support.c (gdb_demangle): Fix build on systems without
2468 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2470 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2471 for reference entry value target data value.
2473 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2475 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2476 value_available_contents_eq.
2478 2014-07-22 Pedro Alves <palves@redhat.com>
2480 * value.c (allocate_optimized_out_value): Don't mark value as
2483 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2485 * MAINTAINERS (Write After Approval): Update my email address.
2487 2014-07-20 Doug Evans <dje@google.com>
2490 * remote.c (putpkt_binary): Add text to error message.
2492 2014-07-20 Yao Qi <yao@codesourcery.com>
2494 * eval.c: Remove "Chill" from comments.
2495 * gdbtypes.h: Likewise.
2496 * symtab.h: Likewise.
2498 2014-07-20 Yao Qi <yao@codesourcery.com>
2500 * std-operator.def: Update comments to TERNOP_SLICE.
2502 2014-07-20 Yao Qi <yao@codesourcery.com>
2504 * std-operator.def: Remove BINOP_RANGE.
2505 * breakpoint.c (watchpoint_exp_is_const): Update.
2506 * expprint.c (dump_subexp_body_standard): Likewise.
2507 * eval.c (init_array_element): Remove dead code.
2508 (evaluate_subexp_standard): Likewise.
2510 2014-07-20 Yao Qi <yao@codesourcery.com>
2512 * std-operator.def: Remove BINOP_IN.
2513 * breakpoint.c (watchpoint_exp_is_const): Update.
2514 * eval.c (evaluate_subexp_standard): Likewise.
2515 * expprint.c (dump_subexp_body_standard): Likewise.
2517 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2519 * microblaze-tdep.c (microblaze_register_names): Add
2520 the rshr and rslr register names.
2521 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2522 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2523 Use of tdesc_numbered_register. Use of
2524 microblaze_register_g_packet_guesses. Use of
2525 tdesc_use_registers. Use of set_gdbarch_register_type.
2526 (microblaze_register_g_packet_guesses): New.
2527 * microblaze-tdep.h (microblaze_reg_num): Add
2528 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2529 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2530 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2531 * features/microblaze-core.xml: New file.
2532 * features/microblaze-stack-protect.xml: New file.
2533 * features/microblaze-with-stack-protect.c: New file.
2534 * features/microblaze-with-stack-protect.xml: New file.
2535 * features/microblaze.xml: New file.
2536 * features/microblaze.c: New file.
2537 * features/Makefile (microblaze-with-stack-protect): Add
2538 microblaze-with-stack-protect microblaze and microblaze-expedite.
2539 * regformats/microblaze-with-stack-protect.dat: New file.
2540 * regformats/microblaze.dat: New file.
2541 * doc/gdb.texinfo (MicroBlaze Features): Added.
2543 2014-07-18 Tom Tromey <tromey@redhat.com>
2545 * exec.c (exec_ops): Now static.
2546 * exec.h (exec_ops): Don't declare.
2548 2014-07-18 Tom Tromey <tromey@redhat.com>
2550 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2551 to find_target_beneath.
2552 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2553 find_target_beneath.
2554 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2556 2014-07-18 Tom Tromey <tromey@redhat.com>
2559 * utils.c (quit): Use target_supports_terminal_ours.
2560 * target.h (target_supports_terminal_ours): Declare.
2561 * target.c (target_supports_delete_record): Don't check
2562 to_delete_record against NULL.
2563 (target_supports_terminal_ours): New function.
2565 2014-07-18 Tom Tromey <tromey@redhat.com>
2568 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2569 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2570 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2571 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2572 * windows-nat.c (windows_xfer_partial): Always delegate.
2573 * record-btrace.c (record_btrace_xfer_partial): Simplify
2575 (record_btrace_fetch_registers, record_btrace_store_registers)
2576 (record_btrace_prepare_to_store, record_btrace_resume)
2577 (record_btrace_wait, record_btrace_find_new_threads)
2578 (record_btrace_thread_alive): Likewise.
2579 * procfs.c (procfs_xfer_partial): Always delegate.
2580 * corelow.c (core_xfer_partial): Always delegate.
2581 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2583 2014-07-18 Tom Tromey <tromey@redhat.com>
2585 * exec.c (exec_make_note_section): Move earlier.
2587 2014-07-17 Doug Evans <dje@google.com>
2590 * maint.c (count_symtabs_and_blocks): Handle NULL
2591 current_program_space.
2592 (report_command_stats): Check global enabled flag in addition to
2593 recorded enabled flag.
2594 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2596 2014-07-16 Pedro Alves <palves@redhat.com>
2598 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2600 2014-07-16 Tom Tromey <tromey@redhat.com>
2602 * target.h (struct target_ops) <to_delete_record>: Reformat
2605 2014-07-16 Tom Tromey <tromey@redhat.com>
2607 * target-delegates.c: Rebuild.
2609 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2611 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2612 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2613 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2614 (avr_pointer_to_address): Likewise.
2615 (avr_address_class_type_flags): New function.
2616 (avr_address_class_type_flags_to_name): Likewise.
2617 (avr_address_class_name_to_type_flags): Likewise.
2618 (avr_gdbarch_init): Set address_class_type_flags,
2619 address_class_type_flags_to_name and
2620 address_class_name_to_type_flags.
2622 2014-07-15 Pedro Alves <palves@redhat.com>
2624 * linux-nat.c (kill_callback): Save errno and work with saved
2627 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2629 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2631 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2633 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2634 breakpoint support correctly.
2636 2014-07-14 Pedro Alves <palves@redhat.com>
2638 * utils.c (prompt_for_continue): Call target_terminal_ours.
2640 2014-07-14 Pedro Alves <palves@redhat.com>
2642 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2643 catch_errors. Don't re-enable stdin or notify observers where,
2645 (fetch_inferior_event_wrapper): Delete.
2647 2014-07-14 Pedro Alves <palves@redhat.com>
2650 * top.c: Include "inf-loop.h".
2651 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2653 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2655 (gdb_readline_wrapper): Store whether the target is async, and
2658 2014-07-14 Pedro Alves <palves@redhat.com>
2661 * top.c (gdb_readline_wrapper_line): Tweak comment.
2662 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2663 the input handler callback.
2665 2014-07-14 Pedro Alves <palves@redhat.com>
2668 * main.c: Include event-top.h.
2669 (handle_command_errors): New function.
2670 (catch_command_errors, catch_command_errors_const): Use it.
2672 2014-07-14 Pedro Alves <palves@redhat.com>
2674 * exceptions.c (catch_command_errors, catch_command_errors_const):
2676 * exceptions.h (catch_command_errors_ftype)
2677 (catch_command_errors_const_ftype): Moved to main.c.
2678 (catch_command_errors, catch_command_errors_const): Delete
2680 * main.c (catch_command_errors_ftype)
2681 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2682 (catch_command_errors, catch_command_errors_const)): Moved here
2683 from exceptions.c and make static.
2685 2014-07-14 Pedro Alves <palves@redhat.com>
2687 * exceptions.c (print_any_exception): Delete.
2688 (catch_exceptions_with_msg): Use exception_print instead of
2689 print_any_exception.
2690 (catch_errors): Use exception_fprintf instead of
2691 print_any_exception.
2692 (catch_command_errors, catch_command_errors_const): Use
2693 exception_print instead of print_any_exception.
2695 2014-07-14 Pedro Alves <palves@redhat.com>
2697 * infcall.c (run_inferior_call): Set 'sync_execution' while
2698 running the inferior call.
2700 2014-07-14 Pedro Alves <palves@redhat.com>
2702 * value.c (value_contents_equal): Delete function.
2703 * value.h (value_contents_equal): Delete declaration.
2705 2014-07-14 Tom Tromey <tromey@redhat.com>
2708 * gdbtypes.c (is_dynamic_type_internal): New function, from
2710 (is_dynamic_type): Rewrite.
2711 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2712 (resolve_dynamic_struct): Likewise.
2713 (resolve_dynamic_type_internal): New function, from
2714 resolve_dynamic_type.
2715 (resolve_dynamic_type): Rewrite.
2717 2014-07-14 Tom Tromey <tromey@redhat.com>
2719 * target.c (target_require_runnable): Also check record_stratum.
2722 2014-07-11 Yao Qi <yao@codesourcery.com>
2724 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2725 thumb_instruction_restores_sp return true.
2727 2014-07-11 Yao Qi <yao@codesourcery.com>
2729 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2730 (thumb_in_function_epilogue_p): Call
2731 thumb_instruction_restores_sp.
2733 2014-07-11 Yao Qi <yao@codesourcery.com>
2735 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2737 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2739 2014-07-11 Gary Benson <gbenson@redhat.com>
2741 * amd64-linux-nat.c (gdbcore.h): Remove include.
2742 (regset.h): Likewise.
2743 (nat/linux-btrace.h): Likewise.
2744 (btrace.h): Likewise.
2745 (gdb_assert.h): Likewise.
2746 (string.h): Likewise.
2747 (sys/uio.h): Likewise.
2748 (sys/debugreg.h): Likewise.
2749 (sys/syscall.h): Likewise.
2750 (sys/procfs.h): Likewise.
2751 (sys/user.h): Likewise.
2752 (asm/ptrace.h): Likewise.
2753 (i386-nat.h): Likewise.
2754 * i386-linux-nat.c (i386-nat.h): Likewise.
2755 (regset.h): Likewise.
2756 (target.h): Likewise.
2757 (linux-nat.h): Likewise.
2758 (nat/linux-btrace.h): Likewise.
2759 (btrace.h): Likewise.
2760 (gdb_assert.h): Likewise.
2761 (string.h): Likewise.
2762 (sys/uio.h): Likewise.
2763 (sys/user.h): Likewise.
2764 (sys/procfs.h): Likewise.
2765 (sys/reg.h): Likewise.
2766 (sys/debugreg.h): Likewise.
2767 (ORIG_EAX): Remove definition.
2769 2014-07-11 Gary Benson <gbenson@redhat.com>
2771 * i386-linux-nat.h: New file.
2772 * x86-linux-nat.h: Likewise.
2773 * x86-linux-nat.c: Likewise.
2774 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2775 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2776 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2777 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2778 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2779 (PTRACE_SETREGSET): Likewise.
2780 (arch_lwp_info): Now in x86-linux-nat.c.
2781 (have_ptrace_getregset): Now in x86-linux-nat.h.
2782 (x86_linux_dr_get): Now in x86-linux-nat.c.
2783 (x86_linux_dr_set): Likewise.
2784 (x86_linux_dr_get_addr): Likewise.
2785 (x86_linux_dr_get_control): Likewise.
2786 (x86_linux_dr_get_status): Likewise.
2787 (update_debug_registers_callback): Likewise.
2788 (x86_linux_dr_set_control): Likewise.
2789 (x86_linux_dr_set_addr): Likewise.
2790 (x86_linux_prepare_to_resume): Likewise.
2791 (x86_linux_new_thread): Likewise.
2792 (x86_linux_new_fork): Likewise.
2793 (x86_linux_get_thread_area): Likewise.
2794 (super_post_startup_inferior): Likewise.
2795 (x86_linux_child_post_startup_inferior): Likewise.
2796 (AMD64_LINUX_USER64_CS): Likewise.
2797 (AMD64_LINUX_X32_DS): Likewise.
2798 (x86_linux_read_description): Likewise.
2799 (x86_linux_enable_btrace): Likewise.
2800 (x86_linux_disable_btrace): Likewise.
2801 (x86_linux_teardown_btrace): Likewise.
2802 (x86_linux_read_btrace): Likewise.
2803 (x86_linux_create_target): Likewise.
2804 (x86_linux_add_target): Likewise.
2805 * i386-linux-nat.c (x86-linux-nat.h): New include.
2806 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2807 (PTRACE_SETREGSET): Likewise.
2808 (arch_lwp_info): Now in x86-linux-nat.c.
2809 (have_ptrace_getregset): Now in x86-linux-nat.h.
2810 (x86_linux_dr_get): Now in x86-linux-nat.c.
2811 (x86_linux_dr_set): Likewise.
2812 (x86_linux_dr_get_addr): Likewise.
2813 (x86_linux_dr_get_control): Likewise.
2814 (x86_linux_dr_get_status): Likewise.
2815 (update_debug_registers_callback): Likewise.
2816 (x86_linux_dr_set_control): Likewise.
2817 (x86_linux_dr_set_addr): Likewise.
2818 (x86_linux_prepare_to_resume): Likewise.
2819 (x86_linux_new_thread): Likewise.
2820 (x86_linux_new_fork): Likewise.
2821 (x86_linux_get_thread_area): Likewise.
2822 (super_post_startup_inferior): Likewise.
2823 (x86_linux_child_post_startup_inferior): Likewise.
2824 (AMD64_LINUX_USER64_CS): Likewise.
2825 (AMD64_LINUX_X32_DS): Likewise.
2826 (x86_linux_read_description): Likewise.
2827 (x86_linux_enable_btrace): Likewise.
2828 (x86_linux_disable_btrace): Likewise.
2829 (x86_linux_teardown_btrace): Likewise.
2830 (x86_linux_read_btrace): Likewise.
2831 (x86_linux_create_target): Likewise.
2832 (x86_linux_add_target): Likewise.
2834 2014-07-11 Gary Benson <gbenson@redhat.com>
2836 * amd64-linux-nat.c: Comment and whitespace changes.
2837 * i386-linux-nat.c: Comment and whitespace changes.
2839 2014-07-11 Gary Benson <gbenson@redhat.com>
2841 * amd64-linux-nat.c (x86_linux_create_target): New function.
2842 (x86_linux_add_target): Likewise.
2843 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2844 * i386-linux-nat.c (x86_linux_create_target): New function.
2845 (x86_linux_add_target): Likewise.
2846 (_initialize_i386_linux_nat): Delegate to the above new functions.
2848 2014-07-11 Gary Benson <gbenson@redhat.com>
2850 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2851 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2852 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2853 (ps_get_thread_area): Delegate to the above.
2855 2014-07-11 Gary Benson <gbenson@redhat.com>
2857 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2858 x86_linux_read_description. All uses updated. amd64-specific
2859 code conditionalized. Conditionalized i386-specific code added.
2860 Redundant cast removed.
2861 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2862 x86_linux_read_description. All uses updated. i386-specific
2863 code conditionalized. Conditionalized amd64-specific code added.
2864 One sizeof replaced with the actual type it is describing.
2866 2014-07-11 Gary Benson <gbenson@redhat.com>
2868 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2869 x86_linux_dr_get. All uses updated.
2870 (amd64_linux_dr_set): Renamed to
2871 x86_linux_dr_set. All uses updated.
2872 (amd64_linux_dr_get_addr): Renamed to
2873 x86_linux_dr_get_addr. All uses updated.
2874 (amd64_linux_dr_get_control): Renamed to
2875 x86_linux_dr_get_control. All uses updated.
2876 (amd64_linux_dr_get_status): Renamed to
2877 x86_linux_dr_get_status. All uses updated.
2878 (amd64_linux_dr_set_control): Renamed to
2879 x86_linux_dr_set_control. All uses updated.
2880 (amd64_linux_dr_set_addr): Renamed to
2881 x86_linux_dr_set_addr. All uses updated.
2882 (amd64_linux_prepare_to_resume): Renamed to
2883 x86_linux_prepare_to_resume. All uses updated.
2884 (amd64_linux_new_thread): Renamed to
2885 x86_linux_new_thread. All uses updated.
2886 (amd64_linux_new_fork): Renamed to
2887 x86_linux_new_fork. All uses updated.
2888 (amd64_linux_child_post_startup_inferior): Renamed to
2889 x86_linux_child_post_startup_inferior. All uses updated.
2890 (amd64_linux_enable_btrace): Renamed to
2891 x86_linux_enable_btrace. All uses updated.
2892 (amd64_linux_disable_btrace): Renamed to
2893 x86_linux_disable_btrace. All uses updated.
2894 (amd64_linux_teardown_btrace): Renamed to
2895 x86_linux_teardown_btrace. All uses updated.
2896 (amd64_linux_read_btrace): Renamed to
2897 x86_linux_read_btrace. All uses updated.
2898 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2899 x86_linux_dr_get. All uses updated.
2900 (i386_linux_dr_set): Renamed to
2901 x86_linux_dr_set. All uses updated.
2902 (i386_linux_dr_get_addr): Renamed to
2903 x86_linux_dr_get_addr. All uses updated.
2904 (i386_linux_dr_get_control): Renamed to
2905 x86_linux_dr_get_control. All uses updated.
2906 (i386_linux_dr_get_status): Renamed to
2907 x86_linux_dr_get_status. All uses updated.
2908 (i386_linux_dr_set_control): Renamed to
2909 x86_linux_dr_set_control. All uses updated.
2910 (i386_linux_dr_set_addr): Renamed to
2911 x86_linux_dr_set_addr. All uses updated.
2912 (i386_linux_prepare_to_resume): Renamed to
2913 x86_linux_prepare_to_resume. All uses updated.
2914 (i386_linux_new_thread): Renamed to
2915 x86_linux_new_thread. All uses updated.
2916 (i386_linux_new_fork): Renamed to
2917 x86_linux_new_fork. All uses updated.
2918 (i386_linux_child_post_startup_inferior): Renamed to
2919 x86_linux_child_post_startup_inferior. All uses updated.
2920 (i386_linux_enable_btrace): Renamed to
2921 x86_linux_enable_btrace. All uses updated.
2922 (i386_linux_disable_btrace): Renamed to
2923 x86_linux_disable_btrace. All uses updated.
2924 (i386_linux_teardown_btrace): Renamed to
2925 x86_linux_teardown_btrace. All uses updated.
2926 (i386_linux_read_btrace): Renamed to
2927 x86_linux_read_btrace. All uses updated.
2929 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2931 * remote.c (extended_remote_post_attach): New function.
2932 (init_extended_remote_ops): Install it as to_post_attach method.
2934 2014-07-09 Pedro Alves <palves@redhat.com>
2936 * infcmd.c (attach_command_post_wait): Don't call
2937 target_terminal_inferior here.
2938 (attach_command): Call it here instead.
2940 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2942 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2944 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2945 from varobj.c, with additional checks.
2946 (c_varobj_ops): Fill in is_path_expr_parent field.
2947 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2948 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2950 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2952 (varobj_default_is_path_expr_parent): New function.
2953 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2954 (varobj_default_is_path_expr_parent): Declare new function.
2956 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2958 * infcmd.c (finish_backward): Turn internal error into normal error.
2960 2014-07-07 Pedro Alves <palves@redhat.com>
2963 * remote.c (async_handle_remote_sigint)
2964 (async_handle_remote_sigint_twice): Call
2965 gdb_call_async_signal_handler instead of
2966 mark_async_signal_handler.
2968 2014-07-07 Tom Tromey <tromey@redhat.com>
2970 * target-delegates.c: Rebuild.
2971 * target.c (target_info_record): Remove.
2972 * record.c (info_record_command): Unconditionally call
2974 * target.h (struct target_ops) <to_info_record>: Use
2975 TARGET_DEFAULT_IGNORE.
2976 (target_info_record): Remove.
2978 2014-07-07 Tom Tromey <tromey@redhat.com>
2980 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2981 TARGET_DEFAULT_NORETURN.
2982 * target.c (generic_tls_error): New function.
2983 (target_translate_tls_address): Don't search target stack.
2984 * target-delegates.c: Rebuild.
2985 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2987 * linux-thread-db.c (thread_db_get_thread_local_address):
2988 Unconditionally call beneath target.
2990 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2992 * cli/cli-logging.c (pop_output_files): Assign targerr to
2995 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2997 * MAINTAINERS (Write After Approval): Update my email address.
2999 2014-07-02 Gary Benson <gbenson@redhat.com>
3001 * proc-service.c (ps_xfer_memory): Update comment.
3002 (ps_pstop): Remove unused function.
3003 (ps_pcontinue): Likewise.
3004 (ps_lstop): Likewise.
3005 (ps_lcontinue): Likewise.
3006 (ps_lgetxregsize): Likewise.
3007 (ps_lgetxregs): Likewise.
3008 (ps_lsetxregs): Likewise.
3009 (ps_plog): Likewise.
3010 (ps_ptread): Likewise.
3011 (ps_ptwrite): Likewise.
3013 2014-07-01 Mark Wielaard <mjw@redhat.com>
3015 * dwarf2read.c (add_array_cv_type): New function.
3016 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
3017 (read_tag_volatile_type): Likewise.
3019 2014-07-01 Tom Tromey <tromey@redhat.com>
3021 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
3022 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
3023 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
3024 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
3025 * command.h (cmd_cfunc_ftype): Move earlier.
3026 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
3027 (add_com, add_info): Use cmd_cfunc_ftype.
3029 2014-06-30 Tom Tromey <tromey@redhat.com>
3031 * symtab.c (operator_chars): Make parameters and return type
3033 (file_matches): Make "files" const.
3034 (struct search_symbols_data) <files>: Now const.
3035 (search_symbols): Make "regexp" and "files" parameters const.
3037 (symtab_symbol_info): Remove cast.
3038 (rbreak_command): Update.
3039 * symtab.h (search_symbols): Update.
3041 2014-06-27 Yao Qi <yao@codesourcery.com>
3043 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
3044 Change parameter type to 'struct thread_info *'. Caller
3046 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
3048 * dummy-frame.c (struct dummy_frame_id): New.
3049 (dummy_frame_id_eq): New function.
3050 (struct dummy_frame) <id>: Change its type to 'struct
3052 (dummy_frame_push): Add parameter ptid and save it in
3054 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
3056 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
3058 (lookup_dummy_frame): Change parameter type to 'struct
3059 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
3060 instead of frame_id_eq.
3061 (dummy_frame_pop): Add parameter ptid. Callers updated.
3062 Update comments. Compose dummy_frame_id and pass it to
3064 (dummy_frame_discard): Add parameter ptid.
3065 (dummy_frame_sniffer): Compose dummy_frame_id and call
3066 dummy_frame_id_eq instead of frame_id_eq.
3067 (fprint_dummy_frames): Print ptid.
3068 * dummy-frame.h: Remove comments.
3069 (dummy_frame_push): Add ptid in declaration.
3070 (dummy_frame_pop, dummy_frame_discard): Likewise.
3072 2014-06-26 Tom Tromey <tromey@redhat.com>
3074 * cli/cli-cmds.c (error_no_arg): Make "why" const.
3075 * command.h (error_no_arg): Update.
3077 2014-06-26 Tom Tromey <tromey@redhat.com>
3079 * cli/cli-setshow.c (do_set_command): Make "arg" const.
3080 (do_show_command): Make "arg" const.
3081 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
3083 2014-06-26 Tom Tromey <tromey@redhat.com>
3085 * record-full.c (record_full_get_bookmark): Make "args" const.
3086 (record_full_goto_bookmark): Make "raw_bookmark" const.
3087 * record.c (record_goto): New function.
3088 (cmd_record_goto): Use it. Now static.
3089 * record.h (record_goto): Declare.
3090 (cmd_record_goto): Remove declaration.
3091 * target-delegates.c: Rebuild.
3092 * target.h (struct target_ops) <to_get_bookmark,
3093 to_goto_bookmark>: Make parameter const.
3095 2014-06-26 Tom Tromey <tromey@redhat.com>
3097 * defs.h (generic_load): Update.
3098 * m32r-rom.c (m32r_load_gen): Make "filename" const.
3099 * monitor.c (monitor_load): Make "args" const.
3100 * remote-m32r-sdi.c (m32r_load): Make "args" const.
3101 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
3103 (mips_load): Make "file" const.
3104 * remote-sim.c (gdbsim_load): Make "args" const.
3105 * remote.c (remote_load): Make "name" const.
3106 * symfile.c (generic_load): Make "args" const.
3107 * target-delegates.c: Rebuild.
3108 * target.c (target_load): Make "arg" const.
3109 (debug_to_load): Make "args" const.
3110 * target.h (struct target_ops) <to_load>: Make parameter const.
3111 (target_load): Update.
3113 2014-06-26 Tom Tromey <tromey@redhat.com>
3116 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
3117 (dwarf2_physname, read_partial_die)
3118 (guess_partial_die_structure_name, fixup_partial_die)
3119 (guess_full_die_structure_name, anonymous_struct_prefix)
3120 (dwarf2_name): Use per-BFD obstack.
3122 2014-06-26 Yao Qi <yao@codesourcery.com>
3124 * dummy-frame.c (dummy_frame_sniffer): Move local variables
3125 dummyframe and this_id into inner block below.
3127 2014-06-26 Yao Qi <yao@codesourcery.com>
3129 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
3130 with "signal_pass[0]" in the initialization of signal_pass.
3132 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3134 * record-btrace.c (record_btrace_generating_corefile)
3135 (record_btrace_prepare_to_generate_core)
3136 (record_btrace_done_generating_core): New.
3137 (record_btrace_xfer_partial, record_btrace_fetch_registers)
3138 (record_btrace_store_registers, record_btrace_prepare_to_store):
3139 Forward request when generating a core file.
3140 (record_btrace_open): Set record_btrace_generating_corefile to zero.
3141 (init_record_btrace_ops): Set to_prepare_to_generate_core and
3142 to_done_generating_core.
3144 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3146 * target.h (target_ops) <to_prepare_to_generate_core>
3147 <to_done_generating_core>: New.
3148 (target_prepare_to_generate_core, target_done_generating_core): New.
3149 * target.c (target_prepare_to_generate_core)
3150 (target_done_generating_core): New.
3151 * target-delegates.c: Regenerate.
3152 * gcore.c: (write_gcore_file): Rename to ...
3153 (write_gcore_file_1): ...this.
3154 (write_gcore_file): Call target_prepare_to_generate_core
3155 and target_done_generating_core.
3157 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
3159 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
3160 * gcore.c (write_gcore_file): Free memory returned from
3161 make_corefile_notes.
3162 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
3163 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
3165 2014-06-24 Yao Qi <yao@codesourcery.com>
3167 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
3168 (arm_linux_init_abi): Set skip_trampoline_code with
3169 gdbarch_skip_trampoline_code instead of
3170 find_solib_trampoline_target.
3172 2014-06-24 Yao Qi <yao@codesourcery.com>
3174 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
3175 arm_skip_bx_reg returns non-zero.
3177 2014-06-24 Yao Qi <yao@codesourcery.com>
3179 * arm-tdep.c (arm_skip_bx_reg): New function.
3180 (arm_skip_stub): Call arm_skip_bx_reg.
3182 2014-06-23 Don Breazeal <donb@codesourcery.com>
3184 * MAINTAINERS: Add myself as write-after-approval maintainer.
3186 2014-06-23 Pedro Alves <palves@redhat.com>
3188 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
3189 DR_CONTROL before setting DR0..DR3.
3190 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
3191 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
3192 bits of DR_CONTROL related to the debug register slot being
3193 disabled. If all slots are vacant, clear local slowdown as well,
3194 and assert DR_CONTROL is 0.
3196 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
3198 * python/lib/gdb/command/xmethods.py
3199 (get_method_matchers_in_loci): Lookup xmethod matchers in the
3200 current progspace only if the string "progspace" matches LOCUS_RE.
3202 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3204 Fix --with-system-readline with readline-6.3 patch 5.
3205 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
3206 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
3209 2014-06-20 Tom Tromey <tromey@redhat.com>
3211 * dwarf2read.c (dw2_get_real_path): Use correct type in
3213 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
3215 2014-06-20 Gary Benson <gbenson@redhat.com>
3217 * common/gdb_thread_db.h: Moved to nat. All includes updated.
3218 * common/glibc_thread_db.h: Likewise.
3219 * common/i386-cpuid.h: Likewise.
3220 * common/i386-gcc-cpuid.h: Likewise.
3221 * common/linux-btrace.h: Likewise.
3222 * common/linux-osdata.h: Likewise.
3223 * common/linux-procfs.h: Likewise.
3224 * common/linux-ptrace.h: Likewise.
3225 * common/mips-linux-watch.h: Likewise.
3226 * common/linux-btrace.c: Moved to nat.
3227 * common/linux-osdata.c: Likewise.
3228 * common/linux-procfs.c: Likewise.
3229 * common/linux-ptrace.c: Likewise.
3230 * common/mips-linux-watch.c: Likewise.
3231 * nat/gdb_thread_db.h: Moved from common.
3232 * nat/glibc_thread_db.h: Likewise.
3233 * nat/i386-cpuid.h: Likewise.
3234 * nat/i386-gcc-cpuid.h: Likewise.
3235 * nat/linux-btrace.c: Likewise.
3236 * nat/linux-btrace.h: Likewise.
3237 * nat/linux-osdata.c: Likewise.
3238 * nat/linux-osdata.h: Likewise.
3239 * nat/linux-procfs.c: Likewise.
3240 * nat/linux-procfs.h: Likewise.
3241 * nat/linux-ptrace.c: Likewise.
3242 * nat/linux-ptrace.h: Likewise.
3243 * nat/mips-linux-watch.c: Likewise.
3244 * nat/mips-linux-watch.h: Likewise.
3245 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3246 (object file files): Reordered.
3247 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3248 of glibc_thread_db.h.
3250 2014-06-20 Gary Benson <gbenson@redhat.com>
3252 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3253 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3254 (i386_dr_low): Likewise.
3255 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3256 (i386_dr_low_set_addr): Likewise.
3257 (i386_dr_low_get_addr): Likewise.
3258 (i386_dr_low_can_set_control): Likewise.
3259 (i386_dr_low_set_control): Likewise.
3260 (i386_dr_low_get_control): Likewise.
3261 (i386_dr_low_get_status): Likewise.
3262 (i386_get_debug_register_length): Likewise.
3263 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3264 (i386_dr_low): Likewise.
3265 * nat/i386-dregs.c (i386-low.h): Remove include.
3266 (i386-nat.h): Likewise.
3267 (nat/i386-dregs.h): New include.
3268 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3269 (i386_dr_low_set_addr): Likewise.
3270 (i386_dr_low_get_addr): Likewise.
3271 (i386_dr_low_can_set_control): Likewise.
3272 (i386_dr_low_set_control): Likewise.
3273 (i386_dr_low_get_control): Likewise.
3274 (i386_dr_low_get_status): Likewise.
3275 (i386_get_debug_register_length): Likewise.
3276 (debug_hw_points): Likewise.
3278 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3280 * Makefile.in (SFILES): Add d-exp.y.
3281 (YYFILES): Add d-exp.c.
3282 (YYOBJ): Add d-exp.o.
3283 (local-maintainer-clean): Delete d-exp.c.
3284 * d-exp.y: New file.
3285 * d-lang.h (d_parse): New declaration.
3286 (d_error): New declaration.
3287 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3288 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3289 PREC_ORDER operators.
3290 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3292 2014-06-19 Yao Qi <yao@codesourcery.com>
3294 * gdbthread.h (any_running): Remove the declaration.
3295 * thread.c (any_running): Remove.
3297 2014-06-19 Yao Qi <yao@codesourcery.com>
3299 * gdbthread.h (struct thread_info) <state>: Change its type to
3300 'enum thread_state'. Update comments.
3302 2014-06-19 Pedro Alves <palves@redhat.com>
3304 * gdbthread.h (ALL_THREADS): Delete.
3305 (ALL_NON_EXITED_THREADS): New macro.
3306 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3307 instead of ALL_THREADS.
3308 * infrun.c (find_thread_needs_step_over)
3309 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3310 instead of ALL_THREADS.
3311 * record-btrace.c (record_btrace_open)
3312 (record_btrace_stop_recording, record_btrace_close)
3313 (record_btrace_is_replaying, record_btrace_resume)
3314 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3315 * remote.c (append_pending_thread_resumptions): Likewise.
3316 * thread.c (thread_apply_all_command): Likewise.
3318 2014-06-19 Gary Benson <gbenson@redhat.com>
3320 * i386-nat.c (i386_stopped_by_watchpoint):
3321 Use i386_dr_stopped_by_watchpoint.
3322 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3323 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3325 2014-06-19 Gary Benson <gbenson@redhat.com>
3327 * nat/i386-dregs.c: New file.
3328 * Makefile.in (i386-dregs.o): New rule.
3329 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3330 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3331 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3332 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3333 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3334 * config/i386/go32.mh (NATDEPFILES): Likewise.
3335 * config/i386/linux.mh (NATDEPFILES): Likewise.
3336 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3337 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3338 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3339 * i386-nat.h (debug_hw_points): New declaration.
3340 * i386-nat.c (breakpoint.h): Remove include.
3341 (command.h): Likewise.
3342 (target.h): Likewise.
3343 (gdb_assert.h): Likewise.
3344 (debug_hw_points): Made nonstatic.
3345 (debug_printf): Now in i386-dregs.c.
3346 (TARGET_HAS_DR_LEN_8): Likewise.
3347 (DR_CONTROL_SHIFT): Likewise.
3348 (DR_CONTROL_SIZE): Likewise.
3349 (DR_RW_EXECUTE): Likewise.
3350 (DR_RW_WRITE): Likewise.
3351 (DR_RW_READ): Likewise.
3352 (DR_RW_IORW): Likewise.
3353 (DR_LEN_1): Likewise.
3354 (DR_LEN_2): Likewise.
3355 (DR_LEN_4): Likewise.
3356 (DR_LEN_8): Likewise.
3357 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3358 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3359 (DR_ENABLE_SIZE): Likewise.
3360 (DR_LOCAL_SLOWDOWN): Likewise.
3361 (DR_GLOBAL_SLOWDOWN): Likewise.
3362 (DR_CONTROL_RESERVED): Likewise.
3363 (I386_DR_CONTROL_MASK): Likewise.
3364 (I386_DR_VACANT): Likewise.
3365 (I386_DR_LOCAL_ENABLE): Likewise.
3366 (I386_DR_GLOBAL_ENABLE): Likewise.
3367 (I386_DR_DISABLE): Likewise.
3368 (I386_DR_SET_RW_LEN): Likewise.
3369 (I386_DR_GET_RW_LEN): Likewise.
3370 (I386_DR_WATCH_HIT): Likewise.
3371 (i386_wp_op_t): Likewise.
3372 (i386_show_dr): Likewise.
3373 (i386_length_and_rw_bits): Likewise.
3374 (i386_insert_aligned_watchpoint): Likewise.
3375 (i386_remove_aligned_watchpoint): Likewise.
3376 (i386_handle_nonaligned_watchpoint): Likewise.
3377 (i386_update_inferior_debug_regs): Likewise.
3378 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3379 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3380 (i386_region_ok_for_watchpoint):
3381 Use i386_dr_region_ok_for_watchpoint.
3382 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3384 2014-06-19 Gary Benson <gbenson@redhat.com>
3386 * i386-nat.c (i386_insert_hw_breakpoint): Use
3387 i386_insert_watchpoint.
3388 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3390 2014-06-19 Gary Benson <gbenson@redhat.com>
3392 * i386-nat.c (i386_dr_show): Renamed to
3393 i386_show_dr and made static. All uses updated.
3394 (i386_dr_length_and_rw_bits): Renamed to
3395 i386_length_and_rw_bits and made static.
3397 (i386_dr_insert_aligned_watchpoint): Renamed to
3398 i386_insert_aligned_watchpoint and made static.
3400 (i386_dr_remove_aligned_watchpoint): Renamed to
3401 i386_remove_aligned_watchpoint and made static.
3403 (i386_dr_update_inferior_debug_regs): Renamed to
3404 i386_update_inferior_debug_regs and made static.
3406 * nat/i386-dregs.h (i386_dr_show): Removed.
3407 (i386_dr_length_and_rw_bits): Likewise.
3408 (i386_dr_insert_aligned_watchpoint): Likewise.
3409 (i386_dr_remove_aligned_watchpoint): Likewise.
3410 (i386_dr_update_inferior_debug_regs): Likewise.
3412 2014-06-19 Gary Benson <gbenson@redhat.com>
3414 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3415 * configure: Regenerate.
3416 * config.in: Likewise.
3417 * main.c (signal.h): New include.
3418 (setup_alternate_signal_stack): New function.
3419 (captured_main): Call the above.
3420 * cp-support.c (signal.h): New include.
3421 (catch_demangler_crashes): New flag.
3422 (SIGJMP_BUF): New define.
3423 (SIGSETJMP): Likewise.
3424 (SIGLONGJMP): Likewise.
3425 (gdb_demangle_jmp_buf): New static global.
3426 (gdb_demangle_attempt_core_dump): Likewise.
3427 (gdb_demangle_signal_handler): New function.
3428 (gdb_demangle): If catch_demangler_crashes is set, install the
3429 above signal handler before calling bfd_demangle, and restore
3430 the original signal handler afterwards. Display the offending
3431 symbol and call demangler_warning the first time a segmentation
3433 (_initialize_cp_support): New maint set/show command.
3435 2014-06-19 Gary Benson <gbenson@redhat.com>
3437 * utils.h (resource_limit_kind): New enum.
3438 (can_dump_core): New declaration.
3439 (warn_cant_dump_core): Likewise.
3440 (dump_core): Likewise.
3441 * utils.c (dump_core): Made nonstatic. Added new
3442 parameter "limit_kind".
3443 (can_dump_core): Made nonstatic. Moved printing code to...
3444 (warn_cant_dump_core): New function.
3445 (can_dump_core_warn): Likewise.
3446 (internal_vproblem): Replace calls to can_dump_core with
3447 calls to can_dump_core_warn. Supply new argument to each.
3449 2014-06-19 Gary Benson <gbenson@redhat.com>
3451 * utils.h (demangler_vwarning): New declaration.
3452 (demangler_warning): Likewise.
3453 * utils.c (struct internal_problem)
3454 <user_settable_should_quit>: New field.
3455 <user_settable_should_dump_core>: Likewise
3456 (internal_error_problem): Add values for above new fields.
3457 (internal_warning_problem): Likewise.
3458 (demangler_warning_problem): New static global.
3459 (demangler_vwarning): New function.
3460 (demangler_warning): Likewise.
3461 (add_internal_problem_command): Selectively add commands.
3462 (_initialize_utils): New internal problem command.
3463 * maint.c (maintenance_demangler_warning): New function.
3464 (_initialize_maint_cmds): New command.
3466 2014-06-18 Tom Tromey <tromey@redhat.com>
3468 * f-valprint.c (info_common_command_for_block): Update.
3469 * symtab.h (struct general_symbol_info) <common_block>: Now
3472 2014-06-18 Tom Tromey <tromey@redhat.com>
3474 * symtab.h (struct symtab) <blockvector>: Now const.
3475 * ada-lang.c (ada_add_global_exceptions): Update.
3476 * buildsym.c (augment_type_symtab): Update.
3477 * dwarf2read.c (dw2_lookup_symbol): Update.
3478 * jit.c (finalize_symtab): Update.
3479 * jv-lang.c (add_class_symtab_symbol): Update.
3480 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3482 * objfiles.c (objfile_relocate1): Update.
3483 * psymtab.c (lookup_symbol_aux_psymtabs)
3484 (maintenance_check_psymtabs): Update.
3485 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3487 * spu-tdep.c (spu_catch_start): Update.
3488 * symmisc.c (dump_symtab_1): Update.
3489 * symtab.c (lookup_global_symbol_from_objfile)
3490 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3491 (basic_lookup_transparent_type_quick)
3492 (basic_lookup_transparent_type, find_pc_sect_symtab)
3493 (find_pc_sect_line, search_symbols): Update.
3494 * block.c (find_block_in_blockvector): Make "bl" const.
3495 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3497 (blockvector_contains_pc): Make "bv" const.
3498 (block_for_pc_sect): Update.
3499 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3500 (blockvector_contains_pc): Update.
3501 * breakpoint.c (resolve_sal_pc): Update.
3502 * inline-frame.c (block_starting_point_at): Update.
3504 2014-06-18 Tom Tromey <tromey@redhat.com>
3506 * completer.c (complete_line): Make "line_buffer" const.
3507 * completer.h (complete_line): Update.
3509 2014-06-18 Tom Tromey <tromey@redhat.com>
3511 * symtab.c (add_macro_name): Remove unneeded cast.
3513 2014-06-18 Tom Tromey <tromey@redhat.com>
3515 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3516 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3518 2014-06-18 Tom Tromey <tromey@redhat.com>
3520 * probe.c (info_probes_for_ops): Make "arg" const.
3521 * probe.h (info_probes_for_ops): Update.
3523 2014-06-18 Tom Tromey <tromey@redhat.com>
3525 * varobj.c (varobj_create): Update.
3526 * valops.c (value_of_this): Update.
3527 * tracepoint.c (add_local_symbols, scope_info): Update.
3528 * symtab.h (struct general_symbol_info) <block>: Now const.
3529 * symtab.c (skip_prologue_sal)
3530 (default_make_symbol_completion_list_break_on)
3531 (skip_prologue_using_sal): Update.
3532 * stack.h (iterate_over_block_locals)
3533 (iterate_over_block_local_vars): Update.
3534 * stack.c (print_frame_args): Update.
3535 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3537 (get_selected_block): Make return type const.
3538 * python/py-frame.c (frapy_block): Update.
3539 * python/py-block.c (gdbpy_block_for_pc): Update.
3540 * p-exp.y (%union) <bval>: Now const.
3541 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3542 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3543 * m2-exp.y (%union) <bval>: Now const.
3544 * linespec.c (get_current_search_block): Make return type const.
3545 (create_sals_line_offset, find_label_symbols): Update.
3546 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3548 (block_starting_point_at): Make "block" const.
3549 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3550 (check_exception_resume): Update.
3551 * guile/scm-frame.c (gdbscm_frame_block): Update.
3552 * guile/scm-block.c (gdbscm_lookup_block): Update.
3553 * frame.h (get_frame_block): Update.
3554 (get_selected_block): Make return type const.
3555 * frame.c (frame_id_inner): Update.
3556 * f-valprint.c (info_common_command_for_block)
3557 (info_common_command): Update.
3558 * dwarf2loc.c (dwarf2_find_location_expression)
3559 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3560 (locexpr_describe_location_piece): Update.
3561 * c-exp.y (%union) <bval>: Now const.
3562 * breakpoint.c (resolve_sal_pc): Update.
3563 * blockframe.c (get_frame_block):Make return type const.
3564 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3565 (block_innermost_frame): Update.
3566 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3567 (block_for_pc, block_for_pc_sect): Update.
3568 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3570 (block_for_pc_sect, block_for_pc): Make return type const.
3571 * ax-gdb.c (gen_expr): Update.
3572 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3573 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3574 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3575 (ada_read_var_value): Update.
3576 * ada-exp.y (struct name_info) <block>: Now const.
3578 (block_lookup): Constify.
3580 2014-06-18 Gary Benson <gbenson@redhat.com>
3582 * nat/i386-dregs.h: New file.
3583 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3584 * i386-nat.h (i386-dregs.h): New include.
3585 (DR_FIRSTADDR): Now in i386-dregs.h.
3586 (DR_LASTADDR): Likewise.
3587 (DR_NADDR): Likewise.
3588 (DR_STATUS): Likewise.
3589 (DR_CONTROL): Likewise.
3590 (i386_debug_reg_state): Likewise.
3591 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3593 2014-06-18 Don Breazeal <donb@codesourcery.com>
3595 * breakpoint.c (set_longjmp_breakpoint): Call
3596 momentary_breakpoint_from_master with additional argument.
3597 (set_longjmp_breakpoint_for_call_dummy): Call
3598 momentary_breakpoint_from_master with additional argument.
3599 (set_std_terminate_breakpoint): Call
3600 momentary_breakpoint_from_master with additional argument.
3601 (momentary_breakpoint_from_master): Add argument to function
3602 definition and use it to initialize structure member flag.
3603 (clone_momentary_breakpoint): Call
3604 momentary_breakpoint_from_master with additional argument.
3605 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3606 member flags set in momentary_breakpoint_from_master.
3608 2014-06-18 Gary Benson <gbenson@redhat.com>
3610 * i386-nat.c (i386_show_dr): Renamed to
3611 i386_dr_show and made nonstatic. All uses updated.
3612 (i386_length_and_rw_bits): Renamed to
3613 i386_dr_length_and_rw_bits and made nonstatic.
3615 (i386_insert_aligned_watchpoint): Renamed to
3616 i386_dr_insert_aligned_watchpoint and made nonstatic.
3618 (i386_remove_aligned_watchpoint): Renamed to
3619 i386_dr_remove_aligned_watchpoint and made nonstatic.
3621 (i386_update_inferior_debug_regs): Renamed to
3622 i386_dr_update_inferior_debug_regs and made nonstatic.
3625 2014-06-18 Gary Benson <gbenson@redhat.com>
3627 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3628 (i386_dr_low_can_set_control): Likewise.
3629 (i386_dr_low_set_addr): Likewise.
3630 (i386_dr_low_set_control): Likewise.
3631 (i386_dr_low_get_addr): Likewise.
3632 (i386_dr_low_get_status): Likewise.
3633 (i386_dr_low_get_control): Likewise.
3634 (i386_insert_aligned_watchpoint): Use new macros.
3635 (i386_update_inferior_debug_regs): Likewise.
3636 (i386_stopped_data_address): Likewise.
3638 2014-06-18 Gary Benson <gbenson@redhat.com>
3640 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3641 New parameter. All uses updated.
3643 2014-06-18 Gary Benson <gbenson@redhat.com>
3645 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3648 2014-06-18 Gary Benson <gbenson@redhat.com>
3650 * i386-nat.c (debug_printf): New macro.
3651 (i386_get_debug_register_length): Likewise.
3652 (TARGET_HAS_DR_LEN_8): Use above macro.
3653 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3654 and printf_unfiltered. Use phex to format values.
3656 2014-06-18 Gary Benson <gbenson@redhat.com>
3658 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3661 2014-06-18 Gary Benson <gbenson@redhat.com>
3663 * i386-nat.c: Comment changes.
3665 2014-06-18 Gary Benson <gbenson@redhat.com>
3667 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3669 2014-06-18 Gary Benson <gbenson@redhat.com>
3671 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3672 (i386_insert_aligned_watchpoint): Likewise.
3673 (i386_remove_aligned_watchpoint): Likewise.
3674 (i386_handle_nonaligned_watchpoint): Likewise.
3676 2014-06-18 Gary Benson <gbenson@redhat.com>
3678 * i386-nat.c: Whitespace changes.
3680 2014-06-17 Samuel Bronson <naesten@gmail.com>
3682 * MAINTAINERS: Update Roland McGrath's email address.
3683 Thanks to Sergio Durigan Junior for pointing out that he left
3684 Red Hat a while ago, and giving me a current address.
3686 2014-06-17 Tom Tromey <tromey@redhat.com>
3688 * utils.h (savestring): Remove declaration.
3690 2014-06-17 Tom Tromey <tromey@redhat.com>
3692 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3694 2014-06-16 Keith Seitz <keiths@redhat.com>
3697 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3698 to update the varobj if inferior_ptid is null_ptid.
3700 2014-06-16 Tom Tromey <tromey@redhat.com>
3702 * target.h (struct target_ops) <to_info_proc>: Make parameter
3704 (target_info_proc): Update.
3705 * target.c (target_info_proc): Make "args" const.
3706 * procfs.c (procfs_info_proc): Update.
3707 * linux-tdep.c (linux_info_proc): Update.
3708 (linux_core_info_proc_mappings): Make "args" const.
3709 (linux_core_info_proc): Update.
3710 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3711 * gdbarch.c: Rebuild.
3712 * gdbarch.h: Rebuild.
3713 * corelow.c (core_info_proc): Update.
3715 2014-06-16 Tom Tromey <tromey@redhat.com>
3717 * target.h (struct target_ops) <to_disconnect>: Make parameter
3719 (target_disconnect): Update.
3720 * target.c (target_disconnect): Make "args" const.
3721 * target-delegates.c: Rebuild.
3722 * remote.c (remote_disconnect): Update.
3723 * record.h (record_disconnect): Update.
3724 * record.c (record_disconnect): Update.
3725 * inf-child.c (inf_child_disconnect): Update.
3727 2014-06-16 Tom Tromey <tromey@redhat.com>
3729 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3730 * target.c (debug_to_rcmd, default_rcmd): Update.
3731 * target-delegates.c: Rebuild.
3732 * remote.c (remote_rcmd): Update.
3733 * monitor.c (monitor_rcmd): Update.
3735 2014-06-16 Pedro Alves <palves@redhat.com>
3737 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3738 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3739 have OBJF_SHARED set.
3740 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3741 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3742 instead of OBJF_USERLOADED.
3743 * objfiles.h (OBJF_SHARED): Update comment.
3744 (userloaded_objfile_contains_address_p): Rename to ...
3745 (shared_objfile_contains_address_p): ... this, and update
3747 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3749 (remove_symbol_file_command): Skip objfiles that don't have
3752 2014-06-16 Tom Tromey <tromey@redhat.com>
3754 * minsyms.h (prim_record_minimal_symbol)
3755 (prim_record_minimal_symbol_and_info): Update comments.
3757 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3759 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3760 or --without-guile, according to how GDB was built.
3762 2014-06-13 Tom Tromey <tromey@redhat.com>
3764 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3766 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3768 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3770 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3771 help_list.Pass all_commands, not -1, to help_list.
3772 * cli/cli-dump.c (dump_command, append_command)
3773 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3774 (binary_dump_command, binary_append_command): Pass all_commands,
3775 not -1, to help_list.
3776 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3778 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3780 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3782 * top.c (set_history): Pass all_commands, not -1, to help_list.
3783 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3784 all_commands, not -1, to help_list.
3785 * symfile.c (overlay_command): Pass all_commands, not -1, to
3787 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3789 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3791 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3793 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3794 not -1, to help_list.
3795 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3796 not -1, to help_list.
3797 * maint.c (maintenance_command, maintenance_info_command)
3798 (maintenance_print_command, maintenance_set_cmd): Pass
3799 all_commands, not -1, to help_list.
3800 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3802 * language.c (set_check): Pass all_commands, not -1, to help_list.
3803 * infcmd.c (unset_command): Pass all_commands, not -1, to
3805 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3807 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3809 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3811 * breakpoint.c (save_command): Pass all_commands, not -1, to
3813 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3814 all_commands, not -1, to help_list.
3816 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3818 * regcache.c (struct register_to_invalidate): New structure.
3819 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3821 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3823 2014-06-12 Yao Qi <yao@codesourcery.com>
3825 * varobj.c (varobj_get_num_children): Call
3826 varobj_is_dynamic_p.
3827 (varobj_list_children): Likewise.
3828 (varobj_update): Likewise. Update comments.
3830 2014-06-12 Yao Qi <yao@codesourcery.com>
3832 * varobj.c (varobj_pretty_printed_p): Rename to ...
3833 (varobj_is_dynamic_p): ... this. New function.
3834 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3835 (varobj_is_dynamic_p): Declare.
3836 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3837 (mi_print_value_p, varobj_update_one): Likewise.
3839 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3840 Yao Qi <yao@codesourcery.com>
3842 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3843 (varobj_get_iterator): Wrap up code for pretty-printer by
3844 "#if HAVE_PYTHON" and "#endif".
3845 (update_dynamic_varobj_children): Likewise.
3847 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3848 Yao Qi <yao@codesourcery.com>
3850 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3851 gdb_python_initialized is false. Move some code from varobj.c.
3852 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3853 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3854 (struct varobj_item): Moved to varobj-iter.h".
3855 (varobj_clear_saved_item): New function.
3856 (update_dynamic_varobj_children): Move python-related code to
3858 (free_variable): Call varobj_clear_saved_item and
3861 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3862 Yao Qi <yao@codesourcery.com>
3864 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3865 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3866 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3867 (py-varobj.o): New rule.
3868 * python/py-varobj.c: New file.
3869 * python/python-internal.h (py_varobj_get_iterator): Declare.
3870 * varobj-iter.h: New file.
3871 * varobj.c: Include "varobj-iter.h"
3872 (struct varobj) <child_iter>: Change its type from "PyObject *"
3873 to "struct varobj_iter *".
3874 <saved_item>: Likewise.
3875 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3876 [HAVE_PYTHON] (varobj_get_iterator): New function.
3877 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3878 python-specific code to python/py-varobj.c.
3879 (install_visualizer): Call varobj_iter_delete instead of
3881 * varobj.h (varobj_ensure_python_env): Declare.
3883 2014-06-12 Yao Qi <yao@codesourcery.com>
3885 * varobj.c (struct varobj_item): New structure.
3886 (create_child_with_value): Update declaration.
3887 (varobj_add_child): Replace arguments 'name' and 'value' with
3888 'item'. All callers updated.
3889 (install_dynamic_child): Likewise.
3890 (update_dynamic_varobj_children): Likewise.
3891 (varobj_add_child): Likewise.
3892 (create_child_with_value): Likewise.
3894 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3896 * NEWS: Create a new section for the next release branch.
3897 Rename the section of the current branch, now that it has
3900 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3902 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3903 * version.in: Bump version to 7.8.50.DATE-cvs.
3905 2014-06-11 Pedro Alves <palves@redhat.com>
3908 * ser-mingw.c (net_windows_socket_check_pending): New function.
3909 (net_windows_select_thread): Ignore spurious wakeups. Use
3910 net_windows_socket_check_pending.
3911 (net_windows_wait_handle): Check for pending events with
3912 ioctlsocket, through net_windows_socket_check_pending, instead of
3913 checking the socket's event.
3915 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3917 * python/python-internal.h (gdb_PyObject_GetAttrString)
3918 (gdb_PyObject_HasAttrString): New inline function definitions.
3919 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3920 char * of the second argument to PyObject_GetAttrString.
3922 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3924 * serial.c (serial_write): Fix index of character to be printed
3925 in call to serial_logchar when serial debug traces are enabled.
3927 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3929 * gdbtypes (resolve_dynamic_range): Add function description.
3931 2014-06-09 Pedro Alves <palves@redhat.com>
3933 * linux-nat.c (linux_child_follow_fork): Initialize status with
3934 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3935 inner block. Only pass the signal to PTRACE_DETACH if in pass
3938 2014-06-09 Gary Benson <gbenson@redhat.com>
3940 * common/signals.c (gdb_signal_from_host): Reorder to separate
3941 the always-available ANSI-standard signals from the signals that
3943 (do_gdb_signal_to_host): Likewise.
3944 * proc-events.c (signal_table): Likewise.
3946 2014-06-08 Hui Zhu <hui@codesourcery.com>
3948 * common/linux-ptrace.c (linux_disable_event_reporting): New
3950 * common/linux-ptrace.h (linux_disable_event_reporting): New
3952 * linux-nat.c (linux_child_follow_fork): Do a single step before
3955 2014-06-07 Keith Seitz <keiths@redhat.com>
3959 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3960 from symbol_matches_domain in symtab.c. All local callers
3961 of symbol_matches_domain updated.
3962 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3963 search STRUCT_DOMAIN.
3964 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3965 independently. standard_lookup will do that automatically.
3966 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3967 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3968 (cp_lookup_symbol_in_namespace): Likewise.
3969 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3970 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3971 may return a STRUCT_DOMAIN match.
3972 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3973 * cp-support.c: Include language.h.
3974 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3976 * psymtab.c (match_partial_symbol): Compare the requested
3977 domain with the symbol's domain directly.
3978 (lookup_partial_symbol): Likewise.
3979 * symtab.c (lookup_symbol_in_language): Explain when/why
3980 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3981 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3982 appropriate languages.
3983 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3984 and moved to ada-lang.c
3985 (lookup_block_symbol): Explain that this function only returns
3986 symbol matching the requested DOMAIN.
3987 Compare the requested domain with the symbol's domain directly.
3988 (iterate_over_symbols): Compare the requested domain with the
3989 symbol's domain directly.
3990 * symtab.h (symbol_matches_domain): Remove.
3992 2014-06-06 Doug Evans <xdje42@gmail.com>
3994 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3995 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3996 (gdbscm_guile_version_is_at_least): Declare.
3997 (gdbscm_scm_string_to_int): Declare.
3998 * guile/guile.c (gdbscm_guile_major_version): New global.
3999 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
4000 (guile_datadir): New static global.
4001 (gdbscm_guile_data_directory): New function.
4002 (initialize_scheme_side): Update.
4003 (misc_guile_functions): Add guile-data-directory.
4004 (initialize_gdb_module): Fetch guile version number.
4005 * guile/lib/gdb.scm: Remove call to add-to-load-path.
4006 * guile/lib/gdb/init.scm (%initialize!): Ditto.
4007 * guile/lib/gdb/boot.scm: Use guile-data-directory.
4008 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
4010 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
4011 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
4012 * guile/scm-value.c (gdbscm_value_to_string): Only call
4013 scm_port_conversion_strategy if Guile version >= 2.0.6.
4015 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
4017 * main.c (print_gdb_help): Add -q and --silent.
4019 2014-06-06 Gary Benson <gbenson@redhat.com>
4021 * common/signals.c: Remove preprocessor conditionals for
4022 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
4023 SIGSEGV and SIGTERM.
4024 * proc-events.c: Likewise.
4026 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
4028 * symfile.c (symfile_free_objfile): Remove restriction to
4030 * symfile-mem.c (symbol_file_add_from_memory): Call
4031 add_target_sections_of_objfile.
4033 2014-06-05 Ludovic Courtès <ludo@gnu.org>
4035 * guile/scm-value.c (gdbscm_history_append_x): Use
4036 'vlscm_get_value_smob_arg_unsafe' instead of
4037 'vlscm_scm_to_value'.
4039 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
4042 * utils.c (printchar): Don't escape at all if quoter is NUL.
4043 Update function documentation to clarify effect of parameter
4045 * remote.c (escape_buffer): Pass '\\' as the quoter to
4046 fputstrn_unfiltered.
4047 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
4048 generate the output.
4049 (mi_solib_unloaded): Same.
4051 2014-06-05 Joel Brobecker <brobecker@adacore.com>
4053 * development.sh: Delete.
4054 * Makefile.in (config.status): Adjust dependency on development.sh.
4055 * configure.ac: Adjust development.sh source call.
4056 * configure: Regenerate.
4058 2014-06-04 Doug Evans <xdje42@gmail.com>
4060 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
4061 is_scheme_bkpt, spec.
4062 (bpscm_make_breakpoint_smob): Initialize new members.
4063 (gdbscm_create_breakpoint_x): Split into two ...
4064 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
4065 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
4066 (scheme_function breakpoint_functions): Update.
4067 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
4068 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
4069 register-breakpoint!.
4071 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4074 * mem-break.c (z_type_supported): Return zero if
4075 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
4077 2014-06-04 Tom Tromey <tromey@redhat.com>
4079 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
4080 value_from_contents_and_address_unresolved.
4081 (ada_template_to_fixed_record_type_1): Likewise.
4082 (ada_which_variant_applies): Likewise.
4083 * value.h (value_from_contents_and_address_unresolved): Declare.
4084 * value.c (value_from_contents_and_address_unresolved): New
4086 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
4087 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
4088 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
4090 2014-06-04 Tom Tromey <tromey@redhat.com>
4092 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
4094 2014-06-04 Tom Tromey <tromey@redhat.com>
4096 * procfs.c (procfs_attach): Make "args" const.
4097 * windows-nat.c (windows_attach): Make "args" const.
4098 * nto-procfs.c (procfs_attach): Make "args" const.
4099 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
4100 * go32-nat.c (go32_attach): Make "args" const.
4101 * gnu-nat.c (gnu_attach): Make "args" const.
4102 * darwin-nat.c (darwin_attach): Make "args" const.
4103 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
4104 * linux-nat.c (linux_nat_attach): Make "args" const.
4105 * remote.c (extended_remote_attach_1, extended_remote_attach):
4107 * target.h (struct target_ops) <to_attach>: Make "args" const.
4108 (find_default_attach): Likewise.
4109 * utils.c (parse_pid_to_attach): Make "args" const.
4110 * utils.h (parse_pid_to_attach): Update.
4112 2014-06-04 Tom Tromey <tromey@redhat.com>
4114 * target-delegates.c: Rebuild.
4115 * target.c (default_thread_address_space): New function.
4116 (target_thread_address_space): Simplify.
4117 * target.h (struct target_ops) <to_thread_address_space>: Add
4118 TARGET_DEFAULT_FUNC.
4120 2014-06-04 Doug Evans <xdje42@gmail.com>
4122 * guile/scm-type.c (type_smob): Remove duplicate typedef.
4124 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
4126 * record-btrace.c: Include event-loop.h and inf-loop.h.
4127 (record_btrace_resume_exec_dir)
4128 (record_btrace_async_inferior_event_handler)
4129 (record_btrace_handle_async_inferior_event): New.
4130 (record_btrace_open): Create async event handler.
4131 (record_btrace_close): Delete async event handler.
4132 (record_btrace_resume): Set record_btrace_resume_exec_dir,
4133 Mark async event handler.
4134 (record_btrace_execution_direction): New.
4135 (init_record_btrace_ops): Initialize to_execution_direction.
4137 2014-06-03 Doug Evans <xdje42@gmail.com>
4139 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
4140 (gdbscm_make_parameter): Ditto.
4142 2014-06-03 Doug Evans <dje@google.com>
4144 * exec.c (exec_close_1): Call clear_section_table instead of
4145 resize_section_table.
4146 (clear_section_table): New function.
4147 (resize_section_table): Make static. Rename arg num_added to
4149 * exec.h (clear_section_table): Declare.
4150 (resize_section_table): Delete.
4151 * progspace.c (release_program_space): Call clear_section_table
4152 instead of resize_section_table.
4154 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4156 * NEWS (Python Scripting): Add entry about the new xmethods
4159 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4161 * python/py-xmethods.c: New file.
4162 * python/py-objfile.c (objfile_object): New field 'xmethods'.
4163 (objfpy_dealloc): XDECREF on the new xmethods field.
4164 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
4166 (objfpy_get_xmethods): New function.
4167 (objfile_getset): New entry 'xmethods'.
4168 * python/py-progspace.c (pspace_object): New field 'xmethods'.
4169 (pspy_dealloc): XDECREF on the new xmethods field.
4170 (pspy_new, pspace_to_pspace_object): Initialize xmethods
4172 (pspy_get_xmethods): New function.
4173 (pspace_getset): New entry 'xmethods'.
4174 * python/python-internal.h: Add declarations for new functions.
4175 * python/python.c (_initialize_python): Invoke
4176 gdbpy_initialize_xmethods.
4177 * python/lib/gdb/__init__.py (xmethods): New
4179 * python/lib/gdb/xmethod.py: New file.
4180 * python/lib/gdb/command/xmethods.py: New file.
4182 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4184 * eval.c (evaluate_subexp_standard): Call the xmethod if the
4185 best match method returned by find_overload_match is an xmethod.
4186 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
4187 the best matching operator returned by find_overload_match is an
4189 * valops.c: #include "extension.h".
4190 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
4191 Return void. The list of matching source methods is returned in
4192 "fn_list" and a vector of matching debug method workers is
4193 returned in "xm_worker_vec". Update all callers.
4194 (value_find_oload_method_list): Likewise.
4195 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
4196 non-NULL, then the index of the best matching method in this
4197 vector is returned. Update all callers.
4198 (find_overload_match): Include xmethods while performing overload
4201 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
4203 * defs.h (enum lval_type): New enumerator "lval_xcallable".
4204 * extension-priv.h (struct extension_language_ops): Add the
4206 * extension.c (new_xmethod_worker, clone_xmethod_worker,
4207 get_matching_xmethod_workers, get_xmethod_argtypes,
4208 invoke_xmethod, free_xmethod_worker,
4209 free_xmethod_worker_vec): New functions.
4210 * extension.h: #include "common/vec.h".
4211 New function declarations.
4212 (struct xmethod_worker): New struct.
4213 (VEC (xmethod_worker_ptr)): New vector type.
4214 (xmethod_worker_ptr): New typedef.
4215 (xmethod_worker_vec): Likewise.
4216 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
4218 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
4219 (struct builtin_type): New field "xmethod".
4220 * valarith.c (value_ptradd): Assert that the value argument is not
4222 * valops.c (value_must_coerce_to_target): Return 0 for
4223 lval_xcallable values.
4224 * value.c (struct value): New field XM_WORKER in the field
4226 (value_address, value_raw_address): Return 0 for lval_xcallable
4228 (set_value_address): Assert that the value is not an
4230 (value_free): Free the associated xmethod worker when freeing
4231 lval_xcallable values.
4232 (set_value_component_location): Assert that the WHOLE value is not
4234 (value_of_xmethod, call_xmethod): New functions.
4235 * value.h: Declare "struct xmethod_worker".
4236 Declare new functions value_of_xmethod, call_xmethod.
4238 2014-06-03 Joel Brobecker <brobecker@adacore.com>
4239 Pedro Alves <palves@redhat.com>
4241 PR breakpoints/17000
4242 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4243 New function, extracted from software_breakpoint_inserted_here_p.
4244 (software_breakpoint_inserted_here_p): Replace factored out code
4245 by call to find_non_raw_software_breakpoint_inserted_here.
4246 (bp_target_info_copy_insertion_state): New function.
4247 (bkpt_insert_location): Handle the case of a single-step
4248 breakpoint already inserted at the same address.
4249 (bkpt_remove_location): Handle the case of a single-step
4250 breakpoint still inserted at the same address.
4251 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4252 breakpoint already inserted at the same address.
4253 (deprecated_remove_raw_breakpoint): Handle the case of a
4254 non-raw breakpoint still inserted at the same address.
4255 (find_single_step_breakpoint): New function, extracted from
4256 single_step_breakpoint_inserted_here_p.
4257 (find_single_step_breakpoint): New function,
4258 factored out from single_step_breakpoint_inserted_here_p.
4259 (single_step_breakpoint_inserted_here_p): Reimplement.
4261 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4263 Pushed by Joel Brobecker <brobecker@adacore.com>
4264 * source.c (show_substitute_path_command): Fix display of matching
4267 2014-06-03 Gary Benson <gbenson@redhat.com>
4269 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4271 2014-06-02 Doug Evans <xdje42@gmail.com>
4273 Add parameter support for Guile.
4274 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4275 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4276 (scm-param.o): New rule.
4277 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4278 (gdbscm_misc_error): Declare.
4279 (gdbscm_canonicalize_command_name): Declare.
4280 (gdbscm_scm_to_host_string): Declare.
4281 (gdbscm_scm_from_host_string): Declare.
4282 (gdbscm_initialize_parameters): Declare.
4283 * guile/guile.c (initialize_gdb_module): Call
4284 gdbscm_initialize_parameters.
4285 * guile/lib/gdb.scm: Export parameter symbols.
4286 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4287 cmdscm_canonicalize_name and made public. All callers updated.
4288 * guile/scm-exception.c (gdbscm_misc_error): New function.
4289 * guile/scm-param.c: New file.
4290 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4291 (gdbscm_scm_to_host_string): New function.
4292 (gdbscm_scm_from_host_string): New function.
4293 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4295 2014-06-02 Doug Evans <xdje42@gmail.com>
4297 Add command support for Guile.
4298 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4299 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4300 (scm-cmd.o): New rule.
4301 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4302 (gdbscm_user_error_p): Declare.
4303 (gdbscm_parse_command_name): Declare.
4304 (gdbscm_valid_command_class_p): Declare.
4305 (gdbscm_initialize_commands): Declare.
4306 * guile/guile.c (initialize_gdb_module): Call
4307 gdbscm_initialize_commands.
4308 * guile/lib/gdb.scm: Export command symbols.
4309 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4310 (throw-user-error): New function.
4311 * guile/scm-cmd.c: New file.
4312 * guile/scm-exception.c (user_error_symbol): New static global.
4313 (gdbscm_user_error_p): New function.
4314 (gdbscm_initialize_exceptions): Set user_error_symbol.
4315 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4317 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4319 * top.c (command_loop): Handle comments here...
4320 (command_line_input): ... not here.
4322 2014-06-02 Doug Evans <xdje42@gmail.com>
4324 Add progspace support for Guile.
4325 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4326 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4327 (scm-progspace.o): New rule.
4328 * guile/guile-internal.h (pspace_smob): New typedef.
4329 (psscm_pspace_smob_pretty_printers): Declare.
4330 (psscm_pspace_smob_from_pspace): Declare.
4331 (psscm_scm_from_pspace): Declare.
4332 * guile/guile.c (initialize_gdb_module): Call
4333 gdbscm_initialize_pspaces.
4334 * guile/lib/gdb.scm: Export progspace symbols.
4335 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4337 (append-pretty-printer!): Ditto.
4338 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4340 * guile/scm-progspace.c: New file.
4342 2014-06-03 Alan Modra <amodra@gmail.com>
4344 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4345 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4347 2014-06-02 Doug Evans <dje@google.com>
4349 Add support for skeletonless type units.
4350 * dwarf2read.c (struct dwarf2_per_objfile): New member
4351 n_allocated_type_units.
4352 (struct dwarf2_per_objfile) <tu_stats>: New member
4353 nr_all_type_units_reallocs.
4354 (create_signatured_type_table_from_index): Initialize
4355 n_allocated_type_units
4356 (create_all_type_units): Ditto.
4357 (add_type_unit): Move up in file. New arg slot.
4358 All callers updated. Increase space for all_type_units more
4360 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4361 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4362 (lookup_dwp_signatured_type): Ditto.
4363 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4364 All callers updated.
4365 (build_type_psymtabs_1): Leave type_unit_groups as
4366 NULL if no TUs present.
4367 (print_tu_stats): New function.
4368 (process_skeletonless_type_unit): New function.
4369 (process_dwo_file_for_skeletonless_type_units): New
4371 (process_skeletonless_type_units): New function.
4372 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4373 Call print tu_stats if debugging enabled.
4375 2014-06-02 Pedro Alves <palves@redhat.com>
4377 * breakpoint.c (build_target_command_list): Don't build a command
4378 list if we have any duplicate location that isn't a dprintf.
4380 2014-06-02 Pedro Alves <palves@redhat.com>
4382 * breakpoint.c (dprintf_breakpoint_hit): New function.
4383 (initialize_breakpoint_ops): Install it as dprintf's
4384 breakpoint_hit method.
4386 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4388 * source.c (substitute_path_rule_matches): Simplify using
4389 filename_ncmp instead of FILENAME_CMP.
4391 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4393 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4395 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4397 * configure.ac: When Guile is available, check for the
4398 availability of 'scm_new_smob'.
4399 * configure, config.h.in: Regenerate.
4400 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4403 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4405 * frame.c (struct frame_info): Add stop_string field.
4406 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4407 (get_prev_frame_always): Old content moved into
4408 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4409 TRY_CATCH, handle MEMORY_ERROR exceptions.
4410 (frame_stop_reason_string): New function definition.
4411 * frame.h (unwind_stop_reason_to_string): Extend comment to
4412 mention frame_stop_reason_string.
4413 (frame_stop_reason_string): New function declaration.
4414 * stack.c (frame_info): Switch to frame_stop_reason_string.
4415 (backtrace_command_1): Switch to frame_stop_reason_string.
4416 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4417 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4418 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4420 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4422 * frame.c (frame_stop_reason_string): Rename to ...
4423 (unwind_stop_reason_to_string): this.
4424 * frame.h (frame_stop_reason_string): Rename to ...
4425 (unwind_stop_reason_to_string): this.
4426 * stack.c (frame_info): Update call to frame_stop_reason_string.
4427 (backtrace_command_1): Likewise.
4428 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4429 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4431 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4433 * frame.c (remove_prev_frame): New function.
4434 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4437 2014-05-29 Pedro Alves <palves@redhat.com>
4439 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4440 and make it const. When a single-step decays to a continue,
4441 clear 'step', not 'hw_step'. Pass whether the caller wanted
4442 to step to user_visible_resume_ptid, not what we ask the
4445 2014-05-29 Pedro Alves <palves@redhat.com>
4447 * infrun.c (process_event_stop_test, handle_step_into_function)
4448 (handle_step_into_function_backward): Adjust.
4449 Don't set the even thread's stop_step and call stop_waiting before
4450 calling end_stepping_range. Instead do that ...
4451 (end_stepping_range): ... here. Take an ecs pointer parameter.
4453 2014-05-29 Pedro Alves <palves@redhat.com>
4455 * infrun.c (stop_stepping): Rename to ...
4456 (stop_waiting): ... this.
4457 (proceed): Update comment.
4458 (process_event_stop_test, handle_inferior_event)
4459 (handle_signal_stop, handle_step_into_function)
4460 (handle_step_into_function_backward): Update.
4462 2014-05-29 Pedro Alves <palves@redhat.com>
4464 * infcall.c (run_inferior_call): Don't check whether the current
4465 thread is running after the proceed call.
4467 2014-05-29 Pedro Alves <palves@redhat.com>
4468 Tom Tromey <tromey@redhat.com>
4470 * NEWS: Mention "maint set target-async", "set mi-async", and that
4471 background execution commands are now always available.
4472 * target.h (target_async_permitted): Update comment.
4473 * target.c (target_async_permitted, target_async_permitted_1):
4475 (set_target_async_command): Rename to ...
4476 (maint_set_target_async_command): ... this.
4477 (show_target_async_command): Rename to ...
4478 (maint_show_target_async_command): ... this.
4479 (_initialize_target): Adjust.
4480 * infcmd.c (prepare_execution_command): Make extern.
4481 * inferior.h (prepare_execution_command): Declare.
4482 * infrun.c (set_observer_mode): Leave target async alone.
4483 * mi/mi-interp.c (mi_interpreter_init): Install
4484 mi_on_sync_execution_done as sync_execution_done observer.
4485 (mi_on_sync_execution_done): New function.
4486 (mi_execute_command_input_handler): Don't print the prompt if we
4487 just started a synchronous command with an async target.
4488 (mi_on_resume): Check sync_execution before printing prompt.
4489 * mi/mi-main.h (mi_async_p): Declare.
4490 * mi/mi-main.c: Include gdbcmd.h.
4491 (mi_async_p): New function.
4492 (mi_async, mi_async_1): New globals.
4493 (set_mi_async_command, show_mi_async_command, mi_async): New
4495 (exec_continue): Call prepare_execution_command.
4496 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4497 (mi_execute_async_cli_command): Use mi_async_p.
4498 (_initialize_mi_main): Install "set mi-async". Make
4499 "target-async" a deprecated alias.
4501 2014-05-29 Pedro Alves <palves@redhat.com>
4503 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4504 (_initialize_cli_interp): Adjust.
4505 * event-loop.c: Include "observer.h".
4506 (start_event_loop): Notify 'command_error' observers instead of
4507 calling display_gdb_prompt. Remove FIXME comment.
4508 * event-top.c (display_gdb_prompt): Remove call into the
4510 * inf-loop.c: Include "observer.h".
4511 (inferior_event_handler): Notify 'command_error' observers instead
4512 of calling display_gdb_prompt.
4513 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4514 observers instead of calling display_gdb_prompt.
4515 * interps.c (interp_set): Don't call display_gdb_prompt.
4516 (current_interp_display_prompt_p): Delete.
4517 * interps.h (interp_prompt_p): Delete declaration.
4518 (interp_prompt_p_ftype): Delete.
4519 (struct interp_procs) <prompt_proc_p>: Delete field.
4520 (current_interp_display_prompt_p): Delete declaration.
4521 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4522 (_initialize_mi_interp): Adjust.
4523 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4524 'command_error' observers.
4525 (tui_on_sync_execution_done, tui_on_command_error): New
4527 (tui_display_prompt_p): Delete.
4528 (_initialize_tui_interp): Adjust.
4530 2014-05-29 Pedro Alves <palves@redhat.com>
4533 * cli/cli-interp.c: Include infrun.h and observer.h.
4534 (cli_uiout, cli_interp): New globals.
4535 (cli_on_signal_received, cli_on_end_stepping_range)
4536 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4538 (cli_interpreter_init): Install them as 'end_stepping_range',
4539 'signal_received' 'signal_exited', 'exited' and 'no_history'
4541 (_initialize_cli_interp): Remove cli_interp local.
4542 * infrun.c (handle_inferior_event): Call the several stop reason
4543 observers instead of printing the stop reason directly.
4544 (end_stepping_range): New function.
4545 (print_end_stepping_range_reason, print_signal_exited_reason)
4546 (print_exited_reason, print_signal_received_reason)
4547 (print_no_history_reason): Make static, and add an uiout
4548 parameter. Print to that instead of to CURRENT_UIOUT.
4549 * infrun.h (print_end_stepping_range_reason)
4550 (print_signal_exited_reason, print_exited_reason)
4551 (print_signal_received_reason print_no_history_reason): New
4553 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4555 <cli_uiout>: New field.
4556 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4557 uiout for CLI output. Install 'signal_received',
4558 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4560 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4561 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4562 (mi_on_no_history): New functions.
4563 (ui_out_free_cleanup): Delete function.
4564 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4565 instead use the one already stored in the MI interpreter data.
4566 (mi_ui_out): Adjust.
4567 * tui/tui-interp.c: Include infrun.h and observer.h.
4568 (tui_interp): New global.
4569 (tui_on_signal_received, tui_on_end_stepping_range)
4570 (tui_on_signal_exited, tui_on_exited)
4571 (tui_on_no_history): New functions.
4572 (tui_init): Install them as 'end_stepping_range',
4573 'signal_received' 'signal_exited', 'exited' and 'no_history'
4575 (_initialize_tui_interp): Delete tui_interp local.
4577 2014-05-29 Pedro Alves <palves@redhat.com>
4580 * linux-nat.c (linux_nat_resume_callback): Rename the second
4581 parameter to 'except'. Skip LP if it points to EXCEPT.
4582 (linux_nat_resume): Don't mark the event lwp as not stopped
4583 before resuming sibling lwps. Instead ask
4584 linux_nat_resume_callback to skip the event lwp. Mark it as not
4585 stopped after actually resuming it.
4586 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4588 (wait_lwp): Mark the lwp as stopped here.
4589 (stop_wait_callback): Mark the lwp as not stopped right after
4590 resuming it. Don't mark lwps as stopped here.
4591 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4592 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4594 2014-05-29 Pedro Alves <palves@redhat.com>
4597 * infrun.c (resume): Determine how much to resume depending on
4598 whether the caller wanted a step, not whether we can hardware step
4599 the target. Mark all threads that we intend to run as running,
4600 unless we're calling an inferior function.
4601 (normal_stop): If the thread is running an infcall, don't finish
4603 * target.c (target_resume): Don't mark threads as running here.
4605 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4607 * serial.c (_initialize_serial): Remove support for
4608 the "set remotebaud" and "show remotebaud" commands.
4609 * NEWS: Add entry documenting the removal of that command.
4611 2014-05-28 Yao Qi <yao@codesourcery.com>
4613 * charset.c: Fix typo in comments.
4615 2014-05-27 Gary Benson <gbenson@redhat.com>
4617 * utils.c (internal_vproblem): Prompt for a bug report.
4619 2014-05-26 Andy Wingo <wingo@igalia.com>
4621 * guile/scm-arch.c (arscm_mark_arch_smob):
4622 * guile/scm-block.c (bkscm_mark_block_smob)
4623 (bkscm_mark_block_syms_progress_smob):
4624 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4625 * guile/scm-exception.c (exscm_mark_exception_smob):
4626 * guile/scm-frame.c (frscm_mark_frame_smob):
4627 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4628 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4629 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4630 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4631 (ppscm_mark_pretty_printer_worker_smob):
4632 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4633 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4634 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4635 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4637 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4640 2014-05-26 Andy Wingo <wingo@igalia.com>
4641 Doug Evans <xdje42@gmail.com>
4643 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4644 empty_base_class. All uses updated.
4645 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4646 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4648 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4649 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4650 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4651 (gdbscm_gsmob_has_property_p, add_property_name)
4652 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4653 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4654 (gdb-object-has-property?, gdb-object-properties): Remove.
4655 (gdb-object-kind): Renamed from gsmob-kind.
4657 2014-05-26 Andy Wingo <wingo@igalia.com>
4659 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4660 * configure: Regenerate.
4662 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4664 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4666 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4668 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4669 (replay_memory_access_read_only, replay_memory_access_read_write)
4670 (replay_memory_access_types, replay_memory_access)
4671 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4672 (cmd_set_record_btrace, cmd_show_record_btrace)
4673 (cmd_show_replay_memory_access): New.
4674 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4675 (record_btrace_remove_breakpoint): Replace
4676 record_btrace_allow_memory_access with replay_memory_access.
4677 (_initialize_record_btrace): Add commands.
4678 * NEWS: Announce it.
4680 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4682 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4684 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4686 * MAINTAINERS (Write After Approval): Move self back from
4689 2014-05-22 Pedro Alves <palves@redhat.com>
4691 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4692 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4693 (disable_randomization, enum exec_direction_kind)
4694 (execution_direction, stop_registers, start_remote)
4695 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4696 (wait_for_inferior, normal_stop, get_last_target_status)
4697 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4698 (insert_step_resume_breakpoint_at_sal)
4699 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4700 (set_step_info, print_stop_event, signal_stop_state)
4701 (signal_print_state, signal_pass_state, signal_stop_update)
4702 (signal_print_update, signal_pass_update)
4703 (update_signals_program_target, clear_exit_convenience_vars)
4704 (displaced_step_dump_bytes, update_observer_mode)
4705 (signal_catch_update, gdb_signal_from_command): Move
4707 * infrun.h: ... to this new file.
4708 * amd64-tdep.c: Include infrun.h.
4709 * annotate.c: Include infrun.h.
4710 * arch-utils.c: Include infrun.h.
4711 * arm-linux-tdep.c: Include infrun.h.
4712 * arm-tdep.c: Include infrun.h.
4713 * break-catch-sig.c: Include infrun.h.
4714 * breakpoint.c: Include infrun.h.
4715 * common/agent.c: Include infrun.h instead of inferior.h.
4716 * corelow.c: Include infrun.h.
4717 * event-top.c: Include infrun.h.
4718 * go32-nat.c: Include infrun.h.
4719 * i386-tdep.c: Include infrun.h.
4720 * inf-loop.c: Include infrun.h.
4721 * infcall.c: Include infrun.h.
4722 * infcmd.c: Include infrun.h.
4723 * infrun.c: Include infrun.h.
4724 * linux-fork.c: Include infrun.h.
4725 * linux-nat.c: Include infrun.h.
4726 * linux-thread-db.c: Include infrun.h.
4727 * monitor.c: Include infrun.h.
4728 * nto-tdep.c: Include infrun.h.
4729 * procfs.c: Include infrun.h.
4730 * record-btrace.c: Include infrun.h.
4731 * record-full.c: Include infrun.h.
4732 * remote-m32r-sdi.c: Include infrun.h.
4733 * remote-mips.c: Include infrun.h.
4734 * remote-notif.c: Include infrun.h.
4735 * remote-sim.c: Include infrun.h.
4736 * remote.c: Include infrun.h.
4737 * reverse.c: Include infrun.h.
4738 * rs6000-tdep.c: Include infrun.h.
4739 * s390-linux-tdep.c: Include infrun.h.
4740 * solib-irix.c: Include infrun.h.
4741 * solib-osf.c: Include infrun.h.
4742 * solib-svr4.c: Include infrun.h.
4743 * target.c: Include infrun.h.
4744 * top.c: Include infrun.h.
4745 * windows-nat.c: Include infrun.h.
4746 * mi/mi-interp.c: Include infrun.h.
4747 * mi/mi-main.c: Include infrun.h.
4748 * python/py-threadevent.c: Include infrun.h.
4750 2014-05-22 Pedro Alves <palves@redhat.com>
4752 * infrun.c (handle_inferior_event): Store the exit code for
4753 --return-child-result here, instead of ...
4754 (print_exited_reason): ... here.
4756 2014-05-21 Pedro Alves <palves@redhat.com>
4759 * gdbthread.h (struct thread_control_state): New field
4761 * infrun.c (follow_fork): Copy the new thread control field to the
4763 (clear_proceed_status_thread): Clear the new thread control field.
4764 (proceed): Set the new thread control field.
4765 * interps.h (command_interp): Declare.
4766 * interps.c (command_interpreter): New global.
4767 (command_interp): New function.
4768 (interp_exec): Set `command_interpreter' while here.
4769 * cli-out.c (cli_uiout_dtor): New function.
4770 (cli_ui_out_impl): Install it.
4771 * mi/mi-interp.c: Include cli-out.h.
4772 (mi_cmd_interpreter_exec): Add comment.
4773 (restore_current_uiout_cleanup): New function.
4774 (ui_out_free_cleanup): New function.
4775 (mi_on_normal_stop): If finishing an execution command started by
4776 a CLI command, or any kind of breakpoint-like event triggered,
4777 print the stop event to the output (CLI) stream.
4778 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4780 2014-05-21 Pedro Alves <palves@redhat.com>
4782 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4783 current source line having changed.
4784 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4785 * infrun.c (normal_stop): Adjust call to
4786 set_current_sal_from_frame.
4787 * source.c (clear_lines_listed_range): New function.
4788 (set_current_source_symtab_and_line, identify_source_line): Clear
4789 the lines listed range.
4790 (line_info): Handle the first "info line" after the current source
4791 line having changed.
4792 * stack.c (print_stack_frame): Remove center handling.
4793 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4796 2014-05-21 Pedro Alves <palves@redhat.com>
4798 * inf-child.c (inf_child_mourn_inferior): New function.
4799 * inf-child.h (inf_child_mourn_inferior): New declaration.
4800 * darwin-nat.c (darwin_mourn_inferior): Use
4801 inf_child_mourn_inferior.
4802 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4803 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4804 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4805 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4806 * windows-nat.c (windows_mourn_inferior): Likewise.
4808 2014-05-21 Doug Evans <xdje42@gmail.com>
4810 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4812 2014-05-21 Doug Evans <xdje42@gmail.com>
4814 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4815 (gdbscm_out_of_range_error): Ditto.
4816 (gdbscm_memory_error): Ditto.
4817 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4818 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4819 (gdbscm_out_of_range_error): Update.
4820 (gdbscm_memory_error): Update.
4821 (gdbscm_scm_to_target_string_unsafe): Delete.
4823 2014-05-21 Pedro Alves <palves@redhat.com>
4825 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4827 (inf_child_open_target): New function.
4828 (inf_child_open): Use inf_child_open_target to push the target
4829 instead of erroring out.
4830 (inf_child_disconnect, inf_child_close)
4831 (inf_child_maybe_unpush_target): New functions.
4832 (inf_child_target): Install inf_child_disconnect and
4833 inf_child_close. Store a pointer to the returned object.
4834 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4836 * target.c (auto_connect_native_target): New global.
4837 (show_default_run_target): New function.
4838 (find_default_run_target): Return NULL if automatically connecting
4839 to the native target is disabled.
4840 (_initialize_target): Install set/show auto-connect-native-target.
4841 * NEWS: Mention "set auto-connect-native-target", and "target
4843 * linux-nat.c (super_close): New global.
4844 (linux_nat_close): Call super_close.
4845 (linux_nat_add_target): Store a pointer to the base class's
4847 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4848 inf_child_maybe_unpush.
4849 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4851 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4852 the inferior. Use inf_child_maybe_unpush_target.
4853 (inf_ttrace_attach): Don't push the target if it is already
4855 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4856 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4857 after mourning the inferior. Use inf_child_maybe_unpush_target.
4858 (darwin_attach_pid): Don't push the target if it is already
4860 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4861 mourning the inferior. Use inf_child_maybe_unpush_target.
4862 (gnu_detach): Use inf_child_maybe_unpush_target.
4863 * go32-nat.c (go32_create_inferior): Don't push the target if it
4865 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4866 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4867 (procfs_open): Rename to ...
4868 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4869 comments. Can target_preopen before changing node. Call
4870 inf_child_open_target to push the target explicitly.
4871 (procfs_attach): Don't push the target if it is already pushed.
4872 (procfs_detach): Use inf_child_maybe_unpush_target.
4873 (procfs_create_inferior): Don't push the target if it is already
4875 (nto_native_ops): New global.
4876 (procfs_open): Reimplement.
4877 (procfs_native_open): New function.
4878 (init_procfs_targets): Install procfs_native_open as to_open of
4879 "target native". Store a pointer to the "native" target in
4881 * procfs.c (procfs_attach): Don't push the target if it is already
4883 (procfs_detach): Use inf_child_maybe_unpush_target.
4884 (procfs_mourn_inferior): Only unpush the target after mourning the
4885 inferior. Use inf_child_maybe_unpush_target.
4886 (procfs_init_inferior): Don't push the target if it is already
4888 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4889 if it is already pushed.
4891 2014-05-21 Pedro Alves <palves@redhat.com>
4893 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4894 and "procfs" targets are now called "native" instead.
4896 2014-05-21 Pedro Alves <palves@redhat.com>
4898 * go32-nat.c (go32_open): Delete.
4899 (go32_target): Don't override the to_open method.
4901 2014-05-21 Pedro Alves <palves@redhat.com>
4903 * nto-procfs.c (procfs_can_run): New function.
4904 (nto_procfs_ops): New global.
4905 (init_procfs_targets): New, based on procfs_target. Install
4906 "target native" in addition to "target procfs".
4907 (_initialize_procfs): Call init_procfs_targets instead of adding
4910 2014-05-21 Pedro Alves <palves@redhat.com>
4912 * windows-nat.c (windows_target): Don't override to_shortname,
4913 to_longname or to_doc.
4915 2014-05-21 Pedro Alves <palves@redhat.com>
4917 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4920 2014-05-21 Pedro Alves <palves@redhat.com>
4922 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4923 to_shortname, to_longname or to_doc.
4925 2014-05-21 Pedro Alves <palves@redhat.com>
4927 * go32-nat.c (go32_target): Don't override to_shortname,
4928 to_longname or to_doc.
4930 2014-05-21 Pedro Alves <palves@redhat.com>
4932 * inf-child.c (inf_child_open): Remove mention of "child".
4933 (inf_child_target): Rename target to "native" instead of "child".
4935 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4937 * Makefile.in (SFILES): Delete "regset.c".
4938 (COMMON_OBS): Delete "regset.o".
4940 * regset.h (regset_alloc): Delete prototype.
4942 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4944 * sparc-linux-tdep.c (sparc32_linux_gregset)
4945 (sparc32_linux_fpregset): New static regset structures.
4946 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4947 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4949 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4950 (sparc64_linux_fpregset): New static regset structures.
4951 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4952 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4953 New static regset structures.
4954 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4955 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4956 New static regset structures.
4957 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4958 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4959 New static regset structures.
4960 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4961 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4962 New static regset structures.
4963 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4965 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4967 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4968 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4969 register maps ("regmaps") from "*regset" to "*regmap". Do this
4970 for all regmap types and variables.
4971 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4972 (sparc32_linux_supply_core_gregset)
4973 (sparc32_linux_collect_core_gregset)
4974 (sparc32_linux_supply_core_fpregset)
4975 (sparc32_linux_collect_core_fpregset): Likewise.
4976 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4977 (sparc_gregmap, sparc_fpregmap): ... these.
4978 (sparc_supply_gregset, sparc_collect_gregset)
4979 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4980 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4981 (_initialize_sparc_nat): Rename regmaps.
4982 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4983 (sparc_gregmap, sparc_fpregmap): ... these.
4984 (sparc_supply_gregset, sparc_collect_gregset)
4985 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4986 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4988 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4989 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4991 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4993 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4994 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4995 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4997 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4998 (sparc32_bsd_fpregset): Rename to...
4999 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5000 (sparc32_bsd_fpregmap): ... these.
5001 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
5002 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
5003 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
5004 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
5005 (struct sparc_gregmap, struct sparc_fpregmap)
5006 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
5007 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
5008 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
5009 (sparc32_supply_regset, sparc32_collect_gregset)
5010 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
5012 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
5013 (sparc64_linux_ptrace_gregmap): ... this.
5014 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
5015 (_initialize_sparc64_linux_nat): Rename regmaps.
5016 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
5017 (sparc64_linux_core_gregmap): ... this.
5018 (sparc64_linux_supply_core_gregset)
5019 (sparc64_linux_collect_core_gregset)
5020 (sparc64_linux_supply_core_fpregset)
5021 (sparc64_linux_collect_core_fpregset): Rename regmaps.
5022 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
5023 (sparc64_sol2_fpregset): Rename to...
5024 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
5025 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
5026 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
5028 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
5029 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
5030 (sparc64_bsd_fpregset): Rename to...
5031 (struct sparc_gregmap, sparc64_sol2_gregmap)
5032 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
5033 (sparc64_bsd_fpregmap): ... these.
5034 (sparc64_supply_gregset, sparc64_collect_gregset)
5035 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
5037 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
5038 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
5039 (sparc64fbsd_gregmap): ... this.
5040 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
5041 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
5043 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
5044 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
5045 (sparc64nbsd_collect_fpregset): Likewise.
5046 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
5047 (sparc64nbsd_gregmap): ... this.
5048 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
5050 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
5051 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
5052 (sparc64obsd_gregmap): ... this.
5053 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
5055 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
5056 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
5057 (sparc32nbsd_gregmap): ... this.
5058 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
5061 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5063 * score-tdep.c (score7_linux_gregset): New static regset
5065 (score7_linux_regset_from_core_section): Remove dynamic regset
5067 (score_gdbarch_init): Drop allocation of tdep structure.
5068 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
5070 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5072 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
5074 (am33_regset_from_core_section): Remove dynamic regset
5077 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5079 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
5080 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
5082 (mips_linux_regset_from_core_section): Remove dynamic regset
5084 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5085 'gregset64', 'fpregset', and 'fpregset64'.
5086 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
5087 deleted tdep fields.
5089 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5091 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5093 (amd64_regset_from_core_section): Remove dynamic regset
5095 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
5097 (amd64obsd_regset_from_core_section): Remove dynamic regset
5099 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
5101 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
5102 x86-common regset supply function.
5103 * i386-tdep.c (i386_collect_gregset): Make static.
5104 (i386_gregset): New global regset structure.
5105 (i386_fpregset, i386_xstateregset): New static regset structures.
5106 (i386_regset_from_core_section): Remove dynamic regset
5108 (i386_gdbarch_init): Remove initialization of tdep fields
5109 'gregset', 'fpregset', and 'xstateregset'.
5110 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
5111 'fpregset', and 'xstateregset'.
5112 (i386_collect_gregset): Remove prototype.
5113 (i386_gregset): New declaration.
5114 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
5116 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
5119 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5121 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
5122 (arm_linux_vfpregset): New static regset structures.
5123 (arm_linux_regset_from_core_section): Remove dynamic allocation of
5125 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
5126 and 'vfpregset' fields.
5128 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5130 * aarch64-linux-tdep.c (aarch64_linux_gregset)
5131 (aarch64_linux_fpregset): New static regset structures.
5132 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
5133 of regset structures.
5134 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
5137 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5139 * regset.h (struct regset): Remove gdbarch field.
5140 * regset.c (regset_alloc): Drop initialization of gdbarch field.
5141 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5142 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
5144 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
5145 (ppc32_linux_fpregset, ppc32_linux_vrregset)
5146 (ppc32_linux_vsxregset): Likewise.
5147 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
5148 via the regcache instead of the regset.
5149 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
5150 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
5151 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
5152 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
5155 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
5157 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5158 Constify structures.
5159 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
5160 (alphanbsd_aout_gregset): Likewise.
5161 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
5162 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
5164 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
5165 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
5167 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
5168 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
5169 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
5170 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
5171 * m88k-tdep.c (m88k_gregset): Likewise.
5172 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
5173 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
5174 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
5175 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
5176 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5177 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
5178 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5179 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
5180 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
5182 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
5183 * sh-tdep.h (sh_corefile_gregset): Likewise.
5184 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
5185 * vax-tdep.c (vax_gregset): Likewise.
5187 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5189 Fix TLS access for -static -pthread.
5190 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
5191 (try_thread_db_load_1): Initialize it.
5192 (thread_db_get_thread_local_address): Call it if LM is zero.
5193 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
5194 * target.h (struct target_ops) (to_get_thread_local_address): Add
5195 load_module_addr comment.
5197 2014-05-21 Pedro Alves <palves@redhat.com>
5199 * dcache.c (dcache_read_memory_partial): If reading the cache line
5200 fails, fallback to reading just the memory the caller wanted.
5202 2014-05-20 Doug Evans <dje@google.com>
5204 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
5205 instead of get_current_arch.
5207 2014-05-20 Pedro Alves <palves@redhat.com>
5209 * NEWS: Mention that compare-sections now works with all targets.
5211 * remote.c (PACKET_qCRC): New enum value.
5212 (remote_verify_memory): Don't send qCRC if the target has no
5213 execution. Use packet_support/packet_ok. If the target doesn't
5214 support the qCRC packet, fallback to a deep memory copy.
5215 (compare_sections_command): Say "target image" instead of "remote
5217 (_initialize_remote): Add PACKET_qCRC to the list of config
5218 packets that have no associated command. Extend comment.
5219 * target.c (simple_verify_memory, default_verify_memory): New
5221 * target.h (struct target_ops) <to_verify_memory>: Default to
5222 default_verify_memory.
5223 (simple_verify_memory): New declaration.
5224 * target-delegates.c: Regenerate.
5226 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
5228 * record-btrace.c (record_btrace_step_thread): Check for empty history.
5230 2014-05-20 Hui Zhu <hui@codesourcery.com>
5231 Yao Qi <yao@codesourcery.com>
5234 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
5235 and change address of sp and pc.
5237 2014-05-19 Tom Tromey <tromey@redhat.com>
5239 * gdbtypes.c (rank_function): Use XNEWVEC.
5240 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
5242 2014-05-19 Doug Evans <dje@google.com>
5244 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5245 build_type_unit_groups and moved closer to only caller. Remove
5246 arguments. All references updated. Remove outdated .gdb_index
5248 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5249 build_type_psymtabs_1.
5251 2014-05-19 Doug Evans <dje@google.com>
5253 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5254 n_type_unit_groups, all_type_unit_groups. All uses removed.
5255 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5256 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5257 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5258 (add_type_unit_group_to_table): Delete.
5260 2014-05-19 Doug Evans <dje@google.com>
5262 * eval.c (evaluate_subexp_standard): Add some comments.
5264 2014-05-17 Doug Evans <xdje42@gmail.com>
5266 * progspace.c (remove_program_space): Delete, unused.
5267 * progspace.h (remove_program_space): Ditto.
5269 2014-05-17 Doug Evans <xdje42@gmail.com>
5271 * inferior.c (prune_inferiors): Fix comment.
5272 (remove_inferior_command): Call prune_program_spaces.
5274 2014-05-16 Doug Evans <dje@google.com>
5276 New command line option -D.
5278 * main.c (set_gdb_data_directory): New function.
5279 (captured_main): Recognize -D. Flag error for --data-directory "".
5280 Call set_gdb_data_directory.
5281 (print_gdb_help): Print --data-directory, -D.
5282 * main.h (set_gdb_data_directory): Declare.
5283 * top.c (staged_gdb_datadir): New static global.
5284 (set_gdb_datadir): Call set_gdb_data_directory
5285 (show_gdb_datadir): New function.
5286 (init_main): Update init of data-directory parameter.
5288 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5290 Import the "dirfd" gnulib module.
5291 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5292 * gnulib/aclocal.m4: Update.
5293 * gnulib/config.in: Update.
5294 * gnulib/configure: Update.
5295 * gnulib/import/Makefile.am: Update.
5296 * gnulib/import/Makefile.in: Update.
5297 * gnulib/import/dirfd.c: New.
5298 * gnulib/import/m4/dirfd.m4: New.
5299 * gnulib/import/m4/gnulib-cache.m4: Update.
5300 * gnulib/import/m4/gnulib-comp.m4: Update.
5302 2014-05-16 Pierre Muller <muller@sourceware.org>
5303 Yao Qi <yao@codesourcery.com>
5305 * valprint.c (print_wchar): Move the code on checking whether
5306 W is a printable wide char to the default branch of switch
5307 statement below. Call wchar_printable instead of gdb_iswprint.
5309 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5311 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5312 ldr.w and ldrd instructions.
5314 2014-05-15 Doug Evans <dje@google.com>
5316 * dwarf2read.c (read_structure_type): Delete outdated comments.
5318 2014-05-14 Tom Tromey <tromey@redhat.com>
5320 * macrocmd.c (print_macro_definition): Reindent.
5322 2014-05-13 Doug Evans <xdje42@gmail.com>
5324 * python/py-cmd.c (cmdpy_completer): Add comment.
5325 (completers): Make const.
5327 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5329 * infrun.c (resume): Remove should_resume (unused). Move up
5330 declaration of resume_ptid.
5332 2014-05-13 Tom Tromey <tromey@redhat.com>
5334 * language.h (unop_type_check): Remove.
5335 (binop_type_check): Don't declare.
5337 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5339 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5340 call to regcache_raw_collect.
5342 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5344 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5345 mi_console->quote as the quoting character.
5347 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5349 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5351 2014-04-29 Tom Tromey <tromey@redhat.com>
5353 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5354 "show debug varobj".
5356 2014-05-07 Kyle McMartin <kyle@redhat.com>
5358 Pushed by Joel Brobecker <brobecker@adacore.com>.
5359 * aarch64-tdep.c (aarch64_software_single_step): New function.
5360 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5361 with aarch64_software_single_step.
5363 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5367 2014-05-05 Keith Seitz <keiths@redhat.com>
5369 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5370 variable or history value is successfully parsed.
5372 2014-05-05 Yao Qi <yao@codesourcery.com>
5373 Pedro Alves <palves@redhat.com>
5375 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5376 address of blocks that intersects the requested range. Trim
5377 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5379 * ctf.c (ctf_xfer_partial): Likewise.
5381 2014-05-05 Yao Qi <yao@codesourcery.com>
5383 * printcmd.c (display_command): Remove the check to
5384 target_has_execution.
5386 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5388 * ppcobsd-nat.c: Include "obsd-nat.h".
5389 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5391 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5393 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5395 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5396 and 16-bit signed and unsigned arguments. Update comment.
5397 (stap_parse_probe_arguments): Extend code to handle such
5398 arguments. Use warning instead of complaint to notify about
5399 unrecognized bitness.
5401 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5403 PR breakpoints/16889
5404 * stap-probe.c (stap_parse_probe_arguments): Simplify
5405 check for non-prefixed probes (i.e., probes whose
5406 arguments do not start with "N@"). Always set the
5407 argument type to a sane value.
5409 2014-05-01 David Taylor <dtaylor@emc.com>
5411 * remote.c (compare_sections_command): Add -r option to compare
5412 all loadable read-only sections.
5414 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5416 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5417 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5419 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5420 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5421 Remove unused CORE_ADDR argument. Update all callers.
5423 2014-04-29 Pedro Alves <palves@redhat.com>
5425 * remote.c (struct packet_config) <detect>: Extend comment.
5426 (add_packet_config_cmd): Don't set the config's detect or support
5428 (init_all_packet_configs): Also initialize the config's 'detect'
5430 (reset_all_packet_configs_support): New function.
5431 (remote_open_1): Call reset_all_packet_configs_support instead of
5432 init_all_packet_configs.
5433 (_initialize_remote): Initialize all packet configs. Assert that
5434 all packets have an associated command, except a few known
5437 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5439 * dwarf2read.c (read_subrange_type): Handle dynamic
5440 DW_AT_lower_bound attributes.
5442 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5444 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5445 dynamic bounds before computing its upper bound.
5446 (ada_discrete_type_low_bound): Same as above with the lower bound.
5448 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5450 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5451 range types. Adjust the array handling implementation to
5452 take advantage of this change.
5453 (resolve_dynamic_range): New function, mostly extracted from
5454 resolve_dynamic_bounds.
5455 (resolve_dynamic_array): New function, mostly extracted from
5456 resolve_dynamic_bounds.
5457 (resolve_dynamic_bounds): Delete.
5458 (resolve_dynamic_type): Reimplement. Add handling of
5459 TYPE_CODE_RANGE types.
5461 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5463 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5464 handling of parallel ___XA types.
5466 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5468 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5469 unnecessary second call to static_unwrap_type.
5471 2014-04-27 Hui Zhu <hui@codesourcery.com>
5473 * stack.c (print_frame_info): Call do_gdb_disassembly with
5474 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5476 2014-04-26 Doug Evans <xdje42@gmail.com>
5478 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5480 2014-04-25 Pedro Alves <palves@redhat.com>
5483 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5484 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5485 and newline from built string.
5486 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5487 (linux_ptrace_attach_fail_reason): ... this.
5488 * linux-nat.c (linux_nat_attach): Adjust to use
5489 linux_ptrace_attach_fail_reason.
5491 2014-04-25 Pedro Alves <palves@redhat.com>
5493 * remote.c (struct remote_state): Remove multi_process_aware,
5494 non_stop_aware, cond_tracepoints, cond_breakpoints,
5495 breakpoint_commands, fast_tracepoints, static_tracepoints,
5496 install_in_trace, disconnected_tracing,
5497 enable_disable_tracepoints, string_tracing, and
5498 augmented_libraries_svr4_read fields.
5499 (remote_multi_process_p): Move further below in the file.
5500 (struct packet_config): Add comments.
5501 (update_packet_config): Delete function.
5502 (show_packet_config_cmd): Use packet_config_support.
5503 (add_packet_config_cmd): Use NULL as set callback.
5504 (packet_ok): "set remote foo-packet"-style commands no longer
5505 change config->supported -- adjust.
5506 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5507 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5508 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5509 (PACKET_QNonStop, PACKET_multiprocess_feature)
5510 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5511 (PACKET_DisconnectedTracing_feature)
5512 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5513 (set_remote_protocol_packet_cmd): Delete function.
5514 (packet_config_support, packet_support): New functions.
5515 (set_remote_protocol_Z_packet_cmd): Don't call
5516 update_packet_config.
5517 (remote_query_attached, remote_pass_signals)
5518 (remote_program_signals, remote_threads_info)
5519 (remote_threads_extra_info, remote_start_remote): Use
5521 (remote_start_remote): Use packet_config_support and
5523 (init_all_packet_configs): Set all packets to unknown support,
5524 instead of calling update_packet_config.
5525 (remote_check_symbols): Use packet_support.
5526 (remote_supported_packet): Unconditionally set the packet config's
5528 (remote_multi_process_feature, remote_non_stop_feature)
5529 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5530 (remote_breakpoint_commands_feature)
5531 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5532 (remote_install_in_trace_feature)
5533 (remote_disconnected_tracing_feature)
5534 (remote_enable_disable_tracepoint_feature)
5535 (remote_string_tracing_feature)
5536 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5537 (remote_protocol_features): Adjust to use remote_supported_packet
5538 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5539 "ConditionalTracepoints", "ConditionalBreakpoints",
5540 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5541 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5542 "EnableDisableTracepoints", and "tracenz".
5543 (remote_query_supported): Use packet_support.
5544 (remote_open_1): Adjust.
5545 (extended_remote_attach_1): Use packet_support. Switch on the
5546 result of packet_ok instead of checking whether the packet ended
5548 (remote_vcont_resume): Use packet_support.
5549 (remote_resume, remote_stop_ns, fetch_register_using_p)
5550 (remote_prepare_to_store, store_register_using_P)
5551 (check_binary_download, remote_write_bytes): Use packet_support.
5552 (remote_vkill): Use packet_support. Switch on the result of
5553 packet_ok instead of checking whether the packet ended up
5555 (extended_remote_supports_disable_randomization): Use
5557 (extended_remote_run): Switch on the result of packet_ok instead
5558 of checking whether the packet ended up disabled.
5559 (remote_insert_breakpoint, remote_remove_breakpoint)
5560 (remote_insert_watchpoint, remote_remove_watchpoint)
5561 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5563 (remote_search_memory): Use packet_config_support.
5564 (remote_get_thread_local_address, remote_get_tib_address)
5565 (remote_hostio_send_command, remote_can_execute_reverse): Use
5567 (remote_supports_cond_tracepoints)
5568 (remote_supports_cond_breakpoints)
5569 (remote_supports_fast_tracepoints)
5570 (remote_supports_static_tracepoints)
5571 (remote_supports_install_in_trace)
5572 (remote_supports_enable_disable_tracepoint)
5573 (remote_supports_string_tracing)
5574 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5575 the packet config says the feature is enabled or disabled.
5576 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5577 (remote_get_trace_status): Use packet_support.
5578 (remote_set_disconnected_tracing): Adjust to check whether the
5579 feature is enabled with packet_support.
5580 (remote_set_trace_buffer_size, remote_use_agent)
5581 (remote_can_use_agent, remote_supports_btrace): Use
5583 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5584 Use packet_config_support.
5585 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5586 the packet config says the feature is enabled or disabled.
5587 (set_range_stepping): Use packet_support.
5589 2014-04-25 Tom Tromey <tromey@redhat.com>
5591 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5594 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5596 * NEWS: Mention support for C99 variable length arrays.
5598 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5600 * ada-lang.c (standard_exc): Expand introductory comment.
5602 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5603 Walfred Tedeschi <walfred.tedeschi@intel.com>
5605 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5607 (amd64_linux_read_description): Add code to handle AVX512 xstate
5608 mask and return respective tdesc.
5609 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5610 and features/i386/x32-avx512-linux.c.
5611 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5612 (amd64_linux_core_read_description): Add code to handle AVX512
5613 xstate mask and return respective tdesc.
5614 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5615 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5617 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5618 (tdesc_amd64_avx512_linux): New prototype.
5619 (tdesc_x32_avx512_linux): Likewise.
5620 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5621 features/i386/x32-avx512.c.
5622 (amd64_ymm_avx512_names): New register names for pseudo
5624 (amd64_ymmh_avx512_names): New register names for raw registers
5626 (amd64_k_names): New register names for K registers.
5627 (amd64_zmmh_names): New register names for ZMM raw registers.
5628 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5629 (amd64_xmm_avx512_names): New register names for XMM16-31
5631 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5633 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5634 if feature is present.
5635 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5636 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5637 (AMD64_NUM_REGS): Adjust to new number of registers.
5638 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5639 registers supplied via XSTATE by AVX512 registers.
5640 (i386_linux_read_description): Add case for AVX512.
5641 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5642 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5643 (i386_linux_core_read_description): Add case for AVX512.
5644 (i386_linux_init_abi): Install supported register note section
5646 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5648 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5649 registers to be number of zmm7h + 1.
5650 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5651 * i386-tdep.c: Include features/i386/i386-avx512.c.
5652 (i386_zmm_names): Add ZMM pseudo register names array.
5653 (i386_zmmh_names): Add ZMM raw register names array.
5654 (i386_k_names): Add K raw register names array.
5655 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5656 registers. AVX512 has 16 more ZMM registers than there are YMM
5658 (i386_zmmh_regnum_p): Add function to look up register number of
5660 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5661 (i386_k_regnum_p): Likewise for K raw registers.
5662 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5663 registers added by AVX512.
5664 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5665 registers added by AVX512.
5666 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5668 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5669 (i386_pseudo_register_name): Add ZMM pseudo registers.
5670 (i386_zmm_type): Construct and return vector registers type for ZMM
5672 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5673 ZMM0-31 pseudo registers and K registers.
5674 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5675 and YMM16-31 registers from register cache.
5676 (i386_pseudo_register_write): Add code to write K, ZMM and
5678 (i386_register_reggroup_p): Add code to include/exclude AVX512
5679 registers in/from respective register groups.
5680 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5681 registers if feature is present in xcr0.
5682 (i386_gdbarch_init): Add code to initialize AVX512 feature
5683 variables in tdep structure, wire in pseudo registers and call
5684 initialize_tdesc_i386_avx512.
5685 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5687 (i386_regnum): Add AVX512 registers.
5688 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5689 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5690 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5691 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5693 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5694 (i386_ymm_avx512_regnum_p): Likewise.
5695 (i386_k_regnum_p): Likewise.
5696 (i386_zmm_regnum_p): Likewise.
5697 (i386_zmmh_regnum_p): Likewise.
5698 * i387-tdep.c : Update year in copyright notice.
5699 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5701 (XSAVE_YMM_AVX512_ADDR): New macro.
5702 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5704 (XSAVE_XMM_AVX512_ADDR): New macro.
5705 (xsave_avx512_k_offset): New table for K register offsets in
5707 (XSAVE_AVX512_K_ADDR): New macro.
5708 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5710 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5711 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5713 (i387_collect_xsave): Add code to collect AVX512 registers from
5715 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5716 of XMM16-31 registers.
5717 (I387_NUM_K_REGS): New define for number of K registers.
5718 (I387_K0_REGNUM): New define for K0 register number.
5719 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5720 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5721 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5723 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5724 (I387_XMM16_REGNUM): New define for XMM16 register number.
5725 (I387_YMM0_REGNUM): New define for YMM0 register number.
5726 (I387_KEND_REGNUM): New define for last K register number.
5727 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5728 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5730 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5732 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5734 * features/Makefile: Add AVX512 related files.
5735 * features/i386/32bit-avx512.xml: New file.
5736 * features/i386/64bit-avx512.xml: Likewise.
5737 * features/i386/amd64-avx512-linux.c: Likewise.
5738 * features/i386/amd64-avx512-linux.xml: Likewise.
5739 * features/i386/amd64-avx512.c: Likewise.
5740 * features/i386/amd64-avx512.xml: Likewise.
5741 * features/i386/i386-avx512-linux.c: Likewise.
5742 * features/i386/i386-avx512-linux.xml: Likewise.
5743 * features/i386/i386-avx512.c: Likewise.
5744 * features/i386/i386-avx512.xml: Likewise.
5745 * features/i386/x32-avx512-linux.c: Likewise.
5746 * features/i386/x32-avx512-linux.xml: Likewise.
5747 * features/i386/x32-avx512.c: Likewise.
5748 * features/i386/x32-avx512.xml: Likewise.
5749 * regformats/i386/amd64-avx512-linux.dat: New file.
5750 * regformats/i386/amd64-avx512.dat: Likewise.
5751 * regformats/i386/i386-avx512-linux.dat: Likewise.
5752 * regformats/i386/i386-avx512.dat: Likewise.
5753 * regformats/i386/x32-avx512-linux.dat: Likewise.
5754 * regformats/i386/x32-avx512.dat: Likewise.
5755 * NEWS: Add note about new support for AVX512.
5758 2014-04-23 Pedro Alves <palves@redhat.com>
5760 * breakpoint.c (insert_bp_location): Tolerate errors if the
5761 breakpoint is set in a user-loaded objfile.
5762 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5763 location is marked shlib_disabled. If the breakpoint is set in a
5764 user-loaded objfile is a GDB-side memory breakpoint, validate it
5765 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5766 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5768 * mem-break.c (memory_validate_breakpoint): New function.
5769 * objfiles.c (userloaded_objfile_contains_address_p): New
5771 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5772 * target.h (memory_validate_breakpoint): New declaration.
5774 2014-04-23 Pedro Alves <palves@redhat.com>
5776 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5777 the breakpoint is set in a shared library, only suppress
5778 errors for software breakpoints, not hardware breakpoints.
5780 2014-04-22 Pedro Alves <palves@redhat.com>
5782 * infrun.c (schedlock_applies): New function, factored out from
5783 find_thread_needs_step_over.
5784 (find_thread_needs_step_over): Use it.
5785 (switch_back_to_stepped_thread): Always clear trap_expected if the
5786 step over is finished. Return early if scheduler locking applies.
5787 Look for the stepping thread and a potential step-over thread with
5789 (currently_stepping_or_nexting_callback): Delete.
5791 2014-04-22 Nick Clifton <nickc@redhat.com>
5793 * NEWS: Mention that ARM sim now supports tracing.
5795 2014-04-22 Yao Qi <yao@codesourcery.com>
5797 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5799 * tracefile.c (tracefile_fetch_registers): ... it. New
5801 * tracefile.h (tracefile_fetch_registers): Declare.
5802 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5803 tracefile_fetch_registers.
5805 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5808 * windows-nat.c (thread_rec): Don't display a warning when
5809 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5810 fails for any reason, set th->suspended to -1, so that we don't
5811 try to resume such a thread. Also, don't return NULL in these
5812 cases, to avoid completely ruin the session due to "PC register is
5813 not available" error.
5814 (do_windows_fetch_inferior_registers): Check errors in
5815 GetThreadContext call.
5816 (windows_continue): Accept an additional argument KILLED; if not
5817 zero, ignore errors in the SetThreadContext call, since the
5818 inferior was killed and is shutting down.
5819 (windows_resume, get_windows_debug_event)
5820 (windows_create_inferior, windows_mourn_inferior)
5821 (windows_kill_inferior): All callers of windows_continue changed
5822 to adjust to its new calling sequence.
5824 2014-04-19 Yao Qi <yao@codesourcery.com>
5826 * ctf.c (ctf_open): Call post_create_inferior.
5828 2014-04-19 Yao Qi <yao@codesourcery.com>
5830 * ctf.c (handle_id): New static variable.
5831 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5832 value. Get the declaration of event "register" and get length
5833 of field "contents".
5835 2014-04-19 Yao Qi <yao@codesourcery.com>
5837 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5839 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5841 * valops.c (oload_method_static): Remove unnecessary argument
5842 METHOD. Update all callers.
5844 2014-04-18 Pedro alves <palves@redhat.com>
5845 Tom Tromey <tromey@redhat.com>
5848 * frame.c (get_prev_frame_1): Rename to ...
5849 (get_prev_frame_always): ... this, and make extern. Adjust.
5850 (skip_artificial_frames): Use get_prev_frame_always.
5851 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5852 (get_frame_unwind_stop_reason): Adjust to rename.
5853 * frame.h (get_prev_frame_always): Declare.
5854 * inline-frame.c: Include frame.h.
5855 (inline_frame_this_id): Use get_prev_frame_always.
5857 2014-04-18 Tristan Gingold <gingold@adacore.com>
5859 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5860 code by using bfd_mach_o_get_base_address.
5862 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5864 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5865 (spu_ax_pseudo_register_collect): New function.
5866 (spu_ax_pseudo_register_push_stack): Likewise.
5867 (spu_dwarf_reg_to_regnum): Likewise.
5868 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5870 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
5872 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5873 Replace FRAME argument with FRAME_ID.
5874 * gdbarch.c, gdbarch.h: Regenerate.
5875 * findvar.c (default_value_from_register): Add GDBARCH argument;
5876 replace FRAME by FRAME_ID. No longer call get_frame_id.
5877 (value_from_register): Update call to gdbarch_value_from_register.
5878 * value.h (default_value_from_register): Update prototype.
5879 * s390-linux-tdep.c (s390_value_from_register): Update interface
5880 and call to default_value_from_register.
5881 * spu-tdep.c (spu_value_from_register): Likewise.
5883 * findvar.c (address_from_register): Remove TYPE argument.
5884 Do not call value_from_register; use gdbarch_value_from_register
5885 with null_frame_id instead.
5886 * value.h (address_from_register): Update prototype.
5887 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5888 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5889 address_from_register interface change.
5891 2014-04-17 Yao Qi <yao@codesourcery.com>
5893 * gdbtypes.h: Update comments to link to types and macros'
5896 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5898 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5900 2014-04-16 Keith Seitz <keiths@redhat.com>
5903 * dwarf2read.c (skip_one_die): Check that all relative-offset
5904 sibling DIEs fall within range of the current reader's buffer.
5905 (read_partial_die): Likewise.
5907 2014-04-16 Keith Seitz <keiths@redhat.com>
5910 * cp-namespace.c (lookup_symbol_file): If the type name of
5911 `this' is NULL, return immediately.
5913 2014-04-14 Keith Seitz <keiths@redhat.com>
5916 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5917 from symbol_matches_domain in symtab.c. All local callers
5918 of symbol_matches_domain updated.
5919 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5920 search STRUCT_DOMAIN.
5921 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5922 independently. standard_lookup will do that automatically.
5923 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5924 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5925 (cp_lookup_symbol_in_namespace): Likewise.
5926 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5927 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5928 may return a STRUCT_DOMAIN match.
5929 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5930 * cp-support.c: Include language.h.
5931 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5933 * psymtab.c (match_partial_symbol): Compare the requested
5934 domain with the symbol's domain directly.
5935 (lookup_partial_symbol): Likewise.
5936 * symtab.c (lookup_symbol_in_language): Explain when/why
5937 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5938 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5939 appropriate languages.
5940 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5941 and moved to ada-lang.c
5942 (lookup_block_symbol): Explain that this function only returns
5943 symbol matching the requested DOMAIN.
5944 Compare the requested domain with the symbol's domain directly.
5945 (iterate_over_symbols): Compare the requested domain with the
5946 symbol's domain directly.
5947 * symtab.h (symbol_matches_domain): Remove.
5949 2014-04-14 Tom Tromey <tromey@redhat.com>
5952 * c-exp.y (type_aggregate_p): New function.
5953 (qualified_name, classify_inner_name): Use it.
5954 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5955 and TYPE_TARGET_TYPE of an enum type.
5956 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5958 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5959 handle TYPE_DECLARED_CLASS.
5960 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5962 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5963 * valops.c (enum_constant_from_type): New function.
5964 (value_aggregate_elt): Use it.
5965 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5968 2014-04-14 Tom Tromey <tromey@redhat.com>
5970 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5971 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5973 * value.h (value_aggregate_elt): Update.
5975 2014-04-14 Tom Tromey <tromey@redhat.com>
5977 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5979 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5981 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5982 (evaluate_subexp_standard): Pass noside argument.
5983 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5984 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5985 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5986 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5987 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5989 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5991 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5992 points to a constant blob.
5994 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5996 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5997 property and store it as the high bound and flag the range accordingly.
5998 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5999 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6000 * gdbtypes.h (enum range_flags): New enum.
6001 (struct range_bounds): Add flags member.
6003 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6005 * c-typeprint.c (c_type_print_varspec_suffix): Added
6006 check for not yet resolved high bound. If unresolved, print
6007 "variable length" string to the console instead of random
6010 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6012 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
6014 (ada_template_to_fixed_record_type_1): Likewise.
6015 (ada_to_fixed_type_1): Likewise.
6016 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6017 (cp_print_value): Likewise.
6018 * d-valprint.c (dynamic_array_type): Likewise.
6019 * findvar.c (address_of_variable): Likewise.
6020 * jv-valprint.c (java_value_print): Likewise.
6021 * valops.c (value_ind): Likewise.
6022 * value.c (coerce_ref): Likewise.
6024 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6026 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6027 value and retrieve the dynamic type size.
6029 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6031 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6032 passed to sizeof is dynamic evaluate the argument to compute the length.
6034 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
6035 Joel Brobecker <brobecker@adacore.com>
6037 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6038 (dwarf2_evaluate_property): New function.
6039 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6040 * dwarf2read.c (attr_to_dynamic_prop): New function.
6041 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6043 * gdbtypes.c: Include dwarf2loc.h.
6044 (is_dynamic_type): New function.
6045 (resolve_dynamic_type): New function.
6046 (resolve_dynamic_bounds): New function.
6047 (get_type_length): New function.
6048 (check_typedef): Use get_type_length to compute type length.
6049 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6050 (TYPE_LOW_BOUND_KIND): New macro.
6051 (is_dynamic_type): New function prototype.
6052 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6053 to resolve dynamic properties of the type. Update comment.
6054 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6056 2014-04-14 Richard Henderson <rth@redhat.com>
6058 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
6060 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
6061 Doug Evans <xdje42@gmail.com>
6063 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
6064 dereference TYPE_CODE_REF values.
6066 2014-04-11 Joel Brobecker <brobecker@adacore.com>
6068 Revert the following changes due to regressions:
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 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6090 passed to sizeof is dynamic evaluate the argument to compute the length.
6092 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6093 value and retrieve the dynamic type size.
6095 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6096 (ada_template_to_fixed_record_type_1): Likewise.
6097 (ada_to_fixed_type_1): Likewise.
6098 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6099 (cp_print_value): Likewise.
6100 * d-valprint.c (dynamic_array_type): Likewise.
6101 * eval.c (evaluate_subexp_with_coercion): Likewise.
6102 * findvar.c (address_of_variable): Likewise.
6103 * jv-valprint.c (java_value_print): Likewise.
6104 * valops.c (value_ind): Likewise.
6105 * value.c (coerce_ref): Likewise.
6107 * c-typeprint.c (c_type_print_varspec_suffix): Added
6108 check for not yet resolved high bound. If unresolved, print
6109 "variable length" string to the console instead of random
6112 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6113 property and store it as the high bound and flag the range accordingly.
6114 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6115 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6116 * gdbtypes.h (enum range_flags): New enum.
6117 (struct range_bounds): Add flags member.
6119 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6120 points to a constant blob.
6122 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6123 (evaluate_subexp_standard): Pass noside argument.
6124 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6125 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6126 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6127 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6128 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6130 2014-04-11 Keith Seitz <keiths@redhat.com>
6133 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
6134 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
6137 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6139 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
6140 (evaluate_subexp_standard): Pass noside argument.
6141 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
6142 if noside equals EVAL_NORMAL. If the subscript yields a vla type
6143 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
6144 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
6145 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
6147 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6149 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
6150 points to a constant blob.
6152 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6154 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
6155 property and store it as the high bound and flag the range accordingly.
6156 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
6157 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
6158 * gdbtypes.h (enum range_flags): New enum.
6159 (struct range_bounds): Add flags member.
6161 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6163 * c-typeprint.c (c_type_print_varspec_suffix): Added
6164 check for not yet resolved high bound. If unresolved, print
6165 "variable length" string to the console instead of random
6168 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6170 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
6171 (ada_template_to_fixed_record_type_1): Likewise.
6172 (ada_to_fixed_type_1): Likewise.
6173 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
6174 (cp_print_value): Likewise.
6175 * d-valprint.c (dynamic_array_type): Likewise.
6176 * eval.c (evaluate_subexp_with_coercion): Likewise.
6177 * findvar.c (address_of_variable): Likewise.
6178 * jv-valprint.c (java_value_print): Likewise.
6179 * valops.c (value_ind): Likewise.
6180 * value.c (coerce_ref): Likewise.
6182 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6184 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
6185 value and retrieve the dynamic type size.
6187 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6189 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
6190 passed to sizeof is dynamic evaluate the argument to compute the length.
6192 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6194 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
6195 (dwarf2_evaluate_property): New function.
6196 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
6197 * dwarf2read.c (attr_to_dynamic_prop): New function.
6198 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
6200 * gdbtypes.c: Include dwarf2loc.h.
6201 (is_dynamic_type): New function.
6202 (resolve_dynamic_type): New function.
6203 (resolve_dynamic_bounds): New function.
6204 (get_type_length): New function.
6205 (check_typedef): Use get_type_length to compute type length.
6206 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
6207 (TYPE_LOW_BOUND_KIND): New macro.
6208 (is_dynamic_type): New function prototype.
6209 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
6210 to resolve dynamic properties of the type. Update comment.
6211 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
6213 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6215 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
6216 declaring high/low bounds and change uses accordingly. Call
6217 create_range_type instead of create_static_range_type.
6218 * gdbtypes.c (create_range_type): New function.
6219 (create_range_type): Convert bounds into struct bound_prop and pass
6220 them to create_range_type.
6221 * gdbtypes.h (struct bound_prop): New struct.
6222 (create_range_type): New function prototype.
6223 (struct range_bounds): Use struct bound_prop instead of LONGEST for
6224 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
6225 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
6227 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
6229 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
6231 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
6232 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
6233 * ada-lang.c: All uses of create_range_type updated.
6234 * coffread.c: All uses of create_range_type updated.
6235 * dwarf2read.c: All uses of create_range_type updated.
6236 * f-exp.y: All uses of create_range_type updated.
6237 * m2-valprint.c: All uses of create_range_type updated.
6238 * mdebugread.c: All uses of create_range_type updated.
6239 * stabsread.c: All uses of create_range_type updated.
6240 * valops.c: All uses of create_range_type updated.
6241 * valprint.c: All uses of create_range_type updated.
6243 2014-04-10 Pedro Alves <palves@redhat.com>
6245 * breakpoint.c (single_step_breakpoints)
6246 (single_step_gdbarch): Move up in the file.
6247 (one_breakpoint_xfer_memory): New function, factored out from ...
6248 (breakpoint_xfer_memory): ... here. Also process single-step
6251 2014-04-09 Tristan Gingold <gingold@adacore.com>
6253 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6255 (darwin_decode_exception_message): Free port only after use.
6257 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6259 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6260 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6261 when setting the size of call_length.
6263 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6265 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6266 dereference TYPE_CODE_REF values.
6268 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6270 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6271 end of warning message.
6273 2014-04-03 Doug Evans <dje@google.com>
6275 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6276 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6278 2014-04-02 Alan Modra <amodra@gmail.com>
6280 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6281 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6282 (struct symbol_file_add_from_memory_args): Add size field.
6283 (find_vdso_size): New function.
6284 (add_vsyscall_page): Attempt to find vdso size.
6286 2014-04-01 Doug Evans <dje@google.com>
6288 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6290 2014-04-01 Tristan Gingold <gingold@adacore.com>
6292 * darwin-nat.c (darwin_encode_reply): Add prototype.
6293 (darwin_decode_exception_message): Reply to unknown inferiors.
6294 (darwin_decode_message): Handle message by id. Ignore message
6295 to unknown inferior.
6296 (darwin_wait): Discard unknown messages, add debug trace.
6298 2014-03-31 Doug Evans <dje@google.com>
6300 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6303 2014-03-31 Doug Evans <dje@google.com>
6305 New option "set print symbol-loading".
6307 * solib.c (solib_read_symbols): Only print symbol loading messages
6309 (solib_add): If symbol loading is in "brief" mode, notify user
6310 symbols are being loaded.
6311 (reload_shared_libraries_1): Ditto.
6312 * symfile.c (print_symbol_loading_off): New static global.
6313 (print_symbol_loading_brief): New static global.
6314 (print_symbol_loading_full): New static global.
6315 (print_symbol_loading_enums): New static global.
6316 (print_symbol_loading): New static global.
6317 (print_symbol_loading_p): New function.
6318 (symbol_file_add_with_addrs): Only print symbol loading messages
6320 (_initialize_symfile): Register "print symbol-loading" set/show
6322 * symfile.h (print_symbol_loading_p): Declare.
6324 2014-03-30 Doug Evans <xdje42@gmail.com>
6326 * infrun.c (set_last_target_status): New function.
6327 (handle_inferior_event): Call it.
6329 2014-03-30 Doug Evans <xdje42@gmail.com>
6331 * inferior.h (enum stop_kind): Improve comment.
6333 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6335 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6336 a reference, strip the reference layer before calling
6337 the lang_ops value_has_mutated callback.
6339 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6341 Remove some globals from our parser.
6342 * language.c (unk_lang_parser): Add "struct parser_state"
6344 * language.h (struct language_defn) <la_parser>: Likewise.
6345 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6346 (initialize_expout): Add "struct parser_state" argument.
6347 Rewrite function to use the parser state.
6348 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6349 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6350 write_exp_elt_longcst, write_exp_elt_dblcst,
6351 write_exp_elt_decfloatcst, write_exp_elt_type,
6352 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6353 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6354 write_dollar_variable): Likewise.
6355 (parse_exp_in_context_1): Use parser state.
6356 (insert_type_address_space): Add "struct parser_state" argument.
6358 (increase_expout_size): New function.
6359 * parser-defs.h: Forward declare "struct language_defn" and
6360 "struct parser_state".
6361 (expout, expout_size, expout_ptr): Remove extern declarations.
6362 (parse_gdbarch, parse_language): Rewrite macro declarations to
6363 accept the parser state.
6364 (struct parser_state): New struct.
6365 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6366 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6367 write_exp_elt_decfloatcst, write_exp_elt_type,
6368 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6369 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6370 write_exp_msymbol, write_dollar_variable,
6371 mark_struct_expression, insert_type_address_space): Add "struct
6372 parser_state" argument.
6373 (increase_expout_size): New function.
6374 * utils.c (do_clear_parser_state): New function.
6375 (make_cleanup_clear_parser_state): Likewise.
6376 * utils.h (make_cleanup_clear_parser_state): New function
6378 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6379 Update calls to write_exp* in order to pass the parser state.
6380 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6381 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6382 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6383 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6384 * stap-probe.c (stap_parse_register_operand): Likewise.
6385 (stap_parse_single_operand): Likewise.
6386 (stap_parse_argument_1): Likewise.
6387 (stap_parse_argument): Use parser state.
6388 * stap-probe.h: Include "parser-defs.h".
6389 (struct stap_parse_info) <pstate>: New field.
6390 * c-exp.y (parse_type): Rewrite to use parser state.
6391 (yyparse): Redefine to c_parse_internal.
6392 (pstate): New global variable.
6393 (parse_number): Add "struct parser_state" argument.
6394 (write_destructor_name): Likewise.
6395 (type_exp): Update calls to write_exp* and similars in order to
6397 (exp1, exp, variable, qualified_name, space_identifier,
6398 typename, typebase): Likewise.
6399 (write_destructor_name, parse_number, lex_one_token,
6400 classify_name, classify_inner_name, c_parse): Add "struct
6401 parser_state" argument. Update function to use parser state.
6402 * c-lang.h: Forward declare "struct parser_state".
6403 (c_parse): Add "struct parser_state" argument.
6404 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6405 (yyparse): Redefine macro to ada_parse_internal.
6406 (pstate): New variable.
6407 (write_int, write_object_renaming, write_var_or_type,
6408 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6409 type_int, type_long, type_long_long, type_float, type_double,
6410 type_long_double, type_char, type_boolean, type_system_address):
6411 Add "struct parser_state" argument.
6412 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6413 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6414 var_or_type, aggregate, aggregate_component_list,
6415 positional_list, others, component_group,
6416 component_associations): Update calls to write_exp* and similar
6417 functions in order to use parser state.
6418 (ada_parse, write_var_from_sym, write_int,
6419 write_exp_op_with_string, write_object_renaming,
6420 find_primitive_type, write_selectors, write_ambiguous_var,
6421 write_var_or_type, write_name_assoc, type_int, type_long,
6422 type_long_long, type_float, type_double, type_long_double,
6423 type_char, type_boolean, type_system_address): Add "struct
6424 parser_state" argument. Adjust function to use parser state.
6425 * ada-lang.c (parse): Likewise.
6426 * ada-lang.h: Forward declare "struct parser_state".
6427 (ada_parse): Add "struct parser_state" argument.
6428 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6429 calls to both functions.
6430 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6432 (yyparse): Redefine macro to f_parse_internal.
6433 (pstate): New variable.
6434 (parse_number): Add "struct parser_state" argument.
6435 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6436 and similars in order to use parser state.
6437 (parse_number): Adjust code to use parser state.
6439 (f_parse): New function.
6440 * f-lang.h: Forward declare "struct parser_state".
6441 (f_parse): Add "struct parser_state" argument.
6442 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6444 (yyparse): Redefine macro for java_parse_internal.
6445 (pstate): New variable.
6446 (push_expression_name, push_expression_name, insert_exp): Add
6447 "struct parser_state" argument.
6448 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6449 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6450 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6451 PostIncrementExpression, PostDecrementExpression,
6452 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6453 UnaryExpressionNotPlusMinus, CastExpression,
6454 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6455 RelationalExpression, EqualityExpression, AndExpression,
6456 ExclusiveOrExpression, InclusiveOrExpression,
6457 ConditionalAndExpression, ConditionalOrExpression,
6458 ConditionalExpression, Assignment, LeftHandSide): Update
6459 calls to write_exp* and similars in order to use parser state.
6460 (parse_number): Ajust code to use parser state.
6462 (java_parse): New function.
6463 (push_variable): Add "struct parser_state" argument. Adjust
6464 code to user parser state.
6465 (push_fieldnames, push_qualified_expression_name,
6466 push_expression_name, insert_exp): Likewise.
6467 * jv-lang.h: Forward declare "struct parser_state".
6468 (java_parse): Add "struct parser_state" argument.
6469 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6471 (yyparse): Redefine macro to m2_parse_internal.
6472 (pstate): New variable.
6473 (type_exp, exp, fblock, variable, type): Update calls to
6474 write_exp* and similars to use parser state.
6476 (m2_parse): New function.
6477 * m2-lang.h: Forward declare "struct parser_state".
6478 (m2_parse): Add "struct parser_state" argument.
6479 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6480 * objc-lang.h: Forward declare "struct parser_state".
6481 (end_msglist): Add "struct parser_state" argument.
6482 * p-exp.y (parse_type): Rewrite macro to use parser state.
6483 (yyparse): Redefine macro to pascal_parse_internal.
6484 (pstate): New variable.
6485 (parse_number): Add "struct parser_state" argument.
6486 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6487 write_exp* and similars in order to use parser state.
6488 (parse_number, yylex): Adjust code to use parser state.
6489 (pascal_parse): New function.
6490 * p-lang.h: Forward declare "struct parser_state".
6491 (pascal_parse): Add "struct parser_state" argument.
6492 * go-exp.y (parse_type): Rewrite macro to use parser state.
6493 (yyparse): Redefine macro to go_parse_internal.
6494 (pstate): New variable.
6495 (parse_number): Add "struct parser_state" argument.
6496 (type_exp, exp1, exp, variable, type): Update calls to
6497 write_exp* and similars in order to use parser state.
6498 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6499 to use parser state.
6500 (go_parse): Likewise.
6501 * go-lang.h: Forward declare "struct parser_state".
6502 (go_parse): Add "struct parser_state" argument.
6504 2014-03-27 Doug Evans <dje@google.com>
6506 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6508 2014-03-27 Doug Evans <dje@google.com>
6510 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6511 Remove argument abbrev_section. All callers updated.
6513 2014-03-27 Doug Evans <dje@google.com>
6515 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6516 addr_base, ranges_base.
6518 2014-03-26 Keith Seitz <keiths@redhat.com>
6520 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6521 types, not VAR_DOMAIN.
6523 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6525 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6527 * features/nios2-linux.c: Regenerated.
6528 * features/nios2.c: Regenerated.
6530 2014-03-25 Pedro Alves <palves@redhat.com>
6532 * cli/cli-script.c (script_from_file): Force the interpreter to
6535 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6537 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6538 small stack allocation.
6540 2014-03-24 Tristan Gingold <gingold@adacore.com>
6542 * darwin-nat.c (exc_server): Remove unused prototype.
6543 (darwin_dump_message): Correctly display data on x86_64.
6544 (darwin_encode_reply): Fix style.
6545 Add comments and fix indentation.
6547 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6549 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6551 2014-03-22 Doug Evans <xdje42@gmail.com>
6553 * infcmd.c: Whitespace fixes.
6554 (interrupt_command): Merge two function comments into one.
6556 2014-03-22 Doug Evans <xdje42@gmail.com>
6558 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6561 2014-03-22 Yao Qi <yao@codesourcery.com>
6563 * remote.c (target_read_live_memory): Remove.
6564 (memory_xfer_live_readonly_partial): Rename it to
6565 remote_xfer_live_readonly_partial. Remove argument 'object'.
6566 All callers updated. Call remote_read_bytes_1
6567 instead of target_read_live_memory.
6568 * tracepoint.c (set_traceframe_number): Remove.
6569 (make_cleanup_restore_traceframe_number): Likewise .
6570 * tracepoint.h (set_traceframe_number): Remove declaration.
6571 (make_cleanup_restore_traceframe_number): Likewise.
6573 2014-03-22 Yao Qi <yao@codesourcery.com>
6575 * remote.c (remote_read_bytes): Move code on reading from the
6577 (remote_read_bytes_1): ... here. New function.
6579 2014-03-22 Yao Qi <yao@codesourcery.com>
6581 * ctf.c (ctf_xfer_partial): Check the return value of
6582 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6583 return TARGET_XFER_UNAVAILABLE.
6584 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6585 * target.c (target_read_live_memory): Move it to remote.c.
6586 (memory_xfer_live_readonly_partial): Likewise.
6587 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6588 * remote.c (target_read_live_memory): Moved from target.c.
6589 (memory_xfer_live_readonly_partial): Likewise.
6590 (remote_read_bytes): Factored out from
6591 memory_xfer_partial_1.
6593 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6595 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6598 2014-03-21 Pedro Alves <palves@redhat.com>
6600 * infrun.c (normal_stop): Extend comment.
6602 2014-03-21 Hui Zhu <hui@codesourcery.com>
6603 Pedro Alves <palves@redhat.com>
6605 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6607 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6608 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6609 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6611 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6613 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6614 `z' formatted output modifier.
6616 2014-03-20 Tom Tromey <tromey@redhat.com>
6617 Sergio Durigan Junior <sergiodj@redhat.com>
6619 * probe.c (parse_probes): Turn assert into an ordinary error.
6620 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6621 exceptions when parsing probes. Rearrange the code for clarity.
6623 2014-03-20 Tom Tromey <tromey@redhat.com>
6626 * top.c (execute_command): Only dispatch events if the command
6629 2014-03-20 Tom Tromey <tromey@redhat.com>
6632 * infcall.c: Include event-top.h.
6633 (run_inferior_call): Call async_disable_stdin if needed.
6635 2014-03-20 Pedro Alves <palves@redhat.com>
6637 * infrun.c (prepare_to_proceed): Delete.
6638 (thread_still_needs_step_over): New function.
6639 (find_thread_needs_step_over): New function.
6640 (proceed): If the current thread needs a step-over, set its
6641 steping_over_breakpoint flag. Adjust to use
6642 find_thread_needs_step_over instead of prepare_to_proceed.
6643 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6644 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6646 (switch_back_to_stepped_thread): Step over breakpoints of all
6647 threads not the stepping thread, before switching back to the
6650 2014-03-20 Pedro Alves <palves@redhat.com>
6652 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6654 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6655 * infrun.c (saved_singlestep_ptid)
6656 (stepping_past_singlestep_breakpoint): Delete.
6657 (resume): Remove stepping_past_singlestep_breakpoint handling.
6658 (proceed): Store the prev_pc of the stepping thread too.
6659 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6661 (enum infwait_states): Delete infwait_thread_hop_state.
6662 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6664 (handle_inferior_event): Adjust.
6665 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6666 handling and the thread-hop code. Before removing single-step
6667 breakpoints, check whether the thread hit a single-step breakpoint
6668 of another thread. If it did, the trap is not a random signal.
6669 (switch_back_to_stepped_thread): If the event thread hit a
6670 single-step breakpoint, unblock it before switching to the
6671 stepping thread. Handle the case of the stepped thread having
6673 (keep_going): Handle the case of the current thread moving past a
6674 single-step breakpoint.
6676 2014-03-20 Pedro Alves <palves@redhat.com>
6679 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6680 are being stepped over.
6681 (breakpoint_address_match): Make extern.
6682 * breakpoint.h (breakpoint_address_match): New declaration.
6683 * inferior.h (stepping_past_instruction_at): New declaration.
6684 * infrun.c (struct step_over_info): New type.
6685 (step_over_info): New global.
6686 (set_step_over_info, clear_step_over_info)
6687 (stepping_past_instruction_at): New functions.
6688 (handle_inferior_event): Clear the step-over info when
6689 trap_expected is cleared.
6690 (resume): Remove now stale comment.
6691 (clear_proceed_status): Clear step-over info.
6692 (proceed): Adjust step-over handling to set or clear the step-over
6693 info instead of removing all breakpoints.
6694 (handle_signal_stop): When setting up a thread-hop, don't remove
6696 (stop_stepping): Clear step-over info.
6697 (keep_going): Adjust step-over handling to set or clear step-over
6698 info and then always inserting breakpoints, instead of removing
6699 all breakpoints when stepping over one.
6701 2014-03-20 Pedro Alves <palves@redhat.com>
6703 * infrun.c (previous_inferior_ptid): Adjust comment.
6704 (deferred_step_ptid): Delete.
6705 (infrun_thread_ptid_changed, prepare_to_proceed)
6706 (init_wait_for_inferior): Adjust.
6707 (handle_signal_stop): Delete deferred_step_ptid handling.
6709 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6712 * defs.h (sync_quit_force_run): New declaration.
6713 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6714 * event-top.c (async_sigterm_handler): New declaration.
6715 (async_sigterm_token): New variable.
6716 (async_init_signals): Create also async_sigterm_token.
6717 (async_sigterm_handler): New function.
6718 (sync_quit_force_run): New variable.
6719 (handle_sigterm): Replace quit_force call by other calls.
6720 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6722 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6724 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6725 offset into SPE pseudo registers.
6727 2014-03-18 Pedro Alves <palves@redhat.com>
6730 * inferior.h (print_stop_event): Declare.
6731 * infrun.c (print_stop_event): New, factored out from ...
6732 (normal_stop): ... this.
6733 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6734 of bpstat_print/print_stack_frame.
6736 2014-03-17 Tom Tromey <tromey@redhat.com>
6738 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6740 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6742 * ada-lang.c (decode_constrained_packed_array): Perform a
6743 minimal coercion for reference with coerce_ref instead of
6746 2014-03-17 Tristan Gingold <gingold@adacore.com>
6748 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6749 (darwin_solib_create_inferior_hook): Emit a warning if version
6752 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
6754 * python/py-value.c (get_field_flag): Cast flag_name argument to
6755 PyObject_GetAttrString to support Python 2.4.
6757 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6759 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6760 (Global Maintainers): Remove Jan Kratochvil.
6762 2014-03-14 Pedro Alves <palves@redhat.com>
6764 * inferior.h (terminal_ours_for_output): Rename to ...
6765 (child_terminal_ours_for_output): ... this.
6766 (terminal_save_ours): Rename to ...
6767 (child_terminal_save_ours): ... this.
6768 (terminal_ours): Rename to ...
6769 (child_terminal_ours): ... this.
6770 (terminal_inferior): Rename to ...
6771 (child_terminal_inferior): ... this.
6772 (terminal_init_inferior): Rename to ...
6773 (child_terminal_init_inferior): ... this.
6774 (terminal_init_inferior_with_pgrp): Rename to ...
6775 (child_terminal_init_inferior_with_pgrp): ... this.
6776 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6777 (child_terminal_init_with_pgrp): ... this.
6778 (terminal_save_ours): Rename to ...
6779 (child_terminal_save_ours): ... this.
6780 (terminal_init_inferior): Rename to ...
6781 (child_terminal_init): ... this. Adjust.
6782 (terminal_inferior): Rename to ...
6783 (child_terminal_inferior): ... this.
6784 (terminal_ours_for_output): Rename to ...
6785 (child_terminal_ours_for_output): ... this. Adjust.
6786 (terminal_ours): Rename to ...
6787 (child_terminal_ours): ... this.
6788 (terminal_ours_1): Rename to ...
6789 (child_terminal_ours_1): ... this. Adjust.
6790 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6791 * windows-nat.c (do_initial_windows_stuff): Adjust.
6792 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6793 (gnu_terminal_init): ... this. Adjust.
6794 (gnu_target): Adjust.
6795 * inf-child.c (inf_child_target): Adjust.
6797 2014-03-13 Doug Evans <xdje42@gmail.com>
6800 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6803 2014-03-13 Doug Evans <xdje42@gmail.com>
6805 * value.c (record_latest_value): Call release_value_or_incref
6806 instead of release_value.
6808 2014-03-13 Pedro Alves <palves@redhat.com>
6810 * procfs.c (procfs_target): Don't override to_shortname,
6811 to_longname or to_doc.
6813 2014-03-13 Pedro Alves <palves@redhat.com>
6815 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6816 Unix in user visible strings.
6818 2014-03-12 Stan Shebs <stan@codesourcery.com>
6820 * gdbtypes.h: Annotate comments for Doxygen, add a page
6821 block comment with some general info.
6823 2014-03-12 Pedro Alves <palves@redhat.com>
6825 * infcmd.c (prepare_execution_command): New function, factored out
6826 from several execution commands.
6827 (run_command_1, continue_command, step_1, jump_command)
6828 (signal_command, until_command, advance_command, finish_command)
6829 (attach_command): Use prepare_execution_command.
6831 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6833 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6836 (struct arm_linux_thread_points): Removed.
6837 (struct arm_linux_process_info): New.
6838 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6839 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6840 (arm_linux_find_breakpoints_by_tid): Removed.
6841 (struct arch_lwp_info): New.
6842 (arm_linux_find_process_pid): New functions.
6843 (arm_linux_add_process): New functions.
6844 (arm_linux_process_info_get): New functions.
6845 (arm_linux_forget_process): New function.
6846 (arm_linux_get_debug_reg_state): New function.
6847 (struct update_registers_data): New.
6848 (update_registers_callback): New function.
6849 (arm_linux_insert_hw_breakpoint1): Updated.
6850 (arm_linux_remove_hw_breakpoint1): Updated.
6851 (arm_linux_insert_hw_breakpoint): Updated.
6852 (arm_linux_remove_hw_breakpoint): Updated.
6853 (arm_linux_insert_watchpoint): Updated.
6854 (arm_linux_remove_watchpoint): Updated.
6855 (arm_linux_new_thread): Updated.
6856 (arm_linux_prepare_to_resume): New function.
6857 (arm_linux_new_fork): New function.
6858 (_initialize_arm_linux_nat): Updated.
6860 2014-03-12 Pedro Alves <palves@redhat.com>
6862 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6864 2014-03-12 Tom Tromey <tromey@redhat.com>
6866 * inf-child.c (return_zero): New function.
6867 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6868 * aix-thread.c (aix_thread_inferior_created): New function.
6869 (aix_thread_attach): Remove.
6870 (init_aix_thread_ops): Don't set to_attach.
6871 (_initialize_aix_thread): Register inferior_created observer.
6872 * corelow.c (init_core_ops): Don't set to_attach or
6874 * exec.c (init_exec_ops): Don't set to_attach or
6876 * infcmd.c (run_command_1): Use find_run_target. Make direct
6878 (attach_command): Use find_attach_target. Make direct target
6880 * record-btrace.c (init_record_btrace_ops): Don't set
6882 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6884 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6885 set to_create_inferior.
6886 * target.c (complete_target_initialization): Add assertion.
6887 (target_create_inferior): Remove.
6888 (find_default_attach, find_default_create_inferior): Remove.
6889 (find_attach_target, find_run_target): New functions.
6890 (find_default_is_async_p, find_default_can_async_p)
6891 (target_supports_non_stop, target_attach): Remove.
6892 (init_dummy_target): Don't set to_create_inferior or
6893 to_supports_non_stop.
6894 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6895 TARGET_DEFAULT_FUNC.
6896 <to_create_inferior>: Add comment.
6897 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6898 TARGET_DEFAULT_RETURN.
6899 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6900 (find_attach_target, find_run_target): Declare.
6901 (target_create_inferior): Remove.
6902 (target_has_execution_1): Update comment.
6903 (target_supports_non_stop): Remove.
6904 * target-delegates.c: Rebuild.
6906 2014-03-12 Pedro Alves <palves@redhat.com>
6908 * inf-child.h: Update comment to not mention Unix.
6910 2014-03-12 Pedro Alves <palves@redhat.com>
6912 * inf-child.c: Update top comment to not mention Unix. Add
6913 generic comment describing how this target is meant to be used.
6914 (inf_child_post_attach, inf_child_post_startup_inferior)
6915 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6918 2014-03-12 Pedro Alves <palves@redhat.com>
6920 * nto-procfs.c: Include inf-child.h.
6921 (procfs_ops): Delete global.
6922 (procfs_can_run): Delete method.
6923 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6924 target pointer instead of referencing procfs_ops.
6925 (procfs_prepare_to_store): Delete.
6926 (init_procfs_ops): Delete function.
6927 (procfs_target): New function, based on init_procfs_ops, but
6928 inherit inf_child_target.
6929 (_initialize_procfs): Use procfs_target.
6931 2014-03-12 Pedro Alves <palves@redhat.com>
6933 * windows-nat.c: Include inf-child.h.
6934 (windows_ops): Delete global.
6935 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6937 (init_windows_ops): Delete function.
6938 (windows_target): New function, based on init_windows_ops, but
6939 inherit inf_child_target.
6940 (_initialize_windows_nat): Use windows_target. Install x86
6941 specific target methods here.
6943 2014-03-10 Doug Evans <xdje42@gmail.com>
6945 * guile/guile.c (call_initialize_gdb_module): New function.
6946 (initialize_guile): Replace call to scm_init_guile with call to
6949 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6951 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6952 in call to TYPE_CODE macro.
6954 2014-03-10 Jerome Guitton <guitton@adacore.com>
6956 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6957 Resolve tagged types to full view.
6959 2014-03-10 Hui Zhu <hui@codesourcery.com>
6961 * target.h (target_insert_breakpoint): Remove "hardware" from its
6964 2014-03-07 Doug Evans <dje@google.com>
6966 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6968 2014-03-07 Doug Evans <dje@google.com>
6970 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6971 Remove unused local comp_dir_attr. Assert exactly one of
6972 stub_comp_unit_die, stub_comp_dir is non-NULL.
6974 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6976 * target.h (complete_target_initialization, add_target):
6979 2014-03-07 Pedro Alves <palves@redhat.com>
6981 * go32-nat.c: Include inf-child.h.
6982 (go32_ops): Delete global.
6983 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6985 (go32_create_inferior): Push the passed in target pointer instead
6986 of referencing go32_ops.
6987 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6988 (go32_target): New function, based on init_go32_ops, but inherit
6990 (_initialize_go32_nat): Use go32_target. Move parts of
6993 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6995 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6996 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6997 SYMBOL_VALUE_ADDRESS.
6998 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
7000 2014-03-06 Yao Qi <yao@codesourcery.com>
7002 * breakpoint.c (get_tracepoint_by_number): Remove argument
7003 optional_p. All callers updated. Adjust comments. Update
7005 * breakpoint.h (get_tracepoint_by_number): Update declaration.
7007 2014-03-06 Yao Qi <yao@codesourcery.com>
7009 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
7010 early if get_number returns zero. Use 'p' instead of 'args'.
7012 2014-03-06 Yao Qi <yao@codesourcery.com>
7014 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
7017 2014-03-06 Yao Qi <yao@codesourcery.com>
7019 PR breakpoints/16508
7020 * tracepoint.c (check_trace_running): New function.
7021 (trace_find_command): Move code to check_trace_running and
7022 call check_trace_running.
7023 (trace_find_pc_command): Likewise.
7024 (trace_find_tracepoint_command): Likewise.
7025 (trace_find_line_command): Likewise.
7026 (trace_find_range_command): Likewise.
7027 * tracepoint.h (check_trace_running): Likewise.
7028 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
7030 2014-03-06 Yao Qi <yao@codesourcery.com>
7032 * target.h (struct target_ops) <to_traceframe_info>: Use
7033 TARGET_DEFAULT_NORETURN (tcomplain ()).
7034 * target-delegates.c: Regenerated.
7036 2014-03-05 Pedro Alves <palves@redhat.com>
7039 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
7040 void. Update comment.
7041 (dcache_xfer_memory): Delete.
7042 (dcache_read_memory_partial): New, based on the read bits of
7044 (dcache_update): Add status parameter. Use ULONGEST for len, and
7045 adjust. Discard cache lines if the reason for the update was
7047 * dcache.h (dcache_xfer_memory): Delete declaration.
7048 (dcache_read_memory_partial): New declaration.
7049 (dcache_update): Update prototype.
7050 * target.c (raw_memory_xfer_partial): Update the dcache here.
7051 (memory_xfer_partial_1): Don't handle dcache writes here.
7053 2014-03-05 Mike Frysinger <vapier@gentoo.org>
7055 * remote-sim.c (gdbsim_load): Add const to prog.
7057 2014-03-03 Tom Tromey <tromey@redhat.com>
7059 * elfread.c (probe_key): Change to bfd_data.
7060 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
7061 now per-BFD, not per-objfile.
7062 * stap-probe.c (stap_probe_destroy): Update comment.
7063 (handle_stap_probe): Allocate on the per-BFD obstack.
7065 2014-03-03 Tom Tromey <tromey@redhat.com>
7067 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
7068 * breakpoint.c (create_longjmp_master_breakpoint): Use
7070 (add_location_to_breakpoint, bkpt_probe_insert_location)
7071 (bkpt_probe_remove_location): Update.
7072 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
7073 * elfread.c (elf_symfile_relocate_probe): Remove.
7074 (elf_probe_fns): Update.
7075 (insert_exception_resume_breakpoint): Change type of "probe"
7076 parameter to bound_probe.
7077 (check_exception_resume): Update.
7078 * objfiles.c (objfile_relocate1): Don't relocate probes.
7079 * probe.c (bound_probe_s): New typedef.
7080 (parse_probes): Use get_probe_address. Set sal's objfile.
7081 (find_probe_by_pc): Return a bound_probe.
7082 (collect_probes): Return a VEC(bound_probe_s).
7083 (compare_probes): Update.
7084 (gen_ui_out_table_header_info): Change type of "probes"
7086 (info_probes_for_ops): Update.
7087 (get_probe_address): New function.
7088 (probe_safe_evaluate_at_pc): Update.
7089 * probe.h (struct probe_ops) <get_probe_address>: New field.
7090 <set_semaphore, clear_semaphore>: Add objfile parameter.
7091 (struct probe) <objfile>: Remove field.
7093 <address>: Update comment.
7094 (struct bound_probe): New.
7095 (find_probe_by_pc): Return a bound_probe.
7096 (get_probe_address): Declare.
7097 * solib-svr4.c (struct probe_and_action) <address>: New field.
7098 (hash_probe_and_action, equal_probe_and_action): Update.
7099 (register_solib_event_probe): Add address parameter.
7100 (solib_event_probe_at): Update.
7101 (svr4_create_probe_breakpoints): Add objfile parameter. Use
7103 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
7104 (stap_get_probe_address): New function.
7105 (stap_can_evaluate_probe_arguments, compute_probe_arg)
7106 (compile_probe_arg): Update.
7107 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
7109 (handle_stap_probe): Don't relocate the probe.
7110 (stap_relocate): Remove.
7111 (stap_gen_info_probes_table_values): Update.
7112 (stap_probe_ops): Remove stap_relocate.
7113 * symfile-debug.c (debug_sym_relocate_probe): Remove.
7114 (debug_sym_probe_fns): Update.
7115 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
7116 * symtab.c (init_sal): Use memset.
7117 * symtab.h (struct symtab_and_line) <objfile>: New field.
7118 * tracepoint.c (start_tracing, stop_tracing): Update.
7120 2014-03-03 Tom Tromey <tromey@redhat.com>
7122 * probe.h (parse_probes, find_probe_by_pc)
7123 (find_probes_in_objfile): Fix comments.
7125 2014-03-02 Doug Evans <xdje42@gmail.com>
7127 * infrun.c (handle_signal_stop): Replace test for
7128 TARGET_WAITKIND_STOPPED with an assert.
7130 2014-03-02 Doug Evans <xdje42@gmail.com>
7132 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
7134 2014-03-02 Doug Evans <xdje42@gmail.com>
7136 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
7138 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7140 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7142 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7144 * i386obsd-nat.c: Include "obsd-nat.h".
7145 (_initialize_i386obsd_nat): Call obsd_add_target instead of
7147 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
7149 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7151 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
7153 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7155 * mips64obsd-nat.c: Include "obsd-nath".
7156 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
7158 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7160 2014-03-01 Mark Kettenis <kettenis@gnu.org>
7162 * amd64obsd-nat.c: Include "obsd-nat,h.
7163 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
7165 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
7167 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
7169 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
7170 (find_overload_match): Update call to find_oload_champ.
7171 (find_oload_champ_namespace_loop): Likewise
7173 2014-02-28 Mark Kettenis <kettenis@gnu.org>
7175 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
7177 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
7178 * config/sparc/obsd64.mh: New file.
7179 * sparc64obsd-nat.c: New file.
7181 * obsd-nat.h: New file.
7182 * obsd-nat.c: New file.
7183 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
7184 (ALLDEPFILES): Add obsd-nat.c.
7186 2014-02-28 Tom Tromey <tromey@redhat.com>
7188 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
7189 * cli-out.h (cli_ui_out_impl): Now const.
7190 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
7191 * ui-out.c (struct ui_out) <impl>: Now const.
7192 (default_ui_out_impl): Now const.
7193 (ui_out_new): Make 'impl' parameter const.
7194 * ui-out.h (ui_out_new): Update.
7196 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7198 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
7200 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7202 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
7204 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7206 Additional PR 8882 fix.
7207 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
7209 2014-02-27 Pedro Alves <palves@redhat.com>
7211 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
7214 2014-02-27 Pedro Alves <palves@redhat.com>
7217 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
7218 * nat/linux-waitpid.c: Include string.h.
7219 (status_to_str): Moved here and made extern.
7220 * nat/linux-waitpid.h (status_to_str): New declaration.
7222 2014-02-27 Hui Zhu <hui@codesourcery.com>
7225 * infrun.c (ptid_match): Move ...
7226 * common/ptid.c (ptid_match): ... here.
7227 * inferior.h (ptid_match): Move ...
7228 * common/ptid.h (ptid_match): ... here.
7230 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7232 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
7233 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
7236 2014-02-27 Mark Kettenis <kettenis@gnu.org>
7238 * obsd-tdep.c (obsd_auxv_parse): New function.
7239 (obsd_init_abi): Set auxv_parse.
7241 * gdbarch.sh (auxv_parse): New.
7242 * gdbarch.h: Regenerated.
7243 * gdbarch.c: Regenerated.
7244 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7246 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7248 * guile/scm-value.c (gdbscm_history_append_x): New function.
7249 (value_functions): Add it.
7251 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7253 * dwarf2read.c (attr_value_as_address): New function.
7254 (dwarf2_find_base_address, read_call_site_scope): Use
7255 attr_value_as_address in place of DW_ADDR.
7256 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7257 the low and high addresses. Slight rework of the handling
7258 of the high pc being a constant form, and limit it to
7259 DWARF verson 4 or higher.
7260 (dwarf2_record_block_ranges): Likewise.
7261 (read_partial_die): Likewise.
7262 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7264 2014-02-26 Tom Tromey <tromey@redhat.com>
7266 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7268 2014-02-26 Tom Tromey <tromey@redhat.com>
7270 * elfread.c (elf_read_minimal_symbols): Return early if
7271 minimal symbols have already been read. Add "ei" parameter.
7272 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7273 * minsyms.c (prim_record_minimal_symbol_full): Update.
7274 * objfiles.h (struct objstats) <n_minsyms>: Move...
7275 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7276 * symmisc.c (print_objfile_statistics): Update.
7278 2014-02-26 Tom Tromey <tromey@redhat.com>
7280 * elfread.c (elf_read_minimal_symbols): New function, from
7282 (elf_symfile_read): Call it.
7284 2014-02-26 Tom Tromey <tromey@redhat.com>
7286 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7287 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7288 (lookup_minimal_symbol_solib_trampoline)
7289 (lookup_minimal_symbol_by_pc_section_1)
7290 (lookup_minimal_symbol_and_objfile): Update.
7291 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7292 Don't allocate a minimal symbol if minsyms have already been read.
7293 (build_minimal_symbol_hash_tables): Update.
7294 (install_minimal_symbols): Do nothing if minsyms already read.
7295 Use the per-BFD obstack.
7296 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7297 * objfiles.c (allocate_objfile): Call
7298 terminate_minimal_symbol_table later.
7299 (have_minimal_symbols): Update.
7300 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7301 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7302 Move from struct objfile.
7303 <minsyms_read>: New field.
7304 (struct objfile) <msymbols, minimal_symbol_count,
7305 msymbol_hash, msymbol_demangled_hash>: Move.
7306 (ALL_OBJFILE_MSYMBOLS): Update.
7307 * symfile.c (read_symbols): Set minsyms_read.
7308 (reread_symbols): Update.
7309 * symmisc.c (dump_objfile, dump_msymbols): Update.
7311 2014-02-26 Tom Tromey <tromey@redhat.com>
7313 * minsyms.c (msymbols_sort): Remove.
7314 * minsyms.h (msymbols_sort): Remove.
7315 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7316 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7317 * elfread.c (elf_symtab_read): Don't add section offsets.
7318 * xcoffread.c (record_minimal_symbol): Don't add section offset
7319 to minimal symbol address.
7320 * somread.c (text_offset, data_offset): Remove.
7321 (som_symtab_read): Don't add section offsets to minimal symbol
7323 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7324 Don't add section offsets to minimal symbols.
7325 * coffread.c (coff_symtab_read): Don't add section offsets
7326 to minimal symbol addresses.
7327 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7328 to minimal symbol addresses.
7329 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7330 section offset to minimal symbol addresses.
7331 * mdebugread.c (parse_partial_symbols): Don't add section
7332 offset to minimal symbol addresses.
7333 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7334 offset to minimal symbol addresses.
7336 2014-02-26 Tom Tromey <tromey@redhat.com>
7338 * ada-lang.c (ada_main_name): Update.
7339 (ada_add_standard_exceptions): Update.
7340 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7341 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7342 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7343 * auxv.c (ld_so_xfer_auxv): Update.
7344 * avr-tdep.c (avr_scan_prologue): Update.
7345 * ax-gdb.c (gen_var_ref): Update.
7346 * blockframe.c (get_pc_function_start)
7347 (find_pc_partial_function_gnu_ifunc): Update.
7348 * breakpoint.c (create_overlay_event_breakpoint)
7349 (create_longjmp_master_breakpoint)
7350 (create_std_terminate_master_breakpoint)
7351 (create_exception_master_breakpoint): Update.
7352 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7353 * c-valprint.c (c_val_print): Update.
7354 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7355 * common/agent.c (agent_look_up_symbols): Update.
7356 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7357 * dwarf2loc.c (call_site_to_target_addr): Update.
7358 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7359 * elfread.c (elf_gnu_ifunc_record_cache)
7360 (elf_gnu_ifunc_resolve_by_got): Update.
7361 * findvar.c (default_read_var_value): Update.
7362 * frame.c (inside_main_func): Update.
7363 * frv-tdep.c (frv_frame_this_id): Update.
7364 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7365 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7367 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7368 (hppa_hpux_find_dummy_bpaddr): Update.
7369 * hppa-tdep.c (hppa_symbol_address): Update.
7370 * infcmd.c (until_next_command): Update.
7371 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7373 * linespec.c (minsym_found, add_minsym): Update.
7374 * linux-nat.c (get_signo): Update.
7375 * linux-thread-db.c (inferior_has_bug): Update.
7376 * m32c-tdep.c (m32c_return_value)
7377 (m32c_m16c_address_to_pointer): Update.
7378 * m32r-tdep.c (m32r_frame_this_id): Update.
7379 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7380 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7381 * maint.c (maintenance_translate_address): Update.
7382 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7383 (frob_address): New function.
7384 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7385 frob_address. Rename parameter to "pc_in".
7386 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7388 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7390 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7391 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7392 * objc-lang.c (find_objc_msgsend): Update.
7393 * objfiles.c (objfile_relocate1): Update.
7394 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7395 * p-valprint.c (pascal_val_print): Update.
7396 * parse.c (write_exp_msymbol): Update.
7397 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7398 (ppc_elfv2_skip_entrypoint): Update.
7399 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7400 * printcmd.c (build_address_symbolic, msym_info)
7401 (address_info): Update.
7402 * proc-service.c (ps_pglobal_lookup): Update.
7403 * psymtab.c (find_pc_sect_psymtab_closer)
7404 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7405 Change msymbol parameter to bound_minimal_symbol.
7406 * ravenscar-thread.c (get_running_thread_id): Update.
7407 * remote.c (remote_check_symbols): Update.
7408 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7410 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7411 * solib-dsbt.c (lm_base): Update.
7412 * solib-frv.c (lm_base, main_got): Update.
7413 * solib-irix.c (locate_base): Update.
7414 * solib-som.c (som_solib_create_inferior_hook)
7415 (link_map_start): Update.
7416 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7417 * solib-svr4.c (elf_locate_base, enable_break): Update.
7418 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7419 (flush_ea_cache): Update.
7420 * stabsread.c (define_symbol, scan_file_globals): Update.
7421 * stack.c (find_frame_funname): Update.
7422 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7423 (debug_qf_find_pc_sect_symtab): Update.
7424 * symfile.c (simple_read_overlay_table)
7425 (simple_overlay_update): Update.
7426 * symfile.h (struct quick_symbol_functions)
7427 <find_pc_sect_symtab>: Change type of msymbol to
7428 bound_minimal_symbol.
7429 * symmisc.c (dump_msymbols): Update.
7430 * symtab.c (find_pc_sect_symtab_via_partial)
7431 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7432 (search_symbols, print_msymbol_info): Update.
7433 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7434 (MSYMBOL_VALUE_ADDRESS): Redefine.
7435 (BMSYMBOL_VALUE_ADDRESS): New macro.
7436 * tracepoint.c (scope_info): Update.
7437 * tui/tui-disasm.c (tui_find_disassembly_address)
7438 (tui_get_begin_asm_address): Update.
7439 * valops.c (find_function_in_inferior): Update.
7440 * value.c (value_static_field, value_fn_field): Update.
7442 2014-02-26 Tom Tromey <tromey@redhat.com>
7444 * ada-lang.c (ada_update_initial_language): Update.
7445 (ada_main_name, ada_has_this_exception_support): Update.
7446 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7447 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7448 * arm-tdep.c (arm_skip_stub): Update.
7449 * auxv.c (ld_so_xfer_auxv): Update.
7450 * avr-tdep.c (avr_scan_prologue): Update.
7451 * ax-gdb.c (gen_var_ref): Update.
7452 * breakpoint.c (struct breakpoint_objfile_data)
7453 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7454 type to bound_minimal_symbol.
7455 (create_overlay_event_breakpoint)
7456 (create_longjmp_master_breakpoint)
7457 (create_std_terminate_master_breakpoint)
7458 (create_exception_master_breakpoint): Update.
7459 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7460 * c-exp.y (classify_name): Update.
7461 * coffread.c (coff_symfile_read): Update.
7462 * common/agent.c (agent_look_up_symbols): Update.
7463 * d-lang.c (d_main_name): Update.
7464 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7465 * dec-thread.c (enable_dec_thread): Update.
7466 * dwarf2loc.c (call_site_to_target_addr): Update.
7467 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7468 * eval.c (evaluate_subexp_standard): Update.
7469 * findvar.c (struct minsym_lookup_data) <result>: Change type
7470 to bound_minimal_symbol.
7472 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7473 * frame.c (inside_main_func): Update.
7474 * frv-tdep.c (frv_frame_this_id): Update.
7475 * gcore.c (call_target_sbrk): Update.
7476 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7477 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7479 * go-lang.c (go_main_name): Update.
7480 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7481 (hppa_hpux_find_import_stub_for_addr): Update.
7482 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7483 Update. Change return type.
7484 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7486 * jit.c (jit_breakpoint_re_set_internal): Update.
7487 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7489 * linux-nat.c (get_signo): Update.
7490 * linux-thread-db.c (inferior_has_bug): Update
7491 * m32c-tdep.c (m32c_return_value)
7492 (m32c_m16c_address_to_pointer): Update.
7493 * m32r-tdep.c (m32r_frame_this_id): Update.
7494 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7495 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7496 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7497 lookup_minimal_symbol. Change return type.
7498 (lookup_minimal_symbol): Remove.
7499 (lookup_bound_minimal_symbol): Update.
7500 (lookup_minimal_symbol_text): Change return type.
7501 (lookup_minimal_symbol_solib_trampoline): Change return type.
7502 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7503 (lookup_minimal_symbol_solib_trampoline): Change return type.
7504 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7505 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7506 (value_nsstring, find_imps): Update.
7507 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7508 * p-lang.c (pascal_main_name): Update.
7509 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7510 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7511 * proc-service.c (ps_pglobal_lookup): Update.
7512 * ravenscar-thread.c (get_running_thread_msymbol): Change
7514 (has_ravenscar_runtime, get_running_thread_id): Update.
7515 * remote.c (remote_check_symbols): Update.
7516 * sol-thread.c (ps_pglobal_lookup): Update.
7517 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7518 * solib-dsbt.c (lm_base): Update.
7519 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7521 * solib-irix.c (locate_base): Update.
7522 * solib-som.c (som_solib_create_inferior_hook)
7523 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7525 * solib-spu.c (spu_enable_break): Update.
7526 * solib-svr4.c (elf_locate_base, enable_break): Update.
7527 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7528 (flush_ea_cache): Update.
7529 * stabsread.c (define_symbol): Update.
7530 * symfile.c (simple_read_overlay_table): Update.
7531 * symtab.c (find_pc_sect_line): Update.
7532 * tracepoint.c (scope_info): Update.
7533 * tui-disasm.c (tui_get_begin_asm_address): Update.
7534 * value.c (value_static_field): Update.
7536 2014-02-26 Tom Tromey <tromey@redhat.com>
7538 * minsyms.c (prim_record_minimal_symbol_full): Use
7539 SET_MSYMBOL_VALUE_ADDRESS.
7540 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7541 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7542 SET_MSYMBOL_VALUE_ADDRESS.
7543 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7544 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7546 2014-02-26 Tom Tromey <tromey@redhat.com>
7548 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7549 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7550 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7551 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7552 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7553 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7554 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7555 * ada-lang.c (ada_main_name): Update.
7556 (ada_lookup_simple_minsym): Update.
7557 (ada_make_symbol_completion_list): Update.
7558 (ada_add_standard_exceptions): Update.
7559 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7560 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7561 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7562 * arm-tdep.c (skip_prologue_function): Update.
7563 (arm_skip_stack_protector, arm_skip_stub): Update.
7564 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7565 (arm_wince_skip_main_prologue): Update.
7566 * auxv.c (ld_so_xfer_auxv): Update.
7567 * avr-tdep.c (avr_scan_prologue): Update.
7568 * ax-gdb.c (gen_var_ref): Update.
7569 * block.c (call_site_for_pc): Update.
7570 * blockframe.c (get_pc_function_start): Update.
7571 (find_pc_partial_function_gnu_ifunc): Update.
7572 * breakpoint.c (create_overlay_event_breakpoint): Update.
7573 (create_longjmp_master_breakpoint): Update.
7574 (create_std_terminate_master_breakpoint): Update.
7575 (create_exception_master_breakpoint): Update.
7576 (resolve_sal_pc): Update.
7577 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7578 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7580 * c-valprint.c (c_val_print): Update.
7581 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7582 * coffread.c (coff_symfile_read): Update.
7583 * common/agent.c (agent_look_up_symbols): Update.
7584 * dbxread.c (find_stab_function_addr): Update.
7585 (end_psymtab): Update.
7586 * dwarf2loc.c (call_site_to_target_addr): Update.
7587 (func_verify_no_selftailcall): Update.
7588 (tailcall_dump): Update.
7589 (call_site_find_chain_1): Update.
7590 (dwarf_expr_reg_to_entry_parameter): Update.
7591 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7592 (elf_gnu_ifunc_resolve_by_got): Update.
7593 * f-valprint.c (info_common_command): Update.
7594 * findvar.c (read_var_value): Update.
7595 * frame.c (get_prev_frame_1): Update.
7596 (inside_main_func): Update.
7597 * frv-tdep.c (frv_skip_main_prologue): Update.
7598 (frv_frame_this_id): Update.
7599 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7600 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7601 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7602 (gnuv3_skip_trampoline): Update.
7603 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7604 (hppa64_hpux_in_solib_call_trampoline): Update.
7605 (hppa_hpux_skip_trampoline_code): Update.
7606 (hppa64_hpux_search_dummy_call_sequence): Update.
7607 (hppa_hpux_find_import_stub_for_addr): Update.
7608 (hppa_hpux_find_dummy_bpaddr): Update.
7609 * hppa-tdep.c (hppa_symbol_address)
7610 (hppa_lookup_stub_minimal_symbol): Update.
7611 * i386-tdep.c (i386_skip_main_prologue): Update.
7612 (i386_pe_skip_trampoline_code): Update.
7613 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7614 * infcall.c (get_function_name): Update.
7615 * infcmd.c (until_next_command): Update.
7616 * jit.c (jit_breakpoint_re_set_internal): Update.
7617 (jit_inferior_init): Update.
7618 * linespec.c (minsym_found): Update.
7619 (add_minsym): Update.
7620 * linux-fork.c (info_checkpoints_command): Update.
7621 * linux-nat.c (get_signo): Update.
7622 * linux-thread-db.c (inferior_has_bug): Update.
7623 * m32c-tdep.c (m32c_return_value): Update.
7624 (m32c_m16c_address_to_pointer): Update.
7625 (m32c_m16c_pointer_to_address): Update.
7626 * m32r-tdep.c (m32r_frame_this_id): Update.
7627 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7628 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7629 * maint.c (maintenance_translate_address): Update.
7630 * minsyms.c (add_minsym_to_hash_table): Update.
7631 (add_minsym_to_demangled_hash_table): Update.
7632 (msymbol_objfile): Update.
7633 (lookup_minimal_symbol): Update.
7634 (iterate_over_minimal_symbols): Update.
7635 (lookup_minimal_symbol_text): Update.
7636 (lookup_minimal_symbol_by_pc_name): Update.
7637 (lookup_minimal_symbol_solib_trampoline): Update.
7638 (lookup_minimal_symbol_by_pc_section_1): Update.
7639 (lookup_minimal_symbol_and_objfile): Update.
7640 (prim_record_minimal_symbol_full): Update.
7641 (compare_minimal_symbols): Update.
7642 (compact_minimal_symbols): Update.
7643 (build_minimal_symbol_hash_tables): Update.
7644 (install_minimal_symbols): Update.
7645 (terminate_minimal_symbol_table): Update.
7646 (find_solib_trampoline_target): Update.
7647 (minimal_symbol_upper_bound): Update.
7648 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7649 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7650 (mips_skip_pic_trampoline_code): Update.
7651 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7652 * objc-lang.c (selectors_info): Update.
7653 (classes_info): Update.
7654 (find_methods): Update.
7655 (find_imps): Update.
7656 (find_objc_msgsend): Update.
7657 * objfiles.c (objfile_relocate1): Update.
7658 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7659 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7660 * p-valprint.c (pascal_val_print): Update.
7661 * parse.c (write_exp_msymbol): Update.
7662 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7663 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7664 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7665 * printcmd.c (build_address_symbolic): Update.
7667 (address_info): Update.
7668 * proc-service.c (ps_pglobal_lookup): Update.
7669 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7670 (find_pc_sect_psymtab): Update.
7671 * python/py-framefilter.c (py_print_frame): Update.
7672 * ravenscar-thread.c (get_running_thread_id): Update.
7673 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7675 * remote.c (remote_check_symbols): Update.
7676 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7677 (rs6000_skip_trampoline_code): Update.
7678 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7679 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7680 * solib-dsbt.c (lm_base): Update.
7681 * solib-frv.c (lm_base): Update.
7683 * solib-irix.c (locate_base): Update.
7684 * solib-som.c (som_solib_create_inferior_hook): Update.
7685 (som_solib_desire_dynamic_linker_symbols): Update.
7686 (link_map_start): Update.
7687 * solib-spu.c (spu_enable_break): Update.
7688 (ocl_enable_break): Update.
7689 * solib-svr4.c (elf_locate_base): Update.
7690 (enable_break): Update.
7691 * spu-tdep.c (spu_get_overlay_table): Update.
7692 (spu_catch_start): Update.
7693 (flush_ea_cache): Update.
7694 * stabsread.c (define_symbol): Update.
7695 (scan_file_globals): Update.
7696 * stack.c (find_frame_funname): Update.
7697 (frame_info): Update.
7698 * symfile.c (simple_read_overlay_table): Update.
7699 (simple_overlay_update): Update.
7700 * symmisc.c (dump_msymbols): Update.
7701 * symtab.c (fixup_section): Update.
7702 (find_pc_sect_line): Update.
7703 (skip_prologue_sal): Update.
7704 (search_symbols): Update.
7705 (print_msymbol_info): Update.
7706 (rbreak_command): Update.
7707 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7708 (completion_list_objc_symbol): Update.
7709 (default_make_symbol_completion_list_break_on): Update.
7710 * tracepoint.c (scope_info): Update.
7711 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7712 (tui_get_begin_asm_address): Update.
7713 * valops.c (find_function_in_inferior): Update.
7714 * value.c (value_static_field): Update.
7715 (value_fn_field): Update.
7717 2014-02-26 Tom Tromey <tromey@redhat.com>
7719 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7720 bound minimal symbols. Move code that knows about minsym
7722 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7724 * minsyms.h (minimal_symbol_upper_bound): Declare.
7725 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7726 minimal_symbol_upper_bound.
7728 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7730 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7731 Use the type's name if its basic type does not have a tag.
7733 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7735 * dwarf2read.c (read_subrange_type): Add comment.
7737 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7739 * dwarf2read.c (update_enumeration_type_from_children): New
7740 function, mostly extracted from process_structure_scope.
7741 (read_enumeration_type): Call update_enumeration_type_from_children.
7742 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7743 and flag_flag_enum fields.
7745 2014-02-26 Pedro Alves <palves@redhat.com>
7747 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7748 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7749 to_xfer_partial method.
7751 2014-02-26 Pedro Alves <palves@redhat.com>
7753 * target.c (complete_target_initialization): Don't install
7754 default_xfer_partial as to_xfer_partial hook.
7756 (update_current_target): Don't INHERIT nor de_fault
7757 deprecated_xfer_memory. Delete de_fault macro.
7758 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7759 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7760 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7763 2014-02-26 Pedro Alves <palves@redhat.com>
7765 * go32-nat.c (my_write_child): New function.
7766 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7767 (go32_xfer_partial): New function.
7768 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7769 Instead install a to_xfer_partial hook.
7771 2014-02-26 Pedro Alves <palves@redhat.com>
7773 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7774 to_xfer_partial helper. Rewrite.
7775 (procfs_xfer_partial): New function.
7776 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7777 Install a to_xfer_partial hook.
7779 2014-02-26 Pedro Alves <palves@redhat.com>
7781 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7782 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7783 (m32r_xfer_partial): New function.
7784 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7785 Install a to_xfer_partial hook.
7787 2014-02-26 Pedro Alves <palves@redhat.com>
7789 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7791 (mips_xfer_partial): New function.
7792 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7793 hook. Install a to_xfer_partial hook.
7795 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7797 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7798 * gdbtypes.c (create_array_type_with_stride): New function,
7799 renaming create_array_type, but with an added parameter
7800 called "bit_stride".
7801 (create_array_type): Re-implement using
7802 create_array_type_with_stride.
7803 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7804 and DW_AT_bit_stride attributes.
7806 2014-02-26 Pedro Alves <palves@redhat.com>
7808 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7809 task-specific breakpoints.
7811 2014-02-25 Pedro Alves <palves@redhat.com>
7813 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7814 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7816 2014-02-25 Stan Shebs <stan@codesourcery.com>
7818 * defs.h: Annotate comments for Doxygen.
7820 2014-02-25 Tom Tromey <tromey@redhat.com>
7822 * target.h (target_ignore): Don't declare.
7823 * target.c (target_ignore): Remove.
7825 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7828 * auto-load.c (auto_load_objfile_script_1): Change filename to
7831 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7833 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7834 documentation. Adjust prototype to match the target_ops
7835 to_xfer_partial method. Adjust implementation accordingly.
7837 2014-02-25 Hui Zhu <hui@codesourcery.com>
7839 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7842 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7844 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7845 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7846 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7847 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7848 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7849 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7850 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7851 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7853 (rl78_register_type): Use a data pointer type for SP and
7854 new pseudo registers mentioned above. Use a 16 bit integer
7855 type for all other register pairs.
7856 (rl78_register_name, rl78_g10_register_name): Update for
7857 new pseudo registers.
7858 (rl78_pseudo_register_read): Likewise.
7859 (rl78_pseudo_register_write): Likewise.
7860 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7861 to the newly added pseudo registers.
7863 2014-02-24 Doug Evans <dje@google.com>
7865 * value.c (record_latest_value): Fix comment.
7866 * printcmd.c (print_command_1): Remove code to handle -1 return from
7867 record_latest_value.
7869 2014-02-24 Pedro Alves <palves@redhat.com>
7871 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7872 deprecated_xfer_memory hook.
7873 (procfs_xfer_partial): Call procfs_xfer_memory instead
7874 of the deprecated_xfer_memory target hook.
7875 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7878 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7880 * windows-nat.c (windows_xfer_shared_libraries): Return
7881 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7882 requested object is TARGET_OBJECT_LIBRARIES.
7884 2014-02-24 Yao Qi <yao@codesourcery.com>
7886 * target.h (enum target_xfer_status)
7887 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7888 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7890 * corefile.c (memory_error_message): User updated.
7891 * exec.c (section_table_read_available_memory): Likewise.
7892 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7893 * target.c (target_xfer_status_to_string): Likewise.
7894 (raw_memory_xfer_partial): Likewise.
7895 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7896 * valops.c (read_value_memory): Likewise.
7897 * exec.h: Update comments.
7899 2014-02-24 Yao Qi <yao@codesourcery.com>
7901 * target.c (target_xfer_status_to_string): Rename argument err
7903 * target.h (target_xfer_status_to_string): Update declaration.
7904 Replace target_xfer_error_to_string with
7905 target_xfer_status_to_string in comment.
7907 2014-02-24 Yao Qi <yao@codesourcery.com>
7909 * mips-linux-nat.c (super_close): Update its type.
7910 (mips_linux_close): Pass 'self' to super_close.
7912 2014-02-24 Yao Qi <yao@codesourcery.com>
7914 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7915 * corefile.c (read_memory): Adjusted.
7916 * target.c (target_write_with_progress): Adjusted.
7918 2014-02-23 Yao Qi <yao@codesourcery.com>
7922 2013-10-25 Yao Qi <yao@codesourcery.com>
7924 * remote.c (remote_traceframe_info): Return early if
7925 traceframe is not selected.
7927 2013-07-19 Yao Qi <yao@codesourcery.com>
7929 * target.c (update_current_target): Change the default action
7930 of 'to_traceframe_info' from tcomplain to return_zero.
7931 * target.h (struct target_ops) <to_traceframe_info>: Add more
7934 2014-02-23 Yao Qi <yao@codesourcery.com>
7936 * valops.c (read_value_memory): Rewrite it. Call
7937 target_xfer_partial in a loop.
7938 * exec.h (section_table_available_memory): Remove declaration.
7939 Move comments to ...
7940 * exec.c (section_table_available_memory): ... here. Make it
7943 2014-02-23 Yao Qi <yao@codesourcery.com>
7945 * exec.c (section_table_read_available_memory): New function.
7946 * exec.h (section_table_read_available_memory): Declare.
7947 * ctf.c (ctf_xfer_partial): Call
7948 section_table_read_available_memory.
7949 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7951 2014-02-23 Yao Qi <yao@codesourcery.com>
7953 * ctf.c (ctf_xfer_partial): Move code to ...
7954 * exec.c (exec_read_partial_read_only): ... it. New function.
7955 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7956 * tracefile.c: Include "exec.h".
7957 * exec.h (exec_read_partial_read_only): Declare.
7959 2014-02-23 Yao Qi <yao@codesourcery.com>
7961 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7962 (tfile_has_memory): Remove.
7963 (init_tfile_ops): Don't set fields to_has_all_memory and
7964 to_has_memory of tfile_ops.
7965 * tracefile.c (tracefile_has_all_memory): New function.
7966 (tracefile_has_memory): New function.
7967 (init_tracefile_ops): Initialize fields to_has_all_memory and
7968 to_has_memory of 'ops'.
7970 2014-02-23 Yao Qi <yao@codesourcery.com>
7972 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7973 (ctf_thread_alive, ctf_get_trace_status): Remove.
7974 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7976 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7977 (tfile_has_stack, tfile_has_registers): Remove.
7978 (tfile_thread_alive): Remove.
7979 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7981 * tracefile.c (tracefile_has_stack): New function.
7982 (tracefile_has_registers): New function.
7983 (tracefile_thread_alive): New function.
7984 (tracefile_get_trace_status): New function.
7985 (init_tracefile_ops): New function.
7986 * tracefile.h (init_tracefile_ops): Declare.
7988 2014-02-23 Yao Qi <yao@codesourcery.com>
7990 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7991 (O_LARGEFILE): Likewise.
7992 (tfile_ops): Likewise.
7993 (TRACE_HEADER_SIZE): Likewise.
7994 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7995 (cur_data_size): Likewise.
7996 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7997 (tfile_close, tfile_files_info): Likewise.
7998 (tfile_get_trace_status): Likewise.
7999 (tfile_get_tracepoint_status): Likewise.
8000 (tfile_get_traceframe_address): Likewise.
8001 (tfile_trace_find, match_blocktype): Likewise.
8002 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
8003 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
8004 (tfile_get_trace_state_variable_value): Likewise.
8005 (tfile_has_all_memory, tfile_has_memory): Likewise.
8006 (tfile_has_stack, tfile_has_registers): Likewise.
8007 (tfile_thread_alive, build_traceframe_info): Likewise.
8008 (tfile_traceframe_info, init_tfile_ops): Likewise.
8009 (_initialize_tracepoint): Don't call init_tfile_ops
8010 and add_target_with_completer.
8011 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
8012 exec.h, completer.h and filenames.h.
8013 (_initialize_tracefile_tfile): New function.
8015 2014-02-23 Yao Qi <yao@codesourcery.com>
8017 * Makefile.in (REMOTE_OBS): Append tracefile.o and
8019 (HFILES_NO_SRCDIR): Add tracefile.h.
8020 * ctf.c: Include "tracefile.h".
8021 * tracefile.h: New file.
8022 * tracefile.c: New file
8023 * tracefile-tfile.c: New file.
8024 * tracepoint.c: Include "tracefile.h".
8025 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
8026 (stop_reason_names): Add const.
8027 (trace_file_writer_xfree): Move it to tracefile.c.
8028 (trace_save, trace_save_command, trace_save_tfile): Likewise.
8029 (trace_save_ctf): Likewise.
8030 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
8031 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
8032 (tfile_write_header, tfile_write_regblock_type): Likewise.
8033 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
8034 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
8035 (tfile_write_raw_data, tfile_end): Likewise.
8036 (tfile_trace_file_writer_new): Likewise.
8037 (free_uploaded_tp): Make it extern.
8038 (free_uploaded_tsv): Make it extern.
8039 (_initialize_tracepoint): Move code to register command 'tsave'
8041 * tracepoint.h (stop_reason_names): Declare.
8042 (struct trace_frame_write_ops): Move it to tracefile.h.
8043 (struct trace_file_write_ops): Likewise.
8044 (struct trace_file_writer): Likewise.
8045 (free_uploaded_tsvs, free_uploaded_tps): Declare.
8047 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8050 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
8052 (get_cores_used_by_process): New parameter num_cores, use it.
8053 (linux_xfer_osdata_processes): Pass num_cores to it.
8054 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
8057 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
8059 * target.c (memory_xfer_partial): Fix length arg in call to
8060 breakpoint_xfer_memory.
8062 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8065 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
8066 number comes after the + or - signs. Adjust length of register
8067 name to be extracted.
8069 2014-02-20 Tom Tromey <tromey@redhat.com>
8071 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
8072 (ada_varobj_ops): Mark "extern".
8074 2014-02-20 Tom Tromey <tromey@redhat.com>
8076 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
8078 2014-02-20 Doug Evans <xdje42@gmail.com>
8080 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
8081 All callers updated.
8082 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
8083 All callers updated.
8084 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
8085 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
8087 2014-02-20 lin zuojian <manjian2006@gmail.com>
8088 Joel Brobecker <brobecker@adacore.com>
8089 Doug Evans <xdje42@gmail.com>
8092 * dwarf2read.c (struct die_info): New member in_process.
8093 (reset_die_in_process): New function.
8094 (process_die): Set it at the start, reset when returning.
8095 (inherit_abstract_dies): Only call process_die if origin_child_die
8096 not already being processed.
8098 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8100 * windows-nat.c (handle_unload_dll): Add function documentation.
8101 (do_initial_windows_stuff): Add comment explaining why we wait
8102 until after inferior initialization has finished before
8103 processing all DLLs.
8105 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8107 * windows-nat.c (get_module_name): Delete.
8108 (windows_get_exec_module_filename): New function, mostly
8109 inspired from get_module_name.
8110 (windows_pid_to_exec_file): Replace call to get_module_name
8111 by call to windows_get_exec_module_filename.
8113 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8115 * windows-nat.c (handle_load_dll): Rewrite this function's
8116 introductory comment. Remove code using get_module_name
8117 to get the DLL's name.
8119 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8121 * windows-nat.c (get_windows_debug_event): Ignore
8122 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
8123 if windows_initialization_done == 0.
8124 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
8125 Adjust implementation to always load all DLLs.
8126 (do_initial_windows_stuff): Replace call to
8127 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
8129 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8131 * windows-nat.c (_initialize_windows_nat): Deprecate the
8132 "dll-symbols" command. Turn the "add-shared-symbol-files"
8133 and "assf" aliases into commands, and deprecate them as well.
8134 * NEWS: Add entry explaining that "dll-symbols" and its two
8135 aliases are now deprecated.
8137 2014-02-20 Joel Brobecker <brobecker@adacore.com>
8139 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
8140 new-line in debug string. Remove trailing spaces.
8142 2014-02-19 Stan Shebs <stan@codesourcery.com>
8144 * darwin-nat.c (darwin_xfer_partial): Fix return type.
8146 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
8148 * NEWS: Add entry for the new feature
8149 * python/py-value.c (valpy_binop): Call value_x_binop for struct
8152 2014-02-19 Stan Shebs <stan@codesourcery.com>
8154 * MAINTAINERS: List Yao Qi as nios2 maintainer.
8156 2014-02-19 Pedro Alves <palves@redhat.com>
8158 * common/ptid.h (struct ptid): Mention that process_stratum
8159 targets should prefer ptid.lwp.
8161 2014-02-19 Pedro Alves <palves@redhat.com>
8163 * remote.c (remote_thread_alive, write_ptid, read_ptid)
8164 (read_ptid, remote_newthread_step, remote_threads_extra_info)
8165 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
8166 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
8167 store remote thread ids rather than ptid.tid.
8168 (_initialize_remote): Adjust.
8170 2014-02-19 Tom Tromey <tromey@redhat.com>
8172 * target.c (target_get_unwinder): Rewrite.
8173 (target_get_tailcall_unwinder): Rewrite.
8174 * record-btrace.c (record_btrace_to_get_unwinder): New function.
8175 (record_btrace_to_get_tailcall_unwinder): New function.
8176 (init_record_btrace_ops): Update.
8177 * target.h (struct target_ops) <to_get_unwinder,
8178 to_get_tailcall_unwinder>: Now function pointers. Use
8179 TARGET_DEFAULT_RETURN.
8181 2014-02-19 Tom Tromey <tromey@redhat.com>
8183 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
8185 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
8187 2014-02-19 Tom Tromey <tromey@redhat.com>
8189 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
8191 * target-delegates.c: Rebuild.
8192 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
8193 TARGET_DEFAULT_FUNC.
8194 * target.c (default_target_decr_pc_after_break): Rename from
8195 forward_target_decr_pc_after_break. Simplify.
8196 (target_decr_pc_after_break): Rely on delegation.
8198 2014-02-19 Tom Tromey <tromey@redhat.com>
8200 * target.c (update_current_target): Do not INHERIT to_doc or
8201 to_magic. Do not de_fault to_open or to_close.
8203 2014-02-19 Tom Tromey <tromey@redhat.com>
8205 * gcore.h (objfile_find_memory_regions): Declare.
8206 * gcore.c (objfile_find_memory_regions): No longer static. Add
8208 (_initialize_gcore): Don't call exec_set_find_memory_regions.
8209 * exec.c: Include gcore.h.
8210 (exec_set_find_memory_regions): Remove.
8211 (exec_find_memory_regions): Remove.
8212 (exec_do_find_memory_regions): Remove.
8213 (init_exec_ops): Update.
8214 * defs.h (exec_set_find_memory_regions): Remove.
8216 2014-02-19 Tom Tromey <tromey@redhat.com>
8218 * target-delegates.c: Rebuild.
8219 * target.h (struct target_ops) <to_extra_thread_info,
8220 to_thread_name, to_pid_to_exec_file, to_get_section_table,
8221 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
8222 not 0, in TARGET_DEFAULT_RETURN.
8224 2014-02-19 Tom Tromey <tromey@redhat.com>
8226 * target.c (complete_target_initialization): Remove casts. Use
8227 return_zero_has_execution.
8228 (return_zero): Add "ignore" argument.
8229 (return_zero_has_execution): New function.
8230 (init_dummy_target): Remove casts. Use
8231 return_zero_has_execution.
8233 2014-02-19 Tom Tromey <tromey@redhat.com>
8235 * target.c (update_current_target): Update comments. Do not
8238 2014-02-19 Tom Tromey <tromey@redhat.com>
8240 * arm-linux-nat.c (arm_linux_read_description): Delegate when
8242 * corelow.c (core_read_description): Delegate when needed.
8243 * remote.c (remote_read_description): Delegate when needed.
8244 * target-delegates.c: Rebuild.
8245 * target.c (target_read_description): Rewrite.
8246 * target.h (struct target_ops) <to_read_description>: Update
8247 comment. Use TARGET_DEFAULT_RETURN.
8249 2014-02-19 Tom Tromey <tromey@redhat.com>
8251 * target-delegates.c: Rebuild.
8252 * target.c (update_current_target): Don't inherit or default
8254 (find_default_run_target): Check against delegate_can_run.
8255 * target.h (struct target_ops) <to_can_run>: Use
8256 TARGET_DEFAULT_RETURN.
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8260 * target-delegates.c: Rebuild.
8261 * target.c (target_disconnect): Unconditionally delegate.
8262 * target.h (struct target_ops) <to_disconnect>: Use
8263 TARGET_DEFAULT_NORETURN.
8265 2014-02-19 Tom Tromey <tromey@redhat.com>
8267 * record.c (record_stop): Unconditionally delegate.
8268 * target-delegates.c: Rebuild.
8269 * target.c (target_stop_recording): Unconditionally delegate.
8270 * target.h (struct target_ops) <to_stop_recording>: Use
8271 TARGET_DEFAULT_IGNORE.
8273 2014-02-19 Tom Tromey <tromey@redhat.com>
8275 * target-delegates.c: Rebuild.
8276 * target.c (target_enable_btrace): Unconditionally delegate.
8277 * target.h (struct target_ops) <to_enable_btrace>: Use
8278 TARGET_DEFAULT_NORETURN.
8280 2014-02-19 Tom Tromey <tromey@redhat.com>
8282 * target-delegates.c: Rebuild.
8283 * target.c (target_read_btrace): Unconditionally delegate.
8284 * target.h (struct target_ops) <to_read_btrace>: Use
8285 TARGET_DEFAULT_NORETURN.
8287 2014-02-19 Tom Tromey <tromey@redhat.com>
8289 * target-delegates.c: Rebuild.
8290 * target.c (target_teardown_btrace): Unconditionally delegate.
8291 * target.h (struct target_ops) <to_teardown_btrace>: Use
8292 TARGET_DEFAULT_NORETURN.
8294 2014-02-19 Tom Tromey <tromey@redhat.com>
8296 * target-delegates.c: Rebuild.
8297 * target.c (target_disable_btrace): Unconditionally delegate.
8298 * target.h (struct target_ops) <to_disable_btrace>: Use
8299 TARGET_DEFAULT_NORETURN.
8301 2014-02-19 Tom Tromey <tromey@redhat.com>
8303 * target-delegates.c: Rebuild.
8304 * target.c (default_search_memory): New function.
8305 (simple_search_memory): Update comment.
8306 (target_search_memory): Unconditionally delegate.
8307 * target.h (struct target_ops) <to_search_memory>: Use
8308 TARGET_DEFAULT_FUNC.
8310 2014-02-19 Tom Tromey <tromey@redhat.com>
8312 * auxv.c (default_auxv_parse): No longer static.
8313 (target_auxv_parse): Unconditionally delegate.
8314 * auxv.h (default_auxv_parse): Declare.
8315 * target-delegates.c: Rebuild.
8316 * target.c: Include auxv.h.
8317 * target.h (struct target_ops) <to_auxv_parse>: Use
8318 TARGET_DEFAULT_FUNC.
8320 2014-02-19 Tom Tromey <tromey@redhat.com>
8322 * target-delegates.c: Rebuild.
8323 * target.c (target_memory_map): Unconditionally delegate.
8324 * target.h (struct target_ops) <to_memory_map>: Use
8325 TARGET_DEFAULT_RETURN.
8327 2014-02-19 Tom Tromey <tromey@redhat.com>
8329 * target-delegates.c: Rebuild.
8330 * target.c (target_thread_alive): Unconditionally delegate.
8331 * target.h (struct target_ops) <to_thread_alive>: Use
8332 TARGET_DEFAULT_RETURN.
8334 2014-02-19 Tom Tromey <tromey@redhat.com>
8336 * target-delegates.c: Rebuild.
8337 * target.c (target_save_record): Unconditionally delegate.
8338 * target.h (struct target_ops) <to_save_record>: Use
8339 TARGET_DEFAULT_NORETURN.
8341 2014-02-19 Tom Tromey <tromey@redhat.com>
8343 * target-delegates.c: Rebuild.
8344 * target.c (target_delete_record): Unconditionally delegate.
8345 * target.h (struct target_ops) <to_delete_record>: Use
8346 TARGET_DEFAULT_NORETURN.
8348 2014-02-19 Tom Tromey <tromey@redhat.com>
8350 * target-delegates.c: Rebuild.
8351 * target.c (target_record_is_replaying): Unconditionally
8353 * target.h (struct target_ops) <to_record_is_replaying>: Use
8354 TARGET_DEFAULT_RETURN.
8356 2014-02-19 Tom Tromey <tromey@redhat.com>
8358 * target-delegates.c: Rebuild.
8359 * target.c (target_goto_record_begin): Unconditionally delegate.
8360 * target.h (struct target_ops) <to_goto_record_begin>: Use
8361 TARGET_DEFAULT_NORETURN.
8363 2014-02-19 Tom Tromey <tromey@redhat.com>
8365 * target-delegates.c: Rebuild.
8366 * target.c (target_goto_record_end): Unconditionally delegate.
8367 * target.h (struct target_ops) <to_goto_record_end>: Use
8368 TARGET_DEFAULT_NORETURN.
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8372 * target-delegates.c: Rebuild.
8373 * target.c (target_goto_record): Unconditionally delegate.
8374 * target.h (struct target_ops) <to_goto_record>: Use
8375 TARGET_DEFAULT_NORETURN.
8377 2014-02-19 Tom Tromey <tromey@redhat.com>
8379 * target-delegates.c: Rebuild.
8380 * target.c (target_insn_history): Unconditionally delegate.
8381 * target.h (struct target_ops) <to_insn_history>: Use
8382 TARGET_DEFAULT_NORETURN.
8384 2014-02-19 Tom Tromey <tromey@redhat.com>
8386 * target-delegates.c: Rebuild.
8387 * target.c (target_insn_history_from): Unconditionally delegate.
8388 * target.h (struct target_ops) <to_insn_history_from>: Use
8389 TARGET_DEFAULT_NORETURN.
8391 2014-02-19 Tom Tromey <tromey@redhat.com>
8393 * target-delegates.c: Rebuild.
8394 * target.c (target_insn_history_range): Unconditionally delegate.
8395 * target.h (struct target_ops) <to_insn_history_range>: Use
8396 TARGET_DEFAULT_NORETURN.
8398 2014-02-19 Tom Tromey <tromey@redhat.com>
8400 * target-delegates.c: Rebuild.
8401 * target.c (target_call_history): Unconditionally delegate.
8402 * target.h (struct target_ops) <to_call_history>: Use
8403 TARGET_DEFAULT_NORETURN.
8405 2014-02-19 Tom Tromey <tromey@redhat.com>
8407 * target-delegates.c: Rebuild.
8408 * target.c (target_call_history_from): Unconditionally delegate.
8409 * target.h (struct target_ops) <to_call_history_from>: Use
8410 TARGET_DEFAULT_NORETURN.
8412 2014-02-19 Tom Tromey <tromey@redhat.com>
8414 * target-delegates.c: Rebuild.
8415 * target.c (target_call_history_range): Unconditionally delegate.
8416 * target.h (struct target_ops) <to_call_history_range>: Use
8417 TARGET_DEFAULT_NORETURN.
8419 2014-02-19 Tom Tromey <tromey@redhat.com>
8421 * target-delegates.c: Rebuild.
8422 * target.c (target_verify_memory): Unconditionally delegate.
8423 * target.h (struct target_ops) <to_verify_memory>: Use
8424 TARGET_DEFAULT_NORETURN.
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8428 * target-delegates.c: Rebuild.
8429 * target.c (target_core_of_thread): Unconditionally delegate.
8430 * target.h (struct target_ops) <to_core_of_thread>: Use
8431 TARGET_DEFAULT_RETURN.
8433 2014-02-19 Tom Tromey <tromey@redhat.com>
8435 * target-delegates.c: Rebuild.
8436 * target.c (target_flash_done): Unconditionally delegate.
8437 * target.h (struct target_ops) <to_flash_done>: Use
8438 TARGET_DEFAULT_NORETURN.
8440 2014-02-19 Tom Tromey <tromey@redhat.com>
8442 * target-delegates.c: Rebuild.
8443 * target.c (target_flash_erase): Unconditionally delegate.
8444 * target.h (struct target_ops) <to_flash_erase>: Use
8445 TARGET_DEFAULT_NORETURN.
8447 2014-02-19 Tom Tromey <tromey@redhat.com>
8449 * target-delegates.c: Rebuild.
8450 * target.c (target_get_section_table): Unconditionally delegate.
8451 * target.h (struct target_ops) <to_get_section_table>: Use
8452 TARGET_DEFAULT_RETURN.
8454 2014-02-19 Tom Tromey <tromey@redhat.com>
8456 * target-delegates.c: Rebuild.
8457 * target.c (target_pid_to_str): Unconditionally delegate.
8458 (init_dummy_target): Don't initialize to_pid_to_str.
8459 (default_pid_to_str): Rename from dummy_pid_to_str.
8460 * target.h (struct target_ops) <to_pid_to_str>: Use
8461 TARGET_DEFAULT_FUNC.
8463 2014-02-19 Tom Tromey <tromey@redhat.com>
8465 * target-delegates.c: Rebuild.
8466 * target.c (target_find_new_threads): Unconditionally delegate.
8467 * target.h (struct target_ops) <to_find_new_threads>: Use
8468 TARGET_DEFAULT_RETURN.
8470 2014-02-19 Tom Tromey <tromey@redhat.com>
8472 * target-delegates.c: Rebuild.
8473 * target.c (target_program_signals): Unconditionally delegate.
8474 * target.h (struct target_ops) <to_program_signals>: Use
8475 TARGET_DEFAULT_IGNORE.
8477 2014-02-19 Tom Tromey <tromey@redhat.com>
8479 * target-delegates.c: Rebuild.
8480 * target.c (target_pass_signals): Unconditionally delegate.
8481 * target.h (struct target_ops) <to_pass_signals>: Use
8482 TARGET_DEFAULT_IGNORE.
8484 2014-02-19 Tom Tromey <tromey@redhat.com>
8486 * target-delegates.c: Rebuild.
8487 * target.c (default_mourn_inferior): New function.
8488 (target_mourn_inferior): Unconditionally delegate.
8489 * target.h (struct target_ops) <to_mourn_inferior>: Use
8490 TARGET_DEFAULT_FUNC.
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8494 * target-delegates.c: Rebuild.
8495 * target.c (default_follow_fork): New function.
8496 (target_follow_fork): Unconditionally delegate.
8497 * target.h (struct target_ops) <to_follow_fork>: Use
8498 TARGET_DEFAULT_FUNC.
8500 2014-02-19 Tom Tromey <tromey@redhat.com>
8502 * target-delegates.c: Rebuild.
8503 * target.c (target_kill): Unconditionally delegate.
8504 * target.h (struct target_ops) <to_kill>: Use
8505 TARGET_DEFAULT_NORETURN.
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8509 * target-delegates.c: Rebuild.
8510 * target.c (target_masked_watch_num_registers): Unconditionally
8512 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8513 Use TARGET_DEFAULT_RETURN.
8515 2014-02-19 Tom Tromey <tromey@redhat.com>
8517 * target-delegates.c: Rebuild.
8518 * target.c (target_remove_mask_watchpoint): Unconditionally
8520 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8521 TARGET_DEFAULT_RETURN.
8523 2014-02-19 Tom Tromey <tromey@redhat.com>
8525 * target-delegates.c: Rebuild.
8526 * target.c (target_insert_mask_watchpoint): Unconditionally
8528 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8529 TARGET_DEFAULT_RETURN.
8531 2014-02-19 Tom Tromey <tromey@redhat.com>
8533 * target-delegates.c: Rebuild.
8534 * target.c (target_ranged_break_num_registers): Unconditionally
8536 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8537 Use TARGET_DEFAULT_RETURN.
8539 2014-02-19 Tom Tromey <tromey@redhat.com>
8541 * target-delegates.c: Rebuild.
8542 * target.c (target_fetch_registers): Unconditionally delegate.
8543 * target.h (struct target_ops) <to_fetch_registers>: Use
8544 TARGET_DEFAULT_NORETURN.
8546 2014-02-19 Tom Tromey <tromey@redhat.com>
8548 * target-delegates.c: Rebuild.
8549 * target.c (update_current_target): Don't inherit or default
8551 * target.h (struct target_ops) <to_stop>: Use
8552 TARGET_DEFAULT_IGNORE.
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_can_run_breakpoint_commands.
8559 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8560 Use TARGET_DEFAULT_RETURN.
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_supports_evaluation_of_breakpoint_conditions.
8567 * target.h (struct target_ops)
8568 <to_supports_evaluation_of_breakpoint_conditions>: Use
8569 TARGET_DEFAULT_RETURN.
8571 2014-02-19 Tom Tromey <tromey@redhat.com>
8573 * target-delegates.c: Rebuild.
8574 * target.c (update_current_target): Don't inherit or default
8575 to_augmented_libraries_svr4_read.
8576 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8577 Use TARGET_DEFAULT_RETURN.
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8581 * target-delegates.c: Rebuild.
8582 * target.c (update_current_target): Don't inherit or default
8584 * target.h (struct target_ops) <to_can_use_agent>: Use
8585 TARGET_DEFAULT_RETURN.
8587 2014-02-19 Tom Tromey <tromey@redhat.com>
8589 * target-delegates.c: Rebuild.
8590 * target.c (update_current_target): Don't inherit or default
8592 * target.h (struct target_ops) <to_use_agent>: Use
8593 TARGET_DEFAULT_NORETURN.
8595 2014-02-19 Tom Tromey <tromey@redhat.com>
8597 * target-delegates.c: Rebuild.
8598 * target.c (update_current_target): Don't inherit or default
8600 (return_null): Remove.
8601 * target.h (struct target_ops) <to_traceframe_info>: Use
8602 TARGET_DEFAULT_RETURN.
8604 2014-02-19 Tom Tromey <tromey@redhat.com>
8606 * target-delegates.c: Rebuild.
8607 * target.c (update_current_target): Don't inherit or default
8608 to_static_tracepoint_markers_by_strid.
8609 * target.h (struct target_ops)
8610 <to_static_tracepoint_markers_by_strid>: Use
8611 TARGET_DEFAULT_NORETURN.
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_static_tracepoint_marker_at.
8618 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8619 Use TARGET_DEFAULT_RETURN.
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8623 * target-delegates.c: Rebuild.
8624 * target.c (update_current_target): Don't inherit or default
8626 * target.h (struct target_ops) <to_set_permissions>: Use
8627 TARGET_DEFAULT_IGNORE.
8629 2014-02-19 Tom Tromey <tromey@redhat.com>
8631 * target-delegates.c: Rebuild.
8632 * target.c (update_current_target): Don't inherit or default
8634 * target.h (struct target_ops) <to_get_tib_address>: Use
8635 TARGET_DEFAULT_NORETURN.
8637 2014-02-19 Tom Tromey <tromey@redhat.com>
8639 * target-delegates.c: Rebuild.
8640 * target.c (update_current_target): Don't inherit or default
8642 * target.h (struct target_ops) <to_set_trace_notes>: Use
8643 TARGET_DEFAULT_RETURN.
8645 2014-02-19 Tom Tromey <tromey@redhat.com>
8647 * target-delegates.c: Rebuild.
8648 * target.c (update_current_target): Don't initialize
8649 to_set_trace_buffer_size.
8650 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8651 TARGET_DEFAULT_IGNORE.
8653 2014-02-19 Tom Tromey <tromey@redhat.com>
8655 * target-delegates.c: Rebuild.
8656 * target.c (update_current_target): Don't inherit or default
8657 to_set_circular_trace_buffer.
8658 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8659 TARGET_DEFAULT_IGNORE.
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8663 * target-delegates.c: Rebuild.
8664 * target.c (update_current_target): Don't inherit or default
8665 to_set_disconnected_tracing.
8666 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8667 TARGET_DEFAULT_IGNORE.
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8671 * target-delegates.c: Rebuild.
8672 * target.c (update_current_target): Don't inherit or default
8673 to_get_min_fast_tracepoint_insn_len.
8674 (return_minus_one): Remove.
8675 * target.h (struct target_ops)
8676 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8678 2014-02-19 Tom Tromey <tromey@redhat.com>
8680 * target-delegates.c: Rebuild.
8681 * target.c (update_current_target): Don't inherit or default
8682 to_get_raw_trace_data.
8683 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8684 TARGET_DEFAULT_NORETURN.
8686 2014-02-19 Tom Tromey <tromey@redhat.com>
8688 * target-delegates.c: Rebuild.
8689 * target.c (update_current_target): Don't inherit or default
8690 to_upload_trace_state_variables.
8691 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8692 Use TARGET_DEFAULT_RETURN.
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8696 * target-delegates.c: Rebuild.
8697 * target.c (update_current_target): Don't inherit or default
8698 to_upload_tracepoints.
8699 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8700 TARGET_DEFAULT_RETURN.
8702 2014-02-19 Tom Tromey <tromey@redhat.com>
8704 * target-delegates.c: Rebuild.
8705 * target.c (update_current_target): Don't inherit or default
8707 * target.h (struct target_ops) <to_save_trace_data>: Use
8708 TARGET_DEFAULT_NORETURN.
8710 2014-02-19 Tom Tromey <tromey@redhat.com>
8712 * target-delegates.c: Rebuild.
8713 * target.c (update_current_target): Don't inherit or default
8714 to_get_trace_state_variable_value.
8715 * target.h (struct target_ops)
8716 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8720 * target-delegates.c: Rebuild.
8721 * target.c (update_current_target): Don't inherit or default
8723 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8727 * target-delegates.c: Rebuild.
8728 * target.c (update_current_target): Don't inherit or default
8730 * target.h (struct target_ops) <to_trace_stop>: Use
8731 TARGET_DEFAULT_NORETURN.
8733 2014-02-19 Tom Tromey <tromey@redhat.com>
8735 * target-delegates.c: Rebuild.
8736 * target.c (update_current_target): Don't inherit or default
8737 to_get_tracepoint_status.
8738 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8739 TARGET_DEFAULT_NORETURN.
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8743 * target-delegates.c: Rebuild.
8744 * target.c (update_current_target): Don't inherit or default
8745 to_get_trace_status.
8746 * target.h (struct target_ops) <to_get_trace_status>: Use
8747 TARGET_DEFAULT_RETURN.
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8751 * target-delegates.c: Rebuild.
8752 * target.c (update_current_target): Don't inherit or default
8754 * target.h (struct target_ops) <to_trace_start>: 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
8761 to_trace_set_readonly_regions.
8762 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8763 Use TARGET_DEFAULT_NORETURN.
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8767 * target-delegates.c: Rebuild.
8768 * target.c (update_current_target): Don't inherit or default
8769 to_disable_tracepoint.
8770 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8771 TARGET_DEFAULT_NORETURN.
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8775 * target-delegates.c: Rebuild.
8776 * target.c (update_current_target): Don't inherit or default
8777 to_enable_tracepoint.
8778 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8779 TARGET_DEFAULT_NORETURN.
8781 2014-02-19 Tom Tromey <tromey@redhat.com>
8783 * target-delegates.c: Rebuild.
8784 * target.c (update_current_target): Don't inherit or default
8785 to_download_trace_state_variable.
8786 * target.h (struct target_ops) <to_download_trace_state_variable>:
8787 Use TARGET_DEFAULT_NORETURN.
8789 2014-02-19 Tom Tromey <tromey@redhat.com>
8791 * target-delegates.c: Rebuild.
8792 * target.c (update_current_target): Don't inherit or default
8793 to_can_download_tracepoint.
8794 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8795 TARGET_DEFAULT_RETURN.
8797 2014-02-19 Tom Tromey <tromey@redhat.com>
8799 * target-delegates.c: Rebuild.
8800 * target.c (update_current_target): Don't inherit or default
8801 to_download_tracepoint.
8802 * target.h (struct target_ops) <to_download_tracepoint>: Use
8803 TARGET_DEFAULT_NORETURN.
8805 2014-02-19 Tom Tromey <tromey@redhat.com>
8807 * target-delegates.c: Rebuild.
8808 * target.c (update_current_target): Don't inherit or default
8810 * target.h (struct target_ops) <to_trace_init>: Use
8811 TARGET_DEFAULT_RETURN.
8813 2014-02-19 Tom Tromey <tromey@redhat.com>
8815 * target-delegates.c: Rebuild.
8816 * target.c (update_current_target): Don't inherit or default
8817 to_supports_string_tracing.
8818 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8819 TARGET_DEFAULT_RETURN.
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8823 * target-delegates.c: Rebuild.
8824 * target.c (update_current_target): Don't inherit or default
8825 to_supports_enable_disable_tracepoint.
8826 * target.h (struct target_ops)
8827 <to_supports_enable_disable_tracepoint>: Use
8828 TARGET_DEFAULT_RETURN.
8830 2014-02-19 Tom Tromey <tromey@redhat.com>
8832 * target-delegates.c: Rebuild.
8833 * target.c (update_current_target): Don't inherit or default
8834 to_supports_multi_process.
8835 * target.h (struct target_ops) <to_supports_multi_process>: Use
8836 TARGET_DEFAULT_RETURN.
8838 2014-02-19 Tom Tromey <tromey@redhat.com>
8840 * target-delegates.c: Rebuild.
8841 * target.c (update_current_target): Don't inherit or default
8842 to_get_ada_task_ptid.
8843 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8844 TARGET_DEFAULT_FUNC.
8846 2014-02-19 Tom Tromey <tromey@redhat.com>
8848 * target-delegates.c: Rebuild.
8849 * target.c (update_current_target): Don't inherit or default
8850 to_thread_architecture.
8851 * target.h (struct target_ops) <to_thread_architecture>: Use
8852 TARGET_DEFAULT_FUNC.
8854 2014-02-19 Tom Tromey <tromey@redhat.com>
8856 * target-delegates.c: Rebuild.
8857 * target.c (update_current_target): Don't inherit or default
8858 to_execution_direction.
8859 * target.h (struct target_ops) <to_execution_direction>: Use
8860 TARGET_DEFAULT_FUNC.
8862 2014-02-19 Tom Tromey <tromey@redhat.com>
8864 * target-delegates.c: Rebuild.
8865 * target.c (update_current_target): Don't inherit or default
8866 to_can_execute_reverse.
8867 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8868 TARGET_DEFAULT_RETURN.
8869 (target_can_execute_reverse): Unconditionally delegate.
8871 2014-02-19 Tom Tromey <tromey@redhat.com>
8873 * target-delegates.c: Rebuild.
8874 * target.c (update_current_target): Don't inherit or default
8876 (dummy_goto_bookmark): Remove.
8877 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8878 * target.h (struct target_ops) <to_goto_bookmark>: Use
8879 TARGET_DEFAULT_NORETURN.
8881 2014-02-19 Tom Tromey <tromey@redhat.com>
8883 * target-delegates.c: Rebuild.
8884 * target.c (update_current_target): Don't inherit or default
8886 (dummy_get_bookmark): Remove.
8887 (init_dummy_target): Don't inherit or default to_get_bookmark.
8888 * target.h (struct target_ops) <to_get_bookmark>: Use
8889 TARGET_DEFAULT_NORETURN
8891 2014-02-19 Tom Tromey <tromey@redhat.com>
8893 * target-delegates.c: Rebuild.
8894 * target.c (update_current_target): Don't inherit or default
8895 to_make_corefile_notes.
8896 (init_dummy_target): Don't initialize to_make_corefile_notes.
8897 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8898 TARGET_DEFAULT_FUNC.
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
8904 to_find_memory_regions.
8905 (init_dummy_target): Don't initialize to_find_memory_regions.
8906 * target.h (struct target_ops) <to_find_memory_regions>: Use
8907 TARGET_DEFAULT_FUNC.
8909 2014-02-19 Tom Tromey <tromey@redhat.com>
8911 * target-delegates.c: Rebuild.
8912 * target.c (update_current_target): Don't inherit or default
8914 * target.h (struct target_ops) <to_log_command>: Use
8915 TARGET_DEFAULT_IGNORE.
8916 (target_log_command): Unconditionally delegate.
8918 2014-02-19 Tom Tromey <tromey@redhat.com>
8920 * target-delegates.c: Rebuild.
8921 * target.c (update_current_target): Don't inherit or default
8922 to_pid_to_exec_file.
8923 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8924 TARGET_DEFAULT_RETURN.
8926 2014-02-19 Tom Tromey <tromey@redhat.com>
8928 * target-delegates.c: Rebuild.
8929 * target.c (update_current_target): Don't inherit or default
8931 (target_thread_name): Unconditionally delegate.
8932 * target.h (struct target_ops) <to_thread_name>: Use
8933 TARGET_DEFAULT_RETURN.
8935 2014-02-19 Tom Tromey <tromey@redhat.com>
8937 * target-delegates.c: Rebuild.
8938 * target.c (update_current_target): Don't inherit or default
8939 to_extra_thread_info.
8940 * target.h (struct target_ops) <to_extra_thread_info>: Use
8941 TARGET_DEFAULT_RETURN.
8943 2014-02-19 Tom Tromey <tromey@redhat.com>
8945 * target-delegates.c: Rebuild.
8946 * target.c (update_current_target): Don't inherit or default
8948 * target.h (struct target_ops) <to_has_exited>: Use
8949 TARGET_DEFAULT_RETURN..
8951 2014-02-19 Tom Tromey <tromey@redhat.com>
8953 * target-delegates.c: Rebuild.
8954 * target.c (update_current_target): Don't inherit or default
8955 to_set_syscall_catchpoint.
8956 (return_one): Remove.
8957 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8958 TARGET_DEFAULT_RETURN.
8960 2014-02-19 Tom Tromey <tromey@redhat.com>
8962 * target-delegates.c: Rebuild.
8963 * target.c (update_current_target): Don't inherit or default
8964 to_insert_exec_catchpoint.
8965 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8966 TARGET_DEFAULT_RETURN.
8968 2014-01-08 Tom Tromey <tromey@redhat.com>
8970 * target-delegates.c: Rebuild.
8971 * target.c (update_current_target): Don't inherit or default
8972 to_insert_exec_catchpoint.
8973 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8974 TARGET_DEFAULT_RETURN.
8976 2014-02-19 Tom Tromey <tromey@redhat.com>
8978 * target-delegates.c: Rebuild.
8979 * target.c (update_current_target): Don't inherit or default
8980 to_remove_vfork_catchpoint.
8981 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8982 TARGET_DEFAULT_RETURN.
8984 2014-02-19 Tom Tromey <tromey@redhat.com>
8986 * target-delegates.c: Rebuild.
8987 * target.c (update_current_target): Don't inherit or default
8988 to_insert_vfork_catchpoint.
8989 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8990 TARGET_DEFAULT_RETURN.
8992 2014-02-19 Tom Tromey <tromey@redhat.com>
8994 * target-delegates.c: Rebuild.
8995 * target.c (update_current_target): Don't inherit or default
8996 to_remove_fork_catchpoint.
8997 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8998 TARGET_DEFAULT_RETURN.
9000 2014-02-19 Tom Tromey <tromey@redhat.com>
9002 * target-delegates.c: Rebuild.
9003 * target.c (update_current_target): Don't inherit or default
9004 to_insert_fork_catchpoint.
9005 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
9006 TARGET_DEFAULT_RETURN.
9008 2014-02-19 Tom Tromey <tromey@redhat.com>
9010 * target-delegates.c: Rebuild.
9011 * target.c (update_current_target): Don't inherit or default
9012 to_post_startup_inferior.
9013 * target.h (struct target_ops) <to_post_startup_inferior>: Use
9014 TARGET_DEFAULT_IGNORE.
9016 2014-02-19 Tom Tromey <tromey@redhat.com>
9018 * target-delegates.c: Rebuild.
9019 * target.c (update_current_target): Don't inherit or default
9021 * target.h (struct target_ops) <to_load>: Use
9022 TARGET_DEFAULT_NORETURN.
9024 2014-02-19 Tom Tromey <tromey@redhat.com>
9026 * target-delegates.c: Rebuild.
9027 * target.c (update_current_target): Don't inherit or default
9029 * target.h (struct target_ops) <to_terminal_info>: Use
9030 TARGET_DEFAULT_FUNC.
9032 2014-02-19 Tom Tromey <tromey@redhat.com>
9034 * target-delegates.c: Rebuild.
9035 * target.c (update_current_target): Don't inherit or default
9036 to_terminal_save_ours.
9037 * target.h (struct target_ops) <to_terminal_save_ours>: Use
9038 TARGET_DEFAULT_IGNORE.
9040 2014-02-19 Tom Tromey <tromey@redhat.com>
9042 * target-delegates.c: Rebuild.
9043 * target.c (update_current_target): Don't inherit or default
9045 * target.h (struct target_ops) <to_terminal_ours>: Use
9046 TARGET_DEFAULT_IGNORE.
9048 2014-02-19 Tom Tromey <tromey@redhat.com>
9050 * target-delegates.c: Rebuild.
9051 * target.c (update_current_target): Don't inherit or default
9052 to_terminal_ours_for_output.
9053 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
9054 TARGET_DEFAULT_IGNORE.
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9058 * target-delegates.c: Rebuild.
9059 * target.c (update_current_target): Don't inherit or default
9060 to_terminal_inferior.
9061 * target.h (struct target_ops) <to_terminal_inferior>: Use
9062 TARGET_DEFAULT_IGNORE.
9064 2014-02-19 Tom Tromey <tromey@redhat.com>
9066 * target-delegates.c: Rebuild.
9067 * target.c (update_current_target): Don't inherit or default
9069 * target.h (struct target_ops) <to_terminal_init>: Use
9070 TARGET_DEFAULT_IGNORE.
9072 2014-02-19 Tom Tromey <tromey@redhat.com>
9074 * target-delegates.c: Rebuild.
9075 * target.c (update_current_target): Don't inherit or default
9076 to_can_accel_watchpoint_condition.
9077 * target.h (struct target_ops)
9078 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
9080 2014-02-19 Tom Tromey <tromey@redhat.com>
9082 * target-delegates.c: Rebuild.
9083 * target.c (update_current_target): Don't inherit or default
9084 to_region_ok_for_hw_watchpoint.
9085 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9086 Use TARGET_DEFAULT_FUNC.
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9090 * target-delegates.c: Rebuild.
9091 * target.c (update_current_target): Don't inherit or default
9092 to_watchpoint_addr_within_range.
9093 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
9094 Use TARGET_DEFAULT_FUNC.
9096 2014-02-19 Tom Tromey <tromey@redhat.com>
9098 * target-delegates.c: Rebuild.
9099 * target.c (update_current_target): Don't inherit or default
9100 to_remove_watchpoint.
9101 * target.h (struct target_ops) <to_remove_watchpoint>: Use
9102 TARGET_DEFAULT_NORETURN.
9104 2014-02-19 Tom Tromey <tromey@redhat.com>
9106 * target-delegates.c: Rebuild.
9107 * target.c (update_current_target): Don't inherit or default
9108 to_insert_watchpoint.
9109 * target.h (struct target_ops) <to_insert_watchpoint>: Use
9110 TARGET_DEFAULT_RETURN.
9112 2014-02-19 Tom Tromey <tromey@redhat.com>
9114 * target-delegates.c: Rebuild.
9115 * target.c (update_current_target): Don't inherit or default
9116 to_remove_hw_breakpoint.
9117 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
9118 TARGET_DEFAULT_RETURN.
9120 2014-02-19 Tom Tromey <tromey@redhat.com>
9122 * target-delegates.c: Rebuild.
9123 * target.c (update_current_target): Don't inherit or default
9124 to_insert_hw_breakpoint.
9125 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
9126 TARGET_DEFAULT_RETURN.
9128 2014-02-19 Tom Tromey <tromey@redhat.com>
9130 * target-delegates.c: Rebuild.
9131 * target.c (update_current_target): Don't inherit or default
9132 to_can_use_hw_breakpoint.
9133 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
9134 TARGET_DEFAULT_RETURN.
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9138 * target-delegates.c: Rebuild.
9139 * target.c (update_current_target): Don't inherit or default
9141 * target.h (struct target_ops) <to_files_info>: Use
9142 TARGET_DEFAULT_IGNORE.
9144 2014-02-19 Tom Tromey <tromey@redhat.com>
9146 * target-delegates.c: Rebuild.
9147 * target.c (update_current_target): Don't inherit or default
9149 * target.h (struct target_ops) <to_store>: Use
9150 TARGET_DEFAULT_NORETURN.
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9154 * target-delegates.c: Rebuild.
9155 * target.c (update_current_target): Don't inherit or default
9157 * target.h (struct target_ops) <to_post_attach>: Use
9158 TARGET_DEFAULT_IGNORE.
9160 2014-02-19 Tom Tromey <tromey@redhat.com>
9162 * target-delegates.c: Rebuild.
9163 * target.c (update_current_target): Don't inherit or default
9165 (default_rcmd): New function.
9166 (do_monitor_command): Unconditionally delegate.
9167 * target.h (struct target_ops) <to_rmcd>: Use
9168 TARGET_DEFAULT_FUNC.
9170 2014-02-19 Tom Tromey <tromey@redhat.com>
9172 * target-delegates.c: Rebuild.
9173 * target.c (init_dummy_target): Don't initialize to_attach.
9174 (target_attach): Unconditionally delegate.
9175 * target.h (struct target_ops) <to_attach>: Use
9176 TARGET_DEFAULT_FUNC.
9178 2014-02-19 Tom Tromey <tromey@redhat.com>
9180 * target-delegates.c: Rebuild.
9181 * target.c (target_detach): Unconditionally delegate.
9182 (init_dummy_target): Don't initialize to_detach.
9183 * target.h (struct target_ops) <to_detach>: Use
9184 TARGET_DEFAULT_IGNORE.
9186 2014-02-19 Tom Tromey <tromey@redhat.com>
9188 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
9190 (target_augmented_libraries_svr4_read): Add argument.
9191 * target.c (update_current_target): Update.
9192 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9197 * target.h (struct target_ops) <to_call_history_range>: Add
9199 * target.c (target_call_history_range): Add argument.
9200 * record-btrace.c (record_btrace_call_history_range): Add 'self'
9202 (record_btrace_call_history_from): Update.
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9206 * target.h (struct target_ops) <to_call_history_from>: Add
9208 * target.c (target_call_history_from): Add argument.
9209 * record-btrace.c (record_btrace_call_history_from): Add 'self'
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9214 * target.h (struct target_ops) <to_call_history>: Add argument.
9215 * target.c (target_call_history): Add argument.
9216 * record-btrace.c (record_btrace_call_history): Add 'self'
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9221 * target.h (struct target_ops) <to_insn_history_range>: Add
9223 * target.c (target_insn_history_range): Add argument.
9224 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
9226 (record_btrace_insn_history_from): Update.
9228 2014-02-19 Tom Tromey <tromey@redhat.com>
9230 * target.h (struct target_ops) <to_insn_history_from>: Add
9232 * target.c (target_insn_history_from): Add argument.
9233 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9238 * target.h (struct target_ops) <to_insn_history>: Add argument.
9239 * target.c (target_insn_history): Add argument.
9240 * record-btrace.c (record_btrace_insn_history): Add 'self'
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9245 * target.h (struct target_ops) <to_goto_record>: Add argument.
9246 * target.c (target_goto_record): Add argument.
9247 * record-full.c (record_full_goto): Add 'self' argument.
9248 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9250 2014-02-19 Tom Tromey <tromey@redhat.com>
9252 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9253 * target.c (target_goto_record_end): Add argument.
9254 * record-full.c (record_full_goto_end): Add 'self' argument.
9255 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9257 2014-02-19 Tom Tromey <tromey@redhat.com>
9259 * target.h (struct target_ops) <to_goto_record_begin>: Add
9261 * target.c (target_goto_record_begin): Add argument.
9262 * record-full.c (record_full_goto_begin): Add 'self' argument.
9263 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9266 2014-02-19 Tom Tromey <tromey@redhat.com>
9268 * target.h (struct target_ops) <to_record_is_replaying>: Add
9270 * target.c (target_record_is_replaying): Add argument.
9271 * record-full.c (record_full_is_replaying): Add 'self' argument.
9272 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9274 (record_btrace_xfer_partial, record_btrace_store_registers)
9275 (record_btrace_prepare_to_store, record_btrace_resume)
9276 (record_btrace_wait, record_btrace_decr_pc_after_break)
9277 (record_btrace_find_new_threads, record_btrace_thread_alive):
9280 2014-02-19 Tom Tromey <tromey@redhat.com>
9282 * target.h (struct target_ops) <to_delete_record>: Add argument.
9283 * target.c (target_delete_record): Add argument.
9284 * record-full.c (record_full_delete): Add 'self' argument.
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9288 * target.h (struct target_ops) <to_save_record>: Add argument.
9289 * target.c (target_save_record): Add argument.
9290 * record-full.c (record_full_save): Add 'self' argument.
9291 (record_full_save): Add 'self' argument.
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9295 * target.h (struct target_ops) <to_info_record>: Add argument.
9296 * target.c (target_info_record): Add argument.
9297 * record.c (info_record_command): Add argument.
9298 * record-full.c (record_full_info): Add 'self' argument.
9299 * record-btrace.c (record_btrace_info): Add 'self' argument.
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9303 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9304 * target.c (target_stop_recording): Add argument.
9305 * record.c (record_stop): Add argument.
9306 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9311 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9312 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9313 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9315 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9316 (_initialize_amd64_linux_nat): Use it.
9317 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9318 (_initialize_i386_linux_nat): Use it.
9320 2014-02-19 Tom Tromey <tromey@redhat.com>
9322 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9323 * target.c (target_teardown_btrace): Add argument.
9324 * remote.c (remote_teardown_btrace): Add 'self' argument.
9325 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9327 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9330 2014-02-19 Tom Tromey <tromey@redhat.com>
9332 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9333 * target.c (target_disable_btrace): Add argument.
9334 * remote.c (remote_disable_btrace): Add 'self' argument.
9335 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9337 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9340 2014-02-19 Tom Tromey <tromey@redhat.com>
9342 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9343 * target.c (target_enable_btrace): Add argument.
9344 * remote.c (remote_enable_btrace): Add 'self' argument.
9345 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9347 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9352 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9353 (target_can_use_agent): Add argument.
9354 * target.c (update_current_target): Update.
9355 * remote.c (remote_can_use_agent): Add 'self' argument.
9356 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9358 2014-02-19 Tom Tromey <tromey@redhat.com>
9360 * target.h (struct target_ops) <to_use_agent>: Add argument.
9361 (target_use_agent): Add argument.
9362 * target.c (update_current_target): Update.
9363 * remote.c (remote_use_agent): Add 'self' argument.
9364 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9366 2014-02-19 Tom Tromey <tromey@redhat.com>
9368 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9369 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9370 (target_traceframe_info): Add argument.
9371 * target.c (update_current_target): Update.
9372 * remote.c (remote_traceframe_info): Add 'self' argument.
9373 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9375 2014-02-19 Tom Tromey <tromey@redhat.com>
9377 * target.h (target_static_tracepoint_markers_by_strid): Add
9379 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9381 * target.c (update_current_target): Update.
9382 * remote.c (struct target_ops)
9383 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9384 * linux-nat.c (struct target_ops)
9385 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9387 2014-02-19 Tom Tromey <tromey@redhat.com>
9389 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9391 (target_static_tracepoint_marker_at): Add argument.
9392 * target.c (update_current_target): Update.
9393 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9396 2014-02-19 Tom Tromey <tromey@redhat.com>
9398 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9399 (target_set_permissions): Add argument.
9400 * target.c (update_current_target): Update.
9401 * remote.c (remote_set_permissions): Add 'self' argument.
9402 (remote_start_remote): Update.
9404 2014-02-19 Tom Tromey <tromey@redhat.com>
9406 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9407 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9408 (target_get_tib_address): Add argument.
9409 * target.c (update_current_target): Update.
9410 * remote.c (remote_get_tib_address): Add 'self' argument.
9412 2014-02-19 Tom Tromey <tromey@redhat.com>
9414 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9415 (target_set_trace_notes): Add argument.
9416 * target.c (update_current_target): Update.
9417 * remote.c (remote_set_trace_notes): Add 'self' argument.
9419 2014-02-19 Tom Tromey <tromey@redhat.com>
9421 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9423 (target_set_trace_buffer_size): Add argument.
9424 * target.c (update_current_target): Update.
9425 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9427 2014-02-19 Tom Tromey <tromey@redhat.com>
9429 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9431 (target_set_circular_trace_buffer): Add argument.
9432 * target.c (update_current_target): Update.
9433 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9436 2014-02-19 Tom Tromey <tromey@redhat.com>
9438 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9440 (target_set_disconnected_tracing): Add argument.
9441 * target.c (update_current_target): Update.
9442 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9444 2014-02-19 Tom Tromey <tromey@redhat.com>
9446 * target.h (struct target_ops)
9447 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9448 (target_get_min_fast_tracepoint_insn_len): Add argument.
9449 * target.c (update_current_target): Update.
9450 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9453 2014-02-19 Tom Tromey <tromey@redhat.com>
9455 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9457 (target_get_raw_trace_data): Add argument.
9458 * target.c (update_current_target): Update.
9459 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9461 2014-02-19 Tom Tromey <tromey@redhat.com>
9463 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9465 (target_upload_trace_state_variables): Add argument.
9466 * target.c (update_current_target): Update.
9467 * remote.c (remote_upload_trace_state_variables): Add 'self'
9469 (remote_start_remote): Update.
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9473 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9475 (target_upload_tracepoints): Add argument.
9476 * target.c (update_current_target): Update.
9477 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9478 (remote_start_remote): Update.
9480 2014-02-19 Tom Tromey <tromey@redhat.com>
9482 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9483 (target_save_trace_data): Add argument.
9484 * target.c (update_current_target): Update.
9485 * remote.c (remote_save_trace_data): Add 'self' argument.
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9489 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9491 * target.h (struct target_ops)
9492 <to_get_trace_state_variable_value>: Add argument.
9493 (target_get_trace_state_variable_value): Add argument.
9494 * target.c (update_current_target): Update.
9495 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9497 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9499 2014-02-19 Tom Tromey <tromey@redhat.com>
9501 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9502 * target.h (struct target_ops) <to_trace_find>: Add argument.
9503 (target_trace_find): Add argument.
9504 * target.c (update_current_target): Update.
9505 * remote.c (remote_trace_find): Add 'self' argument.
9506 * ctf.c (ctf_trace_find): Add 'self' argument.
9508 2014-02-19 Tom Tromey <tromey@redhat.com>
9510 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9511 (target_trace_stop): Add argument.
9512 * target.c (update_current_target): Update.
9513 * remote.c (remote_trace_stop): Add 'self' argument.
9515 2014-02-19 Tom Tromey <tromey@redhat.com>
9517 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9518 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9520 (target_get_tracepoint_status): Add argument.
9521 * target.c (update_current_target): Update.
9522 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9524 2014-02-19 Tom Tromey <tromey@redhat.com>
9526 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9527 * target.h (struct target_ops) <to_get_trace_status>: Add
9529 (target_get_trace_status): Add argument.
9530 * target.c (update_current_target): Update.
9531 * remote.c (remote_get_trace_status): Add 'self' argument.
9532 (remote_start_remote, remote_can_download_tracepoint): Update.
9533 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9535 2014-02-19 Tom Tromey <tromey@redhat.com>
9537 * target.h (struct target_ops) <to_trace_start>: Add argument.
9538 (target_trace_start): Add argument.
9539 * target.c (update_current_target): Update.
9540 * remote.c (remote_trace_start): Add 'self' argument.
9542 2014-02-19 Tom Tromey <tromey@redhat.com>
9544 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9546 (target_trace_set_readonly_regions): Add argument.
9547 * target.c (update_current_target): Update.
9548 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9553 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9555 (target_disable_tracepoint): Add argument.
9556 * target.c (update_current_target): Update.
9557 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9559 2014-02-19 Tom Tromey <tromey@redhat.com>
9561 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9563 (target_enable_tracepoint): Add argument.
9564 * target.c (update_current_target): Update.
9565 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9567 2014-02-19 Tom Tromey <tromey@redhat.com>
9569 * target.h (struct target_ops) <to_download_trace_state_variable>:
9571 (target_download_trace_state_variable): Add argument.
9572 * target.c (update_current_target): Update.
9573 * remote.c (remote_download_trace_state_variable): Add 'self'
9576 2014-02-19 Tom Tromey <tromey@redhat.com>
9578 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9580 (target_can_download_tracepoint): Add argument.
9581 * target.c (update_current_target): Update.
9582 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9584 2014-02-19 Tom Tromey <tromey@redhat.com>
9586 * target.h (struct target_ops) <to_download_tracepoint>: Add
9588 (target_download_tracepoint): Add argument.
9589 * target.c (update_current_target): Update.
9590 * remote.c (remote_download_tracepoint): Add 'self' argument.
9592 2014-02-19 Tom Tromey <tromey@redhat.com>
9594 * target.h (struct target_ops) <to_trace_init>: Add argument.
9595 (target_trace_init): Add argument.
9596 * target.c (update_current_target): Update.
9597 * remote.c (remote_trace_init): Add 'self' argument.
9599 2014-02-19 Tom Tromey <tromey@redhat.com>
9601 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9602 * target.c (target_fileio_readlink): Add argument.
9603 * remote.c (remote_hostio_readlink): Add 'self' argument.
9604 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9606 2014-02-19 Tom Tromey <tromey@redhat.com>
9608 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9609 * target.c (target_fileio_unlink): Add argument.
9610 * remote.c (remote_hostio_unlink): Add 'self' argument.
9611 (remote_file_delete): Update.
9612 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9614 2014-02-19 Tom Tromey <tromey@redhat.com>
9616 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9617 * target.c (target_fileio_close): Add argument.
9618 * remote.c (remote_hostio_close): Add 'self' argument.
9619 (remote_hostio_close_cleanup): Update.
9620 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9622 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9624 2014-02-19 Tom Tromey <tromey@redhat.com>
9626 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9627 * target.c (target_fileio_pread): Add argument.
9628 * remote.c (remote_hostio_pread): Add 'self' argument.
9629 (remote_bfd_iovec_pread, remote_file_get): Update.
9630 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9632 2014-02-19 Tom Tromey <tromey@redhat.com>
9634 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9635 * target.c (target_fileio_pwrite): Add argument.
9636 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9637 (remote_file_put): Update.
9638 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9640 2014-02-19 Tom Tromey <tromey@redhat.com>
9642 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9643 * target.c (target_fileio_open): Add argument.
9644 * remote.c (remote_hostio_open): Add 'self' argument.
9645 (remote_bfd_iovec_open): Add 'self' argument.
9646 (remote_file_put): Add 'self' argument.
9647 (remote_file_get): Add 'self' argument.
9648 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9650 2014-02-19 Tom Tromey <tromey@redhat.com>
9652 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9654 (target_can_run_breakpoint_commands): Add argument.
9655 * target.c (update_current_target): Update.
9656 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9658 (remote_insert_breakpoint): Add 'self' argument.
9659 (remote_insert_hw_breakpoint): Add 'self' argument.
9660 (remote_can_run_breakpoint_commands): Add 'self' argument.
9662 2014-02-19 Tom Tromey <tromey@redhat.com>
9664 * target.h (struct target_ops)
9665 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9666 (target_supports_evaluation_of_breakpoint_conditions): Add
9668 * target.c (update_current_target): Update.
9669 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9671 (remote_insert_breakpoint): Add 'self' argument.
9672 (remote_insert_hw_breakpoint): Add 'self' argument.
9673 (remote_supports_cond_breakpoints): Add 'self' argument.
9675 2014-02-19 Tom Tromey <tromey@redhat.com>
9677 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9679 (target_supports_string_tracing): Add argument.
9680 * target.c (update_current_target): Update.
9681 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9685 * target.h (struct target_ops)
9686 <to_supports_disable_randomization>: Add argument.
9687 * target.c (find_default_supports_disable_randomization): Add
9689 (target_supports_disable_randomization): Add argument.
9690 (find_default_supports_disable_randomization): Add 'self'
9692 * remote.c (extended_remote_supports_disable_randomization): Add
9694 (remote_supports_disable_randomization): Add 'self' argument.
9695 (extended_remote_create_inferior): Update.
9696 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9701 * target.h (struct target_ops)
9702 <to_supports_enable_disable_tracepoint>: Add argument.
9703 (target_supports_enable_disable_tracepoint): Add argument.
9704 * target.c (update_current_target): Update.
9705 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9708 2014-02-19 Tom Tromey <tromey@redhat.com>
9710 * target.h (struct target_ops) <to_supports_multi_process>: Add
9712 (target_supports_multi_process): Add argument.
9713 * target.c (update_current_target): Update.
9714 * remote.c (remote_supports_multi_process): Add 'self' argument.
9715 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9717 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9720 2014-02-19 Tom Tromey <tromey@redhat.com>
9722 * target.h (struct target_ops) <to_execution_direction>: Add
9724 (target_execution_direction): Add argument.
9725 * target.c (default_execution_direction): Add 'self' argument.
9726 * record-full.c (record_full_execution_direction): Add 'self'
9729 2014-02-19 Tom Tromey <tromey@redhat.com>
9731 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9733 (target_can_execute_reverse): Add argument.
9734 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9735 * record-full.c (record_full_can_execute_reverse): Add 'self'
9737 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9740 2014-02-19 Tom Tromey <tromey@redhat.com>
9742 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9743 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9745 (target_get_ada_task_ptid): Add argument.
9746 * target.c (update_current_target): Update.
9747 (default_get_ada_task_ptid): Add 'self' argument.
9748 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9749 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9750 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9752 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9754 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9756 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9758 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9759 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9762 2014-02-19 Tom Tromey <tromey@redhat.com>
9764 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9765 (target_goto_bookmark): Add argument.
9766 * target.c (dummy_goto_bookmark): Add 'self' argument.
9767 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9769 2014-02-19 Tom Tromey <tromey@redhat.com>
9771 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9772 (target_get_bookmark): Add argument.
9773 * target.c (dummy_get_bookmark): Add 'self' argument.
9774 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9776 2014-02-19 Tom Tromey <tromey@redhat.com>
9778 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9780 (target_make_corefile_notes): Add argument.
9781 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9782 * procfs.c (procfs_make_note_section): Add 'self' argument.
9783 (procfs_make_note_section): Add 'self' argument.
9784 (procfs_make_note_section): Add 'self' argument.
9785 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9787 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9788 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9789 * exec.c (exec_make_note_section): Add 'self' argument.
9790 (exec_make_note_section): Add 'self' argument.
9792 2014-02-19 Tom Tromey <tromey@redhat.com>
9794 * target.h (struct target_ops) <to_find_memory_regions>: Add
9796 (target_find_memory_regions): Add argument.
9797 * target.c (dummy_find_memory_regions): Add 'self' argument.
9798 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9799 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9800 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9801 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9802 * exec. (exec_do_find_memory_regions): New global.
9803 (exec_set_find_memory_regions): Rewrite.
9804 (exec_find_memory_regions): New function.
9805 (init_exec_ops): Use exec_find_memory_regions.
9807 2014-02-19 Tom Tromey <tromey@redhat.com>
9809 * target.h (struct target_ops) <to_supports_non_stop>: Add
9811 * target.c (find_default_supports_non_stop): Add argument.
9812 (target_supports_non_stop): Add argument.
9813 (find_default_supports_non_stop): Add 'self' argument.
9814 * remote.c (remote_supports_non_stop): Add 'self' argument.
9815 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9817 2014-02-19 Tom Tromey <tromey@redhat.com>
9819 * target.h (struct target_ops) <to_log_command>: Add argument.
9820 (target_log_command): Add argument.
9821 * serial.h (serial_log_command): Add 'self' argument.
9822 * serial.c (serial_log_command): Add 'self' argument.
9824 2014-02-19 Tom Tromey <tromey@redhat.com>
9826 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9827 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9829 (target_pid_to_exec_file): Add argument.
9830 * target.c (debug_to_pid_to_exec_file): Add argument.
9831 (update_current_target): Update.
9832 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9833 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9834 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9835 (linux_handle_extended_wait): Update.
9836 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9837 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9838 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9839 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9841 2014-02-19 Tom Tromey <tromey@redhat.com>
9843 * target.h (struct target_ops) <to_rcmd>: Add argument.
9844 (target_rcmd): Add argument.
9845 * target.c (debug_to_rcmd): Add argument.
9846 (update_current_target, do_monitor_command): Update.
9847 * remote.c (remote_rcmd): Add 'self' argument.
9848 * monitor.c (monitor_rcmd): Add 'self' argument.
9850 2014-02-19 Tom Tromey <tromey@redhat.com>
9852 * windows-nat.c (windows_stop): Add 'self' argument.
9853 * target.h (struct target_ops) <to_stop>: Add argument.
9854 * target.c (target_stop): Add argument.
9855 (debug_to_stop): Add argument.
9856 (update_current_target): Update.
9857 * remote.c (remote_stop): Add 'self' argument.
9858 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9859 (gdbsim_cntrl_c): Update.
9860 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9861 * procfs.c (procfs_stop): Add 'self' argument.
9862 * nto-procfs.c (procfs_stop): Add 'self' argument.
9863 * monitor.c (monitor_stop): Add 'self' argument.
9864 (monitor_open): Update.
9865 * linux-nat.c (linux_nat_stop): Add argument.
9866 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9867 * gnu-nat.c (gnu_stop): Add 'self' argument.
9868 * darwin-nat.c (darwin_stop): Add 'self' argument.
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9872 * target.h (struct target_ops) <to_thread_name>: Add argument.
9873 * target.c (target_thread_name): Add argument.
9874 (update_current_target): Update.
9875 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9879 * target.h (struct target_ops) <to_extra_thread_info>: Add
9881 (target_extra_thread_info): Add argument.
9882 * target.c (update_current_target): Update.
9883 * remote.c (remote_threads_extra_info): Add 'self' argument.
9884 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9886 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9887 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9888 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9890 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9892 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9894 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9897 2014-02-19 Tom Tromey <tromey@redhat.com>
9899 * target.h (struct target_ops) <to_program_signals>: Add argument.
9900 * target.c (target_program_signals): Add argument.
9901 * remote.c (remote_program_signals): Add 'self' argument.
9903 2014-02-19 Tom Tromey <tromey@redhat.com>
9905 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9906 * target.c (target_pass_signals): Add argument.
9907 * remote.c (remote_pass_signals): Add 'self' argument.
9908 (remote_start_remote): Update.
9909 * procfs.c (procfs_pass_signals): Add 'self' argument.
9910 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9911 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9912 (linux_nat_create_inferior, linux_nat_attach): Update.
9914 2014-02-19 Tom Tromey <tromey@redhat.com>
9916 * windows-nat.c (windows_can_run): Add 'self' argument.
9917 * target.h (struct target_ops) <to_can_run>: Add argument.
9918 (target_can_run): Add argument.
9919 * target.c (debug_to_can_run): Add argument.
9920 (update_current_target): Update.
9921 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9922 * inf-child.c (inf_child_can_run): Add 'self' argument.
9923 * go32-nat.c (go32_can_run): Add 'self' argument.
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9927 * target.h (struct target_ops) <to_has_exited>: Add argument.
9928 (target_has_exited): Add argument.
9929 * target.c (debug_to_has_exited): Add argument.
9930 (update_current_target): Update.
9932 2014-02-19 Tom Tromey <tromey@redhat.com>
9934 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9936 (target_set_syscall_catchpoint): Add argument.
9937 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9939 * target.c (update_current_target): Update.
9941 2014-02-19 Tom Tromey <tromey@redhat.com>
9943 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9945 (target_remove_exec_catchpoint): Add argument.
9946 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9947 (update_current_target): Update.
9948 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9951 2014-02-19 Tom Tromey <tromey@redhat.com>
9953 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9955 (target_insert_exec_catchpoint): Add argument.
9956 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9957 (update_current_target): Update.
9958 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9961 2014-02-19 Tom Tromey <tromey@redhat.com>
9963 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9965 (target_remove_vfork_catchpoint): Add argument.
9966 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9967 (update_current_target): Update.
9968 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9971 2014-02-19 Tom Tromey <tromey@redhat.com>
9973 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9975 (target_insert_vfork_catchpoint): Add argument.
9976 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9977 (update_current_target): Update.
9978 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9981 2014-02-19 Tom Tromey <tromey@redhat.com>
9983 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9985 (target_remove_fork_catchpoint): Add argument.
9986 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9987 (update_current_target): Update.
9988 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9993 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9995 (target_insert_fork_catchpoint): Add argument.
9996 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9997 (update_current_target): Update.
9998 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
10001 2014-02-19 Tom Tromey <tromey@redhat.com>
10003 * target.h (struct target_ops) <to_post_startup_inferior>: Add
10005 (target_post_startup_inferior): Add argument.
10006 * target.c (debug_to_post_startup_inferior): Add argument.
10007 (update_current_target): Update.
10008 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
10010 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
10012 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
10014 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
10016 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
10018 (super_post_startup_inferior): Likewise.
10019 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
10021 (super_post_startup_inferior): Likewise.
10022 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
10023 Add 'self' argument.
10024 (super_post_startup_inferior): Likewise.
10026 2014-02-19 Tom Tromey <tromey@redhat.com>
10028 * target.h (struct target_ops) <to_load>: Add argument.
10029 * target.c (target_load): Add argument.
10030 (debug_to_load): Add argument.
10031 (update_current_target): Update.
10032 * remote.c (remote_load): Add 'self' argument.
10033 * remote-sim.c (gdbsim_load): Add 'self' argument.
10034 * remote-mips.c (mips_load): Add 'self' argument.
10035 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
10036 * monitor.c (monitor_load): Add 'self' argument.
10037 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
10039 2014-02-19 Tom Tromey <tromey@redhat.com>
10041 * target.h (struct target_ops) <to_terminal_info>: Add argument.
10042 (target_terminal_info): Add argument.
10043 * target.c (debug_to_terminal_info): Add argument.
10044 (default_terminal_info): Likewise.
10045 * inflow.c (child_terminal_info): Add 'self' argument.
10046 * inferior.h (child_terminal_info): Add 'self' argument.
10047 * go32-nat.c (go32_terminal_info): Add 'self' argument.
10049 2014-02-19 Tom Tromey <tromey@redhat.com>
10051 * target.h (struct target_ops) <to_terminal_save_ours>: Add
10053 (target_terminal_save_ours): Add argument.
10054 * target.c (debug_to_terminal_save_ours): Add argument.
10055 (update_current_target): Update.
10056 * inflow.c (terminal_save_ours): Add 'self' argument.
10057 * inferior.h (terminal_save_ours): Add 'self' argument.
10059 2014-02-19 Tom Tromey <tromey@redhat.com>
10061 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
10062 (target_terminal_ours): Add argument.
10063 * target.c (debug_to_terminal_ours): Add argument.
10064 (update_current_target): Update.
10065 * remote.c (remote_terminal_ours): Add 'self' argument.
10066 (remote_close): Update.
10067 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
10068 * inflow.c (terminal_ours): Add 'self' argument.
10069 * inferior.h (terminal_ours): Add 'self' argument.
10070 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10072 2014-02-19 Pedro Alves <palves@redhat.com>
10073 Tom Tromey <tromey@redhat.com>
10075 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
10077 (target_terminal_ours_for_output): Add argument.
10078 * target.c (debug_to_terminal_ours_for_output): Add argument.
10079 (update_current_target): Update.
10080 * inflow.c (terminal_ours_for_output): Add 'self' argument.
10081 * inferior.h (terminal_ours_for_output): Add 'self' argument.
10082 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
10084 2014-02-19 Tom Tromey <tromey@redhat.com>
10086 * target.h (struct target_ops) <to_terminal_inferior>: Add
10088 * target.c (target_terminal_inferior): Add argument.
10089 (update_current_target): Update.
10090 * remote.c (remote_terminal_inferior): Add 'self' argument.
10091 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
10092 * inflow.c (terminal_inferior): Add 'self' argument.
10093 * inferior.h (terminal_inferior): Add 'self' argument.
10094 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
10095 (go32_terminal_inferior): Add 'self' argument.
10097 2014-02-19 Tom Tromey <tromey@redhat.com>
10099 * target.h (struct target_ops) <to_terminal_init>: Add argument.
10100 (target_terminal_init): Add argument.
10101 * target.c (debug_to_terminal_init): Add argument.
10102 (update_current_target): Update.
10103 * inflow.c (terminal_init_inferior): Add 'self' argument.
10104 * inferior.h (terminal_init_inferior): Add 'self' argument.
10105 * go32-nat.c (go32_terminal_init): Add 'self' argument.
10106 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
10108 2014-02-19 Tom Tromey <tromey@redhat.com>
10110 * target.h (struct target_ops)
10111 <to_can_accel_watchpoint_condition>: Add argument.
10112 (target_can_accel_watchpoint_condition): Add argument.
10113 * target.c (debug_to_can_accel_watchpoint_condition): Add
10115 (update_current_target): Update.
10116 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
10119 2014-02-19 Tom Tromey <tromey@redhat.com>
10121 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
10123 (target_region_ok_for_hw_watchpoint): Add argument.
10124 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
10125 (default_region_ok_for_hw_watchpoint): Add argument.
10126 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
10127 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
10129 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
10131 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
10133 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
10135 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
10137 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
10139 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
10140 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
10142 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
10143 Add 'self' argument.
10145 2014-02-19 Tom Tromey <tromey@redhat.com>
10147 * target.h (struct target_ops) <to_insert_watchpoint>: Add
10149 (target_insert_watchpoint): Add argument.
10150 * target.c (debug_to_insert_watchpoint): Add argument.
10151 (update_current_target): Update.
10152 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
10153 * remote.c (remote_insert_watchpoint): Add 'self' argument.
10154 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
10155 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
10156 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
10157 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
10159 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
10160 (procfs_insert_hw_watchpoint): Add 'self' argument.
10161 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
10163 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
10165 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
10167 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
10168 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
10170 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
10173 2014-02-19 Tom Tromey <tromey@redhat.com>
10175 * target.h (struct target_ops) <to_remove_watchpoint>: Add
10177 (target_remove_watchpoint): Add argument.
10178 * target.c (debug_to_remove_watchpoint): Add argument.
10179 (update_current_target): Update.
10180 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
10181 * remote.c (remote_remove_watchpoint): Add 'self' argument.
10182 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
10183 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
10184 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
10185 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
10187 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
10188 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
10190 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
10192 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
10194 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
10195 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
10197 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
10200 2014-02-19 Tom Tromey <tromey@redhat.com>
10202 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
10204 (target_remove_hw_breakpoint): Add argument.
10205 * target.c (debug_to_remove_hw_breakpoint): Add argument.
10206 (update_current_target): Update.
10207 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
10208 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
10210 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
10211 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
10213 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
10216 2014-02-19 Tom Tromey <tromey@redhat.com>
10218 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
10220 (target_insert_hw_breakpoint): Add argument.
10221 * target.c (debug_to_insert_hw_breakpoint): Add argument.
10222 (update_current_target): Update.
10223 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
10224 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
10226 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
10227 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
10228 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
10230 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
10233 2014-02-19 Tom Tromey <tromey@redhat.com>
10235 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
10237 (target_can_use_hardware_watchpoint): Add argument.
10238 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
10239 (update_current_target): Update.
10240 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
10242 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10244 * remote.c (remote_check_watch_resources): Add 'self' argument.
10245 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10246 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10248 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10249 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10251 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10253 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10255 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10257 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10259 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10261 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10262 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10264 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10267 2014-02-19 Tom Tromey <tromey@redhat.com>
10269 * target.h (struct target_ops) <to_post_attach>: Add argument.
10270 (target_post_attach): Add argument.
10271 * target.c (debug_to_post_attach): Add argument.
10272 (update_current_target): Update.
10273 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10274 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10275 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10276 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10277 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10279 2014-02-19 Tom Tromey <tromey@redhat.com>
10281 * windows-nat.c (windows_close): Add 'self' argument.
10282 * tracepoint.c (tfile_close): Add 'self' argument.
10283 * target.h (struct target_ops) <to_close>: Add argument.
10284 * target.c (target_close): Add argument.
10285 (update_current_target): Update.
10286 * remote.c (remote_close): Add 'self' argument.
10287 * remote-sim.c (gdbsim_close): Add 'self' argument.
10288 * remote-mips.c (mips_close): Add 'self' argument.
10289 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10290 * record-full.c (record_full_close): Add 'self' argument.
10291 * record-btrace.c (record_btrace_close): Add 'self' argument.
10292 * monitor.h (monitor_close): Add 'self' argument.
10293 * monitor.c (monitor_close): Add 'self' argument.
10294 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10295 * linux-nat.c (linux_nat_close): Add argument.
10296 * go32-nat.c (go32_close): Add 'self' argument.
10297 * exec.c (exec_close_1): Add 'self' argument.
10298 * ctf.c (ctf_close): Add 'self' argument.
10299 * corelow.c (core_close): Add 'self' argument.
10300 (core_close_cleanup): Update.
10301 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10302 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10304 2014-02-19 Tom Tromey <tromey@redhat.com>
10306 * remote.c (remote_load): New function.
10307 (init_remote_ops): Use it.
10309 2014-02-19 Tom Tromey <tromey@redhat.com>
10311 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10313 * common/linux-btrace.h (linux_supports_btrace): Update.
10314 * remote.c (remote_supports_btrace): Add "self" argument.
10315 * target-delegates.c: Rebuild.
10316 * target.c (target_supports_btrace): Remove.
10317 * target.h (struct target_ops) <to_supports_btrace>: Add
10318 target_ops argument.
10319 (target_supports_btrace): New define.
10321 2014-02-19 Tom Tromey <tromey@redhat.com>
10323 * record-full.c (record_full_beneath_to_resume_ops)
10324 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10325 (record_full_beneath_to_wait)
10326 (record_full_beneath_to_store_registers_ops)
10327 (record_full_beneath_to_store_registers)
10328 (record_full_beneath_to_xfer_partial_ops)
10329 (record_full_beneath_to_xfer_partial)
10330 (record_full_beneath_to_insert_breakpoint_ops)
10331 (record_full_beneath_to_insert_breakpoint)
10332 (record_full_beneath_to_remove_breakpoint_ops)
10333 (record_full_beneath_to_remove_breakpoint)
10334 (record_full_beneath_to_stopped_by_watchpoint)
10335 (record_full_beneath_to_stopped_data_address)
10336 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10337 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10338 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10339 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10340 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10341 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10342 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10343 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10344 (record_full_resume, record_full_wait_1)
10345 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10346 (record_full_store_registers, record_full_xfer_partial)
10347 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10348 (record_full_async, record_full_core_xfer_partial): Use target
10350 * target-delegates.c: Rebuild.
10351 * target.c (current_xfer_partial): Remove.
10352 (update_current_target): Do not INHERIT or de_fault
10353 to_insert_breakpoint, to_remove_breakpoint,
10354 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10355 to_is_async_p, to_async. Do not set to_xfer_partial field.
10356 (default_xfer_partial): Simplify.
10357 (current_xfer_partial): Remove.
10358 (target_wait, target_resume): Simplify.
10359 (find_default_can_async_p, find_default_is_async_p): Update.
10360 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10361 to_xfer_partial, to_stopped_by_watchpoint,
10362 to_stopped_data_address.
10363 (target_store_registers): Simplify.
10364 (forward_target_remove_breakpoint)
10365 (forward_target_insert_breakpoint): Remove.
10366 (target_remove_breakpoint, target_insert_breakpoint)
10367 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10368 * target.h (struct target_ops) <to_resume, to_wait,
10369 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10370 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10371 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10373 (forward_target_remove_breakpoint)
10374 (forward_target_insert_breakpoint): Remove.
10375 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10377 (record_btrace_insert_breakpoint): Delegate directly.
10379 2014-02-19 Tom Tromey <tromey@redhat.com>
10382 * target-delegates.c: New file.
10383 * target.c: Include target-delegates.c.
10384 (init_dummy_target): Call install_dummy_methods.
10385 (complete_target_initialization): Call install_delegators.
10386 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10387 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10388 * make-target-delegates: New file.
10390 2014-02-19 Tom Tromey <tromey@redhat.com>
10392 * record.c (find_record_target): Use find_target_at.
10393 * target.c (find_target_at): New function.
10394 * target.h (find_target_at): Declare.
10396 2014-02-19 Tom Tromey <tromey@redhat.com>
10398 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10399 Add 'ops' argument.
10400 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10402 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10403 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10405 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10407 * linux-nat.c (save_sigtrap): Update.
10408 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10409 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10410 (linux_nat_close): Update.
10411 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10413 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10415 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10416 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10417 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10418 (tmp_to_async): Add 'ops' argument.
10419 (record_full_stopped_by_watchpoint, record_full_async)
10420 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10422 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10423 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10424 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10425 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10426 (remote_is_async_p, remote_async): Add 'ops' argument.
10427 (remote_stopped_data_address): Update.
10428 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10429 * target.c (update_current_target)
10430 (find_default_can_async_p, find_default_is_async_p): Update.
10431 (init_dummy_target): Update.
10432 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10433 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10434 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10435 (target_can_async_p, target_is_async_p, target_async)
10436 (target_stopped_by_watchpoint): Update.
10438 2014-02-19 Yao Qi <yao@codesourcery.com>
10441 * gdbarch.sh: Remove startup_gdbarch.
10442 * gdbarch.c: Regenerated.
10443 * gdbarch.h: Likewise.
10445 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10447 * rl78-tdep.c (rl78_g10_register_name): New function.
10448 (rl78_return_value): Add g10 support.
10449 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10452 2014-02-17 Doug Evans <xdje42@gmail.com>
10454 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10455 (SUBDIR_GUILE_SRCS): Ditto.
10456 (scm-gsmob.o): Ditto.
10458 2014-02-17 Yao Qi <yao@codesourcery.com>
10460 * gnu-nat.c (ILL_RPC): Declare defined function.
10462 2014-02-17 Yao Qi <yao@codesourcery.com>
10464 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10465 mach_msg_type_number_t.
10466 (gnu_write_inferior): Likewise.
10468 2014-02-17 Yao Qi <yao@codesourcery.com>
10470 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10472 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10473 (inf_validate_procs, inf_signal): Likewise.
10474 (S_exception_raise_request): Likewise.
10475 (do_mach_notify_dead_name): Likewise.
10476 (steal_exc_port): Likewise.
10477 (gnu_read_inferior): Change 'copy_count''s type to
10478 mach_msg_type_number_t.
10479 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10482 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10484 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10485 flag. Adjust all users; in particular...
10486 (gnu_wait): ..., don't decrement its value in here...
10487 (gnu_create_inferior): ..., and instead set the flag in here,
10488 around the startup_inferior call, and call that one with
10489 START_INFERIOR_TRAPS_EXPECTED.
10491 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10492 (ILL_RPC): ... new macro.
10493 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10494 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10495 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10496 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10497 functions with ILL_RPC macro.
10498 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10499 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10500 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10501 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10502 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10503 (S_proc_getlogin_reply, S_proc_getsid_reply)
10504 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10505 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10506 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10507 (S_proc_getnports_reply, S_proc_is_important_reply)
10508 (S_proc_get_code_reply): New stub functions, generated with
10511 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10512 collected the type check structures.
10514 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10516 2014-02-14 Doug Evans <dje@google.com>
10518 * target.c (target_write_partial): Fix result type.
10520 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10522 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10523 the proper offsets to access fpregset_t.
10525 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10527 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10528 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10529 * h8300-tdep.c (setmachinelist): Remove global.
10530 * hppa-tdep.c (hppa_sigtramp): Remove global.
10531 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10532 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10533 * ravenscar-thread.c (update_target_observer): Remove global.
10534 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10536 2014-02-12 Tom Tromey <tromey@redhat.com>
10538 * common/rsp-low.c: Update comments.
10539 * common/rsp-low.h: Update comments.
10541 2014-02-12 Tom Tromey <tromey@redhat.com>
10543 * common/rsp-low.c (convert_ascii_to_int): Remove.
10544 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10546 2014-02-12 Tom Tromey <tromey@redhat.com>
10548 * common/rsp-low.h (unhexify): Don't declare.
10549 * common/rsp-low.c (unhexify): Remove.
10551 2014-02-12 Tom Tromey <tromey@redhat.com>
10553 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10554 * common/rsp-low.c (convert_int_to_ascii): Remove.
10556 2014-02-12 Tom Tromey <tromey@redhat.com>
10558 * common/rsp-low.h (hexify): Don't declare.
10559 * common/rsp-low.c (hexify): Remove.
10561 2014-02-12 Tom Tromey <tromey@redhat.com>
10563 * common/rsp-low.c (hexify): Never take strlen of argument.
10565 2014-02-12 Tom Tromey <tromey@redhat.com>
10567 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10568 * remote.c (extended_remote_run, remote_rcmd)
10569 (remote_download_trace_state_variable, remote_save_trace_data)
10570 (remote_set_trace_notes): Update.
10571 * tracepoint.c (encode_source_string, tfile_write_status)
10572 (tfile_write_uploaded_tsv): Update.
10574 2014-02-12 Tom Tromey <tromey@redhat.com>
10576 * tracepoint.c: Include rsp-low.h.
10577 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10578 * remote.c: Include rsp-low.h.
10579 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10580 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10581 (remote_unescape_input): Move to common/rsp-low.c.
10582 * common/rsp-low.h: New file.
10583 * common/rsp-low.c: New file.
10584 * Makefile.in (SFILES): Add common/rsp-low.c.
10585 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10586 (COMMON_OBS): Add rsp-low.o.
10587 (rsp-low.o): New target.
10589 2014-02-12 Tom Tromey <tromey@redhat.com>
10591 * utils.h: Include print-utils.h.
10592 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10593 (int_string, core_addr_to_string, core_addr_to_string_nz)
10594 (hex_string, hex_string_custom): Don't declare.
10595 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10596 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10597 (hex_string_custom, int_string, core_addr_to_string)
10598 (core_addr_to_string_nz, host_address_to_string): Move to
10599 common/print-utils.c.
10600 * common/print-utils.h: New file.
10601 * common/print-utils.c: New file
10602 * Makefile.in (SFILES): Add common/print-utils.c.
10603 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10604 (COMMON_OBS): Add print-utils.o.
10605 (print-utils.o): New target.
10607 2014-02-12 Tom Tromey <tromey@redhat.com>
10609 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10611 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10613 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10615 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10617 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10618 if a PT_IO ptrace request returns sucessfully but indicates that 0
10619 bytes were transferred.
10621 2014-02-12 Pedro Alves <palves@redhat.com>
10622 Kevin Buettner <kevinb@redhat.com>
10624 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10625 TYPE_INSTANCE_FLAG_CODE_SPACE.
10627 2014-02-12 Pedro Alves <palves@redhat.com>
10629 * h8300-tdep.c (pseudo_from_raw_register)
10630 (raw_from_pseudo_register): New functions.
10631 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10634 2014-02-12 Pedro Alves <palves@redhat.com>
10636 * h8300-tdep.c (h8300_register_sim_regno): New function.
10637 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10638 gdbarch_register_sim_regno hook.
10640 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10642 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10644 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10646 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10648 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10650 * obsd-tdep.h (obsd_init_abi): New prototype.
10651 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10652 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10653 (obsd_init_abi): New functions.
10654 * i386obsd-tdep.c: Include "obsd-tdep.h".
10655 (i386obsd_init_abi): Call obsd_init_abi.
10656 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10657 (amd64obsd_init_abi): Call obsd_init_abi.
10658 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10659 obsd-tdep.c to gdb_target_obs.
10661 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10663 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10664 double float arguments to 16-byte in the argument slots.
10666 2014-02-11 Doug Evans <xdje42@gmail.com>
10668 * configure.ac: Don't crash if pkg-config is not found and guile
10669 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10671 * configure: Regenerate.
10673 2014-02-11 Yao Qi <yao@codesourcery.com>
10675 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10676 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10677 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10678 * gnu-nat.c (gnu_xfer_memory): Likewise.
10679 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10680 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10681 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10682 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10684 2014-02-11 Yao Qi <yao@codesourcery.com>
10686 * target.h (enum target_xfer_error): Rename to ...
10687 (enum target_xfer_status): ... it. New. All users updated.
10688 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10690 (TARGET_XFER_STATUS_ERROR_P): New macro.
10691 (target_xfer_error_to_string): Remove declaration.
10692 (target_xfer_status_to_string): Declare.
10693 (target_xfer_partial_ftype): Adjust it.
10694 (struct target_ops) <to_xfer_partial>: Return
10695 target_xfer_status. Add argument xfered_len. Update
10697 * target.c (target_xfer_error_to_string): Rename to ...
10698 (target_xfer_status_to_string): ... it. New. All callers
10700 (target_read_live_memory): Likewise. Call target_xfer_partial
10701 instead of target_read.
10702 (memory_xfer_live_readonly_partial): Return
10703 target_xfer_status. Add argument xfered_len.
10704 (raw_memory_xfer_partial): Likewise.
10705 (memory_xfer_partial_1): Likewise.
10706 (memory_xfer_partial): Likewise.
10707 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10708 properly. Update debug message.
10709 (default_xfer_partial, current_xfer_partial): Likewise.
10710 (target_write_partial): Likewise.
10711 (target_read_partial): Likewise. All callers updated.
10712 (read_whatever_is_readable): Likewise.
10713 (target_write_with_progress): Likewise.
10714 (target_read_alloc_1): Likewise.
10716 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10717 * auxv.c (procfs_xfer_auxv): Likewise.
10718 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10719 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10720 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10721 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10722 * corefile.c (read_memory): Adjust.
10723 * corelow.c (core_xfer_partial): Likewise.
10724 * ctf.c (ctf_xfer_partial): Likewise.
10725 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10727 (darwin_xfer_partial): Likewise.
10728 * exec.c (section_table_xfer_memory_partial): Likewise. All
10730 (exec_xfer_partial): Likewise.
10731 * exec.h (section_table_xfer_memory_partial): Update
10733 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10735 (gnu_xfer_partial): Likewise.
10736 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10737 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10738 (ia64_hpux_xfer_solib_got): Likewise.
10739 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10740 type of 'partial_len' to ULONGEST.
10741 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10742 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10743 (linux_nat_xfer_partial): Likewise.
10744 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10745 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10746 * monitor.c (monitor_xfer_memory): Likewise.
10747 (monitor_xfer_partial): Likewise.
10748 * procfs.c (procfs_xfer_partial): Likewise.
10749 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10750 * record-full.c (record_full_xfer_partial): Likewise.
10751 (record_full_core_xfer_partial): Likewise.
10752 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10753 (gdbsim_xfer_partial): Likewise.
10754 * remote.c (remote_write_bytes_aux): Likewise. All callers
10756 (remote_write_bytes, remote_read_bytes): Likewise. All
10758 (remote_flash_erase): Likewise. All callers updated.
10759 (remote_write_qxfer): Likewise. All callers updated.
10760 (remote_read_qxfer): Likewise. All callers updated.
10761 (remote_xfer_partial): Likewise.
10762 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10763 (rs6000_xfer_shared_libraries): Likewise.
10764 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10765 (sol_thread_xfer_partial): Likewise.
10766 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10767 (sparc_xfer_partial): Likewise.
10768 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10770 (spu_xfer_partial): Likewise.
10771 * spu-multiarch.c (spu_xfer_partial): Likewise.
10772 * tracepoint.c (tfile_xfer_partial): Likewise.
10773 * windows-nat.c (windows_xfer_memory): Likewise.
10774 (windows_xfer_shared_libraries): Likewise.
10775 (windows_xfer_partial): Likewise.
10776 * valprint.c: Replace 'target_xfer_error' with
10777 'target_xfer_status' in comments.
10779 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10781 Checked in by Joel Brobecker <brobecker@adacore.com>.
10782 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10784 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10786 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10787 function parameters.
10789 2014-02-10 Will Newton <will.newton@linaro.org>
10791 * elfread.c (elf_rel_plt_read): Look for a .got section if
10792 looking up .got.plt fails.
10793 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10794 on address passed to elf_gnu_ifunc_record_cache.
10795 (elf_gnu_ifunc_resolve_addr): Likewise.
10796 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10798 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10800 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10801 (X_RETTURN): New macro.
10802 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10804 * sparc64-tdep.c (sparc64_init_abi): Hook
10805 sparc_in_function_epilogue_p.
10807 2014-02-10 Gary Benson <gbenson@redhat.com>
10809 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10810 Rename name_matcher to symbol_matcher.
10812 2014-02-10 Gary Benson <gbenson@redhat.com>
10814 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10815 Use expand_symtabs_file_matcher_ftype and
10816 expand_symtabs_symbol_matcher_ftype.
10818 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10820 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10821 (struct ada_symbol_cache): New.
10822 (ada_free_symbol_cache): Forward declare.
10823 (struct ada_pspace_data): New.
10824 (ada_pspace_data_handle): New static global.
10825 (get_ada_pspace_data, ada_pspace_data_cleanup)
10826 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10827 (cache_space, cache): Delete, now folded inside struct
10829 (ada_get_symbol_cache): New function.
10830 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10832 (_initialize_ada_language): Remove initialization of cache_space.
10833 Move call to observer_attach_inferior_exit up, grouping it
10834 with the other observer registrations inside this function.
10835 Rename command to be more general. Add call to
10836 register_program_space_data_with_cleanup.
10838 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10840 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10841 ada_new_objfile_observer.
10842 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10843 (_initialize_tasks): Update uses of ada_new_objfile_observer
10844 and ada_tasks_normal_stop_observer.
10846 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10848 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10849 returned by the 'Length attribute to integer.
10851 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10853 * ada-lang.c (_initialize_ada_language): Initialize
10854 cache_space obstack.
10856 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10858 * ada-lang.c (HASH_SIZE): New macro.
10859 (struct cache_entry): New type.
10860 (cache_space, cache): New static globals.
10861 (ada_clear_symbol_cache, find_entry): New functions.
10862 (lookup_cached_symbol, cache_symbol): Implement.
10863 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10864 (_initialize_ada_language): Attach ada_new_objfile_observer
10865 and ada_free_objfile_observer.
10867 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10869 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10870 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10871 struct block * parameter.
10872 (ada_lookup_symbol_list_worker): Constify local variable "block".
10873 Remove cast which is no longer necessary.
10875 2014-02-10 Doug Evans <xdje42@gmail.com>
10877 Add Guile as an extension language.
10878 * NEWS: Mention Guile scripting.
10879 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10880 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10881 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10882 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10883 (CLIBS): Add GUILE_LIBS.
10884 (install-guile): New rule.
10885 (guile.o): New rule.
10886 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10887 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10888 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10889 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10890 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10891 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10892 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10893 * configure.ac: New option --with-guile.
10894 * configure: Regenerate.
10895 * config.in: Regenerate.
10896 * auto-load.c: Remove #include "python/python.h". Add #include
10897 "gdb/section-scripts.h".
10898 (source_section_scripts): Handle Guile scripts.
10899 (_initialize_auto_load): Add name of Guile objfile script to
10900 scripts-directory help text.
10901 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10902 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10903 (struct breakpoint): New member scm_bp_object.
10904 * defs.h (enum command_control_type): New value guile_control.
10905 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10907 (show_user): Update comment.
10908 (_initialize_cli_cmds): Update help text for "show user". Update help
10909 text for max-user-call-depth.
10910 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10912 (multi_line_command_p): Add guile_control.
10913 (print_command_lines): Handle guile_control.
10914 (execute_control_command, recurse_read_control_structure): Ditto.
10915 (process_next_line): Recognize "guile" commands.
10916 * disasm.c (gdb_disassemble_info): Make non-static.
10917 * disasm.h: #include "dis-asm.h".
10918 (struct gdbarch): Add forward decl.
10919 (gdb_disassemble_info): Declare.
10920 * extension.c: #include "guile/guile.h".
10921 (extension_languages): Add guile.
10922 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10923 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10924 * gdbtypes.c (get_unsigned_type_max): New function.
10925 (get_signed_type_minmax): New function.
10926 * gdbtypes.h (get_unsigned_type_max): Declare.
10927 (get_signed_type_minmax): Declare.
10928 * guile/README: New file.
10929 * guile/guile-internal.h: New file.
10930 * guile/guile.c: New file.
10931 * guile/guile.h: New file.
10932 * guile/scm-arch.c: New file.
10933 * guile/scm-auto-load.c: New file.
10934 * guile/scm-block.c: New file.
10935 * guile/scm-breakpoint.c: New file.
10936 * guile/scm-disasm.c: New file.
10937 * guile/scm-exception.c: New file.
10938 * guile/scm-frame.c: New file.
10939 * guile/scm-gsmob.c: New file.
10940 * guile/scm-iterator.c: New file.
10941 * guile/scm-lazy-string.c: New file.
10942 * guile/scm-math.c: New file.
10943 * guile/scm-objfile.c: New file.
10944 * guile/scm-ports.c: New file.
10945 * guile/scm-pretty-print.c: New file.
10946 * guile/scm-safe-call.c: New file.
10947 * guile/scm-string.c: New file.
10948 * guile/scm-symbol.c: New file.
10949 * guile/scm-symtab.c: New file.
10950 * guile/scm-type.c: New file.
10951 * guile/scm-utils.c: New file.
10952 * guile/scm-value.c: New file.
10953 * guile/lib/gdb.scm: New file.
10954 * guile/lib/gdb/boot.scm: New file.
10955 * guile/lib/gdb/experimental.scm: New file.
10956 * guile/lib/gdb/init.scm: New file.
10957 * guile/lib/gdb/iterator.scm: New file.
10958 * guile/lib/gdb/printing.scm: New file.
10959 * guile/lib/gdb/types.scm: New file.
10960 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10961 (VPATH): Add $(GUILE_SRCDIR).
10962 (GUILE_DIR): New variable.
10963 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10964 (all): Add stamp-guile dependency.
10965 (stamp-guile): New rule.
10966 (clean-guile, install-guile, uninstall-guile): New rules.
10967 (install-only): Add install-guile dependency.
10968 (uninstall): Add uninstall-guile dependency.
10969 (clean): Add clean-guile dependency.
10971 2014-02-09 Doug Evans <xdje42@gmail.com>
10973 Revert this patch (which I approved, mea culpa).
10975 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10977 * Makefile.in (all-lib): Remove.
10978 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10980 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10982 Fix Python stack corruption.
10983 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10986 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10988 * Makefile.in (all-lib): Remove.
10989 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10991 2014-02-07 Doug Evans <dje@google.com>
10993 * extension-priv.h (extension_language_script_ops): Add comment.
10994 (extension_language_ops): Add comment.
10995 (active_ext_lang_state): Fix typo in comment.
10997 2014-02-07 Pedro Alves <palves@redhat.com>
10999 PR breakpoints/16292
11000 * infrun.c (handle_signal_stop) <signal arrives while stepping
11001 over a breakpoint>: Switch back to the stepping thread.
11003 2014-02-07 Yao Qi <yao@codesourcery.com>
11005 * target.c (target_xfer_partial): Return zero if LEN is zero.
11007 2014-02-07 Yao Qi <yao@codesourcery.com>
11009 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
11010 (ld_so_xfer_auxv): Likewise.
11011 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11012 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11013 * corelow.c (core_xfer_partial): Likewise.
11014 * ctf.c (ctf_xfer_partial): Likewise.
11015 * darwin-nat.c (darwin_read_dyld_info): Likewise.
11016 (darwin_xfer_partial): Likewise.
11017 * exec.c (exec_xfer_partial): Likewise.
11018 * gnu-nat.c (gnu_xfer_partial): Likewise.
11019 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
11020 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
11021 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
11022 * linux-nat.c (linux_xfer_siginfo): Likewise.
11023 (linux_proc_xfer_spu): Likewise.
11024 * procfs.c (procfs_xfer_partial): Likewise.
11025 * record-full.c (record_full_xfer_partial): Likewise.
11026 (record_full_core_xfer_partial): Likewise.
11027 * remote-sim.c (gdbsim_xfer_partial): Likewise.
11028 * remote.c (remote_write_qxfer): Likewise.
11029 (remote_write_qxfer, remote_read_qxfer): Likewise.
11030 (remote_xfer_partial): Likewise.
11031 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11032 (rs6000_xfer_shared_libraries): Likewise.
11033 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11034 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11035 (spu_xfer_partial): Likewise.
11036 * target.c (memory_xfer_partial_1): Likewise.
11037 * tracepoint.c (tfile_xfer_partial): Likewise.
11038 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
11039 (windows_xfer_partial): Likewise.
11041 2014-02-07 Yao Qi <yao@codesourcery.com>
11043 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
11045 (core_xfer_shared_libraries_aix): Likewise.
11046 * gdbarch.c, gdbarch.h: Regenerated.
11047 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
11048 ULONGEST. Change 'len_avail' type to ULONGEST.
11049 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11050 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11052 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
11054 2014-02-07 Yao Qi <yao@codesourcery.com>
11056 * corefile.c (memory_error): Get 'exception' from ERR and pass
11057 'exception' to throw_error.
11059 2014-02-06 Doug Evans <xdje42@gmail.com>
11061 * configure.ac (libpython checking): Remove all but python.o from
11062 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
11063 * configure: Regenerate.
11065 * Makefile.in (SFILES): Add extension.c.
11066 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
11067 (COMMON_OBS): Add extension.o.
11068 * extension.h: New file.
11069 * extension-priv.h: New file.
11070 * extension.c: New file.
11072 * python/python-internal.h: #include "extension.h".
11073 (gdbpy_auto_load_enabled): Declare.
11074 (gdbpy_apply_val_pretty_printer): Declare.
11075 (gdbpy_apply_frame_filter): Declare.
11076 (gdbpy_preserve_values): Declare.
11077 (gdbpy_breakpoint_cond_says_stop): Declare.
11078 (gdbpy_breakpoint_has_cond): Declare.
11079 (void source_python_script_for_objfile): Delete.
11080 * python/python.c: #include "extension-priv.h".
11081 Delete inclusion of "observer.h".
11082 (extension_language_python): Moved here and renamed from
11083 script_language_python in py-auto-load.c.
11084 Redefined to be of type extension_language_defn.
11085 (python_extension_script_ops): New global.
11086 (python_extension_ops): New global.
11087 (struct python_env): New member previous_active.
11088 (restore_python_env): Call restore_active_ext_lang.
11089 (ensure_python_env): Call set_active_ext_lang.
11090 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
11092 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
11094 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
11096 (gdbpy_eval_from_control_command): Renamed from
11097 eval_python_from_control_command, made static. New arg extlang.
11098 (gdbpy_source_script) Renamed from source_python_script, made static.
11100 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
11101 result to int. New arg extlang.
11102 (gdbpy_source_objfile_script): Renamed from
11103 source_python_script_for_objfile, made static. New arg extlang.
11104 (gdbpy_start_type_printers): Renamed from start_type_printers, made
11105 static. New args extlang, extlang_printers. Change result type to
11107 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
11108 static. New arg extlang. Rename arg printers to extlang_printers
11109 and change type to ext_lang_type_printers *.
11110 (gdbpy_free_type_printers): Renamed from free_type_printers, made
11111 static. Replace argument arg with extlang, extlang_printers.
11112 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
11113 (!HAVE_PYTHON, source_python_script): Delete.
11114 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
11115 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
11116 (!HAVE_PYTHON, start_type_printers): Delete.
11117 (!HAVE_PYTHON, apply_type_printers): Delete.
11118 (!HAVE_PYTHON, free_type_printers): Delete.
11119 (_initialize_python): Delete call to observer_attach_before_prompt.
11120 (finalize_python): Set/restore active extension language.
11121 (gdbpy_finish_initialization) Renamed from
11122 finish_python_initialization, made static. New arg extlang.
11123 (gdbpy_initialized): New function.
11124 * python/python.h: #include "extension.h". Delete #include
11125 "value.h", "mi/mi-cmds.h".
11126 (extension_language_python): Declare.
11127 (GDBPY_AUTO_FILE_NAME): Delete.
11128 (enum py_bt_status): Moved to extension.h and renamed to
11129 ext_lang_bt_status.
11130 (enum frame_filter_flags): Moved to extension.h.
11131 (enum py_frame_args): Moved to extension.h and renamed to
11132 ext_lang_frame_args.
11133 (finish_python_initialization): Delete.
11134 (eval_python_from_control_command): Delete.
11135 (source_python_script): Delete.
11136 (apply_val_pretty_printer): Delete.
11137 (apply_frame_filter): Delete.
11138 (preserve_python_values): Delete.
11139 (gdbpy_script_language_defn): Delete.
11140 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
11141 (start_type_printers, apply_type_printers, free_type_printers): Delete.
11143 * auto-load.c: #include "extension.h".
11144 (GDB_AUTO_FILE_NAME): Delete.
11145 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
11146 (script_language_gdb): Delete, moved to extension.c and renamed to
11147 extension_language_gdb.
11148 (source_gdb_script_for_objfile): Delete.
11149 (auto_load_pspace_info): New member unsupported_script_warning_printed.
11150 (loaded_script): Change type of language member to
11151 struct extension_language_defn *.
11152 (init_loaded_scripts_info): Initialize
11153 unsupported_script_warning_printed.
11154 (maybe_add_script): Make static. Change type of language arg to
11155 struct extension_language_defn *.
11156 (clear_section_scripts): Reset unsupported_script_warning_printed.
11157 (auto_load_objfile_script_1): Rewrite to use extension language API.
11158 (auto_load_objfile_script): Make public. Remove support-compiled-in
11159 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
11160 (source_section_scripts): Rewrite to use extension language API.
11161 (load_auto_scripts_for_objfile): Rewrite to use
11162 auto_load_scripts_for_objfile.
11163 (collect_matching_scripts_data): Change type of language member to
11164 struct extension_language_defn *.
11165 (auto_load_info_scripts): Change type of language arg to
11166 struct extension_language_defn *.
11167 (unsupported_script_warning_print): New function.
11168 (script_not_found_warning_print): Make static.
11169 (_initialize_auto_load): Rewrite construction of scripts-directory
11171 * auto-load.h (struct objfile): Add forward decl.
11172 (struct script_language): Delete.
11173 (struct auto_load_pspace_info): Add forward decl.
11174 (struct extension_language_defn): Add forward decl.
11175 (maybe_add_script): Delete.
11176 (auto_load_objfile_script): Declare.
11177 (script_not_found_warning_print): Delete.
11178 (auto_load_info_scripts): Update prototype.
11179 (auto_load_gdb_scripts_enabled): Declare.
11180 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
11181 auto_load_python_scripts_enabled and made public.
11182 (script_language_python): Delete, moved to python.c.
11183 (gdbpy_script_language_defn): Delete.
11184 (info_auto_load_python_scripts): Update to use
11185 extension_language_python.
11187 * breakpoint.c (condition_command): Replace call to
11188 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
11189 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
11190 with call to breakpoint_ext_lang_cond_says_stop.
11191 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
11192 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
11193 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
11194 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
11196 (local_setattro): Print name of extension language with existing
11199 * valprint.c (val_print, value_print): Update to call
11200 apply_ext_lang_val_pretty_printer.
11201 * cp-valprint.c (cp_print_value): Update call to
11202 apply_ext_lang_val_pretty_printer.
11203 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
11204 (gdbpy_apply_val_pretty_printer): Renamed from
11205 apply_val_pretty_printer. New arg extlang.
11206 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
11208 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
11209 extension language API.
11210 * cli/cli-script.c (execute_control_command): Update to call
11211 eval_ext_lang_from_control_command.
11213 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
11214 enum ext_lang_bt_status values. Update call to
11215 apply_ext_lang_frame_filter.
11216 (mi_cmd_stack_list_locals): Ditto.
11217 (mi_cmd_stack_list_args): Ditto.
11218 (mi_cmd_stack_list_variables): Ditto.
11219 * mi/mi-main.c: Delete #include "python/python-internal.h".
11220 Add #include "extension.h".
11221 (mi_cmd_list_features): Replace reference to python internal variable
11222 gdb_python_initialized with call to ext_lang_initialized_p.
11224 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
11225 Update to use enum ext_lang_frame_args. Update to call
11226 apply_ext_lang_frame_filter.
11227 * python/py-framefilter.c (extract_sym): Update to use enum
11228 ext_lang_bt_status.
11229 (extract_value, py_print_type, py_print_value): Ditto.
11230 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
11231 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
11232 (py_print_frame): Ditto.
11233 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
11234 New arg extlang. Update to use enum ext_lang_bt_status.
11236 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
11237 finish_python_initialization. Replace with call to
11238 finish_ext_lang_initialization.
11240 * typeprint.c (do_free_global_table): Update to call
11241 free_ext_lang_type_printers.
11242 (create_global_typedef_table): Update to call
11243 start_ext_lang_type_printers.
11244 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11245 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11246 (type_print_options): Change type of global_printers from "void *"
11247 to "struct ext_lang_type_printers *".
11249 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11250 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11251 (gdbpy_preserve_values): Renamed from preserve_python_values.
11253 (!HAVE_PYTHON, preserve_python_values): Delete.
11255 * utils.c (quit_flag): Delete, moved to extension.c.
11256 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11259 * eval.c: Delete #include "python/python.h".
11260 * main.c: Delete #include "python/python.h".
11262 * defs.h: Update comment.
11264 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11268 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11270 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11273 2014-02-05 Yao Qi <yao@codesourcery.com>
11275 * remote.c (remote_pass_signals): Remove local 'buf' and use
11277 (remote_program_signals): Likewise.
11279 2014-02-05 Yao Qi <yao@codesourcery.com>
11281 * ctf.c: Include "inferior.h" and "gdbthread.h".
11282 (CTF_PID): A new macro.
11283 (ctf_open): Call inferior_appeared and add_thread_silent.
11284 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11285 (ctf_thread_alive): New function.
11286 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11288 2014-02-05 Yao Qi <yao@codesourcery.com>
11292 2013-05-24 Yao Qi <yao@codesourcery.com>
11294 * tracepoint.c (TFILE_PID): Remove.
11295 (tfile_open): Don't add thread and inferior.
11296 (tfile_close): Don't set 'inferior_ptid'. Don't call
11297 exit_inferior_silent.
11298 (tfile_thread_alive): Remove.
11299 (init_tfile_ops): Don't set field 'to_thread_alive' of
11302 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11304 * remote.c (remote_start_remote): Call remote_check_symbols even
11305 if only symbol-file (not file) has been given.
11307 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11309 * gdbarch.sh (skip_entrypoint): New callback.
11310 * gdbarch.c, gdbarch.h: Regenerate.
11311 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11312 * infrun.c (fill_in_stop_func): Likewise.
11313 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11314 (ppc_elfv2_elf_make_msymbol_special): New function.
11315 (ppc_elfv2_skip_entrypoint): Likewise.
11316 (ppc_linux_init_abi): Install them for ELFv2.
11318 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11320 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11321 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11322 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11323 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11324 structures returned in GPRs.
11326 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11328 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11329 offset to the stack parameter list for the ELFv2 ABI.
11331 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11333 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11334 set_gdbarch_convert_from_func_ptr_addr and
11335 set_gdbarch_elf_make_msymbol_special for ELFv1.
11336 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11337 function descriptors on ELFv1.
11338 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11339 set up r12 at function entry.
11341 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11343 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11344 (struct gdbarch_tdep): New member elf_abi.
11346 * rs6000-tdep.c: Include "elf/ppc64.h".
11347 (rs6000_gdbarch_init): Detect ELF ABI version.
11349 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11351 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11352 within a register pair holding a DFP 128-bit value on little-endian.
11353 (ppc64_sysv_abi_return_value_base): Likewise.
11354 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11355 (dfp_pseudo_register_write): Likewise.
11357 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11359 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11360 offset on little-endian when passing _Decimal32.
11361 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11363 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11365 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11366 of the overlapped FP register within the VSX register on little-
11368 (efpr_pseudo_register_write): Likewise.
11370 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11372 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11373 offset on little-endian when passing small structures.
11375 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11377 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11378 (struct ppc64_sysv_argpos): New data structure.
11379 (ppc64_sysv_abi_push_float): Remove.
11380 (ppc64_sysv_abi_push_val): New function.
11381 (ppc64_sysv_abi_push_integer): Likewise.
11382 (ppc64_sysv_abi_push_freg): Likewise.
11383 (ppc64_sysv_abi_push_vreg): Likewise.
11384 (ppc64_sysv_abi_push_param): Likewise.
11385 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11386 (ppc64_sysv_abi_return_value_base): New function.
11387 (ppc64_sysv_abi_return_value): Refactor to use it.
11389 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
11391 * NEWS: Document new target powerpc64le-*-linux*.
11393 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11395 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11396 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11398 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11399 register set used in ELF core dumps. Add floating-point register set.
11401 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11403 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11404 dwarf2_to_gdb[] table using symbolic constants. Adjust
11405 penultimate entry from number representing the PC register
11406 to symbolic constant representing the MDR register. Add
11407 constant for the PC register to the end of the table.
11409 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11411 * bsd-kvm.c: Include <sys/param.h>
11413 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11415 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11417 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11419 * ada-lang.h (clear_ada_sym_cache): Delete.
11421 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
11423 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11425 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11427 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11428 the sigreturn register save area only if the syscall is
11431 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11433 * valops.c (value_slice): Minor reformatting.
11435 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
11437 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11439 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11441 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11442 New static globals.
11443 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11444 (ada_ignore_descriptive_types_p): New static global.
11445 (find_parallel_type_by_descriptive_type): Return immediately
11446 if ada_ignore_descriptive_types_p is set.
11447 (_initialize_ada_language): Register new commands "maintenance
11448 set ada", "maintenance show ada", "maintenance set ada
11449 ignore-descriptive-types" and "maintenance show ada
11450 ignore-descriptive-types".
11451 * NEWS: Add entry for new "maint ada set/show
11452 ignore-descriptive-types" commands.
11454 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11456 * record-btrace.c (record_btrace_close): Call btrace_teardown
11459 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11461 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11464 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11466 * ada-typeprint (type_is_full_subrange_of_target_type):
11468 (print_range): Add parameter bounds_prefered_p. If not set,
11469 try printing range types using the name of their base type.
11470 (print_range_type): Add parameter bounds_prefered_p.
11471 Use it in call to print_range.
11472 (print_array_type, ada_print_type): Update calls to print_range
11473 and print_range_type.
11475 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11477 * ada-typeprint.c (print_array_type, print_choices, print_range)
11478 (print_range_bound, print_dynamic_range_bound, print_range_type):
11479 Remove declaration.
11481 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11483 * ada-typeprint.c (print_range): Add missing empty line
11484 after local declaration.
11486 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11488 * ada-valprint.c (print_optional_low_bound): Get index_type's
11489 target type for as long as it is a TYPE_CODE_RANGE.
11491 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11493 * procfs.c (procfs_make_note_section): Remove assertion and
11494 associated comment.
11496 2014-01-24 Yao Qi <yao@codesourcery.com>
11498 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11499 * corelow.c (get_core_siginfo): Likewise.
11501 2014-01-24 Yao Qi <yao@codesourcery.com>
11503 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11504 ULONGEST. Don't check 'len' is negative.
11505 (remote_write_bytes): Change type of 'len' to ULONGEST.
11507 2014-01-23 Tom Tromey <tromey@redhat.com>
11510 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11511 Handle exception from frame.block.
11512 (FrameVars.fetch_frame_locals): Likewise.
11514 2014-01-23 Tom Tromey <tromey@redhat.com>
11517 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11518 on a NULL pointer. Move "goto error" to correct place.
11520 2014-01-23 Tom Tromey <tromey@redhat.com>
11523 * python/py-framefilter.c (apply_frame_filter): Call
11524 ensure_python_env after computing gdbarch.
11526 2014-01-23 Yao Qi <yao@codesourcery.com>
11528 * target.c (raw_memory_xfer_partial): Change argument type
11529 from void * to gdb_byte *.
11530 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11532 2014-01-22 Doug Evans <dje@google.com>
11534 New gdbserver option --debug-format=timestamp.
11535 * NEWS: Mention it.
11537 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11539 * syscalls/s390x-linux.xml: New file.
11540 * syscalls/s390-linux.xml: New file.
11541 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11542 (XML_SYSCALL_FILENAME_S390X): Likewise.
11543 (op_svc): New enum value for SVC opcode.
11544 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11545 (s390_linux_get_syscall_number): New function.
11546 (s390_gdbarch_init): Register '*get_syscall_number' and the
11547 syscall xml file name.
11548 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11549 "s390-linux.xml" and "s390x-linux.xml".
11550 * NEWS: Announce new feature.
11552 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11554 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11556 2014-01-22 Pedro Alves <palves@redhat.com>
11558 * xtensa-config.c: Include defs.h.
11560 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11562 * common/common-utils.h: Add "ARI:" comment beside __func__
11565 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11567 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11568 documentation a bit.
11570 2014-01-21 Roland McGrath <mcgrathr@google.com>
11572 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11573 * configure: Regenerate.
11574 * aclocal.m4: Regenerate.
11575 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11576 New substituted variables.
11577 (install-strip): New target.
11578 (INSTALL_SCRIPT): New substituted variable.
11579 (FLAGS_TO_PASS): Add it.
11580 (install-only): Use $(INSTALL_SCRIPT) rather than
11581 $(INSTALL_PROGRAM) for gcore.
11583 2014-01-20 Tom Tromey <tromey@redhat.com>
11585 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11588 2014-01-20 Tom Tromey <tromey@redhat.com>
11590 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11591 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11592 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11593 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11594 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11595 (struct cmd_list_element) <flags>: Remove.
11596 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11597 doc_allocated>: New fields.
11598 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11600 * maint.c (maintenance_do_deprecate): Update.
11601 * top.c (execute_command): Update.
11603 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11605 * xtensa-linux-nat.c: Include asm/ptrace.h.
11607 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11609 * Makefile.in (SFILES): Add d-support.c.
11610 (COMMON_OBS): Add d-support.o.
11611 * d-lang.h (d_parse_symbol): Add comment, now defined in
11613 * d-lang.c (parse_call_convention)
11614 (parse_attributes, parse_function_types)
11615 (parse_function_args, parse_type, parse_identifier)
11616 (call_convention_p, d_parse_symbol): Move functions to ...
11617 * d-support.c: ... New file.
11619 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11621 * d-lang.h (d_parse_symbol): Add declaration.
11622 * d-lang.c (extract_identifiers)
11623 (extract_type_info): Remove functions.
11624 (parse_call_convention, parse_attributes)
11625 (parse_function_types, parse_function_args)
11626 (parse_type, parse_identifier, call_convention_p)
11627 (d_parse_symbol): New functions.
11628 (d_demangle): Use d_parse_symbol to demangle D symbols.
11630 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11632 * d-lang.h (struct builtin_d_type): New data type.
11633 (builtin_d_type): Add declaration.
11634 * d-lang.c (d_language_arch_info, build_d_types)
11635 (builtin_d_type): New functions.
11636 (enum d_primitive_types): New data type.
11637 (d_language_defn): Change c_language_arch_info to
11638 d_language_arch_info.
11639 (d_type_data): New static variable.
11640 (_initialize_d_language): Initialize d_type_data.
11642 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11644 * d-lang.h (d_main_name): Add declaration.
11645 * d-lang.c (d_main_name): New function.
11646 * symtab.c (find_main_name): Add call to d_main_name.
11648 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11650 * d-lang.c (d_language_defn): Change macro_expansion_c to
11651 macro_expansion_no.
11653 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11655 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11657 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11659 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11660 gdb_exception" declaration.
11661 * remote.c (getpkt_or_notif_sane): Likewise.
11663 2014-01-17 Doug Evans <dje@google.com>
11665 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11666 function, contents of dirnames_to_char_ptr_vec_append moved here.
11667 (delim_string_to_char_ptr_vec): New function.
11668 (dirnames_to_char_ptr_vec_append): Rewrite.
11669 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11671 2014-01-17 Doug Evans <dje@google.com>
11673 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11675 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11676 #include "common-utils.h".
11677 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11678 * common/vec.h (VEC_ASSERT_PASS): Update.
11679 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11680 (MACH_CHECK_ERROR): Update.
11682 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11684 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11686 * gdbarch.h: Regenerate.
11688 2014-01-16 Tom Tromey <tromey@redhat.com>
11690 * value.c (struct value) <regnum>: Move earlier.
11692 2014-01-16 Tom Tromey <tromey@redhat.com>
11694 * remote.c (extended_remote_create_inferior): Rename from
11695 extended_remote_create_inferior_1. Add "ops" argument. Remove
11696 old implementation.
11698 2014-01-16 Pedro Alves <palves@redhat.com>
11700 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11701 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11704 2014-01-16 Doug Evans <dje@google.com>
11706 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11708 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11710 * btrace.h (btrace_thread_flag): New.
11711 (struct btrace_thread_info) <flags>: New.
11712 * record-btrace.c (record_btrace_resume_thread)
11713 (record_btrace_find_thread_to_move, btrace_step_no_history)
11714 (btrace_step_stopped, record_btrace_start_replaying)
11715 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11716 (record_btrace_find_resume_thread): New.
11717 (record_btrace_resume, record_btrace_wait): Extend.
11718 (record_btrace_can_execute_reverse): New.
11719 (record_btrace_open): Fail in non-stop mode.
11720 (record_btrace_set_replay): Split into this, ...
11721 (record_btrace_stop_replaying): ... this, ...
11722 (record_btrace_clear_histories): ... and this.
11723 (init_record_btrace_ops): Init to_can_execute_reverse.
11724 * NEWS: Announce it.
11726 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11728 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11729 (forward_target_decr_pc_after_break)
11730 (target_decr_pc_after_break): New.
11731 * target.c (forward_target_decr_pc_after_break)
11732 (target_decr_pc_after_break): New.
11733 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11734 instead of gdbarch_decr_pc_after_break.
11735 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11736 instead of gdbarch_decr_pc_after_break.
11737 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11738 instead of gdbarch_decr_pc_after_break.
11739 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11740 instead of gdbarch_decr_pc_after_break.
11741 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11742 instead of gdbarch_decr_pc_after_break.
11743 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11744 instead of gdbarch_decr_pc_after_break.
11746 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11748 * btrace.c: Include regcache.h.
11749 (btrace_add_pc): New.
11750 (btrace_enable): Call btrace_add_pc.
11751 (btrace_is_empty): New.
11752 * btrace.h (btrace_is_empty): New.
11753 * record-btrace.c (require_btrace, record_btrace_info): Call
11756 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11758 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11759 Support delta reads.
11760 (linux_disable_btrace): Change return type.
11761 * common/linux-btrace.h (linux_read_btrace): Change parameters
11762 and return type to allow error reporting. Update users.
11763 (linux_disable_btrace): Change return type. Update users.
11764 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11766 (btrace_error): New.
11767 (btrace_block) <begin>: Comment on BEGIN == 0.
11768 * btrace.c (btrace_compute_ftrace): Start from the end of
11770 (btrace_stitch_trace, btrace_clear_history): New.
11771 (btrace_fetch): Read delta trace, return if replaying.
11772 (btrace_clear): Move clear history code to btrace_clear_history.
11773 (parse_xml_btrace): Throw an error if parsing failed.
11774 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11775 and return type to allow error reporting.
11776 (target_read_btrace): Change parameters and return type to allow
11778 * target.c (target_read_btrace): Update.
11779 * remote.c (remote_read_btrace): Support delta reads. Pass
11781 * NEWS: Announce it.
11783 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11785 * record.h (record_btrace_frame_unwind)
11786 (record_btrace_tailcall_frame_unwind): New declarations.
11787 * dwarf2-frame: Include record.h
11788 (dwarf2_frame_cfa): Throw an error for btrace frames.
11789 * record-btrace.c: Include hashtab.h.
11790 (btrace_get_bfun_name): New.
11791 (btrace_call_history): Call btrace_get_bfun_name.
11792 (struct btrace_frame_cache): New.
11794 (bfcache_hash, bfcache_eq, bfcache_new): New.
11795 (btrace_get_frame_function): New.
11796 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11797 (record_btrace_frame_this_id): Compute own id.
11798 (record_btrace_frame_prev_register): Provide PC, throw_error
11799 for all other registers.
11800 (record_btrace_frame_sniffer): Detect btrace frames.
11801 (record_btrace_tailcall_frame_sniffer): New.
11802 (record_btrace_frame_dealloc_cache): New.
11803 (record_btrace_frame_unwind): Add new functions.
11804 (record_btrace_tailcall_frame_unwind): New.
11805 (_initialize_record_btrace): Allocate cache.
11806 * btrace.c (btrace_clear): Call reinit_frame_cache.
11807 * NEWS: Announce it.
11809 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11811 * record-btrace.c (record_btrace_set_replay)
11812 (record_btrace_goto_begin, record_btrace_goto_end)
11813 (record_btrace_goto): New.
11814 (init_record_btrace_ops): Initialize them.
11815 * NEWS: Announce it.
11817 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11819 * record-btrace.c (record_btrace_find_new_threads)
11820 (record_btrace_thread_alive): New.
11821 (init_record_btrace_ops): Initialize to_find_new_threads and
11824 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11826 * record-btrace.c (record_btrace_resume): New.
11827 (record_btrace_wait): New.
11828 (init_record_btrace_ops): Initialize to_wait and to_resume.
11830 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11832 * record-btrace.c (record_btrace_xfer_partial)
11833 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11834 (record_btrace_allow_memory_access): New.
11835 (init_record_btrace_ops): Initialize new methods.
11836 * target.c (raw_memory_xfer_partial): Bail out if target reports
11837 that this memory is not available.
11839 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11841 * target.h (target_ops) <to_insert_breakpoint>
11842 <to_remove_breakpoint>: Add target_ops parameter.
11843 (forward_target_insert_breakpoint): New.
11844 (forward_target_remove_breakpoint): New.
11845 (memory_remove_breakpoint, memory_insert_breakpoint):
11846 Add target_ops parameter.
11847 * target.c (target_insert_breakpoint): Split into this and ...
11848 (forward_target_insert_breakpoint): ... this.
11849 (target_remove_breakpoint): Split into this and ...
11850 (forward_target_remove_breakpoint): ... this.
11851 (debug_to_insert_breakpoint): Add target_ops parameter.
11852 Call forward_target_insert_breakpoint.
11853 (debug_to_remove_breakpoint): Add target_ops parameter.
11854 Call forward_target_remove_breakpoint.
11855 (update_current_target): Do not inherit or default to_insert_breakpoint
11856 and to_remove_breakpoint.
11857 * corelow.c (ignore): Add target_ops parameter.
11858 * exec.c (ignore): Add target_ops parameter.
11859 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11860 Add target_ops parameter.
11861 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11862 Add target_ops parameter.
11863 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11864 Add target_ops parameter.
11865 * record-full.c (record_full_beneath_to_insert_breakpoint)
11866 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11867 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11868 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11869 (record_full_core_remove_breakpoint): Add target_ops parameter.
11871 (record_full_beneath_to_insert_breakpoint_ops)
11872 (record_full_beneath_to_remove_breakpoint_ops)
11873 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11874 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11875 tmp_to_remove_breakpoint_ops,
11876 record_full_beneath_to_insert_breakpoint_ops, and
11877 record_full_beneath_to_remove_breakpoint_ops.
11878 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11879 (m32r_remove_breakpoint): Add target_ops parameter.
11880 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11881 Add target_ops parameter.
11882 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11883 Add target_ops parameter.
11885 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11886 Markus Metzger <markus.t.metzger@intel.com>
11888 * record-btrace.c: Include frame-unwind.h.
11889 (record_btrace_frame_unwind_stop_reason)
11890 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11891 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11893 (init_record_btrace_ops): Install it.
11895 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11897 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11900 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11902 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11905 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11907 * frame-unwind.c: Include target.h.
11908 (frame_unwind_try_unwinder): New function with code from ...
11909 (frame_unwind_find_by_frame): ... here. New variable
11910 unwinder_from_target, call also target_get_unwinder)
11911 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11912 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11913 * target.h (struct target_ops): New fields to_get_unwinder and
11914 to_get_tailcall_unwinder.
11915 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11917 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11919 * record-btrace.c (record_btrace_fetch_registers)
11920 (record_btrace_store_registers)
11921 (record_btrace_to_prepare_to_store): New.
11922 (init_record_btrace_ops): Add the above.
11924 2014-01-16 Tom Tromey <tromey@redhat.com>
11926 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11927 * target.h (struct target_ops) <to_prepare_to_store>: Add
11929 (target_prepare_to_store): Add argument.
11930 * target.c (debug_to_prepare_to_store): Add argument.
11931 (update_current_target): Update.
11932 * remote.c (remote_prepare_to_store): Add 'self' argument.
11933 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11934 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11935 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11936 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11938 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11939 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11940 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11941 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11942 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11944 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11946 * btrace.h (replay) <replay>: New.
11947 (btrace_is_replaying): New.
11948 * btrace.c (btrace_clear): Free replay iterator.
11949 (btrace_is_replaying): New.
11950 * record-btrace.c (record_btrace_is_replaying): New.
11951 (record_btrace_info): Print insn number if replaying.
11952 (record_btrace_insn_history): Start at replay position.
11953 (record_btrace_call_history): Start at replay position.
11954 (init_record_btrace_ops): Init to_record_is_replaying.
11956 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11958 * record-btrace.c (record_btrace_insn_history_range): Include
11960 (record_btrace_insn_history_from): Adjust range.
11961 (record_btrace_call_history_range): Include
11963 (record_btrace_call_history_from): Adjust range.
11964 * NEWS: Announce changes.
11966 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11968 * record.h (enum record_print_flag)
11969 <record_print_indent_calls>: New.
11970 * record.c (get_call_history_modifiers): Recognize /c modifier.
11971 (_initialize_record): Document /c modifier.
11972 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11973 Reorder fields. Optionally indent the function name. Update
11975 * NEWS: Announce changes.
11977 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11979 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11981 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11983 * btrace.c (ftrace_new_function): Start counting at one.
11984 * record-btrace.c (record_btrace_info): Adjust number of calls
11986 * NEWS: Announce it.
11988 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11990 * record-btrace.c (btrace_call_history_insn_range): Print
11991 insn range as [begin, end].
11993 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11995 * btrace.h (struct btrace_func_link): New.
11996 (enum btrace_function_flag): New.
11997 (struct btrace_inst): Rename to ...
11998 (struct btrace_insn): ...this. Update all users.
11999 (struct btrace_func) <ibegin, iend>: Remove.
12000 (struct btrace_func_link): New.
12001 (struct btrace_func): Rename to ...
12002 (struct btrace_function): ...this. Update all users.
12003 (struct btrace_function) <segment, flow, up, insn, insn_offset)
12004 (number, level, flags>: New.
12005 (struct btrace_insn_iterator): Rename to ...
12006 (struct btrace_insn_history): ...this.
12008 (struct btrace_insn_iterator, btrace_call_iterator): New.
12009 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
12010 (struct btrace_target_info) <begin, end, level>
12011 <insn_history, call_history>: New.
12012 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12013 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12014 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12015 (btrace_call_number, btrace_call_begin, btrace_call_end)
12016 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12017 (btrace_find_function_by_number, btrace_set_insn_history)
12018 (btrace_set_call_history): New.
12019 * btrace.c (btrace_init_insn_iterator)
12020 (btrace_init_func_iterator, compute_itrace): Remove.
12021 (ftrace_print_function_name, ftrace_print_filename)
12022 (ftrace_skip_file): Change
12023 parameter to const.
12024 (ftrace_init_func): Remove.
12025 (ftrace_debug): Use new btrace_function fields.
12026 (ftrace_function_switched): Also consider gaining and
12027 losing symbol information).
12028 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
12029 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
12030 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
12032 (ftrace_new_function): Move. Remove debug print.
12033 (ftrace_update_lines, ftrace_update_insns): New.
12034 (ftrace_update_function): Check for call, ret, and jump.
12035 (compute_ftrace): Renamed to ...
12036 (btrace_compute_ftrace): ...this. Rewritten to compute call
12038 (btrace_fetch, btrace_clear): Updated.
12039 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
12040 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
12041 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
12042 (btrace_call_number, btrace_call_begin, btrace_call_end)
12043 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
12044 (btrace_find_function_by_number, btrace_set_insn_history)
12045 (btrace_set_call_history): New.
12046 * record-btrace.c (require_btrace): Use new btrace thread
12048 (record_btrace_info, btrace_insn_history)
12049 (record_btrace_insn_history, record_btrace_insn_history_range):
12050 Use new btrace thread info fields and new iterator.
12051 (btrace_func_history_src_line): Rename to ...
12052 (btrace_call_history_src_line): ...this. Use new btrace
12053 thread info fields.
12054 (btrace_func_history): Rename to ...
12055 (btrace_call_history): ...this. Use new btrace thread info
12056 fields and new iterator.
12057 (record_btrace_call_history, record_btrace_call_history_range):
12058 Use new btrace thread info fields and new iterator.
12060 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12062 * frame.h (frame_id_build_unavailable_stack_special): New.
12063 * frame.c (frame_id_build_unavailable_stack_special): New.
12065 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12067 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
12068 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
12069 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
12071 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
12072 (i386_insn_is_jump, i386_jmp_p): New.
12073 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
12074 insn_is_jump to gdbarch.
12075 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
12076 * gdbarch.h: Regenerated.
12077 * gdbarch.c: Regenerated.
12078 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
12079 (default_insn_is_jump): New.
12080 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
12081 (default_insn_is_jump): New.
12083 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12085 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
12087 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
12088 (btrace_read_type) <btrace_read_new>: Change to ...
12089 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
12091 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
12093 * common/linux-btrace.c (linux_read_btrace): Free trace from
12094 previous iteration.
12096 2014-01-15 Doug Evans <dje@google.com>
12098 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
12101 2014-01-15 Tom Tromey <tromey@redhat.com>
12103 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
12104 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
12105 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
12106 (set_objfile_main_name): New function.
12107 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
12108 language_of_main>: New fields.
12109 (set_objfile_main_name): Declare.
12110 * symtab.c (find_main_name): Loop over objfiles to find the main
12112 (set_main_name): Now static.
12113 (get_main_info): Add comment.
12114 * symtab.h (set_main_name): Don't declare.
12116 2014-01-15 Tom Tromey <tromey@redhat.com>
12118 * symtab.c (main_progspace_key): New global.
12119 (struct main_info): New.
12120 (name_of_main, language_of_main): Remove.
12121 (get_main_info, main_info_cleanup): New function.
12122 (set_main_name, main_name, main_language): Use get_main_info.
12123 (_initialize_symtab): Initialize main_progspace_key.
12125 2014-01-15 Tom Tromey <tromey@redhat.com>
12127 * dbxread.c (process_one_symbol): Update.
12128 * dwarf2read.c (read_partial_die): Update.
12129 * symfile.c (set_initial_language): Call main_language.
12130 * symtab.c (language_of_main): Now static.
12131 (set_main_name): Add 'lang' parameter.
12132 (find_main_name): Update.
12133 (main_language): New function.
12134 (symtab_observer_executable_changed): Update.
12135 * symtab.h (set_main_name): Update.
12136 (language_of_main): Remove.
12137 (main_language): Declare.
12139 2014-01-15 Tom Tromey <tromey@redhat.com>
12141 * symfile.c (init_entry_point_info): Use new "initialized" field.
12143 * objfiles.h (struct entry_point) <initialized>: New field.
12144 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
12145 (struct objfile) <ei>: ...here. Remove.
12146 * objfiles.c (entry_point_address_query): Update.
12148 2014-01-15 Tom Tromey <tromey@redhat.com>
12150 * objfiles.c (entry_point_address_query): Relocate entry point
12152 (objfile_relocate1): Do not relocate entry point address.
12153 * objfiles.h (struct entry_info) <entry_point>: Update comment.
12154 <the_bfd_section_index>: New field.
12155 * symfile.c (init_entry_point_info): Find the entry point's
12158 2014-01-15 Tom Tromey <tromey@redhat.com>
12160 * solib-frv.c (enable_break): Use entry_point_address_query.
12162 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12164 * NEWS: Add note on improved process record-replay on
12165 arm*-linux* targets.
12167 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12169 * arm-tdep.c (enum arm_record_result): New enum.
12170 (arm_record_unsupported_insn): New function.
12171 (arm_record_coproc_data_proc): Removed.
12172 (thumb2_record_ld_st_multiple): New function.
12173 (thumb2_record_ld_st_dual_ex_tbb): New function.
12174 (thumb2_record_data_proc_sreg_mimm): New function.
12175 (thumb2_record_ps_dest_generic): New function.
12176 (thumb2_record_branch_misc_cntrl): New function.
12177 (thumb2_record_str_single_data): New function.
12178 (thumb2_record_ld_mem_hints): New function.
12179 (thumb2_record_ld_word): New function.
12180 (thumb2_record_lmul_lmla_div): New function.
12181 (thumb2_record_decode_insn_handler): New function.
12182 (decode_insn): Add thumb32 instruction handlers.
12184 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12186 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
12187 (struct arm_linux_record_tdep): Declare.
12188 (arm_canonicalize_syscall): New function.
12189 (arm_all_but_pc_registers_record): New function.
12190 (arm_linux_syscall_record): New function.
12191 (arm_linux_init_abi): Add syscall recording constructs.
12192 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
12193 decoding. (arm_record_coproc_data_proc): Update arm syscall
12195 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
12196 <arm_syscall_record>: New field.
12197 * configure.tgt (arm*-*-linux*): Add linux-record.o to
12200 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12202 * arm-tdep.c (thumb_record_misc): Update to use sp as base
12203 register for push instruction recording.
12205 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12207 * arm-tdep.c (thumb_record_misc): Update to correct logical
12208 error while recording ldm, ldmia and pop instructions.
12210 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
12212 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
12214 2014-01-15 Pedro Alves <palves@redhat.com>
12216 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
12217 (go32_resume, go32_fetch_registers, store_register)
12218 (go32_store_registers, go32_prepare_to_store)
12219 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
12220 (go32_create_inferior, go32_can_run, go32_terminal_init)
12221 (go32_terminal_inferior, go32_terminal_ours): Delete forward
12224 2014-01-15 Tom Tromey <tromey@redhat.com>
12226 * target.h (async_callback_ftype): New typedef.
12227 (struct target_ops) <to_async>: Use it.
12229 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12231 * python/py-value.c (get_field_type): Remove unnecessary curly
12232 braces for single-statement if block.
12234 2014-01-15 Joel Brobecker <brobecker@adacore.com>
12236 * python/py-type.c (convert_field): Add missing empty line
12237 after declarations.
12239 2014-01-14 Doug Evans <dje@google.com>
12241 * symfile.h (expand_symtabs_matching): Renamed from
12242 expand_partial_symbol_names. Update prototype.
12243 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12244 * symfile.c (expand_symtabs_matching): Renamed from
12245 expand_partial_symbol_names. New args file_matcher, kind.
12246 Rename arg fun to symbol_matcher.
12247 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12248 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12249 ada_expand_partial_symbol_name.
12250 (ada_make_symbol_completion_list): Update to call
12251 expand_symtabs_matching.
12252 (ada_add_global_exceptions): Call expand_symtabs_matching.
12253 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12254 call map_symbol_filenames.
12255 * symtab.c (sources_info): Update to call map_symbol_filenames.
12256 (search_symbols): Call expand_symtabs_matching.
12257 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12258 (default_make_symbol_completion_list_break_on): Update to call
12259 expand_symtabs_matching.
12260 (make_source_files_completion_list): Update to call
12261 map_symbol_filenames.
12263 2014-01-14 Doug Evans <dje@google.com>
12265 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12266 (expand_symtabs_symbol_matcher_ftype): New typedef.
12267 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12268 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12269 * symfile.c (expand_partial_symbol_names): Update to use
12270 expand_symtabs_symbol_matcher_ftype.
12271 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12272 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12273 Arg name_matcher renamed to symbol_matcher.
12274 * psymtab.c (recursively_search_psymtabs): Update to use
12275 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12277 (expand_symtabs_matching_via_partial): Update to use
12278 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12279 Arg name_matcher renamed to symbol_matcher.
12281 2014-01-14 Doug Evans <dje@google.com>
12283 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12284 (map_partial_symbol_filenames): Ditto.
12285 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12286 (map_partial_symbol_filenames): Ditto.
12287 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12288 (map_partial_symbol_filenames): Ditto.
12289 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12290 (map_partial_symbol_filenames): Ditto.
12291 * symtab.c: Delete #include "psymtab.h".
12293 2014-01-14 Pedro Alves <palves@redhat.com>
12294 Tom Tromey <tromey@redhat.com>
12296 * infrun.c (use_displaced_stepping): Use find_record_target
12297 instead of RECORD_IS_USED.
12298 (adjust_pc_after_break): Use record_full_is_used instead of
12300 * record-btrace.c (record_btrace_open): Call record_preopen
12301 instead of checking RECORD_IS_USED.
12302 * record-full.c (record_full_shortname)
12303 (record_full_core_shortname): New globals.
12304 (record_full_is_used): New function.
12305 (find_full_open): Call record_preopen instead of checking
12307 (init_record_full_ops): Set the target's shortname to
12308 record_full_shortname.
12309 (init_record_full_core_ops): Set the target's shortname to
12310 record_full_core_shortname.
12311 * record-full.h (record_full_is_used): Declare.
12312 * record.c (find_record_target): Make extern.
12313 (record_preopen): New function.
12314 * record.h (RECORD_IS_USED): Delete macro.
12315 (find_record_target, record_preopen): Declare functions.
12317 2014-01-14 Yao Qi <yao@codesourcery.com>
12319 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12320 'len''s type to ULONGEST.
12321 (core_xfer_shared_libraries_aix): Likewise.
12322 * gdbarch.c, gdbarch.h: Regenerated.
12323 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12324 Change type of 'len' to ULONGEST.
12325 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12326 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12328 2014-01-14 Yao Qi <yao@codesourcery.com>
12330 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12331 type of 'len' to ULONGEST.
12332 (linux_xfer_osdata_processgroups): Likewise.
12333 (linux_xfer_osdata_threads): Likewise.
12334 (linux_xfer_osdata_fds): Likewise.
12335 (linux_xfer_osdata_isockets): Likewise.
12336 (linux_xfer_osdata_shm): Likewise.
12337 (linux_xfer_osdata_sem): Likewise.
12338 (linux_xfer_osdata_msg): Likewise.
12339 (linux_common_xfer_osdata): Likewise.
12340 (struct osdata_type) <getter>: Likewise.
12341 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12344 2014-01-14 Yao Qi <yao@codesourcery.com>
12346 * target.h (target_xfer_partial_ftype): Update.
12347 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12349 * aix-thread.c (aix_thread_xfer_partial): Change type of
12350 argument 'len' to ULONGEST.
12351 * auxv.c (procfs_xfer_auxv): Likewise.
12352 (ld_so_xfer_auxv): Likewise.
12353 (memory_xfer_auxv): Likewise.
12354 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12355 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12356 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12357 * corelow.c (core_xfer_partial): Likewise.
12358 * ctf.c (ctf_xfer_partial): Likewise.
12359 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12361 (darwin_read_dyld_info): Likewise.
12362 (darwin_xfer_partial): Likewise.
12363 * exec.c (section_table_xfer_memory_partial): Likewise.
12364 (exec_xfer_partial): Likewise.
12365 * exec.h (section_table_xfer_memory_partial): Update
12367 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12368 instead of plongest.
12369 (gnu_xfer_partial): Likewise.
12370 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12371 (ia64_hpux_xfer_solib_got): Likewise.
12372 (ia64_hpux_xfer_partial): Likewise.
12373 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12374 * inf-ptrace.c (inf_ptrace_xfer_partial):
12375 * inf-ttrace.c (inf_ttrace_xfer_partial):
12376 * linux-nat.c (linux_xfer_siginfo): Likewise.
12377 (linux_nat_xfer_partial): Likewise.
12378 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12379 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12380 * monitor.c (monitor_xfer_memory): Likewise.
12381 (monitor_xfer_partial): Likewise.
12382 * procfs.c (procfs_xfer_partial): Likewise.
12383 * record-full.c (record_full_xfer_partial): Likewise.
12384 (record_full_core_xfer_partial): Likewise.
12385 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12386 instead of plongest.
12387 (gdbsim_xfer_partial): Likewise.
12388 * remote.c (remote_xfer_partial): Likewise.
12389 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12390 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12392 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12393 (rs6000_xfer_shared_libraries): Likewise.
12394 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12395 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12396 (sparc_xfer_partial): Likewise.
12397 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12398 (spu_xfer_partial): Likewise.
12399 * spu-multiarch.c (spu_xfer_partial): Likewise.
12400 * target.c (target_read_live_memory): Likewise.
12401 (memory_xfer_live_readonly_partial): Likewise.
12402 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12403 (target_xfer_partial, default_xfer_partial): Likewise.
12404 (current_xfer_partial): Likewise.
12405 * tracepoint.c (tfile_xfer_partial): Likewise.
12406 * windows-nat.c (windows_xfer_memory): Likewise. Call
12407 pulongest instead of plongest.
12408 (windows_xfer_partial): Likewise.
12409 (windows_xfer_shared_libraries): Likewise.
12411 2014-01-14 Yao Qi <yao@codesourcery.com>
12413 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12414 target_xfer_partial_ftype.
12416 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12420 * valops.c (value_struct_elt_bitpos): New function
12421 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12422 object to 'None' if the field name is an empty string ("").
12423 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12424 attribute to look for a field when 'name' is 'None'.
12425 (get_field_type): New function
12427 2014-01-13 Doug Evans <dje@google.com>
12430 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12431 (try_open_dwop_file): Ditto.
12432 * gdb_bfd.c: #include "vec.h".
12433 (bfdp): New typedef.
12434 (struct gdb_bfd_data): New member included_bfds.
12435 (gdb_bfd_unref): Unref all included bfds.
12436 (gdb_bfd_record_inclusion): New function.
12437 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12439 2014-01-13 Tom Tromey <tromey@redhat.com>
12441 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12443 2014-01-13 Tom Tromey <tromey@redhat.com>
12445 * defs.h (use_windows): Remove.
12446 * gdb.c (main): Update.
12447 * main.c (captured_main, gdb_main): Update.
12448 * main.h (struct captured_main_args) <use_windows>: Remove.
12449 * top.c (use_windows): Remove.
12451 2014-01-13 Tom Tromey <tromey@redhat.com>
12453 * defs.h (deprecated_flush_hook): Remove.
12455 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12458 * linux-thread-db.c (try_thread_db_load): Add parameter
12459 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12460 (try_thread_db_load_from_pdir_1): Move it there from here.
12461 (try_thread_db_load_from_sdir): Update caller.
12462 (try_thread_db_load_from_dir): Move it there from here.
12464 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12466 * regformats/regdat.sh: Always rewrite the register file.
12468 2014-01-13 Pedro Alves <palves@redhat.com>
12470 * Makefile.in (CHECK_HEADERS): New variable.
12471 (check-headers:): New rule.
12473 2014-01-13 Tom Tromey <tromey@redhat.com>
12475 * cli/cli-setshow.c (do_set_command): Update.
12476 * defs.h (deprecated_set_hook): Remove.
12477 * top.c (deprecated_set_hook): Remove.
12479 2014-01-13 Pedro Alves <palves@redhat.com>
12481 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12482 the tracepoint if the PC is a pseudo-register.
12484 2014-01-13 Tom Tromey <tromey@redhat.com>
12486 * defs.h (XCALLOC): Remove.
12487 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12488 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12489 * dwarf2loc.c (allocate_piece_closure): Likewise.
12490 * elfread.c (elf_symfile_segments): Likewise.
12491 (elf_symfile_segments): Likewise.
12492 * gdbtypes.c (copy_type_recursive): Likewise.
12493 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12494 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12495 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12497 * mt-tdep.c (mt_gdbarch_init): Likewise.
12498 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12500 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12501 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12502 * registry.c (registry_alloc_data): Likewise.
12503 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12504 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12505 * serial.c (serial_fdopen_ops): Likewise.
12506 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12508 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12509 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12512 2014-01-13 Tom Tromey <tromey@redhat.com>
12514 * defs.h (XMALLOC): Remove.
12515 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12516 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12517 * cli-out.c (struct ui_out *): Likewise.
12518 * cli/cli-dump.c (add_dump_command): Likewise.
12519 (add_dump_command): Likewise.
12520 * complaints.c (get_complaints): Likewise.
12521 (find_complaint): Likewise.
12522 * dwarf2-frame.c (execute_cfa_program): Likewise.
12523 * dwarf2read.c (abbrev_table_read_table): Likewise.
12524 * gdbarch.sh: Likewise.
12525 * gdbarch.c: Rebuild.
12526 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12527 * interps.c (interp_new): Likewise.
12528 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12529 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12530 * mi/mi-console.c (mi_console_file_new): Likewise.
12531 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12532 * mi/mi-out.c (mi_out_new): Likewise.
12533 * mi/mi-parse.c (mi_parse): Likewise.
12534 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12535 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12536 * observer.c (xalloc_observer_list_node): Likewise.
12537 * regcache.c (regcache_xmalloc_1): Likewise.
12538 * reggroups.c (reggroup_new): Likewise.
12539 (_initialize_reggroup): Likewise.
12540 * registry.c (register_data_with_cleanup): Likewise.
12541 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12542 * ser-base.c (serial_ttystate): Likewise.
12543 * ser-mingw.c (make_pipe_state): Likewise.
12544 * ser-pipe.c (pipe_open): Likewise.
12545 * serial.c (serial_open): Likewise.
12546 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12547 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12548 (tui_alloc_win_info): Likewise.
12549 (tui_add_content_elements): Likewise.
12550 * tui/tui-file.c (tui_file_new): Likewise.
12551 * tui/tui-out.c (tui_out_new): Likewise.
12552 * ui-file.c (mem_file_new): Likewise.
12553 * ui-out.c (push_level): Likewise.
12554 (make_cleanup_ui_out_end): Likewise.
12555 (append_header_to_list): Likewise.
12556 (ui_out_new): Likewise.
12557 * user-regs.c (user_reg_add_builtin): Likewise.
12559 2014-01-13 Tom Tromey <tromey@redhat.com>
12561 * defs.h (XZALLOC): Remove.
12562 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12563 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12564 (get_ada_tasks_inferior_data): Likewise.
12565 * auto-load.c (get_auto_load_pspace_data): Likewise.
12566 * auxv.c (get_auxv_inferior_data): Likewise.
12567 * bfd-target.c (target_bfd_reopen): Likewise.
12568 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12569 (deprecated_insert_raw_breakpoint): Likewise.
12570 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12571 * corelow.c (core_open): Likewise.
12572 * darwin-nat.c (darwin_check_new_threads): Likewise.
12573 (darwin_attach_pid): Likewise.
12574 * dummy-frame.c (dummy_frame_push): Likewise.
12575 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12576 * dwarf2loc.c (allocate_piece_closure): Likewise.
12577 * elfread.c (elf_symfile_segments): Likewise.
12578 * eval.c (ptrmath_type_p): Likewise.
12579 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12580 * gdbtypes.c (alloc_type_arch): Likewise.
12581 (alloc_type_instance): Likewise.
12582 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12583 * inf-child.c (inf_child_can_use_agent): Likewise.
12584 * inflow.c (get_inflow_inferior_data): Likewise.
12585 * infrun.c (save_infcall_suspend_state): Likewise.
12586 * jit.c (jit_reader_load): Likewise.
12587 (get_jit_objfile_data): Likewise.
12588 (get_jit_program_space_data): Likewise.
12589 (jit_object_open_impl): Likewise.
12590 (jit_symtab_open_impl): Likewise.
12591 (jit_block_open_impl): Likewise.
12592 (jit_frame_sniffer): Likewise.
12593 * linux-fork.c (add_fork): Likewise.
12594 * maint.c (make_command_stats_cleanup): Likewise.
12595 * objfiles.c (get_objfile_pspace_data): Likewise.
12596 * opencl-lang.c (struct lval_closure): Likewise.
12597 * osdata.c (osdata_start_osdata): Likewise.
12598 * progspace.c (new_address_space): Likewise.
12599 (add_program_space): Likewise.
12600 * remote-sim.c (get_sim_inferior_data): Likewise.
12601 * sh-tdep.c (sh_gdbarch_init): Likewise.
12602 * skip.c (Ignore): Likewise.
12603 (skip_delete_command): Likewise.
12604 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12605 (library_list_start_library): Likewise.
12606 (solib_aix_current_sos): Likewise.
12607 * solib-darwin.c (get_darwin_info): Likewise.
12608 (darwin_current_sos): Likewise.
12609 * solib-dsbt.c (get_dsbt_info): Likewise.
12610 * solib-ia64-hpux.c (new_so_list): Likewise.
12611 (ia64_hpux_get_solib_linkage_addr): Likewise.
12612 * solib-spu.c (append_ocl_sos): Likewise.
12613 (spu_current_sos): Likewise.
12614 * solib-svr4.c (get_svr4_info): Likewise.
12615 (svr4_keep_data_in_core): Likewise.
12616 (library_list_start_library): Likewise.
12617 (svr4_default_sos): Likewise.
12618 (svr4_read_so_list): Likewise.
12619 * solib-target.c (library_list_start_library): Likewise.
12620 (solib_target_current_sos): Likewise.
12621 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12622 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12623 * symfile.c (default_symfile_segments): Likewise.
12624 * target-descriptions.c (tdesc_data_init): Likewise.
12625 (tdesc_create_reg): Likewise.
12626 (struct tdesc_type *): Likewise.
12627 (tdesc_create_vector): Likewise.
12628 (tdesc_set_struct_size): Likewise.
12629 (struct tdesc_type *): Likewise.
12630 (tdesc_free_feature): Likewise.
12631 (tdesc_create_feature): Likewise.
12632 * windows-nat.c (windows_add_thread): Likewise.
12633 (windows_make_so): Likewise.
12634 * xml-support.c (gdb_xml_body_text): Likewise.
12635 (gdb_xml_create_parser_and_cleanup): Likewise.
12636 (xml_process_xincludes): Likewise.
12637 * xml-syscall.c (allocate_syscalls_info): Likewise.
12638 (syscall_create_syscall_desc): Likewise.
12640 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12642 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12643 function, with code from i386_stap_parse_special_token.
12644 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12645 (i386_stap_parse_special_token): Move code to the two functions
12646 above; simplify it.
12648 2014-01-09 Pedro Alves <palves@redhat.com>
12649 Hui Zhu <hui@codesourcery.com>
12652 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12653 bp_err_string. Don't mark the location shlib_disabled if the
12654 error thrown wasn't a generic or memory error. Catch errors
12655 thrown while inserting breakpoints in overlayed code. Output
12656 error message of software breakpoints.
12657 * remote.c (remote_insert_breakpoint): If this breakpoint has
12658 target-side commands but this stub doesn't support Z0 packets,
12659 throw NOT_SUPPORTED_ERROR error.
12660 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12661 * target.h (target_insert_breakpoint): Extend comment.
12662 (target_insert_hw_breakpoint): Add comment.
12664 2014-01-08 Pedro Alves <palves@redhat.com>
12666 * remote.c (remote_add_thread): Add threads silently if starting
12668 (remote_notice_new_inferior): If in all-stop, and starting up,
12669 don't call notice_new_inferior.
12670 (get_current_thread): New function, factored out from ...
12671 (add_current_inferior_and_thread): ... this. Adjust.
12672 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12673 found any thread, then select the remote's current thread as GDB's
12674 current thread too.
12676 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12678 * NEWS: Create a new section for the next release branch.
12679 Rename the section of the current branch, now that it has
12682 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12684 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12685 * version.in: Bump version to 7.7.50.DATE-cvs.
12687 2014-01-08 Yao Qi <yao@codesourcery.com>
12689 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12690 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12691 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12693 2014-01-08 Yao Qi <yao@codesourcery.com>
12695 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12696 return value of bfd_get_filename to symbol_file_add_from_bfd.
12698 2014-01-08 Pierre Muller <muller@sourceware.org>
12701 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12702 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12703 to prim_record_mininal_symbol_and_info.
12704 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12705 in call to prim_record_minimal_symbol_and_info.
12706 (read_pe_exported_syms): Set index field of section_data.
12708 2014-01-07 Andrew Pinski <apinski@cavium.com>
12710 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12711 * features/aarch64.c: Regenerate.
12713 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12715 * target.c (return_null): Define.
12716 (update_current_target): Use it instead of return_zero for
12717 functions that return a pointer.
12719 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12721 * source.c (add_path): Fix check for duplicated paths in the previously
12724 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12726 * ada-lang.c: Remove duplicated include statements.
12727 * alphabsd-nat.c: Ditto.
12728 * amd64-darwin-tdep.c: Ditto.
12729 * amd64fbsd-nat.c: Ditto.
12730 * auto-load.c: Ditto.
12732 * breakpoint.c: Ditto.
12733 * dbxread.c: Ditto.
12734 * fork-child.c: Ditto.
12735 * gdb_usleep.c: Ditto.
12736 * i386-darwin-tdep.c: Ditto.
12737 * i386fbsd-nat.c: Ditto.
12739 * inferior.c: Ditto.
12740 * jv-lang.c: Ditto.
12741 * linux-nat.c: Ditto.
12742 * linux-tdep.c: Ditto.
12743 * m68kbsd-nat.c: Ditto.
12744 * m68klinux-nat.c: Ditto.
12745 * microblaze-tdep.c: Ditto.
12746 * mips-linux-tdep.c: Ditto.
12747 * mn10300-tdep.c: Ditto.
12748 * nto-tdep.c: Ditto.
12749 * opencl-lang.c: Ditto.
12751 * printcmd.c: Ditto.
12752 * regcache.c: Ditto.
12753 * remote-m32r-sdi.c: Ditto.
12755 * symfile.c: Ditto.
12757 * tilegx-linux-nat.c: Ditto.
12758 * tilegx-tdep.c: Ditto.
12759 * tracepoint.c: Ditto.
12761 * vaxbsd-nat.c: Ditto.
12762 * windows-nat.c: Ditto.
12763 * xtensa-tdep.c: Ditto.
12765 2014-01-07 Yao Qi <yao@codesourcery.com>
12767 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12769 2014-01-07 Yao Qi <yao@codesourcery.com>
12770 Joel Brobecker <brobecker@adacore.com>
12772 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12773 (pdc_write_regs): Likewise.
12774 (fetch_regs_kernel_thread): Likewise.
12775 (store_regs_kernel_thread): Likewise.
12777 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12779 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12780 tagged type objects to their actual type.
12782 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12784 * ada-valprint.c (print_field_values): Add "language" parameter.
12785 Update calls to print_field_values and print_variant_part.
12786 Pass new parameter "language" in call to val_print instead
12787 of "current_language". Replace call to ada_val_print by call
12789 (print_variant_part): Add "language" parameter.
12790 (ada_val_print_struct_union): Update call to print_field_values.
12792 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12794 * ada-valprint.c (ui_memcpy): Delete.
12795 (ada_print_floating): Update documentation. Add empty line
12796 between between function documentation and implementation.
12797 Delete variable "buffer". Use ui_file_xstrdup in place of
12798 ui_file_put. Minor adjustments following this change.
12800 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12802 * ada-valprint.c (ada_val_print_string): New function,
12803 extracted from ada_val_print_array.
12804 (ada_val_print_array): Replace extracted code by call
12805 to ada_val_print_string followed by a return. Move
12806 "else" branch to the function's top block.
12808 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12810 * ada-valprint.c (ada_val_print_array): Move implementation
12811 down. Rename parameter "offset" and "val" into "offset_aligned"
12812 and "original_value" respectively. Add parameter "offset".
12814 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12816 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12817 re-organizing the code. Change the "???" message printed
12818 when target type is a TYPE_CODE_UNDEF into
12819 "<ref to undefined type>".
12821 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12823 * ada-valprint.c (print_record): Delete, implementation inlined...
12824 (ada_val_print_struct_union): ... here. Remove call to
12825 ada_check_typedef in inlined implementation.
12827 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12829 * ada-valprint.c (ada_val_print_gnat_array): New function,
12830 extracted from ada_val_print_1;
12831 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12832 (ada_val_print_flt, ada_val_print_struct_union)
12833 (ada_val_print_ref): Likewise.
12834 (ada_val_print_1): Delete variables i and elttype.
12835 Replace extracted-out code by call to corresponding
12838 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12840 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12842 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12844 * ada-valprint.c (ada_val_print_1): Replace calls to
12845 ada_val_print_1 by calls to val_print.
12847 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12849 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12850 Update calls to self accordingly. Replace calls to c_val_print
12851 by calls to val_print.
12853 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12855 * ada-valprint.c (print_record): Delete declaration.
12856 (adjust_type_signedness, ada_val_print_1): Likewise.
12857 (ada_val_print): Move function implementation down.
12858 (print_variant_part, print_field_values, print_record):
12859 Move function implementation up.
12861 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12863 * python/py-type.c (typy_get_name): New function.
12864 (type_object_getset): Add entry for attribute "name".
12865 * NEWS: Add entry mentioning this new attribute.
12867 2014-01-07 Yao Qi <yao@codesourcery.com>
12869 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12872 2014-01-07 Yao Qi <yao@codesourcery.com>
12874 * gnu-nat.c (info_port_rights): Add qualifier const to
12877 2014-01-07 Yao Qi <yao@codesourcery.com>
12879 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12881 2014-01-07 Yao Qi <yao@codesourcery.com>
12883 * gnu-nat.c (make_inf) Update declaration.
12884 (make_inf): Make it static.
12885 (inf_set_traced): Likewise.
12886 (inf_port_to_thread, inf_task_died_status): Likewise.
12888 2014-01-07 Yao Qi <yao@codesourcery.com>
12890 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12892 2014-01-07 Yao Qi <yao@codesourcery.com>
12894 * gnu-nat.c (_initialize_gnu_nat): Declare.
12896 2014-01-07 Yao Qi <yao@codesourcery.com>
12898 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12900 (struct gdbarch_info) <byte_order>: Change type to
12902 <byte_order_for_code>: Likewise.
12903 * gdbarch.c, gdbarch.h: Regenerated.
12905 2014-01-06 Sasha Smundak <asmundak@google.com>
12907 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12909 2014-01-06 Tom Tromey <tromey@redhat.com>
12911 * doublest.c (convert_doublest_to_floatformat): Use const, not
12913 * somread.c (som_symtab_read): Likewise.
12915 2014-01-07 Hui Zhu <hui@codesourcery.com>
12917 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12918 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12919 (gdb_bfd_fopen): Ditto.
12920 (gdb_bfd_openr): Ditto.
12921 (gdb_bfd_openw): Ditto.
12922 (gdb_bfd_openr_iovec): Ditto.
12923 (gdb_bfd_fdopenr): Ditto.
12924 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12925 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12927 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12929 * symfile-mem.c (symbol_file_add_from_memory): Removed
12930 gdb_bfd_stash_filename.
12932 2014-01-03 Doug Evans <dje@google.com>
12934 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12937 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12939 Update year range in copyright notice of all files.
12941 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12943 * top.c (print_gdb_version): Set copyright year to 2014.
12945 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12947 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12949 For older changes see ChangeLog-2013.
12955 version-control: never