Add myself as write-after-approval GDB maintainer.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
2
3 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
4 Bertazi".
5
6 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
7
8 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
9 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
10 the list of sections determining GDB_OSABI_IRIX.
11
12 2014-09-09 James Hogan <james.hogan@imgtec.com>
13
14 * MAINTAINERS (Write After Approval): Add "James Hogan".
15
16 2014-09-09 James Hogan <james.hogan@imgtec.com>
17
18 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
19
20 2014-09-09 Joel Brobecker <brobecker@adacore.com>
21
22 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
23
24 2014-09-08 Doug Evans <xdje42@gmail.com>
25
26 PR 17247
27 * guile.c: #include <signal.h>.
28 (_initialize_guile): Block SIGCHLD while initializing Guile.
29
30 Replaces the following, which is reverted.
31
32 2014-07-26 Doug Evans <xdje42@gmail.com>
33
34 PR 17185
35 * configure.ac: Add check for header gc/gc.h.
36 Add check for function setenv.
37 * configure: Regenerate.
38 * config.in: Regenerate.
39 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
40
41 2014-09-08 Doug Evans <xdje42@gmail.com>
42
43 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
44 with named constant. Fix style of pointer comparison.
45 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
46
47 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
48
49 PR gdb/17035
50 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
51 decide whether we display the command on "show user".
52 * cli/cli-script.c (show_user_1): Only verify cmdlines after
53 printing command name.
54 * cli/cli-decode.h (cli_user_command_p): Declare new function.
55 * cli/cli-decode.c (cli_user_command_p): Create helper function
56 to verify whether cmd_list_element is a user-defined command.
57
58 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
59
60 PR python/17355
61 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
62 Fix goto out of TRY_CATCH.
63
64 2014-09-06 Doug Evans <xdje42@gmail.com>
65 Tom Tromey <tromey@redhat.com>
66
67 PR 15276
68 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
69 $_any_caller_matches.
70 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
71 * python/lib/gdb/function/caller_is.py: New file.
72
73 2014-09-06 Doug Evans <xdje42@gmail.com>
74
75 * infcmd.c (program_info): Fix typo.
76
77 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
78
79 PR gdb/17235
80 * stap-probe.c (stap_parse_single_operand): Delete unused variable
81 'number'. New variable 'has_digit'. Rewrite code to deal with
82 subexpressions on SDT probes.
83
84 2014-09-04 Pedro Alves <palves@redhat.com>
85
86 * c-exp.y (parse_number): Skip handling base-switching prefixes if
87 the input is only one character long.
88
89 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
90
91 PR fortran/17237
92 * f-valprint.c (f_val_print): Specify the correct print option to
93 use when printing integer values.
94
95 2014-09-04 Gary Benson <gbenson@redhat.com>
96
97 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
98 Remove code to cope with LWPs wrapped as PIDs.
99 Add assertions to ensure no wrapped LWPs are passed.
100
101 2014-09-04 Pedro Alves <palves@redhat.com>
102
103 * value.c (value_ranges_copy_adjusted): New function, factored out
104 from ...
105 (value_contents_copy_raw): ... here.
106 (unpack_value_bits_as_long_1): Rename back to ...
107 (unpack_bits_as_long): ... this. Remove 'original_value' and
108 'result' parameters. Change return type to LONGEST.
109 (unpack_value_bits_as_long): Delete.
110 (unpack_value_field_as_long_1): Delete.
111 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
112 (unpack_value_bitfield): New function.
113 (value_field_bitfield): Reimplement using unpack_value_bitfield.
114 (value_fetch_lazy): Use unpack_value_bitfield.
115 * value.h (unpack_value_bits_as_long): Delete declaration.
116
117 2014-09-03 Sasha Smundak <asmundak@google.com>
118
119 * python/py-frame.c (frapy_read_register): New function.
120
121 2014-09-03 James Hogan <james.hogan@imgtec.com>
122
123 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
124 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
125
126 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
127
128 PR python/16699
129 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
130 function.
131 (add_cmd): Set "completer_handle_brkchars" to NULL.
132 * cli/cli-decode.h (struct cmd_list_element)
133 <completer_handle_brkchars>: New field.
134 * command.h (completer_ftype_void): New typedef.
135 (set_cmd_completer_handle_brkchars): New prototype.
136 * completer.c (set_gdb_completion_word_break_characters): New
137 function.
138 (complete_line_internal): Call "completer_handle_brkchars"
139 callback from command.
140 * completer.h: Include "command.h".
141 (set_gdb_completion_word_break_characters): New prototype.
142 * python/py-cmd.c (cmdpy_completer_helper): New function.
143 (cmdpy_completer_handle_brkchars): New function.
144 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
145 (cmdpy_init): Set completer_handle_brkchars to
146 cmdpy_completer_handle_brkchars.
147
148 2014-09-03 Gary Benson <gbenson@redhat.com>
149
150 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
151 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
152 Loop conditions changed to equivalent form.
153 (struct x86_debug_reg_state): Updated dr_ref_count comment.
154 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
155 ALL_DEBUG_ADDRESS_REGISTERS.
156
157 2014-09-03 Joel Brobecker <brobecker@adacore.com>
158
159 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
160 description fix.
161
162 2014-09-02 Doug Evans <dje@google.com>
163
164 * typeprint.c (find_global_typedef): Fix comment.
165
166 2014-09-02 Gary Benson <gbenson@redhat.com>
167
168 * i386-nat.h: Renamed as...
169 * x86-nat.h: New file. All type, function and variable name
170 prefixes changed from "i386_" to "x86_". All references updated.
171 * i386-nat.c: Renamed as...
172 * x86-nat.c: New file. All type, function and variable name
173 prefixes changed from "i386_" to "x86_". All references updated.
174 * common/i386-xstate.h: Renamed as...
175 * common/x86-xstate.h: New file. All type, function and variable
176 name prefixes changed from "i386_" to "x86_". All references
177 updated.
178 * nat/i386-cpuid.h: Renamed as...
179 * nat/x86-cpuid.h: New file. All type, function and variable name
180 prefixes changed from "i386_" to "x86_". All references updated.
181 * nat/i386-gcc-cpuid.h: Renamed as...
182 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
183 name prefixes changed from "i386_" to "x86_". All references
184 updated.
185 * nat/i386-dregs.h: Renamed as...
186 * nat/x86-dregs.h: New file. All type, function and variable name
187 prefixes changed from "i386_" to "x86_". All references updated.
188 * nat/i386-dregs.c: Renamed as...
189 * nat/x86-dregs.c: New file. All type, function and variable name
190 prefixes changed from "i386_" to "x86_". All references updated.
191
192 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
193
194 * varobj.c (_initialize_varobj): Move to the end of file.
195
196 2014-08-29 Gary Benson <gbenson@redhat.com>
197
198 * common/common-exceptions.h: New file.
199 * common/common-exceptions.c: Likewise.
200 * Makefile.in (SFILES): Add common/common-exceptions.c.
201 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
202 (COMMON_OBS): Add common-exceptions.o.
203 (common-exceptions.o): New rule.
204 * exceptions.h (common-exceptions.h): Include.
205 (gdb_setjmp.h): Do not include.
206 (return_reason): Moved to common-exceptions.h.
207 (enum return_reason): Likewise.
208 (RETURN_MASK): Likewise.
209 (typedef return_mask): Likewise.
210 (enum errors): Likewise.
211 (struct gdb_exception): Likewise.
212 (exceptions_state_mc_init): Likewise.
213 (exceptions_state_mc_action_iter): Likewise.
214 (exceptions_state_mc_action_iter_1): Likewise.
215 (TRY_CATCH): Likewise.
216 (throw_exception): Likewise.
217 (throw_verror): Likewise.
218 (throw_vquit): Likewise.
219 (throw_error): Likewise.
220 (throw_quit): Likewise.
221 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
222 (enum catcher_action): Likewise.
223 (struct catcher): Likewise.
224 (current_catcher): Likewise.
225 (catcher_list_size): Likewise.
226 (exceptions_state_mc_init): Likewise.
227 (catcher_pop): Likewise.
228 (exceptions_state_mc): Likewise.
229 (exceptions_state_mc_action_iter): Likewise.
230 (exceptions_state_mc_action_iter_1): Likewise.
231 (throw_exception): Likewise.
232 (exception_messages): Likewise.
233 (exception_messages_size): Likewise.
234 (throw_it): Likewise.
235 (throw_verror): Likewise.
236 (throw_vquit): Likewise.
237 (throw_error): Likewise.
238 (throw_quit): Likewise.
239 (prepare_to_throw_exception): New function.
240
241 2014-08-29 Gary Benson <gbenson@redhat.com>
242
243 * common/gdb_setjmp.h: New file.
244 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
245 * configure.ac: Move sigsetjmp check...
246 * common/common.m4: ...here.
247 * configure: Regenerate.
248 * cp-support.c (SIGJMP_BUF): Delete.
249 (SIGSETJMP): Likewise.
250 (SIGLONGJMP): Likewise.
251 * exceptions.h (gdb_setjmp.h): Include.
252 (setjmp.h): Do not include.
253 (EXCEPTIONS_SIGJMP_BUF): Delete.
254 (EXCEPTIONS_SIGSETJMP): Likewise.
255 (EXCEPTIONS_SIGLONGJMP): Likewise.
256 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
257 from gdb_setjmp.h.
258 * exceptions.c: Likewise.
259
260 2014-08-29 Gary Benson <gbenson@redhat.com>
261
262 * cleanups.h: Moved to...
263 * common/cleanups.h: New file.
264 * cleanups.c: Moved to...
265 * common/cleanups.c: New file. Include common-defs.h and
266 cleanups.h. Do not include defs.h.
267 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
268 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
269 (cleanups.o): New rule.
270
271 2014-08-29 Gary Benson <gbenson@redhat.com>
272
273 * common/errors.h (internal_warning): New declaration.
274 (internal_vwarning): Likewise.
275 * common/errors.c (internal_warning): New function.
276 * utils.h (internal_warning): Don't declare.
277 (internal_vwarning): Likewise.
278 * utils.c (internal_warning): Removed.
279
280 2014-08-29 Gary Benson <gbenson@redhat.com>
281
282 * main.c (captured_main): Use warning during startup.
283 Prefix startup warning messages with command name.
284
285 2014-08-29 Gary Benson <gbenson@redhat.com>
286
287 * main.c (captured_main): Handle usage errors with error.
288
289 2014-08-29 Gary Benson <gbenson@redhat.com>
290
291 * go32-nat.c (go32_create_inferior): Replace a fprintf/
292 exit pair with a call to error. Wrap the message with _().
293
294 2014-08-29 Gary Benson <gbenson@redhat.com>
295
296 * main.c (captured_main): Replace a fprintf/exit
297 pair with a call to error. Wrap the message with _().
298
299 2014-08-29 Gary Benson <gbenson@redhat.com>
300
301 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
302 pairs with calls to error. Wrap the message with _().
303
304 2014-08-29 Gary Benson <gbenson@redhat.com>
305
306 * utils.c (vwarning): Protect calls to target_terminal_ours
307 and wrap_here.
308
309 2014-08-29 Gary Benson <gbenson@redhat.com>
310
311 * exceptions.c (print_flush): Protect calls to
312 target_terminal_ours and wrap_here.
313
314 2014-08-29 Gary Benson <gbenson@redhat.com>
315
316 * utils.h (filtered_printing_initialized): New declaration.
317 * utils.c (abort_with_message): New function.
318 (internal_vproblem): Use abort_with_message for first level
319 recursive internal problems, and if gdb_stderr is not set up.
320 Protect calls to target_terminal_ours, begin_line and query.
321
322 2014-08-28 Doug Evans <dje@google.com>
323
324 * symtab.c (in_prologue): Move definition to better spot.
325 (skip_prologue_using_sal): Ditto.
326
327 2014-08-28 Doug Evans <dje@google.com>
328
329 * symtab.c (find_function_start_sal): Move definition to better spot.
330
331 2014-08-28 Yao Qi <yao@codesourcery.com>
332
333 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
334 found_stack_adjust in forward scan. Remove condition check
335 on found_stack_adjust which is always true. Indent the code.
336
337 2014-08-28 Yao Qi <yao@codesourcery.com>
338
339 * dwarf2read.c (dwarf_decode_lines): Update declaration.
340 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
341 (dwarf_decode_lines): Remove argument
342 want_line_info. Remove condition check on want_line_info.
343 Callers update.
344
345 2014-08-27 Doug Evans <dje@google.com>
346
347 * dwarf2read.c (dwarf_record_line): Fix typo.
348
349 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
350
351 * target.h (struct target_ops::to_terminal_save_ours): Remove
352 declaration.
353 (target_terminal_save_ours): Remove macro.
354 * target-delegates.c: Regenerate.
355 * inf-child.c (inf_child_target): Don't set the nonexistent
356 field to_terminal_save_ours.
357 * inferior.h (child_terminal_save_ours): Remove declaration.
358 * terminal.h (gdb_save_tty_state): New declaration.
359 * inflow.c (child_terminal_save_ours): Rename to ...
360 (gdb_save_tty_state): ... this.
361 * tui/tui.c: Include terminal.h.
362 (tui_enable): Use gdb_save_tty_state instead of
363 target_terminal_save_ours.
364 (tui_disable): Likewise.
365
366 2014-08-25 Doug Evans <dje@google.com>
367
368 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
369 Pass NULL instead of 0 for context pointer.
370
371 2014-08-25 Yao Qi <yao@codesourcery.com>
372
373 * dwarf2read.c: Fix grammatical error.
374
375 2014-08-24 Yao Qi <yao@codesourcery.com>
376
377 * dwarf2read.c (scan_partial_symbols): Update comments.
378 Rename argument 'need_pc' with 'set_addrmap'.
379 (add_partial_namespace): Rename argument 'need_pc' with
380 'set_addrmap'.
381 (add_partial_module): Likewise.
382 (add_partial_subprogram): Likewise. Update comments.
383 (dwarf2_name): Fix typo.
384
385 2014-08-22 Doug Evans <dje@google.com>
386
387 PR 17276
388 * dwarf2read.c (dwarf_record_line_p): New function.
389 (dwarf_decode_lines_1): Ignore subsequent line number entries
390 for the same line if any entry had a non-zero discriminator.
391
392 2014-08-22 Doug Evans <dje@google.com>
393
394 * buildsym.h (record_line_ftype): New typedef.
395 (record_line): Use it.
396 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
397 (dwarf_decode_lines_1): Call them.
398
399 2014-08-22 Yao Qi <yao@codesourcery.com>
400
401 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
402 (ctf_end): Remove code.
403
404 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
405
406 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
407 (linux_make_corefile_notes): call update_thread_list, protected against
408 exceptions.
409
410 2014-08-21 Pedro Alves <palves@redhat.com>
411
412 * infcmd.c (attach_command): Remove comment.
413
414 2014-08-21 Bin Cheng <bin.cheng@arm.com>
415
416 * aarch64-linux-nat.c (dr_changed_t): Change the type from
417 unsigned LONGEST to ULONGEST.
418
419 2014-08-20 Pedro Alves <palves@redhat.com>
420
421 * Makefile.in (check-read1): New rule.
422
423 2014-08-20 Joel Brobecker <brobecker@adacore.com>
424
425 * value.c (value_from_contents_and_address): Strip resolved_type's
426 typedef layers before checking its TYPE_DATA_LOCATION.
427
428 2014-08-20 Pedro Alves <palves@redhat.com>
429
430 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
431
432 2014-08-20 Yao Qi <yao@codesourcery.com>
433
434 * amd64-tdep.c (amd64_classify): Add a blank line after the
435 example. Move "*/" to a new line.
436 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
437 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
438 * dwarf2read.c (psymtab_include_file_name): Likewise.
439
440 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
441 Pedro Alves <palves@redhat.com>
442
443 PR symtab/14604
444 PR symtab/14605
445 * ada-lang.c (coerce_unspec_val_to_type): Use
446 value_contents_copy_raw.
447 * ada-valprint.c (val_print_packed_array_elements): Adjust.
448 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
449 * cp-valprint.c (cp_print_value_fields): Let the common printing
450 code handle optimized out values.
451 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
452 * d-valprint.c (dynamic_array_type): Use
453 value_bits_any_optimized_out.
454 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
455 check_any_valid fields.
456 (check_pieced_value_bits): Delete and inline ...
457 (check_pieced_synthetic_pointer): ... here.
458 (check_pieced_value_validity): Delete.
459 (check_pieced_value_invalid): Delete.
460 (pieced_value_funcs): Remove check_validity and check_any_valid
461 fields.
462 (read_pieced_value): Use mark_value_bits_optimized_out.
463 (write_pieced_value): Switch to use
464 mark_value_bytes_optimized_out.
465 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
466 of assuming the whole value is optimized out.
467 * findvar.c (read_frame_register_value): Remove special handling
468 of optimized out registers.
469 (value_from_register): Use mark_value_bytes_optimized_out.
470 * frame-unwind.c (frame_unwind_got_optimized): Use
471 mark_value_bytes_optimized_out.
472 * jv-valprint.c (java_value_print): Adjust.
473 (java_print_value_fields): Let the common printing code handle
474 optimized out values.
475 * mips-tdep.c (mips_print_register): Remove special handling of
476 optimized out registers.
477 * opencl-lang.c (lval_func_check_validity): Delete.
478 (lval_func_check_any_valid): Delete.
479 (opencl_value_funcs): Remove check_validity and check_any_valid
480 fields.
481 * p-valprint.c (pascal_object_print_value_fields): Let the common
482 printing code handle optimized out values.
483 * stack.c (read_frame_arg): Remove special handling of optimized
484 out values. Fetch both VAL and ENTRYVAL before comparing
485 contents. Adjust to value_available_contents_eq rename.
486 * valprint.c (valprint_check_validity)
487 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
488 (val_print_array_elements): Adjust.
489 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
490 (value_bits_any_optimized_out): New function.
491 (value_entirely_covered_by_range_vector): New function, factored
492 out from value_entirely_unavailable.
493 (value_entirely_unavailable): Reimplement.
494 (value_entirely_optimized_out): New function.
495 (insert_into_bit_range_vector): New function, factored out from
496 mark_value_bits_unavailable.
497 (mark_value_bits_unavailable): Reimplement.
498 (struct ranges_and_idx): New struct.
499 (find_first_range_overlap_and_match): New function, factored out
500 from value_available_contents_bits_eq.
501 (value_available_contents_bits_eq): Rename to ...
502 (value_contents_bits_eq): ... this. Check both unavailable
503 contents and optimized out contents.
504 (value_available_contents_eq): Rename to ...
505 (value_contents_eq): ... this.
506 (allocate_value_lazy): Remove reference to the old optimized_out
507 boolean.
508 (allocate_optimized_out_value): Use
509 mark_value_bytes_optimized_out.
510 (require_not_optimized_out): Adjust to check whether the
511 optimized_out vec is empty.
512 (ranges_copy_adjusted): New function, factored out from
513 value_contents_copy_raw.
514 (value_contents_copy_raw): Also copy the optimized out ranges.
515 Assert the destination ranges aren't optimized out.
516 (value_contents_copy): Update comment, remove call to
517 require_not_optimized_out.
518 (value_contents_equal): Adjust to check whether the optimized_out
519 vec is empty.
520 (set_value_optimized_out, value_optimized_out_const): Delete.
521 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
522 New functions.
523 (value_entirely_optimized_out, value_bits_valid): Delete.
524 (value_copy): Take a VEC copy of the 'optimized_out' field.
525 (value_primitive_field): Remove special handling of optimized out.
526 (value_fetch_lazy): Assert that lazy values have no unavailable
527 regions. Use value_bits_any_optimized_out. Remove some special
528 handling for optimized out values.
529 * value.h: Add intro comment about <optimized out> and
530 <unavailable>.
531 (struct lval_funcs): Remove check_validity and check_any_valid
532 fields.
533 (set_value_optimized_out, value_optimized_out_const): Remove.
534 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
535 New declarations.
536 (value_bits_any_optimized_out): New declaration.
537 (value_bits_valid): Delete declaration.
538 (value_available_contents_eq): Rename to ...
539 (value_contents_eq): ... this, and extend comments.
540
541 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
542
543 Fix -fsanitize=address on unreadable inferior strings.
544 * valprint.c (val_print_string): Fix access before BUFFER.
545
546 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
547
548 * target.c (target_struct_size): Remove.
549 (target_struct_allocsize): Remove.
550 (DEFAULT_ALLOCSIZE): Remove.
551 (target_ops_p): New typedef.
552 (DEF_VEC_P (target_ops_p)): New vector type.
553 (target_structs): Change type to VEC (target_ops_p).
554 (add_target_with_completer): Replace "push" code by VEC_safe_push.
555 (find_default_run_target): Rewrite for loop following changes to
556 target_structs.
557
558 2014-08-19 Joel Brobecker <brobecker@adacore.com>
559
560 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
561 Adjust code accordingly. Adjust function description comment.
562
563 2014-08-19 Yao Qi <yao@codesourcery.com>
564
565 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
566 types.
567
568 2014-08-19 Alan Modra <amodra@gmail.com>
569
570 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
571 * config.in: Regenerate.
572 * configure: Regenerate.
573
574 2014-08-19 Tom Tromey <tromey@redhat.com>
575 Gary Benson <gbenson@redhat.com>
576
577 * common/common-debug.h: New file.
578 * common/common-debug.c: Likewise.
579 * debug.c: Likewise.
580 * Makefile.in (SFILES): Add common/common-debug.c.
581 (HFILES_NO_SRCDIR): Add common/common-debug.h.
582 (COMMON_OBS): Add common-debug.o and debug.o.
583 (common-debug.o): New rule.
584 * common/common-defs.h: Include common-debug.h.
585 * common/agent.c (debug_agent_printf): New function.
586 (DEBUG_AGENT): Redefine.
587 * nat/i386-dregs.c (debug_printf): Undefine.
588
589 2014-08-19 Gary Benson <gbenson@redhat.com>
590
591 * common/common-defs.h: Include print-utils.h.
592 * utils.h: Do not include print-utils.h.
593
594 2014-08-19 Tom Tromey <tromey@redhat.com>
595 Gary Benson <gbenson@redhat.com>
596
597 * common/common-types.h: New file.
598 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
599 * common/common-defs.h: Include common-types.h.
600 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
601 (ULONGEST): Remove.
602
603 2014-08-19 Tom Tromey <tromey@redhat.com>
604 Gary Benson <gbenson@redhat.com>
605
606 * common/errors.h: New file.
607 * common/errors.c: Likewise.
608 * Makefile.in (SFILES): Add common/errors.c.
609 (HFILES_NO_SRCDIR): Add common/errors.h.
610 (COMMON_OBS): Add errors.o.
611 (errors.o): New rule.
612 * common/common-defs.h: Include errors.h.
613 * utils.h (perror_with_name, error, verror, warning, vwarning):
614 Don't declare.
615 * common/common-utils.h: (malloc_failure, internal_error):
616 Likewise.
617
618 2014-08-19 Gary Benson <gbenson@redhat.com>
619
620 * utils.c (internal_vproblem): Always print the message.
621
622 2014-08-18 Doug Evans <dje@google.com>
623
624 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
625
626 2014-08-18 Joel Brobecker <brobecker@adacore.com>
627
628 * ada-typeprint.c (type_is_full_subrange_of_target_type):
629 Return 0 if TYPE is dynamic.
630 (print_range): Add handling of dynamic ranges.
631
632 2014-08-18 Keven Boell <keven.boell@intel.com>
633 Joel Brobecker <brobecker@adacore.com>
634
635 * gdbtypes.h (struct main_type): Add field "data_location".
636 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
637 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
638 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
639 a dynamic data location.
640 (resolve_dynamic_type): Add DW_AT_data_location handling.
641 (copy_recursive, copy_type): Copy the data_location information
642 when present.
643 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
644 * value.c (value_from_contents_and_address): Add
645 DW_AT_data_location handling.
646
647 2014-08-18 Keven Boell <keven.boell@intel.com>
648 Joel Brobecker <brobecker@adacore.com>
649
650 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
651 field "get_object_address".
652 * dwarf2expr.c (execute_stack_op): Add handling for
653 DW_OP_push_object_address.
654 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
655 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
656 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
657 (dwarf_expr_get_obj_addr): New function.
658 (dwarf_expr_ctx_funcs): Add get_object_address field.
659 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
660 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
661 (dwarf2_evaluate_property): Add parameter "address". Use it.
662 (needs_get_obj_addr): New function.
663 (needs_frame_ctx_funcs): Add get_object_address field.
664 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
665 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
666 (resolve_dynamic_array): Likewise.
667
668 2014-08-18 Joel Brobecker <brobecker@adacore.com>
669
670 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
671 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
672 fixed value for records and unions for which some GNAT encodings
673 are present.
674
675 2014-08-18 Joel Brobecker <brobecker@adacore.com>
676
677 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
678 rewrite to avoid "else if" and "else" constructs. Should be
679 a no-op in practice.
680
681 2014-08-18 Joel Brobecker <brobecker@adacore.com>
682
683 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
684 of lexical block.
685
686 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
687
688 PR c++/17132
689 * eval.c: Update all calls to find_overload_match.
690 * valarith.c: Likewise.
691 (value_user_defined_cpp_op, value_user_defined_op): New
692 argument NOSIDE. Update all callers.
693 * valops.c (find_overload_match): New argument NOSIDE.
694 * value.h (find_overload_match): Update signature.
695
696 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
697
698 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
699 'items' methods instead of 'iteritems' method on dictionaries.
700
701 2014-08-15 Doug Evans <dje@google.com>
702
703 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
704 closer to use.
705
706 2014-08-15 Doug Evans <dje@google.com>
707
708 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
709
710 2014-08-15 Doug Evans <dje@google.com>
711
712 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
713
714 2014-08-15 Doug Evans <dje@google.com>
715
716 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
717 unused.
718
719 2014-08-15 Eli Zaretskii <eliz@gnu.org>
720
721 * dcache.h: Include target.h, to avoid compile time warnings.
722
723 2014-08-15 Joel Brobecker <brobecker@adacore.com>
724
725 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
726 frame_info" partial declaration.
727 * gdbarch.h: Regenerate.
728
729 2014-08-15 Yao Qi <yao@codesourcery.com>
730
731 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
732 Add parameter 'decode_for_pst_p'. Callers update.
733
734 2014-08-13 Yao Qi <yao@codesourcery.com>
735
736 PR build/17104
737 * configure.ac: Use local variable 'pos'.
738 * configure: Regenerated.
739
740 2014-08-11 Doug Evans <dje@google.com>
741
742 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
743 message, it is redundant with "Reading symbols from ..." message.
744
745 2014-08-10 Doug Evans <xdje42@gmail.com>
746
747 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
748
749 2014-08-09 Yao Qi <yao@codesourcery.com>
750
751 PR remote/9053
752 * remote.c (remote_xfer_partial): Remove dead code.
753
754 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
755
756 * ia64-linux-tdep.c: Include "regset.h".
757 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
758 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
759 (ia64_linux_supply_fpregset): New function.
760 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
761 (ia64_linux_regset_from_core_section): New function.
762 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
763 method.
764
765 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
766
767 * m68klinux-tdep.c: Include "regset.h".
768 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
769 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
770 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
771 (m68k_linux_regset_from_core_section): New function.
772 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
773 method.
774
775 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
776
777 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
778 function. Move logic to...
779 (tilegx_linux_regmap): ... this new register map.
780 (tilegx_linux_regset): Refer to register map, replace supply
781 method by regcache_supply_regset, and add collect method.
782 * tilegx-tdep.h (enum tilegx_regnum): New enum value
783 TILEGX_FIRST_EASY_REGNUM.
784
785 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
786
787 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
788 that calls regcache_supply_regset and handles the EPC register
789 separately. Move main logic to...
790 (score7_linux_gregmap): ... this new register map.
791 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
792 (score7_linux_gregset): Refer to register map. Add collect method.
793 (score7_linux_regset_from_core_section): Replace
794 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
795 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
796 (struct regset): Delete unused forward declaraction.
797 (struct pt_regs): Delete structure definition.
798 (elf_gregset_t): Delete typedef.
799
800 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
801
802 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
803 (nios2_core_regset): Add collect method.
804
805 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
806
807 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
808 platform-independent and don't write to read-only input buffer.
809 (m32r_linux_collect_gregset): New function.
810 (m32r_linux_gregset): Add collect method.
811
812 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
813
814 * hppa-linux-tdep.c (greg_map): Rename to...
815 (hppa_linux_gregmap): ... this. Also convert to
816 regcache_map_entry format.
817 (hppa_linux_supply_regset): Delete function.
818 (hppa_linux_supply_fpregset): Delete function. Move logic to...
819 (hppa_linux_fpregmap): ... this new register map.
820 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
821 register map, replace supply method by regcache_supply_regset, and
822 add collect method regcache_collect_regset.
823
824 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
825
826 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
827 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
828 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
829 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
830 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
831 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
832 (frv_linux_supply_gregset): Replace main logic by call to
833 regcache_supply_regset, but keep clearing gr32-gr63.
834 (frv_linux_supply_fpregset): Delete function.
835 (frv_linux_gregset): Refer to appropriate register map and add
836 regcache_collect_regset as the collect method.
837 (frv_linux_fpregset): Likewise. Also exchange the supply method
838 by regcache_supply_regset.
839
840 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
841
842 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
843 by call to alpha_supply_int_regs.
844 (alpha_linux_collect_gregset): New function.
845 (alpha_linux_supply_fpregset): Replace logic by call to
846 alpha_supply_fp_regs.
847 (alpha_linux_collect_fpregset): New function.
848 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
849
850 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
851
852 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
853 by call to regcache_collect_regset.
854 (supply_gregset, supply_fpregset): Call regcache_supply_regset
855 instead of aarch64_linux_supply_gregset/_fpregset.
856 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
857 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
858 header file instead.
859 (aarch64_linux_supply_gregset, supply_gregset_from_core)
860 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
861 functions. Move logic to ...
862 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
863 register maps.
864 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
865 refer to new register maps, replace *_regset_from_core by
866 regcache_supply_regset, and also use regcache_collect_regset.
867 * aarch64-linux-tdep.h: Include "regset.h".
868 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
869 Delete prototypes.
870 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
871 macros, moved from C source file.
872 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
873 variable declarations.
874
875 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
876
877 * s390-linux-nat.c: Include "regset.h".
878 (regmap_gregset): Delete macro.
879 (s390_64_regmap_gregset): New register map for
880 regcache_supply/_collect_regset.
881 (s390_64_gregset): New regset.
882 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
883 (regmap_fpregset): Delete macro.
884 (s390_native_supply, s390_native_collect): Delete functions.
885 (supply_gregset, fill_gregset): Replace s390-specific regmap
886 handling by a call to regcache_supply/_collect_regset.
887 (supply_fpregset, fill_fpregset): Call regcache_supply/
888 _collect_regset instead of s390_native_supply/_collect.
889 (fetch_regset, store_regset): Likewise. Also change the last
890 parameter to a regset instead of a regmap.
891 (s390_linux_fetch_inferior_registers)
892 (390_linux_store_inferior_registers): Adjust last parameter in
893 calls to fetch_regset and store_regset.
894 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
895 (s390_gregmap): ... this. Also make static const and convert to
896 regcache_map_entry format.
897 (s390x_regmap_gregset): Delete.
898 (s390_regmap_fpregset): Rename to...
899 (s390_fpregmap): ... this. Make static const and convert to
900 regcache_map_entry format.
901 (s390_regmap_upper, s390_regmap_last_break)
902 (s390x_regmap_last_break, s390_regmap_system_call)
903 (s390_regmap_tdb): Likewise.
904 (s390_supply_regset, s390_collect_regset): Remove functions.
905 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
906 s390_supply_regset.
907 (s390_gregset, s390_fpregset, s390_upper_regset)
908 (s390_last_break_regset, s390x_last_break_regset)
909 (s390_system_call_regset, s390_tdb_regset): Make global and
910 replace s390_supply/_collect_regset by regcache_supply/
911 _collect_regset.
912 (s390x_gregset): Delete.
913 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
914 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
915 (s390_regmap_fpregset, s390_regmap_last_break)
916 (s390x_regmap_last_break, s390_regmap_system_call)
917 (s390_regmap_tdb): Delete global variable declarations.
918 (s390_gregset, s390_fpregset, s390_last_break_regset)
919 (s390x_last_break_regset, s390_system_call_regset)
920 (s390_tdb_regset): New global variable declarations.
921
922 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
923
924 * regcache.c: Include "regset.h".
925 (regcache_transfer_regset): New local function.
926 (regcache_supply_regset, regcache_collect_regset): New functions.
927 * regcache.h (struct regcache_map_entry): New structure.
928 (REGCACHE_MAP_SKIP): New enum value.
929 (regcache_supply_regset, regcache_collect_regset): New prototypes.
930
931 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
932
933 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
934 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
935 (ppc_linux_collect_gregset ): Likewise.
936 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
937 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
938 (ppc_collect_vrregset): Likewise.
939 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
940 Likewise.
941
942 2014-08-07 Yao Qi <yao@codesourcery.com>
943
944 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
945 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
946 * remote.c (remote_read_bytes): Likewise.
947
948 2014-08-07 Yao Qi <yao@codesourcery.com>
949
950 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
951
952 2014-08-07 Yao Qi <yao@codesourcery.com>
953
954 PR remote/17230
955 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
956 TARGET_XFER_OK instead of 0.
957
958 2014-08-07 Gary Benson <gbenson@redhat.com>
959
960 * common/common-defs.h: Include errno.h.
961 * defs.h: Do not include errno.h.
962 * ada-typeprint.c: Likewise.
963 * c-typeprint.c: Likewise.
964 * core-regset.c: Likewise.
965 * corefile.c: Likewise.
966 * corelow.c: Likewise.
967 * event-loop.c: Likewise.
968 * f-typeprint.c: Likewise.
969 * gnu-nat.c: Likewise.
970 * go32-nat.c: Likewise.
971 * i386gnu-nat.c: Likewise.
972 * m2-typeprint.c: Likewise.
973 * nat/linux-btrace.c: Likewise.
974 * p-typeprint.c: Likewise.
975 * procfs.c: Likewise.
976 * remote-sim.c: Likewise.
977 * rs6000-nat.c: Likewise.
978 * target.c: Likewise.
979 * typeprint.c: Likewise.
980 * ui-file.c: Likewise.
981 * valops.c: Likewise.
982 * valprint.c: Likewise.
983
984 2014-08-07 Gary Benson <gbenson@redhat.com>
985
986 * common/common-defs.h: Include string.h.
987 * aarch64-tdep.c: Do not include string.h.
988 * ada-exp.y: Likewise.
989 * ada-lang.c: Likewise.
990 * ada-lex.l: Likewise.
991 * ada-typeprint.c: Likewise.
992 * ada-valprint.c: Likewise.
993 * aix-thread.c: Likewise.
994 * alpha-linux-tdep.c: Likewise.
995 * alpha-mdebug-tdep.c: Likewise.
996 * alpha-nat.c: Likewise.
997 * alpha-osf1-tdep.c: Likewise.
998 * alpha-tdep.c: Likewise.
999 * alphanbsd-tdep.c: Likewise.
1000 * amd64-dicos-tdep.c: Likewise.
1001 * amd64-linux-tdep.c: Likewise.
1002 * amd64-nat.c: Likewise.
1003 * amd64-sol2-tdep.c: Likewise.
1004 * amd64fbsd-tdep.c: Likewise.
1005 * amd64obsd-tdep.c: Likewise.
1006 * arch-utils.c: Likewise.
1007 * arm-linux-nat.c: Likewise.
1008 * arm-linux-tdep.c: Likewise.
1009 * arm-tdep.c: Likewise.
1010 * arm-wince-tdep.c: Likewise.
1011 * armbsd-tdep.c: Likewise.
1012 * armnbsd-nat.c: Likewise.
1013 * armnbsd-tdep.c: Likewise.
1014 * armobsd-tdep.c: Likewise.
1015 * avr-tdep.c: Likewise.
1016 * ax-gdb.c: Likewise.
1017 * ax-general.c: Likewise.
1018 * bcache.c: Likewise.
1019 * bfin-tdep.c: Likewise.
1020 * breakpoint.c: Likewise.
1021 * build-id.c: Likewise.
1022 * buildsym.c: Likewise.
1023 * c-exp.y: Likewise.
1024 * c-lang.c: Likewise.
1025 * c-typeprint.c: Likewise.
1026 * c-valprint.c: Likewise.
1027 * charset.c: Likewise.
1028 * cli-out.c: Likewise.
1029 * cli/cli-cmds.c: Likewise.
1030 * cli/cli-decode.c: Likewise.
1031 * cli/cli-dump.c: Likewise.
1032 * cli/cli-interp.c: Likewise.
1033 * cli/cli-logging.c: Likewise.
1034 * cli/cli-script.c: Likewise.
1035 * cli/cli-setshow.c: Likewise.
1036 * cli/cli-utils.c: Likewise.
1037 * coffread.c: Likewise.
1038 * common/agent.c: Likewise.
1039 * common/buffer.c: Likewise.
1040 * common/buffer.h: Likewise.
1041 * common/common-utils.c: Likewise.
1042 * common/filestuff.c: Likewise.
1043 * common/filestuff.c: Likewise.
1044 * common/format.c: Likewise.
1045 * common/print-utils.c: Likewise.
1046 * common/rsp-low.c: Likewise.
1047 * common/signals.c: Likewise.
1048 * common/vec.h: Likewise.
1049 * common/xml-utils.c: Likewise.
1050 * core-regset.c: Likewise.
1051 * corefile.c: Likewise.
1052 * corelow.c: Likewise.
1053 * cp-abi.c: Likewise.
1054 * cp-name-parser.y: Likewise.
1055 * cp-support.c: Likewise.
1056 * cp-valprint.c: Likewise.
1057 * cris-tdep.c: Likewise.
1058 * d-exp.y: Likewise.
1059 * darwin-nat.c: Likewise.
1060 * dbxread.c: Likewise.
1061 * dcache.c: Likewise.
1062 * demangle.c: Likewise.
1063 * dicos-tdep.c: Likewise.
1064 * disasm.c: Likewise.
1065 * doublest.c: Likewise.
1066 * dsrec.c: Likewise.
1067 * dummy-frame.c: Likewise.
1068 * dwarf2-frame.c: Likewise.
1069 * dwarf2loc.c: Likewise.
1070 * dwarf2read.c: Likewise.
1071 * elfread.c: Likewise.
1072 * environ.c: Likewise.
1073 * eval.c: Likewise.
1074 * event-loop.c: Likewise.
1075 * exceptions.c: Likewise.
1076 * exec.c: Likewise.
1077 * expprint.c: Likewise.
1078 * f-exp.y: Likewise.
1079 * f-lang.c: Likewise.
1080 * f-typeprint.c: Likewise.
1081 * f-valprint.c: Likewise.
1082 * fbsd-nat.c: Likewise.
1083 * findcmd.c: Likewise.
1084 * findvar.c: Likewise.
1085 * fork-child.c: Likewise.
1086 * frame.c: Likewise.
1087 * frv-linux-tdep.c: Likewise.
1088 * frv-tdep.c: Likewise.
1089 * gdb.c: Likewise.
1090 * gdb_bfd.c: Likewise.
1091 * gdbarch.c: Likewise.
1092 * gdbarch.sh: Likewise.
1093 * gdbtypes.c: Likewise.
1094 * gnu-nat.c: Likewise.
1095 * gnu-v2-abi.c: Likewise.
1096 * gnu-v3-abi.c: Likewise.
1097 * go-exp.y: Likewise.
1098 * go-lang.c: Likewise.
1099 * go32-nat.c: Likewise.
1100 * guile/guile.c: Likewise.
1101 * guile/scm-auto-load.c: Likewise.
1102 * hppa-hpux-tdep.c: Likewise.
1103 * hppa-linux-nat.c: Likewise.
1104 * hppanbsd-tdep.c: Likewise.
1105 * hppaobsd-tdep.c: Likewise.
1106 * i386-cygwin-tdep.c: Likewise.
1107 * i386-dicos-tdep.c: Likewise.
1108 * i386-linux-tdep.c: Likewise.
1109 * i386-nto-tdep.c: Likewise.
1110 * i386-sol2-tdep.c: Likewise.
1111 * i386-tdep.c: Likewise.
1112 * i386bsd-tdep.c: Likewise.
1113 * i386gnu-nat.c: Likewise.
1114 * i386nbsd-tdep.c: Likewise.
1115 * i386obsd-tdep.c: Likewise.
1116 * i387-tdep.c: Likewise.
1117 * ia64-libunwind-tdep.c: Likewise.
1118 * ia64-linux-nat.c: Likewise.
1119 * inf-child.c: Likewise.
1120 * inf-ptrace.c: Likewise.
1121 * inf-ttrace.c: Likewise.
1122 * infcall.c: Likewise.
1123 * infcmd.c: Likewise.
1124 * inflow.c: Likewise.
1125 * infrun.c: Likewise.
1126 * interps.c: Likewise.
1127 * iq2000-tdep.c: Likewise.
1128 * irix5-nat.c: Likewise.
1129 * jv-exp.y: Likewise.
1130 * jv-lang.c: Likewise.
1131 * jv-typeprint.c: Likewise.
1132 * jv-valprint.c: Likewise.
1133 * language.c: Likewise.
1134 * linux-fork.c: Likewise.
1135 * linux-nat.c: Likewise.
1136 * lm32-tdep.c: Likewise.
1137 * m2-exp.y: Likewise.
1138 * m2-typeprint.c: Likewise.
1139 * m32c-tdep.c: Likewise.
1140 * m32r-linux-nat.c: Likewise.
1141 * m32r-linux-tdep.c: Likewise.
1142 * m32r-rom.c: Likewise.
1143 * m32r-tdep.c: Likewise.
1144 * m68hc11-tdep.c: Likewise.
1145 * m68k-tdep.c: Likewise.
1146 * m68kbsd-tdep.c: Likewise.
1147 * m68klinux-nat.c: Likewise.
1148 * m68klinux-tdep.c: Likewise.
1149 * m88k-tdep.c: Likewise.
1150 * machoread.c: Likewise.
1151 * macrocmd.c: Likewise.
1152 * main.c: Likewise.
1153 * mdebugread.c: Likewise.
1154 * mem-break.c: Likewise.
1155 * memattr.c: Likewise.
1156 * memory-map.c: Likewise.
1157 * mep-tdep.c: Likewise.
1158 * mi/mi-cmd-break.c: Likewise.
1159 * mi/mi-cmd-disas.c: Likewise.
1160 * mi/mi-cmd-env.c: Likewise.
1161 * mi/mi-cmd-stack.c: Likewise.
1162 * mi/mi-cmd-var.c: Likewise.
1163 * mi/mi-cmds.c: Likewise.
1164 * mi/mi-console.c: Likewise.
1165 * mi/mi-getopt.c: Likewise.
1166 * mi/mi-interp.c: Likewise.
1167 * mi/mi-main.c: Likewise.
1168 * mi/mi-parse.c: Likewise.
1169 * microblaze-rom.c: Likewise.
1170 * microblaze-tdep.c: Likewise.
1171 * mingw-hdep.c: Likewise.
1172 * minidebug.c: Likewise.
1173 * minsyms.c: Likewise.
1174 * mips-irix-tdep.c: Likewise.
1175 * mips-linux-tdep.c: Likewise.
1176 * mips-tdep.c: Likewise.
1177 * mips64obsd-tdep.c: Likewise.
1178 * mipsnbsd-tdep.c: Likewise.
1179 * mipsread.c: Likewise.
1180 * mn10300-linux-tdep.c: Likewise.
1181 * mn10300-tdep.c: Likewise.
1182 * monitor.c: Likewise.
1183 * moxie-tdep.c: Likewise.
1184 * mt-tdep.c: Likewise.
1185 * nat/linux-btrace.c: Likewise.
1186 * nat/linux-osdata.c: Likewise.
1187 * nat/linux-procfs.c: Likewise.
1188 * nat/linux-ptrace.c: Likewise.
1189 * nat/linux-waitpid.c: Likewise.
1190 * nbsd-tdep.c: Likewise.
1191 * nios2-linux-tdep.c: Likewise.
1192 * nto-procfs.c: Likewise.
1193 * nto-tdep.c: Likewise.
1194 * objc-lang.c: Likewise.
1195 * objfiles.c: Likewise.
1196 * opencl-lang.c: Likewise.
1197 * osabi.c: Likewise.
1198 * osdata.c: Likewise.
1199 * p-exp.y: Likewise.
1200 * p-lang.c: Likewise.
1201 * p-typeprint.c: Likewise.
1202 * parse.c: Likewise.
1203 * posix-hdep.c: Likewise.
1204 * ppc-linux-nat.c: Likewise.
1205 * ppc-sysv-tdep.c: Likewise.
1206 * ppcfbsd-tdep.c: Likewise.
1207 * ppcnbsd-tdep.c: Likewise.
1208 * ppcobsd-tdep.c: Likewise.
1209 * printcmd.c: Likewise.
1210 * procfs.c: Likewise.
1211 * prologue-value.c: Likewise.
1212 * python/py-auto-load.c: Likewise.
1213 * python/py-gdb-readline.c: Likewise.
1214 * ravenscar-thread.c: Likewise.
1215 * regcache.c: Likewise.
1216 * registry.c: Likewise.
1217 * remote-fileio.c: Likewise.
1218 * remote-m32r-sdi.c: Likewise.
1219 * remote-mips.c: Likewise.
1220 * remote-notif.c: Likewise.
1221 * remote-sim.c: Likewise.
1222 * remote.c: Likewise.
1223 * reverse.c: Likewise.
1224 * rs6000-aix-tdep.c: Likewise.
1225 * ser-base.c: Likewise.
1226 * ser-go32.c: Likewise.
1227 * ser-mingw.c: Likewise.
1228 * ser-pipe.c: Likewise.
1229 * ser-tcp.c: Likewise.
1230 * ser-unix.c: Likewise.
1231 * serial.c: Likewise.
1232 * sh-tdep.c: Likewise.
1233 * sh64-tdep.c: Likewise.
1234 * shnbsd-tdep.c: Likewise.
1235 * skip.c: Likewise.
1236 * sol-thread.c: Likewise.
1237 * solib-dsbt.c: Likewise.
1238 * solib-frv.c: Likewise.
1239 * solib-osf.c: Likewise.
1240 * solib-som.c: Likewise.
1241 * solib-spu.c: Likewise.
1242 * solib-target.c: Likewise.
1243 * solib.c: Likewise.
1244 * somread.c: Likewise.
1245 * source.c: Likewise.
1246 * sparc-nat.c: Likewise.
1247 * sparc-sol2-tdep.c: Likewise.
1248 * sparc-tdep.c: Likewise.
1249 * sparc64-tdep.c: Likewise.
1250 * sparc64fbsd-tdep.c: Likewise.
1251 * sparc64nbsd-tdep.c: Likewise.
1252 * sparcnbsd-tdep.c: Likewise.
1253 * spu-linux-nat.c: Likewise.
1254 * spu-multiarch.c: Likewise.
1255 * spu-tdep.c: Likewise.
1256 * stabsread.c: Likewise.
1257 * stack.c: Likewise.
1258 * std-regs.c: Likewise.
1259 * symfile.c: Likewise.
1260 * symmisc.c: Likewise.
1261 * symtab.c: Likewise.
1262 * target.c: Likewise.
1263 * thread.c: Likewise.
1264 * tilegx-linux-nat.c: Likewise.
1265 * tilegx-tdep.c: Likewise.
1266 * top.c: Likewise.
1267 * tracepoint.c: Likewise.
1268 * tui/tui-command.c: Likewise.
1269 * tui/tui-data.c: Likewise.
1270 * tui/tui-disasm.c: Likewise.
1271 * tui/tui-file.c: Likewise.
1272 * tui/tui-layout.c: Likewise.
1273 * tui/tui-out.c: Likewise.
1274 * tui/tui-regs.c: Likewise.
1275 * tui/tui-source.c: Likewise.
1276 * tui/tui-stack.c: Likewise.
1277 * tui/tui-win.c: Likewise.
1278 * tui/tui-windata.c: Likewise.
1279 * tui/tui-winsource.c: Likewise.
1280 * typeprint.c: Likewise.
1281 * ui-file.c: Likewise.
1282 * ui-out.c: Likewise.
1283 * user-regs.c: Likewise.
1284 * utils.c: Likewise.
1285 * v850-tdep.c: Likewise.
1286 * valarith.c: Likewise.
1287 * valops.c: Likewise.
1288 * valprint.c: Likewise.
1289 * value.c: Likewise.
1290 * varobj.c: Likewise.
1291 * vax-tdep.c: Likewise.
1292 * vaxnbsd-tdep.c: Likewise.
1293 * vaxobsd-tdep.c: Likewise.
1294 * windows-nat.c: Likewise.
1295 * xcoffread.c: Likewise.
1296 * xml-support.c: Likewise.
1297 * xstormy16-tdep.c: Likewise.
1298 * xtensa-linux-nat.c: Likewise.
1299
1300 2014-08-07 Gary Benson <gbenson@redhat.com>
1301
1302 * common/common-defs.h: Include gdb_assert.h.
1303 * aarch64-tdep.c: Do not include gdb_assert.h.
1304 * addrmap.c: Likewise.
1305 * aix-thread.c: Likewise.
1306 * alpha-linux-tdep.c: Likewise.
1307 * alpha-mdebug-tdep.c: Likewise.
1308 * alphanbsd-tdep.c: Likewise.
1309 * amd64-nat.c: Likewise.
1310 * amd64-tdep.c: Likewise.
1311 * amd64bsd-nat.c: Likewise.
1312 * amd64fbsd-nat.c: Likewise.
1313 * amd64fbsd-tdep.c: Likewise.
1314 * amd64nbsd-nat.c: Likewise.
1315 * amd64nbsd-tdep.c: Likewise.
1316 * amd64obsd-nat.c: Likewise.
1317 * amd64obsd-tdep.c: Likewise.
1318 * arch-utils.c: Likewise.
1319 * arm-tdep.c: Likewise.
1320 * armbsd-tdep.c: Likewise.
1321 * auxv.c: Likewise.
1322 * bcache.c: Likewise.
1323 * bfin-tdep.c: Likewise.
1324 * blockframe.c: Likewise.
1325 * breakpoint.c: Likewise.
1326 * bsd-kvm.c: Likewise.
1327 * bsd-uthread.c: Likewise.
1328 * buildsym.c: Likewise.
1329 * c-exp.y: Likewise.
1330 * c-lang.c: Likewise.
1331 * charset.c: Likewise.
1332 * cleanups.c: Likewise.
1333 * cli-out.c: Likewise.
1334 * cli/cli-decode.c: Likewise.
1335 * cli/cli-dump.c: Likewise.
1336 * cli/cli-logging.c: Likewise.
1337 * cli/cli-script.c: Likewise.
1338 * cli/cli-utils.c: Likewise.
1339 * coffread.c: Likewise.
1340 * common/common-utils.c: Likewise.
1341 * common/queue.h: Likewise.
1342 * common/signals.c: Likewise.
1343 * common/vec.h: Likewise.
1344 * complaints.c: Likewise.
1345 * completer.c: Likewise.
1346 * corelow.c: Likewise.
1347 * cp-abi.c: Likewise.
1348 * cp-name-parser.y: Likewise.
1349 * cp-namespace.c: Likewise.
1350 * cp-support.c: Likewise.
1351 * cris-tdep.c: Likewise.
1352 * dbxread.c: Likewise.
1353 * dictionary.c: Likewise.
1354 * doublest.c: Likewise.
1355 * dsrec.c: Likewise.
1356 * dummy-frame.c: Likewise.
1357 * dwarf2-frame-tailcall.c: Likewise.
1358 * dwarf2-frame.c: Likewise.
1359 * dwarf2expr.c: Likewise.
1360 * dwarf2loc.c: Likewise.
1361 * dwarf2read.c: Likewise.
1362 * eval.c: Likewise.
1363 * event-loop.c: Likewise.
1364 * exceptions.c: Likewise.
1365 * expprint.c: Likewise.
1366 * f-valprint.c: Likewise.
1367 * fbsd-nat.c: Likewise.
1368 * findvar.c: Likewise.
1369 * frame-unwind.c: Likewise.
1370 * frame.c: Likewise.
1371 * frv-tdep.c: Likewise.
1372 * gcore.c: Likewise.
1373 * gdb-dlfcn.c: Likewise.
1374 * gdb_bfd.c: Likewise.
1375 * gdbarch.c: Likewise.
1376 * gdbarch.sh: Likewise.
1377 * gdbtypes.c: Likewise.
1378 * gnu-nat.c: Likewise.
1379 * gnu-v3-abi.c: Likewise.
1380 * go-lang.c: Likewise.
1381 * guile/scm-exception.c: Likewise.
1382 * guile/scm-gsmob.c: Likewise.
1383 * guile/scm-lazy-string.c: Likewise.
1384 * guile/scm-math.c: Likewise.
1385 * guile/scm-pretty-print.c: Likewise.
1386 * guile/scm-safe-call.c: Likewise.
1387 * guile/scm-utils.c: Likewise.
1388 * guile/scm-value.c: Likewise.
1389 * h8300-tdep.c: Likewise.
1390 * hppa-hpux-nat.c: Likewise.
1391 * hppa-tdep.c: Likewise.
1392 * hppanbsd-tdep.c: Likewise.
1393 * hppaobsd-tdep.c: Likewise.
1394 * i386-darwin-nat.c: Likewise.
1395 * i386-darwin-tdep.c: Likewise.
1396 * i386-nto-tdep.c: Likewise.
1397 * i386-tdep.c: Likewise.
1398 * i386bsd-nat.c: Likewise.
1399 * i386fbsd-tdep.c: Likewise.
1400 * i386gnu-nat.c: Likewise.
1401 * i386nbsd-tdep.c: Likewise.
1402 * i386obsd-tdep.c: Likewise.
1403 * i387-tdep.c: Likewise.
1404 * ia64-libunwind-tdep.c: Likewise.
1405 * ia64-tdep.c: Likewise.
1406 * inf-ptrace.c: Likewise.
1407 * inf-ttrace.c: Likewise.
1408 * infcall.c: Likewise.
1409 * infcmd.c: Likewise.
1410 * infrun.c: Likewise.
1411 * inline-frame.c: Likewise.
1412 * interps.c: Likewise.
1413 * jv-lang.c: Likewise.
1414 * jv-typeprint.c: Likewise.
1415 * linux-fork.c: Likewise.
1416 * linux-nat.c: Likewise.
1417 * linux-thread-db.c: Likewise.
1418 * m32c-tdep.c: Likewise.
1419 * m32r-linux-nat.c: Likewise.
1420 * m32r-tdep.c: Likewise.
1421 * m68k-tdep.c: Likewise.
1422 * m68kbsd-nat.c: Likewise.
1423 * m68kbsd-tdep.c: Likewise.
1424 * m88k-tdep.c: Likewise.
1425 * machoread.c: Likewise.
1426 * macroexp.c: Likewise.
1427 * macrotab.c: Likewise.
1428 * maint.c: Likewise.
1429 * mdebugread.c: Likewise.
1430 * memory-map.c: Likewise.
1431 * mep-tdep.c: Likewise.
1432 * mi/mi-common.c: Likewise.
1433 * microblaze-tdep.c: Likewise.
1434 * mingw-hdep.c: Likewise.
1435 * mips-linux-nat.c: Likewise.
1436 * mips-linux-tdep.c: Likewise.
1437 * mips-tdep.c: Likewise.
1438 * mips64obsd-tdep.c: Likewise.
1439 * mipsnbsd-tdep.c: Likewise.
1440 * mn10300-linux-tdep.c: Likewise.
1441 * mn10300-tdep.c: Likewise.
1442 * moxie-tdep.c: Likewise.
1443 * mt-tdep.c: Likewise.
1444 * nat/linux-btrace.c: Likewise.
1445 * nat/linux-osdata.c: Likewise.
1446 * nat/linux-ptrace.c: Likewise.
1447 * nat/mips-linux-watch.c: Likewise.
1448 * nios2-linux-tdep.c: Likewise.
1449 * nios2-tdep.c: Likewise.
1450 * objc-lang.c: Likewise.
1451 * objfiles.c: Likewise.
1452 * obsd-nat.c: Likewise.
1453 * opencl-lang.c: Likewise.
1454 * osabi.c: Likewise.
1455 * parse.c: Likewise.
1456 * ppc-linux-nat.c: Likewise.
1457 * ppc-sysv-tdep.c: Likewise.
1458 * ppcfbsd-nat.c: Likewise.
1459 * ppcfbsd-tdep.c: Likewise.
1460 * ppcnbsd-nat.c: Likewise.
1461 * ppcnbsd-tdep.c: Likewise.
1462 * ppcobsd-nat.c: Likewise.
1463 * ppcobsd-tdep.c: Likewise.
1464 * printcmd.c: Likewise.
1465 * procfs.c: Likewise.
1466 * prologue-value.c: Likewise.
1467 * psymtab.c: Likewise.
1468 * python/py-lazy-string.c: Likewise.
1469 * python/py-value.c: Likewise.
1470 * regcache.c: Likewise.
1471 * reggroups.c: Likewise.
1472 * registry.c: Likewise.
1473 * remote-sim.c: Likewise.
1474 * remote.c: Likewise.
1475 * rs6000-aix-tdep.c: Likewise.
1476 * rs6000-tdep.c: Likewise.
1477 * s390-linux-tdep.c: Likewise.
1478 * score-tdep.c: Likewise.
1479 * ser-base.c: Likewise.
1480 * ser-mingw.c: Likewise.
1481 * sh-tdep.c: Likewise.
1482 * sh64-tdep.c: Likewise.
1483 * solib-darwin.c: Likewise.
1484 * solib-spu.c: Likewise.
1485 * solib-svr4.c: Likewise.
1486 * source.c: Likewise.
1487 * sparc-nat.c: Likewise.
1488 * sparc-sol2-tdep.c: Likewise.
1489 * sparc-tdep.c: Likewise.
1490 * sparc64-sol2-tdep.c: Likewise.
1491 * sparc64-tdep.c: Likewise.
1492 * sparc64fbsd-tdep.c: Likewise.
1493 * sparc64nbsd-tdep.c: Likewise.
1494 * sparc64obsd-tdep.c: Likewise.
1495 * sparcnbsd-tdep.c: Likewise.
1496 * sparcobsd-tdep.c: Likewise.
1497 * spu-multiarch.c: Likewise.
1498 * spu-tdep.c: Likewise.
1499 * stabsread.c: Likewise.
1500 * stack.c: Likewise.
1501 * symfile.c: Likewise.
1502 * symtab.c: Likewise.
1503 * target-descriptions.c: Likewise.
1504 * target-memory.c: Likewise.
1505 * target.c: Likewise.
1506 * tic6x-linux-tdep.c: Likewise.
1507 * tic6x-tdep.c: Likewise.
1508 * tilegx-linux-nat.c: Likewise.
1509 * tilegx-tdep.c: Likewise.
1510 * top.c: Likewise.
1511 * tramp-frame.c: Likewise.
1512 * tui/tui-out.c: Likewise.
1513 * tui/tui-winsource.c: Likewise.
1514 * ui-out.c: Likewise.
1515 * user-regs.c: Likewise.
1516 * utils.c: Likewise.
1517 * v850-tdep.c: Likewise.
1518 * valops.c: Likewise.
1519 * value.c: Likewise.
1520 * varobj.c: Likewise.
1521 * vax-nat.c: Likewise.
1522 * xml-syscall.c: Likewise.
1523 * xml-tdesc.c: Likewise.
1524 * xstormy16-tdep.c: Likewise.
1525 * xtensa-linux-nat.c: Likewise.
1526 * xtensa-tdep.c: Likewise.
1527
1528 2014-08-07 Gary Benson <gbenson@redhat.com>
1529
1530 * common/common-defs.h: Include common-utils.h.
1531 * defs.h: Do not include common-utils.h.
1532 * common/gdb_assert.h: Likewise.
1533 * darwin-nat.h: Likewise.
1534 * nat/linux-btrace.c: Likewise.
1535 * target/waitstatus.h: Likewise.
1536
1537 2014-08-07 Gary Benson <gbenson@redhat.com>
1538
1539 * common/common-defs.h: Include ptid.h.
1540 * defs.h: Do not include ptid.h.
1541 * inferior.h: Likewise.
1542 * infrun.h: Likewise.
1543 * nat/linux-btrace.h: Likewise.
1544 * nat/linux-osdata.h: Likewise.
1545 * target/waitstatus.h: Likewise.
1546
1547 2014-08-07 Gary Benson <gbenson@redhat.com>
1548
1549 * common/common-defs.h: Include gdb_locale.h.
1550 * defs.h: Do not include gdb_locale.h.
1551
1552 2014-08-07 Gary Benson <gbenson@redhat.com>
1553
1554 * common/common-defs.h: Include gdb/signals.h.
1555 * defs.h: Do not include gdb/signals.h.
1556
1557 2014-08-07 Gary Benson <gbenson@redhat.com>
1558
1559 * common/common-defs.h: Include pathmax.h.
1560 * defs.h: Do not include pathmax.h.
1561
1562 2014-08-07 Gary Benson <gbenson@redhat.com>
1563
1564 * common/common-defs.h: Include libiberty.h.
1565 * defs.h: Do not include libiberty.h.
1566 * common/queue.h: Likewise.
1567 * cp-name-parser.y: Likewise.
1568 * mi/mi-cmd-catch.c: Likewise.
1569 * python/python.c: Likewise.
1570
1571 2014-08-07 Gary Benson <gbenson@redhat.com>
1572
1573 * common/common-defs.h: Include ansidecl.h.
1574 * defs.h: Do not include ansidecl.h.
1575 * common/buffer.h: Likewise.
1576 * common/common-utils.h: Likewise.
1577
1578 2014-08-07 Gary Benson <gbenson@redhat.com>
1579
1580 * common/common-defs.h: Include stddef.h.
1581 * defs.h: Do not include stddef.h.
1582 * common/common-utils.h: Likewise.
1583 * amd64fbsd-nat.c: Likewise.
1584 * bcache.c: Likewise.
1585 * charset.c: Likewise.
1586 * common/buffer.h: Likewise.
1587 * common/vec.h: Likewise.
1588 * i386bsd-nat.c: Likewise.
1589 * nat/linux-btrace.h: Likewise.
1590 * ppcfbsd-nat.c: Likewise.
1591 * ppcnbsd-tdep.h: Likewise.
1592 * ppcobsd-nat.c: Likewise.
1593 * ppcobsd-tdep.h: Likewise.
1594 * python/py-gdb-readline.c: Likewise.
1595
1596 2014-08-07 Gary Benson <gbenson@redhat.com>
1597
1598 * common/common-defs.h: Include stdarg.h.
1599 * defs.h: Do not include stdarg.h.
1600 * ada-lang.c: Likewise.
1601 * common/common-utils.h: Likewise.
1602 * guile/scm-string.c: Likewise.
1603 * guile/scm-utils.c: Likewise.
1604 * m32c-tdep.c: Likewise.
1605
1606 2014-08-07 Gary Benson <gbenson@redhat.com>
1607
1608 * common/common-defs.h: Include stdlib.h.
1609 * defs.h: Do not include stdlib.h.
1610 * addrmap.c: Likewise.
1611 * bcache.c: Likewise.
1612 * common/buffer.c: Likewise.
1613 * common/common-utils.c: Likewise.
1614 * cp-name-parser.y: Likewise.
1615 * go32-nat.c: Likewise.
1616 * mn10300-linux-tdep.c: Likewise.
1617 * nat/linux-osdata.c: Likewise.
1618 * tui/tui.c: Likewise.
1619 * windows-nat.c: Likewise.
1620
1621 2014-08-07 Gary Benson <gbenson@redhat.com>
1622
1623 * common/common-defs.h: Include stdio.h.
1624 * defs.h: Do not include stdio.h.
1625 * ada-lang.c: Likewise.
1626 * common/buffer.c: Likewise.
1627 * common/common-utils.c: Likewise.
1628 * cp-name-parser.y: Likewise.
1629 * gnu-nat.c: Likewise.
1630 * go32-nat.c: Likewise.
1631 * i386gnu-nat.c: Likewise.
1632 * proc-api.c: Likewise.
1633 * proc-events.c: Likewise.
1634 * proc-flags.c: Likewise.
1635 * proc-why.c: Likewise.
1636 * python/python-internal.h: Likewise.
1637 * target-memory.c: Likewise.
1638 * tui/tui-io.c: Likewise.
1639 * tui/tui.c: Likewise.
1640
1641 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1642
1643 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1644 (scan_dyntag_auxv): Same.
1645
1646 2014-08-06 Yao Qi <yao@codesourcery.com>
1647
1648 * amd64-linux-nat.c: Remove duplicated include
1649 "x86-linux-nat.h".
1650 * i386-linux-nat.c: Likewise.
1651
1652 2014-08-06 Yao Qi <yao@codesourcery.com>
1653
1654 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1655 operand" with "Special opcode" in comments.
1656
1657 2014-08-05 Gary Benson <gbenson@redhat.com>
1658
1659 * interps.c (initialize_interps): Remove prototype.
1660 (interpreter_initialized): Remove static global.
1661 (interp_add): Do not call initialize_interps.
1662 (initialize_interps): Remove function.
1663
1664 2014-08-05 Gary Benson <gbenson@redhat.com>
1665
1666 * utils.c (vwarning): Remove spurious va_end.
1667
1668 2014-08-05 Alan Modra <amodra@gmail.com>
1669
1670 * charset.c (convert_between_encodings): Cast result of obstack_base.
1671 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1672 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1673 (read_unwind_info): Use size_t for some locals.
1674 * jit.c (finalize_symtab): Likewise.
1675 * utils.c (hashtab_obstack_allocate): Likewise.
1676 * symmisc.c (print_objfile_statistics): Update format strings.
1677
1678 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1679
1680 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1681 (Changes in GDB 7.8): ... here.
1682
1683 2014-08-04 Tom Tromey <tromey@redhat.com>
1684
1685 * target.c (set_targetdebug): New function.
1686 (initialize_targets): Pass set_targetdebug when creating "set
1687 debug target".
1688
1689 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1690
1691 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1692 if detecting a variable-sized field that is not the last field.
1693 Fix struct type length computation.
1694
1695 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1696
1697 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1698 Add debug trace.
1699
1700 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1701
1702 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1703 Remove "+ 8" offset in computation of CHAIN_VMA.
1704
1705 2014-07-31 Doug Evans <dje@google.com>
1706
1707 * inflow.c (child_terminal_inferior): Add comment.
1708 (child_terminal_ours_for_output): Add comment.
1709 (child_terminal_ours): Add comment.
1710 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1711 (linux_nat_terminal_ours): Add comment.
1712
1713 2014-07-31 Gary Benson <gbenson@redhat.com>
1714
1715 * common/btrace-common.h: Do not include defs.h or server.h.
1716 * nat/mips-linux-watch.h: Likewise.
1717 * gdb-dlfcn.h: Do not include defs.h.
1718 * tracefile.h: Likewise.
1719
1720 2014-07-30 Roland McGrath <mcgrathr@google.com>
1721
1722 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1723
1724 2014-07-30 Tom Tromey <tromey@redhat.com>
1725
1726 * bsd-kvm.c (bsd_kvm_open): Constify.
1727 * corelow.c (core_open): Constify.
1728 * ctf.c (ctf_open): Constify.
1729 * dbug-rom.c (dbug_open): Constify.
1730 * exec.c (exec_open): Constify.
1731 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1732 * microblaze-rom.c (picobug_open): Constify.
1733 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1734 Constify.
1735 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1736 * record-btrace.c (record_btrace_open): Constify.
1737 * record-full.c (record_full_core_open_1, record_full_open_1)
1738 (record_full_open): Constify.
1739 * remote-m32r-sdi.c (m32r_open): Constify.
1740 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1741 (rockhopper_open, lsi_open): Constify.
1742 * remote-sim.c (gdbsim_open): Constify.
1743 * remote.c (remote_open, extended_remote_open, remote_open_1):
1744 Constify.
1745 * target.h (struct target_ops) <to_open>: Make "arg" const.
1746 * tracefile-tfile.c (tfile_open): Constify.
1747
1748 2014-07-30 Tom Tromey <tromey@redhat.com>
1749
1750 * breakpoint.c (map_breakpoint_numbers): Update.
1751 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1752 (get_number_const): New function.
1753 (get_number): Rewrite using get_number_const.
1754 (init_number_or_range): Make "string" const.
1755 (number_is_in_list): Make "list" const.
1756 * cli/cli-utils.h (get_number_const): Declare.
1757 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1758 (init_number_or_range, number_is_in_list): Update.
1759 * printcmd.c (map_display_numbers): Update.
1760 * value.c (value_from_history_ref): Constify.
1761 * value.h (value_from_history_ref): Update.
1762
1763 2014-07-30 Tom Tromey <tromey@redhat.com>
1764
1765 * corefile.c (hook_type, call_extra_exec_file_hooks)
1766 (specify_exec_file_hook): Constify.
1767 * exec.c (exec_file_attach): Make "filename" const.
1768 * gdbcore.h (deprecated_exec_file_display_hook)
1769 (specify_exec_file_hook, exec_file_attach): Constify.
1770 * main.c (captured_main): Use catch_command_errors_const.
1771
1772 2014-07-30 Tom Tromey <tromey@redhat.com>
1773
1774 * target.c (open_target): New function.
1775 (add_target_with_completer, add_deprecated_target_alias): Use
1776 set_cmd_sfunc, set_cmd_context.
1777 (debug_to_open): Remove.
1778 (setup_target_debug): Update.
1779
1780 2014-07-30 Yao Qi <yao@codesourcery.com>
1781
1782 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1783 comments.
1784 * parse.c (exp_iterate): Update comments.
1785
1786 2014-07-30 Gary Benson <gbenson@redhat.com>
1787
1788 * common/common-defs.h: New file.
1789 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1790 * defs.h: Include common-defs.h.
1791 Do not include config.h or build-gnulib/config.h.
1792
1793 2014-07-30 Gary Benson <gbenson@redhat.com>
1794
1795 * common/common-utils.h: Do not include config.h.
1796 * nat/linux-btrace.h: Likewise.
1797
1798 2014-07-30 Gary Benson <gbenson@redhat.com>
1799
1800 * btrace.c: Include defs.h.
1801 * common/ptid.c: Include defs.h or server.h as appropriate.
1802 * nat/mips-linux-watch.c: Likewise.
1803
1804 2014-07-29 Tom Tromey <tromey@redhat.com>
1805
1806 * target.c (target_is_pushed): Simplify.
1807
1808 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1809
1810 GDB 7.8 released.
1811
1812 2014-07-29 Yao Qi <yao@codesourcery.com>
1813
1814 PR gdb/17206
1815 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1816
1817 2014-07-28 Doug Evans <xdje42@gmail.com>
1818
1819 PR guile/17203
1820 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1821 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1822 parameters.
1823
1824 2014-07-28 Will Newton <will.newton@linaro.org>
1825
1826 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1827 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1828 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1829 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1830 (THUMB2_EABI_SYSCALL): Likewise.
1831 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1832 struct tramp_frame.
1833 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1834 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1835
1836 2014-07-27 Doug Evans <xdje42@gmail.com>
1837
1838 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1839
1840 2014-07-27 Doug Evans <xdje42@gmail.com>
1841
1842 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1843
1844 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1845 Doug Evans <xdje42@gmail.com>
1846
1847 PR guile/17146
1848 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1849 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1850 * configure.ac: Try to use guild to compile an scm file, if it fails
1851 then disable guile support.
1852 * configure: Regenerate.
1853 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1854 GUILE_FILE_LIST.
1855 (GUILE_COMPILED_FILES): New variable.
1856 (GUILE_FILES) Update.
1857 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1858 (stamp-guile): Compile scm files.
1859 * guile/guile.c (boot_guile_support): New function.
1860 (standard_throw_args_p): New function.
1861 (print_standard_throw_error, print_throw_error): New functions.
1862 (handle_boot_error): New function.
1863 (initialize_scheme_side): Rewrite to call boot_guile_support.
1864 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1865 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1866
1867 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1868 Doug Evans <xdje42@gmail.com>
1869
1870 PR guile/17146
1871 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1872 * guile/lib/gdb/support.scm: New file.
1873 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1874 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1875 All uses updated.
1876 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1877 All uses updated.
1878 (%assert-type): Ditto, and renamed to assert-type.
1879 (%exception-print-style): Delete.
1880
1881 2014-07-26 Doug Evans <xdje42@gmail.com>
1882
1883 PR build/17105
1884 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1885 * configure: Regenerate.
1886 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1887 PYTHON_FILES.
1888 (PYTHON_FILES): New variable.
1889 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1890 (GUILE_FILES): New variable.
1891 (stamp-python, install-python, uninstall-python): Handle empty
1892 file list.
1893 (stamp-guile, install-guile, uninstall-guile): Ditto.
1894
1895 2014-07-26 Doug Evans <xdje42@gmail.com>
1896
1897 PR guile/17177
1898 * guile/lib/gdb.scm (pretty-printers): Export.
1899 (set-pretty-printers!): Export.
1900 * guile/lib/gdb/printing.scm (gdb module): Update.
1901 (prepend-pretty-printer!, append-pretty-printer!): Update.
1902 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1903 (pretty_printer_list_var): Delete.
1904 (pretty_printer_list): New static global.
1905 (gdbscm_pretty_printers): New function.
1906 (gdbscm_set_pretty_printers_x): New function.
1907 (ppscm_find_pretty_printer_from_gdb): Update.
1908 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1909 (gdbscm_initialize_pretty_printers): Update.
1910
1911 2014-07-26 Doug Evans <xdje42@gmail.com>
1912
1913 PR 17185
1914 * configure.ac: Add check for header gc/gc.h.
1915 Add check for function setenv.
1916 * configure: Regenerate.
1917 * config.in: Regenerate.
1918 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1919
1920 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1921
1922 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1923 variation in gdbarch matching.
1924
1925 2014-07-25 Tom Tromey <tromey@redhat.com>
1926
1927 * exec.c (using_exec_ops): Remove.
1928 (exec_close_1): Update. Remove extraneous block, reindent.
1929 (add_target_sections): Use target_is_pushed.
1930
1931 2014-07-25 Pedro Alves <palves@redhat.com>
1932
1933 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1934 * monitor.c (monitor_create_inferior): Likewise.
1935 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1936 * remote-sim.c (gdbsim_create_inferior): Likewise.
1937 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1938 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1939 * windows-nat.c (do_initial_windows_stuff): Likewise.
1940
1941 2014-07-25 Pedro Alves <palves@redhat.com>
1942
1943 * NEWS: Mention signal passing and "signal" command changes.
1944 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1945 comment.
1946 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1947 call.
1948 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1949 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1950 (jump_command): Adjust clear_proceed_status call.
1951 (signal_command): Warn if other thread that are resumed have
1952 signals that will be delivered. Adjust clear_proceed_status call.
1953 (until_next_command, finish_command)
1954 (proceed_after_attach_callback, attach_command_post_wait)
1955 (attach_command): Adjust clear_proceed_status call.
1956 * infrun.c (proceed_after_vfork_done): Likewise.
1957 (proceed_after_attach_callback): Adjust comment.
1958 (clear_proceed_status_thread): Clear stop_signal if not in pass
1959 state.
1960 (clear_proceed_status_callback): Delete.
1961 (clear_proceed_status): New 'step' parameter. Only clear the
1962 proceed status of threads the command being prepared is about to
1963 resume.
1964 (proceed): If passed in an explicit signal, override stop_signal
1965 with it. Don't pass the last stop signal to the thread we're
1966 resuming.
1967 (init_wait_for_inferior): Adjust clear_proceed_status call.
1968 (switch_back_to_stepped_thread): Clear the signal if it should not
1969 be passed.
1970 * infrun.h (clear_proceed_status): New 'step' parameter.
1971 (user_visible_resume_ptid): Add comment.
1972 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1973 signal is in pass state.
1974 * remote.c (append_pending_thread_resumptions): Likewise.
1975 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1976
1977 2014-07-25 Tom Tromey <tromey@redhat.com>
1978
1979 * target.h (target_stopped_data_address)
1980 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1981 parentheses.
1982
1983 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1984
1985 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1986 comments.
1987 (avr_pointer_to_address): Likewise.
1988
1989 2014-07-24 Tom Tromey <tromey@redhat.com>
1990
1991 * monitor.c (compile_pattern): Update.
1992 * target.h (struct target_ops) <to_shortname, to_longname,
1993 to_doc>: Now const.
1994
1995 2014-07-24 Tom Tromey <tromey@redhat.com>
1996
1997 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1998 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1999 (add_info_alias, add_com): Make "doc" const.
2000 (print_doc_line): Make "str" const.
2001 (delete_cmd): Update.
2002 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2003 (print_doc_line): Update.
2004 * cli/cli-script.c (document_command): Update.
2005 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2006 (add_com, add_info, add_info_alias): Update.
2007 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2008 * python/py-cmd.c (cmdpy_destroyer): Update.
2009
2010 2014-07-24 Tom Tromey <tromey@redhat.com>
2011
2012 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2013 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2014 (help_cmd_list): Constify.
2015 (lookup_cmd): Update.
2016 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2017 const.
2018 (help_cmd_list, apropos_cmd): Update.
2019 * cli/cli-script.c (show_user): Update.
2020 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2021 * cli/cli-setshow.h (cmd_show_list): Update.
2022 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2023 (cmd_show_list): Update.
2024 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2025 * python/py-cmd.c (cmdpy_destroyer): Update.
2026
2027 2014-07-24 Tom Tromey <tromey@redhat.com>
2028
2029 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2030 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2031 const.
2032 * command.h (deprecate_cmd): Update.
2033 * maint.c (maintenance_do_deprecate): Add casts.
2034
2035 2014-07-24 Tom Tromey <tromey@redhat.com>
2036
2037 * cli/cli-decode.c (help_cmd): Make parameter "const".
2038 * cli/cli-decode.h (help_cmd): Update.
2039
2040 2014-07-24 Tom Tromey <tromey@redhat.com>
2041
2042 * stack.c (up_silently_base, down_silently_base): Make argument
2043 const.
2044
2045 2014-07-24 Tom Tromey <tromey@redhat.com>
2046
2047 * solib.c (solib_add): Make "pattern" const.
2048 * solib.h (solib_add): Update.
2049
2050 2014-07-24 Tom Tromey <tromey@redhat.com>
2051
2052 * remote.c (remote_serial_open, print_packet, putpkt)
2053 (putpkt_binary): Constify.
2054 * remote.h (putpkt): Update.
2055
2056 2014-07-24 Tom Tromey <tromey@redhat.com>
2057
2058 * monitor.c (monitor_open): Make "args" const.
2059 * monitor.h (monitor_open): Update.
2060
2061 2014-07-24 Tom Tromey <tromey@redhat.com>
2062
2063 * maint.c (match_bfd_flags): Make "string" const.
2064 (print_bfd_section_info): Remove casts.
2065 (print_objfile_section_info): Make "string" const.
2066
2067 2014-07-24 Tom Tromey <tromey@redhat.com>
2068
2069 * inf-child.c (inf_child_open_target): Make "arg" const.
2070 * inf-child.h (inf_child_open_target): Update.
2071
2072 2014-07-24 Tom Tromey <tromey@redhat.com>
2073
2074 * environ.c (unset_in_environ): Make "var" const.
2075 * environ.h (unset_in_environ): Update.
2076
2077 2014-07-24 Tom Tromey <tromey@redhat.com>
2078
2079 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2080 Make "cmd" const.
2081 (scan_filename_with_cleanup): Likewise.
2082 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2083 Make arguments const.
2084 (restore_command): Update.
2085
2086 2014-07-24 Pedro Alves <palves@redhat.com>
2087
2088 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2089
2090 2014-07-24 Tom Tromey <tromey@redhat.com>
2091 Gary Benson <gbenson@redhat.com>
2092
2093 * nat/linux-ptrace.c (additional_flags): New global.
2094 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2095 additional_flags; don't check GDBSERVER.
2096 (linux_ptrace_set_additional_flags): New function.
2097 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2098 Declare.
2099 * linux-nat.c (_initialize_linux_nat): Call
2100 linux_ptrace_set_additional_flags.
2101
2102 2014-07-24 Tom Tromey <tromey@redhat.com>
2103
2104 * make-target-delegates (munge_type, write_debugmethod): New
2105 functions.
2106 (debug_names): New global.
2107 ($TARGET_DEBUG_PRINTER): New global.
2108 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2109 name.
2110 Write debug methods. Generate init_debug_target.
2111 * target-debug.h: New file.
2112 * target-delegates.c: Rebuild.
2113 * target.c: Include target-debug.h.
2114 (debug_target): Hoist definition.
2115 (target_kill, target_get_section_table, target_memory_map)
2116 (target_flash_erase, target_flash_done, target_detach)
2117 (target_disconnect, target_wait, target_resume)
2118 (target_pass_signals, target_program_signals, target_follow_fork)
2119 (target_mourn_inferior, target_search_memory)
2120 (target_thread_address_space, target_close)
2121 (target_find_new_threads, target_core_of_thread)
2122 (target_verify_memory, target_insert_mask_watchpoint)
2123 (target_remove_mask_watchpoint): Remove targetdebug code.
2124 (debug_to_post_attach, debug_to_prepare_to_store)
2125 (debug_to_files_info, debug_to_insert_breakpoint)
2126 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2127 (debug_to_region_ok_for_hw_watchpoint)
2128 (debug_to_can_accel_watchpoint_condition)
2129 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2130 (debug_to_watchpoint_addr_within_range)
2131 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2132 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2133 (debug_to_terminal_init, debug_to_terminal_inferior)
2134 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2135 (debug_to_terminal_save_ours, debug_to_terminal_info)
2136 (debug_to_load, debug_to_post_startup_inferior)
2137 (debug_to_insert_fork_catchpoint)
2138 (debug_to_remove_fork_catchpoint)
2139 (debug_to_insert_vfork_catchpoint)
2140 (debug_to_remove_vfork_catchpoint)
2141 (debug_to_insert_exec_catchpoint)
2142 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2143 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2144 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2145 (setup_target_debug): Call init_debug_target.
2146 * target.h (TARGET_DEBUG_PRINTER): New macro.
2147 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2148 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2149
2150 2014-07-24 Gary Benson <gbenson@redhat.com>
2151
2152 * exceptions.h (throw_vfatal): Renamed to...
2153 (throw_vquit): New declaration.
2154 (throw_quit): Likewise.
2155 * exceptions.c (throw_vfatal): Renamed to...
2156 (throw_vquit): New function.
2157 (throw_quit): Likewise.
2158 (throw_error): Call throw_verror rather than throw_it.
2159 * utils.h (vfatal): Removed.
2160 (fatal): Likewise.
2161 * utils.c (vfatal): Removed.
2162 (fatal): Likewise.
2163 (internal_verror): Replaced call to fatal with call to throw_quit.
2164 (quit): Replaced calls to fatal with calls to throw_quit.
2165
2166 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2167
2168 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2169 target_read_code.
2170
2171 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2172
2173 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2174 less than zero in conditional expression.
2175
2176 2014-07-23 Tom Tromey <tromey@redhat.com>
2177
2178 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2179 ($INTRO_PART): Don't match whitespace.
2180 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2181 argument matching.
2182 ($METHOD): Add $METHOD_TRAILER.
2183 (trim): Rewrite.
2184 (scan_target_h): New sub.
2185 Change main loop not to collect state.
2186 * target-delegates.c: Rebuild.
2187
2188 2014-07-23 Gary Benson <gbenson@redhat.com>
2189
2190 * cp-support.c (gdb_demangle): Fix build on systems without
2191 sigaltstack.
2192
2193 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2194
2195 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2196 for reference entry value target data value.
2197
2198 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2199
2200 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2201 value_available_contents_eq.
2202
2203 2014-07-22 Pedro Alves <palves@redhat.com>
2204
2205 * value.c (allocate_optimized_out_value): Don't mark value as
2206 non-lazy.
2207
2208 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2209
2210 * MAINTAINERS (Write After Approval): Update my email address.
2211
2212 2014-07-20 Doug Evans <dje@google.com>
2213
2214 PR server/17147
2215 * remote.c (putpkt_binary): Add text to error message.
2216
2217 2014-07-20 Yao Qi <yao@codesourcery.com>
2218
2219 * eval.c: Remove "Chill" from comments.
2220 * gdbtypes.h: Likewise.
2221 * symtab.h: Likewise.
2222
2223 2014-07-20 Yao Qi <yao@codesourcery.com>
2224
2225 * std-operator.def: Update comments to TERNOP_SLICE.
2226
2227 2014-07-20 Yao Qi <yao@codesourcery.com>
2228
2229 * std-operator.def: Remove BINOP_RANGE.
2230 * breakpoint.c (watchpoint_exp_is_const): Update.
2231 * expprint.c (dump_subexp_body_standard): Likewise.
2232 * eval.c (init_array_element): Remove dead code.
2233 (evaluate_subexp_standard): Likewise.
2234
2235 2014-07-20 Yao Qi <yao@codesourcery.com>
2236
2237 * std-operator.def: Remove BINOP_IN.
2238 * breakpoint.c (watchpoint_exp_is_const): Update.
2239 * eval.c (evaluate_subexp_standard): Likewise.
2240 * expprint.c (dump_subexp_body_standard): Likewise.
2241
2242 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2243
2244 * microblaze-tdep.c (microblaze_register_names): Add
2245 the rshr and rslr register names.
2246 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2247 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2248 Use of tdesc_numbered_register. Use of
2249 microblaze_register_g_packet_guesses. Use of
2250 tdesc_use_registers. Use of set_gdbarch_register_type.
2251 (microblaze_register_g_packet_guesses): New.
2252 * microblaze-tdep.h (microblaze_reg_num): Add
2253 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2254 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2255 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2256 * features/microblaze-core.xml: New file.
2257 * features/microblaze-stack-protect.xml: New file.
2258 * features/microblaze-with-stack-protect.c: New file.
2259 * features/microblaze-with-stack-protect.xml: New file.
2260 * features/microblaze.xml: New file.
2261 * features/microblaze.c: New file.
2262 * features/Makefile (microblaze-with-stack-protect): Add
2263 microblaze-with-stack-protect microblaze and microblaze-expedite.
2264 * regformats/microblaze-with-stack-protect.dat: New file.
2265 * regformats/microblaze.dat: New file.
2266 * doc/gdb.texinfo (MicroBlaze Features): Added.
2267
2268 2014-07-18 Tom Tromey <tromey@redhat.com>
2269
2270 * exec.c (exec_ops): Now static.
2271 * exec.h (exec_ops): Don't declare.
2272
2273 2014-07-18 Tom Tromey <tromey@redhat.com>
2274
2275 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2276 to find_target_beneath.
2277 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2278 find_target_beneath.
2279 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2280
2281 2014-07-18 Tom Tromey <tromey@redhat.com>
2282
2283 PR gdb/17130:
2284 * utils.c (quit): Use target_supports_terminal_ours.
2285 * target.h (target_supports_terminal_ours): Declare.
2286 * target.c (target_supports_delete_record): Don't check
2287 to_delete_record against NULL.
2288 (target_supports_terminal_ours): New function.
2289
2290 2014-07-18 Tom Tromey <tromey@redhat.com>
2291
2292 PR gdb/17130:
2293 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2294 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2295 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2296 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2297 * windows-nat.c (windows_xfer_partial): Always delegate.
2298 * record-btrace.c (record_btrace_xfer_partial): Simplify
2299 delegation.
2300 (record_btrace_fetch_registers, record_btrace_store_registers)
2301 (record_btrace_prepare_to_store, record_btrace_resume)
2302 (record_btrace_wait, record_btrace_find_new_threads)
2303 (record_btrace_thread_alive): Likewise.
2304 * procfs.c (procfs_xfer_partial): Always delegate.
2305 * corelow.c (core_xfer_partial): Always delegate.
2306 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2307
2308 2014-07-18 Tom Tromey <tromey@redhat.com>
2309
2310 * exec.c (exec_make_note_section): Move earlier.
2311
2312 2014-07-17 Doug Evans <dje@google.com>
2313
2314 PR gdb/17170
2315 * maint.c (count_symtabs_and_blocks): Handle NULL
2316 current_program_space.
2317 (report_command_stats): Check global enabled flag in addition to
2318 recorded enabled flag.
2319 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2320
2321 2014-07-16 Pedro Alves <palves@redhat.com>
2322
2323 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2324
2325 2014-07-16 Tom Tromey <tromey@redhat.com>
2326
2327 * target.h (struct target_ops) <to_delete_record>: Reformat
2328 comment.
2329
2330 2014-07-16 Tom Tromey <tromey@redhat.com>
2331
2332 * target-delegates.c: Rebuild.
2333
2334 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2335
2336 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2337 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2338 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2339 (avr_pointer_to_address): Likewise.
2340 (avr_address_class_type_flags): New function.
2341 (avr_address_class_type_flags_to_name): Likewise.
2342 (avr_address_class_name_to_type_flags): Likewise.
2343 (avr_gdbarch_init): Set address_class_type_flags,
2344 address_class_type_flags_to_name and
2345 address_class_name_to_type_flags.
2346
2347 2014-07-15 Pedro Alves <palves@redhat.com>
2348
2349 * linux-nat.c (kill_callback): Save errno and work with saved
2350 copy.
2351
2352 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2353
2354 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2355
2356 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2357
2358 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2359 breakpoint support correctly.
2360
2361 2014-07-14 Pedro Alves <palves@redhat.com>
2362
2363 * utils.c (prompt_for_continue): Call target_terminal_ours.
2364
2365 2014-07-14 Pedro Alves <palves@redhat.com>
2366
2367 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2368 catch_errors. Don't re-enable stdin or notify observers where,
2369 and rethrow error.
2370 (fetch_inferior_event_wrapper): Delete.
2371
2372 2014-07-14 Pedro Alves <palves@redhat.com>
2373
2374 PR gdb/17072
2375 * top.c: Include "inf-loop.h".
2376 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2377 field.
2378 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2379 was async before.
2380 (gdb_readline_wrapper): Store whether the target is async, and
2381 make it sync.
2382
2383 2014-07-14 Pedro Alves <palves@redhat.com>
2384
2385 PR gdb/17072
2386 * top.c (gdb_readline_wrapper_line): Tweak comment.
2387 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2388 the input handler callback.
2389
2390 2014-07-14 Pedro Alves <palves@redhat.com>
2391
2392 PR gdb/17072
2393 * main.c: Include event-top.h.
2394 (handle_command_errors): New function.
2395 (catch_command_errors, catch_command_errors_const): Use it.
2396
2397 2014-07-14 Pedro Alves <palves@redhat.com>
2398
2399 * exceptions.c (catch_command_errors, catch_command_errors_const):
2400 Moved to main.c.
2401 * exceptions.h (catch_command_errors_ftype)
2402 (catch_command_errors_const_ftype): Moved to main.c.
2403 (catch_command_errors, catch_command_errors_const): Delete
2404 declarations.
2405 * main.c (catch_command_errors_ftype)
2406 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2407 (catch_command_errors, catch_command_errors_const)): Moved here
2408 from exceptions.c and make static.
2409
2410 2014-07-14 Pedro Alves <palves@redhat.com>
2411
2412 * exceptions.c (print_any_exception): Delete.
2413 (catch_exceptions_with_msg): Use exception_print instead of
2414 print_any_exception.
2415 (catch_errors): Use exception_fprintf instead of
2416 print_any_exception.
2417 (catch_command_errors, catch_command_errors_const): Use
2418 exception_print instead of print_any_exception.
2419
2420 2014-07-14 Pedro Alves <palves@redhat.com>
2421
2422 * infcall.c (run_inferior_call): Set 'sync_execution' while
2423 running the inferior call.
2424
2425 2014-07-14 Pedro Alves <palves@redhat.com>
2426
2427 * value.c (value_contents_equal): Delete function.
2428 * value.h (value_contents_equal): Delete declaration.
2429
2430 2014-07-14 Tom Tromey <tromey@redhat.com>
2431
2432 PR exp/17106:
2433 * gdbtypes.c (is_dynamic_type_internal): New function, from
2434 is_dynamic_type.
2435 (is_dynamic_type): Rewrite.
2436 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2437 (resolve_dynamic_struct): Likewise.
2438 (resolve_dynamic_type_internal): New function, from
2439 resolve_dynamic_type.
2440 (resolve_dynamic_type): Rewrite.
2441
2442 2014-07-14 Tom Tromey <tromey@redhat.com>
2443
2444 * target.c (target_require_runnable): Also check record_stratum.
2445 Update comment.
2446
2447 2014-07-11 Yao Qi <yao@codesourcery.com>
2448
2449 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2450 thumb_instruction_restores_sp return true.
2451
2452 2014-07-11 Yao Qi <yao@codesourcery.com>
2453
2454 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2455 (thumb_in_function_epilogue_p): Call
2456 thumb_instruction_restores_sp.
2457
2458 2014-07-11 Yao Qi <yao@codesourcery.com>
2459
2460 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2461 'add sp, #imm'.
2462 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2463
2464 2014-07-11 Gary Benson <gbenson@redhat.com>
2465
2466 * amd64-linux-nat.c (gdbcore.h): Remove include.
2467 (regset.h): Likewise.
2468 (nat/linux-btrace.h): Likewise.
2469 (btrace.h): Likewise.
2470 (gdb_assert.h): Likewise.
2471 (string.h): Likewise.
2472 (sys/uio.h): Likewise.
2473 (sys/debugreg.h): Likewise.
2474 (sys/syscall.h): Likewise.
2475 (sys/procfs.h): Likewise.
2476 (sys/user.h): Likewise.
2477 (asm/ptrace.h): Likewise.
2478 (i386-nat.h): Likewise.
2479 * i386-linux-nat.c (i386-nat.h): Likewise.
2480 (regset.h): Likewise.
2481 (target.h): Likewise.
2482 (linux-nat.h): Likewise.
2483 (nat/linux-btrace.h): Likewise.
2484 (btrace.h): Likewise.
2485 (gdb_assert.h): Likewise.
2486 (string.h): Likewise.
2487 (sys/uio.h): Likewise.
2488 (sys/user.h): Likewise.
2489 (sys/procfs.h): Likewise.
2490 (sys/reg.h): Likewise.
2491 (sys/debugreg.h): Likewise.
2492 (ORIG_EAX): Remove definition.
2493
2494 2014-07-11 Gary Benson <gbenson@redhat.com>
2495
2496 * i386-linux-nat.h: New file.
2497 * x86-linux-nat.h: Likewise.
2498 * x86-linux-nat.c: Likewise.
2499 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2500 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2501 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2502 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2503 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2504 (PTRACE_SETREGSET): Likewise.
2505 (arch_lwp_info): Now in x86-linux-nat.c.
2506 (have_ptrace_getregset): Now in x86-linux-nat.h.
2507 (x86_linux_dr_get): Now in x86-linux-nat.c.
2508 (x86_linux_dr_set): Likewise.
2509 (x86_linux_dr_get_addr): Likewise.
2510 (x86_linux_dr_get_control): Likewise.
2511 (x86_linux_dr_get_status): Likewise.
2512 (update_debug_registers_callback): Likewise.
2513 (x86_linux_dr_set_control): Likewise.
2514 (x86_linux_dr_set_addr): Likewise.
2515 (x86_linux_prepare_to_resume): Likewise.
2516 (x86_linux_new_thread): Likewise.
2517 (x86_linux_new_fork): Likewise.
2518 (x86_linux_get_thread_area): Likewise.
2519 (super_post_startup_inferior): Likewise.
2520 (x86_linux_child_post_startup_inferior): Likewise.
2521 (AMD64_LINUX_USER64_CS): Likewise.
2522 (AMD64_LINUX_X32_DS): Likewise.
2523 (x86_linux_read_description): Likewise.
2524 (x86_linux_enable_btrace): Likewise.
2525 (x86_linux_disable_btrace): Likewise.
2526 (x86_linux_teardown_btrace): Likewise.
2527 (x86_linux_read_btrace): Likewise.
2528 (x86_linux_create_target): Likewise.
2529 (x86_linux_add_target): Likewise.
2530 * i386-linux-nat.c (x86-linux-nat.h): New include.
2531 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2532 (PTRACE_SETREGSET): Likewise.
2533 (arch_lwp_info): Now in x86-linux-nat.c.
2534 (have_ptrace_getregset): Now in x86-linux-nat.h.
2535 (x86_linux_dr_get): Now in x86-linux-nat.c.
2536 (x86_linux_dr_set): Likewise.
2537 (x86_linux_dr_get_addr): Likewise.
2538 (x86_linux_dr_get_control): Likewise.
2539 (x86_linux_dr_get_status): Likewise.
2540 (update_debug_registers_callback): Likewise.
2541 (x86_linux_dr_set_control): Likewise.
2542 (x86_linux_dr_set_addr): Likewise.
2543 (x86_linux_prepare_to_resume): Likewise.
2544 (x86_linux_new_thread): Likewise.
2545 (x86_linux_new_fork): Likewise.
2546 (x86_linux_get_thread_area): Likewise.
2547 (super_post_startup_inferior): Likewise.
2548 (x86_linux_child_post_startup_inferior): Likewise.
2549 (AMD64_LINUX_USER64_CS): Likewise.
2550 (AMD64_LINUX_X32_DS): Likewise.
2551 (x86_linux_read_description): Likewise.
2552 (x86_linux_enable_btrace): Likewise.
2553 (x86_linux_disable_btrace): Likewise.
2554 (x86_linux_teardown_btrace): Likewise.
2555 (x86_linux_read_btrace): Likewise.
2556 (x86_linux_create_target): Likewise.
2557 (x86_linux_add_target): Likewise.
2558
2559 2014-07-11 Gary Benson <gbenson@redhat.com>
2560
2561 * amd64-linux-nat.c: Comment and whitespace changes.
2562 * i386-linux-nat.c: Comment and whitespace changes.
2563
2564 2014-07-11 Gary Benson <gbenson@redhat.com>
2565
2566 * amd64-linux-nat.c (x86_linux_create_target): New function.
2567 (x86_linux_add_target): Likewise.
2568 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2569 * i386-linux-nat.c (x86_linux_create_target): New function.
2570 (x86_linux_add_target): Likewise.
2571 (_initialize_i386_linux_nat): Delegate to the above new functions.
2572
2573 2014-07-11 Gary Benson <gbenson@redhat.com>
2574
2575 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2576 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2577 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2578 (ps_get_thread_area): Delegate to the above.
2579
2580 2014-07-11 Gary Benson <gbenson@redhat.com>
2581
2582 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2583 x86_linux_read_description. All uses updated. amd64-specific
2584 code conditionalized. Conditionalized i386-specific code added.
2585 Redundant cast removed.
2586 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2587 x86_linux_read_description. All uses updated. i386-specific
2588 code conditionalized. Conditionalized amd64-specific code added.
2589 One sizeof replaced with the actual type it is describing.
2590
2591 2014-07-11 Gary Benson <gbenson@redhat.com>
2592
2593 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2594 x86_linux_dr_get. All uses updated.
2595 (amd64_linux_dr_set): Renamed to
2596 x86_linux_dr_set. All uses updated.
2597 (amd64_linux_dr_get_addr): Renamed to
2598 x86_linux_dr_get_addr. All uses updated.
2599 (amd64_linux_dr_get_control): Renamed to
2600 x86_linux_dr_get_control. All uses updated.
2601 (amd64_linux_dr_get_status): Renamed to
2602 x86_linux_dr_get_status. All uses updated.
2603 (amd64_linux_dr_set_control): Renamed to
2604 x86_linux_dr_set_control. All uses updated.
2605 (amd64_linux_dr_set_addr): Renamed to
2606 x86_linux_dr_set_addr. All uses updated.
2607 (amd64_linux_prepare_to_resume): Renamed to
2608 x86_linux_prepare_to_resume. All uses updated.
2609 (amd64_linux_new_thread): Renamed to
2610 x86_linux_new_thread. All uses updated.
2611 (amd64_linux_new_fork): Renamed to
2612 x86_linux_new_fork. All uses updated.
2613 (amd64_linux_child_post_startup_inferior): Renamed to
2614 x86_linux_child_post_startup_inferior. All uses updated.
2615 (amd64_linux_enable_btrace): Renamed to
2616 x86_linux_enable_btrace. All uses updated.
2617 (amd64_linux_disable_btrace): Renamed to
2618 x86_linux_disable_btrace. All uses updated.
2619 (amd64_linux_teardown_btrace): Renamed to
2620 x86_linux_teardown_btrace. All uses updated.
2621 (amd64_linux_read_btrace): Renamed to
2622 x86_linux_read_btrace. All uses updated.
2623 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2624 x86_linux_dr_get. All uses updated.
2625 (i386_linux_dr_set): Renamed to
2626 x86_linux_dr_set. All uses updated.
2627 (i386_linux_dr_get_addr): Renamed to
2628 x86_linux_dr_get_addr. All uses updated.
2629 (i386_linux_dr_get_control): Renamed to
2630 x86_linux_dr_get_control. All uses updated.
2631 (i386_linux_dr_get_status): Renamed to
2632 x86_linux_dr_get_status. All uses updated.
2633 (i386_linux_dr_set_control): Renamed to
2634 x86_linux_dr_set_control. All uses updated.
2635 (i386_linux_dr_set_addr): Renamed to
2636 x86_linux_dr_set_addr. All uses updated.
2637 (i386_linux_prepare_to_resume): Renamed to
2638 x86_linux_prepare_to_resume. All uses updated.
2639 (i386_linux_new_thread): Renamed to
2640 x86_linux_new_thread. All uses updated.
2641 (i386_linux_new_fork): Renamed to
2642 x86_linux_new_fork. All uses updated.
2643 (i386_linux_child_post_startup_inferior): Renamed to
2644 x86_linux_child_post_startup_inferior. All uses updated.
2645 (i386_linux_enable_btrace): Renamed to
2646 x86_linux_enable_btrace. All uses updated.
2647 (i386_linux_disable_btrace): Renamed to
2648 x86_linux_disable_btrace. All uses updated.
2649 (i386_linux_teardown_btrace): Renamed to
2650 x86_linux_teardown_btrace. All uses updated.
2651 (i386_linux_read_btrace): Renamed to
2652 x86_linux_read_btrace. All uses updated.
2653
2654 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2655
2656 * remote.c (extended_remote_post_attach): New function.
2657 (init_extended_remote_ops): Install it as to_post_attach method.
2658
2659 2014-07-09 Pedro Alves <palves@redhat.com>
2660
2661 * infcmd.c (attach_command_post_wait): Don't call
2662 target_terminal_inferior here.
2663 (attach_command): Call it here instead.
2664
2665 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2666
2667 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2668 field.
2669 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2670 from varobj.c, with additional checks.
2671 (c_varobj_ops): Fill in is_path_expr_parent field.
2672 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2673 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2674 field.
2675 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2676 ops method.
2677 (varobj_default_is_path_expr_parent): New function.
2678 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2679 (varobj_default_is_path_expr_parent): Declare new function.
2680
2681 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2682
2683 * infcmd.c (finish_backward): Turn internal error into normal error.
2684
2685 2014-07-07 Pedro Alves <palves@redhat.com>
2686
2687 PR gdb/17096
2688 * remote.c (async_handle_remote_sigint)
2689 (async_handle_remote_sigint_twice): Call
2690 gdb_call_async_signal_handler instead of
2691 mark_async_signal_handler.
2692
2693 2014-07-07 Tom Tromey <tromey@redhat.com>
2694
2695 * target-delegates.c: Rebuild.
2696 * target.c (target_info_record): Remove.
2697 * record.c (info_record_command): Unconditionally call
2698 to_info_record.
2699 * target.h (struct target_ops) <to_info_record>: Use
2700 TARGET_DEFAULT_IGNORE.
2701 (target_info_record): Remove.
2702
2703 2014-07-07 Tom Tromey <tromey@redhat.com>
2704
2705 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2706 TARGET_DEFAULT_NORETURN.
2707 * target.c (generic_tls_error): New function.
2708 (target_translate_tls_address): Don't search target stack.
2709 * target-delegates.c: Rebuild.
2710 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2711 stack.
2712 * linux-thread-db.c (thread_db_get_thread_local_address):
2713 Unconditionally call beneath target.
2714
2715 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2716
2717 * cli/cli-logging.c (pop_output_files): Assign targerr to
2718 gdb_stdtargerr.
2719
2720 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2721
2722 * MAINTAINERS (Write After Approval): Update my email address.
2723
2724 2014-07-02 Gary Benson <gbenson@redhat.com>
2725
2726 * proc-service.c (ps_xfer_memory): Update comment.
2727 (ps_pstop): Remove unused function.
2728 (ps_pcontinue): Likewise.
2729 (ps_lstop): Likewise.
2730 (ps_lcontinue): Likewise.
2731 (ps_lgetxregsize): Likewise.
2732 (ps_lgetxregs): Likewise.
2733 (ps_lsetxregs): Likewise.
2734 (ps_plog): Likewise.
2735 (ps_ptread): Likewise.
2736 (ps_ptwrite): Likewise.
2737
2738 2014-07-01 Mark Wielaard <mjw@redhat.com>
2739
2740 * dwarf2read.c (add_array_cv_type): New function.
2741 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2742 (read_tag_volatile_type): Likewise.
2743
2744 2014-07-01 Tom Tromey <tromey@redhat.com>
2745
2746 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2747 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2748 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2749 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2750 * command.h (cmd_cfunc_ftype): Move earlier.
2751 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2752 (add_com, add_info): Use cmd_cfunc_ftype.
2753
2754 2014-06-30 Tom Tromey <tromey@redhat.com>
2755
2756 * symtab.c (operator_chars): Make parameters and return type
2757 const.
2758 (file_matches): Make "files" const.
2759 (struct search_symbols_data) <files>: Now const.
2760 (search_symbols): Make "regexp" and "files" parameters const.
2761 Update.
2762 (symtab_symbol_info): Remove cast.
2763 (rbreak_command): Update.
2764 * symtab.h (search_symbols): Update.
2765
2766 2014-06-27 Yao Qi <yao@codesourcery.com>
2767
2768 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2769 Change parameter type to 'struct thread_info *'. Caller
2770 updated.
2771 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2772 Update declaration.
2773 * dummy-frame.c (struct dummy_frame_id): New.
2774 (dummy_frame_id_eq): New function.
2775 (struct dummy_frame) <id>: Change its type to 'struct
2776 dummy_frame_id'.
2777 (dummy_frame_push): Add parameter ptid and save it in
2778 dummy_frame_id.
2779 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2780 inferior_ptid.
2781 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2782 to inferior_ptid.
2783 (lookup_dummy_frame): Change parameter type to 'struct
2784 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2785 instead of frame_id_eq.
2786 (dummy_frame_pop): Add parameter ptid. Callers updated.
2787 Update comments. Compose dummy_frame_id and pass it to
2788 lookup_dummy_frame.
2789 (dummy_frame_discard): Add parameter ptid.
2790 (dummy_frame_sniffer): Compose dummy_frame_id and call
2791 dummy_frame_id_eq instead of frame_id_eq.
2792 (fprint_dummy_frames): Print ptid.
2793 * dummy-frame.h: Remove comments.
2794 (dummy_frame_push): Add ptid in declaration.
2795 (dummy_frame_pop, dummy_frame_discard): Likewise.
2796
2797 2014-06-26 Tom Tromey <tromey@redhat.com>
2798
2799 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2800 * command.h (error_no_arg): Update.
2801
2802 2014-06-26 Tom Tromey <tromey@redhat.com>
2803
2804 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2805 (do_show_command): Make "arg" const.
2806 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2807
2808 2014-06-26 Tom Tromey <tromey@redhat.com>
2809
2810 * record-full.c (record_full_get_bookmark): Make "args" const.
2811 (record_full_goto_bookmark): Make "raw_bookmark" const.
2812 * record.c (record_goto): New function.
2813 (cmd_record_goto): Use it. Now static.
2814 * record.h (record_goto): Declare.
2815 (cmd_record_goto): Remove declaration.
2816 * target-delegates.c: Rebuild.
2817 * target.h (struct target_ops) <to_get_bookmark,
2818 to_goto_bookmark>: Make parameter const.
2819
2820 2014-06-26 Tom Tromey <tromey@redhat.com>
2821
2822 * defs.h (generic_load): Update.
2823 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2824 * monitor.c (monitor_load): Make "args" const.
2825 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2826 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2827 const.
2828 (mips_load): Make "file" const.
2829 * remote-sim.c (gdbsim_load): Make "args" const.
2830 * remote.c (remote_load): Make "name" const.
2831 * symfile.c (generic_load): Make "args" const.
2832 * target-delegates.c: Rebuild.
2833 * target.c (target_load): Make "arg" const.
2834 (debug_to_load): Make "args" const.
2835 * target.h (struct target_ops) <to_load>: Make parameter const.
2836 (target_load): Update.
2837
2838 2014-06-26 Tom Tromey <tromey@redhat.com>
2839
2840 PR symtab/16902:
2841 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2842 (dwarf2_physname, read_partial_die)
2843 (guess_partial_die_structure_name, fixup_partial_die)
2844 (guess_full_die_structure_name, anonymous_struct_prefix)
2845 (dwarf2_name): Use per-BFD obstack.
2846
2847 2014-06-26 Yao Qi <yao@codesourcery.com>
2848
2849 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2850 dummyframe and this_id into inner block below.
2851
2852 2014-06-26 Yao Qi <yao@codesourcery.com>
2853
2854 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2855 with "signal_pass[0]" in the initialization of signal_pass.
2856
2857 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2858
2859 * record-btrace.c (record_btrace_generating_corefile)
2860 (record_btrace_prepare_to_generate_core)
2861 (record_btrace_done_generating_core): New.
2862 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2863 (record_btrace_store_registers, record_btrace_prepare_to_store):
2864 Forward request when generating a core file.
2865 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2866 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2867 to_done_generating_core.
2868
2869 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2870
2871 * target.h (target_ops) <to_prepare_to_generate_core>
2872 <to_done_generating_core>: New.
2873 (target_prepare_to_generate_core, target_done_generating_core): New.
2874 * target.c (target_prepare_to_generate_core)
2875 (target_done_generating_core): New.
2876 * target-delegates.c: Regenerate.
2877 * gcore.c: (write_gcore_file): Rename to ...
2878 (write_gcore_file_1): ...this.
2879 (write_gcore_file): Call target_prepare_to_generate_core
2880 and target_done_generating_core.
2881
2882 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2883
2884 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2885 * gcore.c (write_gcore_file): Free memory returned from
2886 make_corefile_notes.
2887 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2888 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2889
2890 2014-06-24 Yao Qi <yao@codesourcery.com>
2891
2892 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2893 (arm_linux_init_abi): Set skip_trampoline_code with
2894 gdbarch_skip_trampoline_code instead of
2895 find_solib_trampoline_target.
2896
2897 2014-06-24 Yao Qi <yao@codesourcery.com>
2898
2899 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2900 arm_skip_bx_reg returns non-zero.
2901
2902 2014-06-24 Yao Qi <yao@codesourcery.com>
2903
2904 * arm-tdep.c (arm_skip_bx_reg): New function.
2905 (arm_skip_stub): Call arm_skip_bx_reg.
2906
2907 2014-06-23 Don Breazeal <donb@codesourcery.com>
2908
2909 * MAINTAINERS: Add myself as write-after-approval maintainer.
2910
2911 2014-06-23 Pedro Alves <palves@redhat.com>
2912
2913 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2914 DR_CONTROL before setting DR0..DR3.
2915 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2916 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2917 bits of DR_CONTROL related to the debug register slot being
2918 disabled. If all slots are vacant, clear local slowdown as well,
2919 and assert DR_CONTROL is 0.
2920
2921 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2922
2923 * python/lib/gdb/command/xmethods.py
2924 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2925 current progspace only if the string "progspace" matches LOCUS_RE.
2926
2927 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2928
2929 Fix --with-system-readline with readline-6.3 patch 5.
2930 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2931 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2932 types.
2933
2934 2014-06-20 Tom Tromey <tromey@redhat.com>
2935
2936 * dwarf2read.c (dw2_get_real_path): Use correct type in
2937 OBSTACK_CALLOC.
2938 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2939
2940 2014-06-20 Gary Benson <gbenson@redhat.com>
2941
2942 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2943 * common/glibc_thread_db.h: Likewise.
2944 * common/i386-cpuid.h: Likewise.
2945 * common/i386-gcc-cpuid.h: Likewise.
2946 * common/linux-btrace.h: Likewise.
2947 * common/linux-osdata.h: Likewise.
2948 * common/linux-procfs.h: Likewise.
2949 * common/linux-ptrace.h: Likewise.
2950 * common/mips-linux-watch.h: Likewise.
2951 * common/linux-btrace.c: Moved to nat.
2952 * common/linux-osdata.c: Likewise.
2953 * common/linux-procfs.c: Likewise.
2954 * common/linux-ptrace.c: Likewise.
2955 * common/mips-linux-watch.c: Likewise.
2956 * nat/gdb_thread_db.h: Moved from common.
2957 * nat/glibc_thread_db.h: Likewise.
2958 * nat/i386-cpuid.h: Likewise.
2959 * nat/i386-gcc-cpuid.h: Likewise.
2960 * nat/linux-btrace.c: Likewise.
2961 * nat/linux-btrace.h: Likewise.
2962 * nat/linux-osdata.c: Likewise.
2963 * nat/linux-osdata.h: Likewise.
2964 * nat/linux-procfs.c: Likewise.
2965 * nat/linux-procfs.h: Likewise.
2966 * nat/linux-ptrace.c: Likewise.
2967 * nat/linux-ptrace.h: Likewise.
2968 * nat/mips-linux-watch.c: Likewise.
2969 * nat/mips-linux-watch.h: Likewise.
2970 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2971 (object file files): Reordered.
2972 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2973 of glibc_thread_db.h.
2974
2975 2014-06-20 Gary Benson <gbenson@redhat.com>
2976
2977 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2978 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2979 (i386_dr_low): Likewise.
2980 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2981 (i386_dr_low_set_addr): Likewise.
2982 (i386_dr_low_get_addr): Likewise.
2983 (i386_dr_low_can_set_control): Likewise.
2984 (i386_dr_low_set_control): Likewise.
2985 (i386_dr_low_get_control): Likewise.
2986 (i386_dr_low_get_status): Likewise.
2987 (i386_get_debug_register_length): Likewise.
2988 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2989 (i386_dr_low): Likewise.
2990 * nat/i386-dregs.c (i386-low.h): Remove include.
2991 (i386-nat.h): Likewise.
2992 (nat/i386-dregs.h): New include.
2993 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2994 (i386_dr_low_set_addr): Likewise.
2995 (i386_dr_low_get_addr): Likewise.
2996 (i386_dr_low_can_set_control): Likewise.
2997 (i386_dr_low_set_control): Likewise.
2998 (i386_dr_low_get_control): Likewise.
2999 (i386_dr_low_get_status): Likewise.
3000 (i386_get_debug_register_length): Likewise.
3001 (debug_hw_points): Likewise.
3002
3003 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3004
3005 * Makefile.in (SFILES): Add d-exp.y.
3006 (YYFILES): Add d-exp.c.
3007 (YYOBJ): Add d-exp.o.
3008 (local-maintainer-clean): Delete d-exp.c.
3009 * d-exp.y: New file.
3010 * d-lang.h (d_parse): New declaration.
3011 (d_error): New declaration.
3012 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3013 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3014 PREC_ORDER operators.
3015 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3016
3017 2014-06-19 Yao Qi <yao@codesourcery.com>
3018
3019 * gdbthread.h (any_running): Remove the declaration.
3020 * thread.c (any_running): Remove.
3021
3022 2014-06-19 Yao Qi <yao@codesourcery.com>
3023
3024 * gdbthread.h (struct thread_info) <state>: Change its type to
3025 'enum thread_state'. Update comments.
3026
3027 2014-06-19 Pedro Alves <palves@redhat.com>
3028
3029 * gdbthread.h (ALL_THREADS): Delete.
3030 (ALL_NON_EXITED_THREADS): New macro.
3031 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3032 instead of ALL_THREADS.
3033 * infrun.c (find_thread_needs_step_over)
3034 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3035 instead of ALL_THREADS.
3036 * record-btrace.c (record_btrace_open)
3037 (record_btrace_stop_recording, record_btrace_close)
3038 (record_btrace_is_replaying, record_btrace_resume)
3039 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3040 * remote.c (append_pending_thread_resumptions): Likewise.
3041 * thread.c (thread_apply_all_command): Likewise.
3042
3043 2014-06-19 Gary Benson <gbenson@redhat.com>
3044
3045 * i386-nat.c (i386_stopped_by_watchpoint):
3046 Use i386_dr_stopped_by_watchpoint.
3047 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3048 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3049
3050 2014-06-19 Gary Benson <gbenson@redhat.com>
3051
3052 * nat/i386-dregs.c: New file.
3053 * Makefile.in (i386-dregs.o): New rule.
3054 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3055 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3056 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3057 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3058 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3059 * config/i386/go32.mh (NATDEPFILES): Likewise.
3060 * config/i386/linux.mh (NATDEPFILES): Likewise.
3061 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3062 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3063 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3064 * i386-nat.h (debug_hw_points): New declaration.
3065 * i386-nat.c (breakpoint.h): Remove include.
3066 (command.h): Likewise.
3067 (target.h): Likewise.
3068 (gdb_assert.h): Likewise.
3069 (debug_hw_points): Made nonstatic.
3070 (debug_printf): Now in i386-dregs.c.
3071 (TARGET_HAS_DR_LEN_8): Likewise.
3072 (DR_CONTROL_SHIFT): Likewise.
3073 (DR_CONTROL_SIZE): Likewise.
3074 (DR_RW_EXECUTE): Likewise.
3075 (DR_RW_WRITE): Likewise.
3076 (DR_RW_READ): Likewise.
3077 (DR_RW_IORW): Likewise.
3078 (DR_LEN_1): Likewise.
3079 (DR_LEN_2): Likewise.
3080 (DR_LEN_4): Likewise.
3081 (DR_LEN_8): Likewise.
3082 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3083 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3084 (DR_ENABLE_SIZE): Likewise.
3085 (DR_LOCAL_SLOWDOWN): Likewise.
3086 (DR_GLOBAL_SLOWDOWN): Likewise.
3087 (DR_CONTROL_RESERVED): Likewise.
3088 (I386_DR_CONTROL_MASK): Likewise.
3089 (I386_DR_VACANT): Likewise.
3090 (I386_DR_LOCAL_ENABLE): Likewise.
3091 (I386_DR_GLOBAL_ENABLE): Likewise.
3092 (I386_DR_DISABLE): Likewise.
3093 (I386_DR_SET_RW_LEN): Likewise.
3094 (I386_DR_GET_RW_LEN): Likewise.
3095 (I386_DR_WATCH_HIT): Likewise.
3096 (i386_wp_op_t): Likewise.
3097 (i386_show_dr): Likewise.
3098 (i386_length_and_rw_bits): Likewise.
3099 (i386_insert_aligned_watchpoint): Likewise.
3100 (i386_remove_aligned_watchpoint): Likewise.
3101 (i386_handle_nonaligned_watchpoint): Likewise.
3102 (i386_update_inferior_debug_regs): Likewise.
3103 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3104 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3105 (i386_region_ok_for_watchpoint):
3106 Use i386_dr_region_ok_for_watchpoint.
3107 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3108
3109 2014-06-19 Gary Benson <gbenson@redhat.com>
3110
3111 * i386-nat.c (i386_insert_hw_breakpoint): Use
3112 i386_insert_watchpoint.
3113 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3114
3115 2014-06-19 Gary Benson <gbenson@redhat.com>
3116
3117 * i386-nat.c (i386_dr_show): Renamed to
3118 i386_show_dr and made static. All uses updated.
3119 (i386_dr_length_and_rw_bits): Renamed to
3120 i386_length_and_rw_bits and made static.
3121 All uses updated.
3122 (i386_dr_insert_aligned_watchpoint): Renamed to
3123 i386_insert_aligned_watchpoint and made static.
3124 All uses updated.
3125 (i386_dr_remove_aligned_watchpoint): Renamed to
3126 i386_remove_aligned_watchpoint and made static.
3127 All uses updated.
3128 (i386_dr_update_inferior_debug_regs): Renamed to
3129 i386_update_inferior_debug_regs and made static.
3130 All uses updated.
3131 * nat/i386-dregs.h (i386_dr_show): Removed.
3132 (i386_dr_length_and_rw_bits): Likewise.
3133 (i386_dr_insert_aligned_watchpoint): Likewise.
3134 (i386_dr_remove_aligned_watchpoint): Likewise.
3135 (i386_dr_update_inferior_debug_regs): Likewise.
3136
3137 2014-06-19 Gary Benson <gbenson@redhat.com>
3138
3139 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3140 * configure: Regenerate.
3141 * config.in: Likewise.
3142 * main.c (signal.h): New include.
3143 (setup_alternate_signal_stack): New function.
3144 (captured_main): Call the above.
3145 * cp-support.c (signal.h): New include.
3146 (catch_demangler_crashes): New flag.
3147 (SIGJMP_BUF): New define.
3148 (SIGSETJMP): Likewise.
3149 (SIGLONGJMP): Likewise.
3150 (gdb_demangle_jmp_buf): New static global.
3151 (gdb_demangle_attempt_core_dump): Likewise.
3152 (gdb_demangle_signal_handler): New function.
3153 (gdb_demangle): If catch_demangler_crashes is set, install the
3154 above signal handler before calling bfd_demangle, and restore
3155 the original signal handler afterwards. Display the offending
3156 symbol and call demangler_warning the first time a segmentation
3157 fault is caught.
3158 (_initialize_cp_support): New maint set/show command.
3159
3160 2014-06-19 Gary Benson <gbenson@redhat.com>
3161
3162 * utils.h (resource_limit_kind): New enum.
3163 (can_dump_core): New declaration.
3164 (warn_cant_dump_core): Likewise.
3165 (dump_core): Likewise.
3166 * utils.c (dump_core): Made nonstatic. Added new
3167 parameter "limit_kind".
3168 (can_dump_core): Made nonstatic. Moved printing code to...
3169 (warn_cant_dump_core): New function.
3170 (can_dump_core_warn): Likewise.
3171 (internal_vproblem): Replace calls to can_dump_core with
3172 calls to can_dump_core_warn. Supply new argument to each.
3173
3174 2014-06-19 Gary Benson <gbenson@redhat.com>
3175
3176 * utils.h (demangler_vwarning): New declaration.
3177 (demangler_warning): Likewise.
3178 * utils.c (struct internal_problem)
3179 <user_settable_should_quit>: New field.
3180 <user_settable_should_dump_core>: Likewise
3181 (internal_error_problem): Add values for above new fields.
3182 (internal_warning_problem): Likewise.
3183 (demangler_warning_problem): New static global.
3184 (demangler_vwarning): New function.
3185 (demangler_warning): Likewise.
3186 (add_internal_problem_command): Selectively add commands.
3187 (_initialize_utils): New internal problem command.
3188 * maint.c (maintenance_demangler_warning): New function.
3189 (_initialize_maint_cmds): New command.
3190
3191 2014-06-18 Tom Tromey <tromey@redhat.com>
3192
3193 * f-valprint.c (info_common_command_for_block): Update.
3194 * symtab.h (struct general_symbol_info) <common_block>: Now
3195 const.
3196
3197 2014-06-18 Tom Tromey <tromey@redhat.com>
3198
3199 * symtab.h (struct symtab) <blockvector>: Now const.
3200 * ada-lang.c (ada_add_global_exceptions): Update.
3201 * buildsym.c (augment_type_symtab): Update.
3202 * dwarf2read.c (dw2_lookup_symbol): Update.
3203 * jit.c (finalize_symtab): Update.
3204 * jv-lang.c (add_class_symtab_symbol): Update.
3205 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3206 Update.
3207 * objfiles.c (objfile_relocate1): Update.
3208 * psymtab.c (lookup_symbol_aux_psymtabs)
3209 (maintenance_check_psymtabs): Update.
3210 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3211 Update.
3212 * spu-tdep.c (spu_catch_start): Update.
3213 * symmisc.c (dump_symtab_1): Update.
3214 * symtab.c (lookup_global_symbol_from_objfile)
3215 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3216 (basic_lookup_transparent_type_quick)
3217 (basic_lookup_transparent_type, find_pc_sect_symtab)
3218 (find_pc_sect_line, search_symbols): Update.
3219 * block.c (find_block_in_blockvector): Make "bl" const.
3220 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3221 const.
3222 (blockvector_contains_pc): Make "bv" const.
3223 (block_for_pc_sect): Update.
3224 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3225 (blockvector_contains_pc): Update.
3226 * breakpoint.c (resolve_sal_pc): Update.
3227 * inline-frame.c (block_starting_point_at): Update.
3228
3229 2014-06-18 Tom Tromey <tromey@redhat.com>
3230
3231 * completer.c (complete_line): Make "line_buffer" const.
3232 * completer.h (complete_line): Update.
3233
3234 2014-06-18 Tom Tromey <tromey@redhat.com>
3235
3236 * symtab.c (add_macro_name): Remove unneeded cast.
3237
3238 2014-06-18 Tom Tromey <tromey@redhat.com>
3239
3240 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3241 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3242
3243 2014-06-18 Tom Tromey <tromey@redhat.com>
3244
3245 * probe.c (info_probes_for_ops): Make "arg" const.
3246 * probe.h (info_probes_for_ops): Update.
3247
3248 2014-06-18 Tom Tromey <tromey@redhat.com>
3249
3250 * varobj.c (varobj_create): Update.
3251 * valops.c (value_of_this): Update.
3252 * tracepoint.c (add_local_symbols, scope_info): Update.
3253 * symtab.h (struct general_symbol_info) <block>: Now const.
3254 * symtab.c (skip_prologue_sal)
3255 (default_make_symbol_completion_list_break_on)
3256 (skip_prologue_using_sal): Update.
3257 * stack.h (iterate_over_block_locals)
3258 (iterate_over_block_local_vars): Update.
3259 * stack.c (print_frame_args): Update.
3260 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3261 parameter const.
3262 (get_selected_block): Make return type const.
3263 * python/py-frame.c (frapy_block): Update.
3264 * python/py-block.c (gdbpy_block_for_pc): Update.
3265 * p-exp.y (%union) <bval>: Now const.
3266 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3267 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3268 * m2-exp.y (%union) <bval>: Now const.
3269 * linespec.c (get_current_search_block): Make return type const.
3270 (create_sals_line_offset, find_label_symbols): Update.
3271 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3272 Update.
3273 (block_starting_point_at): Make "block" const.
3274 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3275 (check_exception_resume): Update.
3276 * guile/scm-frame.c (gdbscm_frame_block): Update.
3277 * guile/scm-block.c (gdbscm_lookup_block): Update.
3278 * frame.h (get_frame_block): Update.
3279 (get_selected_block): Make return type const.
3280 * frame.c (frame_id_inner): Update.
3281 * f-valprint.c (info_common_command_for_block)
3282 (info_common_command): Update.
3283 * dwarf2loc.c (dwarf2_find_location_expression)
3284 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3285 (locexpr_describe_location_piece): Update.
3286 * c-exp.y (%union) <bval>: Now const.
3287 * breakpoint.c (resolve_sal_pc): Update.
3288 * blockframe.c (get_frame_block):Make return type const.
3289 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3290 (block_innermost_frame): Update.
3291 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3292 (block_for_pc, block_for_pc_sect): Update.
3293 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3294 'pblock' const.
3295 (block_for_pc_sect, block_for_pc): Make return type const.
3296 * ax-gdb.c (gen_expr): Update.
3297 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3298 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3299 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3300 (ada_read_var_value): Update.
3301 * ada-exp.y (struct name_info) <block>: Now const.
3302 (%union): Likewise.
3303 (block_lookup): Constify.
3304
3305 2014-06-18 Gary Benson <gbenson@redhat.com>
3306
3307 * nat/i386-dregs.h: New file.
3308 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3309 * i386-nat.h (i386-dregs.h): New include.
3310 (DR_FIRSTADDR): Now in i386-dregs.h.
3311 (DR_LASTADDR): Likewise.
3312 (DR_NADDR): Likewise.
3313 (DR_STATUS): Likewise.
3314 (DR_CONTROL): Likewise.
3315 (i386_debug_reg_state): Likewise.
3316 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3317
3318 2014-06-18 Don Breazeal <donb@codesourcery.com>
3319
3320 * breakpoint.c (set_longjmp_breakpoint): Call
3321 momentary_breakpoint_from_master with additional argument.
3322 (set_longjmp_breakpoint_for_call_dummy): Call
3323 momentary_breakpoint_from_master with additional argument.
3324 (set_std_terminate_breakpoint): Call
3325 momentary_breakpoint_from_master with additional argument.
3326 (momentary_breakpoint_from_master): Add argument to function
3327 definition and use it to initialize structure member flag.
3328 (clone_momentary_breakpoint): Call
3329 momentary_breakpoint_from_master with additional argument.
3330 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3331 member flags set in momentary_breakpoint_from_master.
3332
3333 2014-06-18 Gary Benson <gbenson@redhat.com>
3334
3335 * i386-nat.c (i386_show_dr): Renamed to
3336 i386_dr_show and made nonstatic. All uses updated.
3337 (i386_length_and_rw_bits): Renamed to
3338 i386_dr_length_and_rw_bits and made nonstatic.
3339 All uses updated.
3340 (i386_insert_aligned_watchpoint): Renamed to
3341 i386_dr_insert_aligned_watchpoint and made nonstatic.
3342 All uses updated.
3343 (i386_remove_aligned_watchpoint): Renamed to
3344 i386_dr_remove_aligned_watchpoint and made nonstatic.
3345 All uses updated.
3346 (i386_update_inferior_debug_regs): Renamed to
3347 i386_dr_update_inferior_debug_regs and made nonstatic.
3348 All uses updated.
3349
3350 2014-06-18 Gary Benson <gbenson@redhat.com>
3351
3352 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3353 (i386_dr_low_can_set_control): Likewise.
3354 (i386_dr_low_set_addr): Likewise.
3355 (i386_dr_low_set_control): Likewise.
3356 (i386_dr_low_get_addr): Likewise.
3357 (i386_dr_low_get_status): Likewise.
3358 (i386_dr_low_get_control): Likewise.
3359 (i386_insert_aligned_watchpoint): Use new macros.
3360 (i386_update_inferior_debug_regs): Likewise.
3361 (i386_stopped_data_address): Likewise.
3362
3363 2014-06-18 Gary Benson <gbenson@redhat.com>
3364
3365 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3366 New parameter. All uses updated.
3367
3368 2014-06-18 Gary Benson <gbenson@redhat.com>
3369
3370 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3371 All uses updated.
3372
3373 2014-06-18 Gary Benson <gbenson@redhat.com>
3374
3375 * i386-nat.c (debug_printf): New macro.
3376 (i386_get_debug_register_length): Likewise.
3377 (TARGET_HAS_DR_LEN_8): Use above macro.
3378 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3379 and printf_unfiltered. Use phex to format values.
3380
3381 2014-06-18 Gary Benson <gbenson@redhat.com>
3382
3383 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3384 Make const.
3385
3386 2014-06-18 Gary Benson <gbenson@redhat.com>
3387
3388 * i386-nat.c: Comment changes.
3389
3390 2014-06-18 Gary Benson <gbenson@redhat.com>
3391
3392 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3393
3394 2014-06-18 Gary Benson <gbenson@redhat.com>
3395
3396 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3397 (i386_insert_aligned_watchpoint): Likewise.
3398 (i386_remove_aligned_watchpoint): Likewise.
3399 (i386_handle_nonaligned_watchpoint): Likewise.
3400
3401 2014-06-18 Gary Benson <gbenson@redhat.com>
3402
3403 * i386-nat.c: Whitespace changes.
3404
3405 2014-06-17 Samuel Bronson <naesten@gmail.com>
3406
3407 * MAINTAINERS: Update Roland McGrath's email address.
3408 Thanks to Sergio Durigan Junior for pointing out that he left
3409 Red Hat a while ago, and giving me a current address.
3410
3411 2014-06-17 Tom Tromey <tromey@redhat.com>
3412
3413 * utils.h (savestring): Remove declaration.
3414
3415 2014-06-17 Tom Tromey <tromey@redhat.com>
3416
3417 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3418
3419 2014-06-16 Keith Seitz <keiths@redhat.com>
3420
3421 PR mi/15863
3422 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3423 to update the varobj if inferior_ptid is null_ptid.
3424
3425 2014-06-16 Tom Tromey <tromey@redhat.com>
3426
3427 * target.h (struct target_ops) <to_info_proc>: Make parameter
3428 const.
3429 (target_info_proc): Update.
3430 * target.c (target_info_proc): Make "args" const.
3431 * procfs.c (procfs_info_proc): Update.
3432 * linux-tdep.c (linux_info_proc): Update.
3433 (linux_core_info_proc_mappings): Make "args" const.
3434 (linux_core_info_proc): Update.
3435 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3436 * gdbarch.c: Rebuild.
3437 * gdbarch.h: Rebuild.
3438 * corelow.c (core_info_proc): Update.
3439
3440 2014-06-16 Tom Tromey <tromey@redhat.com>
3441
3442 * target.h (struct target_ops) <to_disconnect>: Make parameter
3443 const.
3444 (target_disconnect): Update.
3445 * target.c (target_disconnect): Make "args" const.
3446 * target-delegates.c: Rebuild.
3447 * remote.c (remote_disconnect): Update.
3448 * record.h (record_disconnect): Update.
3449 * record.c (record_disconnect): Update.
3450 * inf-child.c (inf_child_disconnect): Update.
3451
3452 2014-06-16 Tom Tromey <tromey@redhat.com>
3453
3454 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3455 * target.c (debug_to_rcmd, default_rcmd): Update.
3456 * target-delegates.c: Rebuild.
3457 * remote.c (remote_rcmd): Update.
3458 * monitor.c (monitor_rcmd): Update.
3459
3460 2014-06-16 Pedro Alves <palves@redhat.com>
3461
3462 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3463 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3464 have OBJF_SHARED set.
3465 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3466 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3467 instead of OBJF_USERLOADED.
3468 * objfiles.h (OBJF_SHARED): Update comment.
3469 (userloaded_objfile_contains_address_p): Rename to ...
3470 (shared_objfile_contains_address_p): ... this, and update
3471 comments.
3472 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3473 new objfile.
3474 (remove_symbol_file_command): Skip objfiles that don't have
3475 OBJF_SHARED set.
3476
3477 2014-06-16 Tom Tromey <tromey@redhat.com>
3478
3479 * minsyms.h (prim_record_minimal_symbol)
3480 (prim_record_minimal_symbol_and_info): Update comments.
3481
3482 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3483
3484 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3485 or --without-guile, according to how GDB was built.
3486
3487 2014-06-13 Tom Tromey <tromey@redhat.com>
3488
3489 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3490 to help_list.
3491 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3492 to help_list.
3493 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3494 help_list.
3495 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3496 help_list.Pass all_commands, not -1, to help_list.
3497 * cli/cli-dump.c (dump_command, append_command)
3498 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3499 (binary_dump_command, binary_append_command): Pass all_commands,
3500 not -1, to help_list.
3501 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3502 -1, to help_list.
3503 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3504 -1, to help_list.
3505 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3506 help_list.
3507 * top.c (set_history): Pass all_commands, not -1, to help_list.
3508 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3509 all_commands, not -1, to help_list.
3510 * symfile.c (overlay_command): Pass all_commands, not -1, to
3511 help_list.
3512 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3513 help_list.
3514 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3515 help_list.
3516 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3517 -1, to help_list.
3518 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3519 not -1, to help_list.
3520 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3521 not -1, to help_list.
3522 * maint.c (maintenance_command, maintenance_info_command)
3523 (maintenance_print_command, maintenance_set_cmd): Pass
3524 all_commands, not -1, to help_list.
3525 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3526 help_list.
3527 * language.c (set_check): Pass all_commands, not -1, to help_list.
3528 * infcmd.c (unset_command): Pass all_commands, not -1, to
3529 help_list.
3530 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3531 help_list.
3532 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3533 help_list.
3534 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3535 help_list.
3536 * breakpoint.c (save_command): Pass all_commands, not -1, to
3537 help_list.
3538 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3539 all_commands, not -1, to help_list.
3540
3541 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3542
3543 * regcache.c (struct register_to_invalidate): New structure.
3544 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3545 functions.
3546 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3547
3548 2014-06-12 Yao Qi <yao@codesourcery.com>
3549
3550 * varobj.c (varobj_get_num_children): Call
3551 varobj_is_dynamic_p.
3552 (varobj_list_children): Likewise.
3553 (varobj_update): Likewise. Update comments.
3554
3555 2014-06-12 Yao Qi <yao@codesourcery.com>
3556
3557 * varobj.c (varobj_pretty_printed_p): Rename to ...
3558 (varobj_is_dynamic_p): ... this. New function.
3559 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3560 (varobj_is_dynamic_p): Declare.
3561 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3562 (mi_print_value_p, varobj_update_one): Likewise.
3563
3564 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3565 Yao Qi <yao@codesourcery.com>
3566
3567 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3568 (varobj_get_iterator): Wrap up code for pretty-printer by
3569 "#if HAVE_PYTHON" and "#endif".
3570 (update_dynamic_varobj_children): Likewise.
3571
3572 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3573 Yao Qi <yao@codesourcery.com>
3574
3575 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3576 gdb_python_initialized is false. Move some code from varobj.c.
3577 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3578 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3579 (struct varobj_item): Moved to varobj-iter.h".
3580 (varobj_clear_saved_item): New function.
3581 (update_dynamic_varobj_children): Move python-related code to
3582 py-varobj.c.
3583 (free_variable): Call varobj_clear_saved_item and
3584 varobj_iter_delete.
3585
3586 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3587 Yao Qi <yao@codesourcery.com>
3588
3589 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3590 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3591 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3592 (py-varobj.o): New rule.
3593 * python/py-varobj.c: New file.
3594 * python/python-internal.h (py_varobj_get_iterator): Declare.
3595 * varobj-iter.h: New file.
3596 * varobj.c: Include "varobj-iter.h"
3597 (struct varobj) <child_iter>: Change its type from "PyObject *"
3598 to "struct varobj_iter *".
3599 <saved_item>: Likewise.
3600 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3601 [HAVE_PYTHON] (varobj_get_iterator): New function.
3602 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3603 python-specific code to python/py-varobj.c.
3604 (install_visualizer): Call varobj_iter_delete instead of
3605 Py_XDECREF.
3606 * varobj.h (varobj_ensure_python_env): Declare.
3607
3608 2014-06-12 Yao Qi <yao@codesourcery.com>
3609
3610 * varobj.c (struct varobj_item): New structure.
3611 (create_child_with_value): Update declaration.
3612 (varobj_add_child): Replace arguments 'name' and 'value' with
3613 'item'. All callers updated.
3614 (install_dynamic_child): Likewise.
3615 (update_dynamic_varobj_children): Likewise.
3616 (varobj_add_child): Likewise.
3617 (create_child_with_value): Likewise.
3618
3619 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3620
3621 * NEWS: Create a new section for the next release branch.
3622 Rename the section of the current branch, now that it has
3623 been cut.
3624
3625 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3626
3627 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3628 * version.in: Bump version to 7.8.50.DATE-cvs.
3629
3630 2014-06-11 Pedro Alves <palves@redhat.com>
3631
3632 PR remote/17028
3633 * ser-mingw.c (net_windows_socket_check_pending): New function.
3634 (net_windows_select_thread): Ignore spurious wakeups. Use
3635 net_windows_socket_check_pending.
3636 (net_windows_wait_handle): Check for pending events with
3637 ioctlsocket, through net_windows_socket_check_pending, instead of
3638 checking the socket's event.
3639
3640 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3641
3642 * python/python-internal.h (gdb_PyObject_GetAttrString)
3643 (gdb_PyObject_HasAttrString): New inline function definitions.
3644 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3645 char * of the second argument to PyObject_GetAttrString.
3646
3647 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3648
3649 * serial.c (serial_write): Fix index of character to be printed
3650 in call to serial_logchar when serial debug traces are enabled.
3651
3652 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3653
3654 * gdbtypes (resolve_dynamic_range): Add function description.
3655
3656 2014-06-09 Pedro Alves <palves@redhat.com>
3657
3658 * linux-nat.c (linux_child_follow_fork): Initialize status with
3659 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3660 inner block. Only pass the signal to PTRACE_DETACH if in pass
3661 state.
3662
3663 2014-06-09 Gary Benson <gbenson@redhat.com>
3664
3665 * common/signals.c (gdb_signal_from_host): Reorder to separate
3666 the always-available ANSI-standard signals from the signals that
3667 require checking.
3668 (do_gdb_signal_to_host): Likewise.
3669 * proc-events.c (signal_table): Likewise.
3670
3671 2014-06-08 Hui Zhu <hui@codesourcery.com>
3672
3673 * common/linux-ptrace.c (linux_disable_event_reporting): New
3674 function.
3675 * common/linux-ptrace.h (linux_disable_event_reporting): New
3676 declaration.
3677 * linux-nat.c (linux_child_follow_fork): Do a single step before
3678 detach.
3679
3680 2014-06-07 Keith Seitz <keiths@redhat.com>
3681
3682 Revert:
3683 PR c++/16253
3684 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3685 from symbol_matches_domain in symtab.c. All local callers
3686 of symbol_matches_domain updated.
3687 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3688 search STRUCT_DOMAIN.
3689 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3690 independently. standard_lookup will do that automatically.
3691 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3692 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3693 (cp_lookup_symbol_in_namespace): Likewise.
3694 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3695 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3696 may return a STRUCT_DOMAIN match.
3697 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3698 * cp-support.c: Include language.h.
3699 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3700 VAR_DOMAIN.
3701 * psymtab.c (match_partial_symbol): Compare the requested
3702 domain with the symbol's domain directly.
3703 (lookup_partial_symbol): Likewise.
3704 * symtab.c (lookup_symbol_in_language): Explain when/why
3705 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3706 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3707 appropriate languages.
3708 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3709 and moved to ada-lang.c
3710 (lookup_block_symbol): Explain that this function only returns
3711 symbol matching the requested DOMAIN.
3712 Compare the requested domain with the symbol's domain directly.
3713 (iterate_over_symbols): Compare the requested domain with the
3714 symbol's domain directly.
3715 * symtab.h (symbol_matches_domain): Remove.
3716
3717 2014-06-06 Doug Evans <xdje42@gmail.com>
3718
3719 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3720 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3721 (gdbscm_guile_version_is_at_least): Declare.
3722 (gdbscm_scm_string_to_int): Declare.
3723 * guile/guile.c (gdbscm_guile_major_version): New global.
3724 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3725 (guile_datadir): New static global.
3726 (gdbscm_guile_data_directory): New function.
3727 (initialize_scheme_side): Update.
3728 (misc_guile_functions): Add guile-data-directory.
3729 (initialize_gdb_module): Fetch guile version number.
3730 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3731 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3732 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3733 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3734 comments.
3735 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3736 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3737 * guile/scm-value.c (gdbscm_value_to_string): Only call
3738 scm_port_conversion_strategy if Guile version >= 2.0.6.
3739
3740 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3741
3742 * main.c (print_gdb_help): Add -q and --silent.
3743
3744 2014-06-06 Gary Benson <gbenson@redhat.com>
3745
3746 * common/signals.c: Remove preprocessor conditionals for
3747 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3748 SIGSEGV and SIGTERM.
3749 * proc-events.c: Likewise.
3750
3751 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3752
3753 * symfile.c (symfile_free_objfile): Remove restriction to
3754 OBJF_USERLOADED.
3755 * symfile-mem.c (symbol_file_add_from_memory): Call
3756 add_target_sections_of_objfile.
3757
3758 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3759
3760 * guile/scm-value.c (gdbscm_history_append_x): Use
3761 'vlscm_get_value_smob_arg_unsafe' instead of
3762 'vlscm_scm_to_value'.
3763
3764 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3765
3766 PR mi/15806
3767 * utils.c (printchar): Don't escape at all if quoter is NUL.
3768 Update function documentation to clarify effect of parameter
3769 QUOTER.
3770 * remote.c (escape_buffer): Pass '\\' as the quoter to
3771 fputstrn_unfiltered.
3772 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3773 generate the output.
3774 (mi_solib_unloaded): Same.
3775
3776 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3777
3778 * development.sh: Delete.
3779 * Makefile.in (config.status): Adjust dependency on development.sh.
3780 * configure.ac: Adjust development.sh source call.
3781 * configure: Regenerate.
3782
3783 2014-06-04 Doug Evans <xdje42@gmail.com>
3784
3785 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3786 is_scheme_bkpt, spec.
3787 (bpscm_make_breakpoint_smob): Initialize new members.
3788 (gdbscm_create_breakpoint_x): Split into two ...
3789 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3790 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3791 (scheme_function breakpoint_functions): Update.
3792 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3793 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3794 register-breakpoint!.
3795
3796 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3797
3798 PR server/17023
3799 * mem-break.c (z_type_supported): Return zero if
3800 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3801
3802 2014-06-04 Tom Tromey <tromey@redhat.com>
3803
3804 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3805 value_from_contents_and_address_unresolved.
3806 (ada_template_to_fixed_record_type_1): Likewise.
3807 (ada_which_variant_applies): Likewise.
3808 * value.h (value_from_contents_and_address_unresolved): Declare.
3809 * value.c (value_from_contents_and_address_unresolved): New
3810 function.
3811 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3812 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3813 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3814
3815 2014-06-04 Tom Tromey <tromey@redhat.com>
3816
3817 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3818
3819 2014-06-04 Tom Tromey <tromey@redhat.com>
3820
3821 * procfs.c (procfs_attach): Make "args" const.
3822 * windows-nat.c (windows_attach): Make "args" const.
3823 * nto-procfs.c (procfs_attach): Make "args" const.
3824 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3825 * go32-nat.c (go32_attach): Make "args" const.
3826 * gnu-nat.c (gnu_attach): Make "args" const.
3827 * darwin-nat.c (darwin_attach): Make "args" const.
3828 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3829 * linux-nat.c (linux_nat_attach): Make "args" const.
3830 * remote.c (extended_remote_attach_1, extended_remote_attach):
3831 Make "args" const.
3832 * target.h (struct target_ops) <to_attach>: Make "args" const.
3833 (find_default_attach): Likewise.
3834 * utils.c (parse_pid_to_attach): Make "args" const.
3835 * utils.h (parse_pid_to_attach): Update.
3836
3837 2014-06-04 Tom Tromey <tromey@redhat.com>
3838
3839 * target-delegates.c: Rebuild.
3840 * target.c (default_thread_address_space): New function.
3841 (target_thread_address_space): Simplify.
3842 * target.h (struct target_ops) <to_thread_address_space>: Add
3843 TARGET_DEFAULT_FUNC.
3844
3845 2014-06-04 Doug Evans <xdje42@gmail.com>
3846
3847 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3848
3849 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3850
3851 * record-btrace.c: Include event-loop.h and inf-loop.h.
3852 (record_btrace_resume_exec_dir)
3853 (record_btrace_async_inferior_event_handler)
3854 (record_btrace_handle_async_inferior_event): New.
3855 (record_btrace_open): Create async event handler.
3856 (record_btrace_close): Delete async event handler.
3857 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3858 Mark async event handler.
3859 (record_btrace_execution_direction): New.
3860 (init_record_btrace_ops): Initialize to_execution_direction.
3861
3862 2014-06-03 Doug Evans <xdje42@gmail.com>
3863
3864 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3865 (gdbscm_make_parameter): Ditto.
3866
3867 2014-06-03 Doug Evans <dje@google.com>
3868
3869 * exec.c (exec_close_1): Call clear_section_table instead of
3870 resize_section_table.
3871 (clear_section_table): New function.
3872 (resize_section_table): Make static. Rename arg num_added to
3873 adjustment.
3874 * exec.h (clear_section_table): Declare.
3875 (resize_section_table): Delete.
3876 * progspace.c (release_program_space): Call clear_section_table
3877 instead of resize_section_table.
3878
3879 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3880
3881 * NEWS (Python Scripting): Add entry about the new xmethods
3882 feature.
3883
3884 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3885
3886 * python/py-xmethods.c: New file.
3887 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3888 (objfpy_dealloc): XDECREF on the new xmethods field.
3889 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3890 field.
3891 (objfpy_get_xmethods): New function.
3892 (objfile_getset): New entry 'xmethods'.
3893 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3894 (pspy_dealloc): XDECREF on the new xmethods field.
3895 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3896 field.
3897 (pspy_get_xmethods): New function.
3898 (pspace_getset): New entry 'xmethods'.
3899 * python/python-internal.h: Add declarations for new functions.
3900 * python/python.c (_initialize_python): Invoke
3901 gdbpy_initialize_xmethods.
3902 * python/lib/gdb/__init__.py (xmethods): New
3903 attribute.
3904 * python/lib/gdb/xmethod.py: New file.
3905 * python/lib/gdb/command/xmethods.py: New file.
3906
3907 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3908
3909 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3910 best match method returned by find_overload_match is an xmethod.
3911 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3912 the best matching operator returned by find_overload_match is an
3913 xmethod.
3914 * valops.c: #include "extension.h".
3915 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3916 Return void. The list of matching source methods is returned in
3917 "fn_list" and a vector of matching debug method workers is
3918 returned in "xm_worker_vec". Update all callers.
3919 (value_find_oload_method_list): Likewise.
3920 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3921 non-NULL, then the index of the best matching method in this
3922 vector is returned. Update all callers.
3923 (find_overload_match): Include xmethods while performing overload
3924 resolution.
3925
3926 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3927
3928 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3929 * extension-priv.h (struct extension_language_ops): Add the
3930 xmethod interface.
3931 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3932 get_matching_xmethod_workers, get_xmethod_argtypes,
3933 invoke_xmethod, free_xmethod_worker,
3934 free_xmethod_worker_vec): New functions.
3935 * extension.h: #include "common/vec.h".
3936 New function declarations.
3937 (struct xmethod_worker): New struct.
3938 (VEC (xmethod_worker_ptr)): New vector type.
3939 (xmethod_worker_ptr): New typedef.
3940 (xmethod_worker_vec): Likewise.
3941 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3942 builtin_type.
3943 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3944 (struct builtin_type): New field "xmethod".
3945 * valarith.c (value_ptradd): Assert that the value argument is not
3946 lval_xcallable.
3947 * valops.c (value_must_coerce_to_target): Return 0 for
3948 lval_xcallable values.
3949 * value.c (struct value): New field XM_WORKER in the field
3950 LOCATION.
3951 (value_address, value_raw_address): Return 0 for lval_xcallable
3952 values.
3953 (set_value_address): Assert that the value is not an
3954 lval_xcallable.
3955 (value_free): Free the associated xmethod worker when freeing
3956 lval_xcallable values.
3957 (set_value_component_location): Assert that the WHOLE value is not
3958 lval_xcallable.
3959 (value_of_xmethod, call_xmethod): New functions.
3960 * value.h: Declare "struct xmethod_worker".
3961 Declare new functions value_of_xmethod, call_xmethod.
3962
3963 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3964 Pedro Alves <palves@redhat.com>
3965
3966 PR breakpoints/17000
3967 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3968 New function, extracted from software_breakpoint_inserted_here_p.
3969 (software_breakpoint_inserted_here_p): Replace factored out code
3970 by call to find_non_raw_software_breakpoint_inserted_here.
3971 (bp_target_info_copy_insertion_state): New function.
3972 (bkpt_insert_location): Handle the case of a single-step
3973 breakpoint already inserted at the same address.
3974 (bkpt_remove_location): Handle the case of a single-step
3975 breakpoint still inserted at the same address.
3976 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3977 breakpoint already inserted at the same address.
3978 (deprecated_remove_raw_breakpoint): Handle the case of a
3979 non-raw breakpoint still inserted at the same address.
3980 (find_single_step_breakpoint): New function, extracted from
3981 single_step_breakpoint_inserted_here_p.
3982 (find_single_step_breakpoint): New function,
3983 factored out from single_step_breakpoint_inserted_here_p.
3984 (single_step_breakpoint_inserted_here_p): Reimplement.
3985
3986 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3987
3988 Pushed by Joel Brobecker <brobecker@adacore.com>
3989 * source.c (show_substitute_path_command): Fix display of matching
3990 substitution rules.
3991
3992 2014-06-03 Gary Benson <gbenson@redhat.com>
3993
3994 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3995
3996 2014-06-02 Doug Evans <xdje42@gmail.com>
3997
3998 Add parameter support for Guile.
3999 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4000 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4001 (scm-param.o): New rule.
4002 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4003 (gdbscm_misc_error): Declare.
4004 (gdbscm_canonicalize_command_name): Declare.
4005 (gdbscm_scm_to_host_string): Declare.
4006 (gdbscm_scm_from_host_string): Declare.
4007 (gdbscm_initialize_parameters): Declare.
4008 * guile/guile.c (initialize_gdb_module): Call
4009 gdbscm_initialize_parameters.
4010 * guile/lib/gdb.scm: Export parameter symbols.
4011 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4012 cmdscm_canonicalize_name and made public. All callers updated.
4013 * guile/scm-exception.c (gdbscm_misc_error): New function.
4014 * guile/scm-param.c: New file.
4015 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4016 (gdbscm_scm_to_host_string): New function.
4017 (gdbscm_scm_from_host_string): New function.
4018 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4019
4020 2014-06-02 Doug Evans <xdje42@gmail.com>
4021
4022 Add command support for Guile.
4023 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4024 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4025 (scm-cmd.o): New rule.
4026 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4027 (gdbscm_user_error_p): Declare.
4028 (gdbscm_parse_command_name): Declare.
4029 (gdbscm_valid_command_class_p): Declare.
4030 (gdbscm_initialize_commands): Declare.
4031 * guile/guile.c (initialize_gdb_module): Call
4032 gdbscm_initialize_commands.
4033 * guile/lib/gdb.scm: Export command symbols.
4034 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4035 (throw-user-error): New function.
4036 * guile/scm-cmd.c: New file.
4037 * guile/scm-exception.c (user_error_symbol): New static global.
4038 (gdbscm_user_error_p): New function.
4039 (gdbscm_initialize_exceptions): Set user_error_symbol.
4040 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4041
4042 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4043
4044 * top.c (command_loop): Handle comments here...
4045 (command_line_input): ... not here.
4046
4047 2014-06-02 Doug Evans <xdje42@gmail.com>
4048
4049 Add progspace support for Guile.
4050 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4051 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4052 (scm-progspace.o): New rule.
4053 * guile/guile-internal.h (pspace_smob): New typedef.
4054 (psscm_pspace_smob_pretty_printers): Declare.
4055 (psscm_pspace_smob_from_pspace): Declare.
4056 (psscm_scm_from_pspace): Declare.
4057 * guile/guile.c (initialize_gdb_module): Call
4058 gdbscm_initialize_pspaces.
4059 * guile/lib/gdb.scm: Export progspace symbols.
4060 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4061 support.
4062 (append-pretty-printer!): Ditto.
4063 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4064 Implement.
4065 * guile/scm-progspace.c: New file.
4066
4067 2014-06-03 Alan Modra <amodra@gmail.com>
4068
4069 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4070 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4071
4072 2014-06-02 Doug Evans <dje@google.com>
4073
4074 Add support for skeletonless type units.
4075 * dwarf2read.c (struct dwarf2_per_objfile): New member
4076 n_allocated_type_units.
4077 (struct dwarf2_per_objfile) <tu_stats>: New member
4078 nr_all_type_units_reallocs.
4079 (create_signatured_type_table_from_index): Initialize
4080 n_allocated_type_units
4081 (create_all_type_units): Ditto.
4082 (add_type_unit): Move up in file. New arg slot.
4083 All callers updated. Increase space for all_type_units more
4084 efficiently.
4085 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4086 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4087 (lookup_dwp_signatured_type): Ditto.
4088 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4089 All callers updated.
4090 (build_type_psymtabs_1): Leave type_unit_groups as
4091 NULL if no TUs present.
4092 (print_tu_stats): New function.
4093 (process_skeletonless_type_unit): New function.
4094 (process_dwo_file_for_skeletonless_type_units): New
4095 function.
4096 (process_skeletonless_type_units): New function.
4097 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4098 Call print tu_stats if debugging enabled.
4099
4100 2014-06-02 Pedro Alves <palves@redhat.com>
4101
4102 * breakpoint.c (build_target_command_list): Don't build a command
4103 list if we have any duplicate location that isn't a dprintf.
4104
4105 2014-06-02 Pedro Alves <palves@redhat.com>
4106
4107 * breakpoint.c (dprintf_breakpoint_hit): New function.
4108 (initialize_breakpoint_ops): Install it as dprintf's
4109 breakpoint_hit method.
4110
4111 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4112
4113 * source.c (substitute_path_rule_matches): Simplify using
4114 filename_ncmp instead of FILENAME_CMP.
4115
4116 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4117
4118 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4119
4120 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4121
4122 * configure.ac: When Guile is available, check for the
4123 availability of 'scm_new_smob'.
4124 * configure, config.h.in: Regenerate.
4125 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4126 function.
4127
4128 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4129
4130 * frame.c (struct frame_info): Add stop_string field.
4131 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4132 (get_prev_frame_always): Old content moved into
4133 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4134 TRY_CATCH, handle MEMORY_ERROR exceptions.
4135 (frame_stop_reason_string): New function definition.
4136 * frame.h (unwind_stop_reason_to_string): Extend comment to
4137 mention frame_stop_reason_string.
4138 (frame_stop_reason_string): New function declaration.
4139 * stack.c (frame_info): Switch to frame_stop_reason_string.
4140 (backtrace_command_1): Switch to frame_stop_reason_string.
4141 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4142 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4143 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4144
4145 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4146
4147 * frame.c (frame_stop_reason_string): Rename to ...
4148 (unwind_stop_reason_to_string): this.
4149 * frame.h (frame_stop_reason_string): Rename to ...
4150 (unwind_stop_reason_to_string): this.
4151 * stack.c (frame_info): Update call to frame_stop_reason_string.
4152 (backtrace_command_1): Likewise.
4153 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4154 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4155
4156 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4157
4158 * frame.c (remove_prev_frame): New function.
4159 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4160 remove_prev_frame.
4161
4162 2014-05-29 Pedro Alves <palves@redhat.com>
4163
4164 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4165 and make it const. When a single-step decays to a continue,
4166 clear 'step', not 'hw_step'. Pass whether the caller wanted
4167 to step to user_visible_resume_ptid, not what we ask the
4168 target to do.
4169
4170 2014-05-29 Pedro Alves <palves@redhat.com>
4171
4172 * infrun.c (process_event_stop_test, handle_step_into_function)
4173 (handle_step_into_function_backward): Adjust.
4174 Don't set the even thread's stop_step and call stop_waiting before
4175 calling end_stepping_range. Instead do that ...
4176 (end_stepping_range): ... here. Take an ecs pointer parameter.
4177
4178 2014-05-29 Pedro Alves <palves@redhat.com>
4179
4180 * infrun.c (stop_stepping): Rename to ...
4181 (stop_waiting): ... this.
4182 (proceed): Update comment.
4183 (process_event_stop_test, handle_inferior_event)
4184 (handle_signal_stop, handle_step_into_function)
4185 (handle_step_into_function_backward): Update.
4186
4187 2014-05-29 Pedro Alves <palves@redhat.com>
4188
4189 * infcall.c (run_inferior_call): Don't check whether the current
4190 thread is running after the proceed call.
4191
4192 2014-05-29 Pedro Alves <palves@redhat.com>
4193 Tom Tromey <tromey@redhat.com>
4194
4195 * NEWS: Mention "maint set target-async", "set mi-async", and that
4196 background execution commands are now always available.
4197 * target.h (target_async_permitted): Update comment.
4198 * target.c (target_async_permitted, target_async_permitted_1):
4199 Default to 1.
4200 (set_target_async_command): Rename to ...
4201 (maint_set_target_async_command): ... this.
4202 (show_target_async_command): Rename to ...
4203 (maint_show_target_async_command): ... this.
4204 (_initialize_target): Adjust.
4205 * infcmd.c (prepare_execution_command): Make extern.
4206 * inferior.h (prepare_execution_command): Declare.
4207 * infrun.c (set_observer_mode): Leave target async alone.
4208 * mi/mi-interp.c (mi_interpreter_init): Install
4209 mi_on_sync_execution_done as sync_execution_done observer.
4210 (mi_on_sync_execution_done): New function.
4211 (mi_execute_command_input_handler): Don't print the prompt if we
4212 just started a synchronous command with an async target.
4213 (mi_on_resume): Check sync_execution before printing prompt.
4214 * mi/mi-main.h (mi_async_p): Declare.
4215 * mi/mi-main.c: Include gdbcmd.h.
4216 (mi_async_p): New function.
4217 (mi_async, mi_async_1): New globals.
4218 (set_mi_async_command, show_mi_async_command, mi_async): New
4219 functions.
4220 (exec_continue): Call prepare_execution_command.
4221 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4222 (mi_execute_async_cli_command): Use mi_async_p.
4223 (_initialize_mi_main): Install "set mi-async". Make
4224 "target-async" a deprecated alias.
4225
4226 2014-05-29 Pedro Alves <palves@redhat.com>
4227
4228 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4229 (_initialize_cli_interp): Adjust.
4230 * event-loop.c: Include "observer.h".
4231 (start_event_loop): Notify 'command_error' observers instead of
4232 calling display_gdb_prompt. Remove FIXME comment.
4233 * event-top.c (display_gdb_prompt): Remove call into the
4234 interpreters.
4235 * inf-loop.c: Include "observer.h".
4236 (inferior_event_handler): Notify 'command_error' observers instead
4237 of calling display_gdb_prompt.
4238 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4239 observers instead of calling display_gdb_prompt.
4240 * interps.c (interp_set): Don't call display_gdb_prompt.
4241 (current_interp_display_prompt_p): Delete.
4242 * interps.h (interp_prompt_p): Delete declaration.
4243 (interp_prompt_p_ftype): Delete.
4244 (struct interp_procs) <prompt_proc_p>: Delete field.
4245 (current_interp_display_prompt_p): Delete declaration.
4246 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4247 (_initialize_mi_interp): Adjust.
4248 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4249 'command_error' observers.
4250 (tui_on_sync_execution_done, tui_on_command_error): New
4251 functions.
4252 (tui_display_prompt_p): Delete.
4253 (_initialize_tui_interp): Adjust.
4254
4255 2014-05-29 Pedro Alves <palves@redhat.com>
4256
4257 PR gdb/13860
4258 * cli/cli-interp.c: Include infrun.h and observer.h.
4259 (cli_uiout, cli_interp): New globals.
4260 (cli_on_signal_received, cli_on_end_stepping_range)
4261 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4262 functions.
4263 (cli_interpreter_init): Install them as 'end_stepping_range',
4264 'signal_received' 'signal_exited', 'exited' and 'no_history'
4265 observers.
4266 (_initialize_cli_interp): Remove cli_interp local.
4267 * infrun.c (handle_inferior_event): Call the several stop reason
4268 observers instead of printing the stop reason directly.
4269 (end_stepping_range): New function.
4270 (print_end_stepping_range_reason, print_signal_exited_reason)
4271 (print_exited_reason, print_signal_received_reason)
4272 (print_no_history_reason): Make static, and add an uiout
4273 parameter. Print to that instead of to CURRENT_UIOUT.
4274 * infrun.h (print_end_stepping_range_reason)
4275 (print_signal_exited_reason, print_exited_reason)
4276 (print_signal_received_reason print_no_history_reason): New
4277 declarations.
4278 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4279 'mi_uiout'.
4280 <cli_uiout>: New field.
4281 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4282 uiout for CLI output. Install 'signal_received',
4283 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4284 observers.
4285 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4286 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4287 (mi_on_no_history): New functions.
4288 (ui_out_free_cleanup): Delete function.
4289 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4290 instead use the one already stored in the MI interpreter data.
4291 (mi_ui_out): Adjust.
4292 * tui/tui-interp.c: Include infrun.h and observer.h.
4293 (tui_interp): New global.
4294 (tui_on_signal_received, tui_on_end_stepping_range)
4295 (tui_on_signal_exited, tui_on_exited)
4296 (tui_on_no_history): New functions.
4297 (tui_init): Install them as 'end_stepping_range',
4298 'signal_received' 'signal_exited', 'exited' and 'no_history'
4299 observers.
4300 (_initialize_tui_interp): Delete tui_interp local.
4301
4302 2014-05-29 Pedro Alves <palves@redhat.com>
4303
4304 PR gdb/15713
4305 * linux-nat.c (linux_nat_resume_callback): Rename the second
4306 parameter to 'except'. Skip LP if it points to EXCEPT.
4307 (linux_nat_resume): Don't mark the event lwp as not stopped
4308 before resuming sibling lwps. Instead ask
4309 linux_nat_resume_callback to skip the event lwp. Mark it as not
4310 stopped after actually resuming it.
4311 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4312 resuming it.
4313 (wait_lwp): Mark the lwp as stopped here.
4314 (stop_wait_callback): Mark the lwp as not stopped right after
4315 resuming it. Don't mark lwps as stopped here.
4316 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4317 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4318
4319 2014-05-29 Pedro Alves <palves@redhat.com>
4320
4321 PR PR15693
4322 * infrun.c (resume): Determine how much to resume depending on
4323 whether the caller wanted a step, not whether we can hardware step
4324 the target. Mark all threads that we intend to run as running,
4325 unless we're calling an inferior function.
4326 (normal_stop): If the thread is running an infcall, don't finish
4327 thread state.
4328 * target.c (target_resume): Don't mark threads as running here.
4329
4330 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4331
4332 * serial.c (_initialize_serial): Remove support for
4333 the "set remotebaud" and "show remotebaud" commands.
4334 * NEWS: Add entry documenting the removal of that command.
4335
4336 2014-05-28 Yao Qi <yao@codesourcery.com>
4337
4338 * charset.c: Fix typo in comments.
4339
4340 2014-05-27 Gary Benson <gbenson@redhat.com>
4341
4342 * utils.c (internal_vproblem): Prompt for a bug report.
4343
4344 2014-05-26 Andy Wingo <wingo@igalia.com>
4345
4346 * guile/scm-arch.c (arscm_mark_arch_smob):
4347 * guile/scm-block.c (bkscm_mark_block_smob)
4348 (bkscm_mark_block_syms_progress_smob):
4349 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4350 * guile/scm-exception.c (exscm_mark_exception_smob):
4351 * guile/scm-frame.c (frscm_mark_frame_smob):
4352 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4353 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4354 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4355 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4356 (ppscm_mark_pretty_printer_worker_smob):
4357 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4358 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4359 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4360 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4361 mark functions.
4362 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4363 function.
4364
4365 2014-05-26 Andy Wingo <wingo@igalia.com>
4366 Doug Evans <xdje42@gmail.com>
4367
4368 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4369 empty_base_class. All uses updated.
4370 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4371 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4372 Adapt all callers.
4373 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4374 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4375 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4376 (gdbscm_gsmob_has_property_p, add_property_name)
4377 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4378 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4379 (gdb-object-has-property?, gdb-object-properties): Remove.
4380 (gdb-object-kind): Renamed from gsmob-kind.
4381
4382 2014-05-26 Andy Wingo <wingo@igalia.com>
4383
4384 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4385 * configure: Regenerate.
4386
4387 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4388
4389 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4390
4391 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4392
4393 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4394 (replay_memory_access_read_only, replay_memory_access_read_write)
4395 (replay_memory_access_types, replay_memory_access)
4396 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4397 (cmd_set_record_btrace, cmd_show_record_btrace)
4398 (cmd_show_replay_memory_access): New.
4399 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4400 (record_btrace_remove_breakpoint): Replace
4401 record_btrace_allow_memory_access with replay_memory_access.
4402 (_initialize_record_btrace): Add commands.
4403 * NEWS: Announce it.
4404
4405 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4406
4407 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4408
4409 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4410
4411 * MAINTAINERS (Write After Approval): Move self back from
4412 paper trail.
4413
4414 2014-05-22 Pedro Alves <palves@redhat.com>
4415
4416 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4417 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4418 (disable_randomization, enum exec_direction_kind)
4419 (execution_direction, stop_registers, start_remote)
4420 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4421 (wait_for_inferior, normal_stop, get_last_target_status)
4422 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4423 (insert_step_resume_breakpoint_at_sal)
4424 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4425 (set_step_info, print_stop_event, signal_stop_state)
4426 (signal_print_state, signal_pass_state, signal_stop_update)
4427 (signal_print_update, signal_pass_update)
4428 (update_signals_program_target, clear_exit_convenience_vars)
4429 (displaced_step_dump_bytes, update_observer_mode)
4430 (signal_catch_update, gdb_signal_from_command): Move
4431 declarations ...
4432 * infrun.h: ... to this new file.
4433 * amd64-tdep.c: Include infrun.h.
4434 * annotate.c: Include infrun.h.
4435 * arch-utils.c: Include infrun.h.
4436 * arm-linux-tdep.c: Include infrun.h.
4437 * arm-tdep.c: Include infrun.h.
4438 * break-catch-sig.c: Include infrun.h.
4439 * breakpoint.c: Include infrun.h.
4440 * common/agent.c: Include infrun.h instead of inferior.h.
4441 * corelow.c: Include infrun.h.
4442 * event-top.c: Include infrun.h.
4443 * go32-nat.c: Include infrun.h.
4444 * i386-tdep.c: Include infrun.h.
4445 * inf-loop.c: Include infrun.h.
4446 * infcall.c: Include infrun.h.
4447 * infcmd.c: Include infrun.h.
4448 * infrun.c: Include infrun.h.
4449 * linux-fork.c: Include infrun.h.
4450 * linux-nat.c: Include infrun.h.
4451 * linux-thread-db.c: Include infrun.h.
4452 * monitor.c: Include infrun.h.
4453 * nto-tdep.c: Include infrun.h.
4454 * procfs.c: Include infrun.h.
4455 * record-btrace.c: Include infrun.h.
4456 * record-full.c: Include infrun.h.
4457 * remote-m32r-sdi.c: Include infrun.h.
4458 * remote-mips.c: Include infrun.h.
4459 * remote-notif.c: Include infrun.h.
4460 * remote-sim.c: Include infrun.h.
4461 * remote.c: Include infrun.h.
4462 * reverse.c: Include infrun.h.
4463 * rs6000-tdep.c: Include infrun.h.
4464 * s390-linux-tdep.c: Include infrun.h.
4465 * solib-irix.c: Include infrun.h.
4466 * solib-osf.c: Include infrun.h.
4467 * solib-svr4.c: Include infrun.h.
4468 * target.c: Include infrun.h.
4469 * top.c: Include infrun.h.
4470 * windows-nat.c: Include infrun.h.
4471 * mi/mi-interp.c: Include infrun.h.
4472 * mi/mi-main.c: Include infrun.h.
4473 * python/py-threadevent.c: Include infrun.h.
4474
4475 2014-05-22 Pedro Alves <palves@redhat.com>
4476
4477 * infrun.c (handle_inferior_event): Store the exit code for
4478 --return-child-result here, instead of ...
4479 (print_exited_reason): ... here.
4480
4481 2014-05-21 Pedro Alves <palves@redhat.com>
4482
4483 PR gdb/13860
4484 * gdbthread.h (struct thread_control_state): New field
4485 `command_interp'.
4486 * infrun.c (follow_fork): Copy the new thread control field to the
4487 child fork thread.
4488 (clear_proceed_status_thread): Clear the new thread control field.
4489 (proceed): Set the new thread control field.
4490 * interps.h (command_interp): Declare.
4491 * interps.c (command_interpreter): New global.
4492 (command_interp): New function.
4493 (interp_exec): Set `command_interpreter' while here.
4494 * cli-out.c (cli_uiout_dtor): New function.
4495 (cli_ui_out_impl): Install it.
4496 * mi/mi-interp.c: Include cli-out.h.
4497 (mi_cmd_interpreter_exec): Add comment.
4498 (restore_current_uiout_cleanup): New function.
4499 (ui_out_free_cleanup): New function.
4500 (mi_on_normal_stop): If finishing an execution command started by
4501 a CLI command, or any kind of breakpoint-like event triggered,
4502 print the stop event to the output (CLI) stream.
4503 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4504
4505 2014-05-21 Pedro Alves <palves@redhat.com>
4506
4507 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4508 current source line having changed.
4509 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4510 * infrun.c (normal_stop): Adjust call to
4511 set_current_sal_from_frame.
4512 * source.c (clear_lines_listed_range): New function.
4513 (set_current_source_symtab_and_line, identify_source_line): Clear
4514 the lines listed range.
4515 (line_info): Handle the first "info line" after the current source
4516 line having changed.
4517 * stack.c (print_stack_frame): Remove center handling.
4518 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4519 center sal.line.
4520
4521 2014-05-21 Pedro Alves <palves@redhat.com>
4522
4523 * inf-child.c (inf_child_mourn_inferior): New function.
4524 * inf-child.h (inf_child_mourn_inferior): New declaration.
4525 * darwin-nat.c (darwin_mourn_inferior): Use
4526 inf_child_mourn_inferior.
4527 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4528 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4529 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4530 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4531 * windows-nat.c (windows_mourn_inferior): Likewise.
4532
4533 2014-05-21 Doug Evans <xdje42@gmail.com>
4534
4535 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4536
4537 2014-05-21 Doug Evans <xdje42@gmail.com>
4538
4539 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4540 (gdbscm_out_of_range_error): Ditto.
4541 (gdbscm_memory_error): Ditto.
4542 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4543 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4544 (gdbscm_out_of_range_error): Update.
4545 (gdbscm_memory_error): Update.
4546 (gdbscm_scm_to_target_string_unsafe): Delete.
4547
4548 2014-05-21 Pedro Alves <palves@redhat.com>
4549
4550 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4551 globals.
4552 (inf_child_open_target): New function.
4553 (inf_child_open): Use inf_child_open_target to push the target
4554 instead of erroring out.
4555 (inf_child_disconnect, inf_child_close)
4556 (inf_child_maybe_unpush_target): New functions.
4557 (inf_child_target): Install inf_child_disconnect and
4558 inf_child_close. Store a pointer to the returned object.
4559 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4560 declarations.
4561 * target.c (auto_connect_native_target): New global.
4562 (show_default_run_target): New function.
4563 (find_default_run_target): Return NULL if automatically connecting
4564 to the native target is disabled.
4565 (_initialize_target): Install set/show auto-connect-native-target.
4566 * NEWS: Mention "set auto-connect-native-target", and "target
4567 native".
4568 * linux-nat.c (super_close): New global.
4569 (linux_nat_close): Call super_close.
4570 (linux_nat_add_target): Store a pointer to the base class's
4571 to_close method.
4572 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4573 inf_child_maybe_unpush.
4574 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4575 already pushed.
4576 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4577 the inferior. Use inf_child_maybe_unpush_target.
4578 (inf_ttrace_attach): Don't push the target if it is already
4579 pushed.
4580 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4581 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4582 after mourning the inferior. Use inf_child_maybe_unpush_target.
4583 (darwin_attach_pid): Don't push the target if it is already
4584 pushed.
4585 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4586 mourning the inferior. Use inf_child_maybe_unpush_target.
4587 (gnu_detach): Use inf_child_maybe_unpush_target.
4588 * go32-nat.c (go32_create_inferior): Don't push the target if it
4589 is already pushed.
4590 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4591 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4592 (procfs_open): Rename to ...
4593 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4594 comments. Can target_preopen before changing node. Call
4595 inf_child_open_target to push the target explicitly.
4596 (procfs_attach): Don't push the target if it is already pushed.
4597 (procfs_detach): Use inf_child_maybe_unpush_target.
4598 (procfs_create_inferior): Don't push the target if it is already
4599 pushed.
4600 (nto_native_ops): New global.
4601 (procfs_open): Reimplement.
4602 (procfs_native_open): New function.
4603 (init_procfs_targets): Install procfs_native_open as to_open of
4604 "target native". Store a pointer to the "native" target in
4605 nto_native_ops.
4606 * procfs.c (procfs_attach): Don't push the target if it is already
4607 pushed.
4608 (procfs_detach): Use inf_child_maybe_unpush_target.
4609 (procfs_mourn_inferior): Only unpush the target after mourning the
4610 inferior. Use inf_child_maybe_unpush_target.
4611 (procfs_init_inferior): Don't push the target if it is already
4612 pushed.
4613 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4614 if it is already pushed.
4615
4616 2014-05-21 Pedro Alves <palves@redhat.com>
4617
4618 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4619 and "procfs" targets are now called "native" instead.
4620
4621 2014-05-21 Pedro Alves <palves@redhat.com>
4622
4623 * go32-nat.c (go32_open): Delete.
4624 (go32_target): Don't override the to_open method.
4625
4626 2014-05-21 Pedro Alves <palves@redhat.com>
4627
4628 * nto-procfs.c (procfs_can_run): New function.
4629 (nto_procfs_ops): New global.
4630 (init_procfs_targets): New, based on procfs_target. Install
4631 "target native" in addition to "target procfs".
4632 (_initialize_procfs): Call init_procfs_targets instead of adding
4633 the target here.
4634
4635 2014-05-21 Pedro Alves <palves@redhat.com>
4636
4637 * windows-nat.c (windows_target): Don't override to_shortname,
4638 to_longname or to_doc.
4639
4640 2014-05-21 Pedro Alves <palves@redhat.com>
4641
4642 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4643 to_doc.
4644
4645 2014-05-21 Pedro Alves <palves@redhat.com>
4646
4647 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4648 to_shortname, to_longname or to_doc.
4649
4650 2014-05-21 Pedro Alves <palves@redhat.com>
4651
4652 * go32-nat.c (go32_target): Don't override to_shortname,
4653 to_longname or to_doc.
4654
4655 2014-05-21 Pedro Alves <palves@redhat.com>
4656
4657 * inf-child.c (inf_child_open): Remove mention of "child".
4658 (inf_child_target): Rename target to "native" instead of "child".
4659
4660 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4661
4662 * Makefile.in (SFILES): Delete "regset.c".
4663 (COMMON_OBS): Delete "regset.o".
4664 * regset.c: Remove.
4665 * regset.h (regset_alloc): Delete prototype.
4666
4667 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4668
4669 * sparc-linux-tdep.c (sparc32_linux_gregset)
4670 (sparc32_linux_fpregset): New static regset structures.
4671 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4672 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4673 'fpregset' fields.
4674 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4675 (sparc64_linux_fpregset): New static regset structures.
4676 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4677 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4678 New static regset structures.
4679 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4680 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4681 New static regset structures.
4682 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4683 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4684 New static regset structures.
4685 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4686 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4687 New static regset structures.
4688 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4689
4690 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4691
4692 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4693 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4694 register maps ("regmaps") from "*regset" to "*regmap". Do this
4695 for all regmap types and variables.
4696 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4697 (sparc32_linux_supply_core_gregset)
4698 (sparc32_linux_collect_core_gregset)
4699 (sparc32_linux_supply_core_fpregset)
4700 (sparc32_linux_collect_core_fpregset): Likewise.
4701 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4702 (sparc_gregmap, sparc_fpregmap): ... these.
4703 (sparc_supply_gregset, sparc_collect_gregset)
4704 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4705 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4706 (_initialize_sparc_nat): Rename regmaps.
4707 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4708 (sparc_gregmap, sparc_fpregmap): ... these.
4709 (sparc_supply_gregset, sparc_collect_gregset)
4710 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4711 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4712 Rename macros to...
4713 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4714 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4715 Likewise.
4716 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4717 Rename to...
4718 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4719 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4720 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4721 regmaps.
4722 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4723 (sparc32_bsd_fpregset): Rename to...
4724 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4725 (sparc32_bsd_fpregmap): ... these.
4726 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4727 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4728 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4729 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4730 (struct sparc_gregmap, struct sparc_fpregmap)
4731 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4732 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4733 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4734 (sparc32_supply_regset, sparc32_collect_gregset)
4735 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4736 prototypes.
4737 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4738 (sparc64_linux_ptrace_gregmap): ... this.
4739 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4740 (_initialize_sparc64_linux_nat): Rename regmaps.
4741 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4742 (sparc64_linux_core_gregmap): ... this.
4743 (sparc64_linux_supply_core_gregset)
4744 (sparc64_linux_collect_core_gregset)
4745 (sparc64_linux_supply_core_fpregset)
4746 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4747 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4748 (sparc64_sol2_fpregset): Rename to...
4749 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4750 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4751 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4752 regmaps.
4753 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4754 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4755 (sparc64_bsd_fpregset): Rename to...
4756 (struct sparc_gregmap, sparc64_sol2_gregmap)
4757 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4758 (sparc64_bsd_fpregmap): ... these.
4759 (sparc64_supply_gregset, sparc64_collect_gregset)
4760 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4761 prototypes.
4762 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4763 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4764 (sparc64fbsd_gregmap): ... this.
4765 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4766 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4767 Rename regmaps.
4768 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4769 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4770 (sparc64nbsd_collect_fpregset): Likewise.
4771 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4772 (sparc64nbsd_gregmap): ... this.
4773 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4774 regmaps.
4775 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4776 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4777 (sparc64obsd_gregmap): ... this.
4778 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4779 regmaps.
4780 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4781 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4782 (sparc32nbsd_gregmap): ... this.
4783 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4784 regmaps.
4785
4786 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4787
4788 * score-tdep.c (score7_linux_gregset): New static regset
4789 structure.
4790 (score7_linux_regset_from_core_section): Remove dynamic regset
4791 allocation.
4792 (score_gdbarch_init): Drop allocation of tdep structure.
4793 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4794
4795 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4796
4797 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4798 regset structures.
4799 (am33_regset_from_core_section): Remove dynamic regset
4800 allocations.
4801
4802 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4803
4804 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4805 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4806 structures.
4807 (mips_linux_regset_from_core_section): Remove dynamic regset
4808 allocations.
4809 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4810 'gregset64', 'fpregset', and 'fpregset64'.
4811 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4812 deleted tdep fields.
4813
4814 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4815
4816 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4817 regset structures.
4818 (amd64_regset_from_core_section): Remove dynamic regset
4819 allocations.
4820 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4821 structure.
4822 (amd64obsd_regset_from_core_section): Remove dynamic regset
4823 allocation.
4824 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4825 Likewise.
4826 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4827 x86-common regset supply function.
4828 * i386-tdep.c (i386_collect_gregset): Make static.
4829 (i386_gregset): New global regset structure.
4830 (i386_fpregset, i386_xstateregset): New static regset structures.
4831 (i386_regset_from_core_section): Remove dynamic regset
4832 allocations.
4833 (i386_gdbarch_init): Remove initialization of tdep fields
4834 'gregset', 'fpregset', and 'xstateregset'.
4835 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4836 'fpregset', and 'xstateregset'.
4837 (i386_collect_gregset): Remove prototype.
4838 (i386_gregset): New declaration.
4839 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4840 structure.
4841 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4842 allocation.
4843
4844 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4845
4846 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4847 (arm_linux_vfpregset): New static regset structures.
4848 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4849 regset structures.
4850 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4851 and 'vfpregset' fields.
4852
4853 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4854
4855 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4856 (aarch64_linux_fpregset): New static regset structures.
4857 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4858 of regset structures.
4859 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4860 'fpregset' fields.
4861
4862 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4863
4864 * regset.h (struct regset): Remove gdbarch field.
4865 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4866 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4867 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4868 Likewise.
4869 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4870 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4871 (ppc32_linux_vsxregset): Likewise.
4872 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4873 via the regcache instead of the regset.
4874 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4875 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4876 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4877 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4878 Likewise.
4879
4880 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4881
4882 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4883 Constify structures.
4884 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4885 (alphanbsd_aout_gregset): Likewise.
4886 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4887 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4888 Likewise.
4889 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4890 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4891 Likewise.
4892 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4893 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4894 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4895 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4896 * m88k-tdep.c (m88k_gregset): Likewise.
4897 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4898 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4899 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4900 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4901 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4902 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4903 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4904 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4905 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4906 Likewise.
4907 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4908 * sh-tdep.h (sh_corefile_gregset): Likewise.
4909 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4910 * vax-tdep.c (vax_gregset): Likewise.
4911
4912 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4913
4914 Fix TLS access for -static -pthread.
4915 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4916 (try_thread_db_load_1): Initialize it.
4917 (thread_db_get_thread_local_address): Call it if LM is zero.
4918 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4919 * target.h (struct target_ops) (to_get_thread_local_address): Add
4920 load_module_addr comment.
4921
4922 2014-05-21 Pedro Alves <palves@redhat.com>
4923
4924 * dcache.c (dcache_read_memory_partial): If reading the cache line
4925 fails, fallback to reading just the memory the caller wanted.
4926
4927 2014-05-20 Doug Evans <dje@google.com>
4928
4929 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4930 instead of get_current_arch.
4931
4932 2014-05-20 Pedro Alves <palves@redhat.com>
4933
4934 * NEWS: Mention that compare-sections now works with all targets.
4935
4936 * remote.c (PACKET_qCRC): New enum value.
4937 (remote_verify_memory): Don't send qCRC if the target has no
4938 execution. Use packet_support/packet_ok. If the target doesn't
4939 support the qCRC packet, fallback to a deep memory copy.
4940 (compare_sections_command): Say "target image" instead of "remote
4941 executable".
4942 (_initialize_remote): Add PACKET_qCRC to the list of config
4943 packets that have no associated command. Extend comment.
4944 * target.c (simple_verify_memory, default_verify_memory): New
4945 function.
4946 * target.h (struct target_ops) <to_verify_memory>: Default to
4947 default_verify_memory.
4948 (simple_verify_memory): New declaration.
4949 * target-delegates.c: Regenerate.
4950
4951 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4952
4953 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4954
4955 2014-05-20 Hui Zhu <hui@codesourcery.com>
4956 Yao Qi <yao@codesourcery.com>
4957
4958 PR backtrace/16558
4959 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4960 and change address of sp and pc.
4961
4962 2014-05-19 Tom Tromey <tromey@redhat.com>
4963
4964 * gdbtypes.c (rank_function): Use XNEWVEC.
4965 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4966
4967 2014-05-19 Doug Evans <dje@google.com>
4968
4969 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4970 build_type_unit_groups and moved closer to only caller. Remove
4971 arguments. All references updated. Remove outdated .gdb_index
4972 comment.
4973 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4974 build_type_psymtabs_1.
4975
4976 2014-05-19 Doug Evans <dje@google.com>
4977
4978 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4979 n_type_unit_groups, all_type_unit_groups. All uses removed.
4980 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4981 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4982 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4983 (add_type_unit_group_to_table): Delete.
4984
4985 2014-05-19 Doug Evans <dje@google.com>
4986
4987 * eval.c (evaluate_subexp_standard): Add some comments.
4988
4989 2014-05-17 Doug Evans <xdje42@gmail.com>
4990
4991 * progspace.c (remove_program_space): Delete, unused.
4992 * progspace.h (remove_program_space): Ditto.
4993
4994 2014-05-17 Doug Evans <xdje42@gmail.com>
4995
4996 * inferior.c (prune_inferiors): Fix comment.
4997 (remove_inferior_command): Call prune_program_spaces.
4998
4999 2014-05-16 Doug Evans <dje@google.com>
5000
5001 New command line option -D.
5002 * NEWS: Mention it.
5003 * main.c (set_gdb_data_directory): New function.
5004 (captured_main): Recognize -D. Flag error for --data-directory "".
5005 Call set_gdb_data_directory.
5006 (print_gdb_help): Print --data-directory, -D.
5007 * main.h (set_gdb_data_directory): Declare.
5008 * top.c (staged_gdb_datadir): New static global.
5009 (set_gdb_datadir): Call set_gdb_data_directory
5010 (show_gdb_datadir): New function.
5011 (init_main): Update init of data-directory parameter.
5012
5013 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5014
5015 Import the "dirfd" gnulib module.
5016 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5017 * gnulib/aclocal.m4: Update.
5018 * gnulib/config.in: Update.
5019 * gnulib/configure: Update.
5020 * gnulib/import/Makefile.am: Update.
5021 * gnulib/import/Makefile.in: Update.
5022 * gnulib/import/dirfd.c: New.
5023 * gnulib/import/m4/dirfd.m4: New.
5024 * gnulib/import/m4/gnulib-cache.m4: Update.
5025 * gnulib/import/m4/gnulib-comp.m4: Update.
5026
5027 2014-05-16 Pierre Muller <muller@sourceware.org>
5028 Yao Qi <yao@codesourcery.com>
5029
5030 * valprint.c (print_wchar): Move the code on checking whether
5031 W is a printable wide char to the default branch of switch
5032 statement below. Call wchar_printable instead of gdb_iswprint.
5033
5034 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5035
5036 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5037 ldr.w and ldrd instructions.
5038
5039 2014-05-15 Doug Evans <dje@google.com>
5040
5041 * dwarf2read.c (read_structure_type): Delete outdated comments.
5042
5043 2014-05-14 Tom Tromey <tromey@redhat.com>
5044
5045 * macrocmd.c (print_macro_definition): Reindent.
5046
5047 2014-05-13 Doug Evans <xdje42@gmail.com>
5048
5049 * python/py-cmd.c (cmdpy_completer): Add comment.
5050 (completers): Make const.
5051
5052 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5053
5054 * infrun.c (resume): Remove should_resume (unused). Move up
5055 declaration of resume_ptid.
5056
5057 2014-05-13 Tom Tromey <tromey@redhat.com>
5058
5059 * language.h (unop_type_check): Remove.
5060 (binop_type_check): Don't declare.
5061
5062 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5063
5064 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5065 call to regcache_raw_collect.
5066
5067 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5068
5069 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5070 mi_console->quote as the quoting character.
5071
5072 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5073
5074 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5075
5076 2014-04-29 Tom Tromey <tromey@redhat.com>
5077
5078 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5079 "show debug varobj".
5080
5081 2014-05-07 Kyle McMartin <kyle@redhat.com>
5082
5083 Pushed by Joel Brobecker <brobecker@adacore.com>.
5084 * aarch64-tdep.c (aarch64_software_single_step): New function.
5085 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5086 with aarch64_software_single_step.
5087
5088 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5089
5090 GDB 7.7.1 released.
5091
5092 2014-05-05 Keith Seitz <keiths@redhat.com>
5093
5094 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5095 variable or history value is successfully parsed.
5096
5097 2014-05-05 Yao Qi <yao@codesourcery.com>
5098 Pedro Alves <palves@redhat.com>
5099
5100 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5101 address of blocks that intersects the requested range. Trim
5102 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5103 sections.
5104 * ctf.c (ctf_xfer_partial): Likewise.
5105
5106 2014-05-05 Yao Qi <yao@codesourcery.com>
5107
5108 * printcmd.c (display_command): Remove the check to
5109 target_has_execution.
5110
5111 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5112
5113 * ppcobsd-nat.c: Include "obsd-nat.h".
5114 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5115 add_target.
5116 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5117
5118 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5119
5120 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5121 and 16-bit signed and unsigned arguments. Update comment.
5122 (stap_parse_probe_arguments): Extend code to handle such
5123 arguments. Use warning instead of complaint to notify about
5124 unrecognized bitness.
5125
5126 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5127
5128 PR breakpoints/16889
5129 * stap-probe.c (stap_parse_probe_arguments): Simplify
5130 check for non-prefixed probes (i.e., probes whose
5131 arguments do not start with "N@"). Always set the
5132 argument type to a sane value.
5133
5134 2014-05-01 David Taylor <dtaylor@emc.com>
5135
5136 * remote.c (compare_sections_command): Add -r option to compare
5137 all loadable read-only sections.
5138
5139 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5140
5141 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5142 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5143 Update all callers.
5144 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5145 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5146 Remove unused CORE_ADDR argument. Update all callers.
5147
5148 2014-04-29 Pedro Alves <palves@redhat.com>
5149
5150 * remote.c (struct packet_config) <detect>: Extend comment.
5151 (add_packet_config_cmd): Don't set the config's detect or support
5152 fields here.
5153 (init_all_packet_configs): Also initialize the config's 'detect'
5154 field.
5155 (reset_all_packet_configs_support): New function.
5156 (remote_open_1): Call reset_all_packet_configs_support instead of
5157 init_all_packet_configs.
5158 (_initialize_remote): Initialize all packet configs. Assert that
5159 all packets have an associated command, except a few known
5160 outliers.
5161
5162 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5163
5164 * dwarf2read.c (read_subrange_type): Handle dynamic
5165 DW_AT_lower_bound attributes.
5166
5167 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5168
5169 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5170 dynamic bounds before computing its upper bound.
5171 (ada_discrete_type_low_bound): Same as above with the lower bound.
5172
5173 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5174
5175 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5176 range types. Adjust the array handling implementation to
5177 take advantage of this change.
5178 (resolve_dynamic_range): New function, mostly extracted from
5179 resolve_dynamic_bounds.
5180 (resolve_dynamic_array): New function, mostly extracted from
5181 resolve_dynamic_bounds.
5182 (resolve_dynamic_bounds): Delete.
5183 (resolve_dynamic_type): Reimplement. Add handling of
5184 TYPE_CODE_RANGE types.
5185
5186 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5187
5188 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5189 handling of parallel ___XA types.
5190
5191 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5192
5193 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5194 unnecessary second call to static_unwrap_type.
5195
5196 2014-04-27 Hui Zhu <hui@codesourcery.com>
5197
5198 * stack.c (print_frame_info): Call do_gdb_disassembly with
5199 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5200
5201 2014-04-26 Doug Evans <xdje42@gmail.com>
5202
5203 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5204
5205 2014-04-25 Pedro Alves <palves@redhat.com>
5206
5207 PR server/16255
5208 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5209 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5210 and newline from built string.
5211 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5212 (linux_ptrace_attach_fail_reason): ... this.
5213 * linux-nat.c (linux_nat_attach): Adjust to use
5214 linux_ptrace_attach_fail_reason.
5215
5216 2014-04-25 Pedro Alves <palves@redhat.com>
5217
5218 * remote.c (struct remote_state): Remove multi_process_aware,
5219 non_stop_aware, cond_tracepoints, cond_breakpoints,
5220 breakpoint_commands, fast_tracepoints, static_tracepoints,
5221 install_in_trace, disconnected_tracing,
5222 enable_disable_tracepoints, string_tracing, and
5223 augmented_libraries_svr4_read fields.
5224 (remote_multi_process_p): Move further below in the file.
5225 (struct packet_config): Add comments.
5226 (update_packet_config): Delete function.
5227 (show_packet_config_cmd): Use packet_config_support.
5228 (add_packet_config_cmd): Use NULL as set callback.
5229 (packet_ok): "set remote foo-packet"-style commands no longer
5230 change config->supported -- adjust.
5231 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5232 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5233 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5234 (PACKET_QNonStop, PACKET_multiprocess_feature)
5235 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5236 (PACKET_DisconnectedTracing_feature)
5237 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5238 (set_remote_protocol_packet_cmd): Delete function.
5239 (packet_config_support, packet_support): New functions.
5240 (set_remote_protocol_Z_packet_cmd): Don't call
5241 update_packet_config.
5242 (remote_query_attached, remote_pass_signals)
5243 (remote_program_signals, remote_threads_info)
5244 (remote_threads_extra_info, remote_start_remote): Use
5245 packet_support.
5246 (remote_start_remote): Use packet_config_support and
5247 packet_support.
5248 (init_all_packet_configs): Set all packets to unknown support,
5249 instead of calling update_packet_config.
5250 (remote_check_symbols): Use packet_support.
5251 (remote_supported_packet): Unconditionally set the packet config's
5252 support status.
5253 (remote_multi_process_feature, remote_non_stop_feature)
5254 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5255 (remote_breakpoint_commands_feature)
5256 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5257 (remote_install_in_trace_feature)
5258 (remote_disconnected_tracing_feature)
5259 (remote_enable_disable_tracepoint_feature)
5260 (remote_string_tracing_feature)
5261 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5262 (remote_protocol_features): Adjust to use remote_supported_packet
5263 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5264 "ConditionalTracepoints", "ConditionalBreakpoints",
5265 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5266 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5267 "EnableDisableTracepoints", and "tracenz".
5268 (remote_query_supported): Use packet_support.
5269 (remote_open_1): Adjust.
5270 (extended_remote_attach_1): Use packet_support. Switch on the
5271 result of packet_ok instead of checking whether the packet ended
5272 up disabled.
5273 (remote_vcont_resume): Use packet_support.
5274 (remote_resume, remote_stop_ns, fetch_register_using_p)
5275 (remote_prepare_to_store, store_register_using_P)
5276 (check_binary_download, remote_write_bytes): Use packet_support.
5277 (remote_vkill): Use packet_support. Switch on the result of
5278 packet_ok instead of checking whether the packet ended up
5279 disabled.
5280 (extended_remote_supports_disable_randomization): Use
5281 packet_support.
5282 (extended_remote_run): Switch on the result of packet_ok instead
5283 of checking whether the packet ended up disabled.
5284 (remote_insert_breakpoint, remote_remove_breakpoint)
5285 (remote_insert_watchpoint, remote_remove_watchpoint)
5286 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5287 packet_support.
5288 (remote_search_memory): Use packet_config_support.
5289 (remote_get_thread_local_address, remote_get_tib_address)
5290 (remote_hostio_send_command, remote_can_execute_reverse): Use
5291 packet_support.
5292 (remote_supports_cond_tracepoints)
5293 (remote_supports_cond_breakpoints)
5294 (remote_supports_fast_tracepoints)
5295 (remote_supports_static_tracepoints)
5296 (remote_supports_install_in_trace)
5297 (remote_supports_enable_disable_tracepoint)
5298 (remote_supports_string_tracing)
5299 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5300 the packet config says the feature is enabled or disabled.
5301 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5302 (remote_get_trace_status): Use packet_support.
5303 (remote_set_disconnected_tracing): Adjust to check whether the
5304 feature is enabled with packet_support.
5305 (remote_set_trace_buffer_size, remote_use_agent)
5306 (remote_can_use_agent, remote_supports_btrace): Use
5307 packet_support.
5308 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5309 Use packet_config_support.
5310 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5311 the packet config says the feature is enabled or disabled.
5312 (set_range_stepping): Use packet_support.
5313
5314 2014-04-25 Tom Tromey <tromey@redhat.com>
5315
5316 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5317 argument.
5318
5319 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5320
5321 * NEWS: Mention support for C99 variable length arrays.
5322
5323 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5324
5325 * ada-lang.c (standard_exc): Expand introductory comment.
5326
5327 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5328 Walfred Tedeschi <walfred.tedeschi@intel.com>
5329
5330 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5331 AVX512 registers.
5332 (amd64_linux_read_description): Add code to handle AVX512 xstate
5333 mask and return respective tdesc.
5334 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5335 and features/i386/x32-avx512-linux.c.
5336 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5337 (amd64_linux_core_read_description): Add code to handle AVX512
5338 xstate mask and return respective tdesc.
5339 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5340 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5341 calculation.
5342 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5343 (tdesc_amd64_avx512_linux): New prototype.
5344 (tdesc_x32_avx512_linux): Likewise.
5345 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5346 features/i386/x32-avx512.c.
5347 (amd64_ymm_avx512_names): New register names for pseudo
5348 registers YMM16-31.
5349 (amd64_ymmh_avx512_names): New register names for raw registers
5350 YMMH16-31.
5351 (amd64_k_names): New register names for K registers.
5352 (amd64_zmmh_names): New register names for ZMM raw registers.
5353 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5354 (amd64_xmm_avx512_names): New register names for XMM16-31
5355 registers.
5356 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5357 registers.
5358 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5359 if feature is present.
5360 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5361 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5362 (AMD64_NUM_REGS): Adjust to new number of registers.
5363 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5364 registers supplied via XSTATE by AVX512 registers.
5365 (i386_linux_read_description): Add case for AVX512.
5366 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5367 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5368 (i386_linux_core_read_description): Add case for AVX512.
5369 (i386_linux_init_abi): Install supported register note section
5370 for AVX512.
5371 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5372 AVX512.
5373 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5374 registers to be number of zmm7h + 1.
5375 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5376 * i386-tdep.c: Include features/i386/i386-avx512.c.
5377 (i386_zmm_names): Add ZMM pseudo register names array.
5378 (i386_zmmh_names): Add ZMM raw register names array.
5379 (i386_k_names): Add K raw register names array.
5380 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5381 registers. AVX512 has 16 more ZMM registers than there are YMM
5382 registers.
5383 (i386_zmmh_regnum_p): Add function to look up register number of
5384 ZMM raw registers.
5385 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5386 (i386_k_regnum_p): Likewise for K raw registers.
5387 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5388 registers added by AVX512.
5389 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5390 registers added by AVX512.
5391 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5392 added by AVX512.
5393 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5394 (i386_pseudo_register_name): Add ZMM pseudo registers.
5395 (i386_zmm_type): Construct and return vector registers type for ZMM
5396 registers.
5397 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5398 ZMM0-31 pseudo registers and K registers.
5399 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5400 and YMM16-31 registers from register cache.
5401 (i386_pseudo_register_write): Add code to write K, ZMM and
5402 YMM16-31 registers.
5403 (i386_register_reggroup_p): Add code to include/exclude AVX512
5404 registers in/from respective register groups.
5405 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5406 registers if feature is present in xcr0.
5407 (i386_gdbarch_init): Add code to initialize AVX512 feature
5408 variables in tdep structure, wire in pseudo registers and call
5409 initialize_tdesc_i386_avx512.
5410 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5411 variables.
5412 (i386_regnum): Add AVX512 registers.
5413 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5414 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5415 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5416 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5417 512 bits wide.
5418 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5419 (i386_ymm_avx512_regnum_p): Likewise.
5420 (i386_k_regnum_p): Likewise.
5421 (i386_zmm_regnum_p): Likewise.
5422 (i386_zmmh_regnum_p): Likewise.
5423 * i387-tdep.c : Update year in copyright notice.
5424 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5425 XSAVE buffer.
5426 (XSAVE_YMM_AVX512_ADDR): New macro.
5427 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5428 XSAVE buffer.
5429 (XSAVE_XMM_AVX512_ADDR): New macro.
5430 (xsave_avx512_k_offset): New table for K register offsets in
5431 XSAVE buffer.
5432 (XSAVE_AVX512_K_ADDR): New macro.
5433 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5434 in XSAVE buffer.
5435 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5436 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5437 buffer.
5438 (i387_collect_xsave): Add code to collect AVX512 registers from
5439 XSAVE buffer.
5440 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5441 of XMM16-31 registers.
5442 (I387_NUM_K_REGS): New define for number of K registers.
5443 (I387_K0_REGNUM): New define for K0 register number.
5444 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5445 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5446 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5447 registers.
5448 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5449 (I387_XMM16_REGNUM): New define for XMM16 register number.
5450 (I387_YMM0_REGNUM): New define for YMM0 register number.
5451 (I387_KEND_REGNUM): New define for last K register number.
5452 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5453 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5454 number.
5455 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5456 number.
5457 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5458 size.
5459 * features/Makefile: Add AVX512 related files.
5460 * features/i386/32bit-avx512.xml: New file.
5461 * features/i386/64bit-avx512.xml: Likewise.
5462 * features/i386/amd64-avx512-linux.c: Likewise.
5463 * features/i386/amd64-avx512-linux.xml: Likewise.
5464 * features/i386/amd64-avx512.c: Likewise.
5465 * features/i386/amd64-avx512.xml: Likewise.
5466 * features/i386/i386-avx512-linux.c: Likewise.
5467 * features/i386/i386-avx512-linux.xml: Likewise.
5468 * features/i386/i386-avx512.c: Likewise.
5469 * features/i386/i386-avx512.xml: Likewise.
5470 * features/i386/x32-avx512-linux.c: Likewise.
5471 * features/i386/x32-avx512-linux.xml: Likewise.
5472 * features/i386/x32-avx512.c: Likewise.
5473 * features/i386/x32-avx512.xml: Likewise.
5474 * regformats/i386/amd64-avx512-linux.dat: New file.
5475 * regformats/i386/amd64-avx512.dat: Likewise.
5476 * regformats/i386/i386-avx512-linux.dat: Likewise.
5477 * regformats/i386/i386-avx512.dat: Likewise.
5478 * regformats/i386/x32-avx512-linux.dat: Likewise.
5479 * regformats/i386/x32-avx512.dat: Likewise.
5480 * NEWS: Add note about new support for AVX512.
5481
5482
5483 2014-04-23 Pedro Alves <palves@redhat.com>
5484
5485 * breakpoint.c (insert_bp_location): Tolerate errors if the
5486 breakpoint is set in a user-loaded objfile.
5487 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5488 location is marked shlib_disabled. If the breakpoint is set in a
5489 user-loaded objfile is a GDB-side memory breakpoint, validate it
5490 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5491 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5492 flag.
5493 * mem-break.c (memory_validate_breakpoint): New function.
5494 * objfiles.c (userloaded_objfile_contains_address_p): New
5495 function.
5496 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5497 * target.h (memory_validate_breakpoint): New declaration.
5498
5499 2014-04-23 Pedro Alves <palves@redhat.com>
5500
5501 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5502 the breakpoint is set in a shared library, only suppress
5503 errors for software breakpoints, not hardware breakpoints.
5504
5505 2014-04-22 Pedro Alves <palves@redhat.com>
5506
5507 * infrun.c (schedlock_applies): New function, factored out from
5508 find_thread_needs_step_over.
5509 (find_thread_needs_step_over): Use it.
5510 (switch_back_to_stepped_thread): Always clear trap_expected if the
5511 step over is finished. Return early if scheduler locking applies.
5512 Look for the stepping thread and a potential step-over thread with
5513 a single loop.
5514 (currently_stepping_or_nexting_callback): Delete.
5515
5516 2014-04-22 Nick Clifton <nickc@redhat.com>
5517
5518 * NEWS: Mention that ARM sim now supports tracing.
5519
5520 2014-04-22 Yao Qi <yao@codesourcery.com>
5521
5522 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5523 to ...
5524 * tracefile.c (tracefile_fetch_registers): ... it. New
5525 function.
5526 * tracefile.h (tracefile_fetch_registers): Declare.
5527 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5528 tracefile_fetch_registers.
5529
5530 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5531
5532 PR gdb/14018
5533 * windows-nat.c (thread_rec): Don't display a warning when
5534 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5535 fails for any reason, set th->suspended to -1, so that we don't
5536 try to resume such a thread. Also, don't return NULL in these
5537 cases, to avoid completely ruin the session due to "PC register is
5538 not available" error.
5539 (do_windows_fetch_inferior_registers): Check errors in
5540 GetThreadContext call.
5541 (windows_continue): Accept an additional argument KILLED; if not
5542 zero, ignore errors in the SetThreadContext call, since the
5543 inferior was killed and is shutting down.
5544 (windows_resume, get_windows_debug_event)
5545 (windows_create_inferior, windows_mourn_inferior)
5546 (windows_kill_inferior): All callers of windows_continue changed
5547 to adjust to its new calling sequence.
5548
5549 2014-04-19 Yao Qi <yao@codesourcery.com>
5550
5551 * ctf.c (ctf_open): Call post_create_inferior.
5552
5553 2014-04-19 Yao Qi <yao@codesourcery.com>
5554
5555 * ctf.c (handle_id): New static variable.
5556 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5557 value. Get the declaration of event "register" and get length
5558 of field "contents".
5559
5560 2014-04-19 Yao Qi <yao@codesourcery.com>
5561
5562 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5563
5564 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5565
5566 * valops.c (oload_method_static): Remove unnecessary argument
5567 METHOD. Update all callers.
5568
5569 2014-04-18 Pedro alves <palves@redhat.com>
5570 Tom Tromey <tromey@redhat.com>
5571
5572 PR backtrace/15558
5573 * frame.c (get_prev_frame_1): Rename to ...
5574 (get_prev_frame_always): ... this, and make extern. Adjust.
5575 (skip_artificial_frames): Use get_prev_frame_always.
5576 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5577 (get_frame_unwind_stop_reason): Adjust to rename.
5578 * frame.h (get_prev_frame_always): Declare.
5579 * inline-frame.c: Include frame.h.
5580 (inline_frame_this_id): Use get_prev_frame_always.
5581
5582 2014-04-18 Tristan Gingold <gingold@adacore.com>
5583
5584 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5585 code by using bfd_mach_o_get_base_address.
5586
5587 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5588
5589 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5590 (spu_ax_pseudo_register_collect): New function.
5591 (spu_ax_pseudo_register_push_stack): Likewise.
5592 (spu_dwarf_reg_to_regnum): Likewise.
5593 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5594
5595 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5596
5597 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5598 Replace FRAME argument with FRAME_ID.
5599 * gdbarch.c, gdbarch.h: Regenerate.
5600 * findvar.c (default_value_from_register): Add GDBARCH argument;
5601 replace FRAME by FRAME_ID. No longer call get_frame_id.
5602 (value_from_register): Update call to gdbarch_value_from_register.
5603 * value.h (default_value_from_register): Update prototype.
5604 * s390-linux-tdep.c (s390_value_from_register): Update interface
5605 and call to default_value_from_register.
5606 * spu-tdep.c (spu_value_from_register): Likewise.
5607
5608 * findvar.c (address_from_register): Remove TYPE argument.
5609 Do not call value_from_register; use gdbarch_value_from_register
5610 with null_frame_id instead.
5611 * value.h (address_from_register): Update prototype.
5612 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5613 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5614 address_from_register interface change.
5615
5616 2014-04-17 Yao Qi <yao@codesourcery.com>
5617
5618 * gdbtypes.h: Update comments to link to types and macros'
5619 definitions.
5620
5621 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5622
5623 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5624
5625 2014-04-16 Keith Seitz <keiths@redhat.com>
5626
5627 PR gdb/15827
5628 * dwarf2read.c (skip_one_die): Check that all relative-offset
5629 sibling DIEs fall within range of the current reader's buffer.
5630 (read_partial_die): Likewise.
5631
5632 2014-04-16 Keith Seitz <keiths@redhat.com>
5633
5634 PR c++/16597
5635 * cp-namespace.c (lookup_symbol_file): If the type name of
5636 `this' is NULL, return immediately.
5637
5638 2014-04-14 Keith Seitz <keiths@redhat.com>
5639
5640 PR c++/16253
5641 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5642 from symbol_matches_domain in symtab.c. All local callers
5643 of symbol_matches_domain updated.
5644 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5645 search STRUCT_DOMAIN.
5646 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5647 independently. standard_lookup will do that automatically.
5648 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5649 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5650 (cp_lookup_symbol_in_namespace): Likewise.
5651 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5652 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5653 may return a STRUCT_DOMAIN match.
5654 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5655 * cp-support.c: Include language.h.
5656 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5657 VAR_DOMAIN.
5658 * psymtab.c (match_partial_symbol): Compare the requested
5659 domain with the symbol's domain directly.
5660 (lookup_partial_symbol): Likewise.
5661 * symtab.c (lookup_symbol_in_language): Explain when/why
5662 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5663 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5664 appropriate languages.
5665 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5666 and moved to ada-lang.c
5667 (lookup_block_symbol): Explain that this function only returns
5668 symbol matching the requested DOMAIN.
5669 Compare the requested domain with the symbol's domain directly.
5670 (iterate_over_symbols): Compare the requested domain with the
5671 symbol's domain directly.
5672 * symtab.h (symbol_matches_domain): Remove.
5673
5674 2014-04-14 Tom Tromey <tromey@redhat.com>
5675
5676 PR c++/15246:
5677 * c-exp.y (type_aggregate_p): New function.
5678 (qualified_name, classify_inner_name): Use it.
5679 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5680 and TYPE_TARGET_TYPE of an enum type.
5681 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5682 an enum type.
5683 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5684 handle TYPE_DECLARED_CLASS.
5685 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5686 types.
5687 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5688 * valops.c (enum_constant_from_type): New function.
5689 (value_aggregate_elt): Use it.
5690 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5691 TYPE_CODE_ENUM.
5692
5693 2014-04-14 Tom Tromey <tromey@redhat.com>
5694
5695 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5696 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5697 const.
5698 * value.h (value_aggregate_elt): Update.
5699
5700 2014-04-14 Tom Tromey <tromey@redhat.com>
5701
5702 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5703
5704 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5705
5706 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5707 (evaluate_subexp_standard): Pass noside argument.
5708 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5709 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5710 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5711 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5712 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5713
5714 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5715
5716 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5717 points to a constant blob.
5718
5719 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5720
5721 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5722 property and store it as the high bound and flag the range accordingly.
5723 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5724 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5725 * gdbtypes.h (enum range_flags): New enum.
5726 (struct range_bounds): Add flags member.
5727
5728 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5729
5730 * c-typeprint.c (c_type_print_varspec_suffix): Added
5731 check for not yet resolved high bound. If unresolved, print
5732 "variable length" string to the console instead of random
5733 length.
5734
5735 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5736
5737 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5738 value.
5739 (ada_template_to_fixed_record_type_1): Likewise.
5740 (ada_to_fixed_type_1): Likewise.
5741 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5742 (cp_print_value): Likewise.
5743 * d-valprint.c (dynamic_array_type): Likewise.
5744 * findvar.c (address_of_variable): Likewise.
5745 * jv-valprint.c (java_value_print): Likewise.
5746 * valops.c (value_ind): Likewise.
5747 * value.c (coerce_ref): Likewise.
5748
5749 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5750
5751 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5752 value and retrieve the dynamic type size.
5753
5754 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5755
5756 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5757 passed to sizeof is dynamic evaluate the argument to compute the length.
5758
5759 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5760 Joel Brobecker <brobecker@adacore.com>
5761
5762 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5763 (dwarf2_evaluate_property): New function.
5764 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5765 * dwarf2read.c (attr_to_dynamic_prop): New function.
5766 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5767 attribute.
5768 * gdbtypes.c: Include dwarf2loc.h.
5769 (is_dynamic_type): New function.
5770 (resolve_dynamic_type): New function.
5771 (resolve_dynamic_bounds): New function.
5772 (get_type_length): New function.
5773 (check_typedef): Use get_type_length to compute type length.
5774 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5775 (TYPE_LOW_BOUND_KIND): New macro.
5776 (is_dynamic_type): New function prototype.
5777 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5778 to resolve dynamic properties of the type. Update comment.
5779 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5780
5781 2014-04-14 Richard Henderson <rth@redhat.com>
5782
5783 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5784
5785 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5786 Doug Evans <xdje42@gmail.com>
5787
5788 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5789 dereference TYPE_CODE_REF values.
5790
5791 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5792
5793 Revert the following changes due to regressions:
5794
5795 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5796 (dwarf2_evaluate_property): New function.
5797 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5798 * dwarf2read.c (attr_to_dynamic_prop): New function.
5799 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5800 attribute.
5801 * gdbtypes.c: Include dwarf2loc.h.
5802 (is_dynamic_type): New function.
5803 (resolve_dynamic_type): New function.
5804 (resolve_dynamic_bounds): New function.
5805 (get_type_length): New function.
5806 (check_typedef): Use get_type_length to compute type length.
5807 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5808 (TYPE_LOW_BOUND_KIND): New macro.
5809 (is_dynamic_type): New function prototype.
5810 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5811 to resolve dynamic properties of the type. Update comment.
5812 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5813
5814 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5815 passed to sizeof is dynamic evaluate the argument to compute the length.
5816
5817 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5818 value and retrieve the dynamic type size.
5819
5820 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5821 (ada_template_to_fixed_record_type_1): Likewise.
5822 (ada_to_fixed_type_1): Likewise.
5823 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5824 (cp_print_value): Likewise.
5825 * d-valprint.c (dynamic_array_type): Likewise.
5826 * eval.c (evaluate_subexp_with_coercion): Likewise.
5827 * findvar.c (address_of_variable): Likewise.
5828 * jv-valprint.c (java_value_print): Likewise.
5829 * valops.c (value_ind): Likewise.
5830 * value.c (coerce_ref): Likewise.
5831
5832 * c-typeprint.c (c_type_print_varspec_suffix): Added
5833 check for not yet resolved high bound. If unresolved, print
5834 "variable length" string to the console instead of random
5835 length.
5836
5837 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5838 property and store it as the high bound and flag the range accordingly.
5839 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5840 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5841 * gdbtypes.h (enum range_flags): New enum.
5842 (struct range_bounds): Add flags member.
5843
5844 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5845 points to a constant blob.
5846
5847 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5848 (evaluate_subexp_standard): Pass noside argument.
5849 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5850 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5851 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5852 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5853 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5854
5855 2014-04-11 Keith Seitz <keiths@redhat.com>
5856
5857 PR c++/16675
5858 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5859 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5860 reference types.
5861
5862 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5863
5864 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5865 (evaluate_subexp_standard): Pass noside argument.
5866 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5867 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5868 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5869 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5870 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5871
5872 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5873
5874 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5875 points to a constant blob.
5876
5877 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5878
5879 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5880 property and store it as the high bound and flag the range accordingly.
5881 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5882 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5883 * gdbtypes.h (enum range_flags): New enum.
5884 (struct range_bounds): Add flags member.
5885
5886 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5887
5888 * c-typeprint.c (c_type_print_varspec_suffix): Added
5889 check for not yet resolved high bound. If unresolved, print
5890 "variable length" string to the console instead of random
5891 length.
5892
5893 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5894
5895 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5896 (ada_template_to_fixed_record_type_1): Likewise.
5897 (ada_to_fixed_type_1): Likewise.
5898 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5899 (cp_print_value): Likewise.
5900 * d-valprint.c (dynamic_array_type): Likewise.
5901 * eval.c (evaluate_subexp_with_coercion): Likewise.
5902 * findvar.c (address_of_variable): Likewise.
5903 * jv-valprint.c (java_value_print): Likewise.
5904 * valops.c (value_ind): Likewise.
5905 * value.c (coerce_ref): Likewise.
5906
5907 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5908
5909 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5910 value and retrieve the dynamic type size.
5911
5912 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5913
5914 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5915 passed to sizeof is dynamic evaluate the argument to compute the length.
5916
5917 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5918
5919 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5920 (dwarf2_evaluate_property): New function.
5921 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5922 * dwarf2read.c (attr_to_dynamic_prop): New function.
5923 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5924 attribute.
5925 * gdbtypes.c: Include dwarf2loc.h.
5926 (is_dynamic_type): New function.
5927 (resolve_dynamic_type): New function.
5928 (resolve_dynamic_bounds): New function.
5929 (get_type_length): New function.
5930 (check_typedef): Use get_type_length to compute type length.
5931 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5932 (TYPE_LOW_BOUND_KIND): New macro.
5933 (is_dynamic_type): New function prototype.
5934 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5935 to resolve dynamic properties of the type. Update comment.
5936 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5937
5938 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5939
5940 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5941 declaring high/low bounds and change uses accordingly. Call
5942 create_range_type instead of create_static_range_type.
5943 * gdbtypes.c (create_range_type): New function.
5944 (create_range_type): Convert bounds into struct bound_prop and pass
5945 them to create_range_type.
5946 * gdbtypes.h (struct bound_prop): New struct.
5947 (create_range_type): New function prototype.
5948 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5949 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5950 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5951 part of the bound.
5952 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5953
5954 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5955
5956 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5957 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5958 * ada-lang.c: All uses of create_range_type updated.
5959 * coffread.c: All uses of create_range_type updated.
5960 * dwarf2read.c: All uses of create_range_type updated.
5961 * f-exp.y: All uses of create_range_type updated.
5962 * m2-valprint.c: All uses of create_range_type updated.
5963 * mdebugread.c: All uses of create_range_type updated.
5964 * stabsread.c: All uses of create_range_type updated.
5965 * valops.c: All uses of create_range_type updated.
5966 * valprint.c: All uses of create_range_type updated.
5967
5968 2014-04-10 Pedro Alves <palves@redhat.com>
5969
5970 * breakpoint.c (single_step_breakpoints)
5971 (single_step_gdbarch): Move up in the file.
5972 (one_breakpoint_xfer_memory): New function, factored out from ...
5973 (breakpoint_xfer_memory): ... here. Also process single-step
5974 breakpoints.
5975
5976 2014-04-09 Tristan Gingold <gingold@adacore.com>
5977
5978 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5979 comments.
5980 (darwin_decode_exception_message): Free port only after use.
5981
5982 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5983
5984 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5985 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5986 when setting the size of call_length.
5987
5988 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5989
5990 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5991 dereference TYPE_CODE_REF values.
5992
5993 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5994
5995 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5996 end of warning message.
5997
5998 2014-04-03 Doug Evans <dje@google.com>
5999
6000 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6001 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6002
6003 2014-04-02 Alan Modra <amodra@gmail.com>
6004
6005 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6006 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6007 (struct symbol_file_add_from_memory_args): Add size field.
6008 (find_vdso_size): New function.
6009 (add_vsyscall_page): Attempt to find vdso size.
6010
6011 2014-04-01 Doug Evans <dje@google.com>
6012
6013 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6014
6015 2014-04-01 Tristan Gingold <gingold@adacore.com>
6016
6017 * darwin-nat.c (darwin_encode_reply): Add prototype.
6018 (darwin_decode_exception_message): Reply to unknown inferiors.
6019 (darwin_decode_message): Handle message by id. Ignore message
6020 to unknown inferior.
6021 (darwin_wait): Discard unknown messages, add debug trace.
6022
6023 2014-03-31 Doug Evans <dje@google.com>
6024
6025 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6026 comp_dir_string.
6027
6028 2014-03-31 Doug Evans <dje@google.com>
6029
6030 New option "set print symbol-loading".
6031 * NEWS: Mention it.
6032 * solib.c (solib_read_symbols): Only print symbol loading messages
6033 if requested.
6034 (solib_add): If symbol loading is in "brief" mode, notify user
6035 symbols are being loaded.
6036 (reload_shared_libraries_1): Ditto.
6037 * symfile.c (print_symbol_loading_off): New static global.
6038 (print_symbol_loading_brief): New static global.
6039 (print_symbol_loading_full): New static global.
6040 (print_symbol_loading_enums): New static global.
6041 (print_symbol_loading): New static global.
6042 (print_symbol_loading_p): New function.
6043 (symbol_file_add_with_addrs): Only print symbol loading messages
6044 if requested.
6045 (_initialize_symfile): Register "print symbol-loading" set/show
6046 command.
6047 * symfile.h (print_symbol_loading_p): Declare.
6048
6049 2014-03-30 Doug Evans <xdje42@gmail.com>
6050
6051 * infrun.c (set_last_target_status): New function.
6052 (handle_inferior_event): Call it.
6053
6054 2014-03-30 Doug Evans <xdje42@gmail.com>
6055
6056 * inferior.h (enum stop_kind): Improve comment.
6057
6058 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6059
6060 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6061 a reference, strip the reference layer before calling
6062 the lang_ops value_has_mutated callback.
6063
6064 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6065
6066 Remove some globals from our parser.
6067 * language.c (unk_lang_parser): Add "struct parser_state"
6068 argument.
6069 * language.h (struct language_defn) <la_parser>: Likewise.
6070 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6071 (initialize_expout): Add "struct parser_state" argument.
6072 Rewrite function to use the parser state.
6073 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6074 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6075 write_exp_elt_longcst, write_exp_elt_dblcst,
6076 write_exp_elt_decfloatcst, write_exp_elt_type,
6077 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6078 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6079 write_dollar_variable): Likewise.
6080 (parse_exp_in_context_1): Use parser state.
6081 (insert_type_address_space): Add "struct parser_state" argument.
6082 Use parser state.
6083 (increase_expout_size): New function.
6084 * parser-defs.h: Forward declare "struct language_defn" and
6085 "struct parser_state".
6086 (expout, expout_size, expout_ptr): Remove extern declarations.
6087 (parse_gdbarch, parse_language): Rewrite macro declarations to
6088 accept the parser state.
6089 (struct parser_state): New struct.
6090 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6091 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6092 write_exp_elt_decfloatcst, write_exp_elt_type,
6093 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6094 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6095 write_exp_msymbol, write_dollar_variable,
6096 mark_struct_expression, insert_type_address_space): Add "struct
6097 parser_state" argument.
6098 (increase_expout_size): New function.
6099 * utils.c (do_clear_parser_state): New function.
6100 (make_cleanup_clear_parser_state): Likewise.
6101 * utils.h (make_cleanup_clear_parser_state): New function
6102 prototype.
6103 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6104 Update calls to write_exp* in order to pass the parser state.
6105 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6106 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6107 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6108 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6109 * stap-probe.c (stap_parse_register_operand): Likewise.
6110 (stap_parse_single_operand): Likewise.
6111 (stap_parse_argument_1): Likewise.
6112 (stap_parse_argument): Use parser state.
6113 * stap-probe.h: Include "parser-defs.h".
6114 (struct stap_parse_info) <pstate>: New field.
6115 * c-exp.y (parse_type): Rewrite to use parser state.
6116 (yyparse): Redefine to c_parse_internal.
6117 (pstate): New global variable.
6118 (parse_number): Add "struct parser_state" argument.
6119 (write_destructor_name): Likewise.
6120 (type_exp): Update calls to write_exp* and similars in order to
6121 use parser state.
6122 (exp1, exp, variable, qualified_name, space_identifier,
6123 typename, typebase): Likewise.
6124 (write_destructor_name, parse_number, lex_one_token,
6125 classify_name, classify_inner_name, c_parse): Add "struct
6126 parser_state" argument. Update function to use parser state.
6127 * c-lang.h: Forward declare "struct parser_state".
6128 (c_parse): Add "struct parser_state" argument.
6129 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6130 (yyparse): Redefine macro to ada_parse_internal.
6131 (pstate): New variable.
6132 (write_int, write_object_renaming, write_var_or_type,
6133 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6134 type_int, type_long, type_long_long, type_float, type_double,
6135 type_long_double, type_char, type_boolean, type_system_address):
6136 Add "struct parser_state" argument.
6137 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6138 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6139 var_or_type, aggregate, aggregate_component_list,
6140 positional_list, others, component_group,
6141 component_associations): Update calls to write_exp* and similar
6142 functions in order to use parser state.
6143 (ada_parse, write_var_from_sym, write_int,
6144 write_exp_op_with_string, write_object_renaming,
6145 find_primitive_type, write_selectors, write_ambiguous_var,
6146 write_var_or_type, write_name_assoc, type_int, type_long,
6147 type_long_long, type_float, type_double, type_long_double,
6148 type_char, type_boolean, type_system_address): Add "struct
6149 parser_state" argument. Adjust function to use parser state.
6150 * ada-lang.c (parse): Likewise.
6151 * ada-lang.h: Forward declare "struct parser_state".
6152 (ada_parse): Add "struct parser_state" argument.
6153 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6154 calls to both functions.
6155 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6156 parser state.
6157 (yyparse): Redefine macro to f_parse_internal.
6158 (pstate): New variable.
6159 (parse_number): Add "struct parser_state" argument.
6160 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6161 and similars in order to use parser state.
6162 (parse_number): Adjust code to use parser state.
6163 (yylex): Likewise.
6164 (f_parse): New function.
6165 * f-lang.h: Forward declare "struct parser_state".
6166 (f_parse): Add "struct parser_state" argument.
6167 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6168 parser state.
6169 (yyparse): Redefine macro for java_parse_internal.
6170 (pstate): New variable.
6171 (push_expression_name, push_expression_name, insert_exp): Add
6172 "struct parser_state" argument.
6173 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6174 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6175 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6176 PostIncrementExpression, PostDecrementExpression,
6177 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6178 UnaryExpressionNotPlusMinus, CastExpression,
6179 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6180 RelationalExpression, EqualityExpression, AndExpression,
6181 ExclusiveOrExpression, InclusiveOrExpression,
6182 ConditionalAndExpression, ConditionalOrExpression,
6183 ConditionalExpression, Assignment, LeftHandSide): Update
6184 calls to write_exp* and similars in order to use parser state.
6185 (parse_number): Ajust code to use parser state.
6186 (yylex): Likewise.
6187 (java_parse): New function.
6188 (push_variable): Add "struct parser_state" argument. Adjust
6189 code to user parser state.
6190 (push_fieldnames, push_qualified_expression_name,
6191 push_expression_name, insert_exp): Likewise.
6192 * jv-lang.h: Forward declare "struct parser_state".
6193 (java_parse): Add "struct parser_state" argument.
6194 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6195 parser state.
6196 (yyparse): Redefine macro to m2_parse_internal.
6197 (pstate): New variable.
6198 (type_exp, exp, fblock, variable, type): Update calls to
6199 write_exp* and similars to use parser state.
6200 (yylex): Likewise.
6201 (m2_parse): New function.
6202 * m2-lang.h: Forward declare "struct parser_state".
6203 (m2_parse): Add "struct parser_state" argument.
6204 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6205 * objc-lang.h: Forward declare "struct parser_state".
6206 (end_msglist): Add "struct parser_state" argument.
6207 * p-exp.y (parse_type): Rewrite macro to use parser state.
6208 (yyparse): Redefine macro to pascal_parse_internal.
6209 (pstate): New variable.
6210 (parse_number): Add "struct parser_state" argument.
6211 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6212 write_exp* and similars in order to use parser state.
6213 (parse_number, yylex): Adjust code to use parser state.
6214 (pascal_parse): New function.
6215 * p-lang.h: Forward declare "struct parser_state".
6216 (pascal_parse): Add "struct parser_state" argument.
6217 * go-exp.y (parse_type): Rewrite macro to use parser state.
6218 (yyparse): Redefine macro to go_parse_internal.
6219 (pstate): New variable.
6220 (parse_number): Add "struct parser_state" argument.
6221 (type_exp, exp1, exp, variable, type): Update calls to
6222 write_exp* and similars in order to use parser state.
6223 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6224 to use parser state.
6225 (go_parse): Likewise.
6226 * go-lang.h: Forward declare "struct parser_state".
6227 (go_parse): Add "struct parser_state" argument.
6228
6229 2014-03-27 Doug Evans <dje@google.com>
6230
6231 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6232
6233 2014-03-27 Doug Evans <dje@google.com>
6234
6235 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6236 Remove argument abbrev_section. All callers updated.
6237
6238 2014-03-27 Doug Evans <dje@google.com>
6239
6240 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6241 addr_base, ranges_base.
6242
6243 2014-03-26 Keith Seitz <keiths@redhat.com>
6244
6245 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6246 types, not VAR_DOMAIN.
6247
6248 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6249
6250 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6251 "ra" registers.
6252 * features/nios2-linux.c: Regenerated.
6253 * features/nios2.c: Regenerated.
6254
6255 2014-03-25 Pedro Alves <palves@redhat.com>
6256
6257 * cli/cli-script.c (script_from_file): Force the interpreter to
6258 sync mode.
6259
6260 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6261
6262 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6263 small stack allocation.
6264
6265 2014-03-24 Tristan Gingold <gingold@adacore.com>
6266
6267 * darwin-nat.c (exc_server): Remove unused prototype.
6268 (darwin_dump_message): Correctly display data on x86_64.
6269 (darwin_encode_reply): Fix style.
6270 Add comments and fix indentation.
6271
6272 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6273
6274 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6275
6276 2014-03-22 Doug Evans <xdje42@gmail.com>
6277
6278 * infcmd.c: Whitespace fixes.
6279 (interrupt_command): Merge two function comments into one.
6280
6281 2014-03-22 Doug Evans <xdje42@gmail.com>
6282
6283 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6284 All uses updated.
6285
6286 2014-03-22 Yao Qi <yao@codesourcery.com>
6287
6288 * remote.c (target_read_live_memory): Remove.
6289 (memory_xfer_live_readonly_partial): Rename it to
6290 remote_xfer_live_readonly_partial. Remove argument 'object'.
6291 All callers updated. Call remote_read_bytes_1
6292 instead of target_read_live_memory.
6293 * tracepoint.c (set_traceframe_number): Remove.
6294 (make_cleanup_restore_traceframe_number): Likewise .
6295 * tracepoint.h (set_traceframe_number): Remove declaration.
6296 (make_cleanup_restore_traceframe_number): Likewise.
6297
6298 2014-03-22 Yao Qi <yao@codesourcery.com>
6299
6300 * remote.c (remote_read_bytes): Move code on reading from the
6301 remote stub to ...
6302 (remote_read_bytes_1): ... here. New function.
6303
6304 2014-03-22 Yao Qi <yao@codesourcery.com>
6305
6306 * ctf.c (ctf_xfer_partial): Check the return value of
6307 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6308 return TARGET_XFER_UNAVAILABLE.
6309 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6310 * target.c (target_read_live_memory): Move it to remote.c.
6311 (memory_xfer_live_readonly_partial): Likewise.
6312 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6313 * remote.c (target_read_live_memory): Moved from target.c.
6314 (memory_xfer_live_readonly_partial): Likewise.
6315 (remote_read_bytes): Factored out from
6316 memory_xfer_partial_1.
6317
6318 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6319
6320 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6321 NULL pointer.
6322
6323 2014-03-21 Pedro Alves <palves@redhat.com>
6324
6325 * infrun.c (normal_stop): Extend comment.
6326
6327 2014-03-21 Hui Zhu <hui@codesourcery.com>
6328 Pedro Alves <palves@redhat.com>
6329
6330 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6331 static buffer.
6332 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6333 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6334 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6335
6336 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6337
6338 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6339 `z' formatted output modifier.
6340
6341 2014-03-20 Tom Tromey <tromey@redhat.com>
6342 Sergio Durigan Junior <sergiodj@redhat.com>
6343
6344 * probe.c (parse_probes): Turn assert into an ordinary error.
6345 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6346 exceptions when parsing probes. Rearrange the code for clarity.
6347
6348 2014-03-20 Tom Tromey <tromey@redhat.com>
6349
6350 PR gdb/14135
6351 * top.c (execute_command): Only dispatch events if the command
6352 started the target.
6353
6354 2014-03-20 Tom Tromey <tromey@redhat.com>
6355
6356 PR cli/15718
6357 * infcall.c: Include event-top.h.
6358 (run_inferior_call): Call async_disable_stdin if needed.
6359
6360 2014-03-20 Pedro Alves <palves@redhat.com>
6361
6362 * infrun.c (prepare_to_proceed): Delete.
6363 (thread_still_needs_step_over): New function.
6364 (find_thread_needs_step_over): New function.
6365 (proceed): If the current thread needs a step-over, set its
6366 steping_over_breakpoint flag. Adjust to use
6367 find_thread_needs_step_over instead of prepare_to_proceed.
6368 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6369 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6370 breakpoint.
6371 (switch_back_to_stepped_thread): Step over breakpoints of all
6372 threads not the stepping thread, before switching back to the
6373 stepping thread.
6374
6375 2014-03-20 Pedro Alves <palves@redhat.com>
6376
6377 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6378 extern.
6379 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6380 * infrun.c (saved_singlestep_ptid)
6381 (stepping_past_singlestep_breakpoint): Delete.
6382 (resume): Remove stepping_past_singlestep_breakpoint handling.
6383 (proceed): Store the prev_pc of the stepping thread too.
6384 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6385 singlestep_pc.
6386 (enum infwait_states): Delete infwait_thread_hop_state.
6387 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6388 field.
6389 (handle_inferior_event): Adjust.
6390 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6391 handling and the thread-hop code. Before removing single-step
6392 breakpoints, check whether the thread hit a single-step breakpoint
6393 of another thread. If it did, the trap is not a random signal.
6394 (switch_back_to_stepped_thread): If the event thread hit a
6395 single-step breakpoint, unblock it before switching to the
6396 stepping thread. Handle the case of the stepped thread having
6397 advanced already.
6398 (keep_going): Handle the case of the current thread moving past a
6399 single-step breakpoint.
6400
6401 2014-03-20 Pedro Alves <palves@redhat.com>
6402
6403 PR breakpoints/7143
6404 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6405 are being stepped over.
6406 (breakpoint_address_match): Make extern.
6407 * breakpoint.h (breakpoint_address_match): New declaration.
6408 * inferior.h (stepping_past_instruction_at): New declaration.
6409 * infrun.c (struct step_over_info): New type.
6410 (step_over_info): New global.
6411 (set_step_over_info, clear_step_over_info)
6412 (stepping_past_instruction_at): New functions.
6413 (handle_inferior_event): Clear the step-over info when
6414 trap_expected is cleared.
6415 (resume): Remove now stale comment.
6416 (clear_proceed_status): Clear step-over info.
6417 (proceed): Adjust step-over handling to set or clear the step-over
6418 info instead of removing all breakpoints.
6419 (handle_signal_stop): When setting up a thread-hop, don't remove
6420 breakpoints here.
6421 (stop_stepping): Clear step-over info.
6422 (keep_going): Adjust step-over handling to set or clear step-over
6423 info and then always inserting breakpoints, instead of removing
6424 all breakpoints when stepping over one.
6425
6426 2014-03-20 Pedro Alves <palves@redhat.com>
6427
6428 * infrun.c (previous_inferior_ptid): Adjust comment.
6429 (deferred_step_ptid): Delete.
6430 (infrun_thread_ptid_changed, prepare_to_proceed)
6431 (init_wait_for_inferior): Adjust.
6432 (handle_signal_stop): Delete deferred_step_ptid handling.
6433
6434 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6435
6436 PR gdb/15358
6437 * defs.h (sync_quit_force_run): New declaration.
6438 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6439 * event-top.c (async_sigterm_handler): New declaration.
6440 (async_sigterm_token): New variable.
6441 (async_init_signals): Create also async_sigterm_token.
6442 (async_sigterm_handler): New function.
6443 (sync_quit_force_run): New variable.
6444 (handle_sigterm): Replace quit_force call by other calls.
6445 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6446
6447 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6448
6449 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6450 offset into SPE pseudo registers.
6451
6452 2014-03-18 Pedro Alves <palves@redhat.com>
6453
6454 PR gdb/13860
6455 * inferior.h (print_stop_event): Declare.
6456 * infrun.c (print_stop_event): New, factored out from ...
6457 (normal_stop): ... this.
6458 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6459 of bpstat_print/print_stack_frame.
6460
6461 2014-03-17 Tom Tromey <tromey@redhat.com>
6462
6463 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6464
6465 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6466
6467 * ada-lang.c (decode_constrained_packed_array): Perform a
6468 minimal coercion for reference with coerce_ref instead of
6469 ada_coerce_ref.
6470
6471 2014-03-17 Tristan Gingold <gingold@adacore.com>
6472
6473 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6474 (darwin_solib_create_inferior_hook): Emit a warning if version
6475 is unhandled.
6476
6477 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6478
6479 * python/py-value.c (get_field_flag): Cast flag_name argument to
6480 PyObject_GetAttrString to support Python 2.4.
6481
6482 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6483
6484 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6485 (Global Maintainers): Remove Jan Kratochvil.
6486
6487 2014-03-14 Pedro Alves <palves@redhat.com>
6488
6489 * inferior.h (terminal_ours_for_output): Rename to ...
6490 (child_terminal_ours_for_output): ... this.
6491 (terminal_save_ours): Rename to ...
6492 (child_terminal_save_ours): ... this.
6493 (terminal_ours): Rename to ...
6494 (child_terminal_ours): ... this.
6495 (terminal_inferior): Rename to ...
6496 (child_terminal_inferior): ... this.
6497 (terminal_init_inferior): Rename to ...
6498 (child_terminal_init_inferior): ... this.
6499 (terminal_init_inferior_with_pgrp): Rename to ...
6500 (child_terminal_init_inferior_with_pgrp): ... this.
6501 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6502 (child_terminal_init_with_pgrp): ... this.
6503 (terminal_save_ours): Rename to ...
6504 (child_terminal_save_ours): ... this.
6505 (terminal_init_inferior): Rename to ...
6506 (child_terminal_init): ... this. Adjust.
6507 (terminal_inferior): Rename to ...
6508 (child_terminal_inferior): ... this.
6509 (terminal_ours_for_output): Rename to ...
6510 (child_terminal_ours_for_output): ... this. Adjust.
6511 (terminal_ours): Rename to ...
6512 (child_terminal_ours): ... this.
6513 (terminal_ours_1): Rename to ...
6514 (child_terminal_ours_1): ... this. Adjust.
6515 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6516 * windows-nat.c (do_initial_windows_stuff): Adjust.
6517 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6518 (gnu_terminal_init): ... this. Adjust.
6519 (gnu_target): Adjust.
6520 * inf-child.c (inf_child_target): Adjust.
6521
6522 2014-03-13 Doug Evans <xdje42@gmail.com>
6523
6524 PR guile/16612
6525 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6526 new eq?-hashtab.
6527
6528 2014-03-13 Doug Evans <xdje42@gmail.com>
6529
6530 * value.c (record_latest_value): Call release_value_or_incref
6531 instead of release_value.
6532
6533 2014-03-13 Pedro Alves <palves@redhat.com>
6534
6535 * procfs.c (procfs_target): Don't override to_shortname,
6536 to_longname or to_doc.
6537
6538 2014-03-13 Pedro Alves <palves@redhat.com>
6539
6540 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6541 Unix in user visible strings.
6542
6543 2014-03-12 Stan Shebs <stan@codesourcery.com>
6544
6545 * gdbtypes.h: Annotate comments for Doxygen, add a page
6546 block comment with some general info.
6547
6548 2014-03-12 Pedro Alves <palves@redhat.com>
6549
6550 * infcmd.c (prepare_execution_command): New function, factored out
6551 from several execution commands.
6552 (run_command_1, continue_command, step_1, jump_command)
6553 (signal_command, until_command, advance_command, finish_command)
6554 (attach_command): Use prepare_execution_command.
6555
6556 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6557
6558 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6559 (MAX_BPTS): Define.
6560 (MAX_WPTS): Define.
6561 (struct arm_linux_thread_points): Removed.
6562 (struct arm_linux_process_info): New.
6563 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6564 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6565 (arm_linux_find_breakpoints_by_tid): Removed.
6566 (struct arch_lwp_info): New.
6567 (arm_linux_find_process_pid): New functions.
6568 (arm_linux_add_process): New functions.
6569 (arm_linux_process_info_get): New functions.
6570 (arm_linux_forget_process): New function.
6571 (arm_linux_get_debug_reg_state): New function.
6572 (struct update_registers_data): New.
6573 (update_registers_callback): New function.
6574 (arm_linux_insert_hw_breakpoint1): Updated.
6575 (arm_linux_remove_hw_breakpoint1): Updated.
6576 (arm_linux_insert_hw_breakpoint): Updated.
6577 (arm_linux_remove_hw_breakpoint): Updated.
6578 (arm_linux_insert_watchpoint): Updated.
6579 (arm_linux_remove_watchpoint): Updated.
6580 (arm_linux_new_thread): Updated.
6581 (arm_linux_prepare_to_resume): New function.
6582 (arm_linux_new_fork): New function.
6583 (_initialize_arm_linux_nat): Updated.
6584
6585 2014-03-12 Pedro Alves <palves@redhat.com>
6586
6587 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6588
6589 2014-03-12 Tom Tromey <tromey@redhat.com>
6590
6591 * inf-child.c (return_zero): New function.
6592 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6593 * aix-thread.c (aix_thread_inferior_created): New function.
6594 (aix_thread_attach): Remove.
6595 (init_aix_thread_ops): Don't set to_attach.
6596 (_initialize_aix_thread): Register inferior_created observer.
6597 * corelow.c (init_core_ops): Don't set to_attach or
6598 to_create_inferior.
6599 * exec.c (init_exec_ops): Don't set to_attach or
6600 to_create_inferior.
6601 * infcmd.c (run_command_1): Use find_run_target. Make direct
6602 target calls.
6603 (attach_command): Use find_attach_target. Make direct target
6604 calls.
6605 * record-btrace.c (init_record_btrace_ops): Don't set
6606 to_create_inferior.
6607 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6608 Remove.
6609 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6610 set to_create_inferior.
6611 * target.c (complete_target_initialization): Add assertion.
6612 (target_create_inferior): Remove.
6613 (find_default_attach, find_default_create_inferior): Remove.
6614 (find_attach_target, find_run_target): New functions.
6615 (find_default_is_async_p, find_default_can_async_p)
6616 (target_supports_non_stop, target_attach): Remove.
6617 (init_dummy_target): Don't set to_create_inferior or
6618 to_supports_non_stop.
6619 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6620 TARGET_DEFAULT_FUNC.
6621 <to_create_inferior>: Add comment.
6622 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6623 TARGET_DEFAULT_RETURN.
6624 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6625 (find_attach_target, find_run_target): Declare.
6626 (target_create_inferior): Remove.
6627 (target_has_execution_1): Update comment.
6628 (target_supports_non_stop): Remove.
6629 * target-delegates.c: Rebuild.
6630
6631 2014-03-12 Pedro Alves <palves@redhat.com>
6632
6633 * inf-child.h: Update comment to not mention Unix.
6634
6635 2014-03-12 Pedro Alves <palves@redhat.com>
6636
6637 * inf-child.c: Update top comment to not mention Unix. Add
6638 generic comment describing how this target is meant to be used.
6639 (inf_child_post_attach, inf_child_post_startup_inferior)
6640 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6641 Unix in comment.
6642
6643 2014-03-12 Pedro Alves <palves@redhat.com>
6644
6645 * nto-procfs.c: Include inf-child.h.
6646 (procfs_ops): Delete global.
6647 (procfs_can_run): Delete method.
6648 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6649 target pointer instead of referencing procfs_ops.
6650 (procfs_prepare_to_store): Delete.
6651 (init_procfs_ops): Delete function.
6652 (procfs_target): New function, based on init_procfs_ops, but
6653 inherit inf_child_target.
6654 (_initialize_procfs): Use procfs_target.
6655
6656 2014-03-12 Pedro Alves <palves@redhat.com>
6657
6658 * windows-nat.c: Include inf-child.h.
6659 (windows_ops): Delete global.
6660 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6661 methods.
6662 (init_windows_ops): Delete function.
6663 (windows_target): New function, based on init_windows_ops, but
6664 inherit inf_child_target.
6665 (_initialize_windows_nat): Use windows_target. Install x86
6666 specific target methods here.
6667
6668 2014-03-10 Doug Evans <xdje42@gmail.com>
6669
6670 * guile/guile.c (call_initialize_gdb_module): New function.
6671 (initialize_guile): Replace call to scm_init_guile with call to
6672 scm_with_guile.
6673
6674 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6675
6676 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6677 in call to TYPE_CODE macro.
6678
6679 2014-03-10 Jerome Guitton <guitton@adacore.com>
6680
6681 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6682 Resolve tagged types to full view.
6683
6684 2014-03-10 Hui Zhu <hui@codesourcery.com>
6685
6686 * target.h (target_insert_breakpoint): Remove "hardware" from its
6687 comments.
6688
6689 2014-03-07 Doug Evans <dje@google.com>
6690
6691 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6692
6693 2014-03-07 Doug Evans <dje@google.com>
6694
6695 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6696 Remove unused local comp_dir_attr. Assert exactly one of
6697 stub_comp_unit_die, stub_comp_dir is non-NULL.
6698
6699 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6700
6701 * target.h (complete_target_initialization, add_target):
6702 Add comment.
6703
6704 2014-03-07 Pedro Alves <palves@redhat.com>
6705
6706 * go32-nat.c: Include inf-child.h.
6707 (go32_ops): Delete global.
6708 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6709 Delete methods.
6710 (go32_create_inferior): Push the passed in target pointer instead
6711 of referencing go32_ops.
6712 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6713 (go32_target): New function, based on init_go32_ops, but inherit
6714 inf_child_target.
6715 (_initialize_go32_nat): Use go32_target. Move parts of
6716 init_go32_ops here.
6717
6718 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6719
6720 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6721 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6722 SYMBOL_VALUE_ADDRESS.
6723 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6724
6725 2014-03-06 Yao Qi <yao@codesourcery.com>
6726
6727 * breakpoint.c (get_tracepoint_by_number): Remove argument
6728 optional_p. All callers updated. Adjust comments. Update
6729 output message.
6730 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6731
6732 2014-03-06 Yao Qi <yao@codesourcery.com>
6733
6734 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6735 early if get_number returns zero. Use 'p' instead of 'args'.
6736
6737 2014-03-06 Yao Qi <yao@codesourcery.com>
6738
6739 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6740 message.
6741
6742 2014-03-06 Yao Qi <yao@codesourcery.com>
6743
6744 PR breakpoints/16508
6745 * tracepoint.c (check_trace_running): New function.
6746 (trace_find_command): Move code to check_trace_running and
6747 call check_trace_running.
6748 (trace_find_pc_command): Likewise.
6749 (trace_find_tracepoint_command): Likewise.
6750 (trace_find_line_command): Likewise.
6751 (trace_find_range_command): Likewise.
6752 * tracepoint.h (check_trace_running): Likewise.
6753 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6754
6755 2014-03-06 Yao Qi <yao@codesourcery.com>
6756
6757 * target.h (struct target_ops) <to_traceframe_info>: Use
6758 TARGET_DEFAULT_NORETURN (tcomplain ()).
6759 * target-delegates.c: Regenerated.
6760
6761 2014-03-05 Pedro Alves <palves@redhat.com>
6762
6763 PR gdb/16575
6764 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6765 void. Update comment.
6766 (dcache_xfer_memory): Delete.
6767 (dcache_read_memory_partial): New, based on the read bits of
6768 dcache_xfer_memory.
6769 (dcache_update): Add status parameter. Use ULONGEST for len, and
6770 adjust. Discard cache lines if the reason for the update was
6771 error.
6772 * dcache.h (dcache_xfer_memory): Delete declaration.
6773 (dcache_read_memory_partial): New declaration.
6774 (dcache_update): Update prototype.
6775 * target.c (raw_memory_xfer_partial): Update the dcache here.
6776 (memory_xfer_partial_1): Don't handle dcache writes here.
6777
6778 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6779
6780 * remote-sim.c (gdbsim_load): Add const to prog.
6781
6782 2014-03-03 Tom Tromey <tromey@redhat.com>
6783
6784 * elfread.c (probe_key): Change to bfd_data.
6785 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6786 now per-BFD, not per-objfile.
6787 * stap-probe.c (stap_probe_destroy): Update comment.
6788 (handle_stap_probe): Allocate on the per-BFD obstack.
6789
6790 2014-03-03 Tom Tromey <tromey@redhat.com>
6791
6792 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6793 * breakpoint.c (create_longjmp_master_breakpoint): Use
6794 get_probe_address.
6795 (add_location_to_breakpoint, bkpt_probe_insert_location)
6796 (bkpt_probe_remove_location): Update.
6797 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6798 * elfread.c (elf_symfile_relocate_probe): Remove.
6799 (elf_probe_fns): Update.
6800 (insert_exception_resume_breakpoint): Change type of "probe"
6801 parameter to bound_probe.
6802 (check_exception_resume): Update.
6803 * objfiles.c (objfile_relocate1): Don't relocate probes.
6804 * probe.c (bound_probe_s): New typedef.
6805 (parse_probes): Use get_probe_address. Set sal's objfile.
6806 (find_probe_by_pc): Return a bound_probe.
6807 (collect_probes): Return a VEC(bound_probe_s).
6808 (compare_probes): Update.
6809 (gen_ui_out_table_header_info): Change type of "probes"
6810 parameter. Update.
6811 (info_probes_for_ops): Update.
6812 (get_probe_address): New function.
6813 (probe_safe_evaluate_at_pc): Update.
6814 * probe.h (struct probe_ops) <get_probe_address>: New field.
6815 <set_semaphore, clear_semaphore>: Add objfile parameter.
6816 (struct probe) <objfile>: Remove field.
6817 <arch>: New field.
6818 <address>: Update comment.
6819 (struct bound_probe): New.
6820 (find_probe_by_pc): Return a bound_probe.
6821 (get_probe_address): Declare.
6822 * solib-svr4.c (struct probe_and_action) <address>: New field.
6823 (hash_probe_and_action, equal_probe_and_action): Update.
6824 (register_solib_event_probe): Add address parameter.
6825 (solib_event_probe_at): Update.
6826 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6827 get_probe_address.
6828 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6829 (stap_get_probe_address): New function.
6830 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6831 (compile_probe_arg): Update.
6832 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6833 address.
6834 (handle_stap_probe): Don't relocate the probe.
6835 (stap_relocate): Remove.
6836 (stap_gen_info_probes_table_values): Update.
6837 (stap_probe_ops): Remove stap_relocate.
6838 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6839 (debug_sym_probe_fns): Update.
6840 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6841 * symtab.c (init_sal): Use memset.
6842 * symtab.h (struct symtab_and_line) <objfile>: New field.
6843 * tracepoint.c (start_tracing, stop_tracing): Update.
6844
6845 2014-03-03 Tom Tromey <tromey@redhat.com>
6846
6847 * probe.h (parse_probes, find_probe_by_pc)
6848 (find_probes_in_objfile): Fix comments.
6849
6850 2014-03-02 Doug Evans <xdje42@gmail.com>
6851
6852 * infrun.c (handle_signal_stop): Replace test for
6853 TARGET_WAITKIND_STOPPED with an assert.
6854
6855 2014-03-02 Doug Evans <xdje42@gmail.com>
6856
6857 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6858
6859 2014-03-02 Doug Evans <xdje42@gmail.com>
6860
6861 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6862
6863 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6864
6865 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6866
6867 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6868
6869 * i386obsd-nat.c: Include "obsd-nat.h".
6870 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6871 add_target.
6872 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6873
6874 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6875
6876 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6877
6878 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6879
6880 * mips64obsd-nat.c: Include "obsd-nath".
6881 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6882 add_target
6883 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6884
6885 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6886
6887 * amd64obsd-nat.c: Include "obsd-nat,h.
6888 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6889 add_target.
6890 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6891
6892 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6893
6894 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6895 (find_overload_match): Update call to find_oload_champ.
6896 (find_oload_champ_namespace_loop): Likewise
6897
6898 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6899
6900 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6901
6902 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6903 * config/sparc/obsd64.mh: New file.
6904 * sparc64obsd-nat.c: New file.
6905
6906 * obsd-nat.h: New file.
6907 * obsd-nat.c: New file.
6908 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6909 (ALLDEPFILES): Add obsd-nat.c.
6910
6911 2014-02-28 Tom Tromey <tromey@redhat.com>
6912
6913 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6914 * cli-out.h (cli_ui_out_impl): Now const.
6915 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6916 * ui-out.c (struct ui_out) <impl>: Now const.
6917 (default_ui_out_impl): Now const.
6918 (ui_out_new): Make 'impl' parameter const.
6919 * ui-out.h (ui_out_new): Update.
6920
6921 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6922
6923 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6924
6925 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6926
6927 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6928
6929 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6930
6931 Additional PR 8882 fix.
6932 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6933
6934 2014-02-27 Pedro Alves <palves@redhat.com>
6935
6936 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6937 isn't set.
6938
6939 2014-02-27 Pedro Alves <palves@redhat.com>
6940
6941 PR 12702
6942 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6943 * nat/linux-waitpid.c: Include string.h.
6944 (status_to_str): Moved here and made extern.
6945 * nat/linux-waitpid.h (status_to_str): New declaration.
6946
6947 2014-02-27 Hui Zhu <hui@codesourcery.com>
6948
6949 PR 12702
6950 * infrun.c (ptid_match): Move ...
6951 * common/ptid.c (ptid_match): ... here.
6952 * inferior.h (ptid_match): Move ...
6953 * common/ptid.h (ptid_match): ... here.
6954
6955 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6956
6957 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6958 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6959 gdb_target_obs.
6960
6961 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6962
6963 * obsd-tdep.c (obsd_auxv_parse): New function.
6964 (obsd_init_abi): Set auxv_parse.
6965
6966 * gdbarch.sh (auxv_parse): New.
6967 * gdbarch.h: Regenerated.
6968 * gdbarch.c: Regenerated.
6969 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6970
6971 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6972
6973 * guile/scm-value.c (gdbscm_history_append_x): New function.
6974 (value_functions): Add it.
6975
6976 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6977
6978 * dwarf2read.c (attr_value_as_address): New function.
6979 (dwarf2_find_base_address, read_call_site_scope): Use
6980 attr_value_as_address in place of DW_ADDR.
6981 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6982 the low and high addresses. Slight rework of the handling
6983 of the high pc being a constant form, and limit it to
6984 DWARF verson 4 or higher.
6985 (dwarf2_record_block_ranges): Likewise.
6986 (read_partial_die): Likewise.
6987 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6988
6989 2014-02-26 Tom Tromey <tromey@redhat.com>
6990
6991 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6992
6993 2014-02-26 Tom Tromey <tromey@redhat.com>
6994
6995 * elfread.c (elf_read_minimal_symbols): Return early if
6996 minimal symbols have already been read. Add "ei" parameter.
6997 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6998 * minsyms.c (prim_record_minimal_symbol_full): Update.
6999 * objfiles.h (struct objstats) <n_minsyms>: Move...
7000 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7001 * symmisc.c (print_objfile_statistics): Update.
7002
7003 2014-02-26 Tom Tromey <tromey@redhat.com>
7004
7005 * elfread.c (elf_read_minimal_symbols): New function, from
7006 elf_symfile_read.
7007 (elf_symfile_read): Call it.
7008
7009 2014-02-26 Tom Tromey <tromey@redhat.com>
7010
7011 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7012 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7013 (lookup_minimal_symbol_solib_trampoline)
7014 (lookup_minimal_symbol_by_pc_section_1)
7015 (lookup_minimal_symbol_and_objfile): Update.
7016 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7017 Don't allocate a minimal symbol if minsyms have already been read.
7018 (build_minimal_symbol_hash_tables): Update.
7019 (install_minimal_symbols): Do nothing if minsyms already read.
7020 Use the per-BFD obstack.
7021 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7022 * objfiles.c (allocate_objfile): Call
7023 terminate_minimal_symbol_table later.
7024 (have_minimal_symbols): Update.
7025 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7026 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7027 Move from struct objfile.
7028 <minsyms_read>: New field.
7029 (struct objfile) <msymbols, minimal_symbol_count,
7030 msymbol_hash, msymbol_demangled_hash>: Move.
7031 (ALL_OBJFILE_MSYMBOLS): Update.
7032 * symfile.c (read_symbols): Set minsyms_read.
7033 (reread_symbols): Update.
7034 * symmisc.c (dump_objfile, dump_msymbols): Update.
7035
7036 2014-02-26 Tom Tromey <tromey@redhat.com>
7037
7038 * minsyms.c (msymbols_sort): Remove.
7039 * minsyms.h (msymbols_sort): Remove.
7040 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7041 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7042 * elfread.c (elf_symtab_read): Don't add section offsets.
7043 * xcoffread.c (record_minimal_symbol): Don't add section offset
7044 to minimal symbol address.
7045 * somread.c (text_offset, data_offset): Remove.
7046 (som_symtab_read): Don't add section offsets to minimal symbol
7047 addresses.
7048 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7049 Don't add section offsets to minimal symbols.
7050 * coffread.c (coff_symtab_read): Don't add section offsets
7051 to minimal symbol addresses.
7052 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7053 to minimal symbol addresses.
7054 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7055 section offset to minimal symbol addresses.
7056 * mdebugread.c (parse_partial_symbols): Don't add section
7057 offset to minimal symbol addresses.
7058 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7059 offset to minimal symbol addresses.
7060
7061 2014-02-26 Tom Tromey <tromey@redhat.com>
7062
7063 * ada-lang.c (ada_main_name): Update.
7064 (ada_add_standard_exceptions): Update.
7065 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7066 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7067 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7068 * auxv.c (ld_so_xfer_auxv): Update.
7069 * avr-tdep.c (avr_scan_prologue): Update.
7070 * ax-gdb.c (gen_var_ref): Update.
7071 * blockframe.c (get_pc_function_start)
7072 (find_pc_partial_function_gnu_ifunc): Update.
7073 * breakpoint.c (create_overlay_event_breakpoint)
7074 (create_longjmp_master_breakpoint)
7075 (create_std_terminate_master_breakpoint)
7076 (create_exception_master_breakpoint): Update.
7077 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7078 * c-valprint.c (c_val_print): Update.
7079 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7080 * common/agent.c (agent_look_up_symbols): Update.
7081 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7082 * dwarf2loc.c (call_site_to_target_addr): Update.
7083 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7084 * elfread.c (elf_gnu_ifunc_record_cache)
7085 (elf_gnu_ifunc_resolve_by_got): Update.
7086 * findvar.c (default_read_var_value): Update.
7087 * frame.c (inside_main_func): Update.
7088 * frv-tdep.c (frv_frame_this_id): Update.
7089 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7090 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7091 Update.
7092 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7093 (hppa_hpux_find_dummy_bpaddr): Update.
7094 * hppa-tdep.c (hppa_symbol_address): Update.
7095 * infcmd.c (until_next_command): Update.
7096 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7097 Update.
7098 * linespec.c (minsym_found, add_minsym): Update.
7099 * linux-nat.c (get_signo): Update.
7100 * linux-thread-db.c (inferior_has_bug): Update.
7101 * m32c-tdep.c (m32c_return_value)
7102 (m32c_m16c_address_to_pointer): Update.
7103 * m32r-tdep.c (m32r_frame_this_id): Update.
7104 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7105 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7106 * maint.c (maintenance_translate_address): Update.
7107 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7108 (frob_address): New function.
7109 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7110 frob_address. Rename parameter to "pc_in".
7111 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7112 addresses.
7113 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7114 Update.
7115 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7116 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7117 * objc-lang.c (find_objc_msgsend): Update.
7118 * objfiles.c (objfile_relocate1): Update.
7119 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7120 * p-valprint.c (pascal_val_print): Update.
7121 * parse.c (write_exp_msymbol): Update.
7122 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7123 (ppc_elfv2_skip_entrypoint): Update.
7124 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7125 * printcmd.c (build_address_symbolic, msym_info)
7126 (address_info): Update.
7127 * proc-service.c (ps_pglobal_lookup): Update.
7128 * psymtab.c (find_pc_sect_psymtab_closer)
7129 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7130 Change msymbol parameter to bound_minimal_symbol.
7131 * ravenscar-thread.c (get_running_thread_id): Update.
7132 * remote.c (remote_check_symbols): Update.
7133 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7134 address.
7135 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7136 * solib-dsbt.c (lm_base): Update.
7137 * solib-frv.c (lm_base, main_got): Update.
7138 * solib-irix.c (locate_base): Update.
7139 * solib-som.c (som_solib_create_inferior_hook)
7140 (link_map_start): Update.
7141 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7142 * solib-svr4.c (elf_locate_base, enable_break): Update.
7143 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7144 (flush_ea_cache): Update.
7145 * stabsread.c (define_symbol, scan_file_globals): Update.
7146 * stack.c (find_frame_funname): Update.
7147 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7148 (debug_qf_find_pc_sect_symtab): Update.
7149 * symfile.c (simple_read_overlay_table)
7150 (simple_overlay_update): Update.
7151 * symfile.h (struct quick_symbol_functions)
7152 <find_pc_sect_symtab>: Change type of msymbol to
7153 bound_minimal_symbol.
7154 * symmisc.c (dump_msymbols): Update.
7155 * symtab.c (find_pc_sect_symtab_via_partial)
7156 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7157 (search_symbols, print_msymbol_info): Update.
7158 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7159 (MSYMBOL_VALUE_ADDRESS): Redefine.
7160 (BMSYMBOL_VALUE_ADDRESS): New macro.
7161 * tracepoint.c (scope_info): Update.
7162 * tui/tui-disasm.c (tui_find_disassembly_address)
7163 (tui_get_begin_asm_address): Update.
7164 * valops.c (find_function_in_inferior): Update.
7165 * value.c (value_static_field, value_fn_field): Update.
7166
7167 2014-02-26 Tom Tromey <tromey@redhat.com>
7168
7169 * ada-lang.c (ada_update_initial_language): Update.
7170 (ada_main_name, ada_has_this_exception_support): Update.
7171 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7172 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7173 * arm-tdep.c (arm_skip_stub): Update.
7174 * auxv.c (ld_so_xfer_auxv): Update.
7175 * avr-tdep.c (avr_scan_prologue): Update.
7176 * ax-gdb.c (gen_var_ref): Update.
7177 * breakpoint.c (struct breakpoint_objfile_data)
7178 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7179 type to bound_minimal_symbol.
7180 (create_overlay_event_breakpoint)
7181 (create_longjmp_master_breakpoint)
7182 (create_std_terminate_master_breakpoint)
7183 (create_exception_master_breakpoint): Update.
7184 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7185 * c-exp.y (classify_name): Update.
7186 * coffread.c (coff_symfile_read): Update.
7187 * common/agent.c (agent_look_up_symbols): Update.
7188 * d-lang.c (d_main_name): Update.
7189 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7190 * dec-thread.c (enable_dec_thread): Update.
7191 * dwarf2loc.c (call_site_to_target_addr): Update.
7192 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7193 * eval.c (evaluate_subexp_standard): Update.
7194 * findvar.c (struct minsym_lookup_data) <result>: Change type
7195 to bound_minimal_symbol.
7196 <objfile>: Remove.
7197 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7198 * frame.c (inside_main_func): Update.
7199 * frv-tdep.c (frv_frame_this_id): Update.
7200 * gcore.c (call_target_sbrk): Update.
7201 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7202 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7203 Update.
7204 * go-lang.c (go_main_name): Update.
7205 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7206 (hppa_hpux_find_import_stub_for_addr): Update.
7207 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7208 Update. Change return type.
7209 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7210 type.
7211 * jit.c (jit_breakpoint_re_set_internal): Update.
7212 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7213 Update.
7214 * linux-nat.c (get_signo): Update.
7215 * linux-thread-db.c (inferior_has_bug): Update
7216 * m32c-tdep.c (m32c_return_value)
7217 (m32c_m16c_address_to_pointer): Update.
7218 * m32r-tdep.c (m32r_frame_this_id): Update.
7219 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7220 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7221 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7222 lookup_minimal_symbol. Change return type.
7223 (lookup_minimal_symbol): Remove.
7224 (lookup_bound_minimal_symbol): Update.
7225 (lookup_minimal_symbol_text): Change return type.
7226 (lookup_minimal_symbol_solib_trampoline): Change return type.
7227 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7228 (lookup_minimal_symbol_solib_trampoline): Change return type.
7229 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7230 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7231 (value_nsstring, find_imps): Update.
7232 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7233 * p-lang.c (pascal_main_name): Update.
7234 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7235 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7236 * proc-service.c (ps_pglobal_lookup): Update.
7237 * ravenscar-thread.c (get_running_thread_msymbol): Change
7238 return type.
7239 (has_ravenscar_runtime, get_running_thread_id): Update.
7240 * remote.c (remote_check_symbols): Update.
7241 * sol-thread.c (ps_pglobal_lookup): Update.
7242 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7243 * solib-dsbt.c (lm_base): Update.
7244 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7245 Update.
7246 * solib-irix.c (locate_base): Update.
7247 * solib-som.c (som_solib_create_inferior_hook)
7248 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7249 Update.
7250 * solib-spu.c (spu_enable_break): Update.
7251 * solib-svr4.c (elf_locate_base, enable_break): Update.
7252 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7253 (flush_ea_cache): Update.
7254 * stabsread.c (define_symbol): Update.
7255 * symfile.c (simple_read_overlay_table): Update.
7256 * symtab.c (find_pc_sect_line): Update.
7257 * tracepoint.c (scope_info): Update.
7258 * tui-disasm.c (tui_get_begin_asm_address): Update.
7259 * value.c (value_static_field): Update.
7260
7261 2014-02-26 Tom Tromey <tromey@redhat.com>
7262
7263 * minsyms.c (prim_record_minimal_symbol_full): Use
7264 SET_MSYMBOL_VALUE_ADDRESS.
7265 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7266 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7267 SET_MSYMBOL_VALUE_ADDRESS.
7268 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7269 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7270
7271 2014-02-26 Tom Tromey <tromey@redhat.com>
7272
7273 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7274 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7275 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7276 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7277 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7278 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7279 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7280 * ada-lang.c (ada_main_name): Update.
7281 (ada_lookup_simple_minsym): Update.
7282 (ada_make_symbol_completion_list): Update.
7283 (ada_add_standard_exceptions): Update.
7284 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7285 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7286 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7287 * arm-tdep.c (skip_prologue_function): Update.
7288 (arm_skip_stack_protector, arm_skip_stub): Update.
7289 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7290 (arm_wince_skip_main_prologue): Update.
7291 * auxv.c (ld_so_xfer_auxv): Update.
7292 * avr-tdep.c (avr_scan_prologue): Update.
7293 * ax-gdb.c (gen_var_ref): Update.
7294 * block.c (call_site_for_pc): Update.
7295 * blockframe.c (get_pc_function_start): Update.
7296 (find_pc_partial_function_gnu_ifunc): Update.
7297 * breakpoint.c (create_overlay_event_breakpoint): Update.
7298 (create_longjmp_master_breakpoint): Update.
7299 (create_std_terminate_master_breakpoint): Update.
7300 (create_exception_master_breakpoint): Update.
7301 (resolve_sal_pc): Update.
7302 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7303 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7304 Update.
7305 * c-valprint.c (c_val_print): Update.
7306 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7307 * coffread.c (coff_symfile_read): Update.
7308 * common/agent.c (agent_look_up_symbols): Update.
7309 * dbxread.c (find_stab_function_addr): Update.
7310 (end_psymtab): Update.
7311 * dwarf2loc.c (call_site_to_target_addr): Update.
7312 (func_verify_no_selftailcall): Update.
7313 (tailcall_dump): Update.
7314 (call_site_find_chain_1): Update.
7315 (dwarf_expr_reg_to_entry_parameter): Update.
7316 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7317 (elf_gnu_ifunc_resolve_by_got): Update.
7318 * f-valprint.c (info_common_command): Update.
7319 * findvar.c (read_var_value): Update.
7320 * frame.c (get_prev_frame_1): Update.
7321 (inside_main_func): Update.
7322 * frv-tdep.c (frv_skip_main_prologue): Update.
7323 (frv_frame_this_id): Update.
7324 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7325 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7326 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7327 (gnuv3_skip_trampoline): Update.
7328 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7329 (hppa64_hpux_in_solib_call_trampoline): Update.
7330 (hppa_hpux_skip_trampoline_code): Update.
7331 (hppa64_hpux_search_dummy_call_sequence): Update.
7332 (hppa_hpux_find_import_stub_for_addr): Update.
7333 (hppa_hpux_find_dummy_bpaddr): Update.
7334 * hppa-tdep.c (hppa_symbol_address)
7335 (hppa_lookup_stub_minimal_symbol): Update.
7336 * i386-tdep.c (i386_skip_main_prologue): Update.
7337 (i386_pe_skip_trampoline_code): Update.
7338 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7339 * infcall.c (get_function_name): Update.
7340 * infcmd.c (until_next_command): Update.
7341 * jit.c (jit_breakpoint_re_set_internal): Update.
7342 (jit_inferior_init): Update.
7343 * linespec.c (minsym_found): Update.
7344 (add_minsym): Update.
7345 * linux-fork.c (info_checkpoints_command): Update.
7346 * linux-nat.c (get_signo): Update.
7347 * linux-thread-db.c (inferior_has_bug): Update.
7348 * m32c-tdep.c (m32c_return_value): Update.
7349 (m32c_m16c_address_to_pointer): Update.
7350 (m32c_m16c_pointer_to_address): Update.
7351 * m32r-tdep.c (m32r_frame_this_id): Update.
7352 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7353 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7354 * maint.c (maintenance_translate_address): Update.
7355 * minsyms.c (add_minsym_to_hash_table): Update.
7356 (add_minsym_to_demangled_hash_table): Update.
7357 (msymbol_objfile): Update.
7358 (lookup_minimal_symbol): Update.
7359 (iterate_over_minimal_symbols): Update.
7360 (lookup_minimal_symbol_text): Update.
7361 (lookup_minimal_symbol_by_pc_name): Update.
7362 (lookup_minimal_symbol_solib_trampoline): Update.
7363 (lookup_minimal_symbol_by_pc_section_1): Update.
7364 (lookup_minimal_symbol_and_objfile): Update.
7365 (prim_record_minimal_symbol_full): Update.
7366 (compare_minimal_symbols): Update.
7367 (compact_minimal_symbols): Update.
7368 (build_minimal_symbol_hash_tables): Update.
7369 (install_minimal_symbols): Update.
7370 (terminate_minimal_symbol_table): Update.
7371 (find_solib_trampoline_target): Update.
7372 (minimal_symbol_upper_bound): Update.
7373 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7374 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7375 (mips_skip_pic_trampoline_code): Update.
7376 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7377 * objc-lang.c (selectors_info): Update.
7378 (classes_info): Update.
7379 (find_methods): Update.
7380 (find_imps): Update.
7381 (find_objc_msgsend): Update.
7382 * objfiles.c (objfile_relocate1): Update.
7383 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7384 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7385 * p-valprint.c (pascal_val_print): Update.
7386 * parse.c (write_exp_msymbol): Update.
7387 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7388 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7389 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7390 * printcmd.c (build_address_symbolic): Update.
7391 (sym_info): Update.
7392 (address_info): Update.
7393 * proc-service.c (ps_pglobal_lookup): Update.
7394 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7395 (find_pc_sect_psymtab): Update.
7396 * python/py-framefilter.c (py_print_frame): Update.
7397 * ravenscar-thread.c (get_running_thread_id): Update.
7398 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7399 Update.
7400 * remote.c (remote_check_symbols): Update.
7401 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7402 (rs6000_skip_trampoline_code): Update.
7403 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7404 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7405 * solib-dsbt.c (lm_base): Update.
7406 * solib-frv.c (lm_base): Update.
7407 (main_got): Update.
7408 * solib-irix.c (locate_base): Update.
7409 * solib-som.c (som_solib_create_inferior_hook): Update.
7410 (som_solib_desire_dynamic_linker_symbols): Update.
7411 (link_map_start): Update.
7412 * solib-spu.c (spu_enable_break): Update.
7413 (ocl_enable_break): Update.
7414 * solib-svr4.c (elf_locate_base): Update.
7415 (enable_break): Update.
7416 * spu-tdep.c (spu_get_overlay_table): Update.
7417 (spu_catch_start): Update.
7418 (flush_ea_cache): Update.
7419 * stabsread.c (define_symbol): Update.
7420 (scan_file_globals): Update.
7421 * stack.c (find_frame_funname): Update.
7422 (frame_info): Update.
7423 * symfile.c (simple_read_overlay_table): Update.
7424 (simple_overlay_update): Update.
7425 * symmisc.c (dump_msymbols): Update.
7426 * symtab.c (fixup_section): Update.
7427 (find_pc_sect_line): Update.
7428 (skip_prologue_sal): Update.
7429 (search_symbols): Update.
7430 (print_msymbol_info): Update.
7431 (rbreak_command): Update.
7432 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7433 (completion_list_objc_symbol): Update.
7434 (default_make_symbol_completion_list_break_on): Update.
7435 * tracepoint.c (scope_info): Update.
7436 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7437 (tui_get_begin_asm_address): Update.
7438 * valops.c (find_function_in_inferior): Update.
7439 * value.c (value_static_field): Update.
7440 (value_fn_field): Update.
7441
7442 2014-02-26 Tom Tromey <tromey@redhat.com>
7443
7444 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7445 bound minimal symbols. Move code that knows about minsym
7446 table layout...
7447 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7448 function.
7449 * minsyms.h (minimal_symbol_upper_bound): Declare.
7450 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7451 minimal_symbol_upper_bound.
7452
7453 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7454
7455 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7456 Use the type's name if its basic type does not have a tag.
7457
7458 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7459
7460 * dwarf2read.c (read_subrange_type): Add comment.
7461
7462 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7463
7464 * dwarf2read.c (update_enumeration_type_from_children): New
7465 function, mostly extracted from process_structure_scope.
7466 (read_enumeration_type): Call update_enumeration_type_from_children.
7467 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7468 and flag_flag_enum fields.
7469
7470 2014-02-26 Pedro Alves <palves@redhat.com>
7471
7472 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7473 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7474 to_xfer_partial method.
7475
7476 2014-02-26 Pedro Alves <palves@redhat.com>
7477
7478 * target.c (complete_target_initialization): Don't install
7479 default_xfer_partial as to_xfer_partial hook.
7480 (nomemory): Delete.
7481 (update_current_target): Don't INHERIT nor de_fault
7482 deprecated_xfer_memory. Delete de_fault macro.
7483 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7484 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7485 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7486 field.
7487
7488 2014-02-26 Pedro Alves <palves@redhat.com>
7489
7490 * go32-nat.c (my_write_child): New function.
7491 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7492 (go32_xfer_partial): New function.
7493 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7494 Instead install a to_xfer_partial hook.
7495
7496 2014-02-26 Pedro Alves <palves@redhat.com>
7497
7498 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7499 to_xfer_partial helper. Rewrite.
7500 (procfs_xfer_partial): New function.
7501 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7502 Install a to_xfer_partial hook.
7503
7504 2014-02-26 Pedro Alves <palves@redhat.com>
7505
7506 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7507 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7508 (m32r_xfer_partial): New function.
7509 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7510 Install a to_xfer_partial hook.
7511
7512 2014-02-26 Pedro Alves <palves@redhat.com>
7513
7514 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7515 helper.
7516 (mips_xfer_partial): New function.
7517 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7518 hook. Install a to_xfer_partial hook.
7519
7520 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7521
7522 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7523 * gdbtypes.c (create_array_type_with_stride): New function,
7524 renaming create_array_type, but with an added parameter
7525 called "bit_stride".
7526 (create_array_type): Re-implement using
7527 create_array_type_with_stride.
7528 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7529 and DW_AT_bit_stride attributes.
7530
7531 2014-02-26 Pedro Alves <palves@redhat.com>
7532
7533 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7534 task-specific breakpoints.
7535
7536 2014-02-25 Pedro Alves <palves@redhat.com>
7537
7538 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7539 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7540
7541 2014-02-25 Stan Shebs <stan@codesourcery.com>
7542
7543 * defs.h: Annotate comments for Doxygen.
7544
7545 2014-02-25 Tom Tromey <tromey@redhat.com>
7546
7547 * target.h (target_ignore): Don't declare.
7548 * target.c (target_ignore): Remove.
7549
7550 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7551
7552 PR gdb/16626
7553 * auto-load.c (auto_load_objfile_script_1): Change filename to
7554 debugfile.
7555
7556 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7557
7558 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7559 documentation. Adjust prototype to match the target_ops
7560 to_xfer_partial method. Adjust implementation accordingly.
7561
7562 2014-02-25 Hui Zhu <hui@codesourcery.com>
7563
7564 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7565 to_traceframe_info.
7566
7567 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7568
7569 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7570 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7571 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7572 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7573 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7574 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7575 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7576 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7577 New constants.
7578 (rl78_register_type): Use a data pointer type for SP and
7579 new pseudo registers mentioned above. Use a 16 bit integer
7580 type for all other register pairs.
7581 (rl78_register_name, rl78_g10_register_name): Update for
7582 new pseudo registers.
7583 (rl78_pseudo_register_read): Likewise.
7584 (rl78_pseudo_register_write): Likewise.
7585 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7586 to the newly added pseudo registers.
7587
7588 2014-02-24 Doug Evans <dje@google.com>
7589
7590 * value.c (record_latest_value): Fix comment.
7591 * printcmd.c (print_command_1): Remove code to handle -1 return from
7592 record_latest_value.
7593
7594 2014-02-24 Pedro Alves <palves@redhat.com>
7595
7596 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7597 deprecated_xfer_memory hook.
7598 (procfs_xfer_partial): Call procfs_xfer_memory instead
7599 of the deprecated_xfer_memory target hook.
7600 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7601 helper.
7602
7603 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7604
7605 * windows-nat.c (windows_xfer_shared_libraries): Return
7606 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7607 requested object is TARGET_OBJECT_LIBRARIES.
7608
7609 2014-02-24 Yao Qi <yao@codesourcery.com>
7610
7611 * target.h (enum target_xfer_status)
7612 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7613 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7614 explicitly. New.
7615 * corefile.c (memory_error_message): User updated.
7616 * exec.c (section_table_read_available_memory): Likewise.
7617 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7618 * target.c (target_xfer_status_to_string): Likewise.
7619 (raw_memory_xfer_partial): Likewise.
7620 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7621 * valops.c (read_value_memory): Likewise.
7622 * exec.h: Update comments.
7623
7624 2014-02-24 Yao Qi <yao@codesourcery.com>
7625
7626 * target.c (target_xfer_status_to_string): Rename argument err
7627 to status.
7628 * target.h (target_xfer_status_to_string): Update declaration.
7629 Replace target_xfer_error_to_string with
7630 target_xfer_status_to_string in comment.
7631
7632 2014-02-24 Yao Qi <yao@codesourcery.com>
7633
7634 * mips-linux-nat.c (super_close): Update its type.
7635 (mips_linux_close): Pass 'self' to super_close.
7636
7637 2014-02-24 Yao Qi <yao@codesourcery.com>
7638
7639 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7640 * corefile.c (read_memory): Adjusted.
7641 * target.c (target_write_with_progress): Adjusted.
7642
7643 2014-02-23 Yao Qi <yao@codesourcery.com>
7644
7645 Revert two patches:
7646
7647 2013-10-25 Yao Qi <yao@codesourcery.com>
7648
7649 * remote.c (remote_traceframe_info): Return early if
7650 traceframe is not selected.
7651
7652 2013-07-19 Yao Qi <yao@codesourcery.com>
7653
7654 * target.c (update_current_target): Change the default action
7655 of 'to_traceframe_info' from tcomplain to return_zero.
7656 * target.h (struct target_ops) <to_traceframe_info>: Add more
7657 comments.
7658
7659 2014-02-23 Yao Qi <yao@codesourcery.com>
7660
7661 * valops.c (read_value_memory): Rewrite it. Call
7662 target_xfer_partial in a loop.
7663 * exec.h (section_table_available_memory): Remove declaration.
7664 Move comments to ...
7665 * exec.c (section_table_available_memory): ... here. Make it
7666 static.
7667
7668 2014-02-23 Yao Qi <yao@codesourcery.com>
7669
7670 * exec.c (section_table_read_available_memory): New function.
7671 * exec.h (section_table_read_available_memory): Declare.
7672 * ctf.c (ctf_xfer_partial): Call
7673 section_table_read_available_memory.
7674 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7675
7676 2014-02-23 Yao Qi <yao@codesourcery.com>
7677
7678 * ctf.c (ctf_xfer_partial): Move code to ...
7679 * exec.c (exec_read_partial_read_only): ... it. New function.
7680 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7681 * tracefile.c: Include "exec.h".
7682 * exec.h (exec_read_partial_read_only): Declare.
7683
7684 2014-02-23 Yao Qi <yao@codesourcery.com>
7685
7686 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7687 (tfile_has_memory): Remove.
7688 (init_tfile_ops): Don't set fields to_has_all_memory and
7689 to_has_memory of tfile_ops.
7690 * tracefile.c (tracefile_has_all_memory): New function.
7691 (tracefile_has_memory): New function.
7692 (init_tracefile_ops): Initialize fields to_has_all_memory and
7693 to_has_memory of 'ops'.
7694
7695 2014-02-23 Yao Qi <yao@codesourcery.com>
7696
7697 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7698 (ctf_thread_alive, ctf_get_trace_status): Remove.
7699 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7700 init_tracefile_ops.
7701 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7702 (tfile_has_stack, tfile_has_registers): Remove.
7703 (tfile_thread_alive): Remove.
7704 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7705 init_tracefile_ops.
7706 * tracefile.c (tracefile_has_stack): New function.
7707 (tracefile_has_registers): New function.
7708 (tracefile_thread_alive): New function.
7709 (tracefile_get_trace_status): New function.
7710 (init_tracefile_ops): New function.
7711 * tracefile.h (init_tracefile_ops): Declare.
7712
7713 2014-02-23 Yao Qi <yao@codesourcery.com>
7714
7715 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7716 (O_LARGEFILE): Likewise.
7717 (tfile_ops): Likewise.
7718 (TRACE_HEADER_SIZE): Likewise.
7719 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7720 (cur_data_size): Likewise.
7721 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7722 (tfile_close, tfile_files_info): Likewise.
7723 (tfile_get_trace_status): Likewise.
7724 (tfile_get_tracepoint_status): Likewise.
7725 (tfile_get_traceframe_address): Likewise.
7726 (tfile_trace_find, match_blocktype): Likewise.
7727 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7728 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7729 (tfile_get_trace_state_variable_value): Likewise.
7730 (tfile_has_all_memory, tfile_has_memory): Likewise.
7731 (tfile_has_stack, tfile_has_registers): Likewise.
7732 (tfile_thread_alive, build_traceframe_info): Likewise.
7733 (tfile_traceframe_info, init_tfile_ops): Likewise.
7734 (_initialize_tracepoint): Don't call init_tfile_ops
7735 and add_target_with_completer.
7736 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7737 exec.h, completer.h and filenames.h.
7738 (_initialize_tracefile_tfile): New function.
7739
7740 2014-02-23 Yao Qi <yao@codesourcery.com>
7741
7742 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7743 tracefile-tfile.o.
7744 (HFILES_NO_SRCDIR): Add tracefile.h.
7745 * ctf.c: Include "tracefile.h".
7746 * tracefile.h: New file.
7747 * tracefile.c: New file
7748 * tracefile-tfile.c: New file.
7749 * tracepoint.c: Include "tracefile.h".
7750 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7751 (stop_reason_names): Add const.
7752 (trace_file_writer_xfree): Move it to tracefile.c.
7753 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7754 (trace_save_ctf): Likewise.
7755 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7756 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7757 (tfile_write_header, tfile_write_regblock_type): Likewise.
7758 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7759 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7760 (tfile_write_raw_data, tfile_end): Likewise.
7761 (tfile_trace_file_writer_new): Likewise.
7762 (free_uploaded_tp): Make it extern.
7763 (free_uploaded_tsv): Make it extern.
7764 (_initialize_tracepoint): Move code to register command 'tsave'
7765 to tracefile.c.
7766 * tracepoint.h (stop_reason_names): Declare.
7767 (struct trace_frame_write_ops): Move it to tracefile.h.
7768 (struct trace_file_write_ops): Likewise.
7769 (struct trace_file_writer): Likewise.
7770 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7771
7772 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7773
7774 PR gdb/16594
7775 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7776 process name.
7777 (get_cores_used_by_process): New parameter num_cores, use it.
7778 (linux_xfer_osdata_processes): Pass num_cores to it.
7779 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7780 process name.
7781
7782 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7783
7784 * target.c (memory_xfer_partial): Fix length arg in call to
7785 breakpoint_xfer_memory.
7786
7787 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7788
7789 PR tdep/16397
7790 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7791 number comes after the + or - signs. Adjust length of register
7792 name to be extracted.
7793
7794 2014-02-20 Tom Tromey <tromey@redhat.com>
7795
7796 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7797 (ada_varobj_ops): Mark "extern".
7798
7799 2014-02-20 Tom Tromey <tromey@redhat.com>
7800
7801 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7802
7803 2014-02-20 Doug Evans <xdje42@gmail.com>
7804
7805 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7806 All callers updated.
7807 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7808 All callers updated.
7809 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7810 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7811
7812 2014-02-20 lin zuojian <manjian2006@gmail.com>
7813 Joel Brobecker <brobecker@adacore.com>
7814 Doug Evans <xdje42@gmail.com>
7815
7816 PR symtab/16581
7817 * dwarf2read.c (struct die_info): New member in_process.
7818 (reset_die_in_process): New function.
7819 (process_die): Set it at the start, reset when returning.
7820 (inherit_abstract_dies): Only call process_die if origin_child_die
7821 not already being processed.
7822
7823 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7824
7825 * windows-nat.c (handle_unload_dll): Add function documentation.
7826 (do_initial_windows_stuff): Add comment explaining why we wait
7827 until after inferior initialization has finished before
7828 processing all DLLs.
7829
7830 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7831
7832 * windows-nat.c (get_module_name): Delete.
7833 (windows_get_exec_module_filename): New function, mostly
7834 inspired from get_module_name.
7835 (windows_pid_to_exec_file): Replace call to get_module_name
7836 by call to windows_get_exec_module_filename.
7837
7838 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7839
7840 * windows-nat.c (handle_load_dll): Rewrite this function's
7841 introductory comment. Remove code using get_module_name
7842 to get the DLL's name.
7843
7844 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7845
7846 * windows-nat.c (get_windows_debug_event): Ignore
7847 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7848 if windows_initialization_done == 0.
7849 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7850 Adjust implementation to always load all DLLs.
7851 (do_initial_windows_stuff): Replace call to
7852 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7853
7854 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7855
7856 * windows-nat.c (_initialize_windows_nat): Deprecate the
7857 "dll-symbols" command. Turn the "add-shared-symbol-files"
7858 and "assf" aliases into commands, and deprecate them as well.
7859 * NEWS: Add entry explaining that "dll-symbols" and its two
7860 aliases are now deprecated.
7861
7862 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7863
7864 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7865 new-line in debug string. Remove trailing spaces.
7866
7867 2014-02-19 Stan Shebs <stan@codesourcery.com>
7868
7869 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7870
7871 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7872
7873 * NEWS: Add entry for the new feature
7874 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7875 and class values.
7876
7877 2014-02-19 Stan Shebs <stan@codesourcery.com>
7878
7879 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7880
7881 2014-02-19 Pedro Alves <palves@redhat.com>
7882
7883 * common/ptid.h (struct ptid): Mention that process_stratum
7884 targets should prefer ptid.lwp.
7885
7886 2014-02-19 Pedro Alves <palves@redhat.com>
7887
7888 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7889 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7890 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7891 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7892 store remote thread ids rather than ptid.tid.
7893 (_initialize_remote): Adjust.
7894
7895 2014-02-19 Tom Tromey <tromey@redhat.com>
7896
7897 * target.c (target_get_unwinder): Rewrite.
7898 (target_get_tailcall_unwinder): Rewrite.
7899 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7900 (record_btrace_to_get_tailcall_unwinder): New function.
7901 (init_record_btrace_ops): Update.
7902 * target.h (struct target_ops) <to_get_unwinder,
7903 to_get_tailcall_unwinder>: Now function pointers. Use
7904 TARGET_DEFAULT_RETURN.
7905
7906 2014-02-19 Tom Tromey <tromey@redhat.com>
7907
7908 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7909 argument.
7910 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7911
7912 2014-02-19 Tom Tromey <tromey@redhat.com>
7913
7914 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7915 directly.
7916 * target-delegates.c: Rebuild.
7917 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7918 TARGET_DEFAULT_FUNC.
7919 * target.c (default_target_decr_pc_after_break): Rename from
7920 forward_target_decr_pc_after_break. Simplify.
7921 (target_decr_pc_after_break): Rely on delegation.
7922
7923 2014-02-19 Tom Tromey <tromey@redhat.com>
7924
7925 * target.c (update_current_target): Do not INHERIT to_doc or
7926 to_magic. Do not de_fault to_open or to_close.
7927
7928 2014-02-19 Tom Tromey <tromey@redhat.com>
7929
7930 * gcore.h (objfile_find_memory_regions): Declare.
7931 * gcore.c (objfile_find_memory_regions): No longer static. Add
7932 "self" argument.
7933 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7934 * exec.c: Include gcore.h.
7935 (exec_set_find_memory_regions): Remove.
7936 (exec_find_memory_regions): Remove.
7937 (exec_do_find_memory_regions): Remove.
7938 (init_exec_ops): Update.
7939 * defs.h (exec_set_find_memory_regions): Remove.
7940
7941 2014-02-19 Tom Tromey <tromey@redhat.com>
7942
7943 * target-delegates.c: Rebuild.
7944 * target.h (struct target_ops) <to_extra_thread_info,
7945 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7946 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7947 not 0, in TARGET_DEFAULT_RETURN.
7948
7949 2014-02-19 Tom Tromey <tromey@redhat.com>
7950
7951 * target.c (complete_target_initialization): Remove casts. Use
7952 return_zero_has_execution.
7953 (return_zero): Add "ignore" argument.
7954 (return_zero_has_execution): New function.
7955 (init_dummy_target): Remove casts. Use
7956 return_zero_has_execution.
7957
7958 2014-02-19 Tom Tromey <tromey@redhat.com>
7959
7960 * target.c (update_current_target): Update comments. Do not
7961 INHERIT to_stratum.
7962
7963 2014-02-19 Tom Tromey <tromey@redhat.com>
7964
7965 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7966 needed.
7967 * corelow.c (core_read_description): Delegate when needed.
7968 * remote.c (remote_read_description): Delegate when needed.
7969 * target-delegates.c: Rebuild.
7970 * target.c (target_read_description): Rewrite.
7971 * target.h (struct target_ops) <to_read_description>: Update
7972 comment. Use TARGET_DEFAULT_RETURN.
7973
7974 2014-02-19 Tom Tromey <tromey@redhat.com>
7975
7976 * target-delegates.c: Rebuild.
7977 * target.c (update_current_target): Don't inherit or default
7978 to_can_run.
7979 (find_default_run_target): Check against delegate_can_run.
7980 * target.h (struct target_ops) <to_can_run>: Use
7981 TARGET_DEFAULT_RETURN.
7982
7983 2014-02-19 Tom Tromey <tromey@redhat.com>
7984
7985 * target-delegates.c: Rebuild.
7986 * target.c (target_disconnect): Unconditionally delegate.
7987 * target.h (struct target_ops) <to_disconnect>: Use
7988 TARGET_DEFAULT_NORETURN.
7989
7990 2014-02-19 Tom Tromey <tromey@redhat.com>
7991
7992 * record.c (record_stop): Unconditionally delegate.
7993 * target-delegates.c: Rebuild.
7994 * target.c (target_stop_recording): Unconditionally delegate.
7995 * target.h (struct target_ops) <to_stop_recording>: Use
7996 TARGET_DEFAULT_IGNORE.
7997
7998 2014-02-19 Tom Tromey <tromey@redhat.com>
7999
8000 * target-delegates.c: Rebuild.
8001 * target.c (target_enable_btrace): Unconditionally delegate.
8002 * target.h (struct target_ops) <to_enable_btrace>: Use
8003 TARGET_DEFAULT_NORETURN.
8004
8005 2014-02-19 Tom Tromey <tromey@redhat.com>
8006
8007 * target-delegates.c: Rebuild.
8008 * target.c (target_read_btrace): Unconditionally delegate.
8009 * target.h (struct target_ops) <to_read_btrace>: Use
8010 TARGET_DEFAULT_NORETURN.
8011
8012 2014-02-19 Tom Tromey <tromey@redhat.com>
8013
8014 * target-delegates.c: Rebuild.
8015 * target.c (target_teardown_btrace): Unconditionally delegate.
8016 * target.h (struct target_ops) <to_teardown_btrace>: Use
8017 TARGET_DEFAULT_NORETURN.
8018
8019 2014-02-19 Tom Tromey <tromey@redhat.com>
8020
8021 * target-delegates.c: Rebuild.
8022 * target.c (target_disable_btrace): Unconditionally delegate.
8023 * target.h (struct target_ops) <to_disable_btrace>: Use
8024 TARGET_DEFAULT_NORETURN.
8025
8026 2014-02-19 Tom Tromey <tromey@redhat.com>
8027
8028 * target-delegates.c: Rebuild.
8029 * target.c (default_search_memory): New function.
8030 (simple_search_memory): Update comment.
8031 (target_search_memory): Unconditionally delegate.
8032 * target.h (struct target_ops) <to_search_memory>: Use
8033 TARGET_DEFAULT_FUNC.
8034
8035 2014-02-19 Tom Tromey <tromey@redhat.com>
8036
8037 * auxv.c (default_auxv_parse): No longer static.
8038 (target_auxv_parse): Unconditionally delegate.
8039 * auxv.h (default_auxv_parse): Declare.
8040 * target-delegates.c: Rebuild.
8041 * target.c: Include auxv.h.
8042 * target.h (struct target_ops) <to_auxv_parse>: Use
8043 TARGET_DEFAULT_FUNC.
8044
8045 2014-02-19 Tom Tromey <tromey@redhat.com>
8046
8047 * target-delegates.c: Rebuild.
8048 * target.c (target_memory_map): Unconditionally delegate.
8049 * target.h (struct target_ops) <to_memory_map>: Use
8050 TARGET_DEFAULT_RETURN.
8051
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8053
8054 * target-delegates.c: Rebuild.
8055 * target.c (target_thread_alive): Unconditionally delegate.
8056 * target.h (struct target_ops) <to_thread_alive>: Use
8057 TARGET_DEFAULT_RETURN.
8058
8059 2014-02-19 Tom Tromey <tromey@redhat.com>
8060
8061 * target-delegates.c: Rebuild.
8062 * target.c (target_save_record): Unconditionally delegate.
8063 * target.h (struct target_ops) <to_save_record>: Use
8064 TARGET_DEFAULT_NORETURN.
8065
8066 2014-02-19 Tom Tromey <tromey@redhat.com>
8067
8068 * target-delegates.c: Rebuild.
8069 * target.c (target_delete_record): Unconditionally delegate.
8070 * target.h (struct target_ops) <to_delete_record>: Use
8071 TARGET_DEFAULT_NORETURN.
8072
8073 2014-02-19 Tom Tromey <tromey@redhat.com>
8074
8075 * target-delegates.c: Rebuild.
8076 * target.c (target_record_is_replaying): Unconditionally
8077 delegate.
8078 * target.h (struct target_ops) <to_record_is_replaying>: Use
8079 TARGET_DEFAULT_RETURN.
8080
8081 2014-02-19 Tom Tromey <tromey@redhat.com>
8082
8083 * target-delegates.c: Rebuild.
8084 * target.c (target_goto_record_begin): Unconditionally delegate.
8085 * target.h (struct target_ops) <to_goto_record_begin>: Use
8086 TARGET_DEFAULT_NORETURN.
8087
8088 2014-02-19 Tom Tromey <tromey@redhat.com>
8089
8090 * target-delegates.c: Rebuild.
8091 * target.c (target_goto_record_end): Unconditionally delegate.
8092 * target.h (struct target_ops) <to_goto_record_end>: Use
8093 TARGET_DEFAULT_NORETURN.
8094
8095 2014-02-19 Tom Tromey <tromey@redhat.com>
8096
8097 * target-delegates.c: Rebuild.
8098 * target.c (target_goto_record): Unconditionally delegate.
8099 * target.h (struct target_ops) <to_goto_record>: Use
8100 TARGET_DEFAULT_NORETURN.
8101
8102 2014-02-19 Tom Tromey <tromey@redhat.com>
8103
8104 * target-delegates.c: Rebuild.
8105 * target.c (target_insn_history): Unconditionally delegate.
8106 * target.h (struct target_ops) <to_insn_history>: Use
8107 TARGET_DEFAULT_NORETURN.
8108
8109 2014-02-19 Tom Tromey <tromey@redhat.com>
8110
8111 * target-delegates.c: Rebuild.
8112 * target.c (target_insn_history_from): Unconditionally delegate.
8113 * target.h (struct target_ops) <to_insn_history_from>: Use
8114 TARGET_DEFAULT_NORETURN.
8115
8116 2014-02-19 Tom Tromey <tromey@redhat.com>
8117
8118 * target-delegates.c: Rebuild.
8119 * target.c (target_insn_history_range): Unconditionally delegate.
8120 * target.h (struct target_ops) <to_insn_history_range>: Use
8121 TARGET_DEFAULT_NORETURN.
8122
8123 2014-02-19 Tom Tromey <tromey@redhat.com>
8124
8125 * target-delegates.c: Rebuild.
8126 * target.c (target_call_history): Unconditionally delegate.
8127 * target.h (struct target_ops) <to_call_history>: Use
8128 TARGET_DEFAULT_NORETURN.
8129
8130 2014-02-19 Tom Tromey <tromey@redhat.com>
8131
8132 * target-delegates.c: Rebuild.
8133 * target.c (target_call_history_from): Unconditionally delegate.
8134 * target.h (struct target_ops) <to_call_history_from>: Use
8135 TARGET_DEFAULT_NORETURN.
8136
8137 2014-02-19 Tom Tromey <tromey@redhat.com>
8138
8139 * target-delegates.c: Rebuild.
8140 * target.c (target_call_history_range): Unconditionally delegate.
8141 * target.h (struct target_ops) <to_call_history_range>: Use
8142 TARGET_DEFAULT_NORETURN.
8143
8144 2014-02-19 Tom Tromey <tromey@redhat.com>
8145
8146 * target-delegates.c: Rebuild.
8147 * target.c (target_verify_memory): Unconditionally delegate.
8148 * target.h (struct target_ops) <to_verify_memory>: Use
8149 TARGET_DEFAULT_NORETURN.
8150
8151 2014-02-19 Tom Tromey <tromey@redhat.com>
8152
8153 * target-delegates.c: Rebuild.
8154 * target.c (target_core_of_thread): Unconditionally delegate.
8155 * target.h (struct target_ops) <to_core_of_thread>: Use
8156 TARGET_DEFAULT_RETURN.
8157
8158 2014-02-19 Tom Tromey <tromey@redhat.com>
8159
8160 * target-delegates.c: Rebuild.
8161 * target.c (target_flash_done): Unconditionally delegate.
8162 * target.h (struct target_ops) <to_flash_done>: Use
8163 TARGET_DEFAULT_NORETURN.
8164
8165 2014-02-19 Tom Tromey <tromey@redhat.com>
8166
8167 * target-delegates.c: Rebuild.
8168 * target.c (target_flash_erase): Unconditionally delegate.
8169 * target.h (struct target_ops) <to_flash_erase>: Use
8170 TARGET_DEFAULT_NORETURN.
8171
8172 2014-02-19 Tom Tromey <tromey@redhat.com>
8173
8174 * target-delegates.c: Rebuild.
8175 * target.c (target_get_section_table): Unconditionally delegate.
8176 * target.h (struct target_ops) <to_get_section_table>: Use
8177 TARGET_DEFAULT_RETURN.
8178
8179 2014-02-19 Tom Tromey <tromey@redhat.com>
8180
8181 * target-delegates.c: Rebuild.
8182 * target.c (target_pid_to_str): Unconditionally delegate.
8183 (init_dummy_target): Don't initialize to_pid_to_str.
8184 (default_pid_to_str): Rename from dummy_pid_to_str.
8185 * target.h (struct target_ops) <to_pid_to_str>: Use
8186 TARGET_DEFAULT_FUNC.
8187
8188 2014-02-19 Tom Tromey <tromey@redhat.com>
8189
8190 * target-delegates.c: Rebuild.
8191 * target.c (target_find_new_threads): Unconditionally delegate.
8192 * target.h (struct target_ops) <to_find_new_threads>: Use
8193 TARGET_DEFAULT_RETURN.
8194
8195 2014-02-19 Tom Tromey <tromey@redhat.com>
8196
8197 * target-delegates.c: Rebuild.
8198 * target.c (target_program_signals): Unconditionally delegate.
8199 * target.h (struct target_ops) <to_program_signals>: Use
8200 TARGET_DEFAULT_IGNORE.
8201
8202 2014-02-19 Tom Tromey <tromey@redhat.com>
8203
8204 * target-delegates.c: Rebuild.
8205 * target.c (target_pass_signals): Unconditionally delegate.
8206 * target.h (struct target_ops) <to_pass_signals>: Use
8207 TARGET_DEFAULT_IGNORE.
8208
8209 2014-02-19 Tom Tromey <tromey@redhat.com>
8210
8211 * target-delegates.c: Rebuild.
8212 * target.c (default_mourn_inferior): New function.
8213 (target_mourn_inferior): Unconditionally delegate.
8214 * target.h (struct target_ops) <to_mourn_inferior>: Use
8215 TARGET_DEFAULT_FUNC.
8216
8217 2014-02-19 Tom Tromey <tromey@redhat.com>
8218
8219 * target-delegates.c: Rebuild.
8220 * target.c (default_follow_fork): New function.
8221 (target_follow_fork): Unconditionally delegate.
8222 * target.h (struct target_ops) <to_follow_fork>: Use
8223 TARGET_DEFAULT_FUNC.
8224
8225 2014-02-19 Tom Tromey <tromey@redhat.com>
8226
8227 * target-delegates.c: Rebuild.
8228 * target.c (target_kill): Unconditionally delegate.
8229 * target.h (struct target_ops) <to_kill>: Use
8230 TARGET_DEFAULT_NORETURN.
8231
8232 2014-02-19 Tom Tromey <tromey@redhat.com>
8233
8234 * target-delegates.c: Rebuild.
8235 * target.c (target_masked_watch_num_registers): Unconditionally
8236 delegate.
8237 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8238 Use TARGET_DEFAULT_RETURN.
8239
8240 2014-02-19 Tom Tromey <tromey@redhat.com>
8241
8242 * target-delegates.c: Rebuild.
8243 * target.c (target_remove_mask_watchpoint): Unconditionally
8244 delegate.
8245 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8246 TARGET_DEFAULT_RETURN.
8247
8248 2014-02-19 Tom Tromey <tromey@redhat.com>
8249
8250 * target-delegates.c: Rebuild.
8251 * target.c (target_insert_mask_watchpoint): Unconditionally
8252 delegate.
8253 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8254 TARGET_DEFAULT_RETURN.
8255
8256 2014-02-19 Tom Tromey <tromey@redhat.com>
8257
8258 * target-delegates.c: Rebuild.
8259 * target.c (target_ranged_break_num_registers): Unconditionally
8260 delegate.
8261 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8262 Use TARGET_DEFAULT_RETURN.
8263
8264 2014-02-19 Tom Tromey <tromey@redhat.com>
8265
8266 * target-delegates.c: Rebuild.
8267 * target.c (target_fetch_registers): Unconditionally delegate.
8268 * target.h (struct target_ops) <to_fetch_registers>: Use
8269 TARGET_DEFAULT_NORETURN.
8270
8271 2014-02-19 Tom Tromey <tromey@redhat.com>
8272
8273 * target-delegates.c: Rebuild.
8274 * target.c (update_current_target): Don't inherit or default
8275 to_stop.
8276 * target.h (struct target_ops) <to_stop>: Use
8277 TARGET_DEFAULT_IGNORE.
8278
8279 2014-02-19 Tom Tromey <tromey@redhat.com>
8280
8281 * target-delegates.c: Rebuild.
8282 * target.c (update_current_target): Don't inherit or default
8283 to_can_run_breakpoint_commands.
8284 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8285 Use TARGET_DEFAULT_RETURN.
8286
8287 2014-02-19 Tom Tromey <tromey@redhat.com>
8288
8289 * target-delegates.c: Rebuild.
8290 * target.c (update_current_target): Don't inherit or default
8291 to_supports_evaluation_of_breakpoint_conditions.
8292 * target.h (struct target_ops)
8293 <to_supports_evaluation_of_breakpoint_conditions>: Use
8294 TARGET_DEFAULT_RETURN.
8295
8296 2014-02-19 Tom Tromey <tromey@redhat.com>
8297
8298 * target-delegates.c: Rebuild.
8299 * target.c (update_current_target): Don't inherit or default
8300 to_augmented_libraries_svr4_read.
8301 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8302 Use TARGET_DEFAULT_RETURN.
8303
8304 2014-02-19 Tom Tromey <tromey@redhat.com>
8305
8306 * target-delegates.c: Rebuild.
8307 * target.c (update_current_target): Don't inherit or default
8308 to_can_use_agent.
8309 * target.h (struct target_ops) <to_can_use_agent>: Use
8310 TARGET_DEFAULT_RETURN.
8311
8312 2014-02-19 Tom Tromey <tromey@redhat.com>
8313
8314 * target-delegates.c: Rebuild.
8315 * target.c (update_current_target): Don't inherit or default
8316 to_use_agent.
8317 * target.h (struct target_ops) <to_use_agent>: Use
8318 TARGET_DEFAULT_NORETURN.
8319
8320 2014-02-19 Tom Tromey <tromey@redhat.com>
8321
8322 * target-delegates.c: Rebuild.
8323 * target.c (update_current_target): Don't inherit or default
8324 to_traceframe_info.
8325 (return_null): Remove.
8326 * target.h (struct target_ops) <to_traceframe_info>: Use
8327 TARGET_DEFAULT_RETURN.
8328
8329 2014-02-19 Tom Tromey <tromey@redhat.com>
8330
8331 * target-delegates.c: Rebuild.
8332 * target.c (update_current_target): Don't inherit or default
8333 to_static_tracepoint_markers_by_strid.
8334 * target.h (struct target_ops)
8335 <to_static_tracepoint_markers_by_strid>: Use
8336 TARGET_DEFAULT_NORETURN.
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_static_tracepoint_marker_at.
8343 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8344 Use TARGET_DEFAULT_RETURN.
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_set_permissions.
8351 * target.h (struct target_ops) <to_set_permissions>: Use
8352 TARGET_DEFAULT_IGNORE.
8353
8354 2014-02-19 Tom Tromey <tromey@redhat.com>
8355
8356 * target-delegates.c: Rebuild.
8357 * target.c (update_current_target): Don't inherit or default
8358 to_get_tib_address.
8359 * target.h (struct target_ops) <to_get_tib_address>: Use
8360 TARGET_DEFAULT_NORETURN.
8361
8362 2014-02-19 Tom Tromey <tromey@redhat.com>
8363
8364 * target-delegates.c: Rebuild.
8365 * target.c (update_current_target): Don't inherit or default
8366 to_set_trace_notes.
8367 * target.h (struct target_ops) <to_set_trace_notes>: Use
8368 TARGET_DEFAULT_RETURN.
8369
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8371
8372 * target-delegates.c: Rebuild.
8373 * target.c (update_current_target): Don't initialize
8374 to_set_trace_buffer_size.
8375 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8376 TARGET_DEFAULT_IGNORE.
8377
8378 2014-02-19 Tom Tromey <tromey@redhat.com>
8379
8380 * target-delegates.c: Rebuild.
8381 * target.c (update_current_target): Don't inherit or default
8382 to_set_circular_trace_buffer.
8383 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8384 TARGET_DEFAULT_IGNORE.
8385
8386 2014-02-19 Tom Tromey <tromey@redhat.com>
8387
8388 * target-delegates.c: Rebuild.
8389 * target.c (update_current_target): Don't inherit or default
8390 to_set_disconnected_tracing.
8391 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8392 TARGET_DEFAULT_IGNORE.
8393
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8395
8396 * target-delegates.c: Rebuild.
8397 * target.c (update_current_target): Don't inherit or default
8398 to_get_min_fast_tracepoint_insn_len.
8399 (return_minus_one): Remove.
8400 * target.h (struct target_ops)
8401 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8402
8403 2014-02-19 Tom Tromey <tromey@redhat.com>
8404
8405 * target-delegates.c: Rebuild.
8406 * target.c (update_current_target): Don't inherit or default
8407 to_get_raw_trace_data.
8408 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8409 TARGET_DEFAULT_NORETURN.
8410
8411 2014-02-19 Tom Tromey <tromey@redhat.com>
8412
8413 * target-delegates.c: Rebuild.
8414 * target.c (update_current_target): Don't inherit or default
8415 to_upload_trace_state_variables.
8416 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8417 Use TARGET_DEFAULT_RETURN.
8418
8419 2014-02-19 Tom Tromey <tromey@redhat.com>
8420
8421 * target-delegates.c: Rebuild.
8422 * target.c (update_current_target): Don't inherit or default
8423 to_upload_tracepoints.
8424 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8425 TARGET_DEFAULT_RETURN.
8426
8427 2014-02-19 Tom Tromey <tromey@redhat.com>
8428
8429 * target-delegates.c: Rebuild.
8430 * target.c (update_current_target): Don't inherit or default
8431 to_save_trace_data.
8432 * target.h (struct target_ops) <to_save_trace_data>: Use
8433 TARGET_DEFAULT_NORETURN.
8434
8435 2014-02-19 Tom Tromey <tromey@redhat.com>
8436
8437 * target-delegates.c: Rebuild.
8438 * target.c (update_current_target): Don't inherit or default
8439 to_get_trace_state_variable_value.
8440 * target.h (struct target_ops)
8441 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8442
8443 2014-02-19 Tom Tromey <tromey@redhat.com>
8444
8445 * target-delegates.c: Rebuild.
8446 * target.c (update_current_target): Don't inherit or default
8447 to_trace_find.
8448 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8449
8450 2014-02-19 Tom Tromey <tromey@redhat.com>
8451
8452 * target-delegates.c: Rebuild.
8453 * target.c (update_current_target): Don't inherit or default
8454 to_trace_stop.
8455 * target.h (struct target_ops) <to_trace_stop>: Use
8456 TARGET_DEFAULT_NORETURN.
8457
8458 2014-02-19 Tom Tromey <tromey@redhat.com>
8459
8460 * target-delegates.c: Rebuild.
8461 * target.c (update_current_target): Don't inherit or default
8462 to_get_tracepoint_status.
8463 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8464 TARGET_DEFAULT_NORETURN.
8465
8466 2014-02-19 Tom Tromey <tromey@redhat.com>
8467
8468 * target-delegates.c: Rebuild.
8469 * target.c (update_current_target): Don't inherit or default
8470 to_get_trace_status.
8471 * target.h (struct target_ops) <to_get_trace_status>: Use
8472 TARGET_DEFAULT_RETURN.
8473
8474 2014-02-19 Tom Tromey <tromey@redhat.com>
8475
8476 * target-delegates.c: Rebuild.
8477 * target.c (update_current_target): Don't inherit or default
8478 to_trace_start.
8479 * target.h (struct target_ops) <to_trace_start>: Use
8480 TARGET_DEFAULT_NORETURN.
8481
8482 2014-02-19 Tom Tromey <tromey@redhat.com>
8483
8484 * target-delegates.c: Rebuild.
8485 * target.c (update_current_target): Don't inherit or default
8486 to_trace_set_readonly_regions.
8487 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8488 Use TARGET_DEFAULT_NORETURN.
8489
8490 2014-02-19 Tom Tromey <tromey@redhat.com>
8491
8492 * target-delegates.c: Rebuild.
8493 * target.c (update_current_target): Don't inherit or default
8494 to_disable_tracepoint.
8495 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8496 TARGET_DEFAULT_NORETURN.
8497
8498 2014-02-19 Tom Tromey <tromey@redhat.com>
8499
8500 * target-delegates.c: Rebuild.
8501 * target.c (update_current_target): Don't inherit or default
8502 to_enable_tracepoint.
8503 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8504 TARGET_DEFAULT_NORETURN.
8505
8506 2014-02-19 Tom Tromey <tromey@redhat.com>
8507
8508 * target-delegates.c: Rebuild.
8509 * target.c (update_current_target): Don't inherit or default
8510 to_download_trace_state_variable.
8511 * target.h (struct target_ops) <to_download_trace_state_variable>:
8512 Use TARGET_DEFAULT_NORETURN.
8513
8514 2014-02-19 Tom Tromey <tromey@redhat.com>
8515
8516 * target-delegates.c: Rebuild.
8517 * target.c (update_current_target): Don't inherit or default
8518 to_can_download_tracepoint.
8519 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8520 TARGET_DEFAULT_RETURN.
8521
8522 2014-02-19 Tom Tromey <tromey@redhat.com>
8523
8524 * target-delegates.c: Rebuild.
8525 * target.c (update_current_target): Don't inherit or default
8526 to_download_tracepoint.
8527 * target.h (struct target_ops) <to_download_tracepoint>: Use
8528 TARGET_DEFAULT_NORETURN.
8529
8530 2014-02-19 Tom Tromey <tromey@redhat.com>
8531
8532 * target-delegates.c: Rebuild.
8533 * target.c (update_current_target): Don't inherit or default
8534 to_trace_init.
8535 * target.h (struct target_ops) <to_trace_init>: Use
8536 TARGET_DEFAULT_RETURN.
8537
8538 2014-02-19 Tom Tromey <tromey@redhat.com>
8539
8540 * target-delegates.c: Rebuild.
8541 * target.c (update_current_target): Don't inherit or default
8542 to_supports_string_tracing.
8543 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8544 TARGET_DEFAULT_RETURN.
8545
8546 2014-02-19 Tom Tromey <tromey@redhat.com>
8547
8548 * target-delegates.c: Rebuild.
8549 * target.c (update_current_target): Don't inherit or default
8550 to_supports_enable_disable_tracepoint.
8551 * target.h (struct target_ops)
8552 <to_supports_enable_disable_tracepoint>: Use
8553 TARGET_DEFAULT_RETURN.
8554
8555 2014-02-19 Tom Tromey <tromey@redhat.com>
8556
8557 * target-delegates.c: Rebuild.
8558 * target.c (update_current_target): Don't inherit or default
8559 to_supports_multi_process.
8560 * target.h (struct target_ops) <to_supports_multi_process>: Use
8561 TARGET_DEFAULT_RETURN.
8562
8563 2014-02-19 Tom Tromey <tromey@redhat.com>
8564
8565 * target-delegates.c: Rebuild.
8566 * target.c (update_current_target): Don't inherit or default
8567 to_get_ada_task_ptid.
8568 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8569 TARGET_DEFAULT_FUNC.
8570
8571 2014-02-19 Tom Tromey <tromey@redhat.com>
8572
8573 * target-delegates.c: Rebuild.
8574 * target.c (update_current_target): Don't inherit or default
8575 to_thread_architecture.
8576 * target.h (struct target_ops) <to_thread_architecture>: Use
8577 TARGET_DEFAULT_FUNC.
8578
8579 2014-02-19 Tom Tromey <tromey@redhat.com>
8580
8581 * target-delegates.c: Rebuild.
8582 * target.c (update_current_target): Don't inherit or default
8583 to_execution_direction.
8584 * target.h (struct target_ops) <to_execution_direction>: Use
8585 TARGET_DEFAULT_FUNC.
8586
8587 2014-02-19 Tom Tromey <tromey@redhat.com>
8588
8589 * target-delegates.c: Rebuild.
8590 * target.c (update_current_target): Don't inherit or default
8591 to_can_execute_reverse.
8592 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8593 TARGET_DEFAULT_RETURN.
8594 (target_can_execute_reverse): Unconditionally delegate.
8595
8596 2014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target-delegates.c: Rebuild.
8599 * target.c (update_current_target): Don't inherit or default
8600 to_goto_bookmark.
8601 (dummy_goto_bookmark): Remove.
8602 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8603 * target.h (struct target_ops) <to_goto_bookmark>: Use
8604 TARGET_DEFAULT_NORETURN.
8605
8606 2014-02-19 Tom Tromey <tromey@redhat.com>
8607
8608 * target-delegates.c: Rebuild.
8609 * target.c (update_current_target): Don't inherit or default
8610 to_get_bookmark.
8611 (dummy_get_bookmark): Remove.
8612 (init_dummy_target): Don't inherit or default to_get_bookmark.
8613 * target.h (struct target_ops) <to_get_bookmark>: Use
8614 TARGET_DEFAULT_NORETURN
8615
8616 2014-02-19 Tom Tromey <tromey@redhat.com>
8617
8618 * target-delegates.c: Rebuild.
8619 * target.c (update_current_target): Don't inherit or default
8620 to_make_corefile_notes.
8621 (init_dummy_target): Don't initialize to_make_corefile_notes.
8622 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8623 TARGET_DEFAULT_FUNC.
8624
8625 2014-02-19 Tom Tromey <tromey@redhat.com>
8626
8627 * target-delegates.c: Rebuild.
8628 * target.c (update_current_target): Don't inherit or default
8629 to_find_memory_regions.
8630 (init_dummy_target): Don't initialize to_find_memory_regions.
8631 * target.h (struct target_ops) <to_find_memory_regions>: Use
8632 TARGET_DEFAULT_FUNC.
8633
8634 2014-02-19 Tom Tromey <tromey@redhat.com>
8635
8636 * target-delegates.c: Rebuild.
8637 * target.c (update_current_target): Don't inherit or default
8638 to_log_command.
8639 * target.h (struct target_ops) <to_log_command>: Use
8640 TARGET_DEFAULT_IGNORE.
8641 (target_log_command): Unconditionally delegate.
8642
8643 2014-02-19 Tom Tromey <tromey@redhat.com>
8644
8645 * target-delegates.c: Rebuild.
8646 * target.c (update_current_target): Don't inherit or default
8647 to_pid_to_exec_file.
8648 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8649 TARGET_DEFAULT_RETURN.
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_thread_name.
8656 (target_thread_name): Unconditionally delegate.
8657 * target.h (struct target_ops) <to_thread_name>: Use
8658 TARGET_DEFAULT_RETURN.
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_extra_thread_info.
8665 * target.h (struct target_ops) <to_extra_thread_info>: Use
8666 TARGET_DEFAULT_RETURN.
8667
8668 2014-02-19 Tom Tromey <tromey@redhat.com>
8669
8670 * target-delegates.c: Rebuild.
8671 * target.c (update_current_target): Don't inherit or default
8672 to_has_exited.
8673 * target.h (struct target_ops) <to_has_exited>: Use
8674 TARGET_DEFAULT_RETURN..
8675
8676 2014-02-19 Tom Tromey <tromey@redhat.com>
8677
8678 * target-delegates.c: Rebuild.
8679 * target.c (update_current_target): Don't inherit or default
8680 to_set_syscall_catchpoint.
8681 (return_one): Remove.
8682 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8683 TARGET_DEFAULT_RETURN.
8684
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8686
8687 * target-delegates.c: Rebuild.
8688 * target.c (update_current_target): Don't inherit or default
8689 to_insert_exec_catchpoint.
8690 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8691 TARGET_DEFAULT_RETURN.
8692
8693 2014-01-08 Tom Tromey <tromey@redhat.com>
8694
8695 * target-delegates.c: Rebuild.
8696 * target.c (update_current_target): Don't inherit or default
8697 to_insert_exec_catchpoint.
8698 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8699 TARGET_DEFAULT_RETURN.
8700
8701 2014-02-19 Tom Tromey <tromey@redhat.com>
8702
8703 * target-delegates.c: Rebuild.
8704 * target.c (update_current_target): Don't inherit or default
8705 to_remove_vfork_catchpoint.
8706 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8707 TARGET_DEFAULT_RETURN.
8708
8709 2014-02-19 Tom Tromey <tromey@redhat.com>
8710
8711 * target-delegates.c: Rebuild.
8712 * target.c (update_current_target): Don't inherit or default
8713 to_insert_vfork_catchpoint.
8714 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8715 TARGET_DEFAULT_RETURN.
8716
8717 2014-02-19 Tom Tromey <tromey@redhat.com>
8718
8719 * target-delegates.c: Rebuild.
8720 * target.c (update_current_target): Don't inherit or default
8721 to_remove_fork_catchpoint.
8722 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8723 TARGET_DEFAULT_RETURN.
8724
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8726
8727 * target-delegates.c: Rebuild.
8728 * target.c (update_current_target): Don't inherit or default
8729 to_insert_fork_catchpoint.
8730 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8731 TARGET_DEFAULT_RETURN.
8732
8733 2014-02-19 Tom Tromey <tromey@redhat.com>
8734
8735 * target-delegates.c: Rebuild.
8736 * target.c (update_current_target): Don't inherit or default
8737 to_post_startup_inferior.
8738 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8739 TARGET_DEFAULT_IGNORE.
8740
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8742
8743 * target-delegates.c: Rebuild.
8744 * target.c (update_current_target): Don't inherit or default
8745 to_load.
8746 * target.h (struct target_ops) <to_load>: Use
8747 TARGET_DEFAULT_NORETURN.
8748
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8750
8751 * target-delegates.c: Rebuild.
8752 * target.c (update_current_target): Don't inherit or default
8753 to_terminal_info.
8754 * target.h (struct target_ops) <to_terminal_info>: Use
8755 TARGET_DEFAULT_FUNC.
8756
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't inherit or default
8761 to_terminal_save_ours.
8762 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8763 TARGET_DEFAULT_IGNORE.
8764
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8766
8767 * target-delegates.c: Rebuild.
8768 * target.c (update_current_target): Don't inherit or default
8769 to_terminal_ours.
8770 * target.h (struct target_ops) <to_terminal_ours>: Use
8771 TARGET_DEFAULT_IGNORE.
8772
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8774
8775 * target-delegates.c: Rebuild.
8776 * target.c (update_current_target): Don't inherit or default
8777 to_terminal_ours_for_output.
8778 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8779 TARGET_DEFAULT_IGNORE.
8780
8781 2014-02-19 Tom Tromey <tromey@redhat.com>
8782
8783 * target-delegates.c: Rebuild.
8784 * target.c (update_current_target): Don't inherit or default
8785 to_terminal_inferior.
8786 * target.h (struct target_ops) <to_terminal_inferior>: Use
8787 TARGET_DEFAULT_IGNORE.
8788
8789 2014-02-19 Tom Tromey <tromey@redhat.com>
8790
8791 * target-delegates.c: Rebuild.
8792 * target.c (update_current_target): Don't inherit or default
8793 to_terminal_init.
8794 * target.h (struct target_ops) <to_terminal_init>: Use
8795 TARGET_DEFAULT_IGNORE.
8796
8797 2014-02-19 Tom Tromey <tromey@redhat.com>
8798
8799 * target-delegates.c: Rebuild.
8800 * target.c (update_current_target): Don't inherit or default
8801 to_can_accel_watchpoint_condition.
8802 * target.h (struct target_ops)
8803 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8804
8805 2014-02-19 Tom Tromey <tromey@redhat.com>
8806
8807 * target-delegates.c: Rebuild.
8808 * target.c (update_current_target): Don't inherit or default
8809 to_region_ok_for_hw_watchpoint.
8810 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8811 Use TARGET_DEFAULT_FUNC.
8812
8813 2014-02-19 Tom Tromey <tromey@redhat.com>
8814
8815 * target-delegates.c: Rebuild.
8816 * target.c (update_current_target): Don't inherit or default
8817 to_watchpoint_addr_within_range.
8818 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8819 Use TARGET_DEFAULT_FUNC.
8820
8821 2014-02-19 Tom Tromey <tromey@redhat.com>
8822
8823 * target-delegates.c: Rebuild.
8824 * target.c (update_current_target): Don't inherit or default
8825 to_remove_watchpoint.
8826 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8827 TARGET_DEFAULT_NORETURN.
8828
8829 2014-02-19 Tom Tromey <tromey@redhat.com>
8830
8831 * target-delegates.c: Rebuild.
8832 * target.c (update_current_target): Don't inherit or default
8833 to_insert_watchpoint.
8834 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8835 TARGET_DEFAULT_RETURN.
8836
8837 2014-02-19 Tom Tromey <tromey@redhat.com>
8838
8839 * target-delegates.c: Rebuild.
8840 * target.c (update_current_target): Don't inherit or default
8841 to_remove_hw_breakpoint.
8842 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8843 TARGET_DEFAULT_RETURN.
8844
8845 2014-02-19 Tom Tromey <tromey@redhat.com>
8846
8847 * target-delegates.c: Rebuild.
8848 * target.c (update_current_target): Don't inherit or default
8849 to_insert_hw_breakpoint.
8850 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8851 TARGET_DEFAULT_RETURN.
8852
8853 2014-02-19 Tom Tromey <tromey@redhat.com>
8854
8855 * target-delegates.c: Rebuild.
8856 * target.c (update_current_target): Don't inherit or default
8857 to_can_use_hw_breakpoint.
8858 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8859 TARGET_DEFAULT_RETURN.
8860
8861 2014-02-19 Tom Tromey <tromey@redhat.com>
8862
8863 * target-delegates.c: Rebuild.
8864 * target.c (update_current_target): Don't inherit or default
8865 to_files_info.
8866 * target.h (struct target_ops) <to_files_info>: Use
8867 TARGET_DEFAULT_IGNORE.
8868
8869 2014-02-19 Tom Tromey <tromey@redhat.com>
8870
8871 * target-delegates.c: Rebuild.
8872 * target.c (update_current_target): Don't inherit or default
8873 to_store.
8874 * target.h (struct target_ops) <to_store>: Use
8875 TARGET_DEFAULT_NORETURN.
8876
8877 2014-02-19 Tom Tromey <tromey@redhat.com>
8878
8879 * target-delegates.c: Rebuild.
8880 * target.c (update_current_target): Don't inherit or default
8881 to_post_attach.
8882 * target.h (struct target_ops) <to_post_attach>: Use
8883 TARGET_DEFAULT_IGNORE.
8884
8885 2014-02-19 Tom Tromey <tromey@redhat.com>
8886
8887 * target-delegates.c: Rebuild.
8888 * target.c (update_current_target): Don't inherit or default
8889 to_rcmd.
8890 (default_rcmd): New function.
8891 (do_monitor_command): Unconditionally delegate.
8892 * target.h (struct target_ops) <to_rmcd>: Use
8893 TARGET_DEFAULT_FUNC.
8894
8895 2014-02-19 Tom Tromey <tromey@redhat.com>
8896
8897 * target-delegates.c: Rebuild.
8898 * target.c (init_dummy_target): Don't initialize to_attach.
8899 (target_attach): Unconditionally delegate.
8900 * target.h (struct target_ops) <to_attach>: Use
8901 TARGET_DEFAULT_FUNC.
8902
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * target-delegates.c: Rebuild.
8906 * target.c (target_detach): Unconditionally delegate.
8907 (init_dummy_target): Don't initialize to_detach.
8908 * target.h (struct target_ops) <to_detach>: Use
8909 TARGET_DEFAULT_IGNORE.
8910
8911 2014-02-19 Tom Tromey <tromey@redhat.com>
8912
8913 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8914 Add argument.
8915 (target_augmented_libraries_svr4_read): Add argument.
8916 * target.c (update_current_target): Update.
8917 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8918 argument.
8919
8920 2014-02-19 Tom Tromey <tromey@redhat.com>
8921
8922 * target.h (struct target_ops) <to_call_history_range>: Add
8923 argument.
8924 * target.c (target_call_history_range): Add argument.
8925 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8926 argument.
8927 (record_btrace_call_history_from): Update.
8928
8929 2014-02-19 Tom Tromey <tromey@redhat.com>
8930
8931 * target.h (struct target_ops) <to_call_history_from>: Add
8932 argument.
8933 * target.c (target_call_history_from): Add argument.
8934 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8935 argument.
8936
8937 2014-02-19 Tom Tromey <tromey@redhat.com>
8938
8939 * target.h (struct target_ops) <to_call_history>: Add argument.
8940 * target.c (target_call_history): Add argument.
8941 * record-btrace.c (record_btrace_call_history): Add 'self'
8942 argument.
8943
8944 2014-02-19 Tom Tromey <tromey@redhat.com>
8945
8946 * target.h (struct target_ops) <to_insn_history_range>: Add
8947 argument.
8948 * target.c (target_insn_history_range): Add argument.
8949 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8950 argument.
8951 (record_btrace_insn_history_from): Update.
8952
8953 2014-02-19 Tom Tromey <tromey@redhat.com>
8954
8955 * target.h (struct target_ops) <to_insn_history_from>: Add
8956 argument.
8957 * target.c (target_insn_history_from): Add argument.
8958 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8959 argument.
8960
8961 2014-02-19 Tom Tromey <tromey@redhat.com>
8962
8963 * target.h (struct target_ops) <to_insn_history>: Add argument.
8964 * target.c (target_insn_history): Add argument.
8965 * record-btrace.c (record_btrace_insn_history): Add 'self'
8966 argument.
8967
8968 2014-02-19 Tom Tromey <tromey@redhat.com>
8969
8970 * target.h (struct target_ops) <to_goto_record>: Add argument.
8971 * target.c (target_goto_record): Add argument.
8972 * record-full.c (record_full_goto): Add 'self' argument.
8973 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8974
8975 2014-02-19 Tom Tromey <tromey@redhat.com>
8976
8977 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8978 * target.c (target_goto_record_end): Add argument.
8979 * record-full.c (record_full_goto_end): Add 'self' argument.
8980 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8981
8982 2014-02-19 Tom Tromey <tromey@redhat.com>
8983
8984 * target.h (struct target_ops) <to_goto_record_begin>: Add
8985 argument.
8986 * target.c (target_goto_record_begin): Add argument.
8987 * record-full.c (record_full_goto_begin): Add 'self' argument.
8988 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8989 argument.
8990
8991 2014-02-19 Tom Tromey <tromey@redhat.com>
8992
8993 * target.h (struct target_ops) <to_record_is_replaying>: Add
8994 argument.
8995 * target.c (target_record_is_replaying): Add argument.
8996 * record-full.c (record_full_is_replaying): Add 'self' argument.
8997 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8998 argument.
8999 (record_btrace_xfer_partial, record_btrace_store_registers)
9000 (record_btrace_prepare_to_store, record_btrace_resume)
9001 (record_btrace_wait, record_btrace_decr_pc_after_break)
9002 (record_btrace_find_new_threads, record_btrace_thread_alive):
9003 Update.
9004
9005 2014-02-19 Tom Tromey <tromey@redhat.com>
9006
9007 * target.h (struct target_ops) <to_delete_record>: Add argument.
9008 * target.c (target_delete_record): Add argument.
9009 * record-full.c (record_full_delete): Add 'self' argument.
9010
9011 2014-02-19 Tom Tromey <tromey@redhat.com>
9012
9013 * target.h (struct target_ops) <to_save_record>: Add argument.
9014 * target.c (target_save_record): Add argument.
9015 * record-full.c (record_full_save): Add 'self' argument.
9016 (record_full_save): Add 'self' argument.
9017
9018 2014-02-19 Tom Tromey <tromey@redhat.com>
9019
9020 * target.h (struct target_ops) <to_info_record>: Add argument.
9021 * target.c (target_info_record): Add argument.
9022 * record.c (info_record_command): Add argument.
9023 * record-full.c (record_full_info): Add 'self' argument.
9024 * record-btrace.c (record_btrace_info): Add 'self' argument.
9025
9026 2014-02-19 Tom Tromey <tromey@redhat.com>
9027
9028 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9029 * target.c (target_stop_recording): Add argument.
9030 * record.c (record_stop): Add argument.
9031 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9032 argument.
9033
9034 2014-02-19 Tom Tromey <tromey@redhat.com>
9035
9036 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9037 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9038 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9039 argument.
9040 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9041 (_initialize_amd64_linux_nat): Use it.
9042 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9043 (_initialize_i386_linux_nat): Use it.
9044
9045 2014-02-19 Tom Tromey <tromey@redhat.com>
9046
9047 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9048 * target.c (target_teardown_btrace): Add argument.
9049 * remote.c (remote_teardown_btrace): Add 'self' argument.
9050 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9051 argument.
9052 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9053 argument.
9054
9055 2014-02-19 Tom Tromey <tromey@redhat.com>
9056
9057 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9058 * target.c (target_disable_btrace): Add argument.
9059 * remote.c (remote_disable_btrace): Add 'self' argument.
9060 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9061 argument.
9062 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9063 argument.
9064
9065 2014-02-19 Tom Tromey <tromey@redhat.com>
9066
9067 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9068 * target.c (target_enable_btrace): Add argument.
9069 * remote.c (remote_enable_btrace): Add 'self' argument.
9070 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9071 argument.
9072 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9073 argument.
9074
9075 2014-02-19 Tom Tromey <tromey@redhat.com>
9076
9077 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9078 (target_can_use_agent): Add argument.
9079 * target.c (update_current_target): Update.
9080 * remote.c (remote_can_use_agent): Add 'self' argument.
9081 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9082
9083 2014-02-19 Tom Tromey <tromey@redhat.com>
9084
9085 * target.h (struct target_ops) <to_use_agent>: Add argument.
9086 (target_use_agent): Add argument.
9087 * target.c (update_current_target): Update.
9088 * remote.c (remote_use_agent): Add 'self' argument.
9089 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9090
9091 2014-02-19 Tom Tromey <tromey@redhat.com>
9092
9093 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9094 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9095 (target_traceframe_info): Add argument.
9096 * target.c (update_current_target): Update.
9097 * remote.c (remote_traceframe_info): Add 'self' argument.
9098 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9099
9100 2014-02-19 Tom Tromey <tromey@redhat.com>
9101
9102 * target.h (target_static_tracepoint_markers_by_strid): Add
9103 argument.
9104 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9105 'self' argument.
9106 * target.c (update_current_target): Update.
9107 * remote.c (struct target_ops)
9108 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9109 * linux-nat.c (struct target_ops)
9110 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9111
9112 2014-02-19 Tom Tromey <tromey@redhat.com>
9113
9114 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9115 Add argument.
9116 (target_static_tracepoint_marker_at): Add argument.
9117 * target.c (update_current_target): Update.
9118 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9119 argument.
9120
9121 2014-02-19 Tom Tromey <tromey@redhat.com>
9122
9123 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9124 (target_set_permissions): Add argument.
9125 * target.c (update_current_target): Update.
9126 * remote.c (remote_set_permissions): Add 'self' argument.
9127 (remote_start_remote): Update.
9128
9129 2014-02-19 Tom Tromey <tromey@redhat.com>
9130
9131 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9132 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9133 (target_get_tib_address): Add argument.
9134 * target.c (update_current_target): Update.
9135 * remote.c (remote_get_tib_address): Add 'self' argument.
9136
9137 2014-02-19 Tom Tromey <tromey@redhat.com>
9138
9139 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9140 (target_set_trace_notes): Add argument.
9141 * target.c (update_current_target): Update.
9142 * remote.c (remote_set_trace_notes): Add 'self' argument.
9143
9144 2014-02-19 Tom Tromey <tromey@redhat.com>
9145
9146 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9147 argument.
9148 (target_set_trace_buffer_size): Add argument.
9149 * target.c (update_current_target): Update.
9150 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9151
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9153
9154 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9155 argument.
9156 (target_set_circular_trace_buffer): Add argument.
9157 * target.c (update_current_target): Update.
9158 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9159 argument.
9160
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9162
9163 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9164 argument.
9165 (target_set_disconnected_tracing): Add argument.
9166 * target.c (update_current_target): Update.
9167 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9168
9169 2014-02-19 Tom Tromey <tromey@redhat.com>
9170
9171 * target.h (struct target_ops)
9172 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9173 (target_get_min_fast_tracepoint_insn_len): Add argument.
9174 * target.c (update_current_target): Update.
9175 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9176 argument.
9177
9178 2014-02-19 Tom Tromey <tromey@redhat.com>
9179
9180 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9181 argument.
9182 (target_get_raw_trace_data): Add argument.
9183 * target.c (update_current_target): Update.
9184 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9185
9186 2014-02-19 Tom Tromey <tromey@redhat.com>
9187
9188 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9189 Add argument.
9190 (target_upload_trace_state_variables): Add argument.
9191 * target.c (update_current_target): Update.
9192 * remote.c (remote_upload_trace_state_variables): Add 'self'
9193 argument.
9194 (remote_start_remote): Update.
9195
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9197
9198 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9199 argument.
9200 (target_upload_tracepoints): Add argument.
9201 * target.c (update_current_target): Update.
9202 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9203 (remote_start_remote): Update.
9204
9205 2014-02-19 Tom Tromey <tromey@redhat.com>
9206
9207 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9208 (target_save_trace_data): Add argument.
9209 * target.c (update_current_target): Update.
9210 * remote.c (remote_save_trace_data): Add 'self' argument.
9211
9212 2014-02-19 Tom Tromey <tromey@redhat.com>
9213
9214 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9215 argument.
9216 * target.h (struct target_ops)
9217 <to_get_trace_state_variable_value>: Add argument.
9218 (target_get_trace_state_variable_value): Add argument.
9219 * target.c (update_current_target): Update.
9220 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9221 argument.
9222 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9223
9224 2014-02-19 Tom Tromey <tromey@redhat.com>
9225
9226 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9227 * target.h (struct target_ops) <to_trace_find>: Add argument.
9228 (target_trace_find): Add argument.
9229 * target.c (update_current_target): Update.
9230 * remote.c (remote_trace_find): Add 'self' argument.
9231 * ctf.c (ctf_trace_find): Add 'self' argument.
9232
9233 2014-02-19 Tom Tromey <tromey@redhat.com>
9234
9235 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9236 (target_trace_stop): Add argument.
9237 * target.c (update_current_target): Update.
9238 * remote.c (remote_trace_stop): Add 'self' argument.
9239
9240 2014-02-19 Tom Tromey <tromey@redhat.com>
9241
9242 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9243 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9244 argument.
9245 (target_get_tracepoint_status): Add argument.
9246 * target.c (update_current_target): Update.
9247 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9248
9249 2014-02-19 Tom Tromey <tromey@redhat.com>
9250
9251 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9252 * target.h (struct target_ops) <to_get_trace_status>: Add
9253 argument.
9254 (target_get_trace_status): Add argument.
9255 * target.c (update_current_target): Update.
9256 * remote.c (remote_get_trace_status): Add 'self' argument.
9257 (remote_start_remote, remote_can_download_tracepoint): Update.
9258 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9259
9260 2014-02-19 Tom Tromey <tromey@redhat.com>
9261
9262 * target.h (struct target_ops) <to_trace_start>: Add argument.
9263 (target_trace_start): Add argument.
9264 * target.c (update_current_target): Update.
9265 * remote.c (remote_trace_start): Add 'self' argument.
9266
9267 2014-02-19 Tom Tromey <tromey@redhat.com>
9268
9269 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9270 Add argument.
9271 (target_trace_set_readonly_regions): Add argument.
9272 * target.c (update_current_target): Update.
9273 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9274 argument.
9275
9276 2014-02-19 Tom Tromey <tromey@redhat.com>
9277
9278 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9279 argument.
9280 (target_disable_tracepoint): Add argument.
9281 * target.c (update_current_target): Update.
9282 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9283
9284 2014-02-19 Tom Tromey <tromey@redhat.com>
9285
9286 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9287 argument.
9288 (target_enable_tracepoint): Add argument.
9289 * target.c (update_current_target): Update.
9290 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9291
9292 2014-02-19 Tom Tromey <tromey@redhat.com>
9293
9294 * target.h (struct target_ops) <to_download_trace_state_variable>:
9295 Add argument.
9296 (target_download_trace_state_variable): Add argument.
9297 * target.c (update_current_target): Update.
9298 * remote.c (remote_download_trace_state_variable): Add 'self'
9299 argument.
9300
9301 2014-02-19 Tom Tromey <tromey@redhat.com>
9302
9303 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9304 argument.
9305 (target_can_download_tracepoint): Add argument.
9306 * target.c (update_current_target): Update.
9307 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9308
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * target.h (struct target_ops) <to_download_tracepoint>: Add
9312 argument.
9313 (target_download_tracepoint): Add argument.
9314 * target.c (update_current_target): Update.
9315 * remote.c (remote_download_tracepoint): Add 'self' argument.
9316
9317 2014-02-19 Tom Tromey <tromey@redhat.com>
9318
9319 * target.h (struct target_ops) <to_trace_init>: Add argument.
9320 (target_trace_init): Add argument.
9321 * target.c (update_current_target): Update.
9322 * remote.c (remote_trace_init): Add 'self' argument.
9323
9324 2014-02-19 Tom Tromey <tromey@redhat.com>
9325
9326 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9327 * target.c (target_fileio_readlink): Add argument.
9328 * remote.c (remote_hostio_readlink): Add 'self' argument.
9329 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9330
9331 2014-02-19 Tom Tromey <tromey@redhat.com>
9332
9333 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9334 * target.c (target_fileio_unlink): Add argument.
9335 * remote.c (remote_hostio_unlink): Add 'self' argument.
9336 (remote_file_delete): Update.
9337 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9338
9339 2014-02-19 Tom Tromey <tromey@redhat.com>
9340
9341 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9342 * target.c (target_fileio_close): Add argument.
9343 * remote.c (remote_hostio_close): Add 'self' argument.
9344 (remote_hostio_close_cleanup): Update.
9345 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9346 Update.
9347 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9348
9349 2014-02-19 Tom Tromey <tromey@redhat.com>
9350
9351 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9352 * target.c (target_fileio_pread): Add argument.
9353 * remote.c (remote_hostio_pread): Add 'self' argument.
9354 (remote_bfd_iovec_pread, remote_file_get): Update.
9355 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9356
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9358
9359 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9360 * target.c (target_fileio_pwrite): Add argument.
9361 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9362 (remote_file_put): Update.
9363 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9364
9365 2014-02-19 Tom Tromey <tromey@redhat.com>
9366
9367 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9368 * target.c (target_fileio_open): Add argument.
9369 * remote.c (remote_hostio_open): Add 'self' argument.
9370 (remote_bfd_iovec_open): Add 'self' argument.
9371 (remote_file_put): Add 'self' argument.
9372 (remote_file_get): Add 'self' argument.
9373 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9374
9375 2014-02-19 Tom Tromey <tromey@redhat.com>
9376
9377 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9378 Add argument.
9379 (target_can_run_breakpoint_commands): Add argument.
9380 * target.c (update_current_target): Update.
9381 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9382 argument.
9383 (remote_insert_breakpoint): Add 'self' argument.
9384 (remote_insert_hw_breakpoint): Add 'self' argument.
9385 (remote_can_run_breakpoint_commands): Add 'self' argument.
9386
9387 2014-02-19 Tom Tromey <tromey@redhat.com>
9388
9389 * target.h (struct target_ops)
9390 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9391 (target_supports_evaluation_of_breakpoint_conditions): Add
9392 argument.
9393 * target.c (update_current_target): Update.
9394 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9395 argument.
9396 (remote_insert_breakpoint): Add 'self' argument.
9397 (remote_insert_hw_breakpoint): Add 'self' argument.
9398 (remote_supports_cond_breakpoints): Add 'self' argument.
9399
9400 2014-02-19 Tom Tromey <tromey@redhat.com>
9401
9402 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9403 argument.
9404 (target_supports_string_tracing): Add argument.
9405 * target.c (update_current_target): Update.
9406 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9407
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9409
9410 * target.h (struct target_ops)
9411 <to_supports_disable_randomization>: Add argument.
9412 * target.c (find_default_supports_disable_randomization): Add
9413 argument.
9414 (target_supports_disable_randomization): Add argument.
9415 (find_default_supports_disable_randomization): Add 'self'
9416 argument.
9417 * remote.c (extended_remote_supports_disable_randomization): Add
9418 'self' argument.
9419 (remote_supports_disable_randomization): Add 'self' argument.
9420 (extended_remote_create_inferior): Update.
9421 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9422 'self' argument.
9423
9424 2014-02-19 Tom Tromey <tromey@redhat.com>
9425
9426 * target.h (struct target_ops)
9427 <to_supports_enable_disable_tracepoint>: Add argument.
9428 (target_supports_enable_disable_tracepoint): Add argument.
9429 * target.c (update_current_target): Update.
9430 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9431 argument.
9432
9433 2014-02-19 Tom Tromey <tromey@redhat.com>
9434
9435 * target.h (struct target_ops) <to_supports_multi_process>: Add
9436 argument.
9437 (target_supports_multi_process): Add argument.
9438 * target.c (update_current_target): Update.
9439 * remote.c (remote_supports_multi_process): Add 'self' argument.
9440 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9441 argument.
9442 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9443 argument.
9444
9445 2014-02-19 Tom Tromey <tromey@redhat.com>
9446
9447 * target.h (struct target_ops) <to_execution_direction>: Add
9448 argument.
9449 (target_execution_direction): Add argument.
9450 * target.c (default_execution_direction): Add 'self' argument.
9451 * record-full.c (record_full_execution_direction): Add 'self'
9452 argument.
9453
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9455
9456 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9457 argument.
9458 (target_can_execute_reverse): Add argument.
9459 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9460 * record-full.c (record_full_can_execute_reverse): Add 'self'
9461 argument.
9462 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9463 argument.
9464
9465 2014-02-19 Tom Tromey <tromey@redhat.com>
9466
9467 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9468 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9469 argument.
9470 (target_get_ada_task_ptid): Add argument.
9471 * target.c (update_current_target): Update.
9472 (default_get_ada_task_ptid): Add 'self' argument.
9473 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9474 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9475 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9476 argument.
9477 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9478 argument.
9479 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9480 argument.
9481 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9482 argument.
9483 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9484 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9485 argument.
9486
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9488
9489 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9490 (target_goto_bookmark): Add argument.
9491 * target.c (dummy_goto_bookmark): Add 'self' argument.
9492 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9493
9494 2014-02-19 Tom Tromey <tromey@redhat.com>
9495
9496 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9497 (target_get_bookmark): Add argument.
9498 * target.c (dummy_get_bookmark): Add 'self' argument.
9499 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9500
9501 2014-02-19 Tom Tromey <tromey@redhat.com>
9502
9503 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9504 argument.
9505 (target_make_corefile_notes): Add argument.
9506 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9507 * procfs.c (procfs_make_note_section): Add 'self' argument.
9508 (procfs_make_note_section): Add 'self' argument.
9509 (procfs_make_note_section): Add 'self' argument.
9510 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9511 argument.
9512 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9513 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9514 * exec.c (exec_make_note_section): Add 'self' argument.
9515 (exec_make_note_section): Add 'self' argument.
9516
9517 2014-02-19 Tom Tromey <tromey@redhat.com>
9518
9519 * target.h (struct target_ops) <to_find_memory_regions>: Add
9520 argument.
9521 (target_find_memory_regions): Add argument.
9522 * target.c (dummy_find_memory_regions): Add 'self' argument.
9523 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9524 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9525 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9526 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9527 * exec. (exec_do_find_memory_regions): New global.
9528 (exec_set_find_memory_regions): Rewrite.
9529 (exec_find_memory_regions): New function.
9530 (init_exec_ops): Use exec_find_memory_regions.
9531
9532 2014-02-19 Tom Tromey <tromey@redhat.com>
9533
9534 * target.h (struct target_ops) <to_supports_non_stop>: Add
9535 argument.
9536 * target.c (find_default_supports_non_stop): Add argument.
9537 (target_supports_non_stop): Add argument.
9538 (find_default_supports_non_stop): Add 'self' argument.
9539 * remote.c (remote_supports_non_stop): Add 'self' argument.
9540 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9541
9542 2014-02-19 Tom Tromey <tromey@redhat.com>
9543
9544 * target.h (struct target_ops) <to_log_command>: Add argument.
9545 (target_log_command): Add argument.
9546 * serial.h (serial_log_command): Add 'self' argument.
9547 * serial.c (serial_log_command): Add 'self' argument.
9548
9549 2014-02-19 Tom Tromey <tromey@redhat.com>
9550
9551 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9552 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9553 argument.
9554 (target_pid_to_exec_file): Add argument.
9555 * target.c (debug_to_pid_to_exec_file): Add argument.
9556 (update_current_target): Update.
9557 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9558 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9559 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9560 (linux_handle_extended_wait): Update.
9561 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9562 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9563 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9564 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9565
9566 2014-02-19 Tom Tromey <tromey@redhat.com>
9567
9568 * target.h (struct target_ops) <to_rcmd>: Add argument.
9569 (target_rcmd): Add argument.
9570 * target.c (debug_to_rcmd): Add argument.
9571 (update_current_target, do_monitor_command): Update.
9572 * remote.c (remote_rcmd): Add 'self' argument.
9573 * monitor.c (monitor_rcmd): Add 'self' argument.
9574
9575 2014-02-19 Tom Tromey <tromey@redhat.com>
9576
9577 * windows-nat.c (windows_stop): Add 'self' argument.
9578 * target.h (struct target_ops) <to_stop>: Add argument.
9579 * target.c (target_stop): Add argument.
9580 (debug_to_stop): Add argument.
9581 (update_current_target): Update.
9582 * remote.c (remote_stop): Add 'self' argument.
9583 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9584 (gdbsim_cntrl_c): Update.
9585 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9586 * procfs.c (procfs_stop): Add 'self' argument.
9587 * nto-procfs.c (procfs_stop): Add 'self' argument.
9588 * monitor.c (monitor_stop): Add 'self' argument.
9589 (monitor_open): Update.
9590 * linux-nat.c (linux_nat_stop): Add argument.
9591 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9592 * gnu-nat.c (gnu_stop): Add 'self' argument.
9593 * darwin-nat.c (darwin_stop): Add 'self' argument.
9594
9595 2014-02-19 Tom Tromey <tromey@redhat.com>
9596
9597 * target.h (struct target_ops) <to_thread_name>: Add argument.
9598 * target.c (target_thread_name): Add argument.
9599 (update_current_target): Update.
9600 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9601
9602 2014-02-19 Tom Tromey <tromey@redhat.com>
9603
9604 * target.h (struct target_ops) <to_extra_thread_info>: Add
9605 argument.
9606 (target_extra_thread_info): Add argument.
9607 * target.c (update_current_target): Update.
9608 * remote.c (remote_threads_extra_info): Add 'self' argument.
9609 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9610 argument.
9611 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9612 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9613 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9614 argument.
9615 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9616 argument.
9617 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9618 argument.
9619 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9620 argument.
9621
9622 2014-02-19 Tom Tromey <tromey@redhat.com>
9623
9624 * target.h (struct target_ops) <to_program_signals>: Add argument.
9625 * target.c (target_program_signals): Add argument.
9626 * remote.c (remote_program_signals): Add 'self' argument.
9627
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9629
9630 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9631 * target.c (target_pass_signals): Add argument.
9632 * remote.c (remote_pass_signals): Add 'self' argument.
9633 (remote_start_remote): Update.
9634 * procfs.c (procfs_pass_signals): Add 'self' argument.
9635 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9636 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9637 (linux_nat_create_inferior, linux_nat_attach): Update.
9638
9639 2014-02-19 Tom Tromey <tromey@redhat.com>
9640
9641 * windows-nat.c (windows_can_run): Add 'self' argument.
9642 * target.h (struct target_ops) <to_can_run>: Add argument.
9643 (target_can_run): Add argument.
9644 * target.c (debug_to_can_run): Add argument.
9645 (update_current_target): Update.
9646 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9647 * inf-child.c (inf_child_can_run): Add 'self' argument.
9648 * go32-nat.c (go32_can_run): Add 'self' argument.
9649
9650 2014-02-19 Tom Tromey <tromey@redhat.com>
9651
9652 * target.h (struct target_ops) <to_has_exited>: Add argument.
9653 (target_has_exited): Add argument.
9654 * target.c (debug_to_has_exited): Add argument.
9655 (update_current_target): Update.
9656
9657 2014-02-19 Tom Tromey <tromey@redhat.com>
9658
9659 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9660 argument.
9661 (target_set_syscall_catchpoint): Add argument.
9662 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9663 argument.
9664 * target.c (update_current_target): Update.
9665
9666 2014-02-19 Tom Tromey <tromey@redhat.com>
9667
9668 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9669 argument.
9670 (target_remove_exec_catchpoint): Add argument.
9671 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9672 (update_current_target): Update.
9673 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9674 argument.
9675
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9677
9678 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9679 argument.
9680 (target_insert_exec_catchpoint): Add argument.
9681 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9682 (update_current_target): Update.
9683 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9684 argument.
9685
9686 2014-02-19 Tom Tromey <tromey@redhat.com>
9687
9688 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9689 argument.
9690 (target_remove_vfork_catchpoint): Add argument.
9691 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9692 (update_current_target): Update.
9693 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9694 argument.
9695
9696 2014-02-19 Tom Tromey <tromey@redhat.com>
9697
9698 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9699 argument.
9700 (target_insert_vfork_catchpoint): Add argument.
9701 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9702 (update_current_target): Update.
9703 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9704 argument.
9705
9706 2014-02-19 Tom Tromey <tromey@redhat.com>
9707
9708 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9709 argument.
9710 (target_remove_fork_catchpoint): Add argument.
9711 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9712 (update_current_target): Update.
9713 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9714 argument.
9715
9716 2014-02-19 Tom Tromey <tromey@redhat.com>
9717
9718 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9719 argument.
9720 (target_insert_fork_catchpoint): Add argument.
9721 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9722 (update_current_target): Update.
9723 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9724 argument.
9725
9726 2014-02-19 Tom Tromey <tromey@redhat.com>
9727
9728 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9729 argument.
9730 (target_post_startup_inferior): Add argument.
9731 * target.c (debug_to_post_startup_inferior): Add argument.
9732 (update_current_target): Update.
9733 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9734 argument.
9735 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9736 argument.
9737 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9738 argument.
9739 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9740 argument.
9741 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9742 'self' argument.
9743 (super_post_startup_inferior): Likewise.
9744 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9745 'self' argument.
9746 (super_post_startup_inferior): Likewise.
9747 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9748 Add 'self' argument.
9749 (super_post_startup_inferior): Likewise.
9750
9751 2014-02-19 Tom Tromey <tromey@redhat.com>
9752
9753 * target.h (struct target_ops) <to_load>: Add argument.
9754 * target.c (target_load): Add argument.
9755 (debug_to_load): Add argument.
9756 (update_current_target): Update.
9757 * remote.c (remote_load): Add 'self' argument.
9758 * remote-sim.c (gdbsim_load): Add 'self' argument.
9759 * remote-mips.c (mips_load): Add 'self' argument.
9760 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9761 * monitor.c (monitor_load): Add 'self' argument.
9762 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9763
9764 2014-02-19 Tom Tromey <tromey@redhat.com>
9765
9766 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9767 (target_terminal_info): Add argument.
9768 * target.c (debug_to_terminal_info): Add argument.
9769 (default_terminal_info): Likewise.
9770 * inflow.c (child_terminal_info): Add 'self' argument.
9771 * inferior.h (child_terminal_info): Add 'self' argument.
9772 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9773
9774 2014-02-19 Tom Tromey <tromey@redhat.com>
9775
9776 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9777 argument.
9778 (target_terminal_save_ours): Add argument.
9779 * target.c (debug_to_terminal_save_ours): Add argument.
9780 (update_current_target): Update.
9781 * inflow.c (terminal_save_ours): Add 'self' argument.
9782 * inferior.h (terminal_save_ours): Add 'self' argument.
9783
9784 2014-02-19 Tom Tromey <tromey@redhat.com>
9785
9786 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9787 (target_terminal_ours): Add argument.
9788 * target.c (debug_to_terminal_ours): Add argument.
9789 (update_current_target): Update.
9790 * remote.c (remote_terminal_ours): Add 'self' argument.
9791 (remote_close): Update.
9792 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9793 * inflow.c (terminal_ours): Add 'self' argument.
9794 * inferior.h (terminal_ours): Add 'self' argument.
9795 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9796
9797 2014-02-19 Pedro Alves <palves@redhat.com>
9798 Tom Tromey <tromey@redhat.com>
9799
9800 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9801 argument.
9802 (target_terminal_ours_for_output): Add argument.
9803 * target.c (debug_to_terminal_ours_for_output): Add argument.
9804 (update_current_target): Update.
9805 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9806 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9807 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9808
9809 2014-02-19 Tom Tromey <tromey@redhat.com>
9810
9811 * target.h (struct target_ops) <to_terminal_inferior>: Add
9812 argument.
9813 * target.c (target_terminal_inferior): Add argument.
9814 (update_current_target): Update.
9815 * remote.c (remote_terminal_inferior): Add 'self' argument.
9816 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9817 * inflow.c (terminal_inferior): Add 'self' argument.
9818 * inferior.h (terminal_inferior): Add 'self' argument.
9819 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9820 (go32_terminal_inferior): Add 'self' argument.
9821
9822 2014-02-19 Tom Tromey <tromey@redhat.com>
9823
9824 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9825 (target_terminal_init): Add argument.
9826 * target.c (debug_to_terminal_init): Add argument.
9827 (update_current_target): Update.
9828 * inflow.c (terminal_init_inferior): Add 'self' argument.
9829 * inferior.h (terminal_init_inferior): Add 'self' argument.
9830 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9831 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9832
9833 2014-02-19 Tom Tromey <tromey@redhat.com>
9834
9835 * target.h (struct target_ops)
9836 <to_can_accel_watchpoint_condition>: Add argument.
9837 (target_can_accel_watchpoint_condition): Add argument.
9838 * target.c (debug_to_can_accel_watchpoint_condition): Add
9839 argument.
9840 (update_current_target): Update.
9841 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9842 'self' argument.
9843
9844 2014-02-19 Tom Tromey <tromey@redhat.com>
9845
9846 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9847 Add argument.
9848 (target_region_ok_for_hw_watchpoint): Add argument.
9849 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9850 (default_region_ok_for_hw_watchpoint): Add argument.
9851 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9852 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9853 argument.
9854 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9855 argument.
9856 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9857 argument.
9858 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9859 'self' argument.
9860 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9861 'self' argument.
9862 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9863 'self' argument.
9864 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9865 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9866 'self' argument.
9867 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9868 Add 'self' argument.
9869
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9873 argument.
9874 (target_insert_watchpoint): Add argument.
9875 * target.c (debug_to_insert_watchpoint): Add argument.
9876 (update_current_target): Update.
9877 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9878 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9879 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9880 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9881 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9882 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9883 argument.
9884 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9885 (procfs_insert_hw_watchpoint): Add 'self' argument.
9886 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9887 argument.
9888 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9889 argument.
9890 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9891 argument.
9892 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9893 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9894 argument.
9895 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9896 'self' argument.
9897
9898 2014-02-19 Tom Tromey <tromey@redhat.com>
9899
9900 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9901 argument.
9902 (target_remove_watchpoint): Add argument.
9903 * target.c (debug_to_remove_watchpoint): Add argument.
9904 (update_current_target): Update.
9905 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9906 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9907 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9908 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9909 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9910 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9911 argument.
9912 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9913 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9914 argument.
9915 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9916 argument.
9917 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9918 argument.
9919 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9920 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9921 argument.
9922 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9923 'self' argument.
9924
9925 2014-02-19 Tom Tromey <tromey@redhat.com>
9926
9927 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9928 argument.
9929 (target_remove_hw_breakpoint): Add argument.
9930 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9931 (update_current_target): Update.
9932 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9933 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9934 argument.
9935 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9936 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9937 argument.
9938 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9939 'self' argument.
9940
9941 2014-02-19 Tom Tromey <tromey@redhat.com>
9942
9943 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9944 argument.
9945 (target_insert_hw_breakpoint): Add argument.
9946 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9947 (update_current_target): Update.
9948 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9949 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9950 argument.
9951 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9952 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9953 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9954 argument.
9955 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9956 'self' argument.
9957
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9959
9960 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9961 argument.
9962 (target_can_use_hardware_watchpoint): Add argument.
9963 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9964 (update_current_target): Update.
9965 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9966 argument.
9967 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9968 argument.
9969 * remote.c (remote_check_watch_resources): Add 'self' argument.
9970 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9971 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9972 argument.
9973 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9974 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9975 argument.
9976 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9977 argument.
9978 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9979 argument.
9980 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9981 argument.
9982 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9983 argument.
9984 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9985 argument.
9986 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9987 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9988 argument.
9989 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9990 'self' argument.
9991
9992 2014-02-19 Tom Tromey <tromey@redhat.com>
9993
9994 * target.h (struct target_ops) <to_post_attach>: Add argument.
9995 (target_post_attach): Add argument.
9996 * target.c (debug_to_post_attach): Add argument.
9997 (update_current_target): Update.
9998 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9999 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10000 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10001 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10002 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10003
10004 2014-02-19 Tom Tromey <tromey@redhat.com>
10005
10006 * windows-nat.c (windows_close): Add 'self' argument.
10007 * tracepoint.c (tfile_close): Add 'self' argument.
10008 * target.h (struct target_ops) <to_close>: Add argument.
10009 * target.c (target_close): Add argument.
10010 (update_current_target): Update.
10011 * remote.c (remote_close): Add 'self' argument.
10012 * remote-sim.c (gdbsim_close): Add 'self' argument.
10013 * remote-mips.c (mips_close): Add 'self' argument.
10014 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10015 * record-full.c (record_full_close): Add 'self' argument.
10016 * record-btrace.c (record_btrace_close): Add 'self' argument.
10017 * monitor.h (monitor_close): Add 'self' argument.
10018 * monitor.c (monitor_close): Add 'self' argument.
10019 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10020 * linux-nat.c (linux_nat_close): Add argument.
10021 * go32-nat.c (go32_close): Add 'self' argument.
10022 * exec.c (exec_close_1): Add 'self' argument.
10023 * ctf.c (ctf_close): Add 'self' argument.
10024 * corelow.c (core_close): Add 'self' argument.
10025 (core_close_cleanup): Update.
10026 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10027 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10028
10029 2014-02-19 Tom Tromey <tromey@redhat.com>
10030
10031 * remote.c (remote_load): New function.
10032 (init_remote_ops): Use it.
10033
10034 2014-02-19 Tom Tromey <tromey@redhat.com>
10035
10036 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10037 argument.
10038 * common/linux-btrace.h (linux_supports_btrace): Update.
10039 * remote.c (remote_supports_btrace): Add "self" argument.
10040 * target-delegates.c: Rebuild.
10041 * target.c (target_supports_btrace): Remove.
10042 * target.h (struct target_ops) <to_supports_btrace>: Add
10043 target_ops argument.
10044 (target_supports_btrace): New define.
10045
10046 2014-02-19 Tom Tromey <tromey@redhat.com>
10047
10048 * record-full.c (record_full_beneath_to_resume_ops)
10049 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10050 (record_full_beneath_to_wait)
10051 (record_full_beneath_to_store_registers_ops)
10052 (record_full_beneath_to_store_registers)
10053 (record_full_beneath_to_xfer_partial_ops)
10054 (record_full_beneath_to_xfer_partial)
10055 (record_full_beneath_to_insert_breakpoint_ops)
10056 (record_full_beneath_to_insert_breakpoint)
10057 (record_full_beneath_to_remove_breakpoint_ops)
10058 (record_full_beneath_to_remove_breakpoint)
10059 (record_full_beneath_to_stopped_by_watchpoint)
10060 (record_full_beneath_to_stopped_data_address)
10061 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10062 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10063 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10064 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10065 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10066 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10067 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10068 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10069 (record_full_resume, record_full_wait_1)
10070 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10071 (record_full_store_registers, record_full_xfer_partial)
10072 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10073 (record_full_async, record_full_core_xfer_partial): Use target
10074 delegation.
10075 * target-delegates.c: Rebuild.
10076 * target.c (current_xfer_partial): Remove.
10077 (update_current_target): Do not INHERIT or de_fault
10078 to_insert_breakpoint, to_remove_breakpoint,
10079 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10080 to_is_async_p, to_async. Do not set to_xfer_partial field.
10081 (default_xfer_partial): Simplify.
10082 (current_xfer_partial): Remove.
10083 (target_wait, target_resume): Simplify.
10084 (find_default_can_async_p, find_default_is_async_p): Update.
10085 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10086 to_xfer_partial, to_stopped_by_watchpoint,
10087 to_stopped_data_address.
10088 (target_store_registers): Simplify.
10089 (forward_target_remove_breakpoint)
10090 (forward_target_insert_breakpoint): Remove.
10091 (target_remove_breakpoint, target_insert_breakpoint)
10092 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10093 * target.h (struct target_ops) <to_resume, to_wait,
10094 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10095 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10096 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10097 markup.
10098 (forward_target_remove_breakpoint)
10099 (forward_target_insert_breakpoint): Remove.
10100 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10101 directly.
10102 (record_btrace_insert_breakpoint): Delegate directly.
10103
10104 2014-02-19 Tom Tromey <tromey@redhat.com>
10105
10106 PR build/7701:
10107 * target-delegates.c: New file.
10108 * target.c: Include target-delegates.c.
10109 (init_dummy_target): Call install_dummy_methods.
10110 (complete_target_initialization): Call install_delegators.
10111 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10112 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10113 * make-target-delegates: New file.
10114
10115 2014-02-19 Tom Tromey <tromey@redhat.com>
10116
10117 * record.c (find_record_target): Use find_target_at.
10118 * target.c (find_target_at): New function.
10119 * target.h (find_target_at): Declare.
10120
10121 2014-02-19 Tom Tromey <tromey@redhat.com>
10122
10123 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10124 Add 'ops' argument.
10125 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10126 'ops' argument.
10127 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10128 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10129 'ops' argument.
10130 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10131 argument.
10132 * linux-nat.c (save_sigtrap): Update.
10133 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10134 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10135 (linux_nat_close): Update.
10136 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10137 argument.
10138 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10139 argument.
10140 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10141 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10142 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10143 (tmp_to_async): Add 'ops' argument.
10144 (record_full_stopped_by_watchpoint, record_full_async)
10145 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10146 argument.
10147 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10148 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10149 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10150 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10151 (remote_is_async_p, remote_async): Add 'ops' argument.
10152 (remote_stopped_data_address): Update.
10153 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10154 * target.c (update_current_target)
10155 (find_default_can_async_p, find_default_is_async_p): Update.
10156 (init_dummy_target): Update.
10157 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10158 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10159 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10160 (target_can_async_p, target_is_async_p, target_async)
10161 (target_stopped_by_watchpoint): Update.
10162
10163 2014-02-19 Yao Qi <yao@codesourcery.com>
10164
10165 PR gdb/16220
10166 * gdbarch.sh: Remove startup_gdbarch.
10167 * gdbarch.c: Regenerated.
10168 * gdbarch.h: Likewise.
10169
10170 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10171
10172 * rl78-tdep.c (rl78_g10_register_name): New function.
10173 (rl78_return_value): Add g10 support.
10174 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10175 g10.
10176
10177 2014-02-17 Doug Evans <xdje42@gmail.com>
10178
10179 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10180 (SUBDIR_GUILE_SRCS): Ditto.
10181 (scm-gsmob.o): Ditto.
10182
10183 2014-02-17 Yao Qi <yao@codesourcery.com>
10184
10185 * gnu-nat.c (ILL_RPC): Declare defined function.
10186
10187 2014-02-17 Yao Qi <yao@codesourcery.com>
10188
10189 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10190 mach_msg_type_number_t.
10191 (gnu_write_inferior): Likewise.
10192
10193 2014-02-17 Yao Qi <yao@codesourcery.com>
10194
10195 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10196 in format string.
10197 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10198 (inf_validate_procs, inf_signal): Likewise.
10199 (S_exception_raise_request): Likewise.
10200 (do_mach_notify_dead_name): Likewise.
10201 (steal_exc_port): Likewise.
10202 (gnu_read_inferior): Change 'copy_count''s type to
10203 mach_msg_type_number_t.
10204 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10205 format string.
10206
10207 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10208
10209 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10210 flag. Adjust all users; in particular...
10211 (gnu_wait): ..., don't decrement its value in here...
10212 (gnu_create_inferior): ..., and instead set the flag in here,
10213 around the startup_inferior call, and call that one with
10214 START_INFERIOR_TRAPS_EXPECTED.
10215
10216 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10217 (ILL_RPC): ... new macro.
10218 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10219 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10220 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10221 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10222 functions with ILL_RPC macro.
10223 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10224 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10225 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10226 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10227 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10228 (S_proc_getlogin_reply, S_proc_getsid_reply)
10229 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10230 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10231 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10232 (S_proc_getnports_reply, S_proc_is_important_reply)
10233 (S_proc_get_code_reply): New stub functions, generated with
10234 ILL_RPC macro.
10235
10236 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10237 collected the type check structures.
10238
10239 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10240
10241 2014-02-14 Doug Evans <dje@google.com>
10242
10243 * target.c (target_write_partial): Fix result type.
10244
10245 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10246
10247 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10248 the proper offsets to access fpregset_t.
10249
10250 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10251
10252 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10253 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10254 * h8300-tdep.c (setmachinelist): Remove global.
10255 * hppa-tdep.c (hppa_sigtramp): Remove global.
10256 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10257 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10258 * ravenscar-thread.c (update_target_observer): Remove global.
10259 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10260
10261 2014-02-12 Tom Tromey <tromey@redhat.com>
10262
10263 * common/rsp-low.c: Update comments.
10264 * common/rsp-low.h: Update comments.
10265
10266 2014-02-12 Tom Tromey <tromey@redhat.com>
10267
10268 * common/rsp-low.c (convert_ascii_to_int): Remove.
10269 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10270
10271 2014-02-12 Tom Tromey <tromey@redhat.com>
10272
10273 * common/rsp-low.h (unhexify): Don't declare.
10274 * common/rsp-low.c (unhexify): Remove.
10275
10276 2014-02-12 Tom Tromey <tromey@redhat.com>
10277
10278 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10279 * common/rsp-low.c (convert_int_to_ascii): Remove.
10280
10281 2014-02-12 Tom Tromey <tromey@redhat.com>
10282
10283 * common/rsp-low.h (hexify): Don't declare.
10284 * common/rsp-low.c (hexify): Remove.
10285
10286 2014-02-12 Tom Tromey <tromey@redhat.com>
10287
10288 * common/rsp-low.c (hexify): Never take strlen of argument.
10289
10290 2014-02-12 Tom Tromey <tromey@redhat.com>
10291
10292 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10293 * remote.c (extended_remote_run, remote_rcmd)
10294 (remote_download_trace_state_variable, remote_save_trace_data)
10295 (remote_set_trace_notes): Update.
10296 * tracepoint.c (encode_source_string, tfile_write_status)
10297 (tfile_write_uploaded_tsv): Update.
10298
10299 2014-02-12 Tom Tromey <tromey@redhat.com>
10300
10301 * tracepoint.c: Include rsp-low.h.
10302 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10303 * remote.c: Include rsp-low.h.
10304 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10305 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10306 (remote_unescape_input): Move to common/rsp-low.c.
10307 * common/rsp-low.h: New file.
10308 * common/rsp-low.c: New file.
10309 * Makefile.in (SFILES): Add common/rsp-low.c.
10310 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10311 (COMMON_OBS): Add rsp-low.o.
10312 (rsp-low.o): New target.
10313
10314 2014-02-12 Tom Tromey <tromey@redhat.com>
10315
10316 * utils.h: Include print-utils.h.
10317 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10318 (int_string, core_addr_to_string, core_addr_to_string_nz)
10319 (hex_string, hex_string_custom): Don't declare.
10320 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10321 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10322 (hex_string_custom, int_string, core_addr_to_string)
10323 (core_addr_to_string_nz, host_address_to_string): Move to
10324 common/print-utils.c.
10325 * common/print-utils.h: New file.
10326 * common/print-utils.c: New file
10327 * Makefile.in (SFILES): Add common/print-utils.c.
10328 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10329 (COMMON_OBS): Add print-utils.o.
10330 (print-utils.o): New target.
10331
10332 2014-02-12 Tom Tromey <tromey@redhat.com>
10333
10334 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10335
10336 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10337
10338 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10339
10340 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10341
10342 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10343 if a PT_IO ptrace request returns sucessfully but indicates that 0
10344 bytes were transferred.
10345
10346 2014-02-12 Pedro Alves <palves@redhat.com>
10347 Kevin Buettner <kevinb@redhat.com>
10348
10349 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10350 TYPE_INSTANCE_FLAG_CODE_SPACE.
10351
10352 2014-02-12 Pedro Alves <palves@redhat.com>
10353
10354 * h8300-tdep.c (pseudo_from_raw_register)
10355 (raw_from_pseudo_register): New functions.
10356 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10357 them.
10358
10359 2014-02-12 Pedro Alves <palves@redhat.com>
10360
10361 * h8300-tdep.c (h8300_register_sim_regno): New function.
10362 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10363 gdbarch_register_sim_regno hook.
10364
10365 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10366
10367 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10368
10369 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10370
10371 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10372
10373 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10374
10375 * obsd-tdep.h (obsd_init_abi): New prototype.
10376 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10377 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10378 (obsd_init_abi): New functions.
10379 * i386obsd-tdep.c: Include "obsd-tdep.h".
10380 (i386obsd_init_abi): Call obsd_init_abi.
10381 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10382 (amd64obsd_init_abi): Call obsd_init_abi.
10383 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10384 obsd-tdep.c to gdb_target_obs.
10385
10386 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10387
10388 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10389 double float arguments to 16-byte in the argument slots.
10390
10391 2014-02-11 Doug Evans <xdje42@gmail.com>
10392
10393 * configure.ac: Don't crash if pkg-config is not found and guile
10394 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10395 in guile checks.
10396 * configure: Regenerate.
10397
10398 2014-02-11 Yao Qi <yao@codesourcery.com>
10399
10400 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10401 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10402 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10403 * gnu-nat.c (gnu_xfer_memory): Likewise.
10404 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10405 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10406 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10407 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10408
10409 2014-02-11 Yao Qi <yao@codesourcery.com>
10410
10411 * target.h (enum target_xfer_error): Rename to ...
10412 (enum target_xfer_status): ... it. New. All users updated.
10413 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10414 New.
10415 (TARGET_XFER_STATUS_ERROR_P): New macro.
10416 (target_xfer_error_to_string): Remove declaration.
10417 (target_xfer_status_to_string): Declare.
10418 (target_xfer_partial_ftype): Adjust it.
10419 (struct target_ops) <to_xfer_partial>: Return
10420 target_xfer_status. Add argument xfered_len. Update
10421 comments.
10422 * target.c (target_xfer_error_to_string): Rename to ...
10423 (target_xfer_status_to_string): ... it. New. All callers
10424 updated.
10425 (target_read_live_memory): Likewise. Call target_xfer_partial
10426 instead of target_read.
10427 (memory_xfer_live_readonly_partial): Return
10428 target_xfer_status. Add argument xfered_len.
10429 (raw_memory_xfer_partial): Likewise.
10430 (memory_xfer_partial_1): Likewise.
10431 (memory_xfer_partial): Likewise.
10432 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10433 properly. Update debug message.
10434 (default_xfer_partial, current_xfer_partial): Likewise.
10435 (target_write_partial): Likewise.
10436 (target_read_partial): Likewise. All callers updated.
10437 (read_whatever_is_readable): Likewise.
10438 (target_write_with_progress): Likewise.
10439 (target_read_alloc_1): Likewise.
10440
10441 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10442 * auxv.c (procfs_xfer_auxv): Likewise.
10443 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10444 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10445 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10446 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10447 * corefile.c (read_memory): Adjust.
10448 * corelow.c (core_xfer_partial): Likewise.
10449 * ctf.c (ctf_xfer_partial): Likewise.
10450 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10451 updated.
10452 (darwin_xfer_partial): Likewise.
10453 * exec.c (section_table_xfer_memory_partial): Likewise. All
10454 callers updated.
10455 (exec_xfer_partial): Likewise.
10456 * exec.h (section_table_xfer_memory_partial): Update
10457 declaration.
10458 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10459 negative.
10460 (gnu_xfer_partial): Likewise.
10461 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10462 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10463 (ia64_hpux_xfer_solib_got): Likewise.
10464 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10465 type of 'partial_len' to ULONGEST.
10466 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10467 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10468 (linux_nat_xfer_partial): Likewise.
10469 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10470 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10471 * monitor.c (monitor_xfer_memory): Likewise.
10472 (monitor_xfer_partial): Likewise.
10473 * procfs.c (procfs_xfer_partial): Likewise.
10474 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10475 * record-full.c (record_full_xfer_partial): Likewise.
10476 (record_full_core_xfer_partial): Likewise.
10477 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10478 (gdbsim_xfer_partial): Likewise.
10479 * remote.c (remote_write_bytes_aux): Likewise. All callers
10480 updated.
10481 (remote_write_bytes, remote_read_bytes): Likewise. All
10482 callers updated.
10483 (remote_flash_erase): Likewise. All callers updated.
10484 (remote_write_qxfer): Likewise. All callers updated.
10485 (remote_read_qxfer): Likewise. All callers updated.
10486 (remote_xfer_partial): Likewise.
10487 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10488 (rs6000_xfer_shared_libraries): Likewise.
10489 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10490 (sol_thread_xfer_partial): Likewise.
10491 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10492 (sparc_xfer_partial): Likewise.
10493 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10494 updated.
10495 (spu_xfer_partial): Likewise.
10496 * spu-multiarch.c (spu_xfer_partial): Likewise.
10497 * tracepoint.c (tfile_xfer_partial): Likewise.
10498 * windows-nat.c (windows_xfer_memory): Likewise.
10499 (windows_xfer_shared_libraries): Likewise.
10500 (windows_xfer_partial): Likewise.
10501 * valprint.c: Replace 'target_xfer_error' with
10502 'target_xfer_status' in comments.
10503
10504 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10505
10506 Checked in by Joel Brobecker <brobecker@adacore.com>.
10507 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10508
10509 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10510
10511 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10512 function parameters.
10513
10514 2014-02-10 Will Newton <will.newton@linaro.org>
10515
10516 * elfread.c (elf_rel_plt_read): Look for a .got section if
10517 looking up .got.plt fails.
10518 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10519 on address passed to elf_gnu_ifunc_record_cache.
10520 (elf_gnu_ifunc_resolve_addr): Likewise.
10521 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10522
10523 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10524
10525 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10526 (X_RETTURN): New macro.
10527 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10528
10529 * sparc64-tdep.c (sparc64_init_abi): Hook
10530 sparc_in_function_epilogue_p.
10531
10532 2014-02-10 Gary Benson <gbenson@redhat.com>
10533
10534 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10535 Rename name_matcher to symbol_matcher.
10536
10537 2014-02-10 Gary Benson <gbenson@redhat.com>
10538
10539 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10540 Use expand_symtabs_file_matcher_ftype and
10541 expand_symtabs_symbol_matcher_ftype.
10542
10543 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10544
10545 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10546 (struct ada_symbol_cache): New.
10547 (ada_free_symbol_cache): Forward declare.
10548 (struct ada_pspace_data): New.
10549 (ada_pspace_data_handle): New static global.
10550 (get_ada_pspace_data, ada_pspace_data_cleanup)
10551 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10552 (cache_space, cache): Delete, now folded inside struct
10553 ada_pspace_data.
10554 (ada_get_symbol_cache): New function.
10555 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10556 implementation.
10557 (_initialize_ada_language): Remove initialization of cache_space.
10558 Move call to observer_attach_inferior_exit up, grouping it
10559 with the other observer registrations inside this function.
10560 Rename command to be more general. Add call to
10561 register_program_space_data_with_cleanup.
10562
10563 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10564
10565 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10566 ada_new_objfile_observer.
10567 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10568 (_initialize_tasks): Update uses of ada_new_objfile_observer
10569 and ada_tasks_normal_stop_observer.
10570
10571 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10572
10573 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10574 returned by the 'Length attribute to integer.
10575
10576 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10577
10578 * ada-lang.c (_initialize_ada_language): Initialize
10579 cache_space obstack.
10580
10581 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10582
10583 * ada-lang.c (HASH_SIZE): New macro.
10584 (struct cache_entry): New type.
10585 (cache_space, cache): New static globals.
10586 (ada_clear_symbol_cache, find_entry): New functions.
10587 (lookup_cached_symbol, cache_symbol): Implement.
10588 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10589 (_initialize_ada_language): Attach ada_new_objfile_observer
10590 and ada_free_objfile_observer.
10591
10592 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10593
10594 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10595 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10596 struct block * parameter.
10597 (ada_lookup_symbol_list_worker): Constify local variable "block".
10598 Remove cast which is no longer necessary.
10599
10600 2014-02-10 Doug Evans <xdje42@gmail.com>
10601
10602 Add Guile as an extension language.
10603 * NEWS: Mention Guile scripting.
10604 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10605 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10606 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10607 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10608 (CLIBS): Add GUILE_LIBS.
10609 (install-guile): New rule.
10610 (guile.o): New rule.
10611 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10612 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10613 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10614 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10615 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10616 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10617 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10618 * configure.ac: New option --with-guile.
10619 * configure: Regenerate.
10620 * config.in: Regenerate.
10621 * auto-load.c: Remove #include "python/python.h". Add #include
10622 "gdb/section-scripts.h".
10623 (source_section_scripts): Handle Guile scripts.
10624 (_initialize_auto_load): Add name of Guile objfile script to
10625 scripts-directory help text.
10626 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10627 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10628 (struct breakpoint): New member scm_bp_object.
10629 * defs.h (enum command_control_type): New value guile_control.
10630 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10631 "extension.h".
10632 (show_user): Update comment.
10633 (_initialize_cli_cmds): Update help text for "show user". Update help
10634 text for max-user-call-depth.
10635 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10636 "extension.h".
10637 (multi_line_command_p): Add guile_control.
10638 (print_command_lines): Handle guile_control.
10639 (execute_control_command, recurse_read_control_structure): Ditto.
10640 (process_next_line): Recognize "guile" commands.
10641 * disasm.c (gdb_disassemble_info): Make non-static.
10642 * disasm.h: #include "dis-asm.h".
10643 (struct gdbarch): Add forward decl.
10644 (gdb_disassemble_info): Declare.
10645 * extension.c: #include "guile/guile.h".
10646 (extension_languages): Add guile.
10647 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10648 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10649 * gdbtypes.c (get_unsigned_type_max): New function.
10650 (get_signed_type_minmax): New function.
10651 * gdbtypes.h (get_unsigned_type_max): Declare.
10652 (get_signed_type_minmax): Declare.
10653 * guile/README: New file.
10654 * guile/guile-internal.h: New file.
10655 * guile/guile.c: New file.
10656 * guile/guile.h: New file.
10657 * guile/scm-arch.c: New file.
10658 * guile/scm-auto-load.c: New file.
10659 * guile/scm-block.c: New file.
10660 * guile/scm-breakpoint.c: New file.
10661 * guile/scm-disasm.c: New file.
10662 * guile/scm-exception.c: New file.
10663 * guile/scm-frame.c: New file.
10664 * guile/scm-gsmob.c: New file.
10665 * guile/scm-iterator.c: New file.
10666 * guile/scm-lazy-string.c: New file.
10667 * guile/scm-math.c: New file.
10668 * guile/scm-objfile.c: New file.
10669 * guile/scm-ports.c: New file.
10670 * guile/scm-pretty-print.c: New file.
10671 * guile/scm-safe-call.c: New file.
10672 * guile/scm-string.c: New file.
10673 * guile/scm-symbol.c: New file.
10674 * guile/scm-symtab.c: New file.
10675 * guile/scm-type.c: New file.
10676 * guile/scm-utils.c: New file.
10677 * guile/scm-value.c: New file.
10678 * guile/lib/gdb.scm: New file.
10679 * guile/lib/gdb/boot.scm: New file.
10680 * guile/lib/gdb/experimental.scm: New file.
10681 * guile/lib/gdb/init.scm: New file.
10682 * guile/lib/gdb/iterator.scm: New file.
10683 * guile/lib/gdb/printing.scm: New file.
10684 * guile/lib/gdb/types.scm: New file.
10685 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10686 (VPATH): Add $(GUILE_SRCDIR).
10687 (GUILE_DIR): New variable.
10688 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10689 (all): Add stamp-guile dependency.
10690 (stamp-guile): New rule.
10691 (clean-guile, install-guile, uninstall-guile): New rules.
10692 (install-only): Add install-guile dependency.
10693 (uninstall): Add uninstall-guile dependency.
10694 (clean): Add clean-guile dependency.
10695
10696 2014-02-09 Doug Evans <xdje42@gmail.com>
10697
10698 Revert this patch (which I approved, mea culpa).
10699
10700 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10701
10702 * Makefile.in (all-lib): Remove.
10703 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10704
10705 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10706
10707 Fix Python stack corruption.
10708 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10709 gdb_py_longest.
10710
10711 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10712
10713 * Makefile.in (all-lib): Remove.
10714 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10715
10716 2014-02-07 Doug Evans <dje@google.com>
10717
10718 * extension-priv.h (extension_language_script_ops): Add comment.
10719 (extension_language_ops): Add comment.
10720 (active_ext_lang_state): Fix typo in comment.
10721
10722 2014-02-07 Pedro Alves <palves@redhat.com>
10723
10724 PR breakpoints/16292
10725 * infrun.c (handle_signal_stop) <signal arrives while stepping
10726 over a breakpoint>: Switch back to the stepping thread.
10727
10728 2014-02-07 Yao Qi <yao@codesourcery.com>
10729
10730 * target.c (target_xfer_partial): Return zero if LEN is zero.
10731
10732 2014-02-07 Yao Qi <yao@codesourcery.com>
10733
10734 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10735 (ld_so_xfer_auxv): Likewise.
10736 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10737 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10738 * corelow.c (core_xfer_partial): Likewise.
10739 * ctf.c (ctf_xfer_partial): Likewise.
10740 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10741 (darwin_xfer_partial): Likewise.
10742 * exec.c (exec_xfer_partial): Likewise.
10743 * gnu-nat.c (gnu_xfer_partial): Likewise.
10744 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10745 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10746 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10747 * linux-nat.c (linux_xfer_siginfo): Likewise.
10748 (linux_proc_xfer_spu): Likewise.
10749 * procfs.c (procfs_xfer_partial): Likewise.
10750 * record-full.c (record_full_xfer_partial): Likewise.
10751 (record_full_core_xfer_partial): Likewise.
10752 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10753 * remote.c (remote_write_qxfer): Likewise.
10754 (remote_write_qxfer, remote_read_qxfer): Likewise.
10755 (remote_xfer_partial): Likewise.
10756 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10757 (rs6000_xfer_shared_libraries): Likewise.
10758 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10759 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10760 (spu_xfer_partial): Likewise.
10761 * target.c (memory_xfer_partial_1): Likewise.
10762 * tracepoint.c (tfile_xfer_partial): Likewise.
10763 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10764 (windows_xfer_partial): Likewise.
10765
10766 2014-02-07 Yao Qi <yao@codesourcery.com>
10767
10768 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10769 comments.
10770 (core_xfer_shared_libraries_aix): Likewise.
10771 * gdbarch.c, gdbarch.h: Regenerated.
10772 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10773 ULONGEST. Change 'len_avail' type to ULONGEST.
10774 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10775 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10776 declaration.
10777 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10778
10779 2014-02-07 Yao Qi <yao@codesourcery.com>
10780
10781 * corefile.c (memory_error): Get 'exception' from ERR and pass
10782 'exception' to throw_error.
10783
10784 2014-02-06 Doug Evans <xdje42@gmail.com>
10785
10786 * configure.ac (libpython checking): Remove all but python.o from
10787 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10788 * configure: Regenerate.
10789
10790 * Makefile.in (SFILES): Add extension.c.
10791 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10792 (COMMON_OBS): Add extension.o.
10793 * extension.h: New file.
10794 * extension-priv.h: New file.
10795 * extension.c: New file.
10796
10797 * python/python-internal.h: #include "extension.h".
10798 (gdbpy_auto_load_enabled): Declare.
10799 (gdbpy_apply_val_pretty_printer): Declare.
10800 (gdbpy_apply_frame_filter): Declare.
10801 (gdbpy_preserve_values): Declare.
10802 (gdbpy_breakpoint_cond_says_stop): Declare.
10803 (gdbpy_breakpoint_has_cond): Declare.
10804 (void source_python_script_for_objfile): Delete.
10805 * python/python.c: #include "extension-priv.h".
10806 Delete inclusion of "observer.h".
10807 (extension_language_python): Moved here and renamed from
10808 script_language_python in py-auto-load.c.
10809 Redefined to be of type extension_language_defn.
10810 (python_extension_script_ops): New global.
10811 (python_extension_ops): New global.
10812 (struct python_env): New member previous_active.
10813 (restore_python_env): Call restore_active_ext_lang.
10814 (ensure_python_env): Call set_active_ext_lang.
10815 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10816 New arg extlang.
10817 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10818 New arg extlang.
10819 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10820 New arg extlang.
10821 (gdbpy_eval_from_control_command): Renamed from
10822 eval_python_from_control_command, made static. New arg extlang.
10823 (gdbpy_source_script) Renamed from source_python_script, made static.
10824 New arg extlang.
10825 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10826 result to int. New arg extlang.
10827 (gdbpy_source_objfile_script): Renamed from
10828 source_python_script_for_objfile, made static. New arg extlang.
10829 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10830 static. New args extlang, extlang_printers. Change result type to
10831 "void".
10832 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10833 static. New arg extlang. Rename arg printers to extlang_printers
10834 and change type to ext_lang_type_printers *.
10835 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10836 static. Replace argument arg with extlang, extlang_printers.
10837 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10838 (!HAVE_PYTHON, source_python_script): Delete.
10839 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10840 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10841 (!HAVE_PYTHON, start_type_printers): Delete.
10842 (!HAVE_PYTHON, apply_type_printers): Delete.
10843 (!HAVE_PYTHON, free_type_printers): Delete.
10844 (_initialize_python): Delete call to observer_attach_before_prompt.
10845 (finalize_python): Set/restore active extension language.
10846 (gdbpy_finish_initialization) Renamed from
10847 finish_python_initialization, made static. New arg extlang.
10848 (gdbpy_initialized): New function.
10849 * python/python.h: #include "extension.h". Delete #include
10850 "value.h", "mi/mi-cmds.h".
10851 (extension_language_python): Declare.
10852 (GDBPY_AUTO_FILE_NAME): Delete.
10853 (enum py_bt_status): Moved to extension.h and renamed to
10854 ext_lang_bt_status.
10855 (enum frame_filter_flags): Moved to extension.h.
10856 (enum py_frame_args): Moved to extension.h and renamed to
10857 ext_lang_frame_args.
10858 (finish_python_initialization): Delete.
10859 (eval_python_from_control_command): Delete.
10860 (source_python_script): Delete.
10861 (apply_val_pretty_printer): Delete.
10862 (apply_frame_filter): Delete.
10863 (preserve_python_values): Delete.
10864 (gdbpy_script_language_defn): Delete.
10865 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10866 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10867
10868 * auto-load.c: #include "extension.h".
10869 (GDB_AUTO_FILE_NAME): Delete.
10870 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10871 (script_language_gdb): Delete, moved to extension.c and renamed to
10872 extension_language_gdb.
10873 (source_gdb_script_for_objfile): Delete.
10874 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10875 (loaded_script): Change type of language member to
10876 struct extension_language_defn *.
10877 (init_loaded_scripts_info): Initialize
10878 unsupported_script_warning_printed.
10879 (maybe_add_script): Make static. Change type of language arg to
10880 struct extension_language_defn *.
10881 (clear_section_scripts): Reset unsupported_script_warning_printed.
10882 (auto_load_objfile_script_1): Rewrite to use extension language API.
10883 (auto_load_objfile_script): Make public. Remove support-compiled-in
10884 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10885 (source_section_scripts): Rewrite to use extension language API.
10886 (load_auto_scripts_for_objfile): Rewrite to use
10887 auto_load_scripts_for_objfile.
10888 (collect_matching_scripts_data): Change type of language member to
10889 struct extension_language_defn *.
10890 (auto_load_info_scripts): Change type of language arg to
10891 struct extension_language_defn *.
10892 (unsupported_script_warning_print): New function.
10893 (script_not_found_warning_print): Make static.
10894 (_initialize_auto_load): Rewrite construction of scripts-directory
10895 help.
10896 * auto-load.h (struct objfile): Add forward decl.
10897 (struct script_language): Delete.
10898 (struct auto_load_pspace_info): Add forward decl.
10899 (struct extension_language_defn): Add forward decl.
10900 (maybe_add_script): Delete.
10901 (auto_load_objfile_script): Declare.
10902 (script_not_found_warning_print): Delete.
10903 (auto_load_info_scripts): Update prototype.
10904 (auto_load_gdb_scripts_enabled): Declare.
10905 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10906 auto_load_python_scripts_enabled and made public.
10907 (script_language_python): Delete, moved to python.c.
10908 (gdbpy_script_language_defn): Delete.
10909 (info_auto_load_python_scripts): Update to use
10910 extension_language_python.
10911
10912 * breakpoint.c (condition_command): Replace call to
10913 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10914 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10915 with call to breakpoint_ext_lang_cond_says_stop.
10916 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10917 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10918 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10919 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10920 New arg slang.
10921 (local_setattro): Print name of extension language with existing
10922 stop condition.
10923
10924 * valprint.c (val_print, value_print): Update to call
10925 apply_ext_lang_val_pretty_printer.
10926 * cp-valprint.c (cp_print_value): Update call to
10927 apply_ext_lang_val_pretty_printer.
10928 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10929 (gdbpy_apply_val_pretty_printer): Renamed from
10930 apply_val_pretty_printer. New arg extlang.
10931 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10932
10933 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10934 extension language API.
10935 * cli/cli-script.c (execute_control_command): Update to call
10936 eval_ext_lang_from_control_command.
10937
10938 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10939 enum ext_lang_bt_status values. Update call to
10940 apply_ext_lang_frame_filter.
10941 (mi_cmd_stack_list_locals): Ditto.
10942 (mi_cmd_stack_list_args): Ditto.
10943 (mi_cmd_stack_list_variables): Ditto.
10944 * mi/mi-main.c: Delete #include "python/python-internal.h".
10945 Add #include "extension.h".
10946 (mi_cmd_list_features): Replace reference to python internal variable
10947 gdb_python_initialized with call to ext_lang_initialized_p.
10948
10949 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10950 Update to use enum ext_lang_frame_args. Update to call
10951 apply_ext_lang_frame_filter.
10952 * python/py-framefilter.c (extract_sym): Update to use enum
10953 ext_lang_bt_status.
10954 (extract_value, py_print_type, py_print_value): Ditto.
10955 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10956 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10957 (py_print_frame): Ditto.
10958 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10959 New arg extlang. Update to use enum ext_lang_bt_status.
10960
10961 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10962 finish_python_initialization. Replace with call to
10963 finish_ext_lang_initialization.
10964
10965 * typeprint.c (do_free_global_table): Update to call
10966 free_ext_lang_type_printers.
10967 (create_global_typedef_table): Update to call
10968 start_ext_lang_type_printers.
10969 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10970 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10971 (type_print_options): Change type of global_printers from "void *"
10972 to "struct ext_lang_type_printers *".
10973
10974 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10975 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10976 (gdbpy_preserve_values): Renamed from preserve_python_values.
10977 New arg extlang.
10978 (!HAVE_PYTHON, preserve_python_values): Delete.
10979
10980 * utils.c (quit_flag): Delete, moved to extension.c.
10981 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10982 extension.c.
10983
10984 * eval.c: Delete #include "python/python.h".
10985 * main.c: Delete #include "python/python.h".
10986
10987 * defs.h: Update comment.
10988
10989 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10990
10991 GDB 7.7 released.
10992
10993 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10994
10995 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10996 defined.
10997
10998 2014-02-05 Yao Qi <yao@codesourcery.com>
10999
11000 * remote.c (remote_pass_signals): Remove local 'buf' and use
11001 rs->buf.
11002 (remote_program_signals): Likewise.
11003
11004 2014-02-05 Yao Qi <yao@codesourcery.com>
11005
11006 * ctf.c: Include "inferior.h" and "gdbthread.h".
11007 (CTF_PID): A new macro.
11008 (ctf_open): Call inferior_appeared and add_thread_silent.
11009 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11010 (ctf_thread_alive): New function.
11011 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11012
11013 2014-02-05 Yao Qi <yao@codesourcery.com>
11014
11015 Revert this patch:
11016
11017 2013-05-24 Yao Qi <yao@codesourcery.com>
11018
11019 * tracepoint.c (TFILE_PID): Remove.
11020 (tfile_open): Don't add thread and inferior.
11021 (tfile_close): Don't set 'inferior_ptid'. Don't call
11022 exit_inferior_silent.
11023 (tfile_thread_alive): Remove.
11024 (init_tfile_ops): Don't set field 'to_thread_alive' of
11025 tfile_ops.
11026
11027 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11028
11029 * remote.c (remote_start_remote): Call remote_check_symbols even
11030 if only symbol-file (not file) has been given.
11031
11032 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11033
11034 * gdbarch.sh (skip_entrypoint): New callback.
11035 * gdbarch.c, gdbarch.h: Regenerate.
11036 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11037 * infrun.c (fill_in_stop_func): Likewise.
11038 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11039 (ppc_elfv2_elf_make_msymbol_special): New function.
11040 (ppc_elfv2_skip_entrypoint): Likewise.
11041 (ppc_linux_init_abi): Install them for ELFv2.
11042
11043 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11044
11045 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11046 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11047 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11048 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11049 structures returned in GPRs.
11050
11051 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11052
11053 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11054 offset to the stack parameter list for the ELFv2 ABI.
11055
11056 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11057
11058 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11059 set_gdbarch_convert_from_func_ptr_addr and
11060 set_gdbarch_elf_make_msymbol_special for ELFv1.
11061 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11062 function descriptors on ELFv1.
11063 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11064 set up r12 at function entry.
11065
11066 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11067
11068 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11069 (struct gdbarch_tdep): New member elf_abi.
11070
11071 * rs6000-tdep.c: Include "elf/ppc64.h".
11072 (rs6000_gdbarch_init): Detect ELF ABI version.
11073
11074 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11075
11076 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11077 within a register pair holding a DFP 128-bit value on little-endian.
11078 (ppc64_sysv_abi_return_value_base): Likewise.
11079 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11080 (dfp_pseudo_register_write): Likewise.
11081
11082 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11083
11084 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11085 offset on little-endian when passing _Decimal32.
11086 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11087
11088 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11089
11090 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11091 of the overlapped FP register within the VSX register on little-
11092 endian platforms.
11093 (efpr_pseudo_register_write): Likewise.
11094
11095 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11096
11097 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11098 offset on little-endian when passing small structures.
11099
11100 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11101
11102 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11103 (struct ppc64_sysv_argpos): New data structure.
11104 (ppc64_sysv_abi_push_float): Remove.
11105 (ppc64_sysv_abi_push_val): New function.
11106 (ppc64_sysv_abi_push_integer): Likewise.
11107 (ppc64_sysv_abi_push_freg): Likewise.
11108 (ppc64_sysv_abi_push_vreg): Likewise.
11109 (ppc64_sysv_abi_push_param): Likewise.
11110 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11111 (ppc64_sysv_abi_return_value_base): New function.
11112 (ppc64_sysv_abi_return_value): Refactor to use it.
11113
11114 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11115
11116 * NEWS: Document new target powerpc64le-*-linux*.
11117
11118 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11119
11120 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11121 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11122 core dumps.
11123 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11124 register set used in ELF core dumps. Add floating-point register set.
11125
11126 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11127
11128 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11129 dwarf2_to_gdb[] table using symbolic constants. Adjust
11130 penultimate entry from number representing the PC register
11131 to symbolic constant representing the MDR register. Add
11132 constant for the PC register to the end of the table.
11133
11134 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11135
11136 * bsd-kvm.c: Include <sys/param.h>
11137
11138 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11139
11140 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11141
11142 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11143
11144 * ada-lang.h (clear_ada_sym_cache): Delete.
11145
11146 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11147
11148 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11149
11150 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11151
11152 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11153 the sigreturn register save area only if the syscall is
11154 sigreturn.
11155
11156 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11157
11158 * valops.c (value_slice): Minor reformatting.
11159
11160 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11161
11162 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11163
11164 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11165
11166 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11167 New static globals.
11168 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11169 (ada_ignore_descriptive_types_p): New static global.
11170 (find_parallel_type_by_descriptive_type): Return immediately
11171 if ada_ignore_descriptive_types_p is set.
11172 (_initialize_ada_language): Register new commands "maintenance
11173 set ada", "maintenance show ada", "maintenance set ada
11174 ignore-descriptive-types" and "maintenance show ada
11175 ignore-descriptive-types".
11176 * NEWS: Add entry for new "maint ada set/show
11177 ignore-descriptive-types" commands.
11178
11179 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11180
11181 * record-btrace.c (record_btrace_close): Call btrace_teardown
11182 for all threads.
11183
11184 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11185
11186 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11187 "ui-out.h".
11188
11189 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11190
11191 * ada-typeprint (type_is_full_subrange_of_target_type):
11192 New function.
11193 (print_range): Add parameter bounds_prefered_p. If not set,
11194 try printing range types using the name of their base type.
11195 (print_range_type): Add parameter bounds_prefered_p.
11196 Use it in call to print_range.
11197 (print_array_type, ada_print_type): Update calls to print_range
11198 and print_range_type.
11199
11200 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11201
11202 * ada-typeprint.c (print_array_type, print_choices, print_range)
11203 (print_range_bound, print_dynamic_range_bound, print_range_type):
11204 Remove declaration.
11205
11206 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11207
11208 * ada-typeprint.c (print_range): Add missing empty line
11209 after local declaration.
11210
11211 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11212
11213 * ada-valprint.c (print_optional_low_bound): Get index_type's
11214 target type for as long as it is a TYPE_CODE_RANGE.
11215
11216 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11217
11218 * procfs.c (procfs_make_note_section): Remove assertion and
11219 associated comment.
11220
11221 2014-01-24 Yao Qi <yao@codesourcery.com>
11222
11223 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11224 * corelow.c (get_core_siginfo): Likewise.
11225
11226 2014-01-24 Yao Qi <yao@codesourcery.com>
11227
11228 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11229 ULONGEST. Don't check 'len' is negative.
11230 (remote_write_bytes): Change type of 'len' to ULONGEST.
11231
11232 2014-01-23 Tom Tromey <tromey@redhat.com>
11233
11234 PR python/16485:
11235 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11236 Handle exception from frame.block.
11237 (FrameVars.fetch_frame_locals): Likewise.
11238
11239 2014-01-23 Tom Tromey <tromey@redhat.com>
11240
11241 PR python/16487:
11242 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11243 on a NULL pointer. Move "goto error" to correct place.
11244
11245 2014-01-23 Tom Tromey <tromey@redhat.com>
11246
11247 PR python/16491:
11248 * python/py-framefilter.c (apply_frame_filter): Call
11249 ensure_python_env after computing gdbarch.
11250
11251 2014-01-23 Yao Qi <yao@codesourcery.com>
11252
11253 * target.c (raw_memory_xfer_partial): Change argument type
11254 from void * to gdb_byte *.
11255 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11256
11257 2014-01-22 Doug Evans <dje@google.com>
11258
11259 New gdbserver option --debug-format=timestamp.
11260 * NEWS: Mention it.
11261
11262 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11263
11264 * syscalls/s390x-linux.xml: New file.
11265 * syscalls/s390-linux.xml: New file.
11266 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11267 (XML_SYSCALL_FILENAME_S390X): Likewise.
11268 (op_svc): New enum value for SVC opcode.
11269 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11270 (s390_linux_get_syscall_number): New function.
11271 (s390_gdbarch_init): Register '*get_syscall_number' and the
11272 syscall xml file name.
11273 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11274 "s390-linux.xml" and "s390x-linux.xml".
11275 * NEWS: Announce new feature.
11276
11277 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11278
11279 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11280
11281 2014-01-22 Pedro Alves <palves@redhat.com>
11282
11283 * xtensa-config.c: Include defs.h.
11284
11285 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11286
11287 * common/common-utils.h: Add "ARI:" comment beside __func__
11288 reference.
11289
11290 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11291
11292 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11293 documentation a bit.
11294
11295 2014-01-21 Roland McGrath <mcgrathr@google.com>
11296
11297 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11298 * configure: Regenerate.
11299 * aclocal.m4: Regenerate.
11300 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11301 New substituted variables.
11302 (install-strip): New target.
11303 (INSTALL_SCRIPT): New substituted variable.
11304 (FLAGS_TO_PASS): Add it.
11305 (install-only): Use $(INSTALL_SCRIPT) rather than
11306 $(INSTALL_PROGRAM) for gcore.
11307
11308 2014-01-20 Tom Tromey <tromey@redhat.com>
11309
11310 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11311 together.
11312
11313 2014-01-20 Tom Tromey <tromey@redhat.com>
11314
11315 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11316 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11317 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11318 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11319 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11320 (struct cmd_list_element) <flags>: Remove.
11321 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11322 doc_allocated>: New fields.
11323 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11324 bitfields.
11325 * maint.c (maintenance_do_deprecate): Update.
11326 * top.c (execute_command): Update.
11327
11328 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11329
11330 * xtensa-linux-nat.c: Include asm/ptrace.h.
11331
11332 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11333
11334 * Makefile.in (SFILES): Add d-support.c.
11335 (COMMON_OBS): Add d-support.o.
11336 * d-lang.h (d_parse_symbol): Add comment, now defined in
11337 d-support.c.
11338 * d-lang.c (parse_call_convention)
11339 (parse_attributes, parse_function_types)
11340 (parse_function_args, parse_type, parse_identifier)
11341 (call_convention_p, d_parse_symbol): Move functions to ...
11342 * d-support.c: ... New file.
11343
11344 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11345
11346 * d-lang.h (d_parse_symbol): Add declaration.
11347 * d-lang.c (extract_identifiers)
11348 (extract_type_info): Remove functions.
11349 (parse_call_convention, parse_attributes)
11350 (parse_function_types, parse_function_args)
11351 (parse_type, parse_identifier, call_convention_p)
11352 (d_parse_symbol): New functions.
11353 (d_demangle): Use d_parse_symbol to demangle D symbols.
11354
11355 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11356
11357 * d-lang.h (struct builtin_d_type): New data type.
11358 (builtin_d_type): Add declaration.
11359 * d-lang.c (d_language_arch_info, build_d_types)
11360 (builtin_d_type): New functions.
11361 (enum d_primitive_types): New data type.
11362 (d_language_defn): Change c_language_arch_info to
11363 d_language_arch_info.
11364 (d_type_data): New static variable.
11365 (_initialize_d_language): Initialize d_type_data.
11366
11367 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11368
11369 * d-lang.h (d_main_name): Add declaration.
11370 * d-lang.c (d_main_name): New function.
11371 * symtab.c (find_main_name): Add call to d_main_name.
11372
11373 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11374
11375 * d-lang.c (d_language_defn): Change macro_expansion_c to
11376 macro_expansion_no.
11377
11378 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11379
11380 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11381
11382 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11383
11384 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11385 gdb_exception" declaration.
11386 * remote.c (getpkt_or_notif_sane): Likewise.
11387
11388 2014-01-17 Doug Evans <dje@google.com>
11389
11390 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11391 function, contents of dirnames_to_char_ptr_vec_append moved here.
11392 (delim_string_to_char_ptr_vec): New function.
11393 (dirnames_to_char_ptr_vec_append): Rewrite.
11394 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11395
11396 2014-01-17 Doug Evans <dje@google.com>
11397
11398 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11399 and moved here ...
11400 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11401 #include "common-utils.h".
11402 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11403 * common/vec.h (VEC_ASSERT_PASS): Update.
11404 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11405 (MACH_CHECK_ERROR): Update.
11406
11407 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11408
11409 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11410 comments.
11411 * gdbarch.h: Regenerate.
11412
11413 2014-01-16 Tom Tromey <tromey@redhat.com>
11414
11415 * value.c (struct value) <regnum>: Move earlier.
11416
11417 2014-01-16 Tom Tromey <tromey@redhat.com>
11418
11419 * remote.c (extended_remote_create_inferior): Rename from
11420 extended_remote_create_inferior_1. Add "ops" argument. Remove
11421 old implementation.
11422
11423 2014-01-16 Pedro Alves <palves@redhat.com>
11424
11425 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11426 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11427 the backchain.
11428
11429 2014-01-16 Doug Evans <dje@google.com>
11430
11431 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11432
11433 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11434
11435 * btrace.h (btrace_thread_flag): New.
11436 (struct btrace_thread_info) <flags>: New.
11437 * record-btrace.c (record_btrace_resume_thread)
11438 (record_btrace_find_thread_to_move, btrace_step_no_history)
11439 (btrace_step_stopped, record_btrace_start_replaying)
11440 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11441 (record_btrace_find_resume_thread): New.
11442 (record_btrace_resume, record_btrace_wait): Extend.
11443 (record_btrace_can_execute_reverse): New.
11444 (record_btrace_open): Fail in non-stop mode.
11445 (record_btrace_set_replay): Split into this, ...
11446 (record_btrace_stop_replaying): ... this, ...
11447 (record_btrace_clear_histories): ... and this.
11448 (init_record_btrace_ops): Init to_can_execute_reverse.
11449 * NEWS: Announce it.
11450
11451 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11452
11453 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11454 (forward_target_decr_pc_after_break)
11455 (target_decr_pc_after_break): New.
11456 * target.c (forward_target_decr_pc_after_break)
11457 (target_decr_pc_after_break): New.
11458 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11459 instead of gdbarch_decr_pc_after_break.
11460 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11461 instead of gdbarch_decr_pc_after_break.
11462 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11463 instead of gdbarch_decr_pc_after_break.
11464 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11465 instead of gdbarch_decr_pc_after_break.
11466 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11467 instead of gdbarch_decr_pc_after_break.
11468 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11469 instead of gdbarch_decr_pc_after_break.
11470
11471 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11472
11473 * btrace.c: Include regcache.h.
11474 (btrace_add_pc): New.
11475 (btrace_enable): Call btrace_add_pc.
11476 (btrace_is_empty): New.
11477 * btrace.h (btrace_is_empty): New.
11478 * record-btrace.c (require_btrace, record_btrace_info): Call
11479 btrace_is_empty.
11480
11481 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11482
11483 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11484 Support delta reads.
11485 (linux_disable_btrace): Change return type.
11486 * common/linux-btrace.h (linux_read_btrace): Change parameters
11487 and return type to allow error reporting. Update users.
11488 (linux_disable_btrace): Change return type. Update users.
11489 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11490 New.
11491 (btrace_error): New.
11492 (btrace_block) <begin>: Comment on BEGIN == 0.
11493 * btrace.c (btrace_compute_ftrace): Start from the end of
11494 the current trace.
11495 (btrace_stitch_trace, btrace_clear_history): New.
11496 (btrace_fetch): Read delta trace, return if replaying.
11497 (btrace_clear): Move clear history code to btrace_clear_history.
11498 (parse_xml_btrace): Throw an error if parsing failed.
11499 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11500 and return type to allow error reporting.
11501 (target_read_btrace): Change parameters and return type to allow
11502 error reporting.
11503 * target.c (target_read_btrace): Update.
11504 * remote.c (remote_read_btrace): Support delta reads. Pass
11505 errors on.
11506 * NEWS: Announce it.
11507
11508 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11509
11510 * record.h (record_btrace_frame_unwind)
11511 (record_btrace_tailcall_frame_unwind): New declarations.
11512 * dwarf2-frame: Include record.h
11513 (dwarf2_frame_cfa): Throw an error for btrace frames.
11514 * record-btrace.c: Include hashtab.h.
11515 (btrace_get_bfun_name): New.
11516 (btrace_call_history): Call btrace_get_bfun_name.
11517 (struct btrace_frame_cache): New.
11518 (bfcache): New.
11519 (bfcache_hash, bfcache_eq, bfcache_new): New.
11520 (btrace_get_frame_function): New.
11521 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11522 (record_btrace_frame_this_id): Compute own id.
11523 (record_btrace_frame_prev_register): Provide PC, throw_error
11524 for all other registers.
11525 (record_btrace_frame_sniffer): Detect btrace frames.
11526 (record_btrace_tailcall_frame_sniffer): New.
11527 (record_btrace_frame_dealloc_cache): New.
11528 (record_btrace_frame_unwind): Add new functions.
11529 (record_btrace_tailcall_frame_unwind): New.
11530 (_initialize_record_btrace): Allocate cache.
11531 * btrace.c (btrace_clear): Call reinit_frame_cache.
11532 * NEWS: Announce it.
11533
11534 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11535
11536 * record-btrace.c (record_btrace_set_replay)
11537 (record_btrace_goto_begin, record_btrace_goto_end)
11538 (record_btrace_goto): New.
11539 (init_record_btrace_ops): Initialize them.
11540 * NEWS: Announce it.
11541
11542 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11543
11544 * record-btrace.c (record_btrace_find_new_threads)
11545 (record_btrace_thread_alive): New.
11546 (init_record_btrace_ops): Initialize to_find_new_threads and
11547 to_thread_alive.
11548
11549 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11550
11551 * record-btrace.c (record_btrace_resume): New.
11552 (record_btrace_wait): New.
11553 (init_record_btrace_ops): Initialize to_wait and to_resume.
11554
11555 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11556
11557 * record-btrace.c (record_btrace_xfer_partial)
11558 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11559 (record_btrace_allow_memory_access): New.
11560 (init_record_btrace_ops): Initialize new methods.
11561 * target.c (raw_memory_xfer_partial): Bail out if target reports
11562 that this memory is not available.
11563
11564 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11565
11566 * target.h (target_ops) <to_insert_breakpoint>
11567 <to_remove_breakpoint>: Add target_ops parameter.
11568 (forward_target_insert_breakpoint): New.
11569 (forward_target_remove_breakpoint): New.
11570 (memory_remove_breakpoint, memory_insert_breakpoint):
11571 Add target_ops parameter.
11572 * target.c (target_insert_breakpoint): Split into this and ...
11573 (forward_target_insert_breakpoint): ... this.
11574 (target_remove_breakpoint): Split into this and ...
11575 (forward_target_remove_breakpoint): ... this.
11576 (debug_to_insert_breakpoint): Add target_ops parameter.
11577 Call forward_target_insert_breakpoint.
11578 (debug_to_remove_breakpoint): Add target_ops parameter.
11579 Call forward_target_remove_breakpoint.
11580 (update_current_target): Do not inherit or default to_insert_breakpoint
11581 and to_remove_breakpoint.
11582 * corelow.c (ignore): Add target_ops parameter.
11583 * exec.c (ignore): Add target_ops parameter.
11584 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11585 Add target_ops parameter.
11586 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11587 Add target_ops parameter.
11588 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11589 Add target_ops parameter.
11590 * record-full.c (record_full_beneath_to_insert_breakpoint)
11591 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11592 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11593 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11594 (record_full_core_remove_breakpoint): Add target_ops parameter.
11595 Update users.
11596 (record_full_beneath_to_insert_breakpoint_ops)
11597 (record_full_beneath_to_remove_breakpoint_ops)
11598 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11599 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11600 tmp_to_remove_breakpoint_ops,
11601 record_full_beneath_to_insert_breakpoint_ops, and
11602 record_full_beneath_to_remove_breakpoint_ops.
11603 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11604 (m32r_remove_breakpoint): Add target_ops parameter.
11605 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11606 Add target_ops parameter.
11607 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11608 Add target_ops parameter.
11609
11610 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11611 Markus Metzger <markus.t.metzger@intel.com>
11612
11613 * record-btrace.c: Include frame-unwind.h.
11614 (record_btrace_frame_unwind_stop_reason)
11615 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11616 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11617 New.
11618 (init_record_btrace_ops): Install it.
11619
11620 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11621
11622 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11623 get_prev_frame_1.
11624
11625 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11626
11627 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11628 earlier.
11629
11630 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11631
11632 * frame-unwind.c: Include target.h.
11633 (frame_unwind_try_unwinder): New function with code from ...
11634 (frame_unwind_find_by_frame): ... here. New variable
11635 unwinder_from_target, call also target_get_unwinder)
11636 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11637 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11638 * target.h (struct target_ops): New fields to_get_unwinder and
11639 to_get_tailcall_unwinder.
11640 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11641
11642 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11643
11644 * record-btrace.c (record_btrace_fetch_registers)
11645 (record_btrace_store_registers)
11646 (record_btrace_to_prepare_to_store): New.
11647 (init_record_btrace_ops): Add the above.
11648
11649 2014-01-16 Tom Tromey <tromey@redhat.com>
11650
11651 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11652 * target.h (struct target_ops) <to_prepare_to_store>: Add
11653 argument.
11654 (target_prepare_to_store): Add argument.
11655 * target.c (debug_to_prepare_to_store): Add argument.
11656 (update_current_target): Update.
11657 * remote.c (remote_prepare_to_store): Add 'self' argument.
11658 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11659 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11660 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11661 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11662 argument.
11663 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11664 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11665 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11666 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11667 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11668
11669 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11670
11671 * btrace.h (replay) <replay>: New.
11672 (btrace_is_replaying): New.
11673 * btrace.c (btrace_clear): Free replay iterator.
11674 (btrace_is_replaying): New.
11675 * record-btrace.c (record_btrace_is_replaying): New.
11676 (record_btrace_info): Print insn number if replaying.
11677 (record_btrace_insn_history): Start at replay position.
11678 (record_btrace_call_history): Start at replay position.
11679 (init_record_btrace_ops): Init to_record_is_replaying.
11680
11681 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11682
11683 * record-btrace.c (record_btrace_insn_history_range): Include
11684 end.
11685 (record_btrace_insn_history_from): Adjust range.
11686 (record_btrace_call_history_range): Include
11687 end.
11688 (record_btrace_call_history_from): Adjust range.
11689 * NEWS: Announce changes.
11690
11691 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11692
11693 * record.h (enum record_print_flag)
11694 <record_print_indent_calls>: New.
11695 * record.c (get_call_history_modifiers): Recognize /c modifier.
11696 (_initialize_record): Document /c modifier.
11697 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11698 Reorder fields. Optionally indent the function name. Update
11699 all users.
11700 * NEWS: Announce changes.
11701
11702 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11703
11704 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11705
11706 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11707
11708 * btrace.c (ftrace_new_function): Start counting at one.
11709 * record-btrace.c (record_btrace_info): Adjust number of calls
11710 and insns.
11711 * NEWS: Announce it.
11712
11713 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11714
11715 * record-btrace.c (btrace_call_history_insn_range): Print
11716 insn range as [begin, end].
11717
11718 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11719
11720 * btrace.h (struct btrace_func_link): New.
11721 (enum btrace_function_flag): New.
11722 (struct btrace_inst): Rename to ...
11723 (struct btrace_insn): ...this. Update all users.
11724 (struct btrace_func) <ibegin, iend>: Remove.
11725 (struct btrace_func_link): New.
11726 (struct btrace_func): Rename to ...
11727 (struct btrace_function): ...this. Update all users.
11728 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11729 (number, level, flags>: New.
11730 (struct btrace_insn_iterator): Rename to ...
11731 (struct btrace_insn_history): ...this.
11732 Update all users.
11733 (struct btrace_insn_iterator, btrace_call_iterator): New.
11734 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11735 (struct btrace_target_info) <begin, end, level>
11736 <insn_history, call_history>: New.
11737 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11738 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11739 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11740 (btrace_call_number, btrace_call_begin, btrace_call_end)
11741 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11742 (btrace_find_function_by_number, btrace_set_insn_history)
11743 (btrace_set_call_history): New.
11744 * btrace.c (btrace_init_insn_iterator)
11745 (btrace_init_func_iterator, compute_itrace): Remove.
11746 (ftrace_print_function_name, ftrace_print_filename)
11747 (ftrace_skip_file): Change
11748 parameter to const.
11749 (ftrace_init_func): Remove.
11750 (ftrace_debug): Use new btrace_function fields.
11751 (ftrace_function_switched): Also consider gaining and
11752 losing symbol information).
11753 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11754 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11755 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11756 New.
11757 (ftrace_new_function): Move. Remove debug print.
11758 (ftrace_update_lines, ftrace_update_insns): New.
11759 (ftrace_update_function): Check for call, ret, and jump.
11760 (compute_ftrace): Renamed to ...
11761 (btrace_compute_ftrace): ...this. Rewritten to compute call
11762 stack.
11763 (btrace_fetch, btrace_clear): Updated.
11764 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11765 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11766 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11767 (btrace_call_number, btrace_call_begin, btrace_call_end)
11768 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11769 (btrace_find_function_by_number, btrace_set_insn_history)
11770 (btrace_set_call_history): New.
11771 * record-btrace.c (require_btrace): Use new btrace thread
11772 info fields.
11773 (record_btrace_info, btrace_insn_history)
11774 (record_btrace_insn_history, record_btrace_insn_history_range):
11775 Use new btrace thread info fields and new iterator.
11776 (btrace_func_history_src_line): Rename to ...
11777 (btrace_call_history_src_line): ...this. Use new btrace
11778 thread info fields.
11779 (btrace_func_history): Rename to ...
11780 (btrace_call_history): ...this. Use new btrace thread info
11781 fields and new iterator.
11782 (record_btrace_call_history, record_btrace_call_history_range):
11783 Use new btrace thread info fields and new iterator.
11784
11785 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11786
11787 * frame.h (frame_id_build_unavailable_stack_special): New.
11788 * frame.c (frame_id_build_unavailable_stack_special): New.
11789
11790 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11791
11792 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11793 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11794 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11795 to gdbarch.
11796 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11797 (i386_insn_is_jump, i386_jmp_p): New.
11798 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11799 insn_is_jump to gdbarch.
11800 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11801 * gdbarch.h: Regenerated.
11802 * gdbarch.c: Regenerated.
11803 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11804 (default_insn_is_jump): New.
11805 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11806 (default_insn_is_jump): New.
11807
11808 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11809
11810 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11811 Change to ...
11812 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11813 (btrace_read_type) <btrace_read_new>: Change to ...
11814 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11815
11816 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11817
11818 * common/linux-btrace.c (linux_read_btrace): Free trace from
11819 previous iteration.
11820
11821 2014-01-15 Doug Evans <dje@google.com>
11822
11823 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11824 uint32_t.
11825
11826 2014-01-15 Tom Tromey <tromey@redhat.com>
11827
11828 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11829 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11830 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11831 (set_objfile_main_name): New function.
11832 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11833 language_of_main>: New fields.
11834 (set_objfile_main_name): Declare.
11835 * symtab.c (find_main_name): Loop over objfiles to find the main
11836 name and language.
11837 (set_main_name): Now static.
11838 (get_main_info): Add comment.
11839 * symtab.h (set_main_name): Don't declare.
11840
11841 2014-01-15 Tom Tromey <tromey@redhat.com>
11842
11843 * symtab.c (main_progspace_key): New global.
11844 (struct main_info): New.
11845 (name_of_main, language_of_main): Remove.
11846 (get_main_info, main_info_cleanup): New function.
11847 (set_main_name, main_name, main_language): Use get_main_info.
11848 (_initialize_symtab): Initialize main_progspace_key.
11849
11850 2014-01-15 Tom Tromey <tromey@redhat.com>
11851
11852 * dbxread.c (process_one_symbol): Update.
11853 * dwarf2read.c (read_partial_die): Update.
11854 * symfile.c (set_initial_language): Call main_language.
11855 * symtab.c (language_of_main): Now static.
11856 (set_main_name): Add 'lang' parameter.
11857 (find_main_name): Update.
11858 (main_language): New function.
11859 (symtab_observer_executable_changed): Update.
11860 * symtab.h (set_main_name): Update.
11861 (language_of_main): Remove.
11862 (main_language): Declare.
11863
11864 2014-01-15 Tom Tromey <tromey@redhat.com>
11865
11866 * symfile.c (init_entry_point_info): Use new "initialized" field.
11867 Update.
11868 * objfiles.h (struct entry_point) <initialized>: New field.
11869 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11870 (struct objfile) <ei>: ...here. Remove.
11871 * objfiles.c (entry_point_address_query): Update.
11872
11873 2014-01-15 Tom Tromey <tromey@redhat.com>
11874
11875 * objfiles.c (entry_point_address_query): Relocate entry point
11876 address.
11877 (objfile_relocate1): Do not relocate entry point address.
11878 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11879 <the_bfd_section_index>: New field.
11880 * symfile.c (init_entry_point_info): Find the entry point's
11881 section.
11882
11883 2014-01-15 Tom Tromey <tromey@redhat.com>
11884
11885 * solib-frv.c (enable_break): Use entry_point_address_query.
11886
11887 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11888
11889 * NEWS: Add note on improved process record-replay on
11890 arm*-linux* targets.
11891
11892 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11893
11894 * arm-tdep.c (enum arm_record_result): New enum.
11895 (arm_record_unsupported_insn): New function.
11896 (arm_record_coproc_data_proc): Removed.
11897 (thumb2_record_ld_st_multiple): New function.
11898 (thumb2_record_ld_st_dual_ex_tbb): New function.
11899 (thumb2_record_data_proc_sreg_mimm): New function.
11900 (thumb2_record_ps_dest_generic): New function.
11901 (thumb2_record_branch_misc_cntrl): New function.
11902 (thumb2_record_str_single_data): New function.
11903 (thumb2_record_ld_mem_hints): New function.
11904 (thumb2_record_ld_word): New function.
11905 (thumb2_record_lmul_lmla_div): New function.
11906 (thumb2_record_decode_insn_handler): New function.
11907 (decode_insn): Add thumb32 instruction handlers.
11908
11909 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11910
11911 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11912 (struct arm_linux_record_tdep): Declare.
11913 (arm_canonicalize_syscall): New function.
11914 (arm_all_but_pc_registers_record): New function.
11915 (arm_linux_syscall_record): New function.
11916 (arm_linux_init_abi): Add syscall recording constructs.
11917 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11918 decoding. (arm_record_coproc_data_proc): Update arm syscall
11919 decoding.
11920 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11921 <arm_syscall_record>: New field.
11922 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11923 gdb_target_obs.
11924
11925 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11926
11927 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11928 register for push instruction recording.
11929
11930 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11931
11932 * arm-tdep.c (thumb_record_misc): Update to correct logical
11933 error while recording ldm, ldmia and pop instructions.
11934
11935 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11936
11937 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11938
11939 2014-01-15 Pedro Alves <palves@redhat.com>
11940
11941 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11942 (go32_resume, go32_fetch_registers, store_register)
11943 (go32_store_registers, go32_prepare_to_store)
11944 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11945 (go32_create_inferior, go32_can_run, go32_terminal_init)
11946 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11947 declarations.
11948
11949 2014-01-15 Tom Tromey <tromey@redhat.com>
11950
11951 * target.h (async_callback_ftype): New typedef.
11952 (struct target_ops) <to_async>: Use it.
11953
11954 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11955
11956 * python/py-value.c (get_field_type): Remove unnecessary curly
11957 braces for single-statement if block.
11958
11959 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11960
11961 * python/py-type.c (convert_field): Add missing empty line
11962 after declarations.
11963
11964 2014-01-14 Doug Evans <dje@google.com>
11965
11966 * symfile.h (expand_symtabs_matching): Renamed from
11967 expand_partial_symbol_names. Update prototype.
11968 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11969 * symfile.c (expand_symtabs_matching): Renamed from
11970 expand_partial_symbol_names. New args file_matcher, kind.
11971 Rename arg fun to symbol_matcher.
11972 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11973 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11974 ada_expand_partial_symbol_name.
11975 (ada_make_symbol_completion_list): Update to call
11976 expand_symtabs_matching.
11977 (ada_add_global_exceptions): Call expand_symtabs_matching.
11978 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11979 call map_symbol_filenames.
11980 * symtab.c (sources_info): Update to call map_symbol_filenames.
11981 (search_symbols): Call expand_symtabs_matching.
11982 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11983 (default_make_symbol_completion_list_break_on): Update to call
11984 expand_symtabs_matching.
11985 (make_source_files_completion_list): Update to call
11986 map_symbol_filenames.
11987
11988 2014-01-14 Doug Evans <dje@google.com>
11989
11990 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11991 (expand_symtabs_symbol_matcher_ftype): New typedef.
11992 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11993 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11994 * symfile.c (expand_partial_symbol_names): Update to use
11995 expand_symtabs_symbol_matcher_ftype.
11996 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11997 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11998 Arg name_matcher renamed to symbol_matcher.
11999 * psymtab.c (recursively_search_psymtabs): Update to use
12000 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12001 sym_matcher.
12002 (expand_symtabs_matching_via_partial): Update to use
12003 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12004 Arg name_matcher renamed to symbol_matcher.
12005
12006 2014-01-14 Doug Evans <dje@google.com>
12007
12008 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12009 (map_partial_symbol_filenames): Ditto.
12010 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12011 (map_partial_symbol_filenames): Ditto.
12012 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12013 (map_partial_symbol_filenames): Ditto.
12014 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12015 (map_partial_symbol_filenames): Ditto.
12016 * symtab.c: Delete #include "psymtab.h".
12017
12018 2014-01-14 Pedro Alves <palves@redhat.com>
12019 Tom Tromey <tromey@redhat.com>
12020
12021 * infrun.c (use_displaced_stepping): Use find_record_target
12022 instead of RECORD_IS_USED.
12023 (adjust_pc_after_break): Use record_full_is_used instead of
12024 RECORD_IS_USED.
12025 * record-btrace.c (record_btrace_open): Call record_preopen
12026 instead of checking RECORD_IS_USED.
12027 * record-full.c (record_full_shortname)
12028 (record_full_core_shortname): New globals.
12029 (record_full_is_used): New function.
12030 (find_full_open): Call record_preopen instead of checking
12031 RECORD_IS_USED.
12032 (init_record_full_ops): Set the target's shortname to
12033 record_full_shortname.
12034 (init_record_full_core_ops): Set the target's shortname to
12035 record_full_core_shortname.
12036 * record-full.h (record_full_is_used): Declare.
12037 * record.c (find_record_target): Make extern.
12038 (record_preopen): New function.
12039 * record.h (RECORD_IS_USED): Delete macro.
12040 (find_record_target, record_preopen): Declare functions.
12041
12042 2014-01-14 Yao Qi <yao@codesourcery.com>
12043
12044 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12045 'len''s type to ULONGEST.
12046 (core_xfer_shared_libraries_aix): Likewise.
12047 * gdbarch.c, gdbarch.h: Regenerated.
12048 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12049 Change type of 'len' to ULONGEST.
12050 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12051 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12052
12053 2014-01-14 Yao Qi <yao@codesourcery.com>
12054
12055 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12056 type of 'len' to ULONGEST.
12057 (linux_xfer_osdata_processgroups): Likewise.
12058 (linux_xfer_osdata_threads): Likewise.
12059 (linux_xfer_osdata_fds): Likewise.
12060 (linux_xfer_osdata_isockets): Likewise.
12061 (linux_xfer_osdata_shm): Likewise.
12062 (linux_xfer_osdata_sem): Likewise.
12063 (linux_xfer_osdata_msg): Likewise.
12064 (linux_common_xfer_osdata): Likewise.
12065 (struct osdata_type) <getter>: Likewise.
12066 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12067 the declaration.
12068
12069 2014-01-14 Yao Qi <yao@codesourcery.com>
12070
12071 * target.h (target_xfer_partial_ftype): Update.
12072 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12073 ULONGEST.
12074 * aix-thread.c (aix_thread_xfer_partial): Change type of
12075 argument 'len' to ULONGEST.
12076 * auxv.c (procfs_xfer_auxv): Likewise.
12077 (ld_so_xfer_auxv): Likewise.
12078 (memory_xfer_auxv): Likewise.
12079 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12080 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12081 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12082 * corelow.c (core_xfer_partial): Likewise.
12083 * ctf.c (ctf_xfer_partial): Likewise.
12084 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12085 '%u'.
12086 (darwin_read_dyld_info): Likewise.
12087 (darwin_xfer_partial): Likewise.
12088 * exec.c (section_table_xfer_memory_partial): Likewise.
12089 (exec_xfer_partial): Likewise.
12090 * exec.h (section_table_xfer_memory_partial): Update
12091 declaration.
12092 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12093 instead of plongest.
12094 (gnu_xfer_partial): Likewise.
12095 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12096 (ia64_hpux_xfer_solib_got): Likewise.
12097 (ia64_hpux_xfer_partial): Likewise.
12098 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12099 * inf-ptrace.c (inf_ptrace_xfer_partial):
12100 * inf-ttrace.c (inf_ttrace_xfer_partial):
12101 * linux-nat.c (linux_xfer_siginfo): Likewise.
12102 (linux_nat_xfer_partial): Likewise.
12103 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12104 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12105 * monitor.c (monitor_xfer_memory): Likewise.
12106 (monitor_xfer_partial): Likewise.
12107 * procfs.c (procfs_xfer_partial): Likewise.
12108 * record-full.c (record_full_xfer_partial): Likewise.
12109 (record_full_core_xfer_partial): Likewise.
12110 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12111 instead of plongest.
12112 (gdbsim_xfer_partial): Likewise.
12113 * remote.c (remote_xfer_partial): Likewise.
12114 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12115 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12116 declaration.
12117 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12118 (rs6000_xfer_shared_libraries): Likewise.
12119 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12120 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12121 (sparc_xfer_partial): Likewise.
12122 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12123 (spu_xfer_partial): Likewise.
12124 * spu-multiarch.c (spu_xfer_partial): Likewise.
12125 * target.c (target_read_live_memory): Likewise.
12126 (memory_xfer_live_readonly_partial): Likewise.
12127 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12128 (target_xfer_partial, default_xfer_partial): Likewise.
12129 (current_xfer_partial): Likewise.
12130 * tracepoint.c (tfile_xfer_partial): Likewise.
12131 * windows-nat.c (windows_xfer_memory): Likewise. Call
12132 pulongest instead of plongest.
12133 (windows_xfer_partial): Likewise.
12134 (windows_xfer_shared_libraries): Likewise.
12135
12136 2014-01-14 Yao Qi <yao@codesourcery.com>
12137
12138 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12139 target_xfer_partial_ftype.
12140
12141 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12142
12143 PR python/15464
12144 PR python/16113
12145 * valops.c (value_struct_elt_bitpos): New function
12146 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12147 object to 'None' if the field name is an empty string ("").
12148 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12149 attribute to look for a field when 'name' is 'None'.
12150 (get_field_type): New function
12151
12152 2014-01-13 Doug Evans <dje@google.com>
12153
12154 PR symtab/16426
12155 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12156 (try_open_dwop_file): Ditto.
12157 * gdb_bfd.c: #include "vec.h".
12158 (bfdp): New typedef.
12159 (struct gdb_bfd_data): New member included_bfds.
12160 (gdb_bfd_unref): Unref all included bfds.
12161 (gdb_bfd_record_inclusion): New function.
12162 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12163
12164 2014-01-13 Tom Tromey <tromey@redhat.com>
12165
12166 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12167
12168 2014-01-13 Tom Tromey <tromey@redhat.com>
12169
12170 * defs.h (use_windows): Remove.
12171 * gdb.c (main): Update.
12172 * main.c (captured_main, gdb_main): Update.
12173 * main.h (struct captured_main_args) <use_windows>: Remove.
12174 * top.c (use_windows): Remove.
12175
12176 2014-01-13 Tom Tromey <tromey@redhat.com>
12177
12178 * defs.h (deprecated_flush_hook): Remove.
12179
12180 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12181
12182 PR threads/16216
12183 * linux-thread-db.c (try_thread_db_load): Add parameter
12184 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12185 (try_thread_db_load_from_pdir_1): Move it there from here.
12186 (try_thread_db_load_from_sdir): Update caller.
12187 (try_thread_db_load_from_dir): Move it there from here.
12188
12189 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12190
12191 * regformats/regdat.sh: Always rewrite the register file.
12192
12193 2014-01-13 Pedro Alves <palves@redhat.com>
12194
12195 * Makefile.in (CHECK_HEADERS): New variable.
12196 (check-headers:): New rule.
12197
12198 2014-01-13 Tom Tromey <tromey@redhat.com>
12199
12200 * cli/cli-setshow.c (do_set_command): Update.
12201 * defs.h (deprecated_set_hook): Remove.
12202 * top.c (deprecated_set_hook): Remove.
12203
12204 2014-01-13 Pedro Alves <palves@redhat.com>
12205
12206 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12207 the tracepoint if the PC is a pseudo-register.
12208
12209 2014-01-13 Tom Tromey <tromey@redhat.com>
12210
12211 * defs.h (XCALLOC): Remove.
12212 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12213 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12214 * dwarf2loc.c (allocate_piece_closure): Likewise.
12215 * elfread.c (elf_symfile_segments): Likewise.
12216 (elf_symfile_segments): Likewise.
12217 * gdbtypes.c (copy_type_recursive): Likewise.
12218 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12219 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12220 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12221 XCALLOC.
12222 * mt-tdep.c (mt_gdbarch_init): Likewise.
12223 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12224 XCALLOC.
12225 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12226 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12227 * registry.c (registry_alloc_data): Likewise.
12228 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12229 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12230 * serial.c (serial_fdopen_ops): Likewise.
12231 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12232 XCALLOC.
12233 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12234 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12235 not XCALLOC.
12236
12237 2014-01-13 Tom Tromey <tromey@redhat.com>
12238
12239 * defs.h (XMALLOC): Remove.
12240 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12241 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12242 * cli-out.c (struct ui_out *): Likewise.
12243 * cli/cli-dump.c (add_dump_command): Likewise.
12244 (add_dump_command): Likewise.
12245 * complaints.c (get_complaints): Likewise.
12246 (find_complaint): Likewise.
12247 * dwarf2-frame.c (execute_cfa_program): Likewise.
12248 * dwarf2read.c (abbrev_table_read_table): Likewise.
12249 * gdbarch.sh: Likewise.
12250 * gdbarch.c: Rebuild.
12251 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12252 * interps.c (interp_new): Likewise.
12253 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12254 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12255 * mi/mi-console.c (mi_console_file_new): Likewise.
12256 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12257 * mi/mi-out.c (mi_out_new): Likewise.
12258 * mi/mi-parse.c (mi_parse): Likewise.
12259 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12260 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12261 * observer.c (xalloc_observer_list_node): Likewise.
12262 * regcache.c (regcache_xmalloc_1): Likewise.
12263 * reggroups.c (reggroup_new): Likewise.
12264 (_initialize_reggroup): Likewise.
12265 * registry.c (register_data_with_cleanup): Likewise.
12266 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12267 * ser-base.c (serial_ttystate): Likewise.
12268 * ser-mingw.c (make_pipe_state): Likewise.
12269 * ser-pipe.c (pipe_open): Likewise.
12270 * serial.c (serial_open): Likewise.
12271 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12272 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12273 (tui_alloc_win_info): Likewise.
12274 (tui_add_content_elements): Likewise.
12275 * tui/tui-file.c (tui_file_new): Likewise.
12276 * tui/tui-out.c (tui_out_new): Likewise.
12277 * ui-file.c (mem_file_new): Likewise.
12278 * ui-out.c (push_level): Likewise.
12279 (make_cleanup_ui_out_end): Likewise.
12280 (append_header_to_list): Likewise.
12281 (ui_out_new): Likewise.
12282 * user-regs.c (user_reg_add_builtin): Likewise.
12283
12284 2014-01-13 Tom Tromey <tromey@redhat.com>
12285
12286 * defs.h (XZALLOC): Remove.
12287 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12288 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12289 (get_ada_tasks_inferior_data): Likewise.
12290 * auto-load.c (get_auto_load_pspace_data): Likewise.
12291 * auxv.c (get_auxv_inferior_data): Likewise.
12292 * bfd-target.c (target_bfd_reopen): Likewise.
12293 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12294 (deprecated_insert_raw_breakpoint): Likewise.
12295 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12296 * corelow.c (core_open): Likewise.
12297 * darwin-nat.c (darwin_check_new_threads): Likewise.
12298 (darwin_attach_pid): Likewise.
12299 * dummy-frame.c (dummy_frame_push): Likewise.
12300 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12301 * dwarf2loc.c (allocate_piece_closure): Likewise.
12302 * elfread.c (elf_symfile_segments): Likewise.
12303 * eval.c (ptrmath_type_p): Likewise.
12304 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12305 * gdbtypes.c (alloc_type_arch): Likewise.
12306 (alloc_type_instance): Likewise.
12307 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12308 * inf-child.c (inf_child_can_use_agent): Likewise.
12309 * inflow.c (get_inflow_inferior_data): Likewise.
12310 * infrun.c (save_infcall_suspend_state): Likewise.
12311 * jit.c (jit_reader_load): Likewise.
12312 (get_jit_objfile_data): Likewise.
12313 (get_jit_program_space_data): Likewise.
12314 (jit_object_open_impl): Likewise.
12315 (jit_symtab_open_impl): Likewise.
12316 (jit_block_open_impl): Likewise.
12317 (jit_frame_sniffer): Likewise.
12318 * linux-fork.c (add_fork): Likewise.
12319 * maint.c (make_command_stats_cleanup): Likewise.
12320 * objfiles.c (get_objfile_pspace_data): Likewise.
12321 * opencl-lang.c (struct lval_closure): Likewise.
12322 * osdata.c (osdata_start_osdata): Likewise.
12323 * progspace.c (new_address_space): Likewise.
12324 (add_program_space): Likewise.
12325 * remote-sim.c (get_sim_inferior_data): Likewise.
12326 * sh-tdep.c (sh_gdbarch_init): Likewise.
12327 * skip.c (Ignore): Likewise.
12328 (skip_delete_command): Likewise.
12329 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12330 (library_list_start_library): Likewise.
12331 (solib_aix_current_sos): Likewise.
12332 * solib-darwin.c (get_darwin_info): Likewise.
12333 (darwin_current_sos): Likewise.
12334 * solib-dsbt.c (get_dsbt_info): Likewise.
12335 * solib-ia64-hpux.c (new_so_list): Likewise.
12336 (ia64_hpux_get_solib_linkage_addr): Likewise.
12337 * solib-spu.c (append_ocl_sos): Likewise.
12338 (spu_current_sos): Likewise.
12339 * solib-svr4.c (get_svr4_info): Likewise.
12340 (svr4_keep_data_in_core): Likewise.
12341 (library_list_start_library): Likewise.
12342 (svr4_default_sos): Likewise.
12343 (svr4_read_so_list): Likewise.
12344 * solib-target.c (library_list_start_library): Likewise.
12345 (solib_target_current_sos): Likewise.
12346 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12347 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12348 * symfile.c (default_symfile_segments): Likewise.
12349 * target-descriptions.c (tdesc_data_init): Likewise.
12350 (tdesc_create_reg): Likewise.
12351 (struct tdesc_type *): Likewise.
12352 (tdesc_create_vector): Likewise.
12353 (tdesc_set_struct_size): Likewise.
12354 (struct tdesc_type *): Likewise.
12355 (tdesc_free_feature): Likewise.
12356 (tdesc_create_feature): Likewise.
12357 * windows-nat.c (windows_add_thread): Likewise.
12358 (windows_make_so): Likewise.
12359 * xml-support.c (gdb_xml_body_text): Likewise.
12360 (gdb_xml_create_parser_and_cleanup): Likewise.
12361 (xml_process_xincludes): Likewise.
12362 * xml-syscall.c (allocate_syscalls_info): Likewise.
12363 (syscall_create_syscall_desc): Likewise.
12364
12365 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12366
12367 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12368 function, with code from i386_stap_parse_special_token.
12369 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12370 (i386_stap_parse_special_token): Move code to the two functions
12371 above; simplify it.
12372
12373 2014-01-09 Pedro Alves <palves@redhat.com>
12374 Hui Zhu <hui@codesourcery.com>
12375
12376 PR gdb/16101
12377 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12378 bp_err_string. Don't mark the location shlib_disabled if the
12379 error thrown wasn't a generic or memory error. Catch errors
12380 thrown while inserting breakpoints in overlayed code. Output
12381 error message of software breakpoints.
12382 * remote.c (remote_insert_breakpoint): If this breakpoint has
12383 target-side commands but this stub doesn't support Z0 packets,
12384 throw NOT_SUPPORTED_ERROR error.
12385 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12386 * target.h (target_insert_breakpoint): Extend comment.
12387 (target_insert_hw_breakpoint): Add comment.
12388
12389 2014-01-08 Pedro Alves <palves@redhat.com>
12390
12391 * remote.c (remote_add_thread): Add threads silently if starting
12392 up.
12393 (remote_notice_new_inferior): If in all-stop, and starting up,
12394 don't call notice_new_inferior.
12395 (get_current_thread): New function, factored out from ...
12396 (add_current_inferior_and_thread): ... this. Adjust.
12397 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12398 found any thread, then select the remote's current thread as GDB's
12399 current thread too.
12400
12401 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12402
12403 * NEWS: Create a new section for the next release branch.
12404 Rename the section of the current branch, now that it has
12405 been cut.
12406
12407 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12408
12409 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12410 * version.in: Bump version to 7.7.50.DATE-cvs.
12411
12412 2014-01-08 Yao Qi <yao@codesourcery.com>
12413
12414 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12415 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12416 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12417
12418 2014-01-08 Yao Qi <yao@codesourcery.com>
12419
12420 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12421 return value of bfd_get_filename to symbol_file_add_from_bfd.
12422
12423 2014-01-08 Pierre Muller <muller@sourceware.org>
12424
12425 Fix PR16201.
12426 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12427 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12428 to prim_record_mininal_symbol_and_info.
12429 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12430 in call to prim_record_minimal_symbol_and_info.
12431 (read_pe_exported_syms): Set index field of section_data.
12432
12433 2014-01-07 Andrew Pinski <apinski@cavium.com>
12434
12435 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12436 * features/aarch64.c: Regenerate.
12437
12438 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12439
12440 * target.c (return_null): Define.
12441 (update_current_target): Use it instead of return_zero for
12442 functions that return a pointer.
12443
12444 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12445
12446 * source.c (add_path): Fix check for duplicated paths in the previously
12447 included paths.
12448
12449 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12450
12451 * ada-lang.c: Remove duplicated include statements.
12452 * alphabsd-nat.c: Ditto.
12453 * amd64-darwin-tdep.c: Ditto.
12454 * amd64fbsd-nat.c: Ditto.
12455 * auto-load.c: Ditto.
12456 * ax-gdb.c: Ditto.
12457 * breakpoint.c: Ditto.
12458 * dbxread.c: Ditto.
12459 * fork-child.c: Ditto.
12460 * gdb_usleep.c: Ditto.
12461 * i386-darwin-tdep.c: Ditto.
12462 * i386fbsd-nat.c: Ditto.
12463 * infcmd.c: Ditto.
12464 * inferior.c: Ditto.
12465 * jv-lang.c: Ditto.
12466 * linux-nat.c: Ditto.
12467 * linux-tdep.c: Ditto.
12468 * m68kbsd-nat.c: Ditto.
12469 * m68klinux-nat.c: Ditto.
12470 * microblaze-tdep.c: Ditto.
12471 * mips-linux-tdep.c: Ditto.
12472 * mn10300-tdep.c: Ditto.
12473 * nto-tdep.c: Ditto.
12474 * opencl-lang.c: Ditto.
12475 * osdata.c: Ditto.
12476 * printcmd.c: Ditto.
12477 * regcache.c: Ditto.
12478 * remote-m32r-sdi.c: Ditto.
12479 * remote.c: Ditto.
12480 * symfile.c: Ditto.
12481 * symtab.c: Ditto.
12482 * tilegx-linux-nat.c: Ditto.
12483 * tilegx-tdep.c: Ditto.
12484 * tracepoint.c: Ditto.
12485 * valops.c: Ditto.
12486 * vaxbsd-nat.c: Ditto.
12487 * windows-nat.c: Ditto.
12488 * xtensa-tdep.c: Ditto.
12489
12490 2014-01-07 Yao Qi <yao@codesourcery.com>
12491
12492 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12493
12494 2014-01-07 Yao Qi <yao@codesourcery.com>
12495 Joel Brobecker <brobecker@adacore.com>
12496
12497 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12498 (pdc_write_regs): Likewise.
12499 (fetch_regs_kernel_thread): Likewise.
12500 (store_regs_kernel_thread): Likewise.
12501
12502 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12503
12504 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12505 tagged type objects to their actual type.
12506
12507 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12508
12509 * ada-valprint.c (print_field_values): Add "language" parameter.
12510 Update calls to print_field_values and print_variant_part.
12511 Pass new parameter "language" in call to val_print instead
12512 of "current_language". Replace call to ada_val_print by call
12513 to val_print.
12514 (print_variant_part): Add "language" parameter.
12515 (ada_val_print_struct_union): Update call to print_field_values.
12516
12517 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12518
12519 * ada-valprint.c (ui_memcpy): Delete.
12520 (ada_print_floating): Update documentation. Add empty line
12521 between between function documentation and implementation.
12522 Delete variable "buffer". Use ui_file_xstrdup in place of
12523 ui_file_put. Minor adjustments following this change.
12524
12525 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12526
12527 * ada-valprint.c (ada_val_print_string): New function,
12528 extracted from ada_val_print_array.
12529 (ada_val_print_array): Replace extracted code by call
12530 to ada_val_print_string followed by a return. Move
12531 "else" branch to the function's top block.
12532
12533 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12534
12535 * ada-valprint.c (ada_val_print_array): Move implementation
12536 down. Rename parameter "offset" and "val" into "offset_aligned"
12537 and "original_value" respectively. Add parameter "offset".
12538
12539 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12540
12541 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12542 re-organizing the code. Change the "???" message printed
12543 when target type is a TYPE_CODE_UNDEF into
12544 "<ref to undefined type>".
12545
12546 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12547
12548 * ada-valprint.c (print_record): Delete, implementation inlined...
12549 (ada_val_print_struct_union): ... here. Remove call to
12550 ada_check_typedef in inlined implementation.
12551
12552 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12553
12554 * ada-valprint.c (ada_val_print_gnat_array): New function,
12555 extracted from ada_val_print_1;
12556 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12557 (ada_val_print_flt, ada_val_print_struct_union)
12558 (ada_val_print_ref): Likewise.
12559 (ada_val_print_1): Delete variables i and elttype.
12560 Replace extracted-out code by call to corresponding
12561 new functions.
12562
12563 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12564
12565 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12566
12567 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12568
12569 * ada-valprint.c (ada_val_print_1): Replace calls to
12570 ada_val_print_1 by calls to val_print.
12571
12572 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12573
12574 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12575 Update calls to self accordingly. Replace calls to c_val_print
12576 by calls to val_print.
12577
12578 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12579
12580 * ada-valprint.c (print_record): Delete declaration.
12581 (adjust_type_signedness, ada_val_print_1): Likewise.
12582 (ada_val_print): Move function implementation down.
12583 (print_variant_part, print_field_values, print_record):
12584 Move function implementation up.
12585
12586 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12587
12588 * python/py-type.c (typy_get_name): New function.
12589 (type_object_getset): Add entry for attribute "name".
12590 * NEWS: Add entry mentioning this new attribute.
12591
12592 2014-01-07 Yao Qi <yao@codesourcery.com>
12593
12594 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12595 statement.
12596
12597 2014-01-07 Yao Qi <yao@codesourcery.com>
12598
12599 * gnu-nat.c (info_port_rights): Add qualifier const to
12600 argument args.
12601
12602 2014-01-07 Yao Qi <yao@codesourcery.com>
12603
12604 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12605
12606 2014-01-07 Yao Qi <yao@codesourcery.com>
12607
12608 * gnu-nat.c (make_inf) Update declaration.
12609 (make_inf): Make it static.
12610 (inf_set_traced): Likewise.
12611 (inf_port_to_thread, inf_task_died_status): Likewise.
12612
12613 2014-01-07 Yao Qi <yao@codesourcery.com>
12614
12615 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12616
12617 2014-01-07 Yao Qi <yao@codesourcery.com>
12618
12619 * gnu-nat.c (_initialize_gnu_nat): Declare.
12620
12621 2014-01-07 Yao Qi <yao@codesourcery.com>
12622
12623 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12624 'enum bfd_endian'.
12625 (struct gdbarch_info) <byte_order>: Change type to
12626 'enum bfd_endian'.
12627 <byte_order_for_code>: Likewise.
12628 * gdbarch.c, gdbarch.h: Regenerated.
12629
12630 2014-01-06 Sasha Smundak <asmundak@google.com>
12631
12632 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12633
12634 2014-01-06 Tom Tromey <tromey@redhat.com>
12635
12636 * doublest.c (convert_doublest_to_floatformat): Use const, not
12637 CONST.
12638 * somread.c (som_symtab_read): Likewise.
12639
12640 2014-01-07 Hui Zhu <hui@codesourcery.com>
12641
12642 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12643 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12644 (gdb_bfd_fopen): Ditto.
12645 (gdb_bfd_openr): Ditto.
12646 (gdb_bfd_openw): Ditto.
12647 (gdb_bfd_openr_iovec): Ditto.
12648 (gdb_bfd_fdopenr): Ditto.
12649 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12650 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12651 with xstrdup.
12652 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12653 with xstrdup.
12654 * symfile-mem.c (symbol_file_add_from_memory): Removed
12655 gdb_bfd_stash_filename.
12656
12657 2014-01-03 Doug Evans <dje@google.com>
12658
12659 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12660 output.
12661
12662 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12663
12664 Update year range in copyright notice of all files.
12665
12666 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12667
12668 * top.c (print_gdb_version): Set copyright year to 2014.
12669
12670 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12671
12672 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12673
12674 For older changes see ChangeLog-2013.
12675 \f
12676 Local Variables:
12677 mode: change-log
12678 left-margin: 8
12679 fill-column: 74
12680 version-control: never
12681 coding: utf-8
12682 End:
This page took 0.395782 seconds and 4 git commands to generate.