Ada subscripting of pointer to array with dynamic bounds
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
4 Adjust function implementation and documentation accordingly.
5 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
6 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
7 Update call to ada_value_ptr_subscript.
8
9 2014-09-10 Joel Brobecker <brobecker@adacore.com>
10
11 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
12 instead of VAL's type.
13
14 2014-09-10 Joel Brobecker <brobecker@adacore.com>
15
16 * amd64-linux-nat.c: Add <sys/uio.h> #include.
17
18 2014-09-09 Doug Evans <xdje42@gmail.com>
19
20 PR guile/17367
21 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
22 last parameter to pkg-config, not first.
23 * configure.ac: Pass --with-guile provided pkg-config path to
24 GDB_GUILE_PROGRAM_NAMES.
25 * configure: Regenerate.
26
27 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
28
29 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
30 Bertazi".
31
32 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
33
34 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
35 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
36 the list of sections determining GDB_OSABI_IRIX.
37
38 2014-09-09 James Hogan <james.hogan@imgtec.com>
39
40 * MAINTAINERS (Write After Approval): Add "James Hogan".
41
42 2014-09-09 James Hogan <james.hogan@imgtec.com>
43
44 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
45
46 2014-09-09 Joel Brobecker <brobecker@adacore.com>
47
48 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
49
50 2014-09-08 Doug Evans <xdje42@gmail.com>
51
52 PR 17247
53 * guile.c: #include <signal.h>.
54 (_initialize_guile): Block SIGCHLD while initializing Guile.
55
56 Replaces the following, which is reverted.
57
58 2014-07-26 Doug Evans <xdje42@gmail.com>
59
60 PR 17185
61 * configure.ac: Add check for header gc/gc.h.
62 Add check for function setenv.
63 * configure: Regenerate.
64 * config.in: Regenerate.
65 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
66
67 2014-09-08 Doug Evans <xdje42@gmail.com>
68
69 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
70 with named constant. Fix style of pointer comparison.
71 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
72
73 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
74
75 PR gdb/17035
76 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
77 decide whether we display the command on "show user".
78 * cli/cli-script.c (show_user_1): Only verify cmdlines after
79 printing command name.
80 * cli/cli-decode.h (cli_user_command_p): Declare new function.
81 * cli/cli-decode.c (cli_user_command_p): Create helper function
82 to verify whether cmd_list_element is a user-defined command.
83
84 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
85
86 PR python/17355
87 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
88 Fix goto out of TRY_CATCH.
89
90 2014-09-06 Doug Evans <xdje42@gmail.com>
91 Tom Tromey <tromey@redhat.com>
92
93 PR 15276
94 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
95 $_any_caller_matches.
96 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
97 * python/lib/gdb/function/caller_is.py: New file.
98
99 2014-09-06 Doug Evans <xdje42@gmail.com>
100
101 * infcmd.c (program_info): Fix typo.
102
103 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
104
105 PR gdb/17235
106 * stap-probe.c (stap_parse_single_operand): Delete unused variable
107 'number'. New variable 'has_digit'. Rewrite code to deal with
108 subexpressions on SDT probes.
109
110 2014-09-04 Pedro Alves <palves@redhat.com>
111
112 * c-exp.y (parse_number): Skip handling base-switching prefixes if
113 the input is only one character long.
114
115 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
116
117 PR fortran/17237
118 * f-valprint.c (f_val_print): Specify the correct print option to
119 use when printing integer values.
120
121 2014-09-04 Gary Benson <gbenson@redhat.com>
122
123 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
124 Remove code to cope with LWPs wrapped as PIDs.
125 Add assertions to ensure no wrapped LWPs are passed.
126
127 2014-09-04 Pedro Alves <palves@redhat.com>
128
129 * value.c (value_ranges_copy_adjusted): New function, factored out
130 from ...
131 (value_contents_copy_raw): ... here.
132 (unpack_value_bits_as_long_1): Rename back to ...
133 (unpack_bits_as_long): ... this. Remove 'original_value' and
134 'result' parameters. Change return type to LONGEST.
135 (unpack_value_bits_as_long): Delete.
136 (unpack_value_field_as_long_1): Delete.
137 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
138 (unpack_value_bitfield): New function.
139 (value_field_bitfield): Reimplement using unpack_value_bitfield.
140 (value_fetch_lazy): Use unpack_value_bitfield.
141 * value.h (unpack_value_bits_as_long): Delete declaration.
142
143 2014-09-03 Sasha Smundak <asmundak@google.com>
144
145 * python/py-frame.c (frapy_read_register): New function.
146
147 2014-09-03 James Hogan <james.hogan@imgtec.com>
148
149 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
150 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
151
152 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
153
154 PR python/16699
155 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
156 function.
157 (add_cmd): Set "completer_handle_brkchars" to NULL.
158 * cli/cli-decode.h (struct cmd_list_element)
159 <completer_handle_brkchars>: New field.
160 * command.h (completer_ftype_void): New typedef.
161 (set_cmd_completer_handle_brkchars): New prototype.
162 * completer.c (set_gdb_completion_word_break_characters): New
163 function.
164 (complete_line_internal): Call "completer_handle_brkchars"
165 callback from command.
166 * completer.h: Include "command.h".
167 (set_gdb_completion_word_break_characters): New prototype.
168 * python/py-cmd.c (cmdpy_completer_helper): New function.
169 (cmdpy_completer_handle_brkchars): New function.
170 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
171 (cmdpy_init): Set completer_handle_brkchars to
172 cmdpy_completer_handle_brkchars.
173
174 2014-09-03 Gary Benson <gbenson@redhat.com>
175
176 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
177 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
178 Loop conditions changed to equivalent form.
179 (struct x86_debug_reg_state): Updated dr_ref_count comment.
180 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
181 ALL_DEBUG_ADDRESS_REGISTERS.
182
183 2014-09-03 Joel Brobecker <brobecker@adacore.com>
184
185 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
186 description fix.
187
188 2014-09-02 Doug Evans <dje@google.com>
189
190 * typeprint.c (find_global_typedef): Fix comment.
191
192 2014-09-02 Gary Benson <gbenson@redhat.com>
193
194 * i386-nat.h: Renamed as...
195 * x86-nat.h: New file. All type, function and variable name
196 prefixes changed from "i386_" to "x86_". All references updated.
197 * i386-nat.c: Renamed as...
198 * x86-nat.c: New file. All type, function and variable name
199 prefixes changed from "i386_" to "x86_". All references updated.
200 * common/i386-xstate.h: Renamed as...
201 * common/x86-xstate.h: New file. All type, function and variable
202 name prefixes changed from "i386_" to "x86_". All references
203 updated.
204 * nat/i386-cpuid.h: Renamed as...
205 * nat/x86-cpuid.h: New file. All type, function and variable name
206 prefixes changed from "i386_" to "x86_". All references updated.
207 * nat/i386-gcc-cpuid.h: Renamed as...
208 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
209 name prefixes changed from "i386_" to "x86_". All references
210 updated.
211 * nat/i386-dregs.h: Renamed as...
212 * nat/x86-dregs.h: New file. All type, function and variable name
213 prefixes changed from "i386_" to "x86_". All references updated.
214 * nat/i386-dregs.c: Renamed as...
215 * nat/x86-dregs.c: New file. All type, function and variable name
216 prefixes changed from "i386_" to "x86_". All references updated.
217
218 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
219
220 * varobj.c (_initialize_varobj): Move to the end of file.
221
222 2014-08-29 Gary Benson <gbenson@redhat.com>
223
224 * common/common-exceptions.h: New file.
225 * common/common-exceptions.c: Likewise.
226 * Makefile.in (SFILES): Add common/common-exceptions.c.
227 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
228 (COMMON_OBS): Add common-exceptions.o.
229 (common-exceptions.o): New rule.
230 * exceptions.h (common-exceptions.h): Include.
231 (gdb_setjmp.h): Do not include.
232 (return_reason): Moved to common-exceptions.h.
233 (enum return_reason): Likewise.
234 (RETURN_MASK): Likewise.
235 (typedef return_mask): Likewise.
236 (enum errors): Likewise.
237 (struct gdb_exception): Likewise.
238 (exceptions_state_mc_init): Likewise.
239 (exceptions_state_mc_action_iter): Likewise.
240 (exceptions_state_mc_action_iter_1): Likewise.
241 (TRY_CATCH): Likewise.
242 (throw_exception): Likewise.
243 (throw_verror): Likewise.
244 (throw_vquit): Likewise.
245 (throw_error): Likewise.
246 (throw_quit): Likewise.
247 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
248 (enum catcher_action): Likewise.
249 (struct catcher): Likewise.
250 (current_catcher): Likewise.
251 (catcher_list_size): Likewise.
252 (exceptions_state_mc_init): Likewise.
253 (catcher_pop): Likewise.
254 (exceptions_state_mc): Likewise.
255 (exceptions_state_mc_action_iter): Likewise.
256 (exceptions_state_mc_action_iter_1): Likewise.
257 (throw_exception): Likewise.
258 (exception_messages): Likewise.
259 (exception_messages_size): Likewise.
260 (throw_it): Likewise.
261 (throw_verror): Likewise.
262 (throw_vquit): Likewise.
263 (throw_error): Likewise.
264 (throw_quit): Likewise.
265 (prepare_to_throw_exception): New function.
266
267 2014-08-29 Gary Benson <gbenson@redhat.com>
268
269 * common/gdb_setjmp.h: New file.
270 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
271 * configure.ac: Move sigsetjmp check...
272 * common/common.m4: ...here.
273 * configure: Regenerate.
274 * cp-support.c (SIGJMP_BUF): Delete.
275 (SIGSETJMP): Likewise.
276 (SIGLONGJMP): Likewise.
277 * exceptions.h (gdb_setjmp.h): Include.
278 (setjmp.h): Do not include.
279 (EXCEPTIONS_SIGJMP_BUF): Delete.
280 (EXCEPTIONS_SIGSETJMP): Likewise.
281 (EXCEPTIONS_SIGLONGJMP): Likewise.
282 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
283 from gdb_setjmp.h.
284 * exceptions.c: Likewise.
285
286 2014-08-29 Gary Benson <gbenson@redhat.com>
287
288 * cleanups.h: Moved to...
289 * common/cleanups.h: New file.
290 * cleanups.c: Moved to...
291 * common/cleanups.c: New file. Include common-defs.h and
292 cleanups.h. Do not include defs.h.
293 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
294 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
295 (cleanups.o): New rule.
296
297 2014-08-29 Gary Benson <gbenson@redhat.com>
298
299 * common/errors.h (internal_warning): New declaration.
300 (internal_vwarning): Likewise.
301 * common/errors.c (internal_warning): New function.
302 * utils.h (internal_warning): Don't declare.
303 (internal_vwarning): Likewise.
304 * utils.c (internal_warning): Removed.
305
306 2014-08-29 Gary Benson <gbenson@redhat.com>
307
308 * main.c (captured_main): Use warning during startup.
309 Prefix startup warning messages with command name.
310
311 2014-08-29 Gary Benson <gbenson@redhat.com>
312
313 * main.c (captured_main): Handle usage errors with error.
314
315 2014-08-29 Gary Benson <gbenson@redhat.com>
316
317 * go32-nat.c (go32_create_inferior): Replace a fprintf/
318 exit pair with a call to error. Wrap the message with _().
319
320 2014-08-29 Gary Benson <gbenson@redhat.com>
321
322 * main.c (captured_main): Replace a fprintf/exit
323 pair with a call to error. Wrap the message with _().
324
325 2014-08-29 Gary Benson <gbenson@redhat.com>
326
327 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
328 pairs with calls to error. Wrap the message with _().
329
330 2014-08-29 Gary Benson <gbenson@redhat.com>
331
332 * utils.c (vwarning): Protect calls to target_terminal_ours
333 and wrap_here.
334
335 2014-08-29 Gary Benson <gbenson@redhat.com>
336
337 * exceptions.c (print_flush): Protect calls to
338 target_terminal_ours and wrap_here.
339
340 2014-08-29 Gary Benson <gbenson@redhat.com>
341
342 * utils.h (filtered_printing_initialized): New declaration.
343 * utils.c (abort_with_message): New function.
344 (internal_vproblem): Use abort_with_message for first level
345 recursive internal problems, and if gdb_stderr is not set up.
346 Protect calls to target_terminal_ours, begin_line and query.
347
348 2014-08-28 Doug Evans <dje@google.com>
349
350 * symtab.c (in_prologue): Move definition to better spot.
351 (skip_prologue_using_sal): Ditto.
352
353 2014-08-28 Doug Evans <dje@google.com>
354
355 * symtab.c (find_function_start_sal): Move definition to better spot.
356
357 2014-08-28 Yao Qi <yao@codesourcery.com>
358
359 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
360 found_stack_adjust in forward scan. Remove condition check
361 on found_stack_adjust which is always true. Indent the code.
362
363 2014-08-28 Yao Qi <yao@codesourcery.com>
364
365 * dwarf2read.c (dwarf_decode_lines): Update declaration.
366 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
367 (dwarf_decode_lines): Remove argument
368 want_line_info. Remove condition check on want_line_info.
369 Callers update.
370
371 2014-08-27 Doug Evans <dje@google.com>
372
373 * dwarf2read.c (dwarf_record_line): Fix typo.
374
375 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
376
377 * target.h (struct target_ops::to_terminal_save_ours): Remove
378 declaration.
379 (target_terminal_save_ours): Remove macro.
380 * target-delegates.c: Regenerate.
381 * inf-child.c (inf_child_target): Don't set the nonexistent
382 field to_terminal_save_ours.
383 * inferior.h (child_terminal_save_ours): Remove declaration.
384 * terminal.h (gdb_save_tty_state): New declaration.
385 * inflow.c (child_terminal_save_ours): Rename to ...
386 (gdb_save_tty_state): ... this.
387 * tui/tui.c: Include terminal.h.
388 (tui_enable): Use gdb_save_tty_state instead of
389 target_terminal_save_ours.
390 (tui_disable): Likewise.
391
392 2014-08-25 Doug Evans <dje@google.com>
393
394 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
395 Pass NULL instead of 0 for context pointer.
396
397 2014-08-25 Yao Qi <yao@codesourcery.com>
398
399 * dwarf2read.c: Fix grammatical error.
400
401 2014-08-24 Yao Qi <yao@codesourcery.com>
402
403 * dwarf2read.c (scan_partial_symbols): Update comments.
404 Rename argument 'need_pc' with 'set_addrmap'.
405 (add_partial_namespace): Rename argument 'need_pc' with
406 'set_addrmap'.
407 (add_partial_module): Likewise.
408 (add_partial_subprogram): Likewise. Update comments.
409 (dwarf2_name): Fix typo.
410
411 2014-08-22 Doug Evans <dje@google.com>
412
413 PR 17276
414 * dwarf2read.c (dwarf_record_line_p): New function.
415 (dwarf_decode_lines_1): Ignore subsequent line number entries
416 for the same line if any entry had a non-zero discriminator.
417
418 2014-08-22 Doug Evans <dje@google.com>
419
420 * buildsym.h (record_line_ftype): New typedef.
421 (record_line): Use it.
422 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
423 (dwarf_decode_lines_1): Call them.
424
425 2014-08-22 Yao Qi <yao@codesourcery.com>
426
427 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
428 (ctf_end): Remove code.
429
430 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
431
432 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
433 (linux_make_corefile_notes): call update_thread_list, protected against
434 exceptions.
435
436 2014-08-21 Pedro Alves <palves@redhat.com>
437
438 * infcmd.c (attach_command): Remove comment.
439
440 2014-08-21 Bin Cheng <bin.cheng@arm.com>
441
442 * aarch64-linux-nat.c (dr_changed_t): Change the type from
443 unsigned LONGEST to ULONGEST.
444
445 2014-08-20 Pedro Alves <palves@redhat.com>
446
447 * Makefile.in (check-read1): New rule.
448
449 2014-08-20 Joel Brobecker <brobecker@adacore.com>
450
451 * value.c (value_from_contents_and_address): Strip resolved_type's
452 typedef layers before checking its TYPE_DATA_LOCATION.
453
454 2014-08-20 Pedro Alves <palves@redhat.com>
455
456 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
457
458 2014-08-20 Yao Qi <yao@codesourcery.com>
459
460 * amd64-tdep.c (amd64_classify): Add a blank line after the
461 example. Move "*/" to a new line.
462 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
463 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
464 * dwarf2read.c (psymtab_include_file_name): Likewise.
465
466 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
467 Pedro Alves <palves@redhat.com>
468
469 PR symtab/14604
470 PR symtab/14605
471 * ada-lang.c (coerce_unspec_val_to_type): Use
472 value_contents_copy_raw.
473 * ada-valprint.c (val_print_packed_array_elements): Adjust.
474 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
475 * cp-valprint.c (cp_print_value_fields): Let the common printing
476 code handle optimized out values.
477 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
478 * d-valprint.c (dynamic_array_type): Use
479 value_bits_any_optimized_out.
480 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
481 check_any_valid fields.
482 (check_pieced_value_bits): Delete and inline ...
483 (check_pieced_synthetic_pointer): ... here.
484 (check_pieced_value_validity): Delete.
485 (check_pieced_value_invalid): Delete.
486 (pieced_value_funcs): Remove check_validity and check_any_valid
487 fields.
488 (read_pieced_value): Use mark_value_bits_optimized_out.
489 (write_pieced_value): Switch to use
490 mark_value_bytes_optimized_out.
491 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
492 of assuming the whole value is optimized out.
493 * findvar.c (read_frame_register_value): Remove special handling
494 of optimized out registers.
495 (value_from_register): Use mark_value_bytes_optimized_out.
496 * frame-unwind.c (frame_unwind_got_optimized): Use
497 mark_value_bytes_optimized_out.
498 * jv-valprint.c (java_value_print): Adjust.
499 (java_print_value_fields): Let the common printing code handle
500 optimized out values.
501 * mips-tdep.c (mips_print_register): Remove special handling of
502 optimized out registers.
503 * opencl-lang.c (lval_func_check_validity): Delete.
504 (lval_func_check_any_valid): Delete.
505 (opencl_value_funcs): Remove check_validity and check_any_valid
506 fields.
507 * p-valprint.c (pascal_object_print_value_fields): Let the common
508 printing code handle optimized out values.
509 * stack.c (read_frame_arg): Remove special handling of optimized
510 out values. Fetch both VAL and ENTRYVAL before comparing
511 contents. Adjust to value_available_contents_eq rename.
512 * valprint.c (valprint_check_validity)
513 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
514 (val_print_array_elements): Adjust.
515 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
516 (value_bits_any_optimized_out): New function.
517 (value_entirely_covered_by_range_vector): New function, factored
518 out from value_entirely_unavailable.
519 (value_entirely_unavailable): Reimplement.
520 (value_entirely_optimized_out): New function.
521 (insert_into_bit_range_vector): New function, factored out from
522 mark_value_bits_unavailable.
523 (mark_value_bits_unavailable): Reimplement.
524 (struct ranges_and_idx): New struct.
525 (find_first_range_overlap_and_match): New function, factored out
526 from value_available_contents_bits_eq.
527 (value_available_contents_bits_eq): Rename to ...
528 (value_contents_bits_eq): ... this. Check both unavailable
529 contents and optimized out contents.
530 (value_available_contents_eq): Rename to ...
531 (value_contents_eq): ... this.
532 (allocate_value_lazy): Remove reference to the old optimized_out
533 boolean.
534 (allocate_optimized_out_value): Use
535 mark_value_bytes_optimized_out.
536 (require_not_optimized_out): Adjust to check whether the
537 optimized_out vec is empty.
538 (ranges_copy_adjusted): New function, factored out from
539 value_contents_copy_raw.
540 (value_contents_copy_raw): Also copy the optimized out ranges.
541 Assert the destination ranges aren't optimized out.
542 (value_contents_copy): Update comment, remove call to
543 require_not_optimized_out.
544 (value_contents_equal): Adjust to check whether the optimized_out
545 vec is empty.
546 (set_value_optimized_out, value_optimized_out_const): Delete.
547 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
548 New functions.
549 (value_entirely_optimized_out, value_bits_valid): Delete.
550 (value_copy): Take a VEC copy of the 'optimized_out' field.
551 (value_primitive_field): Remove special handling of optimized out.
552 (value_fetch_lazy): Assert that lazy values have no unavailable
553 regions. Use value_bits_any_optimized_out. Remove some special
554 handling for optimized out values.
555 * value.h: Add intro comment about <optimized out> and
556 <unavailable>.
557 (struct lval_funcs): Remove check_validity and check_any_valid
558 fields.
559 (set_value_optimized_out, value_optimized_out_const): Remove.
560 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
561 New declarations.
562 (value_bits_any_optimized_out): New declaration.
563 (value_bits_valid): Delete declaration.
564 (value_available_contents_eq): Rename to ...
565 (value_contents_eq): ... this, and extend comments.
566
567 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
568
569 Fix -fsanitize=address on unreadable inferior strings.
570 * valprint.c (val_print_string): Fix access before BUFFER.
571
572 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
573
574 * target.c (target_struct_size): Remove.
575 (target_struct_allocsize): Remove.
576 (DEFAULT_ALLOCSIZE): Remove.
577 (target_ops_p): New typedef.
578 (DEF_VEC_P (target_ops_p)): New vector type.
579 (target_structs): Change type to VEC (target_ops_p).
580 (add_target_with_completer): Replace "push" code by VEC_safe_push.
581 (find_default_run_target): Rewrite for loop following changes to
582 target_structs.
583
584 2014-08-19 Joel Brobecker <brobecker@adacore.com>
585
586 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
587 Adjust code accordingly. Adjust function description comment.
588
589 2014-08-19 Yao Qi <yao@codesourcery.com>
590
591 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
592 types.
593
594 2014-08-19 Alan Modra <amodra@gmail.com>
595
596 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
597 * config.in: Regenerate.
598 * configure: Regenerate.
599
600 2014-08-19 Tom Tromey <tromey@redhat.com>
601 Gary Benson <gbenson@redhat.com>
602
603 * common/common-debug.h: New file.
604 * common/common-debug.c: Likewise.
605 * debug.c: Likewise.
606 * Makefile.in (SFILES): Add common/common-debug.c.
607 (HFILES_NO_SRCDIR): Add common/common-debug.h.
608 (COMMON_OBS): Add common-debug.o and debug.o.
609 (common-debug.o): New rule.
610 * common/common-defs.h: Include common-debug.h.
611 * common/agent.c (debug_agent_printf): New function.
612 (DEBUG_AGENT): Redefine.
613 * nat/i386-dregs.c (debug_printf): Undefine.
614
615 2014-08-19 Gary Benson <gbenson@redhat.com>
616
617 * common/common-defs.h: Include print-utils.h.
618 * utils.h: Do not include print-utils.h.
619
620 2014-08-19 Tom Tromey <tromey@redhat.com>
621 Gary Benson <gbenson@redhat.com>
622
623 * common/common-types.h: New file.
624 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
625 * common/common-defs.h: Include common-types.h.
626 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
627 (ULONGEST): Remove.
628
629 2014-08-19 Tom Tromey <tromey@redhat.com>
630 Gary Benson <gbenson@redhat.com>
631
632 * common/errors.h: New file.
633 * common/errors.c: Likewise.
634 * Makefile.in (SFILES): Add common/errors.c.
635 (HFILES_NO_SRCDIR): Add common/errors.h.
636 (COMMON_OBS): Add errors.o.
637 (errors.o): New rule.
638 * common/common-defs.h: Include errors.h.
639 * utils.h (perror_with_name, error, verror, warning, vwarning):
640 Don't declare.
641 * common/common-utils.h: (malloc_failure, internal_error):
642 Likewise.
643
644 2014-08-19 Gary Benson <gbenson@redhat.com>
645
646 * utils.c (internal_vproblem): Always print the message.
647
648 2014-08-18 Doug Evans <dje@google.com>
649
650 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
651
652 2014-08-18 Joel Brobecker <brobecker@adacore.com>
653
654 * ada-typeprint.c (type_is_full_subrange_of_target_type):
655 Return 0 if TYPE is dynamic.
656 (print_range): Add handling of dynamic ranges.
657
658 2014-08-18 Keven Boell <keven.boell@intel.com>
659 Joel Brobecker <brobecker@adacore.com>
660
661 * gdbtypes.h (struct main_type): Add field "data_location".
662 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
663 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
664 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
665 a dynamic data location.
666 (resolve_dynamic_type): Add DW_AT_data_location handling.
667 (copy_recursive, copy_type): Copy the data_location information
668 when present.
669 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
670 * value.c (value_from_contents_and_address): Add
671 DW_AT_data_location handling.
672
673 2014-08-18 Keven Boell <keven.boell@intel.com>
674 Joel Brobecker <brobecker@adacore.com>
675
676 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
677 field "get_object_address".
678 * dwarf2expr.c (execute_stack_op): Add handling for
679 DW_OP_push_object_address.
680 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
681 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
682 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
683 (dwarf_expr_get_obj_addr): New function.
684 (dwarf_expr_ctx_funcs): Add get_object_address field.
685 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
686 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
687 (dwarf2_evaluate_property): Add parameter "address". Use it.
688 (needs_get_obj_addr): New function.
689 (needs_frame_ctx_funcs): Add get_object_address field.
690 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
691 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
692 (resolve_dynamic_array): Likewise.
693
694 2014-08-18 Joel Brobecker <brobecker@adacore.com>
695
696 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
697 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
698 fixed value for records and unions for which some GNAT encodings
699 are present.
700
701 2014-08-18 Joel Brobecker <brobecker@adacore.com>
702
703 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
704 rewrite to avoid "else if" and "else" constructs. Should be
705 a no-op in practice.
706
707 2014-08-18 Joel Brobecker <brobecker@adacore.com>
708
709 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
710 of lexical block.
711
712 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
713
714 PR c++/17132
715 * eval.c: Update all calls to find_overload_match.
716 * valarith.c: Likewise.
717 (value_user_defined_cpp_op, value_user_defined_op): New
718 argument NOSIDE. Update all callers.
719 * valops.c (find_overload_match): New argument NOSIDE.
720 * value.h (find_overload_match): Update signature.
721
722 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
723
724 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
725 'items' methods instead of 'iteritems' method on dictionaries.
726
727 2014-08-15 Doug Evans <dje@google.com>
728
729 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
730 closer to use.
731
732 2014-08-15 Doug Evans <dje@google.com>
733
734 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
735
736 2014-08-15 Doug Evans <dje@google.com>
737
738 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
739
740 2014-08-15 Doug Evans <dje@google.com>
741
742 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
743 unused.
744
745 2014-08-15 Eli Zaretskii <eliz@gnu.org>
746
747 * dcache.h: Include target.h, to avoid compile time warnings.
748
749 2014-08-15 Joel Brobecker <brobecker@adacore.com>
750
751 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
752 frame_info" partial declaration.
753 * gdbarch.h: Regenerate.
754
755 2014-08-15 Yao Qi <yao@codesourcery.com>
756
757 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
758 Add parameter 'decode_for_pst_p'. Callers update.
759
760 2014-08-13 Yao Qi <yao@codesourcery.com>
761
762 PR build/17104
763 * configure.ac: Use local variable 'pos'.
764 * configure: Regenerated.
765
766 2014-08-11 Doug Evans <dje@google.com>
767
768 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
769 message, it is redundant with "Reading symbols from ..." message.
770
771 2014-08-10 Doug Evans <xdje42@gmail.com>
772
773 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
774
775 2014-08-09 Yao Qi <yao@codesourcery.com>
776
777 PR remote/9053
778 * remote.c (remote_xfer_partial): Remove dead code.
779
780 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
781
782 * ia64-linux-tdep.c: Include "regset.h".
783 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
784 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
785 (ia64_linux_supply_fpregset): New function.
786 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
787 (ia64_linux_regset_from_core_section): New function.
788 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
789 method.
790
791 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
792
793 * m68klinux-tdep.c: Include "regset.h".
794 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
795 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
796 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
797 (m68k_linux_regset_from_core_section): New function.
798 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
799 method.
800
801 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
802
803 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
804 function. Move logic to...
805 (tilegx_linux_regmap): ... this new register map.
806 (tilegx_linux_regset): Refer to register map, replace supply
807 method by regcache_supply_regset, and add collect method.
808 * tilegx-tdep.h (enum tilegx_regnum): New enum value
809 TILEGX_FIRST_EASY_REGNUM.
810
811 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
812
813 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
814 that calls regcache_supply_regset and handles the EPC register
815 separately. Move main logic to...
816 (score7_linux_gregmap): ... this new register map.
817 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
818 (score7_linux_gregset): Refer to register map. Add collect method.
819 (score7_linux_regset_from_core_section): Replace
820 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
821 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
822 (struct regset): Delete unused forward declaraction.
823 (struct pt_regs): Delete structure definition.
824 (elf_gregset_t): Delete typedef.
825
826 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
827
828 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
829 (nios2_core_regset): Add collect method.
830
831 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
832
833 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
834 platform-independent and don't write to read-only input buffer.
835 (m32r_linux_collect_gregset): New function.
836 (m32r_linux_gregset): Add collect method.
837
838 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
839
840 * hppa-linux-tdep.c (greg_map): Rename to...
841 (hppa_linux_gregmap): ... this. Also convert to
842 regcache_map_entry format.
843 (hppa_linux_supply_regset): Delete function.
844 (hppa_linux_supply_fpregset): Delete function. Move logic to...
845 (hppa_linux_fpregmap): ... this new register map.
846 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
847 register map, replace supply method by regcache_supply_regset, and
848 add collect method regcache_collect_regset.
849
850 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
851
852 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
853 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
854 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
855 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
856 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
857 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
858 (frv_linux_supply_gregset): Replace main logic by call to
859 regcache_supply_regset, but keep clearing gr32-gr63.
860 (frv_linux_supply_fpregset): Delete function.
861 (frv_linux_gregset): Refer to appropriate register map and add
862 regcache_collect_regset as the collect method.
863 (frv_linux_fpregset): Likewise. Also exchange the supply method
864 by regcache_supply_regset.
865
866 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
867
868 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
869 by call to alpha_supply_int_regs.
870 (alpha_linux_collect_gregset): New function.
871 (alpha_linux_supply_fpregset): Replace logic by call to
872 alpha_supply_fp_regs.
873 (alpha_linux_collect_fpregset): New function.
874 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
875
876 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
877
878 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
879 by call to regcache_collect_regset.
880 (supply_gregset, supply_fpregset): Call regcache_supply_regset
881 instead of aarch64_linux_supply_gregset/_fpregset.
882 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
883 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
884 header file instead.
885 (aarch64_linux_supply_gregset, supply_gregset_from_core)
886 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
887 functions. Move logic to ...
888 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
889 register maps.
890 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
891 refer to new register maps, replace *_regset_from_core by
892 regcache_supply_regset, and also use regcache_collect_regset.
893 * aarch64-linux-tdep.h: Include "regset.h".
894 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
895 Delete prototypes.
896 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
897 macros, moved from C source file.
898 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
899 variable declarations.
900
901 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
902
903 * s390-linux-nat.c: Include "regset.h".
904 (regmap_gregset): Delete macro.
905 (s390_64_regmap_gregset): New register map for
906 regcache_supply/_collect_regset.
907 (s390_64_gregset): New regset.
908 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
909 (regmap_fpregset): Delete macro.
910 (s390_native_supply, s390_native_collect): Delete functions.
911 (supply_gregset, fill_gregset): Replace s390-specific regmap
912 handling by a call to regcache_supply/_collect_regset.
913 (supply_fpregset, fill_fpregset): Call regcache_supply/
914 _collect_regset instead of s390_native_supply/_collect.
915 (fetch_regset, store_regset): Likewise. Also change the last
916 parameter to a regset instead of a regmap.
917 (s390_linux_fetch_inferior_registers)
918 (390_linux_store_inferior_registers): Adjust last parameter in
919 calls to fetch_regset and store_regset.
920 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
921 (s390_gregmap): ... this. Also make static const and convert to
922 regcache_map_entry format.
923 (s390x_regmap_gregset): Delete.
924 (s390_regmap_fpregset): Rename to...
925 (s390_fpregmap): ... this. Make static const and convert to
926 regcache_map_entry format.
927 (s390_regmap_upper, s390_regmap_last_break)
928 (s390x_regmap_last_break, s390_regmap_system_call)
929 (s390_regmap_tdb): Likewise.
930 (s390_supply_regset, s390_collect_regset): Remove functions.
931 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
932 s390_supply_regset.
933 (s390_gregset, s390_fpregset, s390_upper_regset)
934 (s390_last_break_regset, s390x_last_break_regset)
935 (s390_system_call_regset, s390_tdb_regset): Make global and
936 replace s390_supply/_collect_regset by regcache_supply/
937 _collect_regset.
938 (s390x_gregset): Delete.
939 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
940 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
941 (s390_regmap_fpregset, s390_regmap_last_break)
942 (s390x_regmap_last_break, s390_regmap_system_call)
943 (s390_regmap_tdb): Delete global variable declarations.
944 (s390_gregset, s390_fpregset, s390_last_break_regset)
945 (s390x_last_break_regset, s390_system_call_regset)
946 (s390_tdb_regset): New global variable declarations.
947
948 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
949
950 * regcache.c: Include "regset.h".
951 (regcache_transfer_regset): New local function.
952 (regcache_supply_regset, regcache_collect_regset): New functions.
953 * regcache.h (struct regcache_map_entry): New structure.
954 (REGCACHE_MAP_SKIP): New enum value.
955 (regcache_supply_regset, regcache_collect_regset): New prototypes.
956
957 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
958
959 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
960 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
961 (ppc_linux_collect_gregset ): Likewise.
962 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
963 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
964 (ppc_collect_vrregset): Likewise.
965 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
966 Likewise.
967
968 2014-08-07 Yao Qi <yao@codesourcery.com>
969
970 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
971 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
972 * remote.c (remote_read_bytes): Likewise.
973
974 2014-08-07 Yao Qi <yao@codesourcery.com>
975
976 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
977
978 2014-08-07 Yao Qi <yao@codesourcery.com>
979
980 PR remote/17230
981 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
982 TARGET_XFER_OK instead of 0.
983
984 2014-08-07 Gary Benson <gbenson@redhat.com>
985
986 * common/common-defs.h: Include errno.h.
987 * defs.h: Do not include errno.h.
988 * ada-typeprint.c: Likewise.
989 * c-typeprint.c: Likewise.
990 * core-regset.c: Likewise.
991 * corefile.c: Likewise.
992 * corelow.c: Likewise.
993 * event-loop.c: Likewise.
994 * f-typeprint.c: Likewise.
995 * gnu-nat.c: Likewise.
996 * go32-nat.c: Likewise.
997 * i386gnu-nat.c: Likewise.
998 * m2-typeprint.c: Likewise.
999 * nat/linux-btrace.c: Likewise.
1000 * p-typeprint.c: Likewise.
1001 * procfs.c: Likewise.
1002 * remote-sim.c: Likewise.
1003 * rs6000-nat.c: Likewise.
1004 * target.c: Likewise.
1005 * typeprint.c: Likewise.
1006 * ui-file.c: Likewise.
1007 * valops.c: Likewise.
1008 * valprint.c: Likewise.
1009
1010 2014-08-07 Gary Benson <gbenson@redhat.com>
1011
1012 * common/common-defs.h: Include string.h.
1013 * aarch64-tdep.c: Do not include string.h.
1014 * ada-exp.y: Likewise.
1015 * ada-lang.c: Likewise.
1016 * ada-lex.l: Likewise.
1017 * ada-typeprint.c: Likewise.
1018 * ada-valprint.c: Likewise.
1019 * aix-thread.c: Likewise.
1020 * alpha-linux-tdep.c: Likewise.
1021 * alpha-mdebug-tdep.c: Likewise.
1022 * alpha-nat.c: Likewise.
1023 * alpha-osf1-tdep.c: Likewise.
1024 * alpha-tdep.c: Likewise.
1025 * alphanbsd-tdep.c: Likewise.
1026 * amd64-dicos-tdep.c: Likewise.
1027 * amd64-linux-tdep.c: Likewise.
1028 * amd64-nat.c: Likewise.
1029 * amd64-sol2-tdep.c: Likewise.
1030 * amd64fbsd-tdep.c: Likewise.
1031 * amd64obsd-tdep.c: Likewise.
1032 * arch-utils.c: Likewise.
1033 * arm-linux-nat.c: Likewise.
1034 * arm-linux-tdep.c: Likewise.
1035 * arm-tdep.c: Likewise.
1036 * arm-wince-tdep.c: Likewise.
1037 * armbsd-tdep.c: Likewise.
1038 * armnbsd-nat.c: Likewise.
1039 * armnbsd-tdep.c: Likewise.
1040 * armobsd-tdep.c: Likewise.
1041 * avr-tdep.c: Likewise.
1042 * ax-gdb.c: Likewise.
1043 * ax-general.c: Likewise.
1044 * bcache.c: Likewise.
1045 * bfin-tdep.c: Likewise.
1046 * breakpoint.c: Likewise.
1047 * build-id.c: Likewise.
1048 * buildsym.c: Likewise.
1049 * c-exp.y: Likewise.
1050 * c-lang.c: Likewise.
1051 * c-typeprint.c: Likewise.
1052 * c-valprint.c: Likewise.
1053 * charset.c: Likewise.
1054 * cli-out.c: Likewise.
1055 * cli/cli-cmds.c: Likewise.
1056 * cli/cli-decode.c: Likewise.
1057 * cli/cli-dump.c: Likewise.
1058 * cli/cli-interp.c: Likewise.
1059 * cli/cli-logging.c: Likewise.
1060 * cli/cli-script.c: Likewise.
1061 * cli/cli-setshow.c: Likewise.
1062 * cli/cli-utils.c: Likewise.
1063 * coffread.c: Likewise.
1064 * common/agent.c: Likewise.
1065 * common/buffer.c: Likewise.
1066 * common/buffer.h: Likewise.
1067 * common/common-utils.c: Likewise.
1068 * common/filestuff.c: Likewise.
1069 * common/filestuff.c: Likewise.
1070 * common/format.c: Likewise.
1071 * common/print-utils.c: Likewise.
1072 * common/rsp-low.c: Likewise.
1073 * common/signals.c: Likewise.
1074 * common/vec.h: Likewise.
1075 * common/xml-utils.c: Likewise.
1076 * core-regset.c: Likewise.
1077 * corefile.c: Likewise.
1078 * corelow.c: Likewise.
1079 * cp-abi.c: Likewise.
1080 * cp-name-parser.y: Likewise.
1081 * cp-support.c: Likewise.
1082 * cp-valprint.c: Likewise.
1083 * cris-tdep.c: Likewise.
1084 * d-exp.y: Likewise.
1085 * darwin-nat.c: Likewise.
1086 * dbxread.c: Likewise.
1087 * dcache.c: Likewise.
1088 * demangle.c: Likewise.
1089 * dicos-tdep.c: Likewise.
1090 * disasm.c: Likewise.
1091 * doublest.c: Likewise.
1092 * dsrec.c: Likewise.
1093 * dummy-frame.c: Likewise.
1094 * dwarf2-frame.c: Likewise.
1095 * dwarf2loc.c: Likewise.
1096 * dwarf2read.c: Likewise.
1097 * elfread.c: Likewise.
1098 * environ.c: Likewise.
1099 * eval.c: Likewise.
1100 * event-loop.c: Likewise.
1101 * exceptions.c: Likewise.
1102 * exec.c: Likewise.
1103 * expprint.c: Likewise.
1104 * f-exp.y: Likewise.
1105 * f-lang.c: Likewise.
1106 * f-typeprint.c: Likewise.
1107 * f-valprint.c: Likewise.
1108 * fbsd-nat.c: Likewise.
1109 * findcmd.c: Likewise.
1110 * findvar.c: Likewise.
1111 * fork-child.c: Likewise.
1112 * frame.c: Likewise.
1113 * frv-linux-tdep.c: Likewise.
1114 * frv-tdep.c: Likewise.
1115 * gdb.c: Likewise.
1116 * gdb_bfd.c: Likewise.
1117 * gdbarch.c: Likewise.
1118 * gdbarch.sh: Likewise.
1119 * gdbtypes.c: Likewise.
1120 * gnu-nat.c: Likewise.
1121 * gnu-v2-abi.c: Likewise.
1122 * gnu-v3-abi.c: Likewise.
1123 * go-exp.y: Likewise.
1124 * go-lang.c: Likewise.
1125 * go32-nat.c: Likewise.
1126 * guile/guile.c: Likewise.
1127 * guile/scm-auto-load.c: Likewise.
1128 * hppa-hpux-tdep.c: Likewise.
1129 * hppa-linux-nat.c: Likewise.
1130 * hppanbsd-tdep.c: Likewise.
1131 * hppaobsd-tdep.c: Likewise.
1132 * i386-cygwin-tdep.c: Likewise.
1133 * i386-dicos-tdep.c: Likewise.
1134 * i386-linux-tdep.c: Likewise.
1135 * i386-nto-tdep.c: Likewise.
1136 * i386-sol2-tdep.c: Likewise.
1137 * i386-tdep.c: Likewise.
1138 * i386bsd-tdep.c: Likewise.
1139 * i386gnu-nat.c: Likewise.
1140 * i386nbsd-tdep.c: Likewise.
1141 * i386obsd-tdep.c: Likewise.
1142 * i387-tdep.c: Likewise.
1143 * ia64-libunwind-tdep.c: Likewise.
1144 * ia64-linux-nat.c: Likewise.
1145 * inf-child.c: Likewise.
1146 * inf-ptrace.c: Likewise.
1147 * inf-ttrace.c: Likewise.
1148 * infcall.c: Likewise.
1149 * infcmd.c: Likewise.
1150 * inflow.c: Likewise.
1151 * infrun.c: Likewise.
1152 * interps.c: Likewise.
1153 * iq2000-tdep.c: Likewise.
1154 * irix5-nat.c: Likewise.
1155 * jv-exp.y: Likewise.
1156 * jv-lang.c: Likewise.
1157 * jv-typeprint.c: Likewise.
1158 * jv-valprint.c: Likewise.
1159 * language.c: Likewise.
1160 * linux-fork.c: Likewise.
1161 * linux-nat.c: Likewise.
1162 * lm32-tdep.c: Likewise.
1163 * m2-exp.y: Likewise.
1164 * m2-typeprint.c: Likewise.
1165 * m32c-tdep.c: Likewise.
1166 * m32r-linux-nat.c: Likewise.
1167 * m32r-linux-tdep.c: Likewise.
1168 * m32r-rom.c: Likewise.
1169 * m32r-tdep.c: Likewise.
1170 * m68hc11-tdep.c: Likewise.
1171 * m68k-tdep.c: Likewise.
1172 * m68kbsd-tdep.c: Likewise.
1173 * m68klinux-nat.c: Likewise.
1174 * m68klinux-tdep.c: Likewise.
1175 * m88k-tdep.c: Likewise.
1176 * machoread.c: Likewise.
1177 * macrocmd.c: Likewise.
1178 * main.c: Likewise.
1179 * mdebugread.c: Likewise.
1180 * mem-break.c: Likewise.
1181 * memattr.c: Likewise.
1182 * memory-map.c: Likewise.
1183 * mep-tdep.c: Likewise.
1184 * mi/mi-cmd-break.c: Likewise.
1185 * mi/mi-cmd-disas.c: Likewise.
1186 * mi/mi-cmd-env.c: Likewise.
1187 * mi/mi-cmd-stack.c: Likewise.
1188 * mi/mi-cmd-var.c: Likewise.
1189 * mi/mi-cmds.c: Likewise.
1190 * mi/mi-console.c: Likewise.
1191 * mi/mi-getopt.c: Likewise.
1192 * mi/mi-interp.c: Likewise.
1193 * mi/mi-main.c: Likewise.
1194 * mi/mi-parse.c: Likewise.
1195 * microblaze-rom.c: Likewise.
1196 * microblaze-tdep.c: Likewise.
1197 * mingw-hdep.c: Likewise.
1198 * minidebug.c: Likewise.
1199 * minsyms.c: Likewise.
1200 * mips-irix-tdep.c: Likewise.
1201 * mips-linux-tdep.c: Likewise.
1202 * mips-tdep.c: Likewise.
1203 * mips64obsd-tdep.c: Likewise.
1204 * mipsnbsd-tdep.c: Likewise.
1205 * mipsread.c: Likewise.
1206 * mn10300-linux-tdep.c: Likewise.
1207 * mn10300-tdep.c: Likewise.
1208 * monitor.c: Likewise.
1209 * moxie-tdep.c: Likewise.
1210 * mt-tdep.c: Likewise.
1211 * nat/linux-btrace.c: Likewise.
1212 * nat/linux-osdata.c: Likewise.
1213 * nat/linux-procfs.c: Likewise.
1214 * nat/linux-ptrace.c: Likewise.
1215 * nat/linux-waitpid.c: Likewise.
1216 * nbsd-tdep.c: Likewise.
1217 * nios2-linux-tdep.c: Likewise.
1218 * nto-procfs.c: Likewise.
1219 * nto-tdep.c: Likewise.
1220 * objc-lang.c: Likewise.
1221 * objfiles.c: Likewise.
1222 * opencl-lang.c: Likewise.
1223 * osabi.c: Likewise.
1224 * osdata.c: Likewise.
1225 * p-exp.y: Likewise.
1226 * p-lang.c: Likewise.
1227 * p-typeprint.c: Likewise.
1228 * parse.c: Likewise.
1229 * posix-hdep.c: Likewise.
1230 * ppc-linux-nat.c: Likewise.
1231 * ppc-sysv-tdep.c: Likewise.
1232 * ppcfbsd-tdep.c: Likewise.
1233 * ppcnbsd-tdep.c: Likewise.
1234 * ppcobsd-tdep.c: Likewise.
1235 * printcmd.c: Likewise.
1236 * procfs.c: Likewise.
1237 * prologue-value.c: Likewise.
1238 * python/py-auto-load.c: Likewise.
1239 * python/py-gdb-readline.c: Likewise.
1240 * ravenscar-thread.c: Likewise.
1241 * regcache.c: Likewise.
1242 * registry.c: Likewise.
1243 * remote-fileio.c: Likewise.
1244 * remote-m32r-sdi.c: Likewise.
1245 * remote-mips.c: Likewise.
1246 * remote-notif.c: Likewise.
1247 * remote-sim.c: Likewise.
1248 * remote.c: Likewise.
1249 * reverse.c: Likewise.
1250 * rs6000-aix-tdep.c: Likewise.
1251 * ser-base.c: Likewise.
1252 * ser-go32.c: Likewise.
1253 * ser-mingw.c: Likewise.
1254 * ser-pipe.c: Likewise.
1255 * ser-tcp.c: Likewise.
1256 * ser-unix.c: Likewise.
1257 * serial.c: Likewise.
1258 * sh-tdep.c: Likewise.
1259 * sh64-tdep.c: Likewise.
1260 * shnbsd-tdep.c: Likewise.
1261 * skip.c: Likewise.
1262 * sol-thread.c: Likewise.
1263 * solib-dsbt.c: Likewise.
1264 * solib-frv.c: Likewise.
1265 * solib-osf.c: Likewise.
1266 * solib-som.c: Likewise.
1267 * solib-spu.c: Likewise.
1268 * solib-target.c: Likewise.
1269 * solib.c: Likewise.
1270 * somread.c: Likewise.
1271 * source.c: Likewise.
1272 * sparc-nat.c: Likewise.
1273 * sparc-sol2-tdep.c: Likewise.
1274 * sparc-tdep.c: Likewise.
1275 * sparc64-tdep.c: Likewise.
1276 * sparc64fbsd-tdep.c: Likewise.
1277 * sparc64nbsd-tdep.c: Likewise.
1278 * sparcnbsd-tdep.c: Likewise.
1279 * spu-linux-nat.c: Likewise.
1280 * spu-multiarch.c: Likewise.
1281 * spu-tdep.c: Likewise.
1282 * stabsread.c: Likewise.
1283 * stack.c: Likewise.
1284 * std-regs.c: Likewise.
1285 * symfile.c: Likewise.
1286 * symmisc.c: Likewise.
1287 * symtab.c: Likewise.
1288 * target.c: Likewise.
1289 * thread.c: Likewise.
1290 * tilegx-linux-nat.c: Likewise.
1291 * tilegx-tdep.c: Likewise.
1292 * top.c: Likewise.
1293 * tracepoint.c: Likewise.
1294 * tui/tui-command.c: Likewise.
1295 * tui/tui-data.c: Likewise.
1296 * tui/tui-disasm.c: Likewise.
1297 * tui/tui-file.c: Likewise.
1298 * tui/tui-layout.c: Likewise.
1299 * tui/tui-out.c: Likewise.
1300 * tui/tui-regs.c: Likewise.
1301 * tui/tui-source.c: Likewise.
1302 * tui/tui-stack.c: Likewise.
1303 * tui/tui-win.c: Likewise.
1304 * tui/tui-windata.c: Likewise.
1305 * tui/tui-winsource.c: Likewise.
1306 * typeprint.c: Likewise.
1307 * ui-file.c: Likewise.
1308 * ui-out.c: Likewise.
1309 * user-regs.c: Likewise.
1310 * utils.c: Likewise.
1311 * v850-tdep.c: Likewise.
1312 * valarith.c: Likewise.
1313 * valops.c: Likewise.
1314 * valprint.c: Likewise.
1315 * value.c: Likewise.
1316 * varobj.c: Likewise.
1317 * vax-tdep.c: Likewise.
1318 * vaxnbsd-tdep.c: Likewise.
1319 * vaxobsd-tdep.c: Likewise.
1320 * windows-nat.c: Likewise.
1321 * xcoffread.c: Likewise.
1322 * xml-support.c: Likewise.
1323 * xstormy16-tdep.c: Likewise.
1324 * xtensa-linux-nat.c: Likewise.
1325
1326 2014-08-07 Gary Benson <gbenson@redhat.com>
1327
1328 * common/common-defs.h: Include gdb_assert.h.
1329 * aarch64-tdep.c: Do not include gdb_assert.h.
1330 * addrmap.c: Likewise.
1331 * aix-thread.c: Likewise.
1332 * alpha-linux-tdep.c: Likewise.
1333 * alpha-mdebug-tdep.c: Likewise.
1334 * alphanbsd-tdep.c: Likewise.
1335 * amd64-nat.c: Likewise.
1336 * amd64-tdep.c: Likewise.
1337 * amd64bsd-nat.c: Likewise.
1338 * amd64fbsd-nat.c: Likewise.
1339 * amd64fbsd-tdep.c: Likewise.
1340 * amd64nbsd-nat.c: Likewise.
1341 * amd64nbsd-tdep.c: Likewise.
1342 * amd64obsd-nat.c: Likewise.
1343 * amd64obsd-tdep.c: Likewise.
1344 * arch-utils.c: Likewise.
1345 * arm-tdep.c: Likewise.
1346 * armbsd-tdep.c: Likewise.
1347 * auxv.c: Likewise.
1348 * bcache.c: Likewise.
1349 * bfin-tdep.c: Likewise.
1350 * blockframe.c: Likewise.
1351 * breakpoint.c: Likewise.
1352 * bsd-kvm.c: Likewise.
1353 * bsd-uthread.c: Likewise.
1354 * buildsym.c: Likewise.
1355 * c-exp.y: Likewise.
1356 * c-lang.c: Likewise.
1357 * charset.c: Likewise.
1358 * cleanups.c: Likewise.
1359 * cli-out.c: Likewise.
1360 * cli/cli-decode.c: Likewise.
1361 * cli/cli-dump.c: Likewise.
1362 * cli/cli-logging.c: Likewise.
1363 * cli/cli-script.c: Likewise.
1364 * cli/cli-utils.c: Likewise.
1365 * coffread.c: Likewise.
1366 * common/common-utils.c: Likewise.
1367 * common/queue.h: Likewise.
1368 * common/signals.c: Likewise.
1369 * common/vec.h: Likewise.
1370 * complaints.c: Likewise.
1371 * completer.c: Likewise.
1372 * corelow.c: Likewise.
1373 * cp-abi.c: Likewise.
1374 * cp-name-parser.y: Likewise.
1375 * cp-namespace.c: Likewise.
1376 * cp-support.c: Likewise.
1377 * cris-tdep.c: Likewise.
1378 * dbxread.c: Likewise.
1379 * dictionary.c: Likewise.
1380 * doublest.c: Likewise.
1381 * dsrec.c: Likewise.
1382 * dummy-frame.c: Likewise.
1383 * dwarf2-frame-tailcall.c: Likewise.
1384 * dwarf2-frame.c: Likewise.
1385 * dwarf2expr.c: Likewise.
1386 * dwarf2loc.c: Likewise.
1387 * dwarf2read.c: Likewise.
1388 * eval.c: Likewise.
1389 * event-loop.c: Likewise.
1390 * exceptions.c: Likewise.
1391 * expprint.c: Likewise.
1392 * f-valprint.c: Likewise.
1393 * fbsd-nat.c: Likewise.
1394 * findvar.c: Likewise.
1395 * frame-unwind.c: Likewise.
1396 * frame.c: Likewise.
1397 * frv-tdep.c: Likewise.
1398 * gcore.c: Likewise.
1399 * gdb-dlfcn.c: Likewise.
1400 * gdb_bfd.c: Likewise.
1401 * gdbarch.c: Likewise.
1402 * gdbarch.sh: Likewise.
1403 * gdbtypes.c: Likewise.
1404 * gnu-nat.c: Likewise.
1405 * gnu-v3-abi.c: Likewise.
1406 * go-lang.c: Likewise.
1407 * guile/scm-exception.c: Likewise.
1408 * guile/scm-gsmob.c: Likewise.
1409 * guile/scm-lazy-string.c: Likewise.
1410 * guile/scm-math.c: Likewise.
1411 * guile/scm-pretty-print.c: Likewise.
1412 * guile/scm-safe-call.c: Likewise.
1413 * guile/scm-utils.c: Likewise.
1414 * guile/scm-value.c: Likewise.
1415 * h8300-tdep.c: Likewise.
1416 * hppa-hpux-nat.c: Likewise.
1417 * hppa-tdep.c: Likewise.
1418 * hppanbsd-tdep.c: Likewise.
1419 * hppaobsd-tdep.c: Likewise.
1420 * i386-darwin-nat.c: Likewise.
1421 * i386-darwin-tdep.c: Likewise.
1422 * i386-nto-tdep.c: Likewise.
1423 * i386-tdep.c: Likewise.
1424 * i386bsd-nat.c: Likewise.
1425 * i386fbsd-tdep.c: Likewise.
1426 * i386gnu-nat.c: Likewise.
1427 * i386nbsd-tdep.c: Likewise.
1428 * i386obsd-tdep.c: Likewise.
1429 * i387-tdep.c: Likewise.
1430 * ia64-libunwind-tdep.c: Likewise.
1431 * ia64-tdep.c: Likewise.
1432 * inf-ptrace.c: Likewise.
1433 * inf-ttrace.c: Likewise.
1434 * infcall.c: Likewise.
1435 * infcmd.c: Likewise.
1436 * infrun.c: Likewise.
1437 * inline-frame.c: Likewise.
1438 * interps.c: Likewise.
1439 * jv-lang.c: Likewise.
1440 * jv-typeprint.c: Likewise.
1441 * linux-fork.c: Likewise.
1442 * linux-nat.c: Likewise.
1443 * linux-thread-db.c: Likewise.
1444 * m32c-tdep.c: Likewise.
1445 * m32r-linux-nat.c: Likewise.
1446 * m32r-tdep.c: Likewise.
1447 * m68k-tdep.c: Likewise.
1448 * m68kbsd-nat.c: Likewise.
1449 * m68kbsd-tdep.c: Likewise.
1450 * m88k-tdep.c: Likewise.
1451 * machoread.c: Likewise.
1452 * macroexp.c: Likewise.
1453 * macrotab.c: Likewise.
1454 * maint.c: Likewise.
1455 * mdebugread.c: Likewise.
1456 * memory-map.c: Likewise.
1457 * mep-tdep.c: Likewise.
1458 * mi/mi-common.c: Likewise.
1459 * microblaze-tdep.c: Likewise.
1460 * mingw-hdep.c: Likewise.
1461 * mips-linux-nat.c: Likewise.
1462 * mips-linux-tdep.c: Likewise.
1463 * mips-tdep.c: Likewise.
1464 * mips64obsd-tdep.c: Likewise.
1465 * mipsnbsd-tdep.c: Likewise.
1466 * mn10300-linux-tdep.c: Likewise.
1467 * mn10300-tdep.c: Likewise.
1468 * moxie-tdep.c: Likewise.
1469 * mt-tdep.c: Likewise.
1470 * nat/linux-btrace.c: Likewise.
1471 * nat/linux-osdata.c: Likewise.
1472 * nat/linux-ptrace.c: Likewise.
1473 * nat/mips-linux-watch.c: Likewise.
1474 * nios2-linux-tdep.c: Likewise.
1475 * nios2-tdep.c: Likewise.
1476 * objc-lang.c: Likewise.
1477 * objfiles.c: Likewise.
1478 * obsd-nat.c: Likewise.
1479 * opencl-lang.c: Likewise.
1480 * osabi.c: Likewise.
1481 * parse.c: Likewise.
1482 * ppc-linux-nat.c: Likewise.
1483 * ppc-sysv-tdep.c: Likewise.
1484 * ppcfbsd-nat.c: Likewise.
1485 * ppcfbsd-tdep.c: Likewise.
1486 * ppcnbsd-nat.c: Likewise.
1487 * ppcnbsd-tdep.c: Likewise.
1488 * ppcobsd-nat.c: Likewise.
1489 * ppcobsd-tdep.c: Likewise.
1490 * printcmd.c: Likewise.
1491 * procfs.c: Likewise.
1492 * prologue-value.c: Likewise.
1493 * psymtab.c: Likewise.
1494 * python/py-lazy-string.c: Likewise.
1495 * python/py-value.c: Likewise.
1496 * regcache.c: Likewise.
1497 * reggroups.c: Likewise.
1498 * registry.c: Likewise.
1499 * remote-sim.c: Likewise.
1500 * remote.c: Likewise.
1501 * rs6000-aix-tdep.c: Likewise.
1502 * rs6000-tdep.c: Likewise.
1503 * s390-linux-tdep.c: Likewise.
1504 * score-tdep.c: Likewise.
1505 * ser-base.c: Likewise.
1506 * ser-mingw.c: Likewise.
1507 * sh-tdep.c: Likewise.
1508 * sh64-tdep.c: Likewise.
1509 * solib-darwin.c: Likewise.
1510 * solib-spu.c: Likewise.
1511 * solib-svr4.c: Likewise.
1512 * source.c: Likewise.
1513 * sparc-nat.c: Likewise.
1514 * sparc-sol2-tdep.c: Likewise.
1515 * sparc-tdep.c: Likewise.
1516 * sparc64-sol2-tdep.c: Likewise.
1517 * sparc64-tdep.c: Likewise.
1518 * sparc64fbsd-tdep.c: Likewise.
1519 * sparc64nbsd-tdep.c: Likewise.
1520 * sparc64obsd-tdep.c: Likewise.
1521 * sparcnbsd-tdep.c: Likewise.
1522 * sparcobsd-tdep.c: Likewise.
1523 * spu-multiarch.c: Likewise.
1524 * spu-tdep.c: Likewise.
1525 * stabsread.c: Likewise.
1526 * stack.c: Likewise.
1527 * symfile.c: Likewise.
1528 * symtab.c: Likewise.
1529 * target-descriptions.c: Likewise.
1530 * target-memory.c: Likewise.
1531 * target.c: Likewise.
1532 * tic6x-linux-tdep.c: Likewise.
1533 * tic6x-tdep.c: Likewise.
1534 * tilegx-linux-nat.c: Likewise.
1535 * tilegx-tdep.c: Likewise.
1536 * top.c: Likewise.
1537 * tramp-frame.c: Likewise.
1538 * tui/tui-out.c: Likewise.
1539 * tui/tui-winsource.c: Likewise.
1540 * ui-out.c: Likewise.
1541 * user-regs.c: Likewise.
1542 * utils.c: Likewise.
1543 * v850-tdep.c: Likewise.
1544 * valops.c: Likewise.
1545 * value.c: Likewise.
1546 * varobj.c: Likewise.
1547 * vax-nat.c: Likewise.
1548 * xml-syscall.c: Likewise.
1549 * xml-tdesc.c: Likewise.
1550 * xstormy16-tdep.c: Likewise.
1551 * xtensa-linux-nat.c: Likewise.
1552 * xtensa-tdep.c: Likewise.
1553
1554 2014-08-07 Gary Benson <gbenson@redhat.com>
1555
1556 * common/common-defs.h: Include common-utils.h.
1557 * defs.h: Do not include common-utils.h.
1558 * common/gdb_assert.h: Likewise.
1559 * darwin-nat.h: Likewise.
1560 * nat/linux-btrace.c: Likewise.
1561 * target/waitstatus.h: Likewise.
1562
1563 2014-08-07 Gary Benson <gbenson@redhat.com>
1564
1565 * common/common-defs.h: Include ptid.h.
1566 * defs.h: Do not include ptid.h.
1567 * inferior.h: Likewise.
1568 * infrun.h: Likewise.
1569 * nat/linux-btrace.h: Likewise.
1570 * nat/linux-osdata.h: Likewise.
1571 * target/waitstatus.h: Likewise.
1572
1573 2014-08-07 Gary Benson <gbenson@redhat.com>
1574
1575 * common/common-defs.h: Include gdb_locale.h.
1576 * defs.h: Do not include gdb_locale.h.
1577
1578 2014-08-07 Gary Benson <gbenson@redhat.com>
1579
1580 * common/common-defs.h: Include gdb/signals.h.
1581 * defs.h: Do not include gdb/signals.h.
1582
1583 2014-08-07 Gary Benson <gbenson@redhat.com>
1584
1585 * common/common-defs.h: Include pathmax.h.
1586 * defs.h: Do not include pathmax.h.
1587
1588 2014-08-07 Gary Benson <gbenson@redhat.com>
1589
1590 * common/common-defs.h: Include libiberty.h.
1591 * defs.h: Do not include libiberty.h.
1592 * common/queue.h: Likewise.
1593 * cp-name-parser.y: Likewise.
1594 * mi/mi-cmd-catch.c: Likewise.
1595 * python/python.c: Likewise.
1596
1597 2014-08-07 Gary Benson <gbenson@redhat.com>
1598
1599 * common/common-defs.h: Include ansidecl.h.
1600 * defs.h: Do not include ansidecl.h.
1601 * common/buffer.h: Likewise.
1602 * common/common-utils.h: Likewise.
1603
1604 2014-08-07 Gary Benson <gbenson@redhat.com>
1605
1606 * common/common-defs.h: Include stddef.h.
1607 * defs.h: Do not include stddef.h.
1608 * common/common-utils.h: Likewise.
1609 * amd64fbsd-nat.c: Likewise.
1610 * bcache.c: Likewise.
1611 * charset.c: Likewise.
1612 * common/buffer.h: Likewise.
1613 * common/vec.h: Likewise.
1614 * i386bsd-nat.c: Likewise.
1615 * nat/linux-btrace.h: Likewise.
1616 * ppcfbsd-nat.c: Likewise.
1617 * ppcnbsd-tdep.h: Likewise.
1618 * ppcobsd-nat.c: Likewise.
1619 * ppcobsd-tdep.h: Likewise.
1620 * python/py-gdb-readline.c: Likewise.
1621
1622 2014-08-07 Gary Benson <gbenson@redhat.com>
1623
1624 * common/common-defs.h: Include stdarg.h.
1625 * defs.h: Do not include stdarg.h.
1626 * ada-lang.c: Likewise.
1627 * common/common-utils.h: Likewise.
1628 * guile/scm-string.c: Likewise.
1629 * guile/scm-utils.c: Likewise.
1630 * m32c-tdep.c: Likewise.
1631
1632 2014-08-07 Gary Benson <gbenson@redhat.com>
1633
1634 * common/common-defs.h: Include stdlib.h.
1635 * defs.h: Do not include stdlib.h.
1636 * addrmap.c: Likewise.
1637 * bcache.c: Likewise.
1638 * common/buffer.c: Likewise.
1639 * common/common-utils.c: Likewise.
1640 * cp-name-parser.y: Likewise.
1641 * go32-nat.c: Likewise.
1642 * mn10300-linux-tdep.c: Likewise.
1643 * nat/linux-osdata.c: Likewise.
1644 * tui/tui.c: Likewise.
1645 * windows-nat.c: Likewise.
1646
1647 2014-08-07 Gary Benson <gbenson@redhat.com>
1648
1649 * common/common-defs.h: Include stdio.h.
1650 * defs.h: Do not include stdio.h.
1651 * ada-lang.c: Likewise.
1652 * common/buffer.c: Likewise.
1653 * common/common-utils.c: Likewise.
1654 * cp-name-parser.y: Likewise.
1655 * gnu-nat.c: Likewise.
1656 * go32-nat.c: Likewise.
1657 * i386gnu-nat.c: Likewise.
1658 * proc-api.c: Likewise.
1659 * proc-events.c: Likewise.
1660 * proc-flags.c: Likewise.
1661 * proc-why.c: Likewise.
1662 * python/python-internal.h: Likewise.
1663 * target-memory.c: Likewise.
1664 * tui/tui-io.c: Likewise.
1665 * tui/tui.c: Likewise.
1666
1667 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1668
1669 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1670 (scan_dyntag_auxv): Same.
1671
1672 2014-08-06 Yao Qi <yao@codesourcery.com>
1673
1674 * amd64-linux-nat.c: Remove duplicated include
1675 "x86-linux-nat.h".
1676 * i386-linux-nat.c: Likewise.
1677
1678 2014-08-06 Yao Qi <yao@codesourcery.com>
1679
1680 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1681 operand" with "Special opcode" in comments.
1682
1683 2014-08-05 Gary Benson <gbenson@redhat.com>
1684
1685 * interps.c (initialize_interps): Remove prototype.
1686 (interpreter_initialized): Remove static global.
1687 (interp_add): Do not call initialize_interps.
1688 (initialize_interps): Remove function.
1689
1690 2014-08-05 Gary Benson <gbenson@redhat.com>
1691
1692 * utils.c (vwarning): Remove spurious va_end.
1693
1694 2014-08-05 Alan Modra <amodra@gmail.com>
1695
1696 * charset.c (convert_between_encodings): Cast result of obstack_base.
1697 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1698 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1699 (read_unwind_info): Use size_t for some locals.
1700 * jit.c (finalize_symtab): Likewise.
1701 * utils.c (hashtab_obstack_allocate): Likewise.
1702 * symmisc.c (print_objfile_statistics): Update format strings.
1703
1704 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1705
1706 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1707 (Changes in GDB 7.8): ... here.
1708
1709 2014-08-04 Tom Tromey <tromey@redhat.com>
1710
1711 * target.c (set_targetdebug): New function.
1712 (initialize_targets): Pass set_targetdebug when creating "set
1713 debug target".
1714
1715 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1716
1717 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1718 if detecting a variable-sized field that is not the last field.
1719 Fix struct type length computation.
1720
1721 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1722
1723 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1724 Add debug trace.
1725
1726 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1727
1728 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1729 Remove "+ 8" offset in computation of CHAIN_VMA.
1730
1731 2014-07-31 Doug Evans <dje@google.com>
1732
1733 * inflow.c (child_terminal_inferior): Add comment.
1734 (child_terminal_ours_for_output): Add comment.
1735 (child_terminal_ours): Add comment.
1736 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1737 (linux_nat_terminal_ours): Add comment.
1738
1739 2014-07-31 Gary Benson <gbenson@redhat.com>
1740
1741 * common/btrace-common.h: Do not include defs.h or server.h.
1742 * nat/mips-linux-watch.h: Likewise.
1743 * gdb-dlfcn.h: Do not include defs.h.
1744 * tracefile.h: Likewise.
1745
1746 2014-07-30 Roland McGrath <mcgrathr@google.com>
1747
1748 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1749
1750 2014-07-30 Tom Tromey <tromey@redhat.com>
1751
1752 * bsd-kvm.c (bsd_kvm_open): Constify.
1753 * corelow.c (core_open): Constify.
1754 * ctf.c (ctf_open): Constify.
1755 * dbug-rom.c (dbug_open): Constify.
1756 * exec.c (exec_open): Constify.
1757 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1758 * microblaze-rom.c (picobug_open): Constify.
1759 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1760 Constify.
1761 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1762 * record-btrace.c (record_btrace_open): Constify.
1763 * record-full.c (record_full_core_open_1, record_full_open_1)
1764 (record_full_open): Constify.
1765 * remote-m32r-sdi.c (m32r_open): Constify.
1766 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1767 (rockhopper_open, lsi_open): Constify.
1768 * remote-sim.c (gdbsim_open): Constify.
1769 * remote.c (remote_open, extended_remote_open, remote_open_1):
1770 Constify.
1771 * target.h (struct target_ops) <to_open>: Make "arg" const.
1772 * tracefile-tfile.c (tfile_open): Constify.
1773
1774 2014-07-30 Tom Tromey <tromey@redhat.com>
1775
1776 * breakpoint.c (map_breakpoint_numbers): Update.
1777 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1778 (get_number_const): New function.
1779 (get_number): Rewrite using get_number_const.
1780 (init_number_or_range): Make "string" const.
1781 (number_is_in_list): Make "list" const.
1782 * cli/cli-utils.h (get_number_const): Declare.
1783 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1784 (init_number_or_range, number_is_in_list): Update.
1785 * printcmd.c (map_display_numbers): Update.
1786 * value.c (value_from_history_ref): Constify.
1787 * value.h (value_from_history_ref): Update.
1788
1789 2014-07-30 Tom Tromey <tromey@redhat.com>
1790
1791 * corefile.c (hook_type, call_extra_exec_file_hooks)
1792 (specify_exec_file_hook): Constify.
1793 * exec.c (exec_file_attach): Make "filename" const.
1794 * gdbcore.h (deprecated_exec_file_display_hook)
1795 (specify_exec_file_hook, exec_file_attach): Constify.
1796 * main.c (captured_main): Use catch_command_errors_const.
1797
1798 2014-07-30 Tom Tromey <tromey@redhat.com>
1799
1800 * target.c (open_target): New function.
1801 (add_target_with_completer, add_deprecated_target_alias): Use
1802 set_cmd_sfunc, set_cmd_context.
1803 (debug_to_open): Remove.
1804 (setup_target_debug): Update.
1805
1806 2014-07-30 Yao Qi <yao@codesourcery.com>
1807
1808 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1809 comments.
1810 * parse.c (exp_iterate): Update comments.
1811
1812 2014-07-30 Gary Benson <gbenson@redhat.com>
1813
1814 * common/common-defs.h: New file.
1815 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1816 * defs.h: Include common-defs.h.
1817 Do not include config.h or build-gnulib/config.h.
1818
1819 2014-07-30 Gary Benson <gbenson@redhat.com>
1820
1821 * common/common-utils.h: Do not include config.h.
1822 * nat/linux-btrace.h: Likewise.
1823
1824 2014-07-30 Gary Benson <gbenson@redhat.com>
1825
1826 * btrace.c: Include defs.h.
1827 * common/ptid.c: Include defs.h or server.h as appropriate.
1828 * nat/mips-linux-watch.c: Likewise.
1829
1830 2014-07-29 Tom Tromey <tromey@redhat.com>
1831
1832 * target.c (target_is_pushed): Simplify.
1833
1834 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1835
1836 GDB 7.8 released.
1837
1838 2014-07-29 Yao Qi <yao@codesourcery.com>
1839
1840 PR gdb/17206
1841 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1842
1843 2014-07-28 Doug Evans <xdje42@gmail.com>
1844
1845 PR guile/17203
1846 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1847 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1848 parameters.
1849
1850 2014-07-28 Will Newton <will.newton@linaro.org>
1851
1852 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1853 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1854 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1855 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1856 (THUMB2_EABI_SYSCALL): Likewise.
1857 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1858 struct tramp_frame.
1859 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1860 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1861
1862 2014-07-27 Doug Evans <xdje42@gmail.com>
1863
1864 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1865
1866 2014-07-27 Doug Evans <xdje42@gmail.com>
1867
1868 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1869
1870 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1871 Doug Evans <xdje42@gmail.com>
1872
1873 PR guile/17146
1874 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1875 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1876 * configure.ac: Try to use guild to compile an scm file, if it fails
1877 then disable guile support.
1878 * configure: Regenerate.
1879 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1880 GUILE_FILE_LIST.
1881 (GUILE_COMPILED_FILES): New variable.
1882 (GUILE_FILES) Update.
1883 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1884 (stamp-guile): Compile scm files.
1885 * guile/guile.c (boot_guile_support): New function.
1886 (standard_throw_args_p): New function.
1887 (print_standard_throw_error, print_throw_error): New functions.
1888 (handle_boot_error): New function.
1889 (initialize_scheme_side): Rewrite to call boot_guile_support.
1890 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1891 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1892
1893 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1894 Doug Evans <xdje42@gmail.com>
1895
1896 PR guile/17146
1897 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1898 * guile/lib/gdb/support.scm: New file.
1899 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1900 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1901 All uses updated.
1902 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1903 All uses updated.
1904 (%assert-type): Ditto, and renamed to assert-type.
1905 (%exception-print-style): Delete.
1906
1907 2014-07-26 Doug Evans <xdje42@gmail.com>
1908
1909 PR build/17105
1910 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1911 * configure: Regenerate.
1912 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1913 PYTHON_FILES.
1914 (PYTHON_FILES): New variable.
1915 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1916 (GUILE_FILES): New variable.
1917 (stamp-python, install-python, uninstall-python): Handle empty
1918 file list.
1919 (stamp-guile, install-guile, uninstall-guile): Ditto.
1920
1921 2014-07-26 Doug Evans <xdje42@gmail.com>
1922
1923 PR guile/17177
1924 * guile/lib/gdb.scm (pretty-printers): Export.
1925 (set-pretty-printers!): Export.
1926 * guile/lib/gdb/printing.scm (gdb module): Update.
1927 (prepend-pretty-printer!, append-pretty-printer!): Update.
1928 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1929 (pretty_printer_list_var): Delete.
1930 (pretty_printer_list): New static global.
1931 (gdbscm_pretty_printers): New function.
1932 (gdbscm_set_pretty_printers_x): New function.
1933 (ppscm_find_pretty_printer_from_gdb): Update.
1934 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1935 (gdbscm_initialize_pretty_printers): Update.
1936
1937 2014-07-26 Doug Evans <xdje42@gmail.com>
1938
1939 PR 17185
1940 * configure.ac: Add check for header gc/gc.h.
1941 Add check for function setenv.
1942 * configure: Regenerate.
1943 * config.in: Regenerate.
1944 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1945
1946 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1947
1948 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1949 variation in gdbarch matching.
1950
1951 2014-07-25 Tom Tromey <tromey@redhat.com>
1952
1953 * exec.c (using_exec_ops): Remove.
1954 (exec_close_1): Update. Remove extraneous block, reindent.
1955 (add_target_sections): Use target_is_pushed.
1956
1957 2014-07-25 Pedro Alves <palves@redhat.com>
1958
1959 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1960 * monitor.c (monitor_create_inferior): Likewise.
1961 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1962 * remote-sim.c (gdbsim_create_inferior): Likewise.
1963 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1964 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1965 * windows-nat.c (do_initial_windows_stuff): Likewise.
1966
1967 2014-07-25 Pedro Alves <palves@redhat.com>
1968
1969 * NEWS: Mention signal passing and "signal" command changes.
1970 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1971 comment.
1972 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1973 call.
1974 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1975 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1976 (jump_command): Adjust clear_proceed_status call.
1977 (signal_command): Warn if other thread that are resumed have
1978 signals that will be delivered. Adjust clear_proceed_status call.
1979 (until_next_command, finish_command)
1980 (proceed_after_attach_callback, attach_command_post_wait)
1981 (attach_command): Adjust clear_proceed_status call.
1982 * infrun.c (proceed_after_vfork_done): Likewise.
1983 (proceed_after_attach_callback): Adjust comment.
1984 (clear_proceed_status_thread): Clear stop_signal if not in pass
1985 state.
1986 (clear_proceed_status_callback): Delete.
1987 (clear_proceed_status): New 'step' parameter. Only clear the
1988 proceed status of threads the command being prepared is about to
1989 resume.
1990 (proceed): If passed in an explicit signal, override stop_signal
1991 with it. Don't pass the last stop signal to the thread we're
1992 resuming.
1993 (init_wait_for_inferior): Adjust clear_proceed_status call.
1994 (switch_back_to_stepped_thread): Clear the signal if it should not
1995 be passed.
1996 * infrun.h (clear_proceed_status): New 'step' parameter.
1997 (user_visible_resume_ptid): Add comment.
1998 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1999 signal is in pass state.
2000 * remote.c (append_pending_thread_resumptions): Likewise.
2001 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2002
2003 2014-07-25 Tom Tromey <tromey@redhat.com>
2004
2005 * target.h (target_stopped_data_address)
2006 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2007 parentheses.
2008
2009 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2010
2011 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2012 comments.
2013 (avr_pointer_to_address): Likewise.
2014
2015 2014-07-24 Tom Tromey <tromey@redhat.com>
2016
2017 * monitor.c (compile_pattern): Update.
2018 * target.h (struct target_ops) <to_shortname, to_longname,
2019 to_doc>: Now const.
2020
2021 2014-07-24 Tom Tromey <tromey@redhat.com>
2022
2023 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2024 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2025 (add_info_alias, add_com): Make "doc" const.
2026 (print_doc_line): Make "str" const.
2027 (delete_cmd): Update.
2028 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2029 (print_doc_line): Update.
2030 * cli/cli-script.c (document_command): Update.
2031 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2032 (add_com, add_info, add_info_alias): Update.
2033 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2034 * python/py-cmd.c (cmdpy_destroyer): Update.
2035
2036 2014-07-24 Tom Tromey <tromey@redhat.com>
2037
2038 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2039 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2040 (help_cmd_list): Constify.
2041 (lookup_cmd): Update.
2042 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2043 const.
2044 (help_cmd_list, apropos_cmd): Update.
2045 * cli/cli-script.c (show_user): Update.
2046 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2047 * cli/cli-setshow.h (cmd_show_list): Update.
2048 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2049 (cmd_show_list): Update.
2050 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2051 * python/py-cmd.c (cmdpy_destroyer): Update.
2052
2053 2014-07-24 Tom Tromey <tromey@redhat.com>
2054
2055 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2056 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2057 const.
2058 * command.h (deprecate_cmd): Update.
2059 * maint.c (maintenance_do_deprecate): Add casts.
2060
2061 2014-07-24 Tom Tromey <tromey@redhat.com>
2062
2063 * cli/cli-decode.c (help_cmd): Make parameter "const".
2064 * cli/cli-decode.h (help_cmd): Update.
2065
2066 2014-07-24 Tom Tromey <tromey@redhat.com>
2067
2068 * stack.c (up_silently_base, down_silently_base): Make argument
2069 const.
2070
2071 2014-07-24 Tom Tromey <tromey@redhat.com>
2072
2073 * solib.c (solib_add): Make "pattern" const.
2074 * solib.h (solib_add): Update.
2075
2076 2014-07-24 Tom Tromey <tromey@redhat.com>
2077
2078 * remote.c (remote_serial_open, print_packet, putpkt)
2079 (putpkt_binary): Constify.
2080 * remote.h (putpkt): Update.
2081
2082 2014-07-24 Tom Tromey <tromey@redhat.com>
2083
2084 * monitor.c (monitor_open): Make "args" const.
2085 * monitor.h (monitor_open): Update.
2086
2087 2014-07-24 Tom Tromey <tromey@redhat.com>
2088
2089 * maint.c (match_bfd_flags): Make "string" const.
2090 (print_bfd_section_info): Remove casts.
2091 (print_objfile_section_info): Make "string" const.
2092
2093 2014-07-24 Tom Tromey <tromey@redhat.com>
2094
2095 * inf-child.c (inf_child_open_target): Make "arg" const.
2096 * inf-child.h (inf_child_open_target): Update.
2097
2098 2014-07-24 Tom Tromey <tromey@redhat.com>
2099
2100 * environ.c (unset_in_environ): Make "var" const.
2101 * environ.h (unset_in_environ): Update.
2102
2103 2014-07-24 Tom Tromey <tromey@redhat.com>
2104
2105 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2106 Make "cmd" const.
2107 (scan_filename_with_cleanup): Likewise.
2108 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2109 Make arguments const.
2110 (restore_command): Update.
2111
2112 2014-07-24 Pedro Alves <palves@redhat.com>
2113
2114 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2115
2116 2014-07-24 Tom Tromey <tromey@redhat.com>
2117 Gary Benson <gbenson@redhat.com>
2118
2119 * nat/linux-ptrace.c (additional_flags): New global.
2120 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2121 additional_flags; don't check GDBSERVER.
2122 (linux_ptrace_set_additional_flags): New function.
2123 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2124 Declare.
2125 * linux-nat.c (_initialize_linux_nat): Call
2126 linux_ptrace_set_additional_flags.
2127
2128 2014-07-24 Tom Tromey <tromey@redhat.com>
2129
2130 * make-target-delegates (munge_type, write_debugmethod): New
2131 functions.
2132 (debug_names): New global.
2133 ($TARGET_DEBUG_PRINTER): New global.
2134 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2135 name.
2136 Write debug methods. Generate init_debug_target.
2137 * target-debug.h: New file.
2138 * target-delegates.c: Rebuild.
2139 * target.c: Include target-debug.h.
2140 (debug_target): Hoist definition.
2141 (target_kill, target_get_section_table, target_memory_map)
2142 (target_flash_erase, target_flash_done, target_detach)
2143 (target_disconnect, target_wait, target_resume)
2144 (target_pass_signals, target_program_signals, target_follow_fork)
2145 (target_mourn_inferior, target_search_memory)
2146 (target_thread_address_space, target_close)
2147 (target_find_new_threads, target_core_of_thread)
2148 (target_verify_memory, target_insert_mask_watchpoint)
2149 (target_remove_mask_watchpoint): Remove targetdebug code.
2150 (debug_to_post_attach, debug_to_prepare_to_store)
2151 (debug_to_files_info, debug_to_insert_breakpoint)
2152 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2153 (debug_to_region_ok_for_hw_watchpoint)
2154 (debug_to_can_accel_watchpoint_condition)
2155 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2156 (debug_to_watchpoint_addr_within_range)
2157 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2158 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2159 (debug_to_terminal_init, debug_to_terminal_inferior)
2160 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2161 (debug_to_terminal_save_ours, debug_to_terminal_info)
2162 (debug_to_load, debug_to_post_startup_inferior)
2163 (debug_to_insert_fork_catchpoint)
2164 (debug_to_remove_fork_catchpoint)
2165 (debug_to_insert_vfork_catchpoint)
2166 (debug_to_remove_vfork_catchpoint)
2167 (debug_to_insert_exec_catchpoint)
2168 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2169 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2170 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2171 (setup_target_debug): Call init_debug_target.
2172 * target.h (TARGET_DEBUG_PRINTER): New macro.
2173 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2174 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2175
2176 2014-07-24 Gary Benson <gbenson@redhat.com>
2177
2178 * exceptions.h (throw_vfatal): Renamed to...
2179 (throw_vquit): New declaration.
2180 (throw_quit): Likewise.
2181 * exceptions.c (throw_vfatal): Renamed to...
2182 (throw_vquit): New function.
2183 (throw_quit): Likewise.
2184 (throw_error): Call throw_verror rather than throw_it.
2185 * utils.h (vfatal): Removed.
2186 (fatal): Likewise.
2187 * utils.c (vfatal): Removed.
2188 (fatal): Likewise.
2189 (internal_verror): Replaced call to fatal with call to throw_quit.
2190 (quit): Replaced calls to fatal with calls to throw_quit.
2191
2192 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2193
2194 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2195 target_read_code.
2196
2197 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2198
2199 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2200 less than zero in conditional expression.
2201
2202 2014-07-23 Tom Tromey <tromey@redhat.com>
2203
2204 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2205 ($INTRO_PART): Don't match whitespace.
2206 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2207 argument matching.
2208 ($METHOD): Add $METHOD_TRAILER.
2209 (trim): Rewrite.
2210 (scan_target_h): New sub.
2211 Change main loop not to collect state.
2212 * target-delegates.c: Rebuild.
2213
2214 2014-07-23 Gary Benson <gbenson@redhat.com>
2215
2216 * cp-support.c (gdb_demangle): Fix build on systems without
2217 sigaltstack.
2218
2219 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2220
2221 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2222 for reference entry value target data value.
2223
2224 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2225
2226 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2227 value_available_contents_eq.
2228
2229 2014-07-22 Pedro Alves <palves@redhat.com>
2230
2231 * value.c (allocate_optimized_out_value): Don't mark value as
2232 non-lazy.
2233
2234 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2235
2236 * MAINTAINERS (Write After Approval): Update my email address.
2237
2238 2014-07-20 Doug Evans <dje@google.com>
2239
2240 PR server/17147
2241 * remote.c (putpkt_binary): Add text to error message.
2242
2243 2014-07-20 Yao Qi <yao@codesourcery.com>
2244
2245 * eval.c: Remove "Chill" from comments.
2246 * gdbtypes.h: Likewise.
2247 * symtab.h: Likewise.
2248
2249 2014-07-20 Yao Qi <yao@codesourcery.com>
2250
2251 * std-operator.def: Update comments to TERNOP_SLICE.
2252
2253 2014-07-20 Yao Qi <yao@codesourcery.com>
2254
2255 * std-operator.def: Remove BINOP_RANGE.
2256 * breakpoint.c (watchpoint_exp_is_const): Update.
2257 * expprint.c (dump_subexp_body_standard): Likewise.
2258 * eval.c (init_array_element): Remove dead code.
2259 (evaluate_subexp_standard): Likewise.
2260
2261 2014-07-20 Yao Qi <yao@codesourcery.com>
2262
2263 * std-operator.def: Remove BINOP_IN.
2264 * breakpoint.c (watchpoint_exp_is_const): Update.
2265 * eval.c (evaluate_subexp_standard): Likewise.
2266 * expprint.c (dump_subexp_body_standard): Likewise.
2267
2268 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2269
2270 * microblaze-tdep.c (microblaze_register_names): Add
2271 the rshr and rslr register names.
2272 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2273 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2274 Use of tdesc_numbered_register. Use of
2275 microblaze_register_g_packet_guesses. Use of
2276 tdesc_use_registers. Use of set_gdbarch_register_type.
2277 (microblaze_register_g_packet_guesses): New.
2278 * microblaze-tdep.h (microblaze_reg_num): Add
2279 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2280 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2281 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2282 * features/microblaze-core.xml: New file.
2283 * features/microblaze-stack-protect.xml: New file.
2284 * features/microblaze-with-stack-protect.c: New file.
2285 * features/microblaze-with-stack-protect.xml: New file.
2286 * features/microblaze.xml: New file.
2287 * features/microblaze.c: New file.
2288 * features/Makefile (microblaze-with-stack-protect): Add
2289 microblaze-with-stack-protect microblaze and microblaze-expedite.
2290 * regformats/microblaze-with-stack-protect.dat: New file.
2291 * regformats/microblaze.dat: New file.
2292 * doc/gdb.texinfo (MicroBlaze Features): Added.
2293
2294 2014-07-18 Tom Tromey <tromey@redhat.com>
2295
2296 * exec.c (exec_ops): Now static.
2297 * exec.h (exec_ops): Don't declare.
2298
2299 2014-07-18 Tom Tromey <tromey@redhat.com>
2300
2301 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2302 to find_target_beneath.
2303 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2304 find_target_beneath.
2305 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2306
2307 2014-07-18 Tom Tromey <tromey@redhat.com>
2308
2309 PR gdb/17130:
2310 * utils.c (quit): Use target_supports_terminal_ours.
2311 * target.h (target_supports_terminal_ours): Declare.
2312 * target.c (target_supports_delete_record): Don't check
2313 to_delete_record against NULL.
2314 (target_supports_terminal_ours): New function.
2315
2316 2014-07-18 Tom Tromey <tromey@redhat.com>
2317
2318 PR gdb/17130:
2319 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2320 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2321 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2322 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2323 * windows-nat.c (windows_xfer_partial): Always delegate.
2324 * record-btrace.c (record_btrace_xfer_partial): Simplify
2325 delegation.
2326 (record_btrace_fetch_registers, record_btrace_store_registers)
2327 (record_btrace_prepare_to_store, record_btrace_resume)
2328 (record_btrace_wait, record_btrace_find_new_threads)
2329 (record_btrace_thread_alive): Likewise.
2330 * procfs.c (procfs_xfer_partial): Always delegate.
2331 * corelow.c (core_xfer_partial): Always delegate.
2332 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2333
2334 2014-07-18 Tom Tromey <tromey@redhat.com>
2335
2336 * exec.c (exec_make_note_section): Move earlier.
2337
2338 2014-07-17 Doug Evans <dje@google.com>
2339
2340 PR gdb/17170
2341 * maint.c (count_symtabs_and_blocks): Handle NULL
2342 current_program_space.
2343 (report_command_stats): Check global enabled flag in addition to
2344 recorded enabled flag.
2345 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2346
2347 2014-07-16 Pedro Alves <palves@redhat.com>
2348
2349 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2350
2351 2014-07-16 Tom Tromey <tromey@redhat.com>
2352
2353 * target.h (struct target_ops) <to_delete_record>: Reformat
2354 comment.
2355
2356 2014-07-16 Tom Tromey <tromey@redhat.com>
2357
2358 * target-delegates.c: Rebuild.
2359
2360 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2361
2362 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2363 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2364 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2365 (avr_pointer_to_address): Likewise.
2366 (avr_address_class_type_flags): New function.
2367 (avr_address_class_type_flags_to_name): Likewise.
2368 (avr_address_class_name_to_type_flags): Likewise.
2369 (avr_gdbarch_init): Set address_class_type_flags,
2370 address_class_type_flags_to_name and
2371 address_class_name_to_type_flags.
2372
2373 2014-07-15 Pedro Alves <palves@redhat.com>
2374
2375 * linux-nat.c (kill_callback): Save errno and work with saved
2376 copy.
2377
2378 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2379
2380 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2381
2382 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2383
2384 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2385 breakpoint support correctly.
2386
2387 2014-07-14 Pedro Alves <palves@redhat.com>
2388
2389 * utils.c (prompt_for_continue): Call target_terminal_ours.
2390
2391 2014-07-14 Pedro Alves <palves@redhat.com>
2392
2393 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2394 catch_errors. Don't re-enable stdin or notify observers where,
2395 and rethrow error.
2396 (fetch_inferior_event_wrapper): Delete.
2397
2398 2014-07-14 Pedro Alves <palves@redhat.com>
2399
2400 PR gdb/17072
2401 * top.c: Include "inf-loop.h".
2402 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2403 field.
2404 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2405 was async before.
2406 (gdb_readline_wrapper): Store whether the target is async, and
2407 make it sync.
2408
2409 2014-07-14 Pedro Alves <palves@redhat.com>
2410
2411 PR gdb/17072
2412 * top.c (gdb_readline_wrapper_line): Tweak comment.
2413 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2414 the input handler callback.
2415
2416 2014-07-14 Pedro Alves <palves@redhat.com>
2417
2418 PR gdb/17072
2419 * main.c: Include event-top.h.
2420 (handle_command_errors): New function.
2421 (catch_command_errors, catch_command_errors_const): Use it.
2422
2423 2014-07-14 Pedro Alves <palves@redhat.com>
2424
2425 * exceptions.c (catch_command_errors, catch_command_errors_const):
2426 Moved to main.c.
2427 * exceptions.h (catch_command_errors_ftype)
2428 (catch_command_errors_const_ftype): Moved to main.c.
2429 (catch_command_errors, catch_command_errors_const): Delete
2430 declarations.
2431 * main.c (catch_command_errors_ftype)
2432 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2433 (catch_command_errors, catch_command_errors_const)): Moved here
2434 from exceptions.c and make static.
2435
2436 2014-07-14 Pedro Alves <palves@redhat.com>
2437
2438 * exceptions.c (print_any_exception): Delete.
2439 (catch_exceptions_with_msg): Use exception_print instead of
2440 print_any_exception.
2441 (catch_errors): Use exception_fprintf instead of
2442 print_any_exception.
2443 (catch_command_errors, catch_command_errors_const): Use
2444 exception_print instead of print_any_exception.
2445
2446 2014-07-14 Pedro Alves <palves@redhat.com>
2447
2448 * infcall.c (run_inferior_call): Set 'sync_execution' while
2449 running the inferior call.
2450
2451 2014-07-14 Pedro Alves <palves@redhat.com>
2452
2453 * value.c (value_contents_equal): Delete function.
2454 * value.h (value_contents_equal): Delete declaration.
2455
2456 2014-07-14 Tom Tromey <tromey@redhat.com>
2457
2458 PR exp/17106:
2459 * gdbtypes.c (is_dynamic_type_internal): New function, from
2460 is_dynamic_type.
2461 (is_dynamic_type): Rewrite.
2462 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2463 (resolve_dynamic_struct): Likewise.
2464 (resolve_dynamic_type_internal): New function, from
2465 resolve_dynamic_type.
2466 (resolve_dynamic_type): Rewrite.
2467
2468 2014-07-14 Tom Tromey <tromey@redhat.com>
2469
2470 * target.c (target_require_runnable): Also check record_stratum.
2471 Update comment.
2472
2473 2014-07-11 Yao Qi <yao@codesourcery.com>
2474
2475 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2476 thumb_instruction_restores_sp return true.
2477
2478 2014-07-11 Yao Qi <yao@codesourcery.com>
2479
2480 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2481 (thumb_in_function_epilogue_p): Call
2482 thumb_instruction_restores_sp.
2483
2484 2014-07-11 Yao Qi <yao@codesourcery.com>
2485
2486 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2487 'add sp, #imm'.
2488 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2489
2490 2014-07-11 Gary Benson <gbenson@redhat.com>
2491
2492 * amd64-linux-nat.c (gdbcore.h): Remove include.
2493 (regset.h): Likewise.
2494 (nat/linux-btrace.h): Likewise.
2495 (btrace.h): Likewise.
2496 (gdb_assert.h): Likewise.
2497 (string.h): Likewise.
2498 (sys/uio.h): Likewise.
2499 (sys/debugreg.h): Likewise.
2500 (sys/syscall.h): Likewise.
2501 (sys/procfs.h): Likewise.
2502 (sys/user.h): Likewise.
2503 (asm/ptrace.h): Likewise.
2504 (i386-nat.h): Likewise.
2505 * i386-linux-nat.c (i386-nat.h): Likewise.
2506 (regset.h): Likewise.
2507 (target.h): Likewise.
2508 (linux-nat.h): Likewise.
2509 (nat/linux-btrace.h): Likewise.
2510 (btrace.h): Likewise.
2511 (gdb_assert.h): Likewise.
2512 (string.h): Likewise.
2513 (sys/uio.h): Likewise.
2514 (sys/user.h): Likewise.
2515 (sys/procfs.h): Likewise.
2516 (sys/reg.h): Likewise.
2517 (sys/debugreg.h): Likewise.
2518 (ORIG_EAX): Remove definition.
2519
2520 2014-07-11 Gary Benson <gbenson@redhat.com>
2521
2522 * i386-linux-nat.h: New file.
2523 * x86-linux-nat.h: Likewise.
2524 * x86-linux-nat.c: Likewise.
2525 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2526 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2527 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2528 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2529 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2530 (PTRACE_SETREGSET): Likewise.
2531 (arch_lwp_info): Now in x86-linux-nat.c.
2532 (have_ptrace_getregset): Now in x86-linux-nat.h.
2533 (x86_linux_dr_get): Now in x86-linux-nat.c.
2534 (x86_linux_dr_set): Likewise.
2535 (x86_linux_dr_get_addr): Likewise.
2536 (x86_linux_dr_get_control): Likewise.
2537 (x86_linux_dr_get_status): Likewise.
2538 (update_debug_registers_callback): Likewise.
2539 (x86_linux_dr_set_control): Likewise.
2540 (x86_linux_dr_set_addr): Likewise.
2541 (x86_linux_prepare_to_resume): Likewise.
2542 (x86_linux_new_thread): Likewise.
2543 (x86_linux_new_fork): Likewise.
2544 (x86_linux_get_thread_area): Likewise.
2545 (super_post_startup_inferior): Likewise.
2546 (x86_linux_child_post_startup_inferior): Likewise.
2547 (AMD64_LINUX_USER64_CS): Likewise.
2548 (AMD64_LINUX_X32_DS): Likewise.
2549 (x86_linux_read_description): Likewise.
2550 (x86_linux_enable_btrace): Likewise.
2551 (x86_linux_disable_btrace): Likewise.
2552 (x86_linux_teardown_btrace): Likewise.
2553 (x86_linux_read_btrace): Likewise.
2554 (x86_linux_create_target): Likewise.
2555 (x86_linux_add_target): Likewise.
2556 * i386-linux-nat.c (x86-linux-nat.h): New include.
2557 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2558 (PTRACE_SETREGSET): Likewise.
2559 (arch_lwp_info): Now in x86-linux-nat.c.
2560 (have_ptrace_getregset): Now in x86-linux-nat.h.
2561 (x86_linux_dr_get): Now in x86-linux-nat.c.
2562 (x86_linux_dr_set): Likewise.
2563 (x86_linux_dr_get_addr): Likewise.
2564 (x86_linux_dr_get_control): Likewise.
2565 (x86_linux_dr_get_status): Likewise.
2566 (update_debug_registers_callback): Likewise.
2567 (x86_linux_dr_set_control): Likewise.
2568 (x86_linux_dr_set_addr): Likewise.
2569 (x86_linux_prepare_to_resume): Likewise.
2570 (x86_linux_new_thread): Likewise.
2571 (x86_linux_new_fork): Likewise.
2572 (x86_linux_get_thread_area): Likewise.
2573 (super_post_startup_inferior): Likewise.
2574 (x86_linux_child_post_startup_inferior): Likewise.
2575 (AMD64_LINUX_USER64_CS): Likewise.
2576 (AMD64_LINUX_X32_DS): Likewise.
2577 (x86_linux_read_description): Likewise.
2578 (x86_linux_enable_btrace): Likewise.
2579 (x86_linux_disable_btrace): Likewise.
2580 (x86_linux_teardown_btrace): Likewise.
2581 (x86_linux_read_btrace): Likewise.
2582 (x86_linux_create_target): Likewise.
2583 (x86_linux_add_target): Likewise.
2584
2585 2014-07-11 Gary Benson <gbenson@redhat.com>
2586
2587 * amd64-linux-nat.c: Comment and whitespace changes.
2588 * i386-linux-nat.c: Comment and whitespace changes.
2589
2590 2014-07-11 Gary Benson <gbenson@redhat.com>
2591
2592 * amd64-linux-nat.c (x86_linux_create_target): New function.
2593 (x86_linux_add_target): Likewise.
2594 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2595 * i386-linux-nat.c (x86_linux_create_target): New function.
2596 (x86_linux_add_target): Likewise.
2597 (_initialize_i386_linux_nat): Delegate to the above new functions.
2598
2599 2014-07-11 Gary Benson <gbenson@redhat.com>
2600
2601 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2602 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2603 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2604 (ps_get_thread_area): Delegate to the above.
2605
2606 2014-07-11 Gary Benson <gbenson@redhat.com>
2607
2608 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2609 x86_linux_read_description. All uses updated. amd64-specific
2610 code conditionalized. Conditionalized i386-specific code added.
2611 Redundant cast removed.
2612 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2613 x86_linux_read_description. All uses updated. i386-specific
2614 code conditionalized. Conditionalized amd64-specific code added.
2615 One sizeof replaced with the actual type it is describing.
2616
2617 2014-07-11 Gary Benson <gbenson@redhat.com>
2618
2619 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2620 x86_linux_dr_get. All uses updated.
2621 (amd64_linux_dr_set): Renamed to
2622 x86_linux_dr_set. All uses updated.
2623 (amd64_linux_dr_get_addr): Renamed to
2624 x86_linux_dr_get_addr. All uses updated.
2625 (amd64_linux_dr_get_control): Renamed to
2626 x86_linux_dr_get_control. All uses updated.
2627 (amd64_linux_dr_get_status): Renamed to
2628 x86_linux_dr_get_status. All uses updated.
2629 (amd64_linux_dr_set_control): Renamed to
2630 x86_linux_dr_set_control. All uses updated.
2631 (amd64_linux_dr_set_addr): Renamed to
2632 x86_linux_dr_set_addr. All uses updated.
2633 (amd64_linux_prepare_to_resume): Renamed to
2634 x86_linux_prepare_to_resume. All uses updated.
2635 (amd64_linux_new_thread): Renamed to
2636 x86_linux_new_thread. All uses updated.
2637 (amd64_linux_new_fork): Renamed to
2638 x86_linux_new_fork. All uses updated.
2639 (amd64_linux_child_post_startup_inferior): Renamed to
2640 x86_linux_child_post_startup_inferior. All uses updated.
2641 (amd64_linux_enable_btrace): Renamed to
2642 x86_linux_enable_btrace. All uses updated.
2643 (amd64_linux_disable_btrace): Renamed to
2644 x86_linux_disable_btrace. All uses updated.
2645 (amd64_linux_teardown_btrace): Renamed to
2646 x86_linux_teardown_btrace. All uses updated.
2647 (amd64_linux_read_btrace): Renamed to
2648 x86_linux_read_btrace. All uses updated.
2649 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2650 x86_linux_dr_get. All uses updated.
2651 (i386_linux_dr_set): Renamed to
2652 x86_linux_dr_set. All uses updated.
2653 (i386_linux_dr_get_addr): Renamed to
2654 x86_linux_dr_get_addr. All uses updated.
2655 (i386_linux_dr_get_control): Renamed to
2656 x86_linux_dr_get_control. All uses updated.
2657 (i386_linux_dr_get_status): Renamed to
2658 x86_linux_dr_get_status. All uses updated.
2659 (i386_linux_dr_set_control): Renamed to
2660 x86_linux_dr_set_control. All uses updated.
2661 (i386_linux_dr_set_addr): Renamed to
2662 x86_linux_dr_set_addr. All uses updated.
2663 (i386_linux_prepare_to_resume): Renamed to
2664 x86_linux_prepare_to_resume. All uses updated.
2665 (i386_linux_new_thread): Renamed to
2666 x86_linux_new_thread. All uses updated.
2667 (i386_linux_new_fork): Renamed to
2668 x86_linux_new_fork. All uses updated.
2669 (i386_linux_child_post_startup_inferior): Renamed to
2670 x86_linux_child_post_startup_inferior. All uses updated.
2671 (i386_linux_enable_btrace): Renamed to
2672 x86_linux_enable_btrace. All uses updated.
2673 (i386_linux_disable_btrace): Renamed to
2674 x86_linux_disable_btrace. All uses updated.
2675 (i386_linux_teardown_btrace): Renamed to
2676 x86_linux_teardown_btrace. All uses updated.
2677 (i386_linux_read_btrace): Renamed to
2678 x86_linux_read_btrace. All uses updated.
2679
2680 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2681
2682 * remote.c (extended_remote_post_attach): New function.
2683 (init_extended_remote_ops): Install it as to_post_attach method.
2684
2685 2014-07-09 Pedro Alves <palves@redhat.com>
2686
2687 * infcmd.c (attach_command_post_wait): Don't call
2688 target_terminal_inferior here.
2689 (attach_command): Call it here instead.
2690
2691 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2692
2693 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2694 field.
2695 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2696 from varobj.c, with additional checks.
2697 (c_varobj_ops): Fill in is_path_expr_parent field.
2698 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2699 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2700 field.
2701 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2702 ops method.
2703 (varobj_default_is_path_expr_parent): New function.
2704 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2705 (varobj_default_is_path_expr_parent): Declare new function.
2706
2707 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2708
2709 * infcmd.c (finish_backward): Turn internal error into normal error.
2710
2711 2014-07-07 Pedro Alves <palves@redhat.com>
2712
2713 PR gdb/17096
2714 * remote.c (async_handle_remote_sigint)
2715 (async_handle_remote_sigint_twice): Call
2716 gdb_call_async_signal_handler instead of
2717 mark_async_signal_handler.
2718
2719 2014-07-07 Tom Tromey <tromey@redhat.com>
2720
2721 * target-delegates.c: Rebuild.
2722 * target.c (target_info_record): Remove.
2723 * record.c (info_record_command): Unconditionally call
2724 to_info_record.
2725 * target.h (struct target_ops) <to_info_record>: Use
2726 TARGET_DEFAULT_IGNORE.
2727 (target_info_record): Remove.
2728
2729 2014-07-07 Tom Tromey <tromey@redhat.com>
2730
2731 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2732 TARGET_DEFAULT_NORETURN.
2733 * target.c (generic_tls_error): New function.
2734 (target_translate_tls_address): Don't search target stack.
2735 * target-delegates.c: Rebuild.
2736 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2737 stack.
2738 * linux-thread-db.c (thread_db_get_thread_local_address):
2739 Unconditionally call beneath target.
2740
2741 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2742
2743 * cli/cli-logging.c (pop_output_files): Assign targerr to
2744 gdb_stdtargerr.
2745
2746 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2747
2748 * MAINTAINERS (Write After Approval): Update my email address.
2749
2750 2014-07-02 Gary Benson <gbenson@redhat.com>
2751
2752 * proc-service.c (ps_xfer_memory): Update comment.
2753 (ps_pstop): Remove unused function.
2754 (ps_pcontinue): Likewise.
2755 (ps_lstop): Likewise.
2756 (ps_lcontinue): Likewise.
2757 (ps_lgetxregsize): Likewise.
2758 (ps_lgetxregs): Likewise.
2759 (ps_lsetxregs): Likewise.
2760 (ps_plog): Likewise.
2761 (ps_ptread): Likewise.
2762 (ps_ptwrite): Likewise.
2763
2764 2014-07-01 Mark Wielaard <mjw@redhat.com>
2765
2766 * dwarf2read.c (add_array_cv_type): New function.
2767 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2768 (read_tag_volatile_type): Likewise.
2769
2770 2014-07-01 Tom Tromey <tromey@redhat.com>
2771
2772 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2773 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2774 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2775 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2776 * command.h (cmd_cfunc_ftype): Move earlier.
2777 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2778 (add_com, add_info): Use cmd_cfunc_ftype.
2779
2780 2014-06-30 Tom Tromey <tromey@redhat.com>
2781
2782 * symtab.c (operator_chars): Make parameters and return type
2783 const.
2784 (file_matches): Make "files" const.
2785 (struct search_symbols_data) <files>: Now const.
2786 (search_symbols): Make "regexp" and "files" parameters const.
2787 Update.
2788 (symtab_symbol_info): Remove cast.
2789 (rbreak_command): Update.
2790 * symtab.h (search_symbols): Update.
2791
2792 2014-06-27 Yao Qi <yao@codesourcery.com>
2793
2794 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2795 Change parameter type to 'struct thread_info *'. Caller
2796 updated.
2797 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2798 Update declaration.
2799 * dummy-frame.c (struct dummy_frame_id): New.
2800 (dummy_frame_id_eq): New function.
2801 (struct dummy_frame) <id>: Change its type to 'struct
2802 dummy_frame_id'.
2803 (dummy_frame_push): Add parameter ptid and save it in
2804 dummy_frame_id.
2805 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2806 inferior_ptid.
2807 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2808 to inferior_ptid.
2809 (lookup_dummy_frame): Change parameter type to 'struct
2810 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2811 instead of frame_id_eq.
2812 (dummy_frame_pop): Add parameter ptid. Callers updated.
2813 Update comments. Compose dummy_frame_id and pass it to
2814 lookup_dummy_frame.
2815 (dummy_frame_discard): Add parameter ptid.
2816 (dummy_frame_sniffer): Compose dummy_frame_id and call
2817 dummy_frame_id_eq instead of frame_id_eq.
2818 (fprint_dummy_frames): Print ptid.
2819 * dummy-frame.h: Remove comments.
2820 (dummy_frame_push): Add ptid in declaration.
2821 (dummy_frame_pop, dummy_frame_discard): Likewise.
2822
2823 2014-06-26 Tom Tromey <tromey@redhat.com>
2824
2825 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2826 * command.h (error_no_arg): Update.
2827
2828 2014-06-26 Tom Tromey <tromey@redhat.com>
2829
2830 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2831 (do_show_command): Make "arg" const.
2832 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2833
2834 2014-06-26 Tom Tromey <tromey@redhat.com>
2835
2836 * record-full.c (record_full_get_bookmark): Make "args" const.
2837 (record_full_goto_bookmark): Make "raw_bookmark" const.
2838 * record.c (record_goto): New function.
2839 (cmd_record_goto): Use it. Now static.
2840 * record.h (record_goto): Declare.
2841 (cmd_record_goto): Remove declaration.
2842 * target-delegates.c: Rebuild.
2843 * target.h (struct target_ops) <to_get_bookmark,
2844 to_goto_bookmark>: Make parameter const.
2845
2846 2014-06-26 Tom Tromey <tromey@redhat.com>
2847
2848 * defs.h (generic_load): Update.
2849 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2850 * monitor.c (monitor_load): Make "args" const.
2851 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2852 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2853 const.
2854 (mips_load): Make "file" const.
2855 * remote-sim.c (gdbsim_load): Make "args" const.
2856 * remote.c (remote_load): Make "name" const.
2857 * symfile.c (generic_load): Make "args" const.
2858 * target-delegates.c: Rebuild.
2859 * target.c (target_load): Make "arg" const.
2860 (debug_to_load): Make "args" const.
2861 * target.h (struct target_ops) <to_load>: Make parameter const.
2862 (target_load): Update.
2863
2864 2014-06-26 Tom Tromey <tromey@redhat.com>
2865
2866 PR symtab/16902:
2867 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2868 (dwarf2_physname, read_partial_die)
2869 (guess_partial_die_structure_name, fixup_partial_die)
2870 (guess_full_die_structure_name, anonymous_struct_prefix)
2871 (dwarf2_name): Use per-BFD obstack.
2872
2873 2014-06-26 Yao Qi <yao@codesourcery.com>
2874
2875 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2876 dummyframe and this_id into inner block below.
2877
2878 2014-06-26 Yao Qi <yao@codesourcery.com>
2879
2880 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2881 with "signal_pass[0]" in the initialization of signal_pass.
2882
2883 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2884
2885 * record-btrace.c (record_btrace_generating_corefile)
2886 (record_btrace_prepare_to_generate_core)
2887 (record_btrace_done_generating_core): New.
2888 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2889 (record_btrace_store_registers, record_btrace_prepare_to_store):
2890 Forward request when generating a core file.
2891 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2892 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2893 to_done_generating_core.
2894
2895 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2896
2897 * target.h (target_ops) <to_prepare_to_generate_core>
2898 <to_done_generating_core>: New.
2899 (target_prepare_to_generate_core, target_done_generating_core): New.
2900 * target.c (target_prepare_to_generate_core)
2901 (target_done_generating_core): New.
2902 * target-delegates.c: Regenerate.
2903 * gcore.c: (write_gcore_file): Rename to ...
2904 (write_gcore_file_1): ...this.
2905 (write_gcore_file): Call target_prepare_to_generate_core
2906 and target_done_generating_core.
2907
2908 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2909
2910 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2911 * gcore.c (write_gcore_file): Free memory returned from
2912 make_corefile_notes.
2913 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2914 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2915
2916 2014-06-24 Yao Qi <yao@codesourcery.com>
2917
2918 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2919 (arm_linux_init_abi): Set skip_trampoline_code with
2920 gdbarch_skip_trampoline_code instead of
2921 find_solib_trampoline_target.
2922
2923 2014-06-24 Yao Qi <yao@codesourcery.com>
2924
2925 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2926 arm_skip_bx_reg returns non-zero.
2927
2928 2014-06-24 Yao Qi <yao@codesourcery.com>
2929
2930 * arm-tdep.c (arm_skip_bx_reg): New function.
2931 (arm_skip_stub): Call arm_skip_bx_reg.
2932
2933 2014-06-23 Don Breazeal <donb@codesourcery.com>
2934
2935 * MAINTAINERS: Add myself as write-after-approval maintainer.
2936
2937 2014-06-23 Pedro Alves <palves@redhat.com>
2938
2939 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2940 DR_CONTROL before setting DR0..DR3.
2941 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2942 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2943 bits of DR_CONTROL related to the debug register slot being
2944 disabled. If all slots are vacant, clear local slowdown as well,
2945 and assert DR_CONTROL is 0.
2946
2947 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2948
2949 * python/lib/gdb/command/xmethods.py
2950 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2951 current progspace only if the string "progspace" matches LOCUS_RE.
2952
2953 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2954
2955 Fix --with-system-readline with readline-6.3 patch 5.
2956 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2957 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2958 types.
2959
2960 2014-06-20 Tom Tromey <tromey@redhat.com>
2961
2962 * dwarf2read.c (dw2_get_real_path): Use correct type in
2963 OBSTACK_CALLOC.
2964 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2965
2966 2014-06-20 Gary Benson <gbenson@redhat.com>
2967
2968 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2969 * common/glibc_thread_db.h: Likewise.
2970 * common/i386-cpuid.h: Likewise.
2971 * common/i386-gcc-cpuid.h: Likewise.
2972 * common/linux-btrace.h: Likewise.
2973 * common/linux-osdata.h: Likewise.
2974 * common/linux-procfs.h: Likewise.
2975 * common/linux-ptrace.h: Likewise.
2976 * common/mips-linux-watch.h: Likewise.
2977 * common/linux-btrace.c: Moved to nat.
2978 * common/linux-osdata.c: Likewise.
2979 * common/linux-procfs.c: Likewise.
2980 * common/linux-ptrace.c: Likewise.
2981 * common/mips-linux-watch.c: Likewise.
2982 * nat/gdb_thread_db.h: Moved from common.
2983 * nat/glibc_thread_db.h: Likewise.
2984 * nat/i386-cpuid.h: Likewise.
2985 * nat/i386-gcc-cpuid.h: Likewise.
2986 * nat/linux-btrace.c: Likewise.
2987 * nat/linux-btrace.h: Likewise.
2988 * nat/linux-osdata.c: Likewise.
2989 * nat/linux-osdata.h: Likewise.
2990 * nat/linux-procfs.c: Likewise.
2991 * nat/linux-procfs.h: Likewise.
2992 * nat/linux-ptrace.c: Likewise.
2993 * nat/linux-ptrace.h: Likewise.
2994 * nat/mips-linux-watch.c: Likewise.
2995 * nat/mips-linux-watch.h: Likewise.
2996 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2997 (object file files): Reordered.
2998 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2999 of glibc_thread_db.h.
3000
3001 2014-06-20 Gary Benson <gbenson@redhat.com>
3002
3003 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3004 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3005 (i386_dr_low): Likewise.
3006 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3007 (i386_dr_low_set_addr): Likewise.
3008 (i386_dr_low_get_addr): Likewise.
3009 (i386_dr_low_can_set_control): Likewise.
3010 (i386_dr_low_set_control): Likewise.
3011 (i386_dr_low_get_control): Likewise.
3012 (i386_dr_low_get_status): Likewise.
3013 (i386_get_debug_register_length): Likewise.
3014 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3015 (i386_dr_low): Likewise.
3016 * nat/i386-dregs.c (i386-low.h): Remove include.
3017 (i386-nat.h): Likewise.
3018 (nat/i386-dregs.h): New include.
3019 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3020 (i386_dr_low_set_addr): Likewise.
3021 (i386_dr_low_get_addr): Likewise.
3022 (i386_dr_low_can_set_control): Likewise.
3023 (i386_dr_low_set_control): Likewise.
3024 (i386_dr_low_get_control): Likewise.
3025 (i386_dr_low_get_status): Likewise.
3026 (i386_get_debug_register_length): Likewise.
3027 (debug_hw_points): Likewise.
3028
3029 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3030
3031 * Makefile.in (SFILES): Add d-exp.y.
3032 (YYFILES): Add d-exp.c.
3033 (YYOBJ): Add d-exp.o.
3034 (local-maintainer-clean): Delete d-exp.c.
3035 * d-exp.y: New file.
3036 * d-lang.h (d_parse): New declaration.
3037 (d_error): New declaration.
3038 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3039 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3040 PREC_ORDER operators.
3041 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3042
3043 2014-06-19 Yao Qi <yao@codesourcery.com>
3044
3045 * gdbthread.h (any_running): Remove the declaration.
3046 * thread.c (any_running): Remove.
3047
3048 2014-06-19 Yao Qi <yao@codesourcery.com>
3049
3050 * gdbthread.h (struct thread_info) <state>: Change its type to
3051 'enum thread_state'. Update comments.
3052
3053 2014-06-19 Pedro Alves <palves@redhat.com>
3054
3055 * gdbthread.h (ALL_THREADS): Delete.
3056 (ALL_NON_EXITED_THREADS): New macro.
3057 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3058 instead of ALL_THREADS.
3059 * infrun.c (find_thread_needs_step_over)
3060 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3061 instead of ALL_THREADS.
3062 * record-btrace.c (record_btrace_open)
3063 (record_btrace_stop_recording, record_btrace_close)
3064 (record_btrace_is_replaying, record_btrace_resume)
3065 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3066 * remote.c (append_pending_thread_resumptions): Likewise.
3067 * thread.c (thread_apply_all_command): Likewise.
3068
3069 2014-06-19 Gary Benson <gbenson@redhat.com>
3070
3071 * i386-nat.c (i386_stopped_by_watchpoint):
3072 Use i386_dr_stopped_by_watchpoint.
3073 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3074 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3075
3076 2014-06-19 Gary Benson <gbenson@redhat.com>
3077
3078 * nat/i386-dregs.c: New file.
3079 * Makefile.in (i386-dregs.o): New rule.
3080 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3081 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3082 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3083 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3084 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3085 * config/i386/go32.mh (NATDEPFILES): Likewise.
3086 * config/i386/linux.mh (NATDEPFILES): Likewise.
3087 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3088 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3089 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3090 * i386-nat.h (debug_hw_points): New declaration.
3091 * i386-nat.c (breakpoint.h): Remove include.
3092 (command.h): Likewise.
3093 (target.h): Likewise.
3094 (gdb_assert.h): Likewise.
3095 (debug_hw_points): Made nonstatic.
3096 (debug_printf): Now in i386-dregs.c.
3097 (TARGET_HAS_DR_LEN_8): Likewise.
3098 (DR_CONTROL_SHIFT): Likewise.
3099 (DR_CONTROL_SIZE): Likewise.
3100 (DR_RW_EXECUTE): Likewise.
3101 (DR_RW_WRITE): Likewise.
3102 (DR_RW_READ): Likewise.
3103 (DR_RW_IORW): Likewise.
3104 (DR_LEN_1): Likewise.
3105 (DR_LEN_2): Likewise.
3106 (DR_LEN_4): Likewise.
3107 (DR_LEN_8): Likewise.
3108 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3109 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3110 (DR_ENABLE_SIZE): Likewise.
3111 (DR_LOCAL_SLOWDOWN): Likewise.
3112 (DR_GLOBAL_SLOWDOWN): Likewise.
3113 (DR_CONTROL_RESERVED): Likewise.
3114 (I386_DR_CONTROL_MASK): Likewise.
3115 (I386_DR_VACANT): Likewise.
3116 (I386_DR_LOCAL_ENABLE): Likewise.
3117 (I386_DR_GLOBAL_ENABLE): Likewise.
3118 (I386_DR_DISABLE): Likewise.
3119 (I386_DR_SET_RW_LEN): Likewise.
3120 (I386_DR_GET_RW_LEN): Likewise.
3121 (I386_DR_WATCH_HIT): Likewise.
3122 (i386_wp_op_t): Likewise.
3123 (i386_show_dr): Likewise.
3124 (i386_length_and_rw_bits): Likewise.
3125 (i386_insert_aligned_watchpoint): Likewise.
3126 (i386_remove_aligned_watchpoint): Likewise.
3127 (i386_handle_nonaligned_watchpoint): Likewise.
3128 (i386_update_inferior_debug_regs): Likewise.
3129 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3130 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3131 (i386_region_ok_for_watchpoint):
3132 Use i386_dr_region_ok_for_watchpoint.
3133 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3134
3135 2014-06-19 Gary Benson <gbenson@redhat.com>
3136
3137 * i386-nat.c (i386_insert_hw_breakpoint): Use
3138 i386_insert_watchpoint.
3139 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3140
3141 2014-06-19 Gary Benson <gbenson@redhat.com>
3142
3143 * i386-nat.c (i386_dr_show): Renamed to
3144 i386_show_dr and made static. All uses updated.
3145 (i386_dr_length_and_rw_bits): Renamed to
3146 i386_length_and_rw_bits and made static.
3147 All uses updated.
3148 (i386_dr_insert_aligned_watchpoint): Renamed to
3149 i386_insert_aligned_watchpoint and made static.
3150 All uses updated.
3151 (i386_dr_remove_aligned_watchpoint): Renamed to
3152 i386_remove_aligned_watchpoint and made static.
3153 All uses updated.
3154 (i386_dr_update_inferior_debug_regs): Renamed to
3155 i386_update_inferior_debug_regs and made static.
3156 All uses updated.
3157 * nat/i386-dregs.h (i386_dr_show): Removed.
3158 (i386_dr_length_and_rw_bits): Likewise.
3159 (i386_dr_insert_aligned_watchpoint): Likewise.
3160 (i386_dr_remove_aligned_watchpoint): Likewise.
3161 (i386_dr_update_inferior_debug_regs): Likewise.
3162
3163 2014-06-19 Gary Benson <gbenson@redhat.com>
3164
3165 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3166 * configure: Regenerate.
3167 * config.in: Likewise.
3168 * main.c (signal.h): New include.
3169 (setup_alternate_signal_stack): New function.
3170 (captured_main): Call the above.
3171 * cp-support.c (signal.h): New include.
3172 (catch_demangler_crashes): New flag.
3173 (SIGJMP_BUF): New define.
3174 (SIGSETJMP): Likewise.
3175 (SIGLONGJMP): Likewise.
3176 (gdb_demangle_jmp_buf): New static global.
3177 (gdb_demangle_attempt_core_dump): Likewise.
3178 (gdb_demangle_signal_handler): New function.
3179 (gdb_demangle): If catch_demangler_crashes is set, install the
3180 above signal handler before calling bfd_demangle, and restore
3181 the original signal handler afterwards. Display the offending
3182 symbol and call demangler_warning the first time a segmentation
3183 fault is caught.
3184 (_initialize_cp_support): New maint set/show command.
3185
3186 2014-06-19 Gary Benson <gbenson@redhat.com>
3187
3188 * utils.h (resource_limit_kind): New enum.
3189 (can_dump_core): New declaration.
3190 (warn_cant_dump_core): Likewise.
3191 (dump_core): Likewise.
3192 * utils.c (dump_core): Made nonstatic. Added new
3193 parameter "limit_kind".
3194 (can_dump_core): Made nonstatic. Moved printing code to...
3195 (warn_cant_dump_core): New function.
3196 (can_dump_core_warn): Likewise.
3197 (internal_vproblem): Replace calls to can_dump_core with
3198 calls to can_dump_core_warn. Supply new argument to each.
3199
3200 2014-06-19 Gary Benson <gbenson@redhat.com>
3201
3202 * utils.h (demangler_vwarning): New declaration.
3203 (demangler_warning): Likewise.
3204 * utils.c (struct internal_problem)
3205 <user_settable_should_quit>: New field.
3206 <user_settable_should_dump_core>: Likewise
3207 (internal_error_problem): Add values for above new fields.
3208 (internal_warning_problem): Likewise.
3209 (demangler_warning_problem): New static global.
3210 (demangler_vwarning): New function.
3211 (demangler_warning): Likewise.
3212 (add_internal_problem_command): Selectively add commands.
3213 (_initialize_utils): New internal problem command.
3214 * maint.c (maintenance_demangler_warning): New function.
3215 (_initialize_maint_cmds): New command.
3216
3217 2014-06-18 Tom Tromey <tromey@redhat.com>
3218
3219 * f-valprint.c (info_common_command_for_block): Update.
3220 * symtab.h (struct general_symbol_info) <common_block>: Now
3221 const.
3222
3223 2014-06-18 Tom Tromey <tromey@redhat.com>
3224
3225 * symtab.h (struct symtab) <blockvector>: Now const.
3226 * ada-lang.c (ada_add_global_exceptions): Update.
3227 * buildsym.c (augment_type_symtab): Update.
3228 * dwarf2read.c (dw2_lookup_symbol): Update.
3229 * jit.c (finalize_symtab): Update.
3230 * jv-lang.c (add_class_symtab_symbol): Update.
3231 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3232 Update.
3233 * objfiles.c (objfile_relocate1): Update.
3234 * psymtab.c (lookup_symbol_aux_psymtabs)
3235 (maintenance_check_psymtabs): Update.
3236 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3237 Update.
3238 * spu-tdep.c (spu_catch_start): Update.
3239 * symmisc.c (dump_symtab_1): Update.
3240 * symtab.c (lookup_global_symbol_from_objfile)
3241 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3242 (basic_lookup_transparent_type_quick)
3243 (basic_lookup_transparent_type, find_pc_sect_symtab)
3244 (find_pc_sect_line, search_symbols): Update.
3245 * block.c (find_block_in_blockvector): Make "bl" const.
3246 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3247 const.
3248 (blockvector_contains_pc): Make "bv" const.
3249 (block_for_pc_sect): Update.
3250 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3251 (blockvector_contains_pc): Update.
3252 * breakpoint.c (resolve_sal_pc): Update.
3253 * inline-frame.c (block_starting_point_at): Update.
3254
3255 2014-06-18 Tom Tromey <tromey@redhat.com>
3256
3257 * completer.c (complete_line): Make "line_buffer" const.
3258 * completer.h (complete_line): Update.
3259
3260 2014-06-18 Tom Tromey <tromey@redhat.com>
3261
3262 * symtab.c (add_macro_name): Remove unneeded cast.
3263
3264 2014-06-18 Tom Tromey <tromey@redhat.com>
3265
3266 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3267 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3268
3269 2014-06-18 Tom Tromey <tromey@redhat.com>
3270
3271 * probe.c (info_probes_for_ops): Make "arg" const.
3272 * probe.h (info_probes_for_ops): Update.
3273
3274 2014-06-18 Tom Tromey <tromey@redhat.com>
3275
3276 * varobj.c (varobj_create): Update.
3277 * valops.c (value_of_this): Update.
3278 * tracepoint.c (add_local_symbols, scope_info): Update.
3279 * symtab.h (struct general_symbol_info) <block>: Now const.
3280 * symtab.c (skip_prologue_sal)
3281 (default_make_symbol_completion_list_break_on)
3282 (skip_prologue_using_sal): Update.
3283 * stack.h (iterate_over_block_locals)
3284 (iterate_over_block_local_vars): Update.
3285 * stack.c (print_frame_args): Update.
3286 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3287 parameter const.
3288 (get_selected_block): Make return type const.
3289 * python/py-frame.c (frapy_block): Update.
3290 * python/py-block.c (gdbpy_block_for_pc): Update.
3291 * p-exp.y (%union) <bval>: Now const.
3292 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3293 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3294 * m2-exp.y (%union) <bval>: Now const.
3295 * linespec.c (get_current_search_block): Make return type const.
3296 (create_sals_line_offset, find_label_symbols): Update.
3297 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3298 Update.
3299 (block_starting_point_at): Make "block" const.
3300 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3301 (check_exception_resume): Update.
3302 * guile/scm-frame.c (gdbscm_frame_block): Update.
3303 * guile/scm-block.c (gdbscm_lookup_block): Update.
3304 * frame.h (get_frame_block): Update.
3305 (get_selected_block): Make return type const.
3306 * frame.c (frame_id_inner): Update.
3307 * f-valprint.c (info_common_command_for_block)
3308 (info_common_command): Update.
3309 * dwarf2loc.c (dwarf2_find_location_expression)
3310 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3311 (locexpr_describe_location_piece): Update.
3312 * c-exp.y (%union) <bval>: Now const.
3313 * breakpoint.c (resolve_sal_pc): Update.
3314 * blockframe.c (get_frame_block):Make return type const.
3315 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3316 (block_innermost_frame): Update.
3317 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3318 (block_for_pc, block_for_pc_sect): Update.
3319 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3320 'pblock' const.
3321 (block_for_pc_sect, block_for_pc): Make return type const.
3322 * ax-gdb.c (gen_expr): Update.
3323 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3324 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3325 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3326 (ada_read_var_value): Update.
3327 * ada-exp.y (struct name_info) <block>: Now const.
3328 (%union): Likewise.
3329 (block_lookup): Constify.
3330
3331 2014-06-18 Gary Benson <gbenson@redhat.com>
3332
3333 * nat/i386-dregs.h: New file.
3334 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3335 * i386-nat.h (i386-dregs.h): New include.
3336 (DR_FIRSTADDR): Now in i386-dregs.h.
3337 (DR_LASTADDR): Likewise.
3338 (DR_NADDR): Likewise.
3339 (DR_STATUS): Likewise.
3340 (DR_CONTROL): Likewise.
3341 (i386_debug_reg_state): Likewise.
3342 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3343
3344 2014-06-18 Don Breazeal <donb@codesourcery.com>
3345
3346 * breakpoint.c (set_longjmp_breakpoint): Call
3347 momentary_breakpoint_from_master with additional argument.
3348 (set_longjmp_breakpoint_for_call_dummy): Call
3349 momentary_breakpoint_from_master with additional argument.
3350 (set_std_terminate_breakpoint): Call
3351 momentary_breakpoint_from_master with additional argument.
3352 (momentary_breakpoint_from_master): Add argument to function
3353 definition and use it to initialize structure member flag.
3354 (clone_momentary_breakpoint): Call
3355 momentary_breakpoint_from_master with additional argument.
3356 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3357 member flags set in momentary_breakpoint_from_master.
3358
3359 2014-06-18 Gary Benson <gbenson@redhat.com>
3360
3361 * i386-nat.c (i386_show_dr): Renamed to
3362 i386_dr_show and made nonstatic. All uses updated.
3363 (i386_length_and_rw_bits): Renamed to
3364 i386_dr_length_and_rw_bits and made nonstatic.
3365 All uses updated.
3366 (i386_insert_aligned_watchpoint): Renamed to
3367 i386_dr_insert_aligned_watchpoint and made nonstatic.
3368 All uses updated.
3369 (i386_remove_aligned_watchpoint): Renamed to
3370 i386_dr_remove_aligned_watchpoint and made nonstatic.
3371 All uses updated.
3372 (i386_update_inferior_debug_regs): Renamed to
3373 i386_dr_update_inferior_debug_regs and made nonstatic.
3374 All uses updated.
3375
3376 2014-06-18 Gary Benson <gbenson@redhat.com>
3377
3378 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3379 (i386_dr_low_can_set_control): Likewise.
3380 (i386_dr_low_set_addr): Likewise.
3381 (i386_dr_low_set_control): Likewise.
3382 (i386_dr_low_get_addr): Likewise.
3383 (i386_dr_low_get_status): Likewise.
3384 (i386_dr_low_get_control): Likewise.
3385 (i386_insert_aligned_watchpoint): Use new macros.
3386 (i386_update_inferior_debug_regs): Likewise.
3387 (i386_stopped_data_address): Likewise.
3388
3389 2014-06-18 Gary Benson <gbenson@redhat.com>
3390
3391 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3392 New parameter. All uses updated.
3393
3394 2014-06-18 Gary Benson <gbenson@redhat.com>
3395
3396 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3397 All uses updated.
3398
3399 2014-06-18 Gary Benson <gbenson@redhat.com>
3400
3401 * i386-nat.c (debug_printf): New macro.
3402 (i386_get_debug_register_length): Likewise.
3403 (TARGET_HAS_DR_LEN_8): Use above macro.
3404 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3405 and printf_unfiltered. Use phex to format values.
3406
3407 2014-06-18 Gary Benson <gbenson@redhat.com>
3408
3409 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3410 Make const.
3411
3412 2014-06-18 Gary Benson <gbenson@redhat.com>
3413
3414 * i386-nat.c: Comment changes.
3415
3416 2014-06-18 Gary Benson <gbenson@redhat.com>
3417
3418 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3419
3420 2014-06-18 Gary Benson <gbenson@redhat.com>
3421
3422 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3423 (i386_insert_aligned_watchpoint): Likewise.
3424 (i386_remove_aligned_watchpoint): Likewise.
3425 (i386_handle_nonaligned_watchpoint): Likewise.
3426
3427 2014-06-18 Gary Benson <gbenson@redhat.com>
3428
3429 * i386-nat.c: Whitespace changes.
3430
3431 2014-06-17 Samuel Bronson <naesten@gmail.com>
3432
3433 * MAINTAINERS: Update Roland McGrath's email address.
3434 Thanks to Sergio Durigan Junior for pointing out that he left
3435 Red Hat a while ago, and giving me a current address.
3436
3437 2014-06-17 Tom Tromey <tromey@redhat.com>
3438
3439 * utils.h (savestring): Remove declaration.
3440
3441 2014-06-17 Tom Tromey <tromey@redhat.com>
3442
3443 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3444
3445 2014-06-16 Keith Seitz <keiths@redhat.com>
3446
3447 PR mi/15863
3448 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3449 to update the varobj if inferior_ptid is null_ptid.
3450
3451 2014-06-16 Tom Tromey <tromey@redhat.com>
3452
3453 * target.h (struct target_ops) <to_info_proc>: Make parameter
3454 const.
3455 (target_info_proc): Update.
3456 * target.c (target_info_proc): Make "args" const.
3457 * procfs.c (procfs_info_proc): Update.
3458 * linux-tdep.c (linux_info_proc): Update.
3459 (linux_core_info_proc_mappings): Make "args" const.
3460 (linux_core_info_proc): Update.
3461 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3462 * gdbarch.c: Rebuild.
3463 * gdbarch.h: Rebuild.
3464 * corelow.c (core_info_proc): Update.
3465
3466 2014-06-16 Tom Tromey <tromey@redhat.com>
3467
3468 * target.h (struct target_ops) <to_disconnect>: Make parameter
3469 const.
3470 (target_disconnect): Update.
3471 * target.c (target_disconnect): Make "args" const.
3472 * target-delegates.c: Rebuild.
3473 * remote.c (remote_disconnect): Update.
3474 * record.h (record_disconnect): Update.
3475 * record.c (record_disconnect): Update.
3476 * inf-child.c (inf_child_disconnect): Update.
3477
3478 2014-06-16 Tom Tromey <tromey@redhat.com>
3479
3480 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3481 * target.c (debug_to_rcmd, default_rcmd): Update.
3482 * target-delegates.c: Rebuild.
3483 * remote.c (remote_rcmd): Update.
3484 * monitor.c (monitor_rcmd): Update.
3485
3486 2014-06-16 Pedro Alves <palves@redhat.com>
3487
3488 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3489 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3490 have OBJF_SHARED set.
3491 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3492 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3493 instead of OBJF_USERLOADED.
3494 * objfiles.h (OBJF_SHARED): Update comment.
3495 (userloaded_objfile_contains_address_p): Rename to ...
3496 (shared_objfile_contains_address_p): ... this, and update
3497 comments.
3498 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3499 new objfile.
3500 (remove_symbol_file_command): Skip objfiles that don't have
3501 OBJF_SHARED set.
3502
3503 2014-06-16 Tom Tromey <tromey@redhat.com>
3504
3505 * minsyms.h (prim_record_minimal_symbol)
3506 (prim_record_minimal_symbol_and_info): Update comments.
3507
3508 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3509
3510 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3511 or --without-guile, according to how GDB was built.
3512
3513 2014-06-13 Tom Tromey <tromey@redhat.com>
3514
3515 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3516 to help_list.
3517 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3518 to help_list.
3519 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3520 help_list.
3521 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3522 help_list.Pass all_commands, not -1, to help_list.
3523 * cli/cli-dump.c (dump_command, append_command)
3524 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3525 (binary_dump_command, binary_append_command): Pass all_commands,
3526 not -1, to help_list.
3527 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3528 -1, to help_list.
3529 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3530 -1, to help_list.
3531 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3532 help_list.
3533 * top.c (set_history): Pass all_commands, not -1, to help_list.
3534 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3535 all_commands, not -1, to help_list.
3536 * symfile.c (overlay_command): Pass all_commands, not -1, to
3537 help_list.
3538 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3539 help_list.
3540 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3541 help_list.
3542 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3543 -1, to help_list.
3544 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3545 not -1, to help_list.
3546 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3547 not -1, to help_list.
3548 * maint.c (maintenance_command, maintenance_info_command)
3549 (maintenance_print_command, maintenance_set_cmd): Pass
3550 all_commands, not -1, to help_list.
3551 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3552 help_list.
3553 * language.c (set_check): Pass all_commands, not -1, to help_list.
3554 * infcmd.c (unset_command): Pass all_commands, not -1, to
3555 help_list.
3556 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3557 help_list.
3558 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3559 help_list.
3560 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3561 help_list.
3562 * breakpoint.c (save_command): Pass all_commands, not -1, to
3563 help_list.
3564 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3565 all_commands, not -1, to help_list.
3566
3567 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3568
3569 * regcache.c (struct register_to_invalidate): New structure.
3570 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3571 functions.
3572 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3573
3574 2014-06-12 Yao Qi <yao@codesourcery.com>
3575
3576 * varobj.c (varobj_get_num_children): Call
3577 varobj_is_dynamic_p.
3578 (varobj_list_children): Likewise.
3579 (varobj_update): Likewise. Update comments.
3580
3581 2014-06-12 Yao Qi <yao@codesourcery.com>
3582
3583 * varobj.c (varobj_pretty_printed_p): Rename to ...
3584 (varobj_is_dynamic_p): ... this. New function.
3585 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3586 (varobj_is_dynamic_p): Declare.
3587 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3588 (mi_print_value_p, varobj_update_one): Likewise.
3589
3590 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3591 Yao Qi <yao@codesourcery.com>
3592
3593 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3594 (varobj_get_iterator): Wrap up code for pretty-printer by
3595 "#if HAVE_PYTHON" and "#endif".
3596 (update_dynamic_varobj_children): Likewise.
3597
3598 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3599 Yao Qi <yao@codesourcery.com>
3600
3601 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3602 gdb_python_initialized is false. Move some code from varobj.c.
3603 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3604 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3605 (struct varobj_item): Moved to varobj-iter.h".
3606 (varobj_clear_saved_item): New function.
3607 (update_dynamic_varobj_children): Move python-related code to
3608 py-varobj.c.
3609 (free_variable): Call varobj_clear_saved_item and
3610 varobj_iter_delete.
3611
3612 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3613 Yao Qi <yao@codesourcery.com>
3614
3615 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3616 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3617 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3618 (py-varobj.o): New rule.
3619 * python/py-varobj.c: New file.
3620 * python/python-internal.h (py_varobj_get_iterator): Declare.
3621 * varobj-iter.h: New file.
3622 * varobj.c: Include "varobj-iter.h"
3623 (struct varobj) <child_iter>: Change its type from "PyObject *"
3624 to "struct varobj_iter *".
3625 <saved_item>: Likewise.
3626 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3627 [HAVE_PYTHON] (varobj_get_iterator): New function.
3628 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3629 python-specific code to python/py-varobj.c.
3630 (install_visualizer): Call varobj_iter_delete instead of
3631 Py_XDECREF.
3632 * varobj.h (varobj_ensure_python_env): Declare.
3633
3634 2014-06-12 Yao Qi <yao@codesourcery.com>
3635
3636 * varobj.c (struct varobj_item): New structure.
3637 (create_child_with_value): Update declaration.
3638 (varobj_add_child): Replace arguments 'name' and 'value' with
3639 'item'. All callers updated.
3640 (install_dynamic_child): Likewise.
3641 (update_dynamic_varobj_children): Likewise.
3642 (varobj_add_child): Likewise.
3643 (create_child_with_value): Likewise.
3644
3645 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3646
3647 * NEWS: Create a new section for the next release branch.
3648 Rename the section of the current branch, now that it has
3649 been cut.
3650
3651 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3652
3653 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3654 * version.in: Bump version to 7.8.50.DATE-cvs.
3655
3656 2014-06-11 Pedro Alves <palves@redhat.com>
3657
3658 PR remote/17028
3659 * ser-mingw.c (net_windows_socket_check_pending): New function.
3660 (net_windows_select_thread): Ignore spurious wakeups. Use
3661 net_windows_socket_check_pending.
3662 (net_windows_wait_handle): Check for pending events with
3663 ioctlsocket, through net_windows_socket_check_pending, instead of
3664 checking the socket's event.
3665
3666 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3667
3668 * python/python-internal.h (gdb_PyObject_GetAttrString)
3669 (gdb_PyObject_HasAttrString): New inline function definitions.
3670 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3671 char * of the second argument to PyObject_GetAttrString.
3672
3673 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3674
3675 * serial.c (serial_write): Fix index of character to be printed
3676 in call to serial_logchar when serial debug traces are enabled.
3677
3678 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3679
3680 * gdbtypes (resolve_dynamic_range): Add function description.
3681
3682 2014-06-09 Pedro Alves <palves@redhat.com>
3683
3684 * linux-nat.c (linux_child_follow_fork): Initialize status with
3685 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3686 inner block. Only pass the signal to PTRACE_DETACH if in pass
3687 state.
3688
3689 2014-06-09 Gary Benson <gbenson@redhat.com>
3690
3691 * common/signals.c (gdb_signal_from_host): Reorder to separate
3692 the always-available ANSI-standard signals from the signals that
3693 require checking.
3694 (do_gdb_signal_to_host): Likewise.
3695 * proc-events.c (signal_table): Likewise.
3696
3697 2014-06-08 Hui Zhu <hui@codesourcery.com>
3698
3699 * common/linux-ptrace.c (linux_disable_event_reporting): New
3700 function.
3701 * common/linux-ptrace.h (linux_disable_event_reporting): New
3702 declaration.
3703 * linux-nat.c (linux_child_follow_fork): Do a single step before
3704 detach.
3705
3706 2014-06-07 Keith Seitz <keiths@redhat.com>
3707
3708 Revert:
3709 PR c++/16253
3710 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3711 from symbol_matches_domain in symtab.c. All local callers
3712 of symbol_matches_domain updated.
3713 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3714 search STRUCT_DOMAIN.
3715 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3716 independently. standard_lookup will do that automatically.
3717 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3718 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3719 (cp_lookup_symbol_in_namespace): Likewise.
3720 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3721 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3722 may return a STRUCT_DOMAIN match.
3723 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3724 * cp-support.c: Include language.h.
3725 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3726 VAR_DOMAIN.
3727 * psymtab.c (match_partial_symbol): Compare the requested
3728 domain with the symbol's domain directly.
3729 (lookup_partial_symbol): Likewise.
3730 * symtab.c (lookup_symbol_in_language): Explain when/why
3731 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3732 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3733 appropriate languages.
3734 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3735 and moved to ada-lang.c
3736 (lookup_block_symbol): Explain that this function only returns
3737 symbol matching the requested DOMAIN.
3738 Compare the requested domain with the symbol's domain directly.
3739 (iterate_over_symbols): Compare the requested domain with the
3740 symbol's domain directly.
3741 * symtab.h (symbol_matches_domain): Remove.
3742
3743 2014-06-06 Doug Evans <xdje42@gmail.com>
3744
3745 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3746 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3747 (gdbscm_guile_version_is_at_least): Declare.
3748 (gdbscm_scm_string_to_int): Declare.
3749 * guile/guile.c (gdbscm_guile_major_version): New global.
3750 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3751 (guile_datadir): New static global.
3752 (gdbscm_guile_data_directory): New function.
3753 (initialize_scheme_side): Update.
3754 (misc_guile_functions): Add guile-data-directory.
3755 (initialize_gdb_module): Fetch guile version number.
3756 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3757 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3758 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3759 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3760 comments.
3761 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3762 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3763 * guile/scm-value.c (gdbscm_value_to_string): Only call
3764 scm_port_conversion_strategy if Guile version >= 2.0.6.
3765
3766 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3767
3768 * main.c (print_gdb_help): Add -q and --silent.
3769
3770 2014-06-06 Gary Benson <gbenson@redhat.com>
3771
3772 * common/signals.c: Remove preprocessor conditionals for
3773 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3774 SIGSEGV and SIGTERM.
3775 * proc-events.c: Likewise.
3776
3777 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3778
3779 * symfile.c (symfile_free_objfile): Remove restriction to
3780 OBJF_USERLOADED.
3781 * symfile-mem.c (symbol_file_add_from_memory): Call
3782 add_target_sections_of_objfile.
3783
3784 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3785
3786 * guile/scm-value.c (gdbscm_history_append_x): Use
3787 'vlscm_get_value_smob_arg_unsafe' instead of
3788 'vlscm_scm_to_value'.
3789
3790 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3791
3792 PR mi/15806
3793 * utils.c (printchar): Don't escape at all if quoter is NUL.
3794 Update function documentation to clarify effect of parameter
3795 QUOTER.
3796 * remote.c (escape_buffer): Pass '\\' as the quoter to
3797 fputstrn_unfiltered.
3798 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3799 generate the output.
3800 (mi_solib_unloaded): Same.
3801
3802 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3803
3804 * development.sh: Delete.
3805 * Makefile.in (config.status): Adjust dependency on development.sh.
3806 * configure.ac: Adjust development.sh source call.
3807 * configure: Regenerate.
3808
3809 2014-06-04 Doug Evans <xdje42@gmail.com>
3810
3811 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3812 is_scheme_bkpt, spec.
3813 (bpscm_make_breakpoint_smob): Initialize new members.
3814 (gdbscm_create_breakpoint_x): Split into two ...
3815 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3816 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3817 (scheme_function breakpoint_functions): Update.
3818 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3819 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3820 register-breakpoint!.
3821
3822 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3823
3824 PR server/17023
3825 * mem-break.c (z_type_supported): Return zero if
3826 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3827
3828 2014-06-04 Tom Tromey <tromey@redhat.com>
3829
3830 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3831 value_from_contents_and_address_unresolved.
3832 (ada_template_to_fixed_record_type_1): Likewise.
3833 (ada_which_variant_applies): Likewise.
3834 * value.h (value_from_contents_and_address_unresolved): Declare.
3835 * value.c (value_from_contents_and_address_unresolved): New
3836 function.
3837 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3838 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3839 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3840
3841 2014-06-04 Tom Tromey <tromey@redhat.com>
3842
3843 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3844
3845 2014-06-04 Tom Tromey <tromey@redhat.com>
3846
3847 * procfs.c (procfs_attach): Make "args" const.
3848 * windows-nat.c (windows_attach): Make "args" const.
3849 * nto-procfs.c (procfs_attach): Make "args" const.
3850 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3851 * go32-nat.c (go32_attach): Make "args" const.
3852 * gnu-nat.c (gnu_attach): Make "args" const.
3853 * darwin-nat.c (darwin_attach): Make "args" const.
3854 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3855 * linux-nat.c (linux_nat_attach): Make "args" const.
3856 * remote.c (extended_remote_attach_1, extended_remote_attach):
3857 Make "args" const.
3858 * target.h (struct target_ops) <to_attach>: Make "args" const.
3859 (find_default_attach): Likewise.
3860 * utils.c (parse_pid_to_attach): Make "args" const.
3861 * utils.h (parse_pid_to_attach): Update.
3862
3863 2014-06-04 Tom Tromey <tromey@redhat.com>
3864
3865 * target-delegates.c: Rebuild.
3866 * target.c (default_thread_address_space): New function.
3867 (target_thread_address_space): Simplify.
3868 * target.h (struct target_ops) <to_thread_address_space>: Add
3869 TARGET_DEFAULT_FUNC.
3870
3871 2014-06-04 Doug Evans <xdje42@gmail.com>
3872
3873 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3874
3875 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3876
3877 * record-btrace.c: Include event-loop.h and inf-loop.h.
3878 (record_btrace_resume_exec_dir)
3879 (record_btrace_async_inferior_event_handler)
3880 (record_btrace_handle_async_inferior_event): New.
3881 (record_btrace_open): Create async event handler.
3882 (record_btrace_close): Delete async event handler.
3883 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3884 Mark async event handler.
3885 (record_btrace_execution_direction): New.
3886 (init_record_btrace_ops): Initialize to_execution_direction.
3887
3888 2014-06-03 Doug Evans <xdje42@gmail.com>
3889
3890 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3891 (gdbscm_make_parameter): Ditto.
3892
3893 2014-06-03 Doug Evans <dje@google.com>
3894
3895 * exec.c (exec_close_1): Call clear_section_table instead of
3896 resize_section_table.
3897 (clear_section_table): New function.
3898 (resize_section_table): Make static. Rename arg num_added to
3899 adjustment.
3900 * exec.h (clear_section_table): Declare.
3901 (resize_section_table): Delete.
3902 * progspace.c (release_program_space): Call clear_section_table
3903 instead of resize_section_table.
3904
3905 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3906
3907 * NEWS (Python Scripting): Add entry about the new xmethods
3908 feature.
3909
3910 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3911
3912 * python/py-xmethods.c: New file.
3913 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3914 (objfpy_dealloc): XDECREF on the new xmethods field.
3915 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3916 field.
3917 (objfpy_get_xmethods): New function.
3918 (objfile_getset): New entry 'xmethods'.
3919 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3920 (pspy_dealloc): XDECREF on the new xmethods field.
3921 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3922 field.
3923 (pspy_get_xmethods): New function.
3924 (pspace_getset): New entry 'xmethods'.
3925 * python/python-internal.h: Add declarations for new functions.
3926 * python/python.c (_initialize_python): Invoke
3927 gdbpy_initialize_xmethods.
3928 * python/lib/gdb/__init__.py (xmethods): New
3929 attribute.
3930 * python/lib/gdb/xmethod.py: New file.
3931 * python/lib/gdb/command/xmethods.py: New file.
3932
3933 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3934
3935 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3936 best match method returned by find_overload_match is an xmethod.
3937 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3938 the best matching operator returned by find_overload_match is an
3939 xmethod.
3940 * valops.c: #include "extension.h".
3941 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3942 Return void. The list of matching source methods is returned in
3943 "fn_list" and a vector of matching debug method workers is
3944 returned in "xm_worker_vec". Update all callers.
3945 (value_find_oload_method_list): Likewise.
3946 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3947 non-NULL, then the index of the best matching method in this
3948 vector is returned. Update all callers.
3949 (find_overload_match): Include xmethods while performing overload
3950 resolution.
3951
3952 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3953
3954 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3955 * extension-priv.h (struct extension_language_ops): Add the
3956 xmethod interface.
3957 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3958 get_matching_xmethod_workers, get_xmethod_argtypes,
3959 invoke_xmethod, free_xmethod_worker,
3960 free_xmethod_worker_vec): New functions.
3961 * extension.h: #include "common/vec.h".
3962 New function declarations.
3963 (struct xmethod_worker): New struct.
3964 (VEC (xmethod_worker_ptr)): New vector type.
3965 (xmethod_worker_ptr): New typedef.
3966 (xmethod_worker_vec): Likewise.
3967 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3968 builtin_type.
3969 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3970 (struct builtin_type): New field "xmethod".
3971 * valarith.c (value_ptradd): Assert that the value argument is not
3972 lval_xcallable.
3973 * valops.c (value_must_coerce_to_target): Return 0 for
3974 lval_xcallable values.
3975 * value.c (struct value): New field XM_WORKER in the field
3976 LOCATION.
3977 (value_address, value_raw_address): Return 0 for lval_xcallable
3978 values.
3979 (set_value_address): Assert that the value is not an
3980 lval_xcallable.
3981 (value_free): Free the associated xmethod worker when freeing
3982 lval_xcallable values.
3983 (set_value_component_location): Assert that the WHOLE value is not
3984 lval_xcallable.
3985 (value_of_xmethod, call_xmethod): New functions.
3986 * value.h: Declare "struct xmethod_worker".
3987 Declare new functions value_of_xmethod, call_xmethod.
3988
3989 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3990 Pedro Alves <palves@redhat.com>
3991
3992 PR breakpoints/17000
3993 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3994 New function, extracted from software_breakpoint_inserted_here_p.
3995 (software_breakpoint_inserted_here_p): Replace factored out code
3996 by call to find_non_raw_software_breakpoint_inserted_here.
3997 (bp_target_info_copy_insertion_state): New function.
3998 (bkpt_insert_location): Handle the case of a single-step
3999 breakpoint already inserted at the same address.
4000 (bkpt_remove_location): Handle the case of a single-step
4001 breakpoint still inserted at the same address.
4002 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4003 breakpoint already inserted at the same address.
4004 (deprecated_remove_raw_breakpoint): Handle the case of a
4005 non-raw breakpoint still inserted at the same address.
4006 (find_single_step_breakpoint): New function, extracted from
4007 single_step_breakpoint_inserted_here_p.
4008 (find_single_step_breakpoint): New function,
4009 factored out from single_step_breakpoint_inserted_here_p.
4010 (single_step_breakpoint_inserted_here_p): Reimplement.
4011
4012 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4013
4014 Pushed by Joel Brobecker <brobecker@adacore.com>
4015 * source.c (show_substitute_path_command): Fix display of matching
4016 substitution rules.
4017
4018 2014-06-03 Gary Benson <gbenson@redhat.com>
4019
4020 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4021
4022 2014-06-02 Doug Evans <xdje42@gmail.com>
4023
4024 Add parameter support for Guile.
4025 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4026 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4027 (scm-param.o): New rule.
4028 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4029 (gdbscm_misc_error): Declare.
4030 (gdbscm_canonicalize_command_name): Declare.
4031 (gdbscm_scm_to_host_string): Declare.
4032 (gdbscm_scm_from_host_string): Declare.
4033 (gdbscm_initialize_parameters): Declare.
4034 * guile/guile.c (initialize_gdb_module): Call
4035 gdbscm_initialize_parameters.
4036 * guile/lib/gdb.scm: Export parameter symbols.
4037 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4038 cmdscm_canonicalize_name and made public. All callers updated.
4039 * guile/scm-exception.c (gdbscm_misc_error): New function.
4040 * guile/scm-param.c: New file.
4041 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4042 (gdbscm_scm_to_host_string): New function.
4043 (gdbscm_scm_from_host_string): New function.
4044 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4045
4046 2014-06-02 Doug Evans <xdje42@gmail.com>
4047
4048 Add command support for Guile.
4049 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4050 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4051 (scm-cmd.o): New rule.
4052 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4053 (gdbscm_user_error_p): Declare.
4054 (gdbscm_parse_command_name): Declare.
4055 (gdbscm_valid_command_class_p): Declare.
4056 (gdbscm_initialize_commands): Declare.
4057 * guile/guile.c (initialize_gdb_module): Call
4058 gdbscm_initialize_commands.
4059 * guile/lib/gdb.scm: Export command symbols.
4060 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4061 (throw-user-error): New function.
4062 * guile/scm-cmd.c: New file.
4063 * guile/scm-exception.c (user_error_symbol): New static global.
4064 (gdbscm_user_error_p): New function.
4065 (gdbscm_initialize_exceptions): Set user_error_symbol.
4066 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4067
4068 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4069
4070 * top.c (command_loop): Handle comments here...
4071 (command_line_input): ... not here.
4072
4073 2014-06-02 Doug Evans <xdje42@gmail.com>
4074
4075 Add progspace support for Guile.
4076 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4077 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4078 (scm-progspace.o): New rule.
4079 * guile/guile-internal.h (pspace_smob): New typedef.
4080 (psscm_pspace_smob_pretty_printers): Declare.
4081 (psscm_pspace_smob_from_pspace): Declare.
4082 (psscm_scm_from_pspace): Declare.
4083 * guile/guile.c (initialize_gdb_module): Call
4084 gdbscm_initialize_pspaces.
4085 * guile/lib/gdb.scm: Export progspace symbols.
4086 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4087 support.
4088 (append-pretty-printer!): Ditto.
4089 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4090 Implement.
4091 * guile/scm-progspace.c: New file.
4092
4093 2014-06-03 Alan Modra <amodra@gmail.com>
4094
4095 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4096 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4097
4098 2014-06-02 Doug Evans <dje@google.com>
4099
4100 Add support for skeletonless type units.
4101 * dwarf2read.c (struct dwarf2_per_objfile): New member
4102 n_allocated_type_units.
4103 (struct dwarf2_per_objfile) <tu_stats>: New member
4104 nr_all_type_units_reallocs.
4105 (create_signatured_type_table_from_index): Initialize
4106 n_allocated_type_units
4107 (create_all_type_units): Ditto.
4108 (add_type_unit): Move up in file. New arg slot.
4109 All callers updated. Increase space for all_type_units more
4110 efficiently.
4111 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4112 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4113 (lookup_dwp_signatured_type): Ditto.
4114 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4115 All callers updated.
4116 (build_type_psymtabs_1): Leave type_unit_groups as
4117 NULL if no TUs present.
4118 (print_tu_stats): New function.
4119 (process_skeletonless_type_unit): New function.
4120 (process_dwo_file_for_skeletonless_type_units): New
4121 function.
4122 (process_skeletonless_type_units): New function.
4123 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4124 Call print tu_stats if debugging enabled.
4125
4126 2014-06-02 Pedro Alves <palves@redhat.com>
4127
4128 * breakpoint.c (build_target_command_list): Don't build a command
4129 list if we have any duplicate location that isn't a dprintf.
4130
4131 2014-06-02 Pedro Alves <palves@redhat.com>
4132
4133 * breakpoint.c (dprintf_breakpoint_hit): New function.
4134 (initialize_breakpoint_ops): Install it as dprintf's
4135 breakpoint_hit method.
4136
4137 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4138
4139 * source.c (substitute_path_rule_matches): Simplify using
4140 filename_ncmp instead of FILENAME_CMP.
4141
4142 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4143
4144 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4145
4146 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4147
4148 * configure.ac: When Guile is available, check for the
4149 availability of 'scm_new_smob'.
4150 * configure, config.h.in: Regenerate.
4151 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4152 function.
4153
4154 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4155
4156 * frame.c (struct frame_info): Add stop_string field.
4157 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4158 (get_prev_frame_always): Old content moved into
4159 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4160 TRY_CATCH, handle MEMORY_ERROR exceptions.
4161 (frame_stop_reason_string): New function definition.
4162 * frame.h (unwind_stop_reason_to_string): Extend comment to
4163 mention frame_stop_reason_string.
4164 (frame_stop_reason_string): New function declaration.
4165 * stack.c (frame_info): Switch to frame_stop_reason_string.
4166 (backtrace_command_1): Switch to frame_stop_reason_string.
4167 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4168 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4169 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4170
4171 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4172
4173 * frame.c (frame_stop_reason_string): Rename to ...
4174 (unwind_stop_reason_to_string): this.
4175 * frame.h (frame_stop_reason_string): Rename to ...
4176 (unwind_stop_reason_to_string): this.
4177 * stack.c (frame_info): Update call to frame_stop_reason_string.
4178 (backtrace_command_1): Likewise.
4179 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4180 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4181
4182 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4183
4184 * frame.c (remove_prev_frame): New function.
4185 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4186 remove_prev_frame.
4187
4188 2014-05-29 Pedro Alves <palves@redhat.com>
4189
4190 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4191 and make it const. When a single-step decays to a continue,
4192 clear 'step', not 'hw_step'. Pass whether the caller wanted
4193 to step to user_visible_resume_ptid, not what we ask the
4194 target to do.
4195
4196 2014-05-29 Pedro Alves <palves@redhat.com>
4197
4198 * infrun.c (process_event_stop_test, handle_step_into_function)
4199 (handle_step_into_function_backward): Adjust.
4200 Don't set the even thread's stop_step and call stop_waiting before
4201 calling end_stepping_range. Instead do that ...
4202 (end_stepping_range): ... here. Take an ecs pointer parameter.
4203
4204 2014-05-29 Pedro Alves <palves@redhat.com>
4205
4206 * infrun.c (stop_stepping): Rename to ...
4207 (stop_waiting): ... this.
4208 (proceed): Update comment.
4209 (process_event_stop_test, handle_inferior_event)
4210 (handle_signal_stop, handle_step_into_function)
4211 (handle_step_into_function_backward): Update.
4212
4213 2014-05-29 Pedro Alves <palves@redhat.com>
4214
4215 * infcall.c (run_inferior_call): Don't check whether the current
4216 thread is running after the proceed call.
4217
4218 2014-05-29 Pedro Alves <palves@redhat.com>
4219 Tom Tromey <tromey@redhat.com>
4220
4221 * NEWS: Mention "maint set target-async", "set mi-async", and that
4222 background execution commands are now always available.
4223 * target.h (target_async_permitted): Update comment.
4224 * target.c (target_async_permitted, target_async_permitted_1):
4225 Default to 1.
4226 (set_target_async_command): Rename to ...
4227 (maint_set_target_async_command): ... this.
4228 (show_target_async_command): Rename to ...
4229 (maint_show_target_async_command): ... this.
4230 (_initialize_target): Adjust.
4231 * infcmd.c (prepare_execution_command): Make extern.
4232 * inferior.h (prepare_execution_command): Declare.
4233 * infrun.c (set_observer_mode): Leave target async alone.
4234 * mi/mi-interp.c (mi_interpreter_init): Install
4235 mi_on_sync_execution_done as sync_execution_done observer.
4236 (mi_on_sync_execution_done): New function.
4237 (mi_execute_command_input_handler): Don't print the prompt if we
4238 just started a synchronous command with an async target.
4239 (mi_on_resume): Check sync_execution before printing prompt.
4240 * mi/mi-main.h (mi_async_p): Declare.
4241 * mi/mi-main.c: Include gdbcmd.h.
4242 (mi_async_p): New function.
4243 (mi_async, mi_async_1): New globals.
4244 (set_mi_async_command, show_mi_async_command, mi_async): New
4245 functions.
4246 (exec_continue): Call prepare_execution_command.
4247 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4248 (mi_execute_async_cli_command): Use mi_async_p.
4249 (_initialize_mi_main): Install "set mi-async". Make
4250 "target-async" a deprecated alias.
4251
4252 2014-05-29 Pedro Alves <palves@redhat.com>
4253
4254 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4255 (_initialize_cli_interp): Adjust.
4256 * event-loop.c: Include "observer.h".
4257 (start_event_loop): Notify 'command_error' observers instead of
4258 calling display_gdb_prompt. Remove FIXME comment.
4259 * event-top.c (display_gdb_prompt): Remove call into the
4260 interpreters.
4261 * inf-loop.c: Include "observer.h".
4262 (inferior_event_handler): Notify 'command_error' observers instead
4263 of calling display_gdb_prompt.
4264 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4265 observers instead of calling display_gdb_prompt.
4266 * interps.c (interp_set): Don't call display_gdb_prompt.
4267 (current_interp_display_prompt_p): Delete.
4268 * interps.h (interp_prompt_p): Delete declaration.
4269 (interp_prompt_p_ftype): Delete.
4270 (struct interp_procs) <prompt_proc_p>: Delete field.
4271 (current_interp_display_prompt_p): Delete declaration.
4272 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4273 (_initialize_mi_interp): Adjust.
4274 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4275 'command_error' observers.
4276 (tui_on_sync_execution_done, tui_on_command_error): New
4277 functions.
4278 (tui_display_prompt_p): Delete.
4279 (_initialize_tui_interp): Adjust.
4280
4281 2014-05-29 Pedro Alves <palves@redhat.com>
4282
4283 PR gdb/13860
4284 * cli/cli-interp.c: Include infrun.h and observer.h.
4285 (cli_uiout, cli_interp): New globals.
4286 (cli_on_signal_received, cli_on_end_stepping_range)
4287 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4288 functions.
4289 (cli_interpreter_init): Install them as 'end_stepping_range',
4290 'signal_received' 'signal_exited', 'exited' and 'no_history'
4291 observers.
4292 (_initialize_cli_interp): Remove cli_interp local.
4293 * infrun.c (handle_inferior_event): Call the several stop reason
4294 observers instead of printing the stop reason directly.
4295 (end_stepping_range): New function.
4296 (print_end_stepping_range_reason, print_signal_exited_reason)
4297 (print_exited_reason, print_signal_received_reason)
4298 (print_no_history_reason): Make static, and add an uiout
4299 parameter. Print to that instead of to CURRENT_UIOUT.
4300 * infrun.h (print_end_stepping_range_reason)
4301 (print_signal_exited_reason, print_exited_reason)
4302 (print_signal_received_reason print_no_history_reason): New
4303 declarations.
4304 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4305 'mi_uiout'.
4306 <cli_uiout>: New field.
4307 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4308 uiout for CLI output. Install 'signal_received',
4309 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4310 observers.
4311 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4312 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4313 (mi_on_no_history): New functions.
4314 (ui_out_free_cleanup): Delete function.
4315 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4316 instead use the one already stored in the MI interpreter data.
4317 (mi_ui_out): Adjust.
4318 * tui/tui-interp.c: Include infrun.h and observer.h.
4319 (tui_interp): New global.
4320 (tui_on_signal_received, tui_on_end_stepping_range)
4321 (tui_on_signal_exited, tui_on_exited)
4322 (tui_on_no_history): New functions.
4323 (tui_init): Install them as 'end_stepping_range',
4324 'signal_received' 'signal_exited', 'exited' and 'no_history'
4325 observers.
4326 (_initialize_tui_interp): Delete tui_interp local.
4327
4328 2014-05-29 Pedro Alves <palves@redhat.com>
4329
4330 PR gdb/15713
4331 * linux-nat.c (linux_nat_resume_callback): Rename the second
4332 parameter to 'except'. Skip LP if it points to EXCEPT.
4333 (linux_nat_resume): Don't mark the event lwp as not stopped
4334 before resuming sibling lwps. Instead ask
4335 linux_nat_resume_callback to skip the event lwp. Mark it as not
4336 stopped after actually resuming it.
4337 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4338 resuming it.
4339 (wait_lwp): Mark the lwp as stopped here.
4340 (stop_wait_callback): Mark the lwp as not stopped right after
4341 resuming it. Don't mark lwps as stopped here.
4342 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4343 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4344
4345 2014-05-29 Pedro Alves <palves@redhat.com>
4346
4347 PR PR15693
4348 * infrun.c (resume): Determine how much to resume depending on
4349 whether the caller wanted a step, not whether we can hardware step
4350 the target. Mark all threads that we intend to run as running,
4351 unless we're calling an inferior function.
4352 (normal_stop): If the thread is running an infcall, don't finish
4353 thread state.
4354 * target.c (target_resume): Don't mark threads as running here.
4355
4356 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4357
4358 * serial.c (_initialize_serial): Remove support for
4359 the "set remotebaud" and "show remotebaud" commands.
4360 * NEWS: Add entry documenting the removal of that command.
4361
4362 2014-05-28 Yao Qi <yao@codesourcery.com>
4363
4364 * charset.c: Fix typo in comments.
4365
4366 2014-05-27 Gary Benson <gbenson@redhat.com>
4367
4368 * utils.c (internal_vproblem): Prompt for a bug report.
4369
4370 2014-05-26 Andy Wingo <wingo@igalia.com>
4371
4372 * guile/scm-arch.c (arscm_mark_arch_smob):
4373 * guile/scm-block.c (bkscm_mark_block_smob)
4374 (bkscm_mark_block_syms_progress_smob):
4375 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4376 * guile/scm-exception.c (exscm_mark_exception_smob):
4377 * guile/scm-frame.c (frscm_mark_frame_smob):
4378 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4379 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4380 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4381 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4382 (ppscm_mark_pretty_printer_worker_smob):
4383 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4384 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4385 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4386 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4387 mark functions.
4388 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4389 function.
4390
4391 2014-05-26 Andy Wingo <wingo@igalia.com>
4392 Doug Evans <xdje42@gmail.com>
4393
4394 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4395 empty_base_class. All uses updated.
4396 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4397 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4398 Adapt all callers.
4399 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4400 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4401 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4402 (gdbscm_gsmob_has_property_p, add_property_name)
4403 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4404 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4405 (gdb-object-has-property?, gdb-object-properties): Remove.
4406 (gdb-object-kind): Renamed from gsmob-kind.
4407
4408 2014-05-26 Andy Wingo <wingo@igalia.com>
4409
4410 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4411 * configure: Regenerate.
4412
4413 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4414
4415 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4416
4417 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4418
4419 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4420 (replay_memory_access_read_only, replay_memory_access_read_write)
4421 (replay_memory_access_types, replay_memory_access)
4422 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4423 (cmd_set_record_btrace, cmd_show_record_btrace)
4424 (cmd_show_replay_memory_access): New.
4425 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4426 (record_btrace_remove_breakpoint): Replace
4427 record_btrace_allow_memory_access with replay_memory_access.
4428 (_initialize_record_btrace): Add commands.
4429 * NEWS: Announce it.
4430
4431 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4432
4433 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4434
4435 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4436
4437 * MAINTAINERS (Write After Approval): Move self back from
4438 paper trail.
4439
4440 2014-05-22 Pedro Alves <palves@redhat.com>
4441
4442 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4443 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4444 (disable_randomization, enum exec_direction_kind)
4445 (execution_direction, stop_registers, start_remote)
4446 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4447 (wait_for_inferior, normal_stop, get_last_target_status)
4448 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4449 (insert_step_resume_breakpoint_at_sal)
4450 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4451 (set_step_info, print_stop_event, signal_stop_state)
4452 (signal_print_state, signal_pass_state, signal_stop_update)
4453 (signal_print_update, signal_pass_update)
4454 (update_signals_program_target, clear_exit_convenience_vars)
4455 (displaced_step_dump_bytes, update_observer_mode)
4456 (signal_catch_update, gdb_signal_from_command): Move
4457 declarations ...
4458 * infrun.h: ... to this new file.
4459 * amd64-tdep.c: Include infrun.h.
4460 * annotate.c: Include infrun.h.
4461 * arch-utils.c: Include infrun.h.
4462 * arm-linux-tdep.c: Include infrun.h.
4463 * arm-tdep.c: Include infrun.h.
4464 * break-catch-sig.c: Include infrun.h.
4465 * breakpoint.c: Include infrun.h.
4466 * common/agent.c: Include infrun.h instead of inferior.h.
4467 * corelow.c: Include infrun.h.
4468 * event-top.c: Include infrun.h.
4469 * go32-nat.c: Include infrun.h.
4470 * i386-tdep.c: Include infrun.h.
4471 * inf-loop.c: Include infrun.h.
4472 * infcall.c: Include infrun.h.
4473 * infcmd.c: Include infrun.h.
4474 * infrun.c: Include infrun.h.
4475 * linux-fork.c: Include infrun.h.
4476 * linux-nat.c: Include infrun.h.
4477 * linux-thread-db.c: Include infrun.h.
4478 * monitor.c: Include infrun.h.
4479 * nto-tdep.c: Include infrun.h.
4480 * procfs.c: Include infrun.h.
4481 * record-btrace.c: Include infrun.h.
4482 * record-full.c: Include infrun.h.
4483 * remote-m32r-sdi.c: Include infrun.h.
4484 * remote-mips.c: Include infrun.h.
4485 * remote-notif.c: Include infrun.h.
4486 * remote-sim.c: Include infrun.h.
4487 * remote.c: Include infrun.h.
4488 * reverse.c: Include infrun.h.
4489 * rs6000-tdep.c: Include infrun.h.
4490 * s390-linux-tdep.c: Include infrun.h.
4491 * solib-irix.c: Include infrun.h.
4492 * solib-osf.c: Include infrun.h.
4493 * solib-svr4.c: Include infrun.h.
4494 * target.c: Include infrun.h.
4495 * top.c: Include infrun.h.
4496 * windows-nat.c: Include infrun.h.
4497 * mi/mi-interp.c: Include infrun.h.
4498 * mi/mi-main.c: Include infrun.h.
4499 * python/py-threadevent.c: Include infrun.h.
4500
4501 2014-05-22 Pedro Alves <palves@redhat.com>
4502
4503 * infrun.c (handle_inferior_event): Store the exit code for
4504 --return-child-result here, instead of ...
4505 (print_exited_reason): ... here.
4506
4507 2014-05-21 Pedro Alves <palves@redhat.com>
4508
4509 PR gdb/13860
4510 * gdbthread.h (struct thread_control_state): New field
4511 `command_interp'.
4512 * infrun.c (follow_fork): Copy the new thread control field to the
4513 child fork thread.
4514 (clear_proceed_status_thread): Clear the new thread control field.
4515 (proceed): Set the new thread control field.
4516 * interps.h (command_interp): Declare.
4517 * interps.c (command_interpreter): New global.
4518 (command_interp): New function.
4519 (interp_exec): Set `command_interpreter' while here.
4520 * cli-out.c (cli_uiout_dtor): New function.
4521 (cli_ui_out_impl): Install it.
4522 * mi/mi-interp.c: Include cli-out.h.
4523 (mi_cmd_interpreter_exec): Add comment.
4524 (restore_current_uiout_cleanup): New function.
4525 (ui_out_free_cleanup): New function.
4526 (mi_on_normal_stop): If finishing an execution command started by
4527 a CLI command, or any kind of breakpoint-like event triggered,
4528 print the stop event to the output (CLI) stream.
4529 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4530
4531 2014-05-21 Pedro Alves <palves@redhat.com>
4532
4533 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4534 current source line having changed.
4535 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4536 * infrun.c (normal_stop): Adjust call to
4537 set_current_sal_from_frame.
4538 * source.c (clear_lines_listed_range): New function.
4539 (set_current_source_symtab_and_line, identify_source_line): Clear
4540 the lines listed range.
4541 (line_info): Handle the first "info line" after the current source
4542 line having changed.
4543 * stack.c (print_stack_frame): Remove center handling.
4544 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4545 center sal.line.
4546
4547 2014-05-21 Pedro Alves <palves@redhat.com>
4548
4549 * inf-child.c (inf_child_mourn_inferior): New function.
4550 * inf-child.h (inf_child_mourn_inferior): New declaration.
4551 * darwin-nat.c (darwin_mourn_inferior): Use
4552 inf_child_mourn_inferior.
4553 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4554 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4555 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4556 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4557 * windows-nat.c (windows_mourn_inferior): Likewise.
4558
4559 2014-05-21 Doug Evans <xdje42@gmail.com>
4560
4561 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4562
4563 2014-05-21 Doug Evans <xdje42@gmail.com>
4564
4565 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4566 (gdbscm_out_of_range_error): Ditto.
4567 (gdbscm_memory_error): Ditto.
4568 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4569 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4570 (gdbscm_out_of_range_error): Update.
4571 (gdbscm_memory_error): Update.
4572 (gdbscm_scm_to_target_string_unsafe): Delete.
4573
4574 2014-05-21 Pedro Alves <palves@redhat.com>
4575
4576 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4577 globals.
4578 (inf_child_open_target): New function.
4579 (inf_child_open): Use inf_child_open_target to push the target
4580 instead of erroring out.
4581 (inf_child_disconnect, inf_child_close)
4582 (inf_child_maybe_unpush_target): New functions.
4583 (inf_child_target): Install inf_child_disconnect and
4584 inf_child_close. Store a pointer to the returned object.
4585 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4586 declarations.
4587 * target.c (auto_connect_native_target): New global.
4588 (show_default_run_target): New function.
4589 (find_default_run_target): Return NULL if automatically connecting
4590 to the native target is disabled.
4591 (_initialize_target): Install set/show auto-connect-native-target.
4592 * NEWS: Mention "set auto-connect-native-target", and "target
4593 native".
4594 * linux-nat.c (super_close): New global.
4595 (linux_nat_close): Call super_close.
4596 (linux_nat_add_target): Store a pointer to the base class's
4597 to_close method.
4598 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4599 inf_child_maybe_unpush.
4600 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4601 already pushed.
4602 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4603 the inferior. Use inf_child_maybe_unpush_target.
4604 (inf_ttrace_attach): Don't push the target if it is already
4605 pushed.
4606 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4607 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4608 after mourning the inferior. Use inf_child_maybe_unpush_target.
4609 (darwin_attach_pid): Don't push the target if it is already
4610 pushed.
4611 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4612 mourning the inferior. Use inf_child_maybe_unpush_target.
4613 (gnu_detach): Use inf_child_maybe_unpush_target.
4614 * go32-nat.c (go32_create_inferior): Don't push the target if it
4615 is already pushed.
4616 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4617 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4618 (procfs_open): Rename to ...
4619 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4620 comments. Can target_preopen before changing node. Call
4621 inf_child_open_target to push the target explicitly.
4622 (procfs_attach): Don't push the target if it is already pushed.
4623 (procfs_detach): Use inf_child_maybe_unpush_target.
4624 (procfs_create_inferior): Don't push the target if it is already
4625 pushed.
4626 (nto_native_ops): New global.
4627 (procfs_open): Reimplement.
4628 (procfs_native_open): New function.
4629 (init_procfs_targets): Install procfs_native_open as to_open of
4630 "target native". Store a pointer to the "native" target in
4631 nto_native_ops.
4632 * procfs.c (procfs_attach): Don't push the target if it is already
4633 pushed.
4634 (procfs_detach): Use inf_child_maybe_unpush_target.
4635 (procfs_mourn_inferior): Only unpush the target after mourning the
4636 inferior. Use inf_child_maybe_unpush_target.
4637 (procfs_init_inferior): Don't push the target if it is already
4638 pushed.
4639 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4640 if it is already pushed.
4641
4642 2014-05-21 Pedro Alves <palves@redhat.com>
4643
4644 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4645 and "procfs" targets are now called "native" instead.
4646
4647 2014-05-21 Pedro Alves <palves@redhat.com>
4648
4649 * go32-nat.c (go32_open): Delete.
4650 (go32_target): Don't override the to_open method.
4651
4652 2014-05-21 Pedro Alves <palves@redhat.com>
4653
4654 * nto-procfs.c (procfs_can_run): New function.
4655 (nto_procfs_ops): New global.
4656 (init_procfs_targets): New, based on procfs_target. Install
4657 "target native" in addition to "target procfs".
4658 (_initialize_procfs): Call init_procfs_targets instead of adding
4659 the target here.
4660
4661 2014-05-21 Pedro Alves <palves@redhat.com>
4662
4663 * windows-nat.c (windows_target): Don't override to_shortname,
4664 to_longname or to_doc.
4665
4666 2014-05-21 Pedro Alves <palves@redhat.com>
4667
4668 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4669 to_doc.
4670
4671 2014-05-21 Pedro Alves <palves@redhat.com>
4672
4673 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4674 to_shortname, to_longname or to_doc.
4675
4676 2014-05-21 Pedro Alves <palves@redhat.com>
4677
4678 * go32-nat.c (go32_target): Don't override to_shortname,
4679 to_longname or to_doc.
4680
4681 2014-05-21 Pedro Alves <palves@redhat.com>
4682
4683 * inf-child.c (inf_child_open): Remove mention of "child".
4684 (inf_child_target): Rename target to "native" instead of "child".
4685
4686 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4687
4688 * Makefile.in (SFILES): Delete "regset.c".
4689 (COMMON_OBS): Delete "regset.o".
4690 * regset.c: Remove.
4691 * regset.h (regset_alloc): Delete prototype.
4692
4693 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4694
4695 * sparc-linux-tdep.c (sparc32_linux_gregset)
4696 (sparc32_linux_fpregset): New static regset structures.
4697 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4698 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4699 'fpregset' fields.
4700 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4701 (sparc64_linux_fpregset): New static regset structures.
4702 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4703 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4704 New static regset structures.
4705 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4706 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4707 New static regset structures.
4708 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4709 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4710 New static regset structures.
4711 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4712 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4713 New static regset structures.
4714 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4715
4716 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4717
4718 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4719 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4720 register maps ("regmaps") from "*regset" to "*regmap". Do this
4721 for all regmap types and variables.
4722 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4723 (sparc32_linux_supply_core_gregset)
4724 (sparc32_linux_collect_core_gregset)
4725 (sparc32_linux_supply_core_fpregset)
4726 (sparc32_linux_collect_core_fpregset): Likewise.
4727 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4728 (sparc_gregmap, sparc_fpregmap): ... these.
4729 (sparc_supply_gregset, sparc_collect_gregset)
4730 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4731 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4732 (_initialize_sparc_nat): Rename regmaps.
4733 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4734 (sparc_gregmap, sparc_fpregmap): ... these.
4735 (sparc_supply_gregset, sparc_collect_gregset)
4736 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4737 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4738 Rename macros to...
4739 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4740 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4741 Likewise.
4742 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4743 Rename to...
4744 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4745 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4746 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4747 regmaps.
4748 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4749 (sparc32_bsd_fpregset): Rename to...
4750 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4751 (sparc32_bsd_fpregmap): ... these.
4752 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4753 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4754 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4755 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4756 (struct sparc_gregmap, struct sparc_fpregmap)
4757 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4758 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4759 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4760 (sparc32_supply_regset, sparc32_collect_gregset)
4761 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4762 prototypes.
4763 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4764 (sparc64_linux_ptrace_gregmap): ... this.
4765 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4766 (_initialize_sparc64_linux_nat): Rename regmaps.
4767 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4768 (sparc64_linux_core_gregmap): ... this.
4769 (sparc64_linux_supply_core_gregset)
4770 (sparc64_linux_collect_core_gregset)
4771 (sparc64_linux_supply_core_fpregset)
4772 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4773 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4774 (sparc64_sol2_fpregset): Rename to...
4775 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4776 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4777 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4778 regmaps.
4779 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4780 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4781 (sparc64_bsd_fpregset): Rename to...
4782 (struct sparc_gregmap, sparc64_sol2_gregmap)
4783 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4784 (sparc64_bsd_fpregmap): ... these.
4785 (sparc64_supply_gregset, sparc64_collect_gregset)
4786 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4787 prototypes.
4788 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4789 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4790 (sparc64fbsd_gregmap): ... this.
4791 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4792 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4793 Rename regmaps.
4794 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4795 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4796 (sparc64nbsd_collect_fpregset): Likewise.
4797 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4798 (sparc64nbsd_gregmap): ... this.
4799 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4800 regmaps.
4801 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4802 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4803 (sparc64obsd_gregmap): ... this.
4804 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4805 regmaps.
4806 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4807 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4808 (sparc32nbsd_gregmap): ... this.
4809 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4810 regmaps.
4811
4812 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4813
4814 * score-tdep.c (score7_linux_gregset): New static regset
4815 structure.
4816 (score7_linux_regset_from_core_section): Remove dynamic regset
4817 allocation.
4818 (score_gdbarch_init): Drop allocation of tdep structure.
4819 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4820
4821 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4822
4823 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4824 regset structures.
4825 (am33_regset_from_core_section): Remove dynamic regset
4826 allocations.
4827
4828 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4829
4830 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4831 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4832 structures.
4833 (mips_linux_regset_from_core_section): Remove dynamic regset
4834 allocations.
4835 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4836 'gregset64', 'fpregset', and 'fpregset64'.
4837 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4838 deleted tdep fields.
4839
4840 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4841
4842 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4843 regset structures.
4844 (amd64_regset_from_core_section): Remove dynamic regset
4845 allocations.
4846 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4847 structure.
4848 (amd64obsd_regset_from_core_section): Remove dynamic regset
4849 allocation.
4850 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4851 Likewise.
4852 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4853 x86-common regset supply function.
4854 * i386-tdep.c (i386_collect_gregset): Make static.
4855 (i386_gregset): New global regset structure.
4856 (i386_fpregset, i386_xstateregset): New static regset structures.
4857 (i386_regset_from_core_section): Remove dynamic regset
4858 allocations.
4859 (i386_gdbarch_init): Remove initialization of tdep fields
4860 'gregset', 'fpregset', and 'xstateregset'.
4861 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4862 'fpregset', and 'xstateregset'.
4863 (i386_collect_gregset): Remove prototype.
4864 (i386_gregset): New declaration.
4865 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4866 structure.
4867 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4868 allocation.
4869
4870 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4871
4872 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4873 (arm_linux_vfpregset): New static regset structures.
4874 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4875 regset structures.
4876 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4877 and 'vfpregset' fields.
4878
4879 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4880
4881 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4882 (aarch64_linux_fpregset): New static regset structures.
4883 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4884 of regset structures.
4885 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4886 'fpregset' fields.
4887
4888 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4889
4890 * regset.h (struct regset): Remove gdbarch field.
4891 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4892 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4893 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4894 Likewise.
4895 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4896 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4897 (ppc32_linux_vsxregset): Likewise.
4898 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4899 via the regcache instead of the regset.
4900 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4901 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4902 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4903 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4904 Likewise.
4905
4906 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4907
4908 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4909 Constify structures.
4910 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4911 (alphanbsd_aout_gregset): Likewise.
4912 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4913 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4914 Likewise.
4915 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4916 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4917 Likewise.
4918 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4919 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4920 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4921 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4922 * m88k-tdep.c (m88k_gregset): Likewise.
4923 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4924 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4925 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4926 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4927 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4928 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4929 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4930 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4931 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4932 Likewise.
4933 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4934 * sh-tdep.h (sh_corefile_gregset): Likewise.
4935 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4936 * vax-tdep.c (vax_gregset): Likewise.
4937
4938 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4939
4940 Fix TLS access for -static -pthread.
4941 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4942 (try_thread_db_load_1): Initialize it.
4943 (thread_db_get_thread_local_address): Call it if LM is zero.
4944 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4945 * target.h (struct target_ops) (to_get_thread_local_address): Add
4946 load_module_addr comment.
4947
4948 2014-05-21 Pedro Alves <palves@redhat.com>
4949
4950 * dcache.c (dcache_read_memory_partial): If reading the cache line
4951 fails, fallback to reading just the memory the caller wanted.
4952
4953 2014-05-20 Doug Evans <dje@google.com>
4954
4955 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4956 instead of get_current_arch.
4957
4958 2014-05-20 Pedro Alves <palves@redhat.com>
4959
4960 * NEWS: Mention that compare-sections now works with all targets.
4961
4962 * remote.c (PACKET_qCRC): New enum value.
4963 (remote_verify_memory): Don't send qCRC if the target has no
4964 execution. Use packet_support/packet_ok. If the target doesn't
4965 support the qCRC packet, fallback to a deep memory copy.
4966 (compare_sections_command): Say "target image" instead of "remote
4967 executable".
4968 (_initialize_remote): Add PACKET_qCRC to the list of config
4969 packets that have no associated command. Extend comment.
4970 * target.c (simple_verify_memory, default_verify_memory): New
4971 function.
4972 * target.h (struct target_ops) <to_verify_memory>: Default to
4973 default_verify_memory.
4974 (simple_verify_memory): New declaration.
4975 * target-delegates.c: Regenerate.
4976
4977 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4978
4979 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4980
4981 2014-05-20 Hui Zhu <hui@codesourcery.com>
4982 Yao Qi <yao@codesourcery.com>
4983
4984 PR backtrace/16558
4985 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4986 and change address of sp and pc.
4987
4988 2014-05-19 Tom Tromey <tromey@redhat.com>
4989
4990 * gdbtypes.c (rank_function): Use XNEWVEC.
4991 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4992
4993 2014-05-19 Doug Evans <dje@google.com>
4994
4995 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4996 build_type_unit_groups and moved closer to only caller. Remove
4997 arguments. All references updated. Remove outdated .gdb_index
4998 comment.
4999 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5000 build_type_psymtabs_1.
5001
5002 2014-05-19 Doug Evans <dje@google.com>
5003
5004 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5005 n_type_unit_groups, all_type_unit_groups. All uses removed.
5006 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5007 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5008 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5009 (add_type_unit_group_to_table): Delete.
5010
5011 2014-05-19 Doug Evans <dje@google.com>
5012
5013 * eval.c (evaluate_subexp_standard): Add some comments.
5014
5015 2014-05-17 Doug Evans <xdje42@gmail.com>
5016
5017 * progspace.c (remove_program_space): Delete, unused.
5018 * progspace.h (remove_program_space): Ditto.
5019
5020 2014-05-17 Doug Evans <xdje42@gmail.com>
5021
5022 * inferior.c (prune_inferiors): Fix comment.
5023 (remove_inferior_command): Call prune_program_spaces.
5024
5025 2014-05-16 Doug Evans <dje@google.com>
5026
5027 New command line option -D.
5028 * NEWS: Mention it.
5029 * main.c (set_gdb_data_directory): New function.
5030 (captured_main): Recognize -D. Flag error for --data-directory "".
5031 Call set_gdb_data_directory.
5032 (print_gdb_help): Print --data-directory, -D.
5033 * main.h (set_gdb_data_directory): Declare.
5034 * top.c (staged_gdb_datadir): New static global.
5035 (set_gdb_datadir): Call set_gdb_data_directory
5036 (show_gdb_datadir): New function.
5037 (init_main): Update init of data-directory parameter.
5038
5039 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5040
5041 Import the "dirfd" gnulib module.
5042 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5043 * gnulib/aclocal.m4: Update.
5044 * gnulib/config.in: Update.
5045 * gnulib/configure: Update.
5046 * gnulib/import/Makefile.am: Update.
5047 * gnulib/import/Makefile.in: Update.
5048 * gnulib/import/dirfd.c: New.
5049 * gnulib/import/m4/dirfd.m4: New.
5050 * gnulib/import/m4/gnulib-cache.m4: Update.
5051 * gnulib/import/m4/gnulib-comp.m4: Update.
5052
5053 2014-05-16 Pierre Muller <muller@sourceware.org>
5054 Yao Qi <yao@codesourcery.com>
5055
5056 * valprint.c (print_wchar): Move the code on checking whether
5057 W is a printable wide char to the default branch of switch
5058 statement below. Call wchar_printable instead of gdb_iswprint.
5059
5060 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5061
5062 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5063 ldr.w and ldrd instructions.
5064
5065 2014-05-15 Doug Evans <dje@google.com>
5066
5067 * dwarf2read.c (read_structure_type): Delete outdated comments.
5068
5069 2014-05-14 Tom Tromey <tromey@redhat.com>
5070
5071 * macrocmd.c (print_macro_definition): Reindent.
5072
5073 2014-05-13 Doug Evans <xdje42@gmail.com>
5074
5075 * python/py-cmd.c (cmdpy_completer): Add comment.
5076 (completers): Make const.
5077
5078 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5079
5080 * infrun.c (resume): Remove should_resume (unused). Move up
5081 declaration of resume_ptid.
5082
5083 2014-05-13 Tom Tromey <tromey@redhat.com>
5084
5085 * language.h (unop_type_check): Remove.
5086 (binop_type_check): Don't declare.
5087
5088 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5089
5090 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5091 call to regcache_raw_collect.
5092
5093 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5094
5095 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5096 mi_console->quote as the quoting character.
5097
5098 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5099
5100 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5101
5102 2014-04-29 Tom Tromey <tromey@redhat.com>
5103
5104 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5105 "show debug varobj".
5106
5107 2014-05-07 Kyle McMartin <kyle@redhat.com>
5108
5109 Pushed by Joel Brobecker <brobecker@adacore.com>.
5110 * aarch64-tdep.c (aarch64_software_single_step): New function.
5111 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5112 with aarch64_software_single_step.
5113
5114 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5115
5116 GDB 7.7.1 released.
5117
5118 2014-05-05 Keith Seitz <keiths@redhat.com>
5119
5120 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5121 variable or history value is successfully parsed.
5122
5123 2014-05-05 Yao Qi <yao@codesourcery.com>
5124 Pedro Alves <palves@redhat.com>
5125
5126 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5127 address of blocks that intersects the requested range. Trim
5128 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5129 sections.
5130 * ctf.c (ctf_xfer_partial): Likewise.
5131
5132 2014-05-05 Yao Qi <yao@codesourcery.com>
5133
5134 * printcmd.c (display_command): Remove the check to
5135 target_has_execution.
5136
5137 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5138
5139 * ppcobsd-nat.c: Include "obsd-nat.h".
5140 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5141 add_target.
5142 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5143
5144 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5145
5146 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5147 and 16-bit signed and unsigned arguments. Update comment.
5148 (stap_parse_probe_arguments): Extend code to handle such
5149 arguments. Use warning instead of complaint to notify about
5150 unrecognized bitness.
5151
5152 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5153
5154 PR breakpoints/16889
5155 * stap-probe.c (stap_parse_probe_arguments): Simplify
5156 check for non-prefixed probes (i.e., probes whose
5157 arguments do not start with "N@"). Always set the
5158 argument type to a sane value.
5159
5160 2014-05-01 David Taylor <dtaylor@emc.com>
5161
5162 * remote.c (compare_sections_command): Add -r option to compare
5163 all loadable read-only sections.
5164
5165 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5166
5167 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5168 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5169 Update all callers.
5170 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5171 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5172 Remove unused CORE_ADDR argument. Update all callers.
5173
5174 2014-04-29 Pedro Alves <palves@redhat.com>
5175
5176 * remote.c (struct packet_config) <detect>: Extend comment.
5177 (add_packet_config_cmd): Don't set the config's detect or support
5178 fields here.
5179 (init_all_packet_configs): Also initialize the config's 'detect'
5180 field.
5181 (reset_all_packet_configs_support): New function.
5182 (remote_open_1): Call reset_all_packet_configs_support instead of
5183 init_all_packet_configs.
5184 (_initialize_remote): Initialize all packet configs. Assert that
5185 all packets have an associated command, except a few known
5186 outliers.
5187
5188 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5189
5190 * dwarf2read.c (read_subrange_type): Handle dynamic
5191 DW_AT_lower_bound attributes.
5192
5193 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5194
5195 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5196 dynamic bounds before computing its upper bound.
5197 (ada_discrete_type_low_bound): Same as above with the lower bound.
5198
5199 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5200
5201 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5202 range types. Adjust the array handling implementation to
5203 take advantage of this change.
5204 (resolve_dynamic_range): New function, mostly extracted from
5205 resolve_dynamic_bounds.
5206 (resolve_dynamic_array): New function, mostly extracted from
5207 resolve_dynamic_bounds.
5208 (resolve_dynamic_bounds): Delete.
5209 (resolve_dynamic_type): Reimplement. Add handling of
5210 TYPE_CODE_RANGE types.
5211
5212 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5213
5214 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5215 handling of parallel ___XA types.
5216
5217 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5218
5219 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5220 unnecessary second call to static_unwrap_type.
5221
5222 2014-04-27 Hui Zhu <hui@codesourcery.com>
5223
5224 * stack.c (print_frame_info): Call do_gdb_disassembly with
5225 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5226
5227 2014-04-26 Doug Evans <xdje42@gmail.com>
5228
5229 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5230
5231 2014-04-25 Pedro Alves <palves@redhat.com>
5232
5233 PR server/16255
5234 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5235 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5236 and newline from built string.
5237 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5238 (linux_ptrace_attach_fail_reason): ... this.
5239 * linux-nat.c (linux_nat_attach): Adjust to use
5240 linux_ptrace_attach_fail_reason.
5241
5242 2014-04-25 Pedro Alves <palves@redhat.com>
5243
5244 * remote.c (struct remote_state): Remove multi_process_aware,
5245 non_stop_aware, cond_tracepoints, cond_breakpoints,
5246 breakpoint_commands, fast_tracepoints, static_tracepoints,
5247 install_in_trace, disconnected_tracing,
5248 enable_disable_tracepoints, string_tracing, and
5249 augmented_libraries_svr4_read fields.
5250 (remote_multi_process_p): Move further below in the file.
5251 (struct packet_config): Add comments.
5252 (update_packet_config): Delete function.
5253 (show_packet_config_cmd): Use packet_config_support.
5254 (add_packet_config_cmd): Use NULL as set callback.
5255 (packet_ok): "set remote foo-packet"-style commands no longer
5256 change config->supported -- adjust.
5257 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5258 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5259 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5260 (PACKET_QNonStop, PACKET_multiprocess_feature)
5261 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5262 (PACKET_DisconnectedTracing_feature)
5263 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5264 (set_remote_protocol_packet_cmd): Delete function.
5265 (packet_config_support, packet_support): New functions.
5266 (set_remote_protocol_Z_packet_cmd): Don't call
5267 update_packet_config.
5268 (remote_query_attached, remote_pass_signals)
5269 (remote_program_signals, remote_threads_info)
5270 (remote_threads_extra_info, remote_start_remote): Use
5271 packet_support.
5272 (remote_start_remote): Use packet_config_support and
5273 packet_support.
5274 (init_all_packet_configs): Set all packets to unknown support,
5275 instead of calling update_packet_config.
5276 (remote_check_symbols): Use packet_support.
5277 (remote_supported_packet): Unconditionally set the packet config's
5278 support status.
5279 (remote_multi_process_feature, remote_non_stop_feature)
5280 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5281 (remote_breakpoint_commands_feature)
5282 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5283 (remote_install_in_trace_feature)
5284 (remote_disconnected_tracing_feature)
5285 (remote_enable_disable_tracepoint_feature)
5286 (remote_string_tracing_feature)
5287 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5288 (remote_protocol_features): Adjust to use remote_supported_packet
5289 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5290 "ConditionalTracepoints", "ConditionalBreakpoints",
5291 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5292 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5293 "EnableDisableTracepoints", and "tracenz".
5294 (remote_query_supported): Use packet_support.
5295 (remote_open_1): Adjust.
5296 (extended_remote_attach_1): Use packet_support. Switch on the
5297 result of packet_ok instead of checking whether the packet ended
5298 up disabled.
5299 (remote_vcont_resume): Use packet_support.
5300 (remote_resume, remote_stop_ns, fetch_register_using_p)
5301 (remote_prepare_to_store, store_register_using_P)
5302 (check_binary_download, remote_write_bytes): Use packet_support.
5303 (remote_vkill): Use packet_support. Switch on the result of
5304 packet_ok instead of checking whether the packet ended up
5305 disabled.
5306 (extended_remote_supports_disable_randomization): Use
5307 packet_support.
5308 (extended_remote_run): Switch on the result of packet_ok instead
5309 of checking whether the packet ended up disabled.
5310 (remote_insert_breakpoint, remote_remove_breakpoint)
5311 (remote_insert_watchpoint, remote_remove_watchpoint)
5312 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5313 packet_support.
5314 (remote_search_memory): Use packet_config_support.
5315 (remote_get_thread_local_address, remote_get_tib_address)
5316 (remote_hostio_send_command, remote_can_execute_reverse): Use
5317 packet_support.
5318 (remote_supports_cond_tracepoints)
5319 (remote_supports_cond_breakpoints)
5320 (remote_supports_fast_tracepoints)
5321 (remote_supports_static_tracepoints)
5322 (remote_supports_install_in_trace)
5323 (remote_supports_enable_disable_tracepoint)
5324 (remote_supports_string_tracing)
5325 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5326 the packet config says the feature is enabled or disabled.
5327 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5328 (remote_get_trace_status): Use packet_support.
5329 (remote_set_disconnected_tracing): Adjust to check whether the
5330 feature is enabled with packet_support.
5331 (remote_set_trace_buffer_size, remote_use_agent)
5332 (remote_can_use_agent, remote_supports_btrace): Use
5333 packet_support.
5334 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5335 Use packet_config_support.
5336 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5337 the packet config says the feature is enabled or disabled.
5338 (set_range_stepping): Use packet_support.
5339
5340 2014-04-25 Tom Tromey <tromey@redhat.com>
5341
5342 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5343 argument.
5344
5345 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5346
5347 * NEWS: Mention support for C99 variable length arrays.
5348
5349 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5350
5351 * ada-lang.c (standard_exc): Expand introductory comment.
5352
5353 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5354 Walfred Tedeschi <walfred.tedeschi@intel.com>
5355
5356 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5357 AVX512 registers.
5358 (amd64_linux_read_description): Add code to handle AVX512 xstate
5359 mask and return respective tdesc.
5360 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5361 and features/i386/x32-avx512-linux.c.
5362 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5363 (amd64_linux_core_read_description): Add code to handle AVX512
5364 xstate mask and return respective tdesc.
5365 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5366 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5367 calculation.
5368 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5369 (tdesc_amd64_avx512_linux): New prototype.
5370 (tdesc_x32_avx512_linux): Likewise.
5371 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5372 features/i386/x32-avx512.c.
5373 (amd64_ymm_avx512_names): New register names for pseudo
5374 registers YMM16-31.
5375 (amd64_ymmh_avx512_names): New register names for raw registers
5376 YMMH16-31.
5377 (amd64_k_names): New register names for K registers.
5378 (amd64_zmmh_names): New register names for ZMM raw registers.
5379 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5380 (amd64_xmm_avx512_names): New register names for XMM16-31
5381 registers.
5382 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5383 registers.
5384 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5385 if feature is present.
5386 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5387 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5388 (AMD64_NUM_REGS): Adjust to new number of registers.
5389 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5390 registers supplied via XSTATE by AVX512 registers.
5391 (i386_linux_read_description): Add case for AVX512.
5392 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5393 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5394 (i386_linux_core_read_description): Add case for AVX512.
5395 (i386_linux_init_abi): Install supported register note section
5396 for AVX512.
5397 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5398 AVX512.
5399 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5400 registers to be number of zmm7h + 1.
5401 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5402 * i386-tdep.c: Include features/i386/i386-avx512.c.
5403 (i386_zmm_names): Add ZMM pseudo register names array.
5404 (i386_zmmh_names): Add ZMM raw register names array.
5405 (i386_k_names): Add K raw register names array.
5406 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5407 registers. AVX512 has 16 more ZMM registers than there are YMM
5408 registers.
5409 (i386_zmmh_regnum_p): Add function to look up register number of
5410 ZMM raw registers.
5411 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5412 (i386_k_regnum_p): Likewise for K raw registers.
5413 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5414 registers added by AVX512.
5415 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5416 registers added by AVX512.
5417 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5418 added by AVX512.
5419 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5420 (i386_pseudo_register_name): Add ZMM pseudo registers.
5421 (i386_zmm_type): Construct and return vector registers type for ZMM
5422 registers.
5423 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5424 ZMM0-31 pseudo registers and K registers.
5425 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5426 and YMM16-31 registers from register cache.
5427 (i386_pseudo_register_write): Add code to write K, ZMM and
5428 YMM16-31 registers.
5429 (i386_register_reggroup_p): Add code to include/exclude AVX512
5430 registers in/from respective register groups.
5431 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5432 registers if feature is present in xcr0.
5433 (i386_gdbarch_init): Add code to initialize AVX512 feature
5434 variables in tdep structure, wire in pseudo registers and call
5435 initialize_tdesc_i386_avx512.
5436 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5437 variables.
5438 (i386_regnum): Add AVX512 registers.
5439 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5440 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5441 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5442 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5443 512 bits wide.
5444 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5445 (i386_ymm_avx512_regnum_p): Likewise.
5446 (i386_k_regnum_p): Likewise.
5447 (i386_zmm_regnum_p): Likewise.
5448 (i386_zmmh_regnum_p): Likewise.
5449 * i387-tdep.c : Update year in copyright notice.
5450 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5451 XSAVE buffer.
5452 (XSAVE_YMM_AVX512_ADDR): New macro.
5453 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5454 XSAVE buffer.
5455 (XSAVE_XMM_AVX512_ADDR): New macro.
5456 (xsave_avx512_k_offset): New table for K register offsets in
5457 XSAVE buffer.
5458 (XSAVE_AVX512_K_ADDR): New macro.
5459 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5460 in XSAVE buffer.
5461 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5462 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5463 buffer.
5464 (i387_collect_xsave): Add code to collect AVX512 registers from
5465 XSAVE buffer.
5466 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5467 of XMM16-31 registers.
5468 (I387_NUM_K_REGS): New define for number of K registers.
5469 (I387_K0_REGNUM): New define for K0 register number.
5470 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5471 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5472 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5473 registers.
5474 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5475 (I387_XMM16_REGNUM): New define for XMM16 register number.
5476 (I387_YMM0_REGNUM): New define for YMM0 register number.
5477 (I387_KEND_REGNUM): New define for last K register number.
5478 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5479 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5480 number.
5481 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5482 number.
5483 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5484 size.
5485 * features/Makefile: Add AVX512 related files.
5486 * features/i386/32bit-avx512.xml: New file.
5487 * features/i386/64bit-avx512.xml: Likewise.
5488 * features/i386/amd64-avx512-linux.c: Likewise.
5489 * features/i386/amd64-avx512-linux.xml: Likewise.
5490 * features/i386/amd64-avx512.c: Likewise.
5491 * features/i386/amd64-avx512.xml: Likewise.
5492 * features/i386/i386-avx512-linux.c: Likewise.
5493 * features/i386/i386-avx512-linux.xml: Likewise.
5494 * features/i386/i386-avx512.c: Likewise.
5495 * features/i386/i386-avx512.xml: Likewise.
5496 * features/i386/x32-avx512-linux.c: Likewise.
5497 * features/i386/x32-avx512-linux.xml: Likewise.
5498 * features/i386/x32-avx512.c: Likewise.
5499 * features/i386/x32-avx512.xml: Likewise.
5500 * regformats/i386/amd64-avx512-linux.dat: New file.
5501 * regformats/i386/amd64-avx512.dat: Likewise.
5502 * regformats/i386/i386-avx512-linux.dat: Likewise.
5503 * regformats/i386/i386-avx512.dat: Likewise.
5504 * regformats/i386/x32-avx512-linux.dat: Likewise.
5505 * regformats/i386/x32-avx512.dat: Likewise.
5506 * NEWS: Add note about new support for AVX512.
5507
5508
5509 2014-04-23 Pedro Alves <palves@redhat.com>
5510
5511 * breakpoint.c (insert_bp_location): Tolerate errors if the
5512 breakpoint is set in a user-loaded objfile.
5513 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5514 location is marked shlib_disabled. If the breakpoint is set in a
5515 user-loaded objfile is a GDB-side memory breakpoint, validate it
5516 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5517 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5518 flag.
5519 * mem-break.c (memory_validate_breakpoint): New function.
5520 * objfiles.c (userloaded_objfile_contains_address_p): New
5521 function.
5522 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5523 * target.h (memory_validate_breakpoint): New declaration.
5524
5525 2014-04-23 Pedro Alves <palves@redhat.com>
5526
5527 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5528 the breakpoint is set in a shared library, only suppress
5529 errors for software breakpoints, not hardware breakpoints.
5530
5531 2014-04-22 Pedro Alves <palves@redhat.com>
5532
5533 * infrun.c (schedlock_applies): New function, factored out from
5534 find_thread_needs_step_over.
5535 (find_thread_needs_step_over): Use it.
5536 (switch_back_to_stepped_thread): Always clear trap_expected if the
5537 step over is finished. Return early if scheduler locking applies.
5538 Look for the stepping thread and a potential step-over thread with
5539 a single loop.
5540 (currently_stepping_or_nexting_callback): Delete.
5541
5542 2014-04-22 Nick Clifton <nickc@redhat.com>
5543
5544 * NEWS: Mention that ARM sim now supports tracing.
5545
5546 2014-04-22 Yao Qi <yao@codesourcery.com>
5547
5548 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5549 to ...
5550 * tracefile.c (tracefile_fetch_registers): ... it. New
5551 function.
5552 * tracefile.h (tracefile_fetch_registers): Declare.
5553 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5554 tracefile_fetch_registers.
5555
5556 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5557
5558 PR gdb/14018
5559 * windows-nat.c (thread_rec): Don't display a warning when
5560 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5561 fails for any reason, set th->suspended to -1, so that we don't
5562 try to resume such a thread. Also, don't return NULL in these
5563 cases, to avoid completely ruin the session due to "PC register is
5564 not available" error.
5565 (do_windows_fetch_inferior_registers): Check errors in
5566 GetThreadContext call.
5567 (windows_continue): Accept an additional argument KILLED; if not
5568 zero, ignore errors in the SetThreadContext call, since the
5569 inferior was killed and is shutting down.
5570 (windows_resume, get_windows_debug_event)
5571 (windows_create_inferior, windows_mourn_inferior)
5572 (windows_kill_inferior): All callers of windows_continue changed
5573 to adjust to its new calling sequence.
5574
5575 2014-04-19 Yao Qi <yao@codesourcery.com>
5576
5577 * ctf.c (ctf_open): Call post_create_inferior.
5578
5579 2014-04-19 Yao Qi <yao@codesourcery.com>
5580
5581 * ctf.c (handle_id): New static variable.
5582 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5583 value. Get the declaration of event "register" and get length
5584 of field "contents".
5585
5586 2014-04-19 Yao Qi <yao@codesourcery.com>
5587
5588 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5589
5590 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5591
5592 * valops.c (oload_method_static): Remove unnecessary argument
5593 METHOD. Update all callers.
5594
5595 2014-04-18 Pedro alves <palves@redhat.com>
5596 Tom Tromey <tromey@redhat.com>
5597
5598 PR backtrace/15558
5599 * frame.c (get_prev_frame_1): Rename to ...
5600 (get_prev_frame_always): ... this, and make extern. Adjust.
5601 (skip_artificial_frames): Use get_prev_frame_always.
5602 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5603 (get_frame_unwind_stop_reason): Adjust to rename.
5604 * frame.h (get_prev_frame_always): Declare.
5605 * inline-frame.c: Include frame.h.
5606 (inline_frame_this_id): Use get_prev_frame_always.
5607
5608 2014-04-18 Tristan Gingold <gingold@adacore.com>
5609
5610 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5611 code by using bfd_mach_o_get_base_address.
5612
5613 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5614
5615 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5616 (spu_ax_pseudo_register_collect): New function.
5617 (spu_ax_pseudo_register_push_stack): Likewise.
5618 (spu_dwarf_reg_to_regnum): Likewise.
5619 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5620
5621 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5622
5623 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5624 Replace FRAME argument with FRAME_ID.
5625 * gdbarch.c, gdbarch.h: Regenerate.
5626 * findvar.c (default_value_from_register): Add GDBARCH argument;
5627 replace FRAME by FRAME_ID. No longer call get_frame_id.
5628 (value_from_register): Update call to gdbarch_value_from_register.
5629 * value.h (default_value_from_register): Update prototype.
5630 * s390-linux-tdep.c (s390_value_from_register): Update interface
5631 and call to default_value_from_register.
5632 * spu-tdep.c (spu_value_from_register): Likewise.
5633
5634 * findvar.c (address_from_register): Remove TYPE argument.
5635 Do not call value_from_register; use gdbarch_value_from_register
5636 with null_frame_id instead.
5637 * value.h (address_from_register): Update prototype.
5638 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5639 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5640 address_from_register interface change.
5641
5642 2014-04-17 Yao Qi <yao@codesourcery.com>
5643
5644 * gdbtypes.h: Update comments to link to types and macros'
5645 definitions.
5646
5647 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5648
5649 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5650
5651 2014-04-16 Keith Seitz <keiths@redhat.com>
5652
5653 PR gdb/15827
5654 * dwarf2read.c (skip_one_die): Check that all relative-offset
5655 sibling DIEs fall within range of the current reader's buffer.
5656 (read_partial_die): Likewise.
5657
5658 2014-04-16 Keith Seitz <keiths@redhat.com>
5659
5660 PR c++/16597
5661 * cp-namespace.c (lookup_symbol_file): If the type name of
5662 `this' is NULL, return immediately.
5663
5664 2014-04-14 Keith Seitz <keiths@redhat.com>
5665
5666 PR c++/16253
5667 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5668 from symbol_matches_domain in symtab.c. All local callers
5669 of symbol_matches_domain updated.
5670 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5671 search STRUCT_DOMAIN.
5672 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5673 independently. standard_lookup will do that automatically.
5674 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5675 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5676 (cp_lookup_symbol_in_namespace): Likewise.
5677 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5678 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5679 may return a STRUCT_DOMAIN match.
5680 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5681 * cp-support.c: Include language.h.
5682 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5683 VAR_DOMAIN.
5684 * psymtab.c (match_partial_symbol): Compare the requested
5685 domain with the symbol's domain directly.
5686 (lookup_partial_symbol): Likewise.
5687 * symtab.c (lookup_symbol_in_language): Explain when/why
5688 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5689 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5690 appropriate languages.
5691 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5692 and moved to ada-lang.c
5693 (lookup_block_symbol): Explain that this function only returns
5694 symbol matching the requested DOMAIN.
5695 Compare the requested domain with the symbol's domain directly.
5696 (iterate_over_symbols): Compare the requested domain with the
5697 symbol's domain directly.
5698 * symtab.h (symbol_matches_domain): Remove.
5699
5700 2014-04-14 Tom Tromey <tromey@redhat.com>
5701
5702 PR c++/15246:
5703 * c-exp.y (type_aggregate_p): New function.
5704 (qualified_name, classify_inner_name): Use it.
5705 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5706 and TYPE_TARGET_TYPE of an enum type.
5707 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5708 an enum type.
5709 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5710 handle TYPE_DECLARED_CLASS.
5711 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5712 types.
5713 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5714 * valops.c (enum_constant_from_type): New function.
5715 (value_aggregate_elt): Use it.
5716 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5717 TYPE_CODE_ENUM.
5718
5719 2014-04-14 Tom Tromey <tromey@redhat.com>
5720
5721 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5722 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5723 const.
5724 * value.h (value_aggregate_elt): Update.
5725
5726 2014-04-14 Tom Tromey <tromey@redhat.com>
5727
5728 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5729
5730 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5731
5732 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5733 (evaluate_subexp_standard): Pass noside argument.
5734 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5735 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5736 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5737 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5738 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5739
5740 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5741
5742 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5743 points to a constant blob.
5744
5745 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5746
5747 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5748 property and store it as the high bound and flag the range accordingly.
5749 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5750 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5751 * gdbtypes.h (enum range_flags): New enum.
5752 (struct range_bounds): Add flags member.
5753
5754 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5755
5756 * c-typeprint.c (c_type_print_varspec_suffix): Added
5757 check for not yet resolved high bound. If unresolved, print
5758 "variable length" string to the console instead of random
5759 length.
5760
5761 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5762
5763 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5764 value.
5765 (ada_template_to_fixed_record_type_1): Likewise.
5766 (ada_to_fixed_type_1): Likewise.
5767 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5768 (cp_print_value): Likewise.
5769 * d-valprint.c (dynamic_array_type): Likewise.
5770 * findvar.c (address_of_variable): Likewise.
5771 * jv-valprint.c (java_value_print): Likewise.
5772 * valops.c (value_ind): Likewise.
5773 * value.c (coerce_ref): Likewise.
5774
5775 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5776
5777 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5778 value and retrieve the dynamic type size.
5779
5780 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5781
5782 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5783 passed to sizeof is dynamic evaluate the argument to compute the length.
5784
5785 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5786 Joel Brobecker <brobecker@adacore.com>
5787
5788 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5789 (dwarf2_evaluate_property): New function.
5790 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5791 * dwarf2read.c (attr_to_dynamic_prop): New function.
5792 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5793 attribute.
5794 * gdbtypes.c: Include dwarf2loc.h.
5795 (is_dynamic_type): New function.
5796 (resolve_dynamic_type): New function.
5797 (resolve_dynamic_bounds): New function.
5798 (get_type_length): New function.
5799 (check_typedef): Use get_type_length to compute type length.
5800 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5801 (TYPE_LOW_BOUND_KIND): New macro.
5802 (is_dynamic_type): New function prototype.
5803 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5804 to resolve dynamic properties of the type. Update comment.
5805 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5806
5807 2014-04-14 Richard Henderson <rth@redhat.com>
5808
5809 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5810
5811 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5812 Doug Evans <xdje42@gmail.com>
5813
5814 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5815 dereference TYPE_CODE_REF values.
5816
5817 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5818
5819 Revert the following changes due to regressions:
5820
5821 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5822 (dwarf2_evaluate_property): New function.
5823 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5824 * dwarf2read.c (attr_to_dynamic_prop): New function.
5825 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5826 attribute.
5827 * gdbtypes.c: Include dwarf2loc.h.
5828 (is_dynamic_type): New function.
5829 (resolve_dynamic_type): New function.
5830 (resolve_dynamic_bounds): New function.
5831 (get_type_length): New function.
5832 (check_typedef): Use get_type_length to compute type length.
5833 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5834 (TYPE_LOW_BOUND_KIND): New macro.
5835 (is_dynamic_type): New function prototype.
5836 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5837 to resolve dynamic properties of the type. Update comment.
5838 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5839
5840 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5841 passed to sizeof is dynamic evaluate the argument to compute the length.
5842
5843 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5844 value and retrieve the dynamic type size.
5845
5846 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5847 (ada_template_to_fixed_record_type_1): Likewise.
5848 (ada_to_fixed_type_1): Likewise.
5849 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5850 (cp_print_value): Likewise.
5851 * d-valprint.c (dynamic_array_type): Likewise.
5852 * eval.c (evaluate_subexp_with_coercion): Likewise.
5853 * findvar.c (address_of_variable): Likewise.
5854 * jv-valprint.c (java_value_print): Likewise.
5855 * valops.c (value_ind): Likewise.
5856 * value.c (coerce_ref): Likewise.
5857
5858 * c-typeprint.c (c_type_print_varspec_suffix): Added
5859 check for not yet resolved high bound. If unresolved, print
5860 "variable length" string to the console instead of random
5861 length.
5862
5863 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5864 property and store it as the high bound and flag the range accordingly.
5865 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5866 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5867 * gdbtypes.h (enum range_flags): New enum.
5868 (struct range_bounds): Add flags member.
5869
5870 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5871 points to a constant blob.
5872
5873 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5874 (evaluate_subexp_standard): Pass noside argument.
5875 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5876 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5877 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5878 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5879 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5880
5881 2014-04-11 Keith Seitz <keiths@redhat.com>
5882
5883 PR c++/16675
5884 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5885 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5886 reference types.
5887
5888 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5889
5890 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5891 (evaluate_subexp_standard): Pass noside argument.
5892 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5893 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5894 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5895 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5896 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5897
5898 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5899
5900 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5901 points to a constant blob.
5902
5903 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5904
5905 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5906 property and store it as the high bound and flag the range accordingly.
5907 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5908 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5909 * gdbtypes.h (enum range_flags): New enum.
5910 (struct range_bounds): Add flags member.
5911
5912 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5913
5914 * c-typeprint.c (c_type_print_varspec_suffix): Added
5915 check for not yet resolved high bound. If unresolved, print
5916 "variable length" string to the console instead of random
5917 length.
5918
5919 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5920
5921 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5922 (ada_template_to_fixed_record_type_1): Likewise.
5923 (ada_to_fixed_type_1): Likewise.
5924 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5925 (cp_print_value): Likewise.
5926 * d-valprint.c (dynamic_array_type): Likewise.
5927 * eval.c (evaluate_subexp_with_coercion): Likewise.
5928 * findvar.c (address_of_variable): Likewise.
5929 * jv-valprint.c (java_value_print): Likewise.
5930 * valops.c (value_ind): Likewise.
5931 * value.c (coerce_ref): Likewise.
5932
5933 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5934
5935 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5936 value and retrieve the dynamic type size.
5937
5938 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5939
5940 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5941 passed to sizeof is dynamic evaluate the argument to compute the length.
5942
5943 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5944
5945 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5946 (dwarf2_evaluate_property): New function.
5947 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5948 * dwarf2read.c (attr_to_dynamic_prop): New function.
5949 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5950 attribute.
5951 * gdbtypes.c: Include dwarf2loc.h.
5952 (is_dynamic_type): New function.
5953 (resolve_dynamic_type): New function.
5954 (resolve_dynamic_bounds): New function.
5955 (get_type_length): New function.
5956 (check_typedef): Use get_type_length to compute type length.
5957 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5958 (TYPE_LOW_BOUND_KIND): New macro.
5959 (is_dynamic_type): New function prototype.
5960 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5961 to resolve dynamic properties of the type. Update comment.
5962 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5963
5964 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5965
5966 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5967 declaring high/low bounds and change uses accordingly. Call
5968 create_range_type instead of create_static_range_type.
5969 * gdbtypes.c (create_range_type): New function.
5970 (create_range_type): Convert bounds into struct bound_prop and pass
5971 them to create_range_type.
5972 * gdbtypes.h (struct bound_prop): New struct.
5973 (create_range_type): New function prototype.
5974 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5975 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5976 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5977 part of the bound.
5978 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5979
5980 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5981
5982 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5983 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5984 * ada-lang.c: All uses of create_range_type updated.
5985 * coffread.c: All uses of create_range_type updated.
5986 * dwarf2read.c: All uses of create_range_type updated.
5987 * f-exp.y: All uses of create_range_type updated.
5988 * m2-valprint.c: All uses of create_range_type updated.
5989 * mdebugread.c: All uses of create_range_type updated.
5990 * stabsread.c: All uses of create_range_type updated.
5991 * valops.c: All uses of create_range_type updated.
5992 * valprint.c: All uses of create_range_type updated.
5993
5994 2014-04-10 Pedro Alves <palves@redhat.com>
5995
5996 * breakpoint.c (single_step_breakpoints)
5997 (single_step_gdbarch): Move up in the file.
5998 (one_breakpoint_xfer_memory): New function, factored out from ...
5999 (breakpoint_xfer_memory): ... here. Also process single-step
6000 breakpoints.
6001
6002 2014-04-09 Tristan Gingold <gingold@adacore.com>
6003
6004 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6005 comments.
6006 (darwin_decode_exception_message): Free port only after use.
6007
6008 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6009
6010 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6011 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6012 when setting the size of call_length.
6013
6014 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6015
6016 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6017 dereference TYPE_CODE_REF values.
6018
6019 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6020
6021 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6022 end of warning message.
6023
6024 2014-04-03 Doug Evans <dje@google.com>
6025
6026 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6027 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6028
6029 2014-04-02 Alan Modra <amodra@gmail.com>
6030
6031 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6032 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6033 (struct symbol_file_add_from_memory_args): Add size field.
6034 (find_vdso_size): New function.
6035 (add_vsyscall_page): Attempt to find vdso size.
6036
6037 2014-04-01 Doug Evans <dje@google.com>
6038
6039 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6040
6041 2014-04-01 Tristan Gingold <gingold@adacore.com>
6042
6043 * darwin-nat.c (darwin_encode_reply): Add prototype.
6044 (darwin_decode_exception_message): Reply to unknown inferiors.
6045 (darwin_decode_message): Handle message by id. Ignore message
6046 to unknown inferior.
6047 (darwin_wait): Discard unknown messages, add debug trace.
6048
6049 2014-03-31 Doug Evans <dje@google.com>
6050
6051 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6052 comp_dir_string.
6053
6054 2014-03-31 Doug Evans <dje@google.com>
6055
6056 New option "set print symbol-loading".
6057 * NEWS: Mention it.
6058 * solib.c (solib_read_symbols): Only print symbol loading messages
6059 if requested.
6060 (solib_add): If symbol loading is in "brief" mode, notify user
6061 symbols are being loaded.
6062 (reload_shared_libraries_1): Ditto.
6063 * symfile.c (print_symbol_loading_off): New static global.
6064 (print_symbol_loading_brief): New static global.
6065 (print_symbol_loading_full): New static global.
6066 (print_symbol_loading_enums): New static global.
6067 (print_symbol_loading): New static global.
6068 (print_symbol_loading_p): New function.
6069 (symbol_file_add_with_addrs): Only print symbol loading messages
6070 if requested.
6071 (_initialize_symfile): Register "print symbol-loading" set/show
6072 command.
6073 * symfile.h (print_symbol_loading_p): Declare.
6074
6075 2014-03-30 Doug Evans <xdje42@gmail.com>
6076
6077 * infrun.c (set_last_target_status): New function.
6078 (handle_inferior_event): Call it.
6079
6080 2014-03-30 Doug Evans <xdje42@gmail.com>
6081
6082 * inferior.h (enum stop_kind): Improve comment.
6083
6084 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6085
6086 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6087 a reference, strip the reference layer before calling
6088 the lang_ops value_has_mutated callback.
6089
6090 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6091
6092 Remove some globals from our parser.
6093 * language.c (unk_lang_parser): Add "struct parser_state"
6094 argument.
6095 * language.h (struct language_defn) <la_parser>: Likewise.
6096 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6097 (initialize_expout): Add "struct parser_state" argument.
6098 Rewrite function to use the parser state.
6099 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6100 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6101 write_exp_elt_longcst, write_exp_elt_dblcst,
6102 write_exp_elt_decfloatcst, write_exp_elt_type,
6103 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6104 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6105 write_dollar_variable): Likewise.
6106 (parse_exp_in_context_1): Use parser state.
6107 (insert_type_address_space): Add "struct parser_state" argument.
6108 Use parser state.
6109 (increase_expout_size): New function.
6110 * parser-defs.h: Forward declare "struct language_defn" and
6111 "struct parser_state".
6112 (expout, expout_size, expout_ptr): Remove extern declarations.
6113 (parse_gdbarch, parse_language): Rewrite macro declarations to
6114 accept the parser state.
6115 (struct parser_state): New struct.
6116 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6117 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6118 write_exp_elt_decfloatcst, write_exp_elt_type,
6119 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6120 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6121 write_exp_msymbol, write_dollar_variable,
6122 mark_struct_expression, insert_type_address_space): Add "struct
6123 parser_state" argument.
6124 (increase_expout_size): New function.
6125 * utils.c (do_clear_parser_state): New function.
6126 (make_cleanup_clear_parser_state): Likewise.
6127 * utils.h (make_cleanup_clear_parser_state): New function
6128 prototype.
6129 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6130 Update calls to write_exp* in order to pass the parser state.
6131 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6132 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6133 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6134 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6135 * stap-probe.c (stap_parse_register_operand): Likewise.
6136 (stap_parse_single_operand): Likewise.
6137 (stap_parse_argument_1): Likewise.
6138 (stap_parse_argument): Use parser state.
6139 * stap-probe.h: Include "parser-defs.h".
6140 (struct stap_parse_info) <pstate>: New field.
6141 * c-exp.y (parse_type): Rewrite to use parser state.
6142 (yyparse): Redefine to c_parse_internal.
6143 (pstate): New global variable.
6144 (parse_number): Add "struct parser_state" argument.
6145 (write_destructor_name): Likewise.
6146 (type_exp): Update calls to write_exp* and similars in order to
6147 use parser state.
6148 (exp1, exp, variable, qualified_name, space_identifier,
6149 typename, typebase): Likewise.
6150 (write_destructor_name, parse_number, lex_one_token,
6151 classify_name, classify_inner_name, c_parse): Add "struct
6152 parser_state" argument. Update function to use parser state.
6153 * c-lang.h: Forward declare "struct parser_state".
6154 (c_parse): Add "struct parser_state" argument.
6155 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6156 (yyparse): Redefine macro to ada_parse_internal.
6157 (pstate): New variable.
6158 (write_int, write_object_renaming, write_var_or_type,
6159 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6160 type_int, type_long, type_long_long, type_float, type_double,
6161 type_long_double, type_char, type_boolean, type_system_address):
6162 Add "struct parser_state" argument.
6163 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6164 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6165 var_or_type, aggregate, aggregate_component_list,
6166 positional_list, others, component_group,
6167 component_associations): Update calls to write_exp* and similar
6168 functions in order to use parser state.
6169 (ada_parse, write_var_from_sym, write_int,
6170 write_exp_op_with_string, write_object_renaming,
6171 find_primitive_type, write_selectors, write_ambiguous_var,
6172 write_var_or_type, write_name_assoc, type_int, type_long,
6173 type_long_long, type_float, type_double, type_long_double,
6174 type_char, type_boolean, type_system_address): Add "struct
6175 parser_state" argument. Adjust function to use parser state.
6176 * ada-lang.c (parse): Likewise.
6177 * ada-lang.h: Forward declare "struct parser_state".
6178 (ada_parse): Add "struct parser_state" argument.
6179 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6180 calls to both functions.
6181 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6182 parser state.
6183 (yyparse): Redefine macro to f_parse_internal.
6184 (pstate): New variable.
6185 (parse_number): Add "struct parser_state" argument.
6186 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6187 and similars in order to use parser state.
6188 (parse_number): Adjust code to use parser state.
6189 (yylex): Likewise.
6190 (f_parse): New function.
6191 * f-lang.h: Forward declare "struct parser_state".
6192 (f_parse): Add "struct parser_state" argument.
6193 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6194 parser state.
6195 (yyparse): Redefine macro for java_parse_internal.
6196 (pstate): New variable.
6197 (push_expression_name, push_expression_name, insert_exp): Add
6198 "struct parser_state" argument.
6199 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6200 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6201 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6202 PostIncrementExpression, PostDecrementExpression,
6203 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6204 UnaryExpressionNotPlusMinus, CastExpression,
6205 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6206 RelationalExpression, EqualityExpression, AndExpression,
6207 ExclusiveOrExpression, InclusiveOrExpression,
6208 ConditionalAndExpression, ConditionalOrExpression,
6209 ConditionalExpression, Assignment, LeftHandSide): Update
6210 calls to write_exp* and similars in order to use parser state.
6211 (parse_number): Ajust code to use parser state.
6212 (yylex): Likewise.
6213 (java_parse): New function.
6214 (push_variable): Add "struct parser_state" argument. Adjust
6215 code to user parser state.
6216 (push_fieldnames, push_qualified_expression_name,
6217 push_expression_name, insert_exp): Likewise.
6218 * jv-lang.h: Forward declare "struct parser_state".
6219 (java_parse): Add "struct parser_state" argument.
6220 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6221 parser state.
6222 (yyparse): Redefine macro to m2_parse_internal.
6223 (pstate): New variable.
6224 (type_exp, exp, fblock, variable, type): Update calls to
6225 write_exp* and similars to use parser state.
6226 (yylex): Likewise.
6227 (m2_parse): New function.
6228 * m2-lang.h: Forward declare "struct parser_state".
6229 (m2_parse): Add "struct parser_state" argument.
6230 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6231 * objc-lang.h: Forward declare "struct parser_state".
6232 (end_msglist): Add "struct parser_state" argument.
6233 * p-exp.y (parse_type): Rewrite macro to use parser state.
6234 (yyparse): Redefine macro to pascal_parse_internal.
6235 (pstate): New variable.
6236 (parse_number): Add "struct parser_state" argument.
6237 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6238 write_exp* and similars in order to use parser state.
6239 (parse_number, yylex): Adjust code to use parser state.
6240 (pascal_parse): New function.
6241 * p-lang.h: Forward declare "struct parser_state".
6242 (pascal_parse): Add "struct parser_state" argument.
6243 * go-exp.y (parse_type): Rewrite macro to use parser state.
6244 (yyparse): Redefine macro to go_parse_internal.
6245 (pstate): New variable.
6246 (parse_number): Add "struct parser_state" argument.
6247 (type_exp, exp1, exp, variable, type): Update calls to
6248 write_exp* and similars in order to use parser state.
6249 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6250 to use parser state.
6251 (go_parse): Likewise.
6252 * go-lang.h: Forward declare "struct parser_state".
6253 (go_parse): Add "struct parser_state" argument.
6254
6255 2014-03-27 Doug Evans <dje@google.com>
6256
6257 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6258
6259 2014-03-27 Doug Evans <dje@google.com>
6260
6261 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6262 Remove argument abbrev_section. All callers updated.
6263
6264 2014-03-27 Doug Evans <dje@google.com>
6265
6266 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6267 addr_base, ranges_base.
6268
6269 2014-03-26 Keith Seitz <keiths@redhat.com>
6270
6271 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6272 types, not VAR_DOMAIN.
6273
6274 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6275
6276 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6277 "ra" registers.
6278 * features/nios2-linux.c: Regenerated.
6279 * features/nios2.c: Regenerated.
6280
6281 2014-03-25 Pedro Alves <palves@redhat.com>
6282
6283 * cli/cli-script.c (script_from_file): Force the interpreter to
6284 sync mode.
6285
6286 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6287
6288 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6289 small stack allocation.
6290
6291 2014-03-24 Tristan Gingold <gingold@adacore.com>
6292
6293 * darwin-nat.c (exc_server): Remove unused prototype.
6294 (darwin_dump_message): Correctly display data on x86_64.
6295 (darwin_encode_reply): Fix style.
6296 Add comments and fix indentation.
6297
6298 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6299
6300 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6301
6302 2014-03-22 Doug Evans <xdje42@gmail.com>
6303
6304 * infcmd.c: Whitespace fixes.
6305 (interrupt_command): Merge two function comments into one.
6306
6307 2014-03-22 Doug Evans <xdje42@gmail.com>
6308
6309 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6310 All uses updated.
6311
6312 2014-03-22 Yao Qi <yao@codesourcery.com>
6313
6314 * remote.c (target_read_live_memory): Remove.
6315 (memory_xfer_live_readonly_partial): Rename it to
6316 remote_xfer_live_readonly_partial. Remove argument 'object'.
6317 All callers updated. Call remote_read_bytes_1
6318 instead of target_read_live_memory.
6319 * tracepoint.c (set_traceframe_number): Remove.
6320 (make_cleanup_restore_traceframe_number): Likewise .
6321 * tracepoint.h (set_traceframe_number): Remove declaration.
6322 (make_cleanup_restore_traceframe_number): Likewise.
6323
6324 2014-03-22 Yao Qi <yao@codesourcery.com>
6325
6326 * remote.c (remote_read_bytes): Move code on reading from the
6327 remote stub to ...
6328 (remote_read_bytes_1): ... here. New function.
6329
6330 2014-03-22 Yao Qi <yao@codesourcery.com>
6331
6332 * ctf.c (ctf_xfer_partial): Check the return value of
6333 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6334 return TARGET_XFER_UNAVAILABLE.
6335 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6336 * target.c (target_read_live_memory): Move it to remote.c.
6337 (memory_xfer_live_readonly_partial): Likewise.
6338 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6339 * remote.c (target_read_live_memory): Moved from target.c.
6340 (memory_xfer_live_readonly_partial): Likewise.
6341 (remote_read_bytes): Factored out from
6342 memory_xfer_partial_1.
6343
6344 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6345
6346 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6347 NULL pointer.
6348
6349 2014-03-21 Pedro Alves <palves@redhat.com>
6350
6351 * infrun.c (normal_stop): Extend comment.
6352
6353 2014-03-21 Hui Zhu <hui@codesourcery.com>
6354 Pedro Alves <palves@redhat.com>
6355
6356 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6357 static buffer.
6358 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6359 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6360 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6361
6362 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6363
6364 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6365 `z' formatted output modifier.
6366
6367 2014-03-20 Tom Tromey <tromey@redhat.com>
6368 Sergio Durigan Junior <sergiodj@redhat.com>
6369
6370 * probe.c (parse_probes): Turn assert into an ordinary error.
6371 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6372 exceptions when parsing probes. Rearrange the code for clarity.
6373
6374 2014-03-20 Tom Tromey <tromey@redhat.com>
6375
6376 PR gdb/14135
6377 * top.c (execute_command): Only dispatch events if the command
6378 started the target.
6379
6380 2014-03-20 Tom Tromey <tromey@redhat.com>
6381
6382 PR cli/15718
6383 * infcall.c: Include event-top.h.
6384 (run_inferior_call): Call async_disable_stdin if needed.
6385
6386 2014-03-20 Pedro Alves <palves@redhat.com>
6387
6388 * infrun.c (prepare_to_proceed): Delete.
6389 (thread_still_needs_step_over): New function.
6390 (find_thread_needs_step_over): New function.
6391 (proceed): If the current thread needs a step-over, set its
6392 steping_over_breakpoint flag. Adjust to use
6393 find_thread_needs_step_over instead of prepare_to_proceed.
6394 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6395 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6396 breakpoint.
6397 (switch_back_to_stepped_thread): Step over breakpoints of all
6398 threads not the stepping thread, before switching back to the
6399 stepping thread.
6400
6401 2014-03-20 Pedro Alves <palves@redhat.com>
6402
6403 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6404 extern.
6405 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6406 * infrun.c (saved_singlestep_ptid)
6407 (stepping_past_singlestep_breakpoint): Delete.
6408 (resume): Remove stepping_past_singlestep_breakpoint handling.
6409 (proceed): Store the prev_pc of the stepping thread too.
6410 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6411 singlestep_pc.
6412 (enum infwait_states): Delete infwait_thread_hop_state.
6413 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6414 field.
6415 (handle_inferior_event): Adjust.
6416 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6417 handling and the thread-hop code. Before removing single-step
6418 breakpoints, check whether the thread hit a single-step breakpoint
6419 of another thread. If it did, the trap is not a random signal.
6420 (switch_back_to_stepped_thread): If the event thread hit a
6421 single-step breakpoint, unblock it before switching to the
6422 stepping thread. Handle the case of the stepped thread having
6423 advanced already.
6424 (keep_going): Handle the case of the current thread moving past a
6425 single-step breakpoint.
6426
6427 2014-03-20 Pedro Alves <palves@redhat.com>
6428
6429 PR breakpoints/7143
6430 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6431 are being stepped over.
6432 (breakpoint_address_match): Make extern.
6433 * breakpoint.h (breakpoint_address_match): New declaration.
6434 * inferior.h (stepping_past_instruction_at): New declaration.
6435 * infrun.c (struct step_over_info): New type.
6436 (step_over_info): New global.
6437 (set_step_over_info, clear_step_over_info)
6438 (stepping_past_instruction_at): New functions.
6439 (handle_inferior_event): Clear the step-over info when
6440 trap_expected is cleared.
6441 (resume): Remove now stale comment.
6442 (clear_proceed_status): Clear step-over info.
6443 (proceed): Adjust step-over handling to set or clear the step-over
6444 info instead of removing all breakpoints.
6445 (handle_signal_stop): When setting up a thread-hop, don't remove
6446 breakpoints here.
6447 (stop_stepping): Clear step-over info.
6448 (keep_going): Adjust step-over handling to set or clear step-over
6449 info and then always inserting breakpoints, instead of removing
6450 all breakpoints when stepping over one.
6451
6452 2014-03-20 Pedro Alves <palves@redhat.com>
6453
6454 * infrun.c (previous_inferior_ptid): Adjust comment.
6455 (deferred_step_ptid): Delete.
6456 (infrun_thread_ptid_changed, prepare_to_proceed)
6457 (init_wait_for_inferior): Adjust.
6458 (handle_signal_stop): Delete deferred_step_ptid handling.
6459
6460 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6461
6462 PR gdb/15358
6463 * defs.h (sync_quit_force_run): New declaration.
6464 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6465 * event-top.c (async_sigterm_handler): New declaration.
6466 (async_sigterm_token): New variable.
6467 (async_init_signals): Create also async_sigterm_token.
6468 (async_sigterm_handler): New function.
6469 (sync_quit_force_run): New variable.
6470 (handle_sigterm): Replace quit_force call by other calls.
6471 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6472
6473 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6474
6475 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6476 offset into SPE pseudo registers.
6477
6478 2014-03-18 Pedro Alves <palves@redhat.com>
6479
6480 PR gdb/13860
6481 * inferior.h (print_stop_event): Declare.
6482 * infrun.c (print_stop_event): New, factored out from ...
6483 (normal_stop): ... this.
6484 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6485 of bpstat_print/print_stack_frame.
6486
6487 2014-03-17 Tom Tromey <tromey@redhat.com>
6488
6489 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6490
6491 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6492
6493 * ada-lang.c (decode_constrained_packed_array): Perform a
6494 minimal coercion for reference with coerce_ref instead of
6495 ada_coerce_ref.
6496
6497 2014-03-17 Tristan Gingold <gingold@adacore.com>
6498
6499 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6500 (darwin_solib_create_inferior_hook): Emit a warning if version
6501 is unhandled.
6502
6503 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6504
6505 * python/py-value.c (get_field_flag): Cast flag_name argument to
6506 PyObject_GetAttrString to support Python 2.4.
6507
6508 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6509
6510 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6511 (Global Maintainers): Remove Jan Kratochvil.
6512
6513 2014-03-14 Pedro Alves <palves@redhat.com>
6514
6515 * inferior.h (terminal_ours_for_output): Rename to ...
6516 (child_terminal_ours_for_output): ... this.
6517 (terminal_save_ours): Rename to ...
6518 (child_terminal_save_ours): ... this.
6519 (terminal_ours): Rename to ...
6520 (child_terminal_ours): ... this.
6521 (terminal_inferior): Rename to ...
6522 (child_terminal_inferior): ... this.
6523 (terminal_init_inferior): Rename to ...
6524 (child_terminal_init_inferior): ... this.
6525 (terminal_init_inferior_with_pgrp): Rename to ...
6526 (child_terminal_init_inferior_with_pgrp): ... this.
6527 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6528 (child_terminal_init_with_pgrp): ... this.
6529 (terminal_save_ours): Rename to ...
6530 (child_terminal_save_ours): ... this.
6531 (terminal_init_inferior): Rename to ...
6532 (child_terminal_init): ... this. Adjust.
6533 (terminal_inferior): Rename to ...
6534 (child_terminal_inferior): ... this.
6535 (terminal_ours_for_output): Rename to ...
6536 (child_terminal_ours_for_output): ... this. Adjust.
6537 (terminal_ours): Rename to ...
6538 (child_terminal_ours): ... this.
6539 (terminal_ours_1): Rename to ...
6540 (child_terminal_ours_1): ... this. Adjust.
6541 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6542 * windows-nat.c (do_initial_windows_stuff): Adjust.
6543 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6544 (gnu_terminal_init): ... this. Adjust.
6545 (gnu_target): Adjust.
6546 * inf-child.c (inf_child_target): Adjust.
6547
6548 2014-03-13 Doug Evans <xdje42@gmail.com>
6549
6550 PR guile/16612
6551 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6552 new eq?-hashtab.
6553
6554 2014-03-13 Doug Evans <xdje42@gmail.com>
6555
6556 * value.c (record_latest_value): Call release_value_or_incref
6557 instead of release_value.
6558
6559 2014-03-13 Pedro Alves <palves@redhat.com>
6560
6561 * procfs.c (procfs_target): Don't override to_shortname,
6562 to_longname or to_doc.
6563
6564 2014-03-13 Pedro Alves <palves@redhat.com>
6565
6566 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6567 Unix in user visible strings.
6568
6569 2014-03-12 Stan Shebs <stan@codesourcery.com>
6570
6571 * gdbtypes.h: Annotate comments for Doxygen, add a page
6572 block comment with some general info.
6573
6574 2014-03-12 Pedro Alves <palves@redhat.com>
6575
6576 * infcmd.c (prepare_execution_command): New function, factored out
6577 from several execution commands.
6578 (run_command_1, continue_command, step_1, jump_command)
6579 (signal_command, until_command, advance_command, finish_command)
6580 (attach_command): Use prepare_execution_command.
6581
6582 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6583
6584 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6585 (MAX_BPTS): Define.
6586 (MAX_WPTS): Define.
6587 (struct arm_linux_thread_points): Removed.
6588 (struct arm_linux_process_info): New.
6589 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6590 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6591 (arm_linux_find_breakpoints_by_tid): Removed.
6592 (struct arch_lwp_info): New.
6593 (arm_linux_find_process_pid): New functions.
6594 (arm_linux_add_process): New functions.
6595 (arm_linux_process_info_get): New functions.
6596 (arm_linux_forget_process): New function.
6597 (arm_linux_get_debug_reg_state): New function.
6598 (struct update_registers_data): New.
6599 (update_registers_callback): New function.
6600 (arm_linux_insert_hw_breakpoint1): Updated.
6601 (arm_linux_remove_hw_breakpoint1): Updated.
6602 (arm_linux_insert_hw_breakpoint): Updated.
6603 (arm_linux_remove_hw_breakpoint): Updated.
6604 (arm_linux_insert_watchpoint): Updated.
6605 (arm_linux_remove_watchpoint): Updated.
6606 (arm_linux_new_thread): Updated.
6607 (arm_linux_prepare_to_resume): New function.
6608 (arm_linux_new_fork): New function.
6609 (_initialize_arm_linux_nat): Updated.
6610
6611 2014-03-12 Pedro Alves <palves@redhat.com>
6612
6613 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6614
6615 2014-03-12 Tom Tromey <tromey@redhat.com>
6616
6617 * inf-child.c (return_zero): New function.
6618 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6619 * aix-thread.c (aix_thread_inferior_created): New function.
6620 (aix_thread_attach): Remove.
6621 (init_aix_thread_ops): Don't set to_attach.
6622 (_initialize_aix_thread): Register inferior_created observer.
6623 * corelow.c (init_core_ops): Don't set to_attach or
6624 to_create_inferior.
6625 * exec.c (init_exec_ops): Don't set to_attach or
6626 to_create_inferior.
6627 * infcmd.c (run_command_1): Use find_run_target. Make direct
6628 target calls.
6629 (attach_command): Use find_attach_target. Make direct target
6630 calls.
6631 * record-btrace.c (init_record_btrace_ops): Don't set
6632 to_create_inferior.
6633 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6634 Remove.
6635 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6636 set to_create_inferior.
6637 * target.c (complete_target_initialization): Add assertion.
6638 (target_create_inferior): Remove.
6639 (find_default_attach, find_default_create_inferior): Remove.
6640 (find_attach_target, find_run_target): New functions.
6641 (find_default_is_async_p, find_default_can_async_p)
6642 (target_supports_non_stop, target_attach): Remove.
6643 (init_dummy_target): Don't set to_create_inferior or
6644 to_supports_non_stop.
6645 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6646 TARGET_DEFAULT_FUNC.
6647 <to_create_inferior>: Add comment.
6648 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6649 TARGET_DEFAULT_RETURN.
6650 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6651 (find_attach_target, find_run_target): Declare.
6652 (target_create_inferior): Remove.
6653 (target_has_execution_1): Update comment.
6654 (target_supports_non_stop): Remove.
6655 * target-delegates.c: Rebuild.
6656
6657 2014-03-12 Pedro Alves <palves@redhat.com>
6658
6659 * inf-child.h: Update comment to not mention Unix.
6660
6661 2014-03-12 Pedro Alves <palves@redhat.com>
6662
6663 * inf-child.c: Update top comment to not mention Unix. Add
6664 generic comment describing how this target is meant to be used.
6665 (inf_child_post_attach, inf_child_post_startup_inferior)
6666 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6667 Unix in comment.
6668
6669 2014-03-12 Pedro Alves <palves@redhat.com>
6670
6671 * nto-procfs.c: Include inf-child.h.
6672 (procfs_ops): Delete global.
6673 (procfs_can_run): Delete method.
6674 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6675 target pointer instead of referencing procfs_ops.
6676 (procfs_prepare_to_store): Delete.
6677 (init_procfs_ops): Delete function.
6678 (procfs_target): New function, based on init_procfs_ops, but
6679 inherit inf_child_target.
6680 (_initialize_procfs): Use procfs_target.
6681
6682 2014-03-12 Pedro Alves <palves@redhat.com>
6683
6684 * windows-nat.c: Include inf-child.h.
6685 (windows_ops): Delete global.
6686 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6687 methods.
6688 (init_windows_ops): Delete function.
6689 (windows_target): New function, based on init_windows_ops, but
6690 inherit inf_child_target.
6691 (_initialize_windows_nat): Use windows_target. Install x86
6692 specific target methods here.
6693
6694 2014-03-10 Doug Evans <xdje42@gmail.com>
6695
6696 * guile/guile.c (call_initialize_gdb_module): New function.
6697 (initialize_guile): Replace call to scm_init_guile with call to
6698 scm_with_guile.
6699
6700 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6701
6702 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6703 in call to TYPE_CODE macro.
6704
6705 2014-03-10 Jerome Guitton <guitton@adacore.com>
6706
6707 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6708 Resolve tagged types to full view.
6709
6710 2014-03-10 Hui Zhu <hui@codesourcery.com>
6711
6712 * target.h (target_insert_breakpoint): Remove "hardware" from its
6713 comments.
6714
6715 2014-03-07 Doug Evans <dje@google.com>
6716
6717 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6718
6719 2014-03-07 Doug Evans <dje@google.com>
6720
6721 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6722 Remove unused local comp_dir_attr. Assert exactly one of
6723 stub_comp_unit_die, stub_comp_dir is non-NULL.
6724
6725 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6726
6727 * target.h (complete_target_initialization, add_target):
6728 Add comment.
6729
6730 2014-03-07 Pedro Alves <palves@redhat.com>
6731
6732 * go32-nat.c: Include inf-child.h.
6733 (go32_ops): Delete global.
6734 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6735 Delete methods.
6736 (go32_create_inferior): Push the passed in target pointer instead
6737 of referencing go32_ops.
6738 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6739 (go32_target): New function, based on init_go32_ops, but inherit
6740 inf_child_target.
6741 (_initialize_go32_nat): Use go32_target. Move parts of
6742 init_go32_ops here.
6743
6744 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6745
6746 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6747 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6748 SYMBOL_VALUE_ADDRESS.
6749 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6750
6751 2014-03-06 Yao Qi <yao@codesourcery.com>
6752
6753 * breakpoint.c (get_tracepoint_by_number): Remove argument
6754 optional_p. All callers updated. Adjust comments. Update
6755 output message.
6756 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6757
6758 2014-03-06 Yao Qi <yao@codesourcery.com>
6759
6760 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6761 early if get_number returns zero. Use 'p' instead of 'args'.
6762
6763 2014-03-06 Yao Qi <yao@codesourcery.com>
6764
6765 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6766 message.
6767
6768 2014-03-06 Yao Qi <yao@codesourcery.com>
6769
6770 PR breakpoints/16508
6771 * tracepoint.c (check_trace_running): New function.
6772 (trace_find_command): Move code to check_trace_running and
6773 call check_trace_running.
6774 (trace_find_pc_command): Likewise.
6775 (trace_find_tracepoint_command): Likewise.
6776 (trace_find_line_command): Likewise.
6777 (trace_find_range_command): Likewise.
6778 * tracepoint.h (check_trace_running): Likewise.
6779 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6780
6781 2014-03-06 Yao Qi <yao@codesourcery.com>
6782
6783 * target.h (struct target_ops) <to_traceframe_info>: Use
6784 TARGET_DEFAULT_NORETURN (tcomplain ()).
6785 * target-delegates.c: Regenerated.
6786
6787 2014-03-05 Pedro Alves <palves@redhat.com>
6788
6789 PR gdb/16575
6790 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6791 void. Update comment.
6792 (dcache_xfer_memory): Delete.
6793 (dcache_read_memory_partial): New, based on the read bits of
6794 dcache_xfer_memory.
6795 (dcache_update): Add status parameter. Use ULONGEST for len, and
6796 adjust. Discard cache lines if the reason for the update was
6797 error.
6798 * dcache.h (dcache_xfer_memory): Delete declaration.
6799 (dcache_read_memory_partial): New declaration.
6800 (dcache_update): Update prototype.
6801 * target.c (raw_memory_xfer_partial): Update the dcache here.
6802 (memory_xfer_partial_1): Don't handle dcache writes here.
6803
6804 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6805
6806 * remote-sim.c (gdbsim_load): Add const to prog.
6807
6808 2014-03-03 Tom Tromey <tromey@redhat.com>
6809
6810 * elfread.c (probe_key): Change to bfd_data.
6811 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6812 now per-BFD, not per-objfile.
6813 * stap-probe.c (stap_probe_destroy): Update comment.
6814 (handle_stap_probe): Allocate on the per-BFD obstack.
6815
6816 2014-03-03 Tom Tromey <tromey@redhat.com>
6817
6818 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6819 * breakpoint.c (create_longjmp_master_breakpoint): Use
6820 get_probe_address.
6821 (add_location_to_breakpoint, bkpt_probe_insert_location)
6822 (bkpt_probe_remove_location): Update.
6823 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6824 * elfread.c (elf_symfile_relocate_probe): Remove.
6825 (elf_probe_fns): Update.
6826 (insert_exception_resume_breakpoint): Change type of "probe"
6827 parameter to bound_probe.
6828 (check_exception_resume): Update.
6829 * objfiles.c (objfile_relocate1): Don't relocate probes.
6830 * probe.c (bound_probe_s): New typedef.
6831 (parse_probes): Use get_probe_address. Set sal's objfile.
6832 (find_probe_by_pc): Return a bound_probe.
6833 (collect_probes): Return a VEC(bound_probe_s).
6834 (compare_probes): Update.
6835 (gen_ui_out_table_header_info): Change type of "probes"
6836 parameter. Update.
6837 (info_probes_for_ops): Update.
6838 (get_probe_address): New function.
6839 (probe_safe_evaluate_at_pc): Update.
6840 * probe.h (struct probe_ops) <get_probe_address>: New field.
6841 <set_semaphore, clear_semaphore>: Add objfile parameter.
6842 (struct probe) <objfile>: Remove field.
6843 <arch>: New field.
6844 <address>: Update comment.
6845 (struct bound_probe): New.
6846 (find_probe_by_pc): Return a bound_probe.
6847 (get_probe_address): Declare.
6848 * solib-svr4.c (struct probe_and_action) <address>: New field.
6849 (hash_probe_and_action, equal_probe_and_action): Update.
6850 (register_solib_event_probe): Add address parameter.
6851 (solib_event_probe_at): Update.
6852 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6853 get_probe_address.
6854 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6855 (stap_get_probe_address): New function.
6856 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6857 (compile_probe_arg): Update.
6858 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6859 address.
6860 (handle_stap_probe): Don't relocate the probe.
6861 (stap_relocate): Remove.
6862 (stap_gen_info_probes_table_values): Update.
6863 (stap_probe_ops): Remove stap_relocate.
6864 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6865 (debug_sym_probe_fns): Update.
6866 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6867 * symtab.c (init_sal): Use memset.
6868 * symtab.h (struct symtab_and_line) <objfile>: New field.
6869 * tracepoint.c (start_tracing, stop_tracing): Update.
6870
6871 2014-03-03 Tom Tromey <tromey@redhat.com>
6872
6873 * probe.h (parse_probes, find_probe_by_pc)
6874 (find_probes_in_objfile): Fix comments.
6875
6876 2014-03-02 Doug Evans <xdje42@gmail.com>
6877
6878 * infrun.c (handle_signal_stop): Replace test for
6879 TARGET_WAITKIND_STOPPED with an assert.
6880
6881 2014-03-02 Doug Evans <xdje42@gmail.com>
6882
6883 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6884
6885 2014-03-02 Doug Evans <xdje42@gmail.com>
6886
6887 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6888
6889 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6890
6891 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6892
6893 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6894
6895 * i386obsd-nat.c: Include "obsd-nat.h".
6896 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6897 add_target.
6898 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6899
6900 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6901
6902 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6903
6904 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6905
6906 * mips64obsd-nat.c: Include "obsd-nath".
6907 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6908 add_target
6909 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6910
6911 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6912
6913 * amd64obsd-nat.c: Include "obsd-nat,h.
6914 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6915 add_target.
6916 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6917
6918 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6919
6920 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6921 (find_overload_match): Update call to find_oload_champ.
6922 (find_oload_champ_namespace_loop): Likewise
6923
6924 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6925
6926 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6927
6928 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6929 * config/sparc/obsd64.mh: New file.
6930 * sparc64obsd-nat.c: New file.
6931
6932 * obsd-nat.h: New file.
6933 * obsd-nat.c: New file.
6934 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6935 (ALLDEPFILES): Add obsd-nat.c.
6936
6937 2014-02-28 Tom Tromey <tromey@redhat.com>
6938
6939 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6940 * cli-out.h (cli_ui_out_impl): Now const.
6941 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6942 * ui-out.c (struct ui_out) <impl>: Now const.
6943 (default_ui_out_impl): Now const.
6944 (ui_out_new): Make 'impl' parameter const.
6945 * ui-out.h (ui_out_new): Update.
6946
6947 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6948
6949 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6950
6951 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6952
6953 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6954
6955 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6956
6957 Additional PR 8882 fix.
6958 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6959
6960 2014-02-27 Pedro Alves <palves@redhat.com>
6961
6962 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6963 isn't set.
6964
6965 2014-02-27 Pedro Alves <palves@redhat.com>
6966
6967 PR 12702
6968 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6969 * nat/linux-waitpid.c: Include string.h.
6970 (status_to_str): Moved here and made extern.
6971 * nat/linux-waitpid.h (status_to_str): New declaration.
6972
6973 2014-02-27 Hui Zhu <hui@codesourcery.com>
6974
6975 PR 12702
6976 * infrun.c (ptid_match): Move ...
6977 * common/ptid.c (ptid_match): ... here.
6978 * inferior.h (ptid_match): Move ...
6979 * common/ptid.h (ptid_match): ... here.
6980
6981 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6982
6983 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6984 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6985 gdb_target_obs.
6986
6987 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6988
6989 * obsd-tdep.c (obsd_auxv_parse): New function.
6990 (obsd_init_abi): Set auxv_parse.
6991
6992 * gdbarch.sh (auxv_parse): New.
6993 * gdbarch.h: Regenerated.
6994 * gdbarch.c: Regenerated.
6995 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6996
6997 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6998
6999 * guile/scm-value.c (gdbscm_history_append_x): New function.
7000 (value_functions): Add it.
7001
7002 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7003
7004 * dwarf2read.c (attr_value_as_address): New function.
7005 (dwarf2_find_base_address, read_call_site_scope): Use
7006 attr_value_as_address in place of DW_ADDR.
7007 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7008 the low and high addresses. Slight rework of the handling
7009 of the high pc being a constant form, and limit it to
7010 DWARF verson 4 or higher.
7011 (dwarf2_record_block_ranges): Likewise.
7012 (read_partial_die): Likewise.
7013 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7014
7015 2014-02-26 Tom Tromey <tromey@redhat.com>
7016
7017 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7018
7019 2014-02-26 Tom Tromey <tromey@redhat.com>
7020
7021 * elfread.c (elf_read_minimal_symbols): Return early if
7022 minimal symbols have already been read. Add "ei" parameter.
7023 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7024 * minsyms.c (prim_record_minimal_symbol_full): Update.
7025 * objfiles.h (struct objstats) <n_minsyms>: Move...
7026 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7027 * symmisc.c (print_objfile_statistics): Update.
7028
7029 2014-02-26 Tom Tromey <tromey@redhat.com>
7030
7031 * elfread.c (elf_read_minimal_symbols): New function, from
7032 elf_symfile_read.
7033 (elf_symfile_read): Call it.
7034
7035 2014-02-26 Tom Tromey <tromey@redhat.com>
7036
7037 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7038 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7039 (lookup_minimal_symbol_solib_trampoline)
7040 (lookup_minimal_symbol_by_pc_section_1)
7041 (lookup_minimal_symbol_and_objfile): Update.
7042 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7043 Don't allocate a minimal symbol if minsyms have already been read.
7044 (build_minimal_symbol_hash_tables): Update.
7045 (install_minimal_symbols): Do nothing if minsyms already read.
7046 Use the per-BFD obstack.
7047 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7048 * objfiles.c (allocate_objfile): Call
7049 terminate_minimal_symbol_table later.
7050 (have_minimal_symbols): Update.
7051 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7052 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7053 Move from struct objfile.
7054 <minsyms_read>: New field.
7055 (struct objfile) <msymbols, minimal_symbol_count,
7056 msymbol_hash, msymbol_demangled_hash>: Move.
7057 (ALL_OBJFILE_MSYMBOLS): Update.
7058 * symfile.c (read_symbols): Set minsyms_read.
7059 (reread_symbols): Update.
7060 * symmisc.c (dump_objfile, dump_msymbols): Update.
7061
7062 2014-02-26 Tom Tromey <tromey@redhat.com>
7063
7064 * minsyms.c (msymbols_sort): Remove.
7065 * minsyms.h (msymbols_sort): Remove.
7066 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7067 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7068 * elfread.c (elf_symtab_read): Don't add section offsets.
7069 * xcoffread.c (record_minimal_symbol): Don't add section offset
7070 to minimal symbol address.
7071 * somread.c (text_offset, data_offset): Remove.
7072 (som_symtab_read): Don't add section offsets to minimal symbol
7073 addresses.
7074 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7075 Don't add section offsets to minimal symbols.
7076 * coffread.c (coff_symtab_read): Don't add section offsets
7077 to minimal symbol addresses.
7078 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7079 to minimal symbol addresses.
7080 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7081 section offset to minimal symbol addresses.
7082 * mdebugread.c (parse_partial_symbols): Don't add section
7083 offset to minimal symbol addresses.
7084 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7085 offset to minimal symbol addresses.
7086
7087 2014-02-26 Tom Tromey <tromey@redhat.com>
7088
7089 * ada-lang.c (ada_main_name): Update.
7090 (ada_add_standard_exceptions): Update.
7091 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7092 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7093 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7094 * auxv.c (ld_so_xfer_auxv): Update.
7095 * avr-tdep.c (avr_scan_prologue): Update.
7096 * ax-gdb.c (gen_var_ref): Update.
7097 * blockframe.c (get_pc_function_start)
7098 (find_pc_partial_function_gnu_ifunc): Update.
7099 * breakpoint.c (create_overlay_event_breakpoint)
7100 (create_longjmp_master_breakpoint)
7101 (create_std_terminate_master_breakpoint)
7102 (create_exception_master_breakpoint): Update.
7103 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7104 * c-valprint.c (c_val_print): Update.
7105 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7106 * common/agent.c (agent_look_up_symbols): Update.
7107 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7108 * dwarf2loc.c (call_site_to_target_addr): Update.
7109 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7110 * elfread.c (elf_gnu_ifunc_record_cache)
7111 (elf_gnu_ifunc_resolve_by_got): Update.
7112 * findvar.c (default_read_var_value): Update.
7113 * frame.c (inside_main_func): Update.
7114 * frv-tdep.c (frv_frame_this_id): Update.
7115 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7116 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7117 Update.
7118 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7119 (hppa_hpux_find_dummy_bpaddr): Update.
7120 * hppa-tdep.c (hppa_symbol_address): Update.
7121 * infcmd.c (until_next_command): Update.
7122 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7123 Update.
7124 * linespec.c (minsym_found, add_minsym): Update.
7125 * linux-nat.c (get_signo): Update.
7126 * linux-thread-db.c (inferior_has_bug): Update.
7127 * m32c-tdep.c (m32c_return_value)
7128 (m32c_m16c_address_to_pointer): Update.
7129 * m32r-tdep.c (m32r_frame_this_id): Update.
7130 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7131 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7132 * maint.c (maintenance_translate_address): Update.
7133 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7134 (frob_address): New function.
7135 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7136 frob_address. Rename parameter to "pc_in".
7137 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7138 addresses.
7139 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7140 Update.
7141 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7142 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7143 * objc-lang.c (find_objc_msgsend): Update.
7144 * objfiles.c (objfile_relocate1): Update.
7145 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7146 * p-valprint.c (pascal_val_print): Update.
7147 * parse.c (write_exp_msymbol): Update.
7148 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7149 (ppc_elfv2_skip_entrypoint): Update.
7150 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7151 * printcmd.c (build_address_symbolic, msym_info)
7152 (address_info): Update.
7153 * proc-service.c (ps_pglobal_lookup): Update.
7154 * psymtab.c (find_pc_sect_psymtab_closer)
7155 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7156 Change msymbol parameter to bound_minimal_symbol.
7157 * ravenscar-thread.c (get_running_thread_id): Update.
7158 * remote.c (remote_check_symbols): Update.
7159 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7160 address.
7161 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7162 * solib-dsbt.c (lm_base): Update.
7163 * solib-frv.c (lm_base, main_got): Update.
7164 * solib-irix.c (locate_base): Update.
7165 * solib-som.c (som_solib_create_inferior_hook)
7166 (link_map_start): Update.
7167 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7168 * solib-svr4.c (elf_locate_base, enable_break): Update.
7169 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7170 (flush_ea_cache): Update.
7171 * stabsread.c (define_symbol, scan_file_globals): Update.
7172 * stack.c (find_frame_funname): Update.
7173 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7174 (debug_qf_find_pc_sect_symtab): Update.
7175 * symfile.c (simple_read_overlay_table)
7176 (simple_overlay_update): Update.
7177 * symfile.h (struct quick_symbol_functions)
7178 <find_pc_sect_symtab>: Change type of msymbol to
7179 bound_minimal_symbol.
7180 * symmisc.c (dump_msymbols): Update.
7181 * symtab.c (find_pc_sect_symtab_via_partial)
7182 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7183 (search_symbols, print_msymbol_info): Update.
7184 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7185 (MSYMBOL_VALUE_ADDRESS): Redefine.
7186 (BMSYMBOL_VALUE_ADDRESS): New macro.
7187 * tracepoint.c (scope_info): Update.
7188 * tui/tui-disasm.c (tui_find_disassembly_address)
7189 (tui_get_begin_asm_address): Update.
7190 * valops.c (find_function_in_inferior): Update.
7191 * value.c (value_static_field, value_fn_field): Update.
7192
7193 2014-02-26 Tom Tromey <tromey@redhat.com>
7194
7195 * ada-lang.c (ada_update_initial_language): Update.
7196 (ada_main_name, ada_has_this_exception_support): Update.
7197 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7198 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7199 * arm-tdep.c (arm_skip_stub): Update.
7200 * auxv.c (ld_so_xfer_auxv): Update.
7201 * avr-tdep.c (avr_scan_prologue): Update.
7202 * ax-gdb.c (gen_var_ref): Update.
7203 * breakpoint.c (struct breakpoint_objfile_data)
7204 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7205 type to bound_minimal_symbol.
7206 (create_overlay_event_breakpoint)
7207 (create_longjmp_master_breakpoint)
7208 (create_std_terminate_master_breakpoint)
7209 (create_exception_master_breakpoint): Update.
7210 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7211 * c-exp.y (classify_name): Update.
7212 * coffread.c (coff_symfile_read): Update.
7213 * common/agent.c (agent_look_up_symbols): Update.
7214 * d-lang.c (d_main_name): Update.
7215 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7216 * dec-thread.c (enable_dec_thread): Update.
7217 * dwarf2loc.c (call_site_to_target_addr): Update.
7218 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7219 * eval.c (evaluate_subexp_standard): Update.
7220 * findvar.c (struct minsym_lookup_data) <result>: Change type
7221 to bound_minimal_symbol.
7222 <objfile>: Remove.
7223 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7224 * frame.c (inside_main_func): Update.
7225 * frv-tdep.c (frv_frame_this_id): Update.
7226 * gcore.c (call_target_sbrk): Update.
7227 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7228 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7229 Update.
7230 * go-lang.c (go_main_name): Update.
7231 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7232 (hppa_hpux_find_import_stub_for_addr): Update.
7233 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7234 Update. Change return type.
7235 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7236 type.
7237 * jit.c (jit_breakpoint_re_set_internal): Update.
7238 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7239 Update.
7240 * linux-nat.c (get_signo): Update.
7241 * linux-thread-db.c (inferior_has_bug): Update
7242 * m32c-tdep.c (m32c_return_value)
7243 (m32c_m16c_address_to_pointer): Update.
7244 * m32r-tdep.c (m32r_frame_this_id): Update.
7245 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7246 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7247 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7248 lookup_minimal_symbol. Change return type.
7249 (lookup_minimal_symbol): Remove.
7250 (lookup_bound_minimal_symbol): Update.
7251 (lookup_minimal_symbol_text): Change return type.
7252 (lookup_minimal_symbol_solib_trampoline): Change return type.
7253 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7254 (lookup_minimal_symbol_solib_trampoline): Change return type.
7255 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7256 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7257 (value_nsstring, find_imps): Update.
7258 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7259 * p-lang.c (pascal_main_name): Update.
7260 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7261 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7262 * proc-service.c (ps_pglobal_lookup): Update.
7263 * ravenscar-thread.c (get_running_thread_msymbol): Change
7264 return type.
7265 (has_ravenscar_runtime, get_running_thread_id): Update.
7266 * remote.c (remote_check_symbols): Update.
7267 * sol-thread.c (ps_pglobal_lookup): Update.
7268 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7269 * solib-dsbt.c (lm_base): Update.
7270 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7271 Update.
7272 * solib-irix.c (locate_base): Update.
7273 * solib-som.c (som_solib_create_inferior_hook)
7274 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7275 Update.
7276 * solib-spu.c (spu_enable_break): Update.
7277 * solib-svr4.c (elf_locate_base, enable_break): Update.
7278 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7279 (flush_ea_cache): Update.
7280 * stabsread.c (define_symbol): Update.
7281 * symfile.c (simple_read_overlay_table): Update.
7282 * symtab.c (find_pc_sect_line): Update.
7283 * tracepoint.c (scope_info): Update.
7284 * tui-disasm.c (tui_get_begin_asm_address): Update.
7285 * value.c (value_static_field): Update.
7286
7287 2014-02-26 Tom Tromey <tromey@redhat.com>
7288
7289 * minsyms.c (prim_record_minimal_symbol_full): Use
7290 SET_MSYMBOL_VALUE_ADDRESS.
7291 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7292 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7293 SET_MSYMBOL_VALUE_ADDRESS.
7294 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7295 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7296
7297 2014-02-26 Tom Tromey <tromey@redhat.com>
7298
7299 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7300 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7301 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7302 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7303 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7304 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7305 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7306 * ada-lang.c (ada_main_name): Update.
7307 (ada_lookup_simple_minsym): Update.
7308 (ada_make_symbol_completion_list): Update.
7309 (ada_add_standard_exceptions): Update.
7310 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7311 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7312 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7313 * arm-tdep.c (skip_prologue_function): Update.
7314 (arm_skip_stack_protector, arm_skip_stub): Update.
7315 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7316 (arm_wince_skip_main_prologue): Update.
7317 * auxv.c (ld_so_xfer_auxv): Update.
7318 * avr-tdep.c (avr_scan_prologue): Update.
7319 * ax-gdb.c (gen_var_ref): Update.
7320 * block.c (call_site_for_pc): Update.
7321 * blockframe.c (get_pc_function_start): Update.
7322 (find_pc_partial_function_gnu_ifunc): Update.
7323 * breakpoint.c (create_overlay_event_breakpoint): Update.
7324 (create_longjmp_master_breakpoint): Update.
7325 (create_std_terminate_master_breakpoint): Update.
7326 (create_exception_master_breakpoint): Update.
7327 (resolve_sal_pc): Update.
7328 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7329 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7330 Update.
7331 * c-valprint.c (c_val_print): Update.
7332 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7333 * coffread.c (coff_symfile_read): Update.
7334 * common/agent.c (agent_look_up_symbols): Update.
7335 * dbxread.c (find_stab_function_addr): Update.
7336 (end_psymtab): Update.
7337 * dwarf2loc.c (call_site_to_target_addr): Update.
7338 (func_verify_no_selftailcall): Update.
7339 (tailcall_dump): Update.
7340 (call_site_find_chain_1): Update.
7341 (dwarf_expr_reg_to_entry_parameter): Update.
7342 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7343 (elf_gnu_ifunc_resolve_by_got): Update.
7344 * f-valprint.c (info_common_command): Update.
7345 * findvar.c (read_var_value): Update.
7346 * frame.c (get_prev_frame_1): Update.
7347 (inside_main_func): Update.
7348 * frv-tdep.c (frv_skip_main_prologue): Update.
7349 (frv_frame_this_id): Update.
7350 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7351 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7352 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7353 (gnuv3_skip_trampoline): Update.
7354 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7355 (hppa64_hpux_in_solib_call_trampoline): Update.
7356 (hppa_hpux_skip_trampoline_code): Update.
7357 (hppa64_hpux_search_dummy_call_sequence): Update.
7358 (hppa_hpux_find_import_stub_for_addr): Update.
7359 (hppa_hpux_find_dummy_bpaddr): Update.
7360 * hppa-tdep.c (hppa_symbol_address)
7361 (hppa_lookup_stub_minimal_symbol): Update.
7362 * i386-tdep.c (i386_skip_main_prologue): Update.
7363 (i386_pe_skip_trampoline_code): Update.
7364 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7365 * infcall.c (get_function_name): Update.
7366 * infcmd.c (until_next_command): Update.
7367 * jit.c (jit_breakpoint_re_set_internal): Update.
7368 (jit_inferior_init): Update.
7369 * linespec.c (minsym_found): Update.
7370 (add_minsym): Update.
7371 * linux-fork.c (info_checkpoints_command): Update.
7372 * linux-nat.c (get_signo): Update.
7373 * linux-thread-db.c (inferior_has_bug): Update.
7374 * m32c-tdep.c (m32c_return_value): Update.
7375 (m32c_m16c_address_to_pointer): Update.
7376 (m32c_m16c_pointer_to_address): Update.
7377 * m32r-tdep.c (m32r_frame_this_id): Update.
7378 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7379 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7380 * maint.c (maintenance_translate_address): Update.
7381 * minsyms.c (add_minsym_to_hash_table): Update.
7382 (add_minsym_to_demangled_hash_table): Update.
7383 (msymbol_objfile): Update.
7384 (lookup_minimal_symbol): Update.
7385 (iterate_over_minimal_symbols): Update.
7386 (lookup_minimal_symbol_text): Update.
7387 (lookup_minimal_symbol_by_pc_name): Update.
7388 (lookup_minimal_symbol_solib_trampoline): Update.
7389 (lookup_minimal_symbol_by_pc_section_1): Update.
7390 (lookup_minimal_symbol_and_objfile): Update.
7391 (prim_record_minimal_symbol_full): Update.
7392 (compare_minimal_symbols): Update.
7393 (compact_minimal_symbols): Update.
7394 (build_minimal_symbol_hash_tables): Update.
7395 (install_minimal_symbols): Update.
7396 (terminate_minimal_symbol_table): Update.
7397 (find_solib_trampoline_target): Update.
7398 (minimal_symbol_upper_bound): Update.
7399 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7400 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7401 (mips_skip_pic_trampoline_code): Update.
7402 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7403 * objc-lang.c (selectors_info): Update.
7404 (classes_info): Update.
7405 (find_methods): Update.
7406 (find_imps): Update.
7407 (find_objc_msgsend): Update.
7408 * objfiles.c (objfile_relocate1): Update.
7409 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7410 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7411 * p-valprint.c (pascal_val_print): Update.
7412 * parse.c (write_exp_msymbol): Update.
7413 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7414 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7415 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7416 * printcmd.c (build_address_symbolic): Update.
7417 (sym_info): Update.
7418 (address_info): Update.
7419 * proc-service.c (ps_pglobal_lookup): Update.
7420 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7421 (find_pc_sect_psymtab): Update.
7422 * python/py-framefilter.c (py_print_frame): Update.
7423 * ravenscar-thread.c (get_running_thread_id): Update.
7424 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7425 Update.
7426 * remote.c (remote_check_symbols): Update.
7427 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7428 (rs6000_skip_trampoline_code): Update.
7429 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7430 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7431 * solib-dsbt.c (lm_base): Update.
7432 * solib-frv.c (lm_base): Update.
7433 (main_got): Update.
7434 * solib-irix.c (locate_base): Update.
7435 * solib-som.c (som_solib_create_inferior_hook): Update.
7436 (som_solib_desire_dynamic_linker_symbols): Update.
7437 (link_map_start): Update.
7438 * solib-spu.c (spu_enable_break): Update.
7439 (ocl_enable_break): Update.
7440 * solib-svr4.c (elf_locate_base): Update.
7441 (enable_break): Update.
7442 * spu-tdep.c (spu_get_overlay_table): Update.
7443 (spu_catch_start): Update.
7444 (flush_ea_cache): Update.
7445 * stabsread.c (define_symbol): Update.
7446 (scan_file_globals): Update.
7447 * stack.c (find_frame_funname): Update.
7448 (frame_info): Update.
7449 * symfile.c (simple_read_overlay_table): Update.
7450 (simple_overlay_update): Update.
7451 * symmisc.c (dump_msymbols): Update.
7452 * symtab.c (fixup_section): Update.
7453 (find_pc_sect_line): Update.
7454 (skip_prologue_sal): Update.
7455 (search_symbols): Update.
7456 (print_msymbol_info): Update.
7457 (rbreak_command): Update.
7458 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7459 (completion_list_objc_symbol): Update.
7460 (default_make_symbol_completion_list_break_on): Update.
7461 * tracepoint.c (scope_info): Update.
7462 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7463 (tui_get_begin_asm_address): Update.
7464 * valops.c (find_function_in_inferior): Update.
7465 * value.c (value_static_field): Update.
7466 (value_fn_field): Update.
7467
7468 2014-02-26 Tom Tromey <tromey@redhat.com>
7469
7470 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7471 bound minimal symbols. Move code that knows about minsym
7472 table layout...
7473 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7474 function.
7475 * minsyms.h (minimal_symbol_upper_bound): Declare.
7476 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7477 minimal_symbol_upper_bound.
7478
7479 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7480
7481 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7482 Use the type's name if its basic type does not have a tag.
7483
7484 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7485
7486 * dwarf2read.c (read_subrange_type): Add comment.
7487
7488 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7489
7490 * dwarf2read.c (update_enumeration_type_from_children): New
7491 function, mostly extracted from process_structure_scope.
7492 (read_enumeration_type): Call update_enumeration_type_from_children.
7493 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7494 and flag_flag_enum fields.
7495
7496 2014-02-26 Pedro Alves <palves@redhat.com>
7497
7498 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7499 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7500 to_xfer_partial method.
7501
7502 2014-02-26 Pedro Alves <palves@redhat.com>
7503
7504 * target.c (complete_target_initialization): Don't install
7505 default_xfer_partial as to_xfer_partial hook.
7506 (nomemory): Delete.
7507 (update_current_target): Don't INHERIT nor de_fault
7508 deprecated_xfer_memory. Delete de_fault macro.
7509 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7510 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7511 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7512 field.
7513
7514 2014-02-26 Pedro Alves <palves@redhat.com>
7515
7516 * go32-nat.c (my_write_child): New function.
7517 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7518 (go32_xfer_partial): New function.
7519 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7520 Instead install a to_xfer_partial hook.
7521
7522 2014-02-26 Pedro Alves <palves@redhat.com>
7523
7524 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7525 to_xfer_partial helper. Rewrite.
7526 (procfs_xfer_partial): New function.
7527 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7528 Install a to_xfer_partial hook.
7529
7530 2014-02-26 Pedro Alves <palves@redhat.com>
7531
7532 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7533 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7534 (m32r_xfer_partial): New function.
7535 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7536 Install a to_xfer_partial hook.
7537
7538 2014-02-26 Pedro Alves <palves@redhat.com>
7539
7540 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7541 helper.
7542 (mips_xfer_partial): New function.
7543 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7544 hook. Install a to_xfer_partial hook.
7545
7546 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7547
7548 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7549 * gdbtypes.c (create_array_type_with_stride): New function,
7550 renaming create_array_type, but with an added parameter
7551 called "bit_stride".
7552 (create_array_type): Re-implement using
7553 create_array_type_with_stride.
7554 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7555 and DW_AT_bit_stride attributes.
7556
7557 2014-02-26 Pedro Alves <palves@redhat.com>
7558
7559 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7560 task-specific breakpoints.
7561
7562 2014-02-25 Pedro Alves <palves@redhat.com>
7563
7564 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7565 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7566
7567 2014-02-25 Stan Shebs <stan@codesourcery.com>
7568
7569 * defs.h: Annotate comments for Doxygen.
7570
7571 2014-02-25 Tom Tromey <tromey@redhat.com>
7572
7573 * target.h (target_ignore): Don't declare.
7574 * target.c (target_ignore): Remove.
7575
7576 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7577
7578 PR gdb/16626
7579 * auto-load.c (auto_load_objfile_script_1): Change filename to
7580 debugfile.
7581
7582 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7583
7584 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7585 documentation. Adjust prototype to match the target_ops
7586 to_xfer_partial method. Adjust implementation accordingly.
7587
7588 2014-02-25 Hui Zhu <hui@codesourcery.com>
7589
7590 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7591 to_traceframe_info.
7592
7593 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7594
7595 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7596 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7597 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7598 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7599 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7600 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7601 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7602 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7603 New constants.
7604 (rl78_register_type): Use a data pointer type for SP and
7605 new pseudo registers mentioned above. Use a 16 bit integer
7606 type for all other register pairs.
7607 (rl78_register_name, rl78_g10_register_name): Update for
7608 new pseudo registers.
7609 (rl78_pseudo_register_read): Likewise.
7610 (rl78_pseudo_register_write): Likewise.
7611 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7612 to the newly added pseudo registers.
7613
7614 2014-02-24 Doug Evans <dje@google.com>
7615
7616 * value.c (record_latest_value): Fix comment.
7617 * printcmd.c (print_command_1): Remove code to handle -1 return from
7618 record_latest_value.
7619
7620 2014-02-24 Pedro Alves <palves@redhat.com>
7621
7622 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7623 deprecated_xfer_memory hook.
7624 (procfs_xfer_partial): Call procfs_xfer_memory instead
7625 of the deprecated_xfer_memory target hook.
7626 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7627 helper.
7628
7629 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7630
7631 * windows-nat.c (windows_xfer_shared_libraries): Return
7632 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7633 requested object is TARGET_OBJECT_LIBRARIES.
7634
7635 2014-02-24 Yao Qi <yao@codesourcery.com>
7636
7637 * target.h (enum target_xfer_status)
7638 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7639 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7640 explicitly. New.
7641 * corefile.c (memory_error_message): User updated.
7642 * exec.c (section_table_read_available_memory): Likewise.
7643 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7644 * target.c (target_xfer_status_to_string): Likewise.
7645 (raw_memory_xfer_partial): Likewise.
7646 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7647 * valops.c (read_value_memory): Likewise.
7648 * exec.h: Update comments.
7649
7650 2014-02-24 Yao Qi <yao@codesourcery.com>
7651
7652 * target.c (target_xfer_status_to_string): Rename argument err
7653 to status.
7654 * target.h (target_xfer_status_to_string): Update declaration.
7655 Replace target_xfer_error_to_string with
7656 target_xfer_status_to_string in comment.
7657
7658 2014-02-24 Yao Qi <yao@codesourcery.com>
7659
7660 * mips-linux-nat.c (super_close): Update its type.
7661 (mips_linux_close): Pass 'self' to super_close.
7662
7663 2014-02-24 Yao Qi <yao@codesourcery.com>
7664
7665 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7666 * corefile.c (read_memory): Adjusted.
7667 * target.c (target_write_with_progress): Adjusted.
7668
7669 2014-02-23 Yao Qi <yao@codesourcery.com>
7670
7671 Revert two patches:
7672
7673 2013-10-25 Yao Qi <yao@codesourcery.com>
7674
7675 * remote.c (remote_traceframe_info): Return early if
7676 traceframe is not selected.
7677
7678 2013-07-19 Yao Qi <yao@codesourcery.com>
7679
7680 * target.c (update_current_target): Change the default action
7681 of 'to_traceframe_info' from tcomplain to return_zero.
7682 * target.h (struct target_ops) <to_traceframe_info>: Add more
7683 comments.
7684
7685 2014-02-23 Yao Qi <yao@codesourcery.com>
7686
7687 * valops.c (read_value_memory): Rewrite it. Call
7688 target_xfer_partial in a loop.
7689 * exec.h (section_table_available_memory): Remove declaration.
7690 Move comments to ...
7691 * exec.c (section_table_available_memory): ... here. Make it
7692 static.
7693
7694 2014-02-23 Yao Qi <yao@codesourcery.com>
7695
7696 * exec.c (section_table_read_available_memory): New function.
7697 * exec.h (section_table_read_available_memory): Declare.
7698 * ctf.c (ctf_xfer_partial): Call
7699 section_table_read_available_memory.
7700 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7701
7702 2014-02-23 Yao Qi <yao@codesourcery.com>
7703
7704 * ctf.c (ctf_xfer_partial): Move code to ...
7705 * exec.c (exec_read_partial_read_only): ... it. New function.
7706 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7707 * tracefile.c: Include "exec.h".
7708 * exec.h (exec_read_partial_read_only): Declare.
7709
7710 2014-02-23 Yao Qi <yao@codesourcery.com>
7711
7712 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7713 (tfile_has_memory): Remove.
7714 (init_tfile_ops): Don't set fields to_has_all_memory and
7715 to_has_memory of tfile_ops.
7716 * tracefile.c (tracefile_has_all_memory): New function.
7717 (tracefile_has_memory): New function.
7718 (init_tracefile_ops): Initialize fields to_has_all_memory and
7719 to_has_memory of 'ops'.
7720
7721 2014-02-23 Yao Qi <yao@codesourcery.com>
7722
7723 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7724 (ctf_thread_alive, ctf_get_trace_status): Remove.
7725 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7726 init_tracefile_ops.
7727 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7728 (tfile_has_stack, tfile_has_registers): Remove.
7729 (tfile_thread_alive): Remove.
7730 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7731 init_tracefile_ops.
7732 * tracefile.c (tracefile_has_stack): New function.
7733 (tracefile_has_registers): New function.
7734 (tracefile_thread_alive): New function.
7735 (tracefile_get_trace_status): New function.
7736 (init_tracefile_ops): New function.
7737 * tracefile.h (init_tracefile_ops): Declare.
7738
7739 2014-02-23 Yao Qi <yao@codesourcery.com>
7740
7741 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7742 (O_LARGEFILE): Likewise.
7743 (tfile_ops): Likewise.
7744 (TRACE_HEADER_SIZE): Likewise.
7745 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7746 (cur_data_size): Likewise.
7747 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7748 (tfile_close, tfile_files_info): Likewise.
7749 (tfile_get_trace_status): Likewise.
7750 (tfile_get_tracepoint_status): Likewise.
7751 (tfile_get_traceframe_address): Likewise.
7752 (tfile_trace_find, match_blocktype): Likewise.
7753 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7754 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7755 (tfile_get_trace_state_variable_value): Likewise.
7756 (tfile_has_all_memory, tfile_has_memory): Likewise.
7757 (tfile_has_stack, tfile_has_registers): Likewise.
7758 (tfile_thread_alive, build_traceframe_info): Likewise.
7759 (tfile_traceframe_info, init_tfile_ops): Likewise.
7760 (_initialize_tracepoint): Don't call init_tfile_ops
7761 and add_target_with_completer.
7762 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7763 exec.h, completer.h and filenames.h.
7764 (_initialize_tracefile_tfile): New function.
7765
7766 2014-02-23 Yao Qi <yao@codesourcery.com>
7767
7768 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7769 tracefile-tfile.o.
7770 (HFILES_NO_SRCDIR): Add tracefile.h.
7771 * ctf.c: Include "tracefile.h".
7772 * tracefile.h: New file.
7773 * tracefile.c: New file
7774 * tracefile-tfile.c: New file.
7775 * tracepoint.c: Include "tracefile.h".
7776 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7777 (stop_reason_names): Add const.
7778 (trace_file_writer_xfree): Move it to tracefile.c.
7779 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7780 (trace_save_ctf): Likewise.
7781 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7782 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7783 (tfile_write_header, tfile_write_regblock_type): Likewise.
7784 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7785 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7786 (tfile_write_raw_data, tfile_end): Likewise.
7787 (tfile_trace_file_writer_new): Likewise.
7788 (free_uploaded_tp): Make it extern.
7789 (free_uploaded_tsv): Make it extern.
7790 (_initialize_tracepoint): Move code to register command 'tsave'
7791 to tracefile.c.
7792 * tracepoint.h (stop_reason_names): Declare.
7793 (struct trace_frame_write_ops): Move it to tracefile.h.
7794 (struct trace_file_write_ops): Likewise.
7795 (struct trace_file_writer): Likewise.
7796 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7797
7798 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7799
7800 PR gdb/16594
7801 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7802 process name.
7803 (get_cores_used_by_process): New parameter num_cores, use it.
7804 (linux_xfer_osdata_processes): Pass num_cores to it.
7805 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7806 process name.
7807
7808 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7809
7810 * target.c (memory_xfer_partial): Fix length arg in call to
7811 breakpoint_xfer_memory.
7812
7813 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7814
7815 PR tdep/16397
7816 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7817 number comes after the + or - signs. Adjust length of register
7818 name to be extracted.
7819
7820 2014-02-20 Tom Tromey <tromey@redhat.com>
7821
7822 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7823 (ada_varobj_ops): Mark "extern".
7824
7825 2014-02-20 Tom Tromey <tromey@redhat.com>
7826
7827 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7828
7829 2014-02-20 Doug Evans <xdje42@gmail.com>
7830
7831 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7832 All callers updated.
7833 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7834 All callers updated.
7835 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7836 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7837
7838 2014-02-20 lin zuojian <manjian2006@gmail.com>
7839 Joel Brobecker <brobecker@adacore.com>
7840 Doug Evans <xdje42@gmail.com>
7841
7842 PR symtab/16581
7843 * dwarf2read.c (struct die_info): New member in_process.
7844 (reset_die_in_process): New function.
7845 (process_die): Set it at the start, reset when returning.
7846 (inherit_abstract_dies): Only call process_die if origin_child_die
7847 not already being processed.
7848
7849 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7850
7851 * windows-nat.c (handle_unload_dll): Add function documentation.
7852 (do_initial_windows_stuff): Add comment explaining why we wait
7853 until after inferior initialization has finished before
7854 processing all DLLs.
7855
7856 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7857
7858 * windows-nat.c (get_module_name): Delete.
7859 (windows_get_exec_module_filename): New function, mostly
7860 inspired from get_module_name.
7861 (windows_pid_to_exec_file): Replace call to get_module_name
7862 by call to windows_get_exec_module_filename.
7863
7864 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7865
7866 * windows-nat.c (handle_load_dll): Rewrite this function's
7867 introductory comment. Remove code using get_module_name
7868 to get the DLL's name.
7869
7870 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7871
7872 * windows-nat.c (get_windows_debug_event): Ignore
7873 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7874 if windows_initialization_done == 0.
7875 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7876 Adjust implementation to always load all DLLs.
7877 (do_initial_windows_stuff): Replace call to
7878 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7879
7880 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7881
7882 * windows-nat.c (_initialize_windows_nat): Deprecate the
7883 "dll-symbols" command. Turn the "add-shared-symbol-files"
7884 and "assf" aliases into commands, and deprecate them as well.
7885 * NEWS: Add entry explaining that "dll-symbols" and its two
7886 aliases are now deprecated.
7887
7888 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7889
7890 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7891 new-line in debug string. Remove trailing spaces.
7892
7893 2014-02-19 Stan Shebs <stan@codesourcery.com>
7894
7895 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7896
7897 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7898
7899 * NEWS: Add entry for the new feature
7900 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7901 and class values.
7902
7903 2014-02-19 Stan Shebs <stan@codesourcery.com>
7904
7905 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7906
7907 2014-02-19 Pedro Alves <palves@redhat.com>
7908
7909 * common/ptid.h (struct ptid): Mention that process_stratum
7910 targets should prefer ptid.lwp.
7911
7912 2014-02-19 Pedro Alves <palves@redhat.com>
7913
7914 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7915 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7916 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7917 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7918 store remote thread ids rather than ptid.tid.
7919 (_initialize_remote): Adjust.
7920
7921 2014-02-19 Tom Tromey <tromey@redhat.com>
7922
7923 * target.c (target_get_unwinder): Rewrite.
7924 (target_get_tailcall_unwinder): Rewrite.
7925 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7926 (record_btrace_to_get_tailcall_unwinder): New function.
7927 (init_record_btrace_ops): Update.
7928 * target.h (struct target_ops) <to_get_unwinder,
7929 to_get_tailcall_unwinder>: Now function pointers. Use
7930 TARGET_DEFAULT_RETURN.
7931
7932 2014-02-19 Tom Tromey <tromey@redhat.com>
7933
7934 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7935 argument.
7936 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7937
7938 2014-02-19 Tom Tromey <tromey@redhat.com>
7939
7940 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7941 directly.
7942 * target-delegates.c: Rebuild.
7943 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7944 TARGET_DEFAULT_FUNC.
7945 * target.c (default_target_decr_pc_after_break): Rename from
7946 forward_target_decr_pc_after_break. Simplify.
7947 (target_decr_pc_after_break): Rely on delegation.
7948
7949 2014-02-19 Tom Tromey <tromey@redhat.com>
7950
7951 * target.c (update_current_target): Do not INHERIT to_doc or
7952 to_magic. Do not de_fault to_open or to_close.
7953
7954 2014-02-19 Tom Tromey <tromey@redhat.com>
7955
7956 * gcore.h (objfile_find_memory_regions): Declare.
7957 * gcore.c (objfile_find_memory_regions): No longer static. Add
7958 "self" argument.
7959 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7960 * exec.c: Include gcore.h.
7961 (exec_set_find_memory_regions): Remove.
7962 (exec_find_memory_regions): Remove.
7963 (exec_do_find_memory_regions): Remove.
7964 (init_exec_ops): Update.
7965 * defs.h (exec_set_find_memory_regions): Remove.
7966
7967 2014-02-19 Tom Tromey <tromey@redhat.com>
7968
7969 * target-delegates.c: Rebuild.
7970 * target.h (struct target_ops) <to_extra_thread_info,
7971 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7972 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7973 not 0, in TARGET_DEFAULT_RETURN.
7974
7975 2014-02-19 Tom Tromey <tromey@redhat.com>
7976
7977 * target.c (complete_target_initialization): Remove casts. Use
7978 return_zero_has_execution.
7979 (return_zero): Add "ignore" argument.
7980 (return_zero_has_execution): New function.
7981 (init_dummy_target): Remove casts. Use
7982 return_zero_has_execution.
7983
7984 2014-02-19 Tom Tromey <tromey@redhat.com>
7985
7986 * target.c (update_current_target): Update comments. Do not
7987 INHERIT to_stratum.
7988
7989 2014-02-19 Tom Tromey <tromey@redhat.com>
7990
7991 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7992 needed.
7993 * corelow.c (core_read_description): Delegate when needed.
7994 * remote.c (remote_read_description): Delegate when needed.
7995 * target-delegates.c: Rebuild.
7996 * target.c (target_read_description): Rewrite.
7997 * target.h (struct target_ops) <to_read_description>: Update
7998 comment. Use TARGET_DEFAULT_RETURN.
7999
8000 2014-02-19 Tom Tromey <tromey@redhat.com>
8001
8002 * target-delegates.c: Rebuild.
8003 * target.c (update_current_target): Don't inherit or default
8004 to_can_run.
8005 (find_default_run_target): Check against delegate_can_run.
8006 * target.h (struct target_ops) <to_can_run>: Use
8007 TARGET_DEFAULT_RETURN.
8008
8009 2014-02-19 Tom Tromey <tromey@redhat.com>
8010
8011 * target-delegates.c: Rebuild.
8012 * target.c (target_disconnect): Unconditionally delegate.
8013 * target.h (struct target_ops) <to_disconnect>: Use
8014 TARGET_DEFAULT_NORETURN.
8015
8016 2014-02-19 Tom Tromey <tromey@redhat.com>
8017
8018 * record.c (record_stop): Unconditionally delegate.
8019 * target-delegates.c: Rebuild.
8020 * target.c (target_stop_recording): Unconditionally delegate.
8021 * target.h (struct target_ops) <to_stop_recording>: Use
8022 TARGET_DEFAULT_IGNORE.
8023
8024 2014-02-19 Tom Tromey <tromey@redhat.com>
8025
8026 * target-delegates.c: Rebuild.
8027 * target.c (target_enable_btrace): Unconditionally delegate.
8028 * target.h (struct target_ops) <to_enable_btrace>: Use
8029 TARGET_DEFAULT_NORETURN.
8030
8031 2014-02-19 Tom Tromey <tromey@redhat.com>
8032
8033 * target-delegates.c: Rebuild.
8034 * target.c (target_read_btrace): Unconditionally delegate.
8035 * target.h (struct target_ops) <to_read_btrace>: Use
8036 TARGET_DEFAULT_NORETURN.
8037
8038 2014-02-19 Tom Tromey <tromey@redhat.com>
8039
8040 * target-delegates.c: Rebuild.
8041 * target.c (target_teardown_btrace): Unconditionally delegate.
8042 * target.h (struct target_ops) <to_teardown_btrace>: Use
8043 TARGET_DEFAULT_NORETURN.
8044
8045 2014-02-19 Tom Tromey <tromey@redhat.com>
8046
8047 * target-delegates.c: Rebuild.
8048 * target.c (target_disable_btrace): Unconditionally delegate.
8049 * target.h (struct target_ops) <to_disable_btrace>: Use
8050 TARGET_DEFAULT_NORETURN.
8051
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8053
8054 * target-delegates.c: Rebuild.
8055 * target.c (default_search_memory): New function.
8056 (simple_search_memory): Update comment.
8057 (target_search_memory): Unconditionally delegate.
8058 * target.h (struct target_ops) <to_search_memory>: Use
8059 TARGET_DEFAULT_FUNC.
8060
8061 2014-02-19 Tom Tromey <tromey@redhat.com>
8062
8063 * auxv.c (default_auxv_parse): No longer static.
8064 (target_auxv_parse): Unconditionally delegate.
8065 * auxv.h (default_auxv_parse): Declare.
8066 * target-delegates.c: Rebuild.
8067 * target.c: Include auxv.h.
8068 * target.h (struct target_ops) <to_auxv_parse>: Use
8069 TARGET_DEFAULT_FUNC.
8070
8071 2014-02-19 Tom Tromey <tromey@redhat.com>
8072
8073 * target-delegates.c: Rebuild.
8074 * target.c (target_memory_map): Unconditionally delegate.
8075 * target.h (struct target_ops) <to_memory_map>: Use
8076 TARGET_DEFAULT_RETURN.
8077
8078 2014-02-19 Tom Tromey <tromey@redhat.com>
8079
8080 * target-delegates.c: Rebuild.
8081 * target.c (target_thread_alive): Unconditionally delegate.
8082 * target.h (struct target_ops) <to_thread_alive>: Use
8083 TARGET_DEFAULT_RETURN.
8084
8085 2014-02-19 Tom Tromey <tromey@redhat.com>
8086
8087 * target-delegates.c: Rebuild.
8088 * target.c (target_save_record): Unconditionally delegate.
8089 * target.h (struct target_ops) <to_save_record>: Use
8090 TARGET_DEFAULT_NORETURN.
8091
8092 2014-02-19 Tom Tromey <tromey@redhat.com>
8093
8094 * target-delegates.c: Rebuild.
8095 * target.c (target_delete_record): Unconditionally delegate.
8096 * target.h (struct target_ops) <to_delete_record>: Use
8097 TARGET_DEFAULT_NORETURN.
8098
8099 2014-02-19 Tom Tromey <tromey@redhat.com>
8100
8101 * target-delegates.c: Rebuild.
8102 * target.c (target_record_is_replaying): Unconditionally
8103 delegate.
8104 * target.h (struct target_ops) <to_record_is_replaying>: Use
8105 TARGET_DEFAULT_RETURN.
8106
8107 2014-02-19 Tom Tromey <tromey@redhat.com>
8108
8109 * target-delegates.c: Rebuild.
8110 * target.c (target_goto_record_begin): Unconditionally delegate.
8111 * target.h (struct target_ops) <to_goto_record_begin>: Use
8112 TARGET_DEFAULT_NORETURN.
8113
8114 2014-02-19 Tom Tromey <tromey@redhat.com>
8115
8116 * target-delegates.c: Rebuild.
8117 * target.c (target_goto_record_end): Unconditionally delegate.
8118 * target.h (struct target_ops) <to_goto_record_end>: Use
8119 TARGET_DEFAULT_NORETURN.
8120
8121 2014-02-19 Tom Tromey <tromey@redhat.com>
8122
8123 * target-delegates.c: Rebuild.
8124 * target.c (target_goto_record): Unconditionally delegate.
8125 * target.h (struct target_ops) <to_goto_record>: Use
8126 TARGET_DEFAULT_NORETURN.
8127
8128 2014-02-19 Tom Tromey <tromey@redhat.com>
8129
8130 * target-delegates.c: Rebuild.
8131 * target.c (target_insn_history): Unconditionally delegate.
8132 * target.h (struct target_ops) <to_insn_history>: Use
8133 TARGET_DEFAULT_NORETURN.
8134
8135 2014-02-19 Tom Tromey <tromey@redhat.com>
8136
8137 * target-delegates.c: Rebuild.
8138 * target.c (target_insn_history_from): Unconditionally delegate.
8139 * target.h (struct target_ops) <to_insn_history_from>: Use
8140 TARGET_DEFAULT_NORETURN.
8141
8142 2014-02-19 Tom Tromey <tromey@redhat.com>
8143
8144 * target-delegates.c: Rebuild.
8145 * target.c (target_insn_history_range): Unconditionally delegate.
8146 * target.h (struct target_ops) <to_insn_history_range>: Use
8147 TARGET_DEFAULT_NORETURN.
8148
8149 2014-02-19 Tom Tromey <tromey@redhat.com>
8150
8151 * target-delegates.c: Rebuild.
8152 * target.c (target_call_history): Unconditionally delegate.
8153 * target.h (struct target_ops) <to_call_history>: Use
8154 TARGET_DEFAULT_NORETURN.
8155
8156 2014-02-19 Tom Tromey <tromey@redhat.com>
8157
8158 * target-delegates.c: Rebuild.
8159 * target.c (target_call_history_from): Unconditionally delegate.
8160 * target.h (struct target_ops) <to_call_history_from>: Use
8161 TARGET_DEFAULT_NORETURN.
8162
8163 2014-02-19 Tom Tromey <tromey@redhat.com>
8164
8165 * target-delegates.c: Rebuild.
8166 * target.c (target_call_history_range): Unconditionally delegate.
8167 * target.h (struct target_ops) <to_call_history_range>: Use
8168 TARGET_DEFAULT_NORETURN.
8169
8170 2014-02-19 Tom Tromey <tromey@redhat.com>
8171
8172 * target-delegates.c: Rebuild.
8173 * target.c (target_verify_memory): Unconditionally delegate.
8174 * target.h (struct target_ops) <to_verify_memory>: Use
8175 TARGET_DEFAULT_NORETURN.
8176
8177 2014-02-19 Tom Tromey <tromey@redhat.com>
8178
8179 * target-delegates.c: Rebuild.
8180 * target.c (target_core_of_thread): Unconditionally delegate.
8181 * target.h (struct target_ops) <to_core_of_thread>: Use
8182 TARGET_DEFAULT_RETURN.
8183
8184 2014-02-19 Tom Tromey <tromey@redhat.com>
8185
8186 * target-delegates.c: Rebuild.
8187 * target.c (target_flash_done): Unconditionally delegate.
8188 * target.h (struct target_ops) <to_flash_done>: Use
8189 TARGET_DEFAULT_NORETURN.
8190
8191 2014-02-19 Tom Tromey <tromey@redhat.com>
8192
8193 * target-delegates.c: Rebuild.
8194 * target.c (target_flash_erase): Unconditionally delegate.
8195 * target.h (struct target_ops) <to_flash_erase>: Use
8196 TARGET_DEFAULT_NORETURN.
8197
8198 2014-02-19 Tom Tromey <tromey@redhat.com>
8199
8200 * target-delegates.c: Rebuild.
8201 * target.c (target_get_section_table): Unconditionally delegate.
8202 * target.h (struct target_ops) <to_get_section_table>: Use
8203 TARGET_DEFAULT_RETURN.
8204
8205 2014-02-19 Tom Tromey <tromey@redhat.com>
8206
8207 * target-delegates.c: Rebuild.
8208 * target.c (target_pid_to_str): Unconditionally delegate.
8209 (init_dummy_target): Don't initialize to_pid_to_str.
8210 (default_pid_to_str): Rename from dummy_pid_to_str.
8211 * target.h (struct target_ops) <to_pid_to_str>: Use
8212 TARGET_DEFAULT_FUNC.
8213
8214 2014-02-19 Tom Tromey <tromey@redhat.com>
8215
8216 * target-delegates.c: Rebuild.
8217 * target.c (target_find_new_threads): Unconditionally delegate.
8218 * target.h (struct target_ops) <to_find_new_threads>: Use
8219 TARGET_DEFAULT_RETURN.
8220
8221 2014-02-19 Tom Tromey <tromey@redhat.com>
8222
8223 * target-delegates.c: Rebuild.
8224 * target.c (target_program_signals): Unconditionally delegate.
8225 * target.h (struct target_ops) <to_program_signals>: Use
8226 TARGET_DEFAULT_IGNORE.
8227
8228 2014-02-19 Tom Tromey <tromey@redhat.com>
8229
8230 * target-delegates.c: Rebuild.
8231 * target.c (target_pass_signals): Unconditionally delegate.
8232 * target.h (struct target_ops) <to_pass_signals>: Use
8233 TARGET_DEFAULT_IGNORE.
8234
8235 2014-02-19 Tom Tromey <tromey@redhat.com>
8236
8237 * target-delegates.c: Rebuild.
8238 * target.c (default_mourn_inferior): New function.
8239 (target_mourn_inferior): Unconditionally delegate.
8240 * target.h (struct target_ops) <to_mourn_inferior>: Use
8241 TARGET_DEFAULT_FUNC.
8242
8243 2014-02-19 Tom Tromey <tromey@redhat.com>
8244
8245 * target-delegates.c: Rebuild.
8246 * target.c (default_follow_fork): New function.
8247 (target_follow_fork): Unconditionally delegate.
8248 * target.h (struct target_ops) <to_follow_fork>: Use
8249 TARGET_DEFAULT_FUNC.
8250
8251 2014-02-19 Tom Tromey <tromey@redhat.com>
8252
8253 * target-delegates.c: Rebuild.
8254 * target.c (target_kill): Unconditionally delegate.
8255 * target.h (struct target_ops) <to_kill>: Use
8256 TARGET_DEFAULT_NORETURN.
8257
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8259
8260 * target-delegates.c: Rebuild.
8261 * target.c (target_masked_watch_num_registers): Unconditionally
8262 delegate.
8263 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8264 Use TARGET_DEFAULT_RETURN.
8265
8266 2014-02-19 Tom Tromey <tromey@redhat.com>
8267
8268 * target-delegates.c: Rebuild.
8269 * target.c (target_remove_mask_watchpoint): Unconditionally
8270 delegate.
8271 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8272 TARGET_DEFAULT_RETURN.
8273
8274 2014-02-19 Tom Tromey <tromey@redhat.com>
8275
8276 * target-delegates.c: Rebuild.
8277 * target.c (target_insert_mask_watchpoint): Unconditionally
8278 delegate.
8279 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8280 TARGET_DEFAULT_RETURN.
8281
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8283
8284 * target-delegates.c: Rebuild.
8285 * target.c (target_ranged_break_num_registers): Unconditionally
8286 delegate.
8287 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8288 Use TARGET_DEFAULT_RETURN.
8289
8290 2014-02-19 Tom Tromey <tromey@redhat.com>
8291
8292 * target-delegates.c: Rebuild.
8293 * target.c (target_fetch_registers): Unconditionally delegate.
8294 * target.h (struct target_ops) <to_fetch_registers>: Use
8295 TARGET_DEFAULT_NORETURN.
8296
8297 2014-02-19 Tom Tromey <tromey@redhat.com>
8298
8299 * target-delegates.c: Rebuild.
8300 * target.c (update_current_target): Don't inherit or default
8301 to_stop.
8302 * target.h (struct target_ops) <to_stop>: Use
8303 TARGET_DEFAULT_IGNORE.
8304
8305 2014-02-19 Tom Tromey <tromey@redhat.com>
8306
8307 * target-delegates.c: Rebuild.
8308 * target.c (update_current_target): Don't inherit or default
8309 to_can_run_breakpoint_commands.
8310 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8311 Use TARGET_DEFAULT_RETURN.
8312
8313 2014-02-19 Tom Tromey <tromey@redhat.com>
8314
8315 * target-delegates.c: Rebuild.
8316 * target.c (update_current_target): Don't inherit or default
8317 to_supports_evaluation_of_breakpoint_conditions.
8318 * target.h (struct target_ops)
8319 <to_supports_evaluation_of_breakpoint_conditions>: Use
8320 TARGET_DEFAULT_RETURN.
8321
8322 2014-02-19 Tom Tromey <tromey@redhat.com>
8323
8324 * target-delegates.c: Rebuild.
8325 * target.c (update_current_target): Don't inherit or default
8326 to_augmented_libraries_svr4_read.
8327 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8328 Use TARGET_DEFAULT_RETURN.
8329
8330 2014-02-19 Tom Tromey <tromey@redhat.com>
8331
8332 * target-delegates.c: Rebuild.
8333 * target.c (update_current_target): Don't inherit or default
8334 to_can_use_agent.
8335 * target.h (struct target_ops) <to_can_use_agent>: Use
8336 TARGET_DEFAULT_RETURN.
8337
8338 2014-02-19 Tom Tromey <tromey@redhat.com>
8339
8340 * target-delegates.c: Rebuild.
8341 * target.c (update_current_target): Don't inherit or default
8342 to_use_agent.
8343 * target.h (struct target_ops) <to_use_agent>: Use
8344 TARGET_DEFAULT_NORETURN.
8345
8346 2014-02-19 Tom Tromey <tromey@redhat.com>
8347
8348 * target-delegates.c: Rebuild.
8349 * target.c (update_current_target): Don't inherit or default
8350 to_traceframe_info.
8351 (return_null): Remove.
8352 * target.h (struct target_ops) <to_traceframe_info>: Use
8353 TARGET_DEFAULT_RETURN.
8354
8355 2014-02-19 Tom Tromey <tromey@redhat.com>
8356
8357 * target-delegates.c: Rebuild.
8358 * target.c (update_current_target): Don't inherit or default
8359 to_static_tracepoint_markers_by_strid.
8360 * target.h (struct target_ops)
8361 <to_static_tracepoint_markers_by_strid>: Use
8362 TARGET_DEFAULT_NORETURN.
8363
8364 2014-02-19 Tom Tromey <tromey@redhat.com>
8365
8366 * target-delegates.c: Rebuild.
8367 * target.c (update_current_target): Don't inherit or default
8368 to_static_tracepoint_marker_at.
8369 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8370 Use TARGET_DEFAULT_RETURN.
8371
8372 2014-02-19 Tom Tromey <tromey@redhat.com>
8373
8374 * target-delegates.c: Rebuild.
8375 * target.c (update_current_target): Don't inherit or default
8376 to_set_permissions.
8377 * target.h (struct target_ops) <to_set_permissions>: Use
8378 TARGET_DEFAULT_IGNORE.
8379
8380 2014-02-19 Tom Tromey <tromey@redhat.com>
8381
8382 * target-delegates.c: Rebuild.
8383 * target.c (update_current_target): Don't inherit or default
8384 to_get_tib_address.
8385 * target.h (struct target_ops) <to_get_tib_address>: Use
8386 TARGET_DEFAULT_NORETURN.
8387
8388 2014-02-19 Tom Tromey <tromey@redhat.com>
8389
8390 * target-delegates.c: Rebuild.
8391 * target.c (update_current_target): Don't inherit or default
8392 to_set_trace_notes.
8393 * target.h (struct target_ops) <to_set_trace_notes>: Use
8394 TARGET_DEFAULT_RETURN.
8395
8396 2014-02-19 Tom Tromey <tromey@redhat.com>
8397
8398 * target-delegates.c: Rebuild.
8399 * target.c (update_current_target): Don't initialize
8400 to_set_trace_buffer_size.
8401 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8402 TARGET_DEFAULT_IGNORE.
8403
8404 2014-02-19 Tom Tromey <tromey@redhat.com>
8405
8406 * target-delegates.c: Rebuild.
8407 * target.c (update_current_target): Don't inherit or default
8408 to_set_circular_trace_buffer.
8409 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8410 TARGET_DEFAULT_IGNORE.
8411
8412 2014-02-19 Tom Tromey <tromey@redhat.com>
8413
8414 * target-delegates.c: Rebuild.
8415 * target.c (update_current_target): Don't inherit or default
8416 to_set_disconnected_tracing.
8417 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8418 TARGET_DEFAULT_IGNORE.
8419
8420 2014-02-19 Tom Tromey <tromey@redhat.com>
8421
8422 * target-delegates.c: Rebuild.
8423 * target.c (update_current_target): Don't inherit or default
8424 to_get_min_fast_tracepoint_insn_len.
8425 (return_minus_one): Remove.
8426 * target.h (struct target_ops)
8427 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8428
8429 2014-02-19 Tom Tromey <tromey@redhat.com>
8430
8431 * target-delegates.c: Rebuild.
8432 * target.c (update_current_target): Don't inherit or default
8433 to_get_raw_trace_data.
8434 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8435 TARGET_DEFAULT_NORETURN.
8436
8437 2014-02-19 Tom Tromey <tromey@redhat.com>
8438
8439 * target-delegates.c: Rebuild.
8440 * target.c (update_current_target): Don't inherit or default
8441 to_upload_trace_state_variables.
8442 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8443 Use TARGET_DEFAULT_RETURN.
8444
8445 2014-02-19 Tom Tromey <tromey@redhat.com>
8446
8447 * target-delegates.c: Rebuild.
8448 * target.c (update_current_target): Don't inherit or default
8449 to_upload_tracepoints.
8450 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8451 TARGET_DEFAULT_RETURN.
8452
8453 2014-02-19 Tom Tromey <tromey@redhat.com>
8454
8455 * target-delegates.c: Rebuild.
8456 * target.c (update_current_target): Don't inherit or default
8457 to_save_trace_data.
8458 * target.h (struct target_ops) <to_save_trace_data>: Use
8459 TARGET_DEFAULT_NORETURN.
8460
8461 2014-02-19 Tom Tromey <tromey@redhat.com>
8462
8463 * target-delegates.c: Rebuild.
8464 * target.c (update_current_target): Don't inherit or default
8465 to_get_trace_state_variable_value.
8466 * target.h (struct target_ops)
8467 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8468
8469 2014-02-19 Tom Tromey <tromey@redhat.com>
8470
8471 * target-delegates.c: Rebuild.
8472 * target.c (update_current_target): Don't inherit or default
8473 to_trace_find.
8474 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8475
8476 2014-02-19 Tom Tromey <tromey@redhat.com>
8477
8478 * target-delegates.c: Rebuild.
8479 * target.c (update_current_target): Don't inherit or default
8480 to_trace_stop.
8481 * target.h (struct target_ops) <to_trace_stop>: Use
8482 TARGET_DEFAULT_NORETURN.
8483
8484 2014-02-19 Tom Tromey <tromey@redhat.com>
8485
8486 * target-delegates.c: Rebuild.
8487 * target.c (update_current_target): Don't inherit or default
8488 to_get_tracepoint_status.
8489 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8490 TARGET_DEFAULT_NORETURN.
8491
8492 2014-02-19 Tom Tromey <tromey@redhat.com>
8493
8494 * target-delegates.c: Rebuild.
8495 * target.c (update_current_target): Don't inherit or default
8496 to_get_trace_status.
8497 * target.h (struct target_ops) <to_get_trace_status>: Use
8498 TARGET_DEFAULT_RETURN.
8499
8500 2014-02-19 Tom Tromey <tromey@redhat.com>
8501
8502 * target-delegates.c: Rebuild.
8503 * target.c (update_current_target): Don't inherit or default
8504 to_trace_start.
8505 * target.h (struct target_ops) <to_trace_start>: Use
8506 TARGET_DEFAULT_NORETURN.
8507
8508 2014-02-19 Tom Tromey <tromey@redhat.com>
8509
8510 * target-delegates.c: Rebuild.
8511 * target.c (update_current_target): Don't inherit or default
8512 to_trace_set_readonly_regions.
8513 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8514 Use TARGET_DEFAULT_NORETURN.
8515
8516 2014-02-19 Tom Tromey <tromey@redhat.com>
8517
8518 * target-delegates.c: Rebuild.
8519 * target.c (update_current_target): Don't inherit or default
8520 to_disable_tracepoint.
8521 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8522 TARGET_DEFAULT_NORETURN.
8523
8524 2014-02-19 Tom Tromey <tromey@redhat.com>
8525
8526 * target-delegates.c: Rebuild.
8527 * target.c (update_current_target): Don't inherit or default
8528 to_enable_tracepoint.
8529 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8530 TARGET_DEFAULT_NORETURN.
8531
8532 2014-02-19 Tom Tromey <tromey@redhat.com>
8533
8534 * target-delegates.c: Rebuild.
8535 * target.c (update_current_target): Don't inherit or default
8536 to_download_trace_state_variable.
8537 * target.h (struct target_ops) <to_download_trace_state_variable>:
8538 Use TARGET_DEFAULT_NORETURN.
8539
8540 2014-02-19 Tom Tromey <tromey@redhat.com>
8541
8542 * target-delegates.c: Rebuild.
8543 * target.c (update_current_target): Don't inherit or default
8544 to_can_download_tracepoint.
8545 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8546 TARGET_DEFAULT_RETURN.
8547
8548 2014-02-19 Tom Tromey <tromey@redhat.com>
8549
8550 * target-delegates.c: Rebuild.
8551 * target.c (update_current_target): Don't inherit or default
8552 to_download_tracepoint.
8553 * target.h (struct target_ops) <to_download_tracepoint>: Use
8554 TARGET_DEFAULT_NORETURN.
8555
8556 2014-02-19 Tom Tromey <tromey@redhat.com>
8557
8558 * target-delegates.c: Rebuild.
8559 * target.c (update_current_target): Don't inherit or default
8560 to_trace_init.
8561 * target.h (struct target_ops) <to_trace_init>: Use
8562 TARGET_DEFAULT_RETURN.
8563
8564 2014-02-19 Tom Tromey <tromey@redhat.com>
8565
8566 * target-delegates.c: Rebuild.
8567 * target.c (update_current_target): Don't inherit or default
8568 to_supports_string_tracing.
8569 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8570 TARGET_DEFAULT_RETURN.
8571
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8573
8574 * target-delegates.c: Rebuild.
8575 * target.c (update_current_target): Don't inherit or default
8576 to_supports_enable_disable_tracepoint.
8577 * target.h (struct target_ops)
8578 <to_supports_enable_disable_tracepoint>: Use
8579 TARGET_DEFAULT_RETURN.
8580
8581 2014-02-19 Tom Tromey <tromey@redhat.com>
8582
8583 * target-delegates.c: Rebuild.
8584 * target.c (update_current_target): Don't inherit or default
8585 to_supports_multi_process.
8586 * target.h (struct target_ops) <to_supports_multi_process>: Use
8587 TARGET_DEFAULT_RETURN.
8588
8589 2014-02-19 Tom Tromey <tromey@redhat.com>
8590
8591 * target-delegates.c: Rebuild.
8592 * target.c (update_current_target): Don't inherit or default
8593 to_get_ada_task_ptid.
8594 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8595 TARGET_DEFAULT_FUNC.
8596
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8598
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8601 to_thread_architecture.
8602 * target.h (struct target_ops) <to_thread_architecture>: Use
8603 TARGET_DEFAULT_FUNC.
8604
8605 2014-02-19 Tom Tromey <tromey@redhat.com>
8606
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8609 to_execution_direction.
8610 * target.h (struct target_ops) <to_execution_direction>: Use
8611 TARGET_DEFAULT_FUNC.
8612
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_can_execute_reverse.
8618 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8619 TARGET_DEFAULT_RETURN.
8620 (target_can_execute_reverse): Unconditionally delegate.
8621
8622 2014-02-19 Tom Tromey <tromey@redhat.com>
8623
8624 * target-delegates.c: Rebuild.
8625 * target.c (update_current_target): Don't inherit or default
8626 to_goto_bookmark.
8627 (dummy_goto_bookmark): Remove.
8628 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8629 * target.h (struct target_ops) <to_goto_bookmark>: Use
8630 TARGET_DEFAULT_NORETURN.
8631
8632 2014-02-19 Tom Tromey <tromey@redhat.com>
8633
8634 * target-delegates.c: Rebuild.
8635 * target.c (update_current_target): Don't inherit or default
8636 to_get_bookmark.
8637 (dummy_get_bookmark): Remove.
8638 (init_dummy_target): Don't inherit or default to_get_bookmark.
8639 * target.h (struct target_ops) <to_get_bookmark>: Use
8640 TARGET_DEFAULT_NORETURN
8641
8642 2014-02-19 Tom Tromey <tromey@redhat.com>
8643
8644 * target-delegates.c: Rebuild.
8645 * target.c (update_current_target): Don't inherit or default
8646 to_make_corefile_notes.
8647 (init_dummy_target): Don't initialize to_make_corefile_notes.
8648 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8649 TARGET_DEFAULT_FUNC.
8650
8651 2014-02-19 Tom Tromey <tromey@redhat.com>
8652
8653 * target-delegates.c: Rebuild.
8654 * target.c (update_current_target): Don't inherit or default
8655 to_find_memory_regions.
8656 (init_dummy_target): Don't initialize to_find_memory_regions.
8657 * target.h (struct target_ops) <to_find_memory_regions>: Use
8658 TARGET_DEFAULT_FUNC.
8659
8660 2014-02-19 Tom Tromey <tromey@redhat.com>
8661
8662 * target-delegates.c: Rebuild.
8663 * target.c (update_current_target): Don't inherit or default
8664 to_log_command.
8665 * target.h (struct target_ops) <to_log_command>: Use
8666 TARGET_DEFAULT_IGNORE.
8667 (target_log_command): Unconditionally delegate.
8668
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8670
8671 * target-delegates.c: Rebuild.
8672 * target.c (update_current_target): Don't inherit or default
8673 to_pid_to_exec_file.
8674 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8675 TARGET_DEFAULT_RETURN.
8676
8677 2014-02-19 Tom Tromey <tromey@redhat.com>
8678
8679 * target-delegates.c: Rebuild.
8680 * target.c (update_current_target): Don't inherit or default
8681 to_thread_name.
8682 (target_thread_name): Unconditionally delegate.
8683 * target.h (struct target_ops) <to_thread_name>: Use
8684 TARGET_DEFAULT_RETURN.
8685
8686 2014-02-19 Tom Tromey <tromey@redhat.com>
8687
8688 * target-delegates.c: Rebuild.
8689 * target.c (update_current_target): Don't inherit or default
8690 to_extra_thread_info.
8691 * target.h (struct target_ops) <to_extra_thread_info>: Use
8692 TARGET_DEFAULT_RETURN.
8693
8694 2014-02-19 Tom Tromey <tromey@redhat.com>
8695
8696 * target-delegates.c: Rebuild.
8697 * target.c (update_current_target): Don't inherit or default
8698 to_has_exited.
8699 * target.h (struct target_ops) <to_has_exited>: Use
8700 TARGET_DEFAULT_RETURN..
8701
8702 2014-02-19 Tom Tromey <tromey@redhat.com>
8703
8704 * target-delegates.c: Rebuild.
8705 * target.c (update_current_target): Don't inherit or default
8706 to_set_syscall_catchpoint.
8707 (return_one): Remove.
8708 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8709 TARGET_DEFAULT_RETURN.
8710
8711 2014-02-19 Tom Tromey <tromey@redhat.com>
8712
8713 * target-delegates.c: Rebuild.
8714 * target.c (update_current_target): Don't inherit or default
8715 to_insert_exec_catchpoint.
8716 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8717 TARGET_DEFAULT_RETURN.
8718
8719 2014-01-08 Tom Tromey <tromey@redhat.com>
8720
8721 * target-delegates.c: Rebuild.
8722 * target.c (update_current_target): Don't inherit or default
8723 to_insert_exec_catchpoint.
8724 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8725 TARGET_DEFAULT_RETURN.
8726
8727 2014-02-19 Tom Tromey <tromey@redhat.com>
8728
8729 * target-delegates.c: Rebuild.
8730 * target.c (update_current_target): Don't inherit or default
8731 to_remove_vfork_catchpoint.
8732 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8733 TARGET_DEFAULT_RETURN.
8734
8735 2014-02-19 Tom Tromey <tromey@redhat.com>
8736
8737 * target-delegates.c: Rebuild.
8738 * target.c (update_current_target): Don't inherit or default
8739 to_insert_vfork_catchpoint.
8740 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8741 TARGET_DEFAULT_RETURN.
8742
8743 2014-02-19 Tom Tromey <tromey@redhat.com>
8744
8745 * target-delegates.c: Rebuild.
8746 * target.c (update_current_target): Don't inherit or default
8747 to_remove_fork_catchpoint.
8748 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8749 TARGET_DEFAULT_RETURN.
8750
8751 2014-02-19 Tom Tromey <tromey@redhat.com>
8752
8753 * target-delegates.c: Rebuild.
8754 * target.c (update_current_target): Don't inherit or default
8755 to_insert_fork_catchpoint.
8756 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8757 TARGET_DEFAULT_RETURN.
8758
8759 2014-02-19 Tom Tromey <tromey@redhat.com>
8760
8761 * target-delegates.c: Rebuild.
8762 * target.c (update_current_target): Don't inherit or default
8763 to_post_startup_inferior.
8764 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8765 TARGET_DEFAULT_IGNORE.
8766
8767 2014-02-19 Tom Tromey <tromey@redhat.com>
8768
8769 * target-delegates.c: Rebuild.
8770 * target.c (update_current_target): Don't inherit or default
8771 to_load.
8772 * target.h (struct target_ops) <to_load>: Use
8773 TARGET_DEFAULT_NORETURN.
8774
8775 2014-02-19 Tom Tromey <tromey@redhat.com>
8776
8777 * target-delegates.c: Rebuild.
8778 * target.c (update_current_target): Don't inherit or default
8779 to_terminal_info.
8780 * target.h (struct target_ops) <to_terminal_info>: Use
8781 TARGET_DEFAULT_FUNC.
8782
8783 2014-02-19 Tom Tromey <tromey@redhat.com>
8784
8785 * target-delegates.c: Rebuild.
8786 * target.c (update_current_target): Don't inherit or default
8787 to_terminal_save_ours.
8788 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8789 TARGET_DEFAULT_IGNORE.
8790
8791 2014-02-19 Tom Tromey <tromey@redhat.com>
8792
8793 * target-delegates.c: Rebuild.
8794 * target.c (update_current_target): Don't inherit or default
8795 to_terminal_ours.
8796 * target.h (struct target_ops) <to_terminal_ours>: Use
8797 TARGET_DEFAULT_IGNORE.
8798
8799 2014-02-19 Tom Tromey <tromey@redhat.com>
8800
8801 * target-delegates.c: Rebuild.
8802 * target.c (update_current_target): Don't inherit or default
8803 to_terminal_ours_for_output.
8804 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8805 TARGET_DEFAULT_IGNORE.
8806
8807 2014-02-19 Tom Tromey <tromey@redhat.com>
8808
8809 * target-delegates.c: Rebuild.
8810 * target.c (update_current_target): Don't inherit or default
8811 to_terminal_inferior.
8812 * target.h (struct target_ops) <to_terminal_inferior>: Use
8813 TARGET_DEFAULT_IGNORE.
8814
8815 2014-02-19 Tom Tromey <tromey@redhat.com>
8816
8817 * target-delegates.c: Rebuild.
8818 * target.c (update_current_target): Don't inherit or default
8819 to_terminal_init.
8820 * target.h (struct target_ops) <to_terminal_init>: Use
8821 TARGET_DEFAULT_IGNORE.
8822
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8824
8825 * target-delegates.c: Rebuild.
8826 * target.c (update_current_target): Don't inherit or default
8827 to_can_accel_watchpoint_condition.
8828 * target.h (struct target_ops)
8829 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8830
8831 2014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * target-delegates.c: Rebuild.
8834 * target.c (update_current_target): Don't inherit or default
8835 to_region_ok_for_hw_watchpoint.
8836 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8837 Use TARGET_DEFAULT_FUNC.
8838
8839 2014-02-19 Tom Tromey <tromey@redhat.com>
8840
8841 * target-delegates.c: Rebuild.
8842 * target.c (update_current_target): Don't inherit or default
8843 to_watchpoint_addr_within_range.
8844 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8845 Use TARGET_DEFAULT_FUNC.
8846
8847 2014-02-19 Tom Tromey <tromey@redhat.com>
8848
8849 * target-delegates.c: Rebuild.
8850 * target.c (update_current_target): Don't inherit or default
8851 to_remove_watchpoint.
8852 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8853 TARGET_DEFAULT_NORETURN.
8854
8855 2014-02-19 Tom Tromey <tromey@redhat.com>
8856
8857 * target-delegates.c: Rebuild.
8858 * target.c (update_current_target): Don't inherit or default
8859 to_insert_watchpoint.
8860 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8861 TARGET_DEFAULT_RETURN.
8862
8863 2014-02-19 Tom Tromey <tromey@redhat.com>
8864
8865 * target-delegates.c: Rebuild.
8866 * target.c (update_current_target): Don't inherit or default
8867 to_remove_hw_breakpoint.
8868 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8869 TARGET_DEFAULT_RETURN.
8870
8871 2014-02-19 Tom Tromey <tromey@redhat.com>
8872
8873 * target-delegates.c: Rebuild.
8874 * target.c (update_current_target): Don't inherit or default
8875 to_insert_hw_breakpoint.
8876 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8877 TARGET_DEFAULT_RETURN.
8878
8879 2014-02-19 Tom Tromey <tromey@redhat.com>
8880
8881 * target-delegates.c: Rebuild.
8882 * target.c (update_current_target): Don't inherit or default
8883 to_can_use_hw_breakpoint.
8884 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8885 TARGET_DEFAULT_RETURN.
8886
8887 2014-02-19 Tom Tromey <tromey@redhat.com>
8888
8889 * target-delegates.c: Rebuild.
8890 * target.c (update_current_target): Don't inherit or default
8891 to_files_info.
8892 * target.h (struct target_ops) <to_files_info>: Use
8893 TARGET_DEFAULT_IGNORE.
8894
8895 2014-02-19 Tom Tromey <tromey@redhat.com>
8896
8897 * target-delegates.c: Rebuild.
8898 * target.c (update_current_target): Don't inherit or default
8899 to_store.
8900 * target.h (struct target_ops) <to_store>: Use
8901 TARGET_DEFAULT_NORETURN.
8902
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * target-delegates.c: Rebuild.
8906 * target.c (update_current_target): Don't inherit or default
8907 to_post_attach.
8908 * target.h (struct target_ops) <to_post_attach>: Use
8909 TARGET_DEFAULT_IGNORE.
8910
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8912
8913 * target-delegates.c: Rebuild.
8914 * target.c (update_current_target): Don't inherit or default
8915 to_rcmd.
8916 (default_rcmd): New function.
8917 (do_monitor_command): Unconditionally delegate.
8918 * target.h (struct target_ops) <to_rmcd>: Use
8919 TARGET_DEFAULT_FUNC.
8920
8921 2014-02-19 Tom Tromey <tromey@redhat.com>
8922
8923 * target-delegates.c: Rebuild.
8924 * target.c (init_dummy_target): Don't initialize to_attach.
8925 (target_attach): Unconditionally delegate.
8926 * target.h (struct target_ops) <to_attach>: Use
8927 TARGET_DEFAULT_FUNC.
8928
8929 2014-02-19 Tom Tromey <tromey@redhat.com>
8930
8931 * target-delegates.c: Rebuild.
8932 * target.c (target_detach): Unconditionally delegate.
8933 (init_dummy_target): Don't initialize to_detach.
8934 * target.h (struct target_ops) <to_detach>: Use
8935 TARGET_DEFAULT_IGNORE.
8936
8937 2014-02-19 Tom Tromey <tromey@redhat.com>
8938
8939 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8940 Add argument.
8941 (target_augmented_libraries_svr4_read): Add argument.
8942 * target.c (update_current_target): Update.
8943 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8944 argument.
8945
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8947
8948 * target.h (struct target_ops) <to_call_history_range>: Add
8949 argument.
8950 * target.c (target_call_history_range): Add argument.
8951 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8952 argument.
8953 (record_btrace_call_history_from): Update.
8954
8955 2014-02-19 Tom Tromey <tromey@redhat.com>
8956
8957 * target.h (struct target_ops) <to_call_history_from>: Add
8958 argument.
8959 * target.c (target_call_history_from): Add argument.
8960 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8961 argument.
8962
8963 2014-02-19 Tom Tromey <tromey@redhat.com>
8964
8965 * target.h (struct target_ops) <to_call_history>: Add argument.
8966 * target.c (target_call_history): Add argument.
8967 * record-btrace.c (record_btrace_call_history): Add 'self'
8968 argument.
8969
8970 2014-02-19 Tom Tromey <tromey@redhat.com>
8971
8972 * target.h (struct target_ops) <to_insn_history_range>: Add
8973 argument.
8974 * target.c (target_insn_history_range): Add argument.
8975 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8976 argument.
8977 (record_btrace_insn_history_from): Update.
8978
8979 2014-02-19 Tom Tromey <tromey@redhat.com>
8980
8981 * target.h (struct target_ops) <to_insn_history_from>: Add
8982 argument.
8983 * target.c (target_insn_history_from): Add argument.
8984 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8985 argument.
8986
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * target.h (struct target_ops) <to_insn_history>: Add argument.
8990 * target.c (target_insn_history): Add argument.
8991 * record-btrace.c (record_btrace_insn_history): Add 'self'
8992 argument.
8993
8994 2014-02-19 Tom Tromey <tromey@redhat.com>
8995
8996 * target.h (struct target_ops) <to_goto_record>: Add argument.
8997 * target.c (target_goto_record): Add argument.
8998 * record-full.c (record_full_goto): Add 'self' argument.
8999 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9000
9001 2014-02-19 Tom Tromey <tromey@redhat.com>
9002
9003 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9004 * target.c (target_goto_record_end): Add argument.
9005 * record-full.c (record_full_goto_end): Add 'self' argument.
9006 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9007
9008 2014-02-19 Tom Tromey <tromey@redhat.com>
9009
9010 * target.h (struct target_ops) <to_goto_record_begin>: Add
9011 argument.
9012 * target.c (target_goto_record_begin): Add argument.
9013 * record-full.c (record_full_goto_begin): Add 'self' argument.
9014 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9015 argument.
9016
9017 2014-02-19 Tom Tromey <tromey@redhat.com>
9018
9019 * target.h (struct target_ops) <to_record_is_replaying>: Add
9020 argument.
9021 * target.c (target_record_is_replaying): Add argument.
9022 * record-full.c (record_full_is_replaying): Add 'self' argument.
9023 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9024 argument.
9025 (record_btrace_xfer_partial, record_btrace_store_registers)
9026 (record_btrace_prepare_to_store, record_btrace_resume)
9027 (record_btrace_wait, record_btrace_decr_pc_after_break)
9028 (record_btrace_find_new_threads, record_btrace_thread_alive):
9029 Update.
9030
9031 2014-02-19 Tom Tromey <tromey@redhat.com>
9032
9033 * target.h (struct target_ops) <to_delete_record>: Add argument.
9034 * target.c (target_delete_record): Add argument.
9035 * record-full.c (record_full_delete): Add 'self' argument.
9036
9037 2014-02-19 Tom Tromey <tromey@redhat.com>
9038
9039 * target.h (struct target_ops) <to_save_record>: Add argument.
9040 * target.c (target_save_record): Add argument.
9041 * record-full.c (record_full_save): Add 'self' argument.
9042 (record_full_save): Add 'self' argument.
9043
9044 2014-02-19 Tom Tromey <tromey@redhat.com>
9045
9046 * target.h (struct target_ops) <to_info_record>: Add argument.
9047 * target.c (target_info_record): Add argument.
9048 * record.c (info_record_command): Add argument.
9049 * record-full.c (record_full_info): Add 'self' argument.
9050 * record-btrace.c (record_btrace_info): Add 'self' argument.
9051
9052 2014-02-19 Tom Tromey <tromey@redhat.com>
9053
9054 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9055 * target.c (target_stop_recording): Add argument.
9056 * record.c (record_stop): Add argument.
9057 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9058 argument.
9059
9060 2014-02-19 Tom Tromey <tromey@redhat.com>
9061
9062 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9063 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9064 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9065 argument.
9066 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9067 (_initialize_amd64_linux_nat): Use it.
9068 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9069 (_initialize_i386_linux_nat): Use it.
9070
9071 2014-02-19 Tom Tromey <tromey@redhat.com>
9072
9073 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9074 * target.c (target_teardown_btrace): Add argument.
9075 * remote.c (remote_teardown_btrace): Add 'self' argument.
9076 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9077 argument.
9078 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9079 argument.
9080
9081 2014-02-19 Tom Tromey <tromey@redhat.com>
9082
9083 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9084 * target.c (target_disable_btrace): Add argument.
9085 * remote.c (remote_disable_btrace): Add 'self' argument.
9086 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9087 argument.
9088 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9089 argument.
9090
9091 2014-02-19 Tom Tromey <tromey@redhat.com>
9092
9093 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9094 * target.c (target_enable_btrace): Add argument.
9095 * remote.c (remote_enable_btrace): Add 'self' argument.
9096 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9097 argument.
9098 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9099 argument.
9100
9101 2014-02-19 Tom Tromey <tromey@redhat.com>
9102
9103 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9104 (target_can_use_agent): Add argument.
9105 * target.c (update_current_target): Update.
9106 * remote.c (remote_can_use_agent): Add 'self' argument.
9107 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9108
9109 2014-02-19 Tom Tromey <tromey@redhat.com>
9110
9111 * target.h (struct target_ops) <to_use_agent>: Add argument.
9112 (target_use_agent): Add argument.
9113 * target.c (update_current_target): Update.
9114 * remote.c (remote_use_agent): Add 'self' argument.
9115 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9116
9117 2014-02-19 Tom Tromey <tromey@redhat.com>
9118
9119 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9120 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9121 (target_traceframe_info): Add argument.
9122 * target.c (update_current_target): Update.
9123 * remote.c (remote_traceframe_info): Add 'self' argument.
9124 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9125
9126 2014-02-19 Tom Tromey <tromey@redhat.com>
9127
9128 * target.h (target_static_tracepoint_markers_by_strid): Add
9129 argument.
9130 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9131 'self' argument.
9132 * target.c (update_current_target): Update.
9133 * remote.c (struct target_ops)
9134 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9135 * linux-nat.c (struct target_ops)
9136 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9137
9138 2014-02-19 Tom Tromey <tromey@redhat.com>
9139
9140 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9141 Add argument.
9142 (target_static_tracepoint_marker_at): Add argument.
9143 * target.c (update_current_target): Update.
9144 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9145 argument.
9146
9147 2014-02-19 Tom Tromey <tromey@redhat.com>
9148
9149 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9150 (target_set_permissions): Add argument.
9151 * target.c (update_current_target): Update.
9152 * remote.c (remote_set_permissions): Add 'self' argument.
9153 (remote_start_remote): Update.
9154
9155 2014-02-19 Tom Tromey <tromey@redhat.com>
9156
9157 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9158 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9159 (target_get_tib_address): Add argument.
9160 * target.c (update_current_target): Update.
9161 * remote.c (remote_get_tib_address): Add 'self' argument.
9162
9163 2014-02-19 Tom Tromey <tromey@redhat.com>
9164
9165 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9166 (target_set_trace_notes): Add argument.
9167 * target.c (update_current_target): Update.
9168 * remote.c (remote_set_trace_notes): Add 'self' argument.
9169
9170 2014-02-19 Tom Tromey <tromey@redhat.com>
9171
9172 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9173 argument.
9174 (target_set_trace_buffer_size): Add argument.
9175 * target.c (update_current_target): Update.
9176 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9177
9178 2014-02-19 Tom Tromey <tromey@redhat.com>
9179
9180 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9181 argument.
9182 (target_set_circular_trace_buffer): Add argument.
9183 * target.c (update_current_target): Update.
9184 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9185 argument.
9186
9187 2014-02-19 Tom Tromey <tromey@redhat.com>
9188
9189 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9190 argument.
9191 (target_set_disconnected_tracing): Add argument.
9192 * target.c (update_current_target): Update.
9193 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9194
9195 2014-02-19 Tom Tromey <tromey@redhat.com>
9196
9197 * target.h (struct target_ops)
9198 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9199 (target_get_min_fast_tracepoint_insn_len): Add argument.
9200 * target.c (update_current_target): Update.
9201 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9202 argument.
9203
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9205
9206 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9207 argument.
9208 (target_get_raw_trace_data): Add argument.
9209 * target.c (update_current_target): Update.
9210 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9211
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9213
9214 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9215 Add argument.
9216 (target_upload_trace_state_variables): Add argument.
9217 * target.c (update_current_target): Update.
9218 * remote.c (remote_upload_trace_state_variables): Add 'self'
9219 argument.
9220 (remote_start_remote): Update.
9221
9222 2014-02-19 Tom Tromey <tromey@redhat.com>
9223
9224 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9225 argument.
9226 (target_upload_tracepoints): Add argument.
9227 * target.c (update_current_target): Update.
9228 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9229 (remote_start_remote): Update.
9230
9231 2014-02-19 Tom Tromey <tromey@redhat.com>
9232
9233 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9234 (target_save_trace_data): Add argument.
9235 * target.c (update_current_target): Update.
9236 * remote.c (remote_save_trace_data): Add 'self' argument.
9237
9238 2014-02-19 Tom Tromey <tromey@redhat.com>
9239
9240 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9241 argument.
9242 * target.h (struct target_ops)
9243 <to_get_trace_state_variable_value>: Add argument.
9244 (target_get_trace_state_variable_value): Add argument.
9245 * target.c (update_current_target): Update.
9246 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9247 argument.
9248 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9249
9250 2014-02-19 Tom Tromey <tromey@redhat.com>
9251
9252 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9253 * target.h (struct target_ops) <to_trace_find>: Add argument.
9254 (target_trace_find): Add argument.
9255 * target.c (update_current_target): Update.
9256 * remote.c (remote_trace_find): Add 'self' argument.
9257 * ctf.c (ctf_trace_find): Add 'self' argument.
9258
9259 2014-02-19 Tom Tromey <tromey@redhat.com>
9260
9261 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9262 (target_trace_stop): Add argument.
9263 * target.c (update_current_target): Update.
9264 * remote.c (remote_trace_stop): Add 'self' argument.
9265
9266 2014-02-19 Tom Tromey <tromey@redhat.com>
9267
9268 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9269 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9270 argument.
9271 (target_get_tracepoint_status): Add argument.
9272 * target.c (update_current_target): Update.
9273 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9274
9275 2014-02-19 Tom Tromey <tromey@redhat.com>
9276
9277 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9278 * target.h (struct target_ops) <to_get_trace_status>: Add
9279 argument.
9280 (target_get_trace_status): Add argument.
9281 * target.c (update_current_target): Update.
9282 * remote.c (remote_get_trace_status): Add 'self' argument.
9283 (remote_start_remote, remote_can_download_tracepoint): Update.
9284 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9285
9286 2014-02-19 Tom Tromey <tromey@redhat.com>
9287
9288 * target.h (struct target_ops) <to_trace_start>: Add argument.
9289 (target_trace_start): Add argument.
9290 * target.c (update_current_target): Update.
9291 * remote.c (remote_trace_start): Add 'self' argument.
9292
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9294
9295 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9296 Add argument.
9297 (target_trace_set_readonly_regions): Add argument.
9298 * target.c (update_current_target): Update.
9299 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9300 argument.
9301
9302 2014-02-19 Tom Tromey <tromey@redhat.com>
9303
9304 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9305 argument.
9306 (target_disable_tracepoint): Add argument.
9307 * target.c (update_current_target): Update.
9308 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9309
9310 2014-02-19 Tom Tromey <tromey@redhat.com>
9311
9312 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9313 argument.
9314 (target_enable_tracepoint): Add argument.
9315 * target.c (update_current_target): Update.
9316 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9317
9318 2014-02-19 Tom Tromey <tromey@redhat.com>
9319
9320 * target.h (struct target_ops) <to_download_trace_state_variable>:
9321 Add argument.
9322 (target_download_trace_state_variable): Add argument.
9323 * target.c (update_current_target): Update.
9324 * remote.c (remote_download_trace_state_variable): Add 'self'
9325 argument.
9326
9327 2014-02-19 Tom Tromey <tromey@redhat.com>
9328
9329 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9330 argument.
9331 (target_can_download_tracepoint): Add argument.
9332 * target.c (update_current_target): Update.
9333 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9334
9335 2014-02-19 Tom Tromey <tromey@redhat.com>
9336
9337 * target.h (struct target_ops) <to_download_tracepoint>: Add
9338 argument.
9339 (target_download_tracepoint): Add argument.
9340 * target.c (update_current_target): Update.
9341 * remote.c (remote_download_tracepoint): Add 'self' argument.
9342
9343 2014-02-19 Tom Tromey <tromey@redhat.com>
9344
9345 * target.h (struct target_ops) <to_trace_init>: Add argument.
9346 (target_trace_init): Add argument.
9347 * target.c (update_current_target): Update.
9348 * remote.c (remote_trace_init): Add 'self' argument.
9349
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9353 * target.c (target_fileio_readlink): Add argument.
9354 * remote.c (remote_hostio_readlink): Add 'self' argument.
9355 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9356
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9358
9359 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9360 * target.c (target_fileio_unlink): Add argument.
9361 * remote.c (remote_hostio_unlink): Add 'self' argument.
9362 (remote_file_delete): Update.
9363 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9364
9365 2014-02-19 Tom Tromey <tromey@redhat.com>
9366
9367 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9368 * target.c (target_fileio_close): Add argument.
9369 * remote.c (remote_hostio_close): Add 'self' argument.
9370 (remote_hostio_close_cleanup): Update.
9371 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9372 Update.
9373 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9374
9375 2014-02-19 Tom Tromey <tromey@redhat.com>
9376
9377 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9378 * target.c (target_fileio_pread): Add argument.
9379 * remote.c (remote_hostio_pread): Add 'self' argument.
9380 (remote_bfd_iovec_pread, remote_file_get): Update.
9381 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9382
9383 2014-02-19 Tom Tromey <tromey@redhat.com>
9384
9385 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9386 * target.c (target_fileio_pwrite): Add argument.
9387 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9388 (remote_file_put): Update.
9389 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9390
9391 2014-02-19 Tom Tromey <tromey@redhat.com>
9392
9393 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9394 * target.c (target_fileio_open): Add argument.
9395 * remote.c (remote_hostio_open): Add 'self' argument.
9396 (remote_bfd_iovec_open): Add 'self' argument.
9397 (remote_file_put): Add 'self' argument.
9398 (remote_file_get): Add 'self' argument.
9399 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9400
9401 2014-02-19 Tom Tromey <tromey@redhat.com>
9402
9403 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9404 Add argument.
9405 (target_can_run_breakpoint_commands): Add argument.
9406 * target.c (update_current_target): Update.
9407 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9408 argument.
9409 (remote_insert_breakpoint): Add 'self' argument.
9410 (remote_insert_hw_breakpoint): Add 'self' argument.
9411 (remote_can_run_breakpoint_commands): Add 'self' argument.
9412
9413 2014-02-19 Tom Tromey <tromey@redhat.com>
9414
9415 * target.h (struct target_ops)
9416 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9417 (target_supports_evaluation_of_breakpoint_conditions): Add
9418 argument.
9419 * target.c (update_current_target): Update.
9420 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9421 argument.
9422 (remote_insert_breakpoint): Add 'self' argument.
9423 (remote_insert_hw_breakpoint): Add 'self' argument.
9424 (remote_supports_cond_breakpoints): Add 'self' argument.
9425
9426 2014-02-19 Tom Tromey <tromey@redhat.com>
9427
9428 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9429 argument.
9430 (target_supports_string_tracing): Add argument.
9431 * target.c (update_current_target): Update.
9432 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9433
9434 2014-02-19 Tom Tromey <tromey@redhat.com>
9435
9436 * target.h (struct target_ops)
9437 <to_supports_disable_randomization>: Add argument.
9438 * target.c (find_default_supports_disable_randomization): Add
9439 argument.
9440 (target_supports_disable_randomization): Add argument.
9441 (find_default_supports_disable_randomization): Add 'self'
9442 argument.
9443 * remote.c (extended_remote_supports_disable_randomization): Add
9444 'self' argument.
9445 (remote_supports_disable_randomization): Add 'self' argument.
9446 (extended_remote_create_inferior): Update.
9447 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9448 'self' argument.
9449
9450 2014-02-19 Tom Tromey <tromey@redhat.com>
9451
9452 * target.h (struct target_ops)
9453 <to_supports_enable_disable_tracepoint>: Add argument.
9454 (target_supports_enable_disable_tracepoint): Add argument.
9455 * target.c (update_current_target): Update.
9456 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9457 argument.
9458
9459 2014-02-19 Tom Tromey <tromey@redhat.com>
9460
9461 * target.h (struct target_ops) <to_supports_multi_process>: Add
9462 argument.
9463 (target_supports_multi_process): Add argument.
9464 * target.c (update_current_target): Update.
9465 * remote.c (remote_supports_multi_process): Add 'self' argument.
9466 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9467 argument.
9468 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9469 argument.
9470
9471 2014-02-19 Tom Tromey <tromey@redhat.com>
9472
9473 * target.h (struct target_ops) <to_execution_direction>: Add
9474 argument.
9475 (target_execution_direction): Add argument.
9476 * target.c (default_execution_direction): Add 'self' argument.
9477 * record-full.c (record_full_execution_direction): Add 'self'
9478 argument.
9479
9480 2014-02-19 Tom Tromey <tromey@redhat.com>
9481
9482 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9483 argument.
9484 (target_can_execute_reverse): Add argument.
9485 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9486 * record-full.c (record_full_can_execute_reverse): Add 'self'
9487 argument.
9488 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9489 argument.
9490
9491 2014-02-19 Tom Tromey <tromey@redhat.com>
9492
9493 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9494 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9495 argument.
9496 (target_get_ada_task_ptid): Add argument.
9497 * target.c (update_current_target): Update.
9498 (default_get_ada_task_ptid): Add 'self' argument.
9499 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9500 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9501 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9502 argument.
9503 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9504 argument.
9505 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9506 argument.
9507 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9508 argument.
9509 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9510 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9511 argument.
9512
9513 2014-02-19 Tom Tromey <tromey@redhat.com>
9514
9515 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9516 (target_goto_bookmark): Add argument.
9517 * target.c (dummy_goto_bookmark): Add 'self' argument.
9518 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9519
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9521
9522 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9523 (target_get_bookmark): Add argument.
9524 * target.c (dummy_get_bookmark): Add 'self' argument.
9525 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9526
9527 2014-02-19 Tom Tromey <tromey@redhat.com>
9528
9529 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9530 argument.
9531 (target_make_corefile_notes): Add argument.
9532 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9533 * procfs.c (procfs_make_note_section): Add 'self' argument.
9534 (procfs_make_note_section): Add 'self' argument.
9535 (procfs_make_note_section): Add 'self' argument.
9536 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9537 argument.
9538 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9539 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9540 * exec.c (exec_make_note_section): Add 'self' argument.
9541 (exec_make_note_section): Add 'self' argument.
9542
9543 2014-02-19 Tom Tromey <tromey@redhat.com>
9544
9545 * target.h (struct target_ops) <to_find_memory_regions>: Add
9546 argument.
9547 (target_find_memory_regions): Add argument.
9548 * target.c (dummy_find_memory_regions): Add 'self' argument.
9549 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9550 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9551 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9552 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9553 * exec. (exec_do_find_memory_regions): New global.
9554 (exec_set_find_memory_regions): Rewrite.
9555 (exec_find_memory_regions): New function.
9556 (init_exec_ops): Use exec_find_memory_regions.
9557
9558 2014-02-19 Tom Tromey <tromey@redhat.com>
9559
9560 * target.h (struct target_ops) <to_supports_non_stop>: Add
9561 argument.
9562 * target.c (find_default_supports_non_stop): Add argument.
9563 (target_supports_non_stop): Add argument.
9564 (find_default_supports_non_stop): Add 'self' argument.
9565 * remote.c (remote_supports_non_stop): Add 'self' argument.
9566 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9567
9568 2014-02-19 Tom Tromey <tromey@redhat.com>
9569
9570 * target.h (struct target_ops) <to_log_command>: Add argument.
9571 (target_log_command): Add argument.
9572 * serial.h (serial_log_command): Add 'self' argument.
9573 * serial.c (serial_log_command): Add 'self' argument.
9574
9575 2014-02-19 Tom Tromey <tromey@redhat.com>
9576
9577 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9578 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9579 argument.
9580 (target_pid_to_exec_file): Add argument.
9581 * target.c (debug_to_pid_to_exec_file): Add argument.
9582 (update_current_target): Update.
9583 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9584 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9585 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9586 (linux_handle_extended_wait): Update.
9587 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9588 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9589 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9590 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9591
9592 2014-02-19 Tom Tromey <tromey@redhat.com>
9593
9594 * target.h (struct target_ops) <to_rcmd>: Add argument.
9595 (target_rcmd): Add argument.
9596 * target.c (debug_to_rcmd): Add argument.
9597 (update_current_target, do_monitor_command): Update.
9598 * remote.c (remote_rcmd): Add 'self' argument.
9599 * monitor.c (monitor_rcmd): Add 'self' argument.
9600
9601 2014-02-19 Tom Tromey <tromey@redhat.com>
9602
9603 * windows-nat.c (windows_stop): Add 'self' argument.
9604 * target.h (struct target_ops) <to_stop>: Add argument.
9605 * target.c (target_stop): Add argument.
9606 (debug_to_stop): Add argument.
9607 (update_current_target): Update.
9608 * remote.c (remote_stop): Add 'self' argument.
9609 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9610 (gdbsim_cntrl_c): Update.
9611 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9612 * procfs.c (procfs_stop): Add 'self' argument.
9613 * nto-procfs.c (procfs_stop): Add 'self' argument.
9614 * monitor.c (monitor_stop): Add 'self' argument.
9615 (monitor_open): Update.
9616 * linux-nat.c (linux_nat_stop): Add argument.
9617 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9618 * gnu-nat.c (gnu_stop): Add 'self' argument.
9619 * darwin-nat.c (darwin_stop): Add 'self' argument.
9620
9621 2014-02-19 Tom Tromey <tromey@redhat.com>
9622
9623 * target.h (struct target_ops) <to_thread_name>: Add argument.
9624 * target.c (target_thread_name): Add argument.
9625 (update_current_target): Update.
9626 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9627
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9629
9630 * target.h (struct target_ops) <to_extra_thread_info>: Add
9631 argument.
9632 (target_extra_thread_info): Add argument.
9633 * target.c (update_current_target): Update.
9634 * remote.c (remote_threads_extra_info): Add 'self' argument.
9635 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9636 argument.
9637 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9638 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9639 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9640 argument.
9641 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9642 argument.
9643 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9644 argument.
9645 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9646 argument.
9647
9648 2014-02-19 Tom Tromey <tromey@redhat.com>
9649
9650 * target.h (struct target_ops) <to_program_signals>: Add argument.
9651 * target.c (target_program_signals): Add argument.
9652 * remote.c (remote_program_signals): Add 'self' argument.
9653
9654 2014-02-19 Tom Tromey <tromey@redhat.com>
9655
9656 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9657 * target.c (target_pass_signals): Add argument.
9658 * remote.c (remote_pass_signals): Add 'self' argument.
9659 (remote_start_remote): Update.
9660 * procfs.c (procfs_pass_signals): Add 'self' argument.
9661 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9662 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9663 (linux_nat_create_inferior, linux_nat_attach): Update.
9664
9665 2014-02-19 Tom Tromey <tromey@redhat.com>
9666
9667 * windows-nat.c (windows_can_run): Add 'self' argument.
9668 * target.h (struct target_ops) <to_can_run>: Add argument.
9669 (target_can_run): Add argument.
9670 * target.c (debug_to_can_run): Add argument.
9671 (update_current_target): Update.
9672 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9673 * inf-child.c (inf_child_can_run): Add 'self' argument.
9674 * go32-nat.c (go32_can_run): Add 'self' argument.
9675
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9677
9678 * target.h (struct target_ops) <to_has_exited>: Add argument.
9679 (target_has_exited): Add argument.
9680 * target.c (debug_to_has_exited): Add argument.
9681 (update_current_target): Update.
9682
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9684
9685 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9686 argument.
9687 (target_set_syscall_catchpoint): Add argument.
9688 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9689 argument.
9690 * target.c (update_current_target): Update.
9691
9692 2014-02-19 Tom Tromey <tromey@redhat.com>
9693
9694 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9695 argument.
9696 (target_remove_exec_catchpoint): Add argument.
9697 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9698 (update_current_target): Update.
9699 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9700 argument.
9701
9702 2014-02-19 Tom Tromey <tromey@redhat.com>
9703
9704 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9705 argument.
9706 (target_insert_exec_catchpoint): Add argument.
9707 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9708 (update_current_target): Update.
9709 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9710 argument.
9711
9712 2014-02-19 Tom Tromey <tromey@redhat.com>
9713
9714 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9715 argument.
9716 (target_remove_vfork_catchpoint): Add argument.
9717 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9718 (update_current_target): Update.
9719 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9720 argument.
9721
9722 2014-02-19 Tom Tromey <tromey@redhat.com>
9723
9724 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9725 argument.
9726 (target_insert_vfork_catchpoint): Add argument.
9727 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9728 (update_current_target): Update.
9729 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9730 argument.
9731
9732 2014-02-19 Tom Tromey <tromey@redhat.com>
9733
9734 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9735 argument.
9736 (target_remove_fork_catchpoint): Add argument.
9737 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9738 (update_current_target): Update.
9739 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9740 argument.
9741
9742 2014-02-19 Tom Tromey <tromey@redhat.com>
9743
9744 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9745 argument.
9746 (target_insert_fork_catchpoint): Add argument.
9747 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9748 (update_current_target): Update.
9749 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9750 argument.
9751
9752 2014-02-19 Tom Tromey <tromey@redhat.com>
9753
9754 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9755 argument.
9756 (target_post_startup_inferior): Add argument.
9757 * target.c (debug_to_post_startup_inferior): Add argument.
9758 (update_current_target): Update.
9759 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9760 argument.
9761 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9762 argument.
9763 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9764 argument.
9765 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9766 argument.
9767 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9768 'self' argument.
9769 (super_post_startup_inferior): Likewise.
9770 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9771 'self' argument.
9772 (super_post_startup_inferior): Likewise.
9773 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9774 Add 'self' argument.
9775 (super_post_startup_inferior): Likewise.
9776
9777 2014-02-19 Tom Tromey <tromey@redhat.com>
9778
9779 * target.h (struct target_ops) <to_load>: Add argument.
9780 * target.c (target_load): Add argument.
9781 (debug_to_load): Add argument.
9782 (update_current_target): Update.
9783 * remote.c (remote_load): Add 'self' argument.
9784 * remote-sim.c (gdbsim_load): Add 'self' argument.
9785 * remote-mips.c (mips_load): Add 'self' argument.
9786 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9787 * monitor.c (monitor_load): Add 'self' argument.
9788 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9789
9790 2014-02-19 Tom Tromey <tromey@redhat.com>
9791
9792 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9793 (target_terminal_info): Add argument.
9794 * target.c (debug_to_terminal_info): Add argument.
9795 (default_terminal_info): Likewise.
9796 * inflow.c (child_terminal_info): Add 'self' argument.
9797 * inferior.h (child_terminal_info): Add 'self' argument.
9798 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9799
9800 2014-02-19 Tom Tromey <tromey@redhat.com>
9801
9802 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9803 argument.
9804 (target_terminal_save_ours): Add argument.
9805 * target.c (debug_to_terminal_save_ours): Add argument.
9806 (update_current_target): Update.
9807 * inflow.c (terminal_save_ours): Add 'self' argument.
9808 * inferior.h (terminal_save_ours): Add 'self' argument.
9809
9810 2014-02-19 Tom Tromey <tromey@redhat.com>
9811
9812 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9813 (target_terminal_ours): Add argument.
9814 * target.c (debug_to_terminal_ours): Add argument.
9815 (update_current_target): Update.
9816 * remote.c (remote_terminal_ours): Add 'self' argument.
9817 (remote_close): Update.
9818 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9819 * inflow.c (terminal_ours): Add 'self' argument.
9820 * inferior.h (terminal_ours): Add 'self' argument.
9821 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9822
9823 2014-02-19 Pedro Alves <palves@redhat.com>
9824 Tom Tromey <tromey@redhat.com>
9825
9826 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9827 argument.
9828 (target_terminal_ours_for_output): Add argument.
9829 * target.c (debug_to_terminal_ours_for_output): Add argument.
9830 (update_current_target): Update.
9831 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9832 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9833 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9834
9835 2014-02-19 Tom Tromey <tromey@redhat.com>
9836
9837 * target.h (struct target_ops) <to_terminal_inferior>: Add
9838 argument.
9839 * target.c (target_terminal_inferior): Add argument.
9840 (update_current_target): Update.
9841 * remote.c (remote_terminal_inferior): Add 'self' argument.
9842 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9843 * inflow.c (terminal_inferior): Add 'self' argument.
9844 * inferior.h (terminal_inferior): Add 'self' argument.
9845 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9846 (go32_terminal_inferior): Add 'self' argument.
9847
9848 2014-02-19 Tom Tromey <tromey@redhat.com>
9849
9850 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9851 (target_terminal_init): Add argument.
9852 * target.c (debug_to_terminal_init): Add argument.
9853 (update_current_target): Update.
9854 * inflow.c (terminal_init_inferior): Add 'self' argument.
9855 * inferior.h (terminal_init_inferior): Add 'self' argument.
9856 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9857 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9858
9859 2014-02-19 Tom Tromey <tromey@redhat.com>
9860
9861 * target.h (struct target_ops)
9862 <to_can_accel_watchpoint_condition>: Add argument.
9863 (target_can_accel_watchpoint_condition): Add argument.
9864 * target.c (debug_to_can_accel_watchpoint_condition): Add
9865 argument.
9866 (update_current_target): Update.
9867 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9868 'self' argument.
9869
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9873 Add argument.
9874 (target_region_ok_for_hw_watchpoint): Add argument.
9875 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9876 (default_region_ok_for_hw_watchpoint): Add argument.
9877 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9878 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9879 argument.
9880 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9881 argument.
9882 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9883 argument.
9884 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9885 'self' argument.
9886 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9887 'self' argument.
9888 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9889 'self' argument.
9890 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9891 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9892 'self' argument.
9893 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9894 Add 'self' argument.
9895
9896 2014-02-19 Tom Tromey <tromey@redhat.com>
9897
9898 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9899 argument.
9900 (target_insert_watchpoint): Add argument.
9901 * target.c (debug_to_insert_watchpoint): Add argument.
9902 (update_current_target): Update.
9903 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9904 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9905 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9906 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9907 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9908 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9909 argument.
9910 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9911 (procfs_insert_hw_watchpoint): Add 'self' argument.
9912 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9913 argument.
9914 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9915 argument.
9916 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9917 argument.
9918 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9919 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9920 argument.
9921 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9922 'self' argument.
9923
9924 2014-02-19 Tom Tromey <tromey@redhat.com>
9925
9926 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9927 argument.
9928 (target_remove_watchpoint): Add argument.
9929 * target.c (debug_to_remove_watchpoint): Add argument.
9930 (update_current_target): Update.
9931 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9932 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9933 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9934 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9935 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9936 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9937 argument.
9938 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9939 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9940 argument.
9941 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9942 argument.
9943 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9944 argument.
9945 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9946 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9947 argument.
9948 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9949 'self' argument.
9950
9951 2014-02-19 Tom Tromey <tromey@redhat.com>
9952
9953 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9954 argument.
9955 (target_remove_hw_breakpoint): Add argument.
9956 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9957 (update_current_target): Update.
9958 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9959 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9960 argument.
9961 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9962 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9963 argument.
9964 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9965 'self' argument.
9966
9967 2014-02-19 Tom Tromey <tromey@redhat.com>
9968
9969 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9970 argument.
9971 (target_insert_hw_breakpoint): Add argument.
9972 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9973 (update_current_target): Update.
9974 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9975 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9976 argument.
9977 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9978 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9979 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9980 argument.
9981 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9982 'self' argument.
9983
9984 2014-02-19 Tom Tromey <tromey@redhat.com>
9985
9986 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9987 argument.
9988 (target_can_use_hardware_watchpoint): Add argument.
9989 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9990 (update_current_target): Update.
9991 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9992 argument.
9993 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9994 argument.
9995 * remote.c (remote_check_watch_resources): Add 'self' argument.
9996 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9997 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9998 argument.
9999 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10000 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10001 argument.
10002 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10003 argument.
10004 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10005 argument.
10006 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10007 argument.
10008 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10009 argument.
10010 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10011 argument.
10012 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10013 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10014 argument.
10015 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10016 'self' argument.
10017
10018 2014-02-19 Tom Tromey <tromey@redhat.com>
10019
10020 * target.h (struct target_ops) <to_post_attach>: Add argument.
10021 (target_post_attach): Add argument.
10022 * target.c (debug_to_post_attach): Add argument.
10023 (update_current_target): Update.
10024 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10025 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10026 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10027 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10028 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10029
10030 2014-02-19 Tom Tromey <tromey@redhat.com>
10031
10032 * windows-nat.c (windows_close): Add 'self' argument.
10033 * tracepoint.c (tfile_close): Add 'self' argument.
10034 * target.h (struct target_ops) <to_close>: Add argument.
10035 * target.c (target_close): Add argument.
10036 (update_current_target): Update.
10037 * remote.c (remote_close): Add 'self' argument.
10038 * remote-sim.c (gdbsim_close): Add 'self' argument.
10039 * remote-mips.c (mips_close): Add 'self' argument.
10040 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10041 * record-full.c (record_full_close): Add 'self' argument.
10042 * record-btrace.c (record_btrace_close): Add 'self' argument.
10043 * monitor.h (monitor_close): Add 'self' argument.
10044 * monitor.c (monitor_close): Add 'self' argument.
10045 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10046 * linux-nat.c (linux_nat_close): Add argument.
10047 * go32-nat.c (go32_close): Add 'self' argument.
10048 * exec.c (exec_close_1): Add 'self' argument.
10049 * ctf.c (ctf_close): Add 'self' argument.
10050 * corelow.c (core_close): Add 'self' argument.
10051 (core_close_cleanup): Update.
10052 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10053 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10054
10055 2014-02-19 Tom Tromey <tromey@redhat.com>
10056
10057 * remote.c (remote_load): New function.
10058 (init_remote_ops): Use it.
10059
10060 2014-02-19 Tom Tromey <tromey@redhat.com>
10061
10062 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10063 argument.
10064 * common/linux-btrace.h (linux_supports_btrace): Update.
10065 * remote.c (remote_supports_btrace): Add "self" argument.
10066 * target-delegates.c: Rebuild.
10067 * target.c (target_supports_btrace): Remove.
10068 * target.h (struct target_ops) <to_supports_btrace>: Add
10069 target_ops argument.
10070 (target_supports_btrace): New define.
10071
10072 2014-02-19 Tom Tromey <tromey@redhat.com>
10073
10074 * record-full.c (record_full_beneath_to_resume_ops)
10075 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10076 (record_full_beneath_to_wait)
10077 (record_full_beneath_to_store_registers_ops)
10078 (record_full_beneath_to_store_registers)
10079 (record_full_beneath_to_xfer_partial_ops)
10080 (record_full_beneath_to_xfer_partial)
10081 (record_full_beneath_to_insert_breakpoint_ops)
10082 (record_full_beneath_to_insert_breakpoint)
10083 (record_full_beneath_to_remove_breakpoint_ops)
10084 (record_full_beneath_to_remove_breakpoint)
10085 (record_full_beneath_to_stopped_by_watchpoint)
10086 (record_full_beneath_to_stopped_data_address)
10087 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10088 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10089 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10090 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10091 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10092 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10093 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10094 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10095 (record_full_resume, record_full_wait_1)
10096 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10097 (record_full_store_registers, record_full_xfer_partial)
10098 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10099 (record_full_async, record_full_core_xfer_partial): Use target
10100 delegation.
10101 * target-delegates.c: Rebuild.
10102 * target.c (current_xfer_partial): Remove.
10103 (update_current_target): Do not INHERIT or de_fault
10104 to_insert_breakpoint, to_remove_breakpoint,
10105 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10106 to_is_async_p, to_async. Do not set to_xfer_partial field.
10107 (default_xfer_partial): Simplify.
10108 (current_xfer_partial): Remove.
10109 (target_wait, target_resume): Simplify.
10110 (find_default_can_async_p, find_default_is_async_p): Update.
10111 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10112 to_xfer_partial, to_stopped_by_watchpoint,
10113 to_stopped_data_address.
10114 (target_store_registers): Simplify.
10115 (forward_target_remove_breakpoint)
10116 (forward_target_insert_breakpoint): Remove.
10117 (target_remove_breakpoint, target_insert_breakpoint)
10118 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10119 * target.h (struct target_ops) <to_resume, to_wait,
10120 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10121 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10122 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10123 markup.
10124 (forward_target_remove_breakpoint)
10125 (forward_target_insert_breakpoint): Remove.
10126 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10127 directly.
10128 (record_btrace_insert_breakpoint): Delegate directly.
10129
10130 2014-02-19 Tom Tromey <tromey@redhat.com>
10131
10132 PR build/7701:
10133 * target-delegates.c: New file.
10134 * target.c: Include target-delegates.c.
10135 (init_dummy_target): Call install_dummy_methods.
10136 (complete_target_initialization): Call install_delegators.
10137 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10138 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10139 * make-target-delegates: New file.
10140
10141 2014-02-19 Tom Tromey <tromey@redhat.com>
10142
10143 * record.c (find_record_target): Use find_target_at.
10144 * target.c (find_target_at): New function.
10145 * target.h (find_target_at): Declare.
10146
10147 2014-02-19 Tom Tromey <tromey@redhat.com>
10148
10149 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10150 Add 'ops' argument.
10151 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10152 'ops' argument.
10153 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10154 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10155 'ops' argument.
10156 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10157 argument.
10158 * linux-nat.c (save_sigtrap): Update.
10159 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10160 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10161 (linux_nat_close): Update.
10162 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10163 argument.
10164 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10165 argument.
10166 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10167 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10168 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10169 (tmp_to_async): Add 'ops' argument.
10170 (record_full_stopped_by_watchpoint, record_full_async)
10171 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10172 argument.
10173 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10174 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10175 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10176 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10177 (remote_is_async_p, remote_async): Add 'ops' argument.
10178 (remote_stopped_data_address): Update.
10179 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10180 * target.c (update_current_target)
10181 (find_default_can_async_p, find_default_is_async_p): Update.
10182 (init_dummy_target): Update.
10183 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10184 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10185 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10186 (target_can_async_p, target_is_async_p, target_async)
10187 (target_stopped_by_watchpoint): Update.
10188
10189 2014-02-19 Yao Qi <yao@codesourcery.com>
10190
10191 PR gdb/16220
10192 * gdbarch.sh: Remove startup_gdbarch.
10193 * gdbarch.c: Regenerated.
10194 * gdbarch.h: Likewise.
10195
10196 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10197
10198 * rl78-tdep.c (rl78_g10_register_name): New function.
10199 (rl78_return_value): Add g10 support.
10200 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10201 g10.
10202
10203 2014-02-17 Doug Evans <xdje42@gmail.com>
10204
10205 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10206 (SUBDIR_GUILE_SRCS): Ditto.
10207 (scm-gsmob.o): Ditto.
10208
10209 2014-02-17 Yao Qi <yao@codesourcery.com>
10210
10211 * gnu-nat.c (ILL_RPC): Declare defined function.
10212
10213 2014-02-17 Yao Qi <yao@codesourcery.com>
10214
10215 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10216 mach_msg_type_number_t.
10217 (gnu_write_inferior): Likewise.
10218
10219 2014-02-17 Yao Qi <yao@codesourcery.com>
10220
10221 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10222 in format string.
10223 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10224 (inf_validate_procs, inf_signal): Likewise.
10225 (S_exception_raise_request): Likewise.
10226 (do_mach_notify_dead_name): Likewise.
10227 (steal_exc_port): Likewise.
10228 (gnu_read_inferior): Change 'copy_count''s type to
10229 mach_msg_type_number_t.
10230 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10231 format string.
10232
10233 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10234
10235 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10236 flag. Adjust all users; in particular...
10237 (gnu_wait): ..., don't decrement its value in here...
10238 (gnu_create_inferior): ..., and instead set the flag in here,
10239 around the startup_inferior call, and call that one with
10240 START_INFERIOR_TRAPS_EXPECTED.
10241
10242 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10243 (ILL_RPC): ... new macro.
10244 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10245 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10246 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10247 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10248 functions with ILL_RPC macro.
10249 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10250 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10251 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10252 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10253 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10254 (S_proc_getlogin_reply, S_proc_getsid_reply)
10255 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10256 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10257 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10258 (S_proc_getnports_reply, S_proc_is_important_reply)
10259 (S_proc_get_code_reply): New stub functions, generated with
10260 ILL_RPC macro.
10261
10262 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10263 collected the type check structures.
10264
10265 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10266
10267 2014-02-14 Doug Evans <dje@google.com>
10268
10269 * target.c (target_write_partial): Fix result type.
10270
10271 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10272
10273 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10274 the proper offsets to access fpregset_t.
10275
10276 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10277
10278 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10279 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10280 * h8300-tdep.c (setmachinelist): Remove global.
10281 * hppa-tdep.c (hppa_sigtramp): Remove global.
10282 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10283 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10284 * ravenscar-thread.c (update_target_observer): Remove global.
10285 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10286
10287 2014-02-12 Tom Tromey <tromey@redhat.com>
10288
10289 * common/rsp-low.c: Update comments.
10290 * common/rsp-low.h: Update comments.
10291
10292 2014-02-12 Tom Tromey <tromey@redhat.com>
10293
10294 * common/rsp-low.c (convert_ascii_to_int): Remove.
10295 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10296
10297 2014-02-12 Tom Tromey <tromey@redhat.com>
10298
10299 * common/rsp-low.h (unhexify): Don't declare.
10300 * common/rsp-low.c (unhexify): Remove.
10301
10302 2014-02-12 Tom Tromey <tromey@redhat.com>
10303
10304 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10305 * common/rsp-low.c (convert_int_to_ascii): Remove.
10306
10307 2014-02-12 Tom Tromey <tromey@redhat.com>
10308
10309 * common/rsp-low.h (hexify): Don't declare.
10310 * common/rsp-low.c (hexify): Remove.
10311
10312 2014-02-12 Tom Tromey <tromey@redhat.com>
10313
10314 * common/rsp-low.c (hexify): Never take strlen of argument.
10315
10316 2014-02-12 Tom Tromey <tromey@redhat.com>
10317
10318 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10319 * remote.c (extended_remote_run, remote_rcmd)
10320 (remote_download_trace_state_variable, remote_save_trace_data)
10321 (remote_set_trace_notes): Update.
10322 * tracepoint.c (encode_source_string, tfile_write_status)
10323 (tfile_write_uploaded_tsv): Update.
10324
10325 2014-02-12 Tom Tromey <tromey@redhat.com>
10326
10327 * tracepoint.c: Include rsp-low.h.
10328 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10329 * remote.c: Include rsp-low.h.
10330 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10331 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10332 (remote_unescape_input): Move to common/rsp-low.c.
10333 * common/rsp-low.h: New file.
10334 * common/rsp-low.c: New file.
10335 * Makefile.in (SFILES): Add common/rsp-low.c.
10336 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10337 (COMMON_OBS): Add rsp-low.o.
10338 (rsp-low.o): New target.
10339
10340 2014-02-12 Tom Tromey <tromey@redhat.com>
10341
10342 * utils.h: Include print-utils.h.
10343 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10344 (int_string, core_addr_to_string, core_addr_to_string_nz)
10345 (hex_string, hex_string_custom): Don't declare.
10346 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10347 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10348 (hex_string_custom, int_string, core_addr_to_string)
10349 (core_addr_to_string_nz, host_address_to_string): Move to
10350 common/print-utils.c.
10351 * common/print-utils.h: New file.
10352 * common/print-utils.c: New file
10353 * Makefile.in (SFILES): Add common/print-utils.c.
10354 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10355 (COMMON_OBS): Add print-utils.o.
10356 (print-utils.o): New target.
10357
10358 2014-02-12 Tom Tromey <tromey@redhat.com>
10359
10360 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10361
10362 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10363
10364 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10365
10366 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10367
10368 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10369 if a PT_IO ptrace request returns sucessfully but indicates that 0
10370 bytes were transferred.
10371
10372 2014-02-12 Pedro Alves <palves@redhat.com>
10373 Kevin Buettner <kevinb@redhat.com>
10374
10375 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10376 TYPE_INSTANCE_FLAG_CODE_SPACE.
10377
10378 2014-02-12 Pedro Alves <palves@redhat.com>
10379
10380 * h8300-tdep.c (pseudo_from_raw_register)
10381 (raw_from_pseudo_register): New functions.
10382 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10383 them.
10384
10385 2014-02-12 Pedro Alves <palves@redhat.com>
10386
10387 * h8300-tdep.c (h8300_register_sim_regno): New function.
10388 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10389 gdbarch_register_sim_regno hook.
10390
10391 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10392
10393 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10394
10395 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10396
10397 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10398
10399 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10400
10401 * obsd-tdep.h (obsd_init_abi): New prototype.
10402 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10403 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10404 (obsd_init_abi): New functions.
10405 * i386obsd-tdep.c: Include "obsd-tdep.h".
10406 (i386obsd_init_abi): Call obsd_init_abi.
10407 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10408 (amd64obsd_init_abi): Call obsd_init_abi.
10409 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10410 obsd-tdep.c to gdb_target_obs.
10411
10412 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10413
10414 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10415 double float arguments to 16-byte in the argument slots.
10416
10417 2014-02-11 Doug Evans <xdje42@gmail.com>
10418
10419 * configure.ac: Don't crash if pkg-config is not found and guile
10420 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10421 in guile checks.
10422 * configure: Regenerate.
10423
10424 2014-02-11 Yao Qi <yao@codesourcery.com>
10425
10426 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10427 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10428 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10429 * gnu-nat.c (gnu_xfer_memory): Likewise.
10430 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10431 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10432 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10433 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10434
10435 2014-02-11 Yao Qi <yao@codesourcery.com>
10436
10437 * target.h (enum target_xfer_error): Rename to ...
10438 (enum target_xfer_status): ... it. New. All users updated.
10439 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10440 New.
10441 (TARGET_XFER_STATUS_ERROR_P): New macro.
10442 (target_xfer_error_to_string): Remove declaration.
10443 (target_xfer_status_to_string): Declare.
10444 (target_xfer_partial_ftype): Adjust it.
10445 (struct target_ops) <to_xfer_partial>: Return
10446 target_xfer_status. Add argument xfered_len. Update
10447 comments.
10448 * target.c (target_xfer_error_to_string): Rename to ...
10449 (target_xfer_status_to_string): ... it. New. All callers
10450 updated.
10451 (target_read_live_memory): Likewise. Call target_xfer_partial
10452 instead of target_read.
10453 (memory_xfer_live_readonly_partial): Return
10454 target_xfer_status. Add argument xfered_len.
10455 (raw_memory_xfer_partial): Likewise.
10456 (memory_xfer_partial_1): Likewise.
10457 (memory_xfer_partial): Likewise.
10458 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10459 properly. Update debug message.
10460 (default_xfer_partial, current_xfer_partial): Likewise.
10461 (target_write_partial): Likewise.
10462 (target_read_partial): Likewise. All callers updated.
10463 (read_whatever_is_readable): Likewise.
10464 (target_write_with_progress): Likewise.
10465 (target_read_alloc_1): Likewise.
10466
10467 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10468 * auxv.c (procfs_xfer_auxv): Likewise.
10469 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10470 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10471 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10472 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10473 * corefile.c (read_memory): Adjust.
10474 * corelow.c (core_xfer_partial): Likewise.
10475 * ctf.c (ctf_xfer_partial): Likewise.
10476 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10477 updated.
10478 (darwin_xfer_partial): Likewise.
10479 * exec.c (section_table_xfer_memory_partial): Likewise. All
10480 callers updated.
10481 (exec_xfer_partial): Likewise.
10482 * exec.h (section_table_xfer_memory_partial): Update
10483 declaration.
10484 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10485 negative.
10486 (gnu_xfer_partial): Likewise.
10487 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10488 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10489 (ia64_hpux_xfer_solib_got): Likewise.
10490 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10491 type of 'partial_len' to ULONGEST.
10492 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10493 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10494 (linux_nat_xfer_partial): Likewise.
10495 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10496 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10497 * monitor.c (monitor_xfer_memory): Likewise.
10498 (monitor_xfer_partial): Likewise.
10499 * procfs.c (procfs_xfer_partial): Likewise.
10500 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10501 * record-full.c (record_full_xfer_partial): Likewise.
10502 (record_full_core_xfer_partial): Likewise.
10503 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10504 (gdbsim_xfer_partial): Likewise.
10505 * remote.c (remote_write_bytes_aux): Likewise. All callers
10506 updated.
10507 (remote_write_bytes, remote_read_bytes): Likewise. All
10508 callers updated.
10509 (remote_flash_erase): Likewise. All callers updated.
10510 (remote_write_qxfer): Likewise. All callers updated.
10511 (remote_read_qxfer): Likewise. All callers updated.
10512 (remote_xfer_partial): Likewise.
10513 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10514 (rs6000_xfer_shared_libraries): Likewise.
10515 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10516 (sol_thread_xfer_partial): Likewise.
10517 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10518 (sparc_xfer_partial): Likewise.
10519 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10520 updated.
10521 (spu_xfer_partial): Likewise.
10522 * spu-multiarch.c (spu_xfer_partial): Likewise.
10523 * tracepoint.c (tfile_xfer_partial): Likewise.
10524 * windows-nat.c (windows_xfer_memory): Likewise.
10525 (windows_xfer_shared_libraries): Likewise.
10526 (windows_xfer_partial): Likewise.
10527 * valprint.c: Replace 'target_xfer_error' with
10528 'target_xfer_status' in comments.
10529
10530 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10531
10532 Checked in by Joel Brobecker <brobecker@adacore.com>.
10533 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10534
10535 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10536
10537 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10538 function parameters.
10539
10540 2014-02-10 Will Newton <will.newton@linaro.org>
10541
10542 * elfread.c (elf_rel_plt_read): Look for a .got section if
10543 looking up .got.plt fails.
10544 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10545 on address passed to elf_gnu_ifunc_record_cache.
10546 (elf_gnu_ifunc_resolve_addr): Likewise.
10547 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10548
10549 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10550
10551 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10552 (X_RETTURN): New macro.
10553 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10554
10555 * sparc64-tdep.c (sparc64_init_abi): Hook
10556 sparc_in_function_epilogue_p.
10557
10558 2014-02-10 Gary Benson <gbenson@redhat.com>
10559
10560 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10561 Rename name_matcher to symbol_matcher.
10562
10563 2014-02-10 Gary Benson <gbenson@redhat.com>
10564
10565 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10566 Use expand_symtabs_file_matcher_ftype and
10567 expand_symtabs_symbol_matcher_ftype.
10568
10569 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10570
10571 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10572 (struct ada_symbol_cache): New.
10573 (ada_free_symbol_cache): Forward declare.
10574 (struct ada_pspace_data): New.
10575 (ada_pspace_data_handle): New static global.
10576 (get_ada_pspace_data, ada_pspace_data_cleanup)
10577 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10578 (cache_space, cache): Delete, now folded inside struct
10579 ada_pspace_data.
10580 (ada_get_symbol_cache): New function.
10581 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10582 implementation.
10583 (_initialize_ada_language): Remove initialization of cache_space.
10584 Move call to observer_attach_inferior_exit up, grouping it
10585 with the other observer registrations inside this function.
10586 Rename command to be more general. Add call to
10587 register_program_space_data_with_cleanup.
10588
10589 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10590
10591 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10592 ada_new_objfile_observer.
10593 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10594 (_initialize_tasks): Update uses of ada_new_objfile_observer
10595 and ada_tasks_normal_stop_observer.
10596
10597 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10598
10599 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10600 returned by the 'Length attribute to integer.
10601
10602 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10603
10604 * ada-lang.c (_initialize_ada_language): Initialize
10605 cache_space obstack.
10606
10607 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10608
10609 * ada-lang.c (HASH_SIZE): New macro.
10610 (struct cache_entry): New type.
10611 (cache_space, cache): New static globals.
10612 (ada_clear_symbol_cache, find_entry): New functions.
10613 (lookup_cached_symbol, cache_symbol): Implement.
10614 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10615 (_initialize_ada_language): Attach ada_new_objfile_observer
10616 and ada_free_objfile_observer.
10617
10618 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10619
10620 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10621 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10622 struct block * parameter.
10623 (ada_lookup_symbol_list_worker): Constify local variable "block".
10624 Remove cast which is no longer necessary.
10625
10626 2014-02-10 Doug Evans <xdje42@gmail.com>
10627
10628 Add Guile as an extension language.
10629 * NEWS: Mention Guile scripting.
10630 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10631 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10632 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10633 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10634 (CLIBS): Add GUILE_LIBS.
10635 (install-guile): New rule.
10636 (guile.o): New rule.
10637 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10638 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10639 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10640 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10641 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10642 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10643 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10644 * configure.ac: New option --with-guile.
10645 * configure: Regenerate.
10646 * config.in: Regenerate.
10647 * auto-load.c: Remove #include "python/python.h". Add #include
10648 "gdb/section-scripts.h".
10649 (source_section_scripts): Handle Guile scripts.
10650 (_initialize_auto_load): Add name of Guile objfile script to
10651 scripts-directory help text.
10652 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10653 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10654 (struct breakpoint): New member scm_bp_object.
10655 * defs.h (enum command_control_type): New value guile_control.
10656 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10657 "extension.h".
10658 (show_user): Update comment.
10659 (_initialize_cli_cmds): Update help text for "show user". Update help
10660 text for max-user-call-depth.
10661 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10662 "extension.h".
10663 (multi_line_command_p): Add guile_control.
10664 (print_command_lines): Handle guile_control.
10665 (execute_control_command, recurse_read_control_structure): Ditto.
10666 (process_next_line): Recognize "guile" commands.
10667 * disasm.c (gdb_disassemble_info): Make non-static.
10668 * disasm.h: #include "dis-asm.h".
10669 (struct gdbarch): Add forward decl.
10670 (gdb_disassemble_info): Declare.
10671 * extension.c: #include "guile/guile.h".
10672 (extension_languages): Add guile.
10673 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10674 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10675 * gdbtypes.c (get_unsigned_type_max): New function.
10676 (get_signed_type_minmax): New function.
10677 * gdbtypes.h (get_unsigned_type_max): Declare.
10678 (get_signed_type_minmax): Declare.
10679 * guile/README: New file.
10680 * guile/guile-internal.h: New file.
10681 * guile/guile.c: New file.
10682 * guile/guile.h: New file.
10683 * guile/scm-arch.c: New file.
10684 * guile/scm-auto-load.c: New file.
10685 * guile/scm-block.c: New file.
10686 * guile/scm-breakpoint.c: New file.
10687 * guile/scm-disasm.c: New file.
10688 * guile/scm-exception.c: New file.
10689 * guile/scm-frame.c: New file.
10690 * guile/scm-gsmob.c: New file.
10691 * guile/scm-iterator.c: New file.
10692 * guile/scm-lazy-string.c: New file.
10693 * guile/scm-math.c: New file.
10694 * guile/scm-objfile.c: New file.
10695 * guile/scm-ports.c: New file.
10696 * guile/scm-pretty-print.c: New file.
10697 * guile/scm-safe-call.c: New file.
10698 * guile/scm-string.c: New file.
10699 * guile/scm-symbol.c: New file.
10700 * guile/scm-symtab.c: New file.
10701 * guile/scm-type.c: New file.
10702 * guile/scm-utils.c: New file.
10703 * guile/scm-value.c: New file.
10704 * guile/lib/gdb.scm: New file.
10705 * guile/lib/gdb/boot.scm: New file.
10706 * guile/lib/gdb/experimental.scm: New file.
10707 * guile/lib/gdb/init.scm: New file.
10708 * guile/lib/gdb/iterator.scm: New file.
10709 * guile/lib/gdb/printing.scm: New file.
10710 * guile/lib/gdb/types.scm: New file.
10711 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10712 (VPATH): Add $(GUILE_SRCDIR).
10713 (GUILE_DIR): New variable.
10714 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10715 (all): Add stamp-guile dependency.
10716 (stamp-guile): New rule.
10717 (clean-guile, install-guile, uninstall-guile): New rules.
10718 (install-only): Add install-guile dependency.
10719 (uninstall): Add uninstall-guile dependency.
10720 (clean): Add clean-guile dependency.
10721
10722 2014-02-09 Doug Evans <xdje42@gmail.com>
10723
10724 Revert this patch (which I approved, mea culpa).
10725
10726 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10727
10728 * Makefile.in (all-lib): Remove.
10729 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10730
10731 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10732
10733 Fix Python stack corruption.
10734 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10735 gdb_py_longest.
10736
10737 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10738
10739 * Makefile.in (all-lib): Remove.
10740 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10741
10742 2014-02-07 Doug Evans <dje@google.com>
10743
10744 * extension-priv.h (extension_language_script_ops): Add comment.
10745 (extension_language_ops): Add comment.
10746 (active_ext_lang_state): Fix typo in comment.
10747
10748 2014-02-07 Pedro Alves <palves@redhat.com>
10749
10750 PR breakpoints/16292
10751 * infrun.c (handle_signal_stop) <signal arrives while stepping
10752 over a breakpoint>: Switch back to the stepping thread.
10753
10754 2014-02-07 Yao Qi <yao@codesourcery.com>
10755
10756 * target.c (target_xfer_partial): Return zero if LEN is zero.
10757
10758 2014-02-07 Yao Qi <yao@codesourcery.com>
10759
10760 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10761 (ld_so_xfer_auxv): Likewise.
10762 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10763 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10764 * corelow.c (core_xfer_partial): Likewise.
10765 * ctf.c (ctf_xfer_partial): Likewise.
10766 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10767 (darwin_xfer_partial): Likewise.
10768 * exec.c (exec_xfer_partial): Likewise.
10769 * gnu-nat.c (gnu_xfer_partial): Likewise.
10770 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10771 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10772 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10773 * linux-nat.c (linux_xfer_siginfo): Likewise.
10774 (linux_proc_xfer_spu): Likewise.
10775 * procfs.c (procfs_xfer_partial): Likewise.
10776 * record-full.c (record_full_xfer_partial): Likewise.
10777 (record_full_core_xfer_partial): Likewise.
10778 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10779 * remote.c (remote_write_qxfer): Likewise.
10780 (remote_write_qxfer, remote_read_qxfer): Likewise.
10781 (remote_xfer_partial): Likewise.
10782 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10783 (rs6000_xfer_shared_libraries): Likewise.
10784 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10785 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10786 (spu_xfer_partial): Likewise.
10787 * target.c (memory_xfer_partial_1): Likewise.
10788 * tracepoint.c (tfile_xfer_partial): Likewise.
10789 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10790 (windows_xfer_partial): Likewise.
10791
10792 2014-02-07 Yao Qi <yao@codesourcery.com>
10793
10794 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10795 comments.
10796 (core_xfer_shared_libraries_aix): Likewise.
10797 * gdbarch.c, gdbarch.h: Regenerated.
10798 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10799 ULONGEST. Change 'len_avail' type to ULONGEST.
10800 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10801 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10802 declaration.
10803 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10804
10805 2014-02-07 Yao Qi <yao@codesourcery.com>
10806
10807 * corefile.c (memory_error): Get 'exception' from ERR and pass
10808 'exception' to throw_error.
10809
10810 2014-02-06 Doug Evans <xdje42@gmail.com>
10811
10812 * configure.ac (libpython checking): Remove all but python.o from
10813 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10814 * configure: Regenerate.
10815
10816 * Makefile.in (SFILES): Add extension.c.
10817 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10818 (COMMON_OBS): Add extension.o.
10819 * extension.h: New file.
10820 * extension-priv.h: New file.
10821 * extension.c: New file.
10822
10823 * python/python-internal.h: #include "extension.h".
10824 (gdbpy_auto_load_enabled): Declare.
10825 (gdbpy_apply_val_pretty_printer): Declare.
10826 (gdbpy_apply_frame_filter): Declare.
10827 (gdbpy_preserve_values): Declare.
10828 (gdbpy_breakpoint_cond_says_stop): Declare.
10829 (gdbpy_breakpoint_has_cond): Declare.
10830 (void source_python_script_for_objfile): Delete.
10831 * python/python.c: #include "extension-priv.h".
10832 Delete inclusion of "observer.h".
10833 (extension_language_python): Moved here and renamed from
10834 script_language_python in py-auto-load.c.
10835 Redefined to be of type extension_language_defn.
10836 (python_extension_script_ops): New global.
10837 (python_extension_ops): New global.
10838 (struct python_env): New member previous_active.
10839 (restore_python_env): Call restore_active_ext_lang.
10840 (ensure_python_env): Call set_active_ext_lang.
10841 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10842 New arg extlang.
10843 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10844 New arg extlang.
10845 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10846 New arg extlang.
10847 (gdbpy_eval_from_control_command): Renamed from
10848 eval_python_from_control_command, made static. New arg extlang.
10849 (gdbpy_source_script) Renamed from source_python_script, made static.
10850 New arg extlang.
10851 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10852 result to int. New arg extlang.
10853 (gdbpy_source_objfile_script): Renamed from
10854 source_python_script_for_objfile, made static. New arg extlang.
10855 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10856 static. New args extlang, extlang_printers. Change result type to
10857 "void".
10858 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10859 static. New arg extlang. Rename arg printers to extlang_printers
10860 and change type to ext_lang_type_printers *.
10861 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10862 static. Replace argument arg with extlang, extlang_printers.
10863 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10864 (!HAVE_PYTHON, source_python_script): Delete.
10865 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10866 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10867 (!HAVE_PYTHON, start_type_printers): Delete.
10868 (!HAVE_PYTHON, apply_type_printers): Delete.
10869 (!HAVE_PYTHON, free_type_printers): Delete.
10870 (_initialize_python): Delete call to observer_attach_before_prompt.
10871 (finalize_python): Set/restore active extension language.
10872 (gdbpy_finish_initialization) Renamed from
10873 finish_python_initialization, made static. New arg extlang.
10874 (gdbpy_initialized): New function.
10875 * python/python.h: #include "extension.h". Delete #include
10876 "value.h", "mi/mi-cmds.h".
10877 (extension_language_python): Declare.
10878 (GDBPY_AUTO_FILE_NAME): Delete.
10879 (enum py_bt_status): Moved to extension.h and renamed to
10880 ext_lang_bt_status.
10881 (enum frame_filter_flags): Moved to extension.h.
10882 (enum py_frame_args): Moved to extension.h and renamed to
10883 ext_lang_frame_args.
10884 (finish_python_initialization): Delete.
10885 (eval_python_from_control_command): Delete.
10886 (source_python_script): Delete.
10887 (apply_val_pretty_printer): Delete.
10888 (apply_frame_filter): Delete.
10889 (preserve_python_values): Delete.
10890 (gdbpy_script_language_defn): Delete.
10891 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10892 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10893
10894 * auto-load.c: #include "extension.h".
10895 (GDB_AUTO_FILE_NAME): Delete.
10896 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10897 (script_language_gdb): Delete, moved to extension.c and renamed to
10898 extension_language_gdb.
10899 (source_gdb_script_for_objfile): Delete.
10900 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10901 (loaded_script): Change type of language member to
10902 struct extension_language_defn *.
10903 (init_loaded_scripts_info): Initialize
10904 unsupported_script_warning_printed.
10905 (maybe_add_script): Make static. Change type of language arg to
10906 struct extension_language_defn *.
10907 (clear_section_scripts): Reset unsupported_script_warning_printed.
10908 (auto_load_objfile_script_1): Rewrite to use extension language API.
10909 (auto_load_objfile_script): Make public. Remove support-compiled-in
10910 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10911 (source_section_scripts): Rewrite to use extension language API.
10912 (load_auto_scripts_for_objfile): Rewrite to use
10913 auto_load_scripts_for_objfile.
10914 (collect_matching_scripts_data): Change type of language member to
10915 struct extension_language_defn *.
10916 (auto_load_info_scripts): Change type of language arg to
10917 struct extension_language_defn *.
10918 (unsupported_script_warning_print): New function.
10919 (script_not_found_warning_print): Make static.
10920 (_initialize_auto_load): Rewrite construction of scripts-directory
10921 help.
10922 * auto-load.h (struct objfile): Add forward decl.
10923 (struct script_language): Delete.
10924 (struct auto_load_pspace_info): Add forward decl.
10925 (struct extension_language_defn): Add forward decl.
10926 (maybe_add_script): Delete.
10927 (auto_load_objfile_script): Declare.
10928 (script_not_found_warning_print): Delete.
10929 (auto_load_info_scripts): Update prototype.
10930 (auto_load_gdb_scripts_enabled): Declare.
10931 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10932 auto_load_python_scripts_enabled and made public.
10933 (script_language_python): Delete, moved to python.c.
10934 (gdbpy_script_language_defn): Delete.
10935 (info_auto_load_python_scripts): Update to use
10936 extension_language_python.
10937
10938 * breakpoint.c (condition_command): Replace call to
10939 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10940 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10941 with call to breakpoint_ext_lang_cond_says_stop.
10942 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10943 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10944 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10945 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10946 New arg slang.
10947 (local_setattro): Print name of extension language with existing
10948 stop condition.
10949
10950 * valprint.c (val_print, value_print): Update to call
10951 apply_ext_lang_val_pretty_printer.
10952 * cp-valprint.c (cp_print_value): Update call to
10953 apply_ext_lang_val_pretty_printer.
10954 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10955 (gdbpy_apply_val_pretty_printer): Renamed from
10956 apply_val_pretty_printer. New arg extlang.
10957 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10958
10959 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10960 extension language API.
10961 * cli/cli-script.c (execute_control_command): Update to call
10962 eval_ext_lang_from_control_command.
10963
10964 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10965 enum ext_lang_bt_status values. Update call to
10966 apply_ext_lang_frame_filter.
10967 (mi_cmd_stack_list_locals): Ditto.
10968 (mi_cmd_stack_list_args): Ditto.
10969 (mi_cmd_stack_list_variables): Ditto.
10970 * mi/mi-main.c: Delete #include "python/python-internal.h".
10971 Add #include "extension.h".
10972 (mi_cmd_list_features): Replace reference to python internal variable
10973 gdb_python_initialized with call to ext_lang_initialized_p.
10974
10975 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10976 Update to use enum ext_lang_frame_args. Update to call
10977 apply_ext_lang_frame_filter.
10978 * python/py-framefilter.c (extract_sym): Update to use enum
10979 ext_lang_bt_status.
10980 (extract_value, py_print_type, py_print_value): Ditto.
10981 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10982 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10983 (py_print_frame): Ditto.
10984 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10985 New arg extlang. Update to use enum ext_lang_bt_status.
10986
10987 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10988 finish_python_initialization. Replace with call to
10989 finish_ext_lang_initialization.
10990
10991 * typeprint.c (do_free_global_table): Update to call
10992 free_ext_lang_type_printers.
10993 (create_global_typedef_table): Update to call
10994 start_ext_lang_type_printers.
10995 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10996 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10997 (type_print_options): Change type of global_printers from "void *"
10998 to "struct ext_lang_type_printers *".
10999
11000 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11001 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11002 (gdbpy_preserve_values): Renamed from preserve_python_values.
11003 New arg extlang.
11004 (!HAVE_PYTHON, preserve_python_values): Delete.
11005
11006 * utils.c (quit_flag): Delete, moved to extension.c.
11007 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11008 extension.c.
11009
11010 * eval.c: Delete #include "python/python.h".
11011 * main.c: Delete #include "python/python.h".
11012
11013 * defs.h: Update comment.
11014
11015 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11016
11017 GDB 7.7 released.
11018
11019 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11020
11021 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11022 defined.
11023
11024 2014-02-05 Yao Qi <yao@codesourcery.com>
11025
11026 * remote.c (remote_pass_signals): Remove local 'buf' and use
11027 rs->buf.
11028 (remote_program_signals): Likewise.
11029
11030 2014-02-05 Yao Qi <yao@codesourcery.com>
11031
11032 * ctf.c: Include "inferior.h" and "gdbthread.h".
11033 (CTF_PID): A new macro.
11034 (ctf_open): Call inferior_appeared and add_thread_silent.
11035 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11036 (ctf_thread_alive): New function.
11037 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11038
11039 2014-02-05 Yao Qi <yao@codesourcery.com>
11040
11041 Revert this patch:
11042
11043 2013-05-24 Yao Qi <yao@codesourcery.com>
11044
11045 * tracepoint.c (TFILE_PID): Remove.
11046 (tfile_open): Don't add thread and inferior.
11047 (tfile_close): Don't set 'inferior_ptid'. Don't call
11048 exit_inferior_silent.
11049 (tfile_thread_alive): Remove.
11050 (init_tfile_ops): Don't set field 'to_thread_alive' of
11051 tfile_ops.
11052
11053 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11054
11055 * remote.c (remote_start_remote): Call remote_check_symbols even
11056 if only symbol-file (not file) has been given.
11057
11058 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11059
11060 * gdbarch.sh (skip_entrypoint): New callback.
11061 * gdbarch.c, gdbarch.h: Regenerate.
11062 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11063 * infrun.c (fill_in_stop_func): Likewise.
11064 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11065 (ppc_elfv2_elf_make_msymbol_special): New function.
11066 (ppc_elfv2_skip_entrypoint): Likewise.
11067 (ppc_linux_init_abi): Install them for ELFv2.
11068
11069 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11070
11071 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11072 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11073 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11074 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11075 structures returned in GPRs.
11076
11077 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11078
11079 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11080 offset to the stack parameter list for the ELFv2 ABI.
11081
11082 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11083
11084 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11085 set_gdbarch_convert_from_func_ptr_addr and
11086 set_gdbarch_elf_make_msymbol_special for ELFv1.
11087 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11088 function descriptors on ELFv1.
11089 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11090 set up r12 at function entry.
11091
11092 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11093
11094 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11095 (struct gdbarch_tdep): New member elf_abi.
11096
11097 * rs6000-tdep.c: Include "elf/ppc64.h".
11098 (rs6000_gdbarch_init): Detect ELF ABI version.
11099
11100 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11101
11102 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11103 within a register pair holding a DFP 128-bit value on little-endian.
11104 (ppc64_sysv_abi_return_value_base): Likewise.
11105 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11106 (dfp_pseudo_register_write): Likewise.
11107
11108 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11109
11110 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11111 offset on little-endian when passing _Decimal32.
11112 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11113
11114 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11115
11116 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11117 of the overlapped FP register within the VSX register on little-
11118 endian platforms.
11119 (efpr_pseudo_register_write): Likewise.
11120
11121 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11122
11123 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11124 offset on little-endian when passing small structures.
11125
11126 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11127
11128 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11129 (struct ppc64_sysv_argpos): New data structure.
11130 (ppc64_sysv_abi_push_float): Remove.
11131 (ppc64_sysv_abi_push_val): New function.
11132 (ppc64_sysv_abi_push_integer): Likewise.
11133 (ppc64_sysv_abi_push_freg): Likewise.
11134 (ppc64_sysv_abi_push_vreg): Likewise.
11135 (ppc64_sysv_abi_push_param): Likewise.
11136 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11137 (ppc64_sysv_abi_return_value_base): New function.
11138 (ppc64_sysv_abi_return_value): Refactor to use it.
11139
11140 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11141
11142 * NEWS: Document new target powerpc64le-*-linux*.
11143
11144 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11145
11146 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11147 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11148 core dumps.
11149 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11150 register set used in ELF core dumps. Add floating-point register set.
11151
11152 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11153
11154 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11155 dwarf2_to_gdb[] table using symbolic constants. Adjust
11156 penultimate entry from number representing the PC register
11157 to symbolic constant representing the MDR register. Add
11158 constant for the PC register to the end of the table.
11159
11160 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11161
11162 * bsd-kvm.c: Include <sys/param.h>
11163
11164 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11165
11166 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11167
11168 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11169
11170 * ada-lang.h (clear_ada_sym_cache): Delete.
11171
11172 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11173
11174 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11175
11176 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11177
11178 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11179 the sigreturn register save area only if the syscall is
11180 sigreturn.
11181
11182 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11183
11184 * valops.c (value_slice): Minor reformatting.
11185
11186 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11187
11188 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11189
11190 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11191
11192 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11193 New static globals.
11194 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11195 (ada_ignore_descriptive_types_p): New static global.
11196 (find_parallel_type_by_descriptive_type): Return immediately
11197 if ada_ignore_descriptive_types_p is set.
11198 (_initialize_ada_language): Register new commands "maintenance
11199 set ada", "maintenance show ada", "maintenance set ada
11200 ignore-descriptive-types" and "maintenance show ada
11201 ignore-descriptive-types".
11202 * NEWS: Add entry for new "maint ada set/show
11203 ignore-descriptive-types" commands.
11204
11205 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11206
11207 * record-btrace.c (record_btrace_close): Call btrace_teardown
11208 for all threads.
11209
11210 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11211
11212 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11213 "ui-out.h".
11214
11215 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11216
11217 * ada-typeprint (type_is_full_subrange_of_target_type):
11218 New function.
11219 (print_range): Add parameter bounds_prefered_p. If not set,
11220 try printing range types using the name of their base type.
11221 (print_range_type): Add parameter bounds_prefered_p.
11222 Use it in call to print_range.
11223 (print_array_type, ada_print_type): Update calls to print_range
11224 and print_range_type.
11225
11226 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11227
11228 * ada-typeprint.c (print_array_type, print_choices, print_range)
11229 (print_range_bound, print_dynamic_range_bound, print_range_type):
11230 Remove declaration.
11231
11232 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11233
11234 * ada-typeprint.c (print_range): Add missing empty line
11235 after local declaration.
11236
11237 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11238
11239 * ada-valprint.c (print_optional_low_bound): Get index_type's
11240 target type for as long as it is a TYPE_CODE_RANGE.
11241
11242 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11243
11244 * procfs.c (procfs_make_note_section): Remove assertion and
11245 associated comment.
11246
11247 2014-01-24 Yao Qi <yao@codesourcery.com>
11248
11249 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11250 * corelow.c (get_core_siginfo): Likewise.
11251
11252 2014-01-24 Yao Qi <yao@codesourcery.com>
11253
11254 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11255 ULONGEST. Don't check 'len' is negative.
11256 (remote_write_bytes): Change type of 'len' to ULONGEST.
11257
11258 2014-01-23 Tom Tromey <tromey@redhat.com>
11259
11260 PR python/16485:
11261 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11262 Handle exception from frame.block.
11263 (FrameVars.fetch_frame_locals): Likewise.
11264
11265 2014-01-23 Tom Tromey <tromey@redhat.com>
11266
11267 PR python/16487:
11268 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11269 on a NULL pointer. Move "goto error" to correct place.
11270
11271 2014-01-23 Tom Tromey <tromey@redhat.com>
11272
11273 PR python/16491:
11274 * python/py-framefilter.c (apply_frame_filter): Call
11275 ensure_python_env after computing gdbarch.
11276
11277 2014-01-23 Yao Qi <yao@codesourcery.com>
11278
11279 * target.c (raw_memory_xfer_partial): Change argument type
11280 from void * to gdb_byte *.
11281 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11282
11283 2014-01-22 Doug Evans <dje@google.com>
11284
11285 New gdbserver option --debug-format=timestamp.
11286 * NEWS: Mention it.
11287
11288 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11289
11290 * syscalls/s390x-linux.xml: New file.
11291 * syscalls/s390-linux.xml: New file.
11292 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11293 (XML_SYSCALL_FILENAME_S390X): Likewise.
11294 (op_svc): New enum value for SVC opcode.
11295 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11296 (s390_linux_get_syscall_number): New function.
11297 (s390_gdbarch_init): Register '*get_syscall_number' and the
11298 syscall xml file name.
11299 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11300 "s390-linux.xml" and "s390x-linux.xml".
11301 * NEWS: Announce new feature.
11302
11303 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11304
11305 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11306
11307 2014-01-22 Pedro Alves <palves@redhat.com>
11308
11309 * xtensa-config.c: Include defs.h.
11310
11311 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11312
11313 * common/common-utils.h: Add "ARI:" comment beside __func__
11314 reference.
11315
11316 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11317
11318 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11319 documentation a bit.
11320
11321 2014-01-21 Roland McGrath <mcgrathr@google.com>
11322
11323 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11324 * configure: Regenerate.
11325 * aclocal.m4: Regenerate.
11326 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11327 New substituted variables.
11328 (install-strip): New target.
11329 (INSTALL_SCRIPT): New substituted variable.
11330 (FLAGS_TO_PASS): Add it.
11331 (install-only): Use $(INSTALL_SCRIPT) rather than
11332 $(INSTALL_PROGRAM) for gcore.
11333
11334 2014-01-20 Tom Tromey <tromey@redhat.com>
11335
11336 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11337 together.
11338
11339 2014-01-20 Tom Tromey <tromey@redhat.com>
11340
11341 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11342 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11343 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11344 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11345 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11346 (struct cmd_list_element) <flags>: Remove.
11347 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11348 doc_allocated>: New fields.
11349 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11350 bitfields.
11351 * maint.c (maintenance_do_deprecate): Update.
11352 * top.c (execute_command): Update.
11353
11354 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11355
11356 * xtensa-linux-nat.c: Include asm/ptrace.h.
11357
11358 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11359
11360 * Makefile.in (SFILES): Add d-support.c.
11361 (COMMON_OBS): Add d-support.o.
11362 * d-lang.h (d_parse_symbol): Add comment, now defined in
11363 d-support.c.
11364 * d-lang.c (parse_call_convention)
11365 (parse_attributes, parse_function_types)
11366 (parse_function_args, parse_type, parse_identifier)
11367 (call_convention_p, d_parse_symbol): Move functions to ...
11368 * d-support.c: ... New file.
11369
11370 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11371
11372 * d-lang.h (d_parse_symbol): Add declaration.
11373 * d-lang.c (extract_identifiers)
11374 (extract_type_info): Remove functions.
11375 (parse_call_convention, parse_attributes)
11376 (parse_function_types, parse_function_args)
11377 (parse_type, parse_identifier, call_convention_p)
11378 (d_parse_symbol): New functions.
11379 (d_demangle): Use d_parse_symbol to demangle D symbols.
11380
11381 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11382
11383 * d-lang.h (struct builtin_d_type): New data type.
11384 (builtin_d_type): Add declaration.
11385 * d-lang.c (d_language_arch_info, build_d_types)
11386 (builtin_d_type): New functions.
11387 (enum d_primitive_types): New data type.
11388 (d_language_defn): Change c_language_arch_info to
11389 d_language_arch_info.
11390 (d_type_data): New static variable.
11391 (_initialize_d_language): Initialize d_type_data.
11392
11393 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11394
11395 * d-lang.h (d_main_name): Add declaration.
11396 * d-lang.c (d_main_name): New function.
11397 * symtab.c (find_main_name): Add call to d_main_name.
11398
11399 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11400
11401 * d-lang.c (d_language_defn): Change macro_expansion_c to
11402 macro_expansion_no.
11403
11404 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11405
11406 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11407
11408 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11409
11410 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11411 gdb_exception" declaration.
11412 * remote.c (getpkt_or_notif_sane): Likewise.
11413
11414 2014-01-17 Doug Evans <dje@google.com>
11415
11416 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11417 function, contents of dirnames_to_char_ptr_vec_append moved here.
11418 (delim_string_to_char_ptr_vec): New function.
11419 (dirnames_to_char_ptr_vec_append): Rewrite.
11420 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11421
11422 2014-01-17 Doug Evans <dje@google.com>
11423
11424 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11425 and moved here ...
11426 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11427 #include "common-utils.h".
11428 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11429 * common/vec.h (VEC_ASSERT_PASS): Update.
11430 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11431 (MACH_CHECK_ERROR): Update.
11432
11433 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11434
11435 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11436 comments.
11437 * gdbarch.h: Regenerate.
11438
11439 2014-01-16 Tom Tromey <tromey@redhat.com>
11440
11441 * value.c (struct value) <regnum>: Move earlier.
11442
11443 2014-01-16 Tom Tromey <tromey@redhat.com>
11444
11445 * remote.c (extended_remote_create_inferior): Rename from
11446 extended_remote_create_inferior_1. Add "ops" argument. Remove
11447 old implementation.
11448
11449 2014-01-16 Pedro Alves <palves@redhat.com>
11450
11451 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11452 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11453 the backchain.
11454
11455 2014-01-16 Doug Evans <dje@google.com>
11456
11457 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11458
11459 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11460
11461 * btrace.h (btrace_thread_flag): New.
11462 (struct btrace_thread_info) <flags>: New.
11463 * record-btrace.c (record_btrace_resume_thread)
11464 (record_btrace_find_thread_to_move, btrace_step_no_history)
11465 (btrace_step_stopped, record_btrace_start_replaying)
11466 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11467 (record_btrace_find_resume_thread): New.
11468 (record_btrace_resume, record_btrace_wait): Extend.
11469 (record_btrace_can_execute_reverse): New.
11470 (record_btrace_open): Fail in non-stop mode.
11471 (record_btrace_set_replay): Split into this, ...
11472 (record_btrace_stop_replaying): ... this, ...
11473 (record_btrace_clear_histories): ... and this.
11474 (init_record_btrace_ops): Init to_can_execute_reverse.
11475 * NEWS: Announce it.
11476
11477 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11478
11479 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11480 (forward_target_decr_pc_after_break)
11481 (target_decr_pc_after_break): New.
11482 * target.c (forward_target_decr_pc_after_break)
11483 (target_decr_pc_after_break): New.
11484 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11485 instead of gdbarch_decr_pc_after_break.
11486 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11487 instead of gdbarch_decr_pc_after_break.
11488 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11489 instead of gdbarch_decr_pc_after_break.
11490 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11491 instead of gdbarch_decr_pc_after_break.
11492 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11493 instead of gdbarch_decr_pc_after_break.
11494 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11495 instead of gdbarch_decr_pc_after_break.
11496
11497 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11498
11499 * btrace.c: Include regcache.h.
11500 (btrace_add_pc): New.
11501 (btrace_enable): Call btrace_add_pc.
11502 (btrace_is_empty): New.
11503 * btrace.h (btrace_is_empty): New.
11504 * record-btrace.c (require_btrace, record_btrace_info): Call
11505 btrace_is_empty.
11506
11507 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11508
11509 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11510 Support delta reads.
11511 (linux_disable_btrace): Change return type.
11512 * common/linux-btrace.h (linux_read_btrace): Change parameters
11513 and return type to allow error reporting. Update users.
11514 (linux_disable_btrace): Change return type. Update users.
11515 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11516 New.
11517 (btrace_error): New.
11518 (btrace_block) <begin>: Comment on BEGIN == 0.
11519 * btrace.c (btrace_compute_ftrace): Start from the end of
11520 the current trace.
11521 (btrace_stitch_trace, btrace_clear_history): New.
11522 (btrace_fetch): Read delta trace, return if replaying.
11523 (btrace_clear): Move clear history code to btrace_clear_history.
11524 (parse_xml_btrace): Throw an error if parsing failed.
11525 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11526 and return type to allow error reporting.
11527 (target_read_btrace): Change parameters and return type to allow
11528 error reporting.
11529 * target.c (target_read_btrace): Update.
11530 * remote.c (remote_read_btrace): Support delta reads. Pass
11531 errors on.
11532 * NEWS: Announce it.
11533
11534 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11535
11536 * record.h (record_btrace_frame_unwind)
11537 (record_btrace_tailcall_frame_unwind): New declarations.
11538 * dwarf2-frame: Include record.h
11539 (dwarf2_frame_cfa): Throw an error for btrace frames.
11540 * record-btrace.c: Include hashtab.h.
11541 (btrace_get_bfun_name): New.
11542 (btrace_call_history): Call btrace_get_bfun_name.
11543 (struct btrace_frame_cache): New.
11544 (bfcache): New.
11545 (bfcache_hash, bfcache_eq, bfcache_new): New.
11546 (btrace_get_frame_function): New.
11547 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11548 (record_btrace_frame_this_id): Compute own id.
11549 (record_btrace_frame_prev_register): Provide PC, throw_error
11550 for all other registers.
11551 (record_btrace_frame_sniffer): Detect btrace frames.
11552 (record_btrace_tailcall_frame_sniffer): New.
11553 (record_btrace_frame_dealloc_cache): New.
11554 (record_btrace_frame_unwind): Add new functions.
11555 (record_btrace_tailcall_frame_unwind): New.
11556 (_initialize_record_btrace): Allocate cache.
11557 * btrace.c (btrace_clear): Call reinit_frame_cache.
11558 * NEWS: Announce it.
11559
11560 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11561
11562 * record-btrace.c (record_btrace_set_replay)
11563 (record_btrace_goto_begin, record_btrace_goto_end)
11564 (record_btrace_goto): New.
11565 (init_record_btrace_ops): Initialize them.
11566 * NEWS: Announce it.
11567
11568 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11569
11570 * record-btrace.c (record_btrace_find_new_threads)
11571 (record_btrace_thread_alive): New.
11572 (init_record_btrace_ops): Initialize to_find_new_threads and
11573 to_thread_alive.
11574
11575 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11576
11577 * record-btrace.c (record_btrace_resume): New.
11578 (record_btrace_wait): New.
11579 (init_record_btrace_ops): Initialize to_wait and to_resume.
11580
11581 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11582
11583 * record-btrace.c (record_btrace_xfer_partial)
11584 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11585 (record_btrace_allow_memory_access): New.
11586 (init_record_btrace_ops): Initialize new methods.
11587 * target.c (raw_memory_xfer_partial): Bail out if target reports
11588 that this memory is not available.
11589
11590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11591
11592 * target.h (target_ops) <to_insert_breakpoint>
11593 <to_remove_breakpoint>: Add target_ops parameter.
11594 (forward_target_insert_breakpoint): New.
11595 (forward_target_remove_breakpoint): New.
11596 (memory_remove_breakpoint, memory_insert_breakpoint):
11597 Add target_ops parameter.
11598 * target.c (target_insert_breakpoint): Split into this and ...
11599 (forward_target_insert_breakpoint): ... this.
11600 (target_remove_breakpoint): Split into this and ...
11601 (forward_target_remove_breakpoint): ... this.
11602 (debug_to_insert_breakpoint): Add target_ops parameter.
11603 Call forward_target_insert_breakpoint.
11604 (debug_to_remove_breakpoint): Add target_ops parameter.
11605 Call forward_target_remove_breakpoint.
11606 (update_current_target): Do not inherit or default to_insert_breakpoint
11607 and to_remove_breakpoint.
11608 * corelow.c (ignore): Add target_ops parameter.
11609 * exec.c (ignore): Add target_ops parameter.
11610 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11611 Add target_ops parameter.
11612 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11613 Add target_ops parameter.
11614 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11615 Add target_ops parameter.
11616 * record-full.c (record_full_beneath_to_insert_breakpoint)
11617 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11618 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11619 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11620 (record_full_core_remove_breakpoint): Add target_ops parameter.
11621 Update users.
11622 (record_full_beneath_to_insert_breakpoint_ops)
11623 (record_full_beneath_to_remove_breakpoint_ops)
11624 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11625 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11626 tmp_to_remove_breakpoint_ops,
11627 record_full_beneath_to_insert_breakpoint_ops, and
11628 record_full_beneath_to_remove_breakpoint_ops.
11629 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11630 (m32r_remove_breakpoint): Add target_ops parameter.
11631 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11632 Add target_ops parameter.
11633 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11634 Add target_ops parameter.
11635
11636 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11637 Markus Metzger <markus.t.metzger@intel.com>
11638
11639 * record-btrace.c: Include frame-unwind.h.
11640 (record_btrace_frame_unwind_stop_reason)
11641 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11642 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11643 New.
11644 (init_record_btrace_ops): Install it.
11645
11646 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11647
11648 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11649 get_prev_frame_1.
11650
11651 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11652
11653 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11654 earlier.
11655
11656 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11657
11658 * frame-unwind.c: Include target.h.
11659 (frame_unwind_try_unwinder): New function with code from ...
11660 (frame_unwind_find_by_frame): ... here. New variable
11661 unwinder_from_target, call also target_get_unwinder)
11662 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11663 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11664 * target.h (struct target_ops): New fields to_get_unwinder and
11665 to_get_tailcall_unwinder.
11666 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11667
11668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11669
11670 * record-btrace.c (record_btrace_fetch_registers)
11671 (record_btrace_store_registers)
11672 (record_btrace_to_prepare_to_store): New.
11673 (init_record_btrace_ops): Add the above.
11674
11675 2014-01-16 Tom Tromey <tromey@redhat.com>
11676
11677 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11678 * target.h (struct target_ops) <to_prepare_to_store>: Add
11679 argument.
11680 (target_prepare_to_store): Add argument.
11681 * target.c (debug_to_prepare_to_store): Add argument.
11682 (update_current_target): Update.
11683 * remote.c (remote_prepare_to_store): Add 'self' argument.
11684 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11685 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11686 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11687 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11688 argument.
11689 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11690 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11691 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11692 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11693 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11694
11695 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11696
11697 * btrace.h (replay) <replay>: New.
11698 (btrace_is_replaying): New.
11699 * btrace.c (btrace_clear): Free replay iterator.
11700 (btrace_is_replaying): New.
11701 * record-btrace.c (record_btrace_is_replaying): New.
11702 (record_btrace_info): Print insn number if replaying.
11703 (record_btrace_insn_history): Start at replay position.
11704 (record_btrace_call_history): Start at replay position.
11705 (init_record_btrace_ops): Init to_record_is_replaying.
11706
11707 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11708
11709 * record-btrace.c (record_btrace_insn_history_range): Include
11710 end.
11711 (record_btrace_insn_history_from): Adjust range.
11712 (record_btrace_call_history_range): Include
11713 end.
11714 (record_btrace_call_history_from): Adjust range.
11715 * NEWS: Announce changes.
11716
11717 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11718
11719 * record.h (enum record_print_flag)
11720 <record_print_indent_calls>: New.
11721 * record.c (get_call_history_modifiers): Recognize /c modifier.
11722 (_initialize_record): Document /c modifier.
11723 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11724 Reorder fields. Optionally indent the function name. Update
11725 all users.
11726 * NEWS: Announce changes.
11727
11728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11729
11730 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11731
11732 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11733
11734 * btrace.c (ftrace_new_function): Start counting at one.
11735 * record-btrace.c (record_btrace_info): Adjust number of calls
11736 and insns.
11737 * NEWS: Announce it.
11738
11739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11740
11741 * record-btrace.c (btrace_call_history_insn_range): Print
11742 insn range as [begin, end].
11743
11744 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11745
11746 * btrace.h (struct btrace_func_link): New.
11747 (enum btrace_function_flag): New.
11748 (struct btrace_inst): Rename to ...
11749 (struct btrace_insn): ...this. Update all users.
11750 (struct btrace_func) <ibegin, iend>: Remove.
11751 (struct btrace_func_link): New.
11752 (struct btrace_func): Rename to ...
11753 (struct btrace_function): ...this. Update all users.
11754 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11755 (number, level, flags>: New.
11756 (struct btrace_insn_iterator): Rename to ...
11757 (struct btrace_insn_history): ...this.
11758 Update all users.
11759 (struct btrace_insn_iterator, btrace_call_iterator): New.
11760 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11761 (struct btrace_target_info) <begin, end, level>
11762 <insn_history, call_history>: New.
11763 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11764 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11765 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11766 (btrace_call_number, btrace_call_begin, btrace_call_end)
11767 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11768 (btrace_find_function_by_number, btrace_set_insn_history)
11769 (btrace_set_call_history): New.
11770 * btrace.c (btrace_init_insn_iterator)
11771 (btrace_init_func_iterator, compute_itrace): Remove.
11772 (ftrace_print_function_name, ftrace_print_filename)
11773 (ftrace_skip_file): Change
11774 parameter to const.
11775 (ftrace_init_func): Remove.
11776 (ftrace_debug): Use new btrace_function fields.
11777 (ftrace_function_switched): Also consider gaining and
11778 losing symbol information).
11779 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11780 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11781 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11782 New.
11783 (ftrace_new_function): Move. Remove debug print.
11784 (ftrace_update_lines, ftrace_update_insns): New.
11785 (ftrace_update_function): Check for call, ret, and jump.
11786 (compute_ftrace): Renamed to ...
11787 (btrace_compute_ftrace): ...this. Rewritten to compute call
11788 stack.
11789 (btrace_fetch, btrace_clear): Updated.
11790 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11791 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11792 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11793 (btrace_call_number, btrace_call_begin, btrace_call_end)
11794 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11795 (btrace_find_function_by_number, btrace_set_insn_history)
11796 (btrace_set_call_history): New.
11797 * record-btrace.c (require_btrace): Use new btrace thread
11798 info fields.
11799 (record_btrace_info, btrace_insn_history)
11800 (record_btrace_insn_history, record_btrace_insn_history_range):
11801 Use new btrace thread info fields and new iterator.
11802 (btrace_func_history_src_line): Rename to ...
11803 (btrace_call_history_src_line): ...this. Use new btrace
11804 thread info fields.
11805 (btrace_func_history): Rename to ...
11806 (btrace_call_history): ...this. Use new btrace thread info
11807 fields and new iterator.
11808 (record_btrace_call_history, record_btrace_call_history_range):
11809 Use new btrace thread info fields and new iterator.
11810
11811 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11812
11813 * frame.h (frame_id_build_unavailable_stack_special): New.
11814 * frame.c (frame_id_build_unavailable_stack_special): New.
11815
11816 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11817
11818 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11819 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11820 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11821 to gdbarch.
11822 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11823 (i386_insn_is_jump, i386_jmp_p): New.
11824 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11825 insn_is_jump to gdbarch.
11826 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11827 * gdbarch.h: Regenerated.
11828 * gdbarch.c: Regenerated.
11829 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11830 (default_insn_is_jump): New.
11831 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11832 (default_insn_is_jump): New.
11833
11834 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11835
11836 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11837 Change to ...
11838 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11839 (btrace_read_type) <btrace_read_new>: Change to ...
11840 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11841
11842 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11843
11844 * common/linux-btrace.c (linux_read_btrace): Free trace from
11845 previous iteration.
11846
11847 2014-01-15 Doug Evans <dje@google.com>
11848
11849 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11850 uint32_t.
11851
11852 2014-01-15 Tom Tromey <tromey@redhat.com>
11853
11854 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11855 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11856 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11857 (set_objfile_main_name): New function.
11858 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11859 language_of_main>: New fields.
11860 (set_objfile_main_name): Declare.
11861 * symtab.c (find_main_name): Loop over objfiles to find the main
11862 name and language.
11863 (set_main_name): Now static.
11864 (get_main_info): Add comment.
11865 * symtab.h (set_main_name): Don't declare.
11866
11867 2014-01-15 Tom Tromey <tromey@redhat.com>
11868
11869 * symtab.c (main_progspace_key): New global.
11870 (struct main_info): New.
11871 (name_of_main, language_of_main): Remove.
11872 (get_main_info, main_info_cleanup): New function.
11873 (set_main_name, main_name, main_language): Use get_main_info.
11874 (_initialize_symtab): Initialize main_progspace_key.
11875
11876 2014-01-15 Tom Tromey <tromey@redhat.com>
11877
11878 * dbxread.c (process_one_symbol): Update.
11879 * dwarf2read.c (read_partial_die): Update.
11880 * symfile.c (set_initial_language): Call main_language.
11881 * symtab.c (language_of_main): Now static.
11882 (set_main_name): Add 'lang' parameter.
11883 (find_main_name): Update.
11884 (main_language): New function.
11885 (symtab_observer_executable_changed): Update.
11886 * symtab.h (set_main_name): Update.
11887 (language_of_main): Remove.
11888 (main_language): Declare.
11889
11890 2014-01-15 Tom Tromey <tromey@redhat.com>
11891
11892 * symfile.c (init_entry_point_info): Use new "initialized" field.
11893 Update.
11894 * objfiles.h (struct entry_point) <initialized>: New field.
11895 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11896 (struct objfile) <ei>: ...here. Remove.
11897 * objfiles.c (entry_point_address_query): Update.
11898
11899 2014-01-15 Tom Tromey <tromey@redhat.com>
11900
11901 * objfiles.c (entry_point_address_query): Relocate entry point
11902 address.
11903 (objfile_relocate1): Do not relocate entry point address.
11904 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11905 <the_bfd_section_index>: New field.
11906 * symfile.c (init_entry_point_info): Find the entry point's
11907 section.
11908
11909 2014-01-15 Tom Tromey <tromey@redhat.com>
11910
11911 * solib-frv.c (enable_break): Use entry_point_address_query.
11912
11913 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11914
11915 * NEWS: Add note on improved process record-replay on
11916 arm*-linux* targets.
11917
11918 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11919
11920 * arm-tdep.c (enum arm_record_result): New enum.
11921 (arm_record_unsupported_insn): New function.
11922 (arm_record_coproc_data_proc): Removed.
11923 (thumb2_record_ld_st_multiple): New function.
11924 (thumb2_record_ld_st_dual_ex_tbb): New function.
11925 (thumb2_record_data_proc_sreg_mimm): New function.
11926 (thumb2_record_ps_dest_generic): New function.
11927 (thumb2_record_branch_misc_cntrl): New function.
11928 (thumb2_record_str_single_data): New function.
11929 (thumb2_record_ld_mem_hints): New function.
11930 (thumb2_record_ld_word): New function.
11931 (thumb2_record_lmul_lmla_div): New function.
11932 (thumb2_record_decode_insn_handler): New function.
11933 (decode_insn): Add thumb32 instruction handlers.
11934
11935 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11936
11937 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11938 (struct arm_linux_record_tdep): Declare.
11939 (arm_canonicalize_syscall): New function.
11940 (arm_all_but_pc_registers_record): New function.
11941 (arm_linux_syscall_record): New function.
11942 (arm_linux_init_abi): Add syscall recording constructs.
11943 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11944 decoding. (arm_record_coproc_data_proc): Update arm syscall
11945 decoding.
11946 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11947 <arm_syscall_record>: New field.
11948 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11949 gdb_target_obs.
11950
11951 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11952
11953 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11954 register for push instruction recording.
11955
11956 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11957
11958 * arm-tdep.c (thumb_record_misc): Update to correct logical
11959 error while recording ldm, ldmia and pop instructions.
11960
11961 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11962
11963 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11964
11965 2014-01-15 Pedro Alves <palves@redhat.com>
11966
11967 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11968 (go32_resume, go32_fetch_registers, store_register)
11969 (go32_store_registers, go32_prepare_to_store)
11970 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11971 (go32_create_inferior, go32_can_run, go32_terminal_init)
11972 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11973 declarations.
11974
11975 2014-01-15 Tom Tromey <tromey@redhat.com>
11976
11977 * target.h (async_callback_ftype): New typedef.
11978 (struct target_ops) <to_async>: Use it.
11979
11980 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11981
11982 * python/py-value.c (get_field_type): Remove unnecessary curly
11983 braces for single-statement if block.
11984
11985 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11986
11987 * python/py-type.c (convert_field): Add missing empty line
11988 after declarations.
11989
11990 2014-01-14 Doug Evans <dje@google.com>
11991
11992 * symfile.h (expand_symtabs_matching): Renamed from
11993 expand_partial_symbol_names. Update prototype.
11994 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11995 * symfile.c (expand_symtabs_matching): Renamed from
11996 expand_partial_symbol_names. New args file_matcher, kind.
11997 Rename arg fun to symbol_matcher.
11998 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11999 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12000 ada_expand_partial_symbol_name.
12001 (ada_make_symbol_completion_list): Update to call
12002 expand_symtabs_matching.
12003 (ada_add_global_exceptions): Call expand_symtabs_matching.
12004 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12005 call map_symbol_filenames.
12006 * symtab.c (sources_info): Update to call map_symbol_filenames.
12007 (search_symbols): Call expand_symtabs_matching.
12008 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12009 (default_make_symbol_completion_list_break_on): Update to call
12010 expand_symtabs_matching.
12011 (make_source_files_completion_list): Update to call
12012 map_symbol_filenames.
12013
12014 2014-01-14 Doug Evans <dje@google.com>
12015
12016 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12017 (expand_symtabs_symbol_matcher_ftype): New typedef.
12018 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12019 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12020 * symfile.c (expand_partial_symbol_names): Update to use
12021 expand_symtabs_symbol_matcher_ftype.
12022 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12023 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12024 Arg name_matcher renamed to symbol_matcher.
12025 * psymtab.c (recursively_search_psymtabs): Update to use
12026 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12027 sym_matcher.
12028 (expand_symtabs_matching_via_partial): Update to use
12029 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12030 Arg name_matcher renamed to symbol_matcher.
12031
12032 2014-01-14 Doug Evans <dje@google.com>
12033
12034 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12035 (map_partial_symbol_filenames): Ditto.
12036 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12037 (map_partial_symbol_filenames): Ditto.
12038 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12039 (map_partial_symbol_filenames): Ditto.
12040 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12041 (map_partial_symbol_filenames): Ditto.
12042 * symtab.c: Delete #include "psymtab.h".
12043
12044 2014-01-14 Pedro Alves <palves@redhat.com>
12045 Tom Tromey <tromey@redhat.com>
12046
12047 * infrun.c (use_displaced_stepping): Use find_record_target
12048 instead of RECORD_IS_USED.
12049 (adjust_pc_after_break): Use record_full_is_used instead of
12050 RECORD_IS_USED.
12051 * record-btrace.c (record_btrace_open): Call record_preopen
12052 instead of checking RECORD_IS_USED.
12053 * record-full.c (record_full_shortname)
12054 (record_full_core_shortname): New globals.
12055 (record_full_is_used): New function.
12056 (find_full_open): Call record_preopen instead of checking
12057 RECORD_IS_USED.
12058 (init_record_full_ops): Set the target's shortname to
12059 record_full_shortname.
12060 (init_record_full_core_ops): Set the target's shortname to
12061 record_full_core_shortname.
12062 * record-full.h (record_full_is_used): Declare.
12063 * record.c (find_record_target): Make extern.
12064 (record_preopen): New function.
12065 * record.h (RECORD_IS_USED): Delete macro.
12066 (find_record_target, record_preopen): Declare functions.
12067
12068 2014-01-14 Yao Qi <yao@codesourcery.com>
12069
12070 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12071 'len''s type to ULONGEST.
12072 (core_xfer_shared_libraries_aix): Likewise.
12073 * gdbarch.c, gdbarch.h: Regenerated.
12074 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12075 Change type of 'len' to ULONGEST.
12076 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12077 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12078
12079 2014-01-14 Yao Qi <yao@codesourcery.com>
12080
12081 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12082 type of 'len' to ULONGEST.
12083 (linux_xfer_osdata_processgroups): Likewise.
12084 (linux_xfer_osdata_threads): Likewise.
12085 (linux_xfer_osdata_fds): Likewise.
12086 (linux_xfer_osdata_isockets): Likewise.
12087 (linux_xfer_osdata_shm): Likewise.
12088 (linux_xfer_osdata_sem): Likewise.
12089 (linux_xfer_osdata_msg): Likewise.
12090 (linux_common_xfer_osdata): Likewise.
12091 (struct osdata_type) <getter>: Likewise.
12092 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12093 the declaration.
12094
12095 2014-01-14 Yao Qi <yao@codesourcery.com>
12096
12097 * target.h (target_xfer_partial_ftype): Update.
12098 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12099 ULONGEST.
12100 * aix-thread.c (aix_thread_xfer_partial): Change type of
12101 argument 'len' to ULONGEST.
12102 * auxv.c (procfs_xfer_auxv): Likewise.
12103 (ld_so_xfer_auxv): Likewise.
12104 (memory_xfer_auxv): Likewise.
12105 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12106 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12107 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12108 * corelow.c (core_xfer_partial): Likewise.
12109 * ctf.c (ctf_xfer_partial): Likewise.
12110 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12111 '%u'.
12112 (darwin_read_dyld_info): Likewise.
12113 (darwin_xfer_partial): Likewise.
12114 * exec.c (section_table_xfer_memory_partial): Likewise.
12115 (exec_xfer_partial): Likewise.
12116 * exec.h (section_table_xfer_memory_partial): Update
12117 declaration.
12118 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12119 instead of plongest.
12120 (gnu_xfer_partial): Likewise.
12121 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12122 (ia64_hpux_xfer_solib_got): Likewise.
12123 (ia64_hpux_xfer_partial): Likewise.
12124 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12125 * inf-ptrace.c (inf_ptrace_xfer_partial):
12126 * inf-ttrace.c (inf_ttrace_xfer_partial):
12127 * linux-nat.c (linux_xfer_siginfo): Likewise.
12128 (linux_nat_xfer_partial): Likewise.
12129 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12130 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12131 * monitor.c (monitor_xfer_memory): Likewise.
12132 (monitor_xfer_partial): Likewise.
12133 * procfs.c (procfs_xfer_partial): Likewise.
12134 * record-full.c (record_full_xfer_partial): Likewise.
12135 (record_full_core_xfer_partial): Likewise.
12136 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12137 instead of plongest.
12138 (gdbsim_xfer_partial): Likewise.
12139 * remote.c (remote_xfer_partial): Likewise.
12140 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12141 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12142 declaration.
12143 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12144 (rs6000_xfer_shared_libraries): Likewise.
12145 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12146 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12147 (sparc_xfer_partial): Likewise.
12148 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12149 (spu_xfer_partial): Likewise.
12150 * spu-multiarch.c (spu_xfer_partial): Likewise.
12151 * target.c (target_read_live_memory): Likewise.
12152 (memory_xfer_live_readonly_partial): Likewise.
12153 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12154 (target_xfer_partial, default_xfer_partial): Likewise.
12155 (current_xfer_partial): Likewise.
12156 * tracepoint.c (tfile_xfer_partial): Likewise.
12157 * windows-nat.c (windows_xfer_memory): Likewise. Call
12158 pulongest instead of plongest.
12159 (windows_xfer_partial): Likewise.
12160 (windows_xfer_shared_libraries): Likewise.
12161
12162 2014-01-14 Yao Qi <yao@codesourcery.com>
12163
12164 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12165 target_xfer_partial_ftype.
12166
12167 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12168
12169 PR python/15464
12170 PR python/16113
12171 * valops.c (value_struct_elt_bitpos): New function
12172 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12173 object to 'None' if the field name is an empty string ("").
12174 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12175 attribute to look for a field when 'name' is 'None'.
12176 (get_field_type): New function
12177
12178 2014-01-13 Doug Evans <dje@google.com>
12179
12180 PR symtab/16426
12181 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12182 (try_open_dwop_file): Ditto.
12183 * gdb_bfd.c: #include "vec.h".
12184 (bfdp): New typedef.
12185 (struct gdb_bfd_data): New member included_bfds.
12186 (gdb_bfd_unref): Unref all included bfds.
12187 (gdb_bfd_record_inclusion): New function.
12188 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12189
12190 2014-01-13 Tom Tromey <tromey@redhat.com>
12191
12192 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12193
12194 2014-01-13 Tom Tromey <tromey@redhat.com>
12195
12196 * defs.h (use_windows): Remove.
12197 * gdb.c (main): Update.
12198 * main.c (captured_main, gdb_main): Update.
12199 * main.h (struct captured_main_args) <use_windows>: Remove.
12200 * top.c (use_windows): Remove.
12201
12202 2014-01-13 Tom Tromey <tromey@redhat.com>
12203
12204 * defs.h (deprecated_flush_hook): Remove.
12205
12206 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12207
12208 PR threads/16216
12209 * linux-thread-db.c (try_thread_db_load): Add parameter
12210 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12211 (try_thread_db_load_from_pdir_1): Move it there from here.
12212 (try_thread_db_load_from_sdir): Update caller.
12213 (try_thread_db_load_from_dir): Move it there from here.
12214
12215 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12216
12217 * regformats/regdat.sh: Always rewrite the register file.
12218
12219 2014-01-13 Pedro Alves <palves@redhat.com>
12220
12221 * Makefile.in (CHECK_HEADERS): New variable.
12222 (check-headers:): New rule.
12223
12224 2014-01-13 Tom Tromey <tromey@redhat.com>
12225
12226 * cli/cli-setshow.c (do_set_command): Update.
12227 * defs.h (deprecated_set_hook): Remove.
12228 * top.c (deprecated_set_hook): Remove.
12229
12230 2014-01-13 Pedro Alves <palves@redhat.com>
12231
12232 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12233 the tracepoint if the PC is a pseudo-register.
12234
12235 2014-01-13 Tom Tromey <tromey@redhat.com>
12236
12237 * defs.h (XCALLOC): Remove.
12238 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12239 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12240 * dwarf2loc.c (allocate_piece_closure): Likewise.
12241 * elfread.c (elf_symfile_segments): Likewise.
12242 (elf_symfile_segments): Likewise.
12243 * gdbtypes.c (copy_type_recursive): Likewise.
12244 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12245 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12246 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12247 XCALLOC.
12248 * mt-tdep.c (mt_gdbarch_init): Likewise.
12249 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12250 XCALLOC.
12251 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12252 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12253 * registry.c (registry_alloc_data): Likewise.
12254 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12255 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12256 * serial.c (serial_fdopen_ops): Likewise.
12257 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12258 XCALLOC.
12259 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12260 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12261 not XCALLOC.
12262
12263 2014-01-13 Tom Tromey <tromey@redhat.com>
12264
12265 * defs.h (XMALLOC): Remove.
12266 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12267 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12268 * cli-out.c (struct ui_out *): Likewise.
12269 * cli/cli-dump.c (add_dump_command): Likewise.
12270 (add_dump_command): Likewise.
12271 * complaints.c (get_complaints): Likewise.
12272 (find_complaint): Likewise.
12273 * dwarf2-frame.c (execute_cfa_program): Likewise.
12274 * dwarf2read.c (abbrev_table_read_table): Likewise.
12275 * gdbarch.sh: Likewise.
12276 * gdbarch.c: Rebuild.
12277 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12278 * interps.c (interp_new): Likewise.
12279 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12280 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12281 * mi/mi-console.c (mi_console_file_new): Likewise.
12282 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12283 * mi/mi-out.c (mi_out_new): Likewise.
12284 * mi/mi-parse.c (mi_parse): Likewise.
12285 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12286 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12287 * observer.c (xalloc_observer_list_node): Likewise.
12288 * regcache.c (regcache_xmalloc_1): Likewise.
12289 * reggroups.c (reggroup_new): Likewise.
12290 (_initialize_reggroup): Likewise.
12291 * registry.c (register_data_with_cleanup): Likewise.
12292 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12293 * ser-base.c (serial_ttystate): Likewise.
12294 * ser-mingw.c (make_pipe_state): Likewise.
12295 * ser-pipe.c (pipe_open): Likewise.
12296 * serial.c (serial_open): Likewise.
12297 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12298 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12299 (tui_alloc_win_info): Likewise.
12300 (tui_add_content_elements): Likewise.
12301 * tui/tui-file.c (tui_file_new): Likewise.
12302 * tui/tui-out.c (tui_out_new): Likewise.
12303 * ui-file.c (mem_file_new): Likewise.
12304 * ui-out.c (push_level): Likewise.
12305 (make_cleanup_ui_out_end): Likewise.
12306 (append_header_to_list): Likewise.
12307 (ui_out_new): Likewise.
12308 * user-regs.c (user_reg_add_builtin): Likewise.
12309
12310 2014-01-13 Tom Tromey <tromey@redhat.com>
12311
12312 * defs.h (XZALLOC): Remove.
12313 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12314 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12315 (get_ada_tasks_inferior_data): Likewise.
12316 * auto-load.c (get_auto_load_pspace_data): Likewise.
12317 * auxv.c (get_auxv_inferior_data): Likewise.
12318 * bfd-target.c (target_bfd_reopen): Likewise.
12319 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12320 (deprecated_insert_raw_breakpoint): Likewise.
12321 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12322 * corelow.c (core_open): Likewise.
12323 * darwin-nat.c (darwin_check_new_threads): Likewise.
12324 (darwin_attach_pid): Likewise.
12325 * dummy-frame.c (dummy_frame_push): Likewise.
12326 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12327 * dwarf2loc.c (allocate_piece_closure): Likewise.
12328 * elfread.c (elf_symfile_segments): Likewise.
12329 * eval.c (ptrmath_type_p): Likewise.
12330 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12331 * gdbtypes.c (alloc_type_arch): Likewise.
12332 (alloc_type_instance): Likewise.
12333 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12334 * inf-child.c (inf_child_can_use_agent): Likewise.
12335 * inflow.c (get_inflow_inferior_data): Likewise.
12336 * infrun.c (save_infcall_suspend_state): Likewise.
12337 * jit.c (jit_reader_load): Likewise.
12338 (get_jit_objfile_data): Likewise.
12339 (get_jit_program_space_data): Likewise.
12340 (jit_object_open_impl): Likewise.
12341 (jit_symtab_open_impl): Likewise.
12342 (jit_block_open_impl): Likewise.
12343 (jit_frame_sniffer): Likewise.
12344 * linux-fork.c (add_fork): Likewise.
12345 * maint.c (make_command_stats_cleanup): Likewise.
12346 * objfiles.c (get_objfile_pspace_data): Likewise.
12347 * opencl-lang.c (struct lval_closure): Likewise.
12348 * osdata.c (osdata_start_osdata): Likewise.
12349 * progspace.c (new_address_space): Likewise.
12350 (add_program_space): Likewise.
12351 * remote-sim.c (get_sim_inferior_data): Likewise.
12352 * sh-tdep.c (sh_gdbarch_init): Likewise.
12353 * skip.c (Ignore): Likewise.
12354 (skip_delete_command): Likewise.
12355 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12356 (library_list_start_library): Likewise.
12357 (solib_aix_current_sos): Likewise.
12358 * solib-darwin.c (get_darwin_info): Likewise.
12359 (darwin_current_sos): Likewise.
12360 * solib-dsbt.c (get_dsbt_info): Likewise.
12361 * solib-ia64-hpux.c (new_so_list): Likewise.
12362 (ia64_hpux_get_solib_linkage_addr): Likewise.
12363 * solib-spu.c (append_ocl_sos): Likewise.
12364 (spu_current_sos): Likewise.
12365 * solib-svr4.c (get_svr4_info): Likewise.
12366 (svr4_keep_data_in_core): Likewise.
12367 (library_list_start_library): Likewise.
12368 (svr4_default_sos): Likewise.
12369 (svr4_read_so_list): Likewise.
12370 * solib-target.c (library_list_start_library): Likewise.
12371 (solib_target_current_sos): Likewise.
12372 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12373 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12374 * symfile.c (default_symfile_segments): Likewise.
12375 * target-descriptions.c (tdesc_data_init): Likewise.
12376 (tdesc_create_reg): Likewise.
12377 (struct tdesc_type *): Likewise.
12378 (tdesc_create_vector): Likewise.
12379 (tdesc_set_struct_size): Likewise.
12380 (struct tdesc_type *): Likewise.
12381 (tdesc_free_feature): Likewise.
12382 (tdesc_create_feature): Likewise.
12383 * windows-nat.c (windows_add_thread): Likewise.
12384 (windows_make_so): Likewise.
12385 * xml-support.c (gdb_xml_body_text): Likewise.
12386 (gdb_xml_create_parser_and_cleanup): Likewise.
12387 (xml_process_xincludes): Likewise.
12388 * xml-syscall.c (allocate_syscalls_info): Likewise.
12389 (syscall_create_syscall_desc): Likewise.
12390
12391 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12392
12393 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12394 function, with code from i386_stap_parse_special_token.
12395 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12396 (i386_stap_parse_special_token): Move code to the two functions
12397 above; simplify it.
12398
12399 2014-01-09 Pedro Alves <palves@redhat.com>
12400 Hui Zhu <hui@codesourcery.com>
12401
12402 PR gdb/16101
12403 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12404 bp_err_string. Don't mark the location shlib_disabled if the
12405 error thrown wasn't a generic or memory error. Catch errors
12406 thrown while inserting breakpoints in overlayed code. Output
12407 error message of software breakpoints.
12408 * remote.c (remote_insert_breakpoint): If this breakpoint has
12409 target-side commands but this stub doesn't support Z0 packets,
12410 throw NOT_SUPPORTED_ERROR error.
12411 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12412 * target.h (target_insert_breakpoint): Extend comment.
12413 (target_insert_hw_breakpoint): Add comment.
12414
12415 2014-01-08 Pedro Alves <palves@redhat.com>
12416
12417 * remote.c (remote_add_thread): Add threads silently if starting
12418 up.
12419 (remote_notice_new_inferior): If in all-stop, and starting up,
12420 don't call notice_new_inferior.
12421 (get_current_thread): New function, factored out from ...
12422 (add_current_inferior_and_thread): ... this. Adjust.
12423 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12424 found any thread, then select the remote's current thread as GDB's
12425 current thread too.
12426
12427 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12428
12429 * NEWS: Create a new section for the next release branch.
12430 Rename the section of the current branch, now that it has
12431 been cut.
12432
12433 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12434
12435 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12436 * version.in: Bump version to 7.7.50.DATE-cvs.
12437
12438 2014-01-08 Yao Qi <yao@codesourcery.com>
12439
12440 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12441 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12442 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12443
12444 2014-01-08 Yao Qi <yao@codesourcery.com>
12445
12446 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12447 return value of bfd_get_filename to symbol_file_add_from_bfd.
12448
12449 2014-01-08 Pierre Muller <muller@sourceware.org>
12450
12451 Fix PR16201.
12452 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12453 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12454 to prim_record_mininal_symbol_and_info.
12455 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12456 in call to prim_record_minimal_symbol_and_info.
12457 (read_pe_exported_syms): Set index field of section_data.
12458
12459 2014-01-07 Andrew Pinski <apinski@cavium.com>
12460
12461 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12462 * features/aarch64.c: Regenerate.
12463
12464 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12465
12466 * target.c (return_null): Define.
12467 (update_current_target): Use it instead of return_zero for
12468 functions that return a pointer.
12469
12470 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12471
12472 * source.c (add_path): Fix check for duplicated paths in the previously
12473 included paths.
12474
12475 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12476
12477 * ada-lang.c: Remove duplicated include statements.
12478 * alphabsd-nat.c: Ditto.
12479 * amd64-darwin-tdep.c: Ditto.
12480 * amd64fbsd-nat.c: Ditto.
12481 * auto-load.c: Ditto.
12482 * ax-gdb.c: Ditto.
12483 * breakpoint.c: Ditto.
12484 * dbxread.c: Ditto.
12485 * fork-child.c: Ditto.
12486 * gdb_usleep.c: Ditto.
12487 * i386-darwin-tdep.c: Ditto.
12488 * i386fbsd-nat.c: Ditto.
12489 * infcmd.c: Ditto.
12490 * inferior.c: Ditto.
12491 * jv-lang.c: Ditto.
12492 * linux-nat.c: Ditto.
12493 * linux-tdep.c: Ditto.
12494 * m68kbsd-nat.c: Ditto.
12495 * m68klinux-nat.c: Ditto.
12496 * microblaze-tdep.c: Ditto.
12497 * mips-linux-tdep.c: Ditto.
12498 * mn10300-tdep.c: Ditto.
12499 * nto-tdep.c: Ditto.
12500 * opencl-lang.c: Ditto.
12501 * osdata.c: Ditto.
12502 * printcmd.c: Ditto.
12503 * regcache.c: Ditto.
12504 * remote-m32r-sdi.c: Ditto.
12505 * remote.c: Ditto.
12506 * symfile.c: Ditto.
12507 * symtab.c: Ditto.
12508 * tilegx-linux-nat.c: Ditto.
12509 * tilegx-tdep.c: Ditto.
12510 * tracepoint.c: Ditto.
12511 * valops.c: Ditto.
12512 * vaxbsd-nat.c: Ditto.
12513 * windows-nat.c: Ditto.
12514 * xtensa-tdep.c: Ditto.
12515
12516 2014-01-07 Yao Qi <yao@codesourcery.com>
12517
12518 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12519
12520 2014-01-07 Yao Qi <yao@codesourcery.com>
12521 Joel Brobecker <brobecker@adacore.com>
12522
12523 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12524 (pdc_write_regs): Likewise.
12525 (fetch_regs_kernel_thread): Likewise.
12526 (store_regs_kernel_thread): Likewise.
12527
12528 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12529
12530 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12531 tagged type objects to their actual type.
12532
12533 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12534
12535 * ada-valprint.c (print_field_values): Add "language" parameter.
12536 Update calls to print_field_values and print_variant_part.
12537 Pass new parameter "language" in call to val_print instead
12538 of "current_language". Replace call to ada_val_print by call
12539 to val_print.
12540 (print_variant_part): Add "language" parameter.
12541 (ada_val_print_struct_union): Update call to print_field_values.
12542
12543 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12544
12545 * ada-valprint.c (ui_memcpy): Delete.
12546 (ada_print_floating): Update documentation. Add empty line
12547 between between function documentation and implementation.
12548 Delete variable "buffer". Use ui_file_xstrdup in place of
12549 ui_file_put. Minor adjustments following this change.
12550
12551 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12552
12553 * ada-valprint.c (ada_val_print_string): New function,
12554 extracted from ada_val_print_array.
12555 (ada_val_print_array): Replace extracted code by call
12556 to ada_val_print_string followed by a return. Move
12557 "else" branch to the function's top block.
12558
12559 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12560
12561 * ada-valprint.c (ada_val_print_array): Move implementation
12562 down. Rename parameter "offset" and "val" into "offset_aligned"
12563 and "original_value" respectively. Add parameter "offset".
12564
12565 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12566
12567 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12568 re-organizing the code. Change the "???" message printed
12569 when target type is a TYPE_CODE_UNDEF into
12570 "<ref to undefined type>".
12571
12572 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12573
12574 * ada-valprint.c (print_record): Delete, implementation inlined...
12575 (ada_val_print_struct_union): ... here. Remove call to
12576 ada_check_typedef in inlined implementation.
12577
12578 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12579
12580 * ada-valprint.c (ada_val_print_gnat_array): New function,
12581 extracted from ada_val_print_1;
12582 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12583 (ada_val_print_flt, ada_val_print_struct_union)
12584 (ada_val_print_ref): Likewise.
12585 (ada_val_print_1): Delete variables i and elttype.
12586 Replace extracted-out code by call to corresponding
12587 new functions.
12588
12589 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12590
12591 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12592
12593 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12594
12595 * ada-valprint.c (ada_val_print_1): Replace calls to
12596 ada_val_print_1 by calls to val_print.
12597
12598 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12599
12600 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12601 Update calls to self accordingly. Replace calls to c_val_print
12602 by calls to val_print.
12603
12604 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12605
12606 * ada-valprint.c (print_record): Delete declaration.
12607 (adjust_type_signedness, ada_val_print_1): Likewise.
12608 (ada_val_print): Move function implementation down.
12609 (print_variant_part, print_field_values, print_record):
12610 Move function implementation up.
12611
12612 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12613
12614 * python/py-type.c (typy_get_name): New function.
12615 (type_object_getset): Add entry for attribute "name".
12616 * NEWS: Add entry mentioning this new attribute.
12617
12618 2014-01-07 Yao Qi <yao@codesourcery.com>
12619
12620 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12621 statement.
12622
12623 2014-01-07 Yao Qi <yao@codesourcery.com>
12624
12625 * gnu-nat.c (info_port_rights): Add qualifier const to
12626 argument args.
12627
12628 2014-01-07 Yao Qi <yao@codesourcery.com>
12629
12630 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12631
12632 2014-01-07 Yao Qi <yao@codesourcery.com>
12633
12634 * gnu-nat.c (make_inf) Update declaration.
12635 (make_inf): Make it static.
12636 (inf_set_traced): Likewise.
12637 (inf_port_to_thread, inf_task_died_status): Likewise.
12638
12639 2014-01-07 Yao Qi <yao@codesourcery.com>
12640
12641 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12642
12643 2014-01-07 Yao Qi <yao@codesourcery.com>
12644
12645 * gnu-nat.c (_initialize_gnu_nat): Declare.
12646
12647 2014-01-07 Yao Qi <yao@codesourcery.com>
12648
12649 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12650 'enum bfd_endian'.
12651 (struct gdbarch_info) <byte_order>: Change type to
12652 'enum bfd_endian'.
12653 <byte_order_for_code>: Likewise.
12654 * gdbarch.c, gdbarch.h: Regenerated.
12655
12656 2014-01-06 Sasha Smundak <asmundak@google.com>
12657
12658 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12659
12660 2014-01-06 Tom Tromey <tromey@redhat.com>
12661
12662 * doublest.c (convert_doublest_to_floatformat): Use const, not
12663 CONST.
12664 * somread.c (som_symtab_read): Likewise.
12665
12666 2014-01-07 Hui Zhu <hui@codesourcery.com>
12667
12668 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12669 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12670 (gdb_bfd_fopen): Ditto.
12671 (gdb_bfd_openr): Ditto.
12672 (gdb_bfd_openw): Ditto.
12673 (gdb_bfd_openr_iovec): Ditto.
12674 (gdb_bfd_fdopenr): Ditto.
12675 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12676 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12677 with xstrdup.
12678 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12679 with xstrdup.
12680 * symfile-mem.c (symbol_file_add_from_memory): Removed
12681 gdb_bfd_stash_filename.
12682
12683 2014-01-03 Doug Evans <dje@google.com>
12684
12685 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12686 output.
12687
12688 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12689
12690 Update year range in copyright notice of all files.
12691
12692 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12693
12694 * top.c (print_gdb_version): Set copyright year to 2014.
12695
12696 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12697
12698 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12699
12700 For older changes see ChangeLog-2013.
12701 \f
12702 Local Variables:
12703 mode: change-log
12704 left-margin: 8
12705 fill-column: 74
12706 version-control: never
12707 coding: utf-8
12708 End:
This page took 0.338064 seconds and 4 git commands to generate.