Ada: Print bounds/length of pointer to array with dynamic bounds
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-10 Joel Brobecker <brobecker@adacore.com>
2
3 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
4 dereference it first. Use value_enclosing_type instead of
5 value_type.
6 (ada_array_length): Likewise.
7
8 2014-09-10 Joel Brobecker <brobecker@adacore.com>
9
10 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
11 Adjust function implementation and documentation accordingly.
12 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
13 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
14 Update call to ada_value_ptr_subscript.
15
16 2014-09-10 Joel Brobecker <brobecker@adacore.com>
17
18 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
19 instead of VAL's type.
20
21 2014-09-10 Joel Brobecker <brobecker@adacore.com>
22
23 * amd64-linux-nat.c: Add <sys/uio.h> #include.
24
25 2014-09-09 Doug Evans <xdje42@gmail.com>
26
27 PR guile/17367
28 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
29 last parameter to pkg-config, not first.
30 * configure.ac: Pass --with-guile provided pkg-config path to
31 GDB_GUILE_PROGRAM_NAMES.
32 * configure: Regenerate.
33
34 2014-09-09 Gabriel Krisman Bertazi <gabriel@krisman.be>
35
36 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
37 Bertazi".
38
39 2014-09-09 Maciej W. Rozycki <macro@codesourcery.com>
40
41 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
42 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
43 the list of sections determining GDB_OSABI_IRIX.
44
45 2014-09-09 James Hogan <james.hogan@imgtec.com>
46
47 * MAINTAINERS (Write After Approval): Add "James Hogan".
48
49 2014-09-09 James Hogan <james.hogan@imgtec.com>
50
51 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
52
53 2014-09-09 Joel Brobecker <brobecker@adacore.com>
54
55 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
56
57 2014-09-08 Doug Evans <xdje42@gmail.com>
58
59 PR 17247
60 * guile.c: #include <signal.h>.
61 (_initialize_guile): Block SIGCHLD while initializing Guile.
62
63 Replaces the following, which is reverted.
64
65 2014-07-26 Doug Evans <xdje42@gmail.com>
66
67 PR 17185
68 * configure.ac: Add check for header gc/gc.h.
69 Add check for function setenv.
70 * configure: Regenerate.
71 * config.in: Regenerate.
72 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
73
74 2014-09-08 Doug Evans <xdje42@gmail.com>
75
76 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
77 with named constant. Fix style of pointer comparison.
78 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
79
80 2014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
81
82 PR gdb/17035
83 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
84 decide whether we display the command on "show user".
85 * cli/cli-script.c (show_user_1): Only verify cmdlines after
86 printing command name.
87 * cli/cli-decode.h (cli_user_command_p): Declare new function.
88 * cli/cli-decode.c (cli_user_command_p): Create helper function
89 to verify whether cmd_list_element is a user-defined command.
90
91 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
92
93 PR python/17355
94 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
95 Fix goto out of TRY_CATCH.
96
97 2014-09-06 Doug Evans <xdje42@gmail.com>
98 Tom Tromey <tromey@redhat.com>
99
100 PR 15276
101 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
102 $_any_caller_matches.
103 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
104 * python/lib/gdb/function/caller_is.py: New file.
105
106 2014-09-06 Doug Evans <xdje42@gmail.com>
107
108 * infcmd.c (program_info): Fix typo.
109
110 2014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
111
112 PR gdb/17235
113 * stap-probe.c (stap_parse_single_operand): Delete unused variable
114 'number'. New variable 'has_digit'. Rewrite code to deal with
115 subexpressions on SDT probes.
116
117 2014-09-04 Pedro Alves <palves@redhat.com>
118
119 * c-exp.y (parse_number): Skip handling base-switching prefixes if
120 the input is only one character long.
121
122 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
123
124 PR fortran/17237
125 * f-valprint.c (f_val_print): Specify the correct print option to
126 use when printing integer values.
127
128 2014-09-04 Gary Benson <gbenson@redhat.com>
129
130 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
131 Remove code to cope with LWPs wrapped as PIDs.
132 Add assertions to ensure no wrapped LWPs are passed.
133
134 2014-09-04 Pedro Alves <palves@redhat.com>
135
136 * value.c (value_ranges_copy_adjusted): New function, factored out
137 from ...
138 (value_contents_copy_raw): ... here.
139 (unpack_value_bits_as_long_1): Rename back to ...
140 (unpack_bits_as_long): ... this. Remove 'original_value' and
141 'result' parameters. Change return type to LONGEST.
142 (unpack_value_bits_as_long): Delete.
143 (unpack_value_field_as_long_1): Delete.
144 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
145 (unpack_value_bitfield): New function.
146 (value_field_bitfield): Reimplement using unpack_value_bitfield.
147 (value_fetch_lazy): Use unpack_value_bitfield.
148 * value.h (unpack_value_bits_as_long): Delete declaration.
149
150 2014-09-03 Sasha Smundak <asmundak@google.com>
151
152 * python/py-frame.c (frapy_read_register): New function.
153
154 2014-09-03 James Hogan <james.hogan@imgtec.com>
155
156 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
157 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
158
159 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
160
161 PR python/16699
162 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
163 function.
164 (add_cmd): Set "completer_handle_brkchars" to NULL.
165 * cli/cli-decode.h (struct cmd_list_element)
166 <completer_handle_brkchars>: New field.
167 * command.h (completer_ftype_void): New typedef.
168 (set_cmd_completer_handle_brkchars): New prototype.
169 * completer.c (set_gdb_completion_word_break_characters): New
170 function.
171 (complete_line_internal): Call "completer_handle_brkchars"
172 callback from command.
173 * completer.h: Include "command.h".
174 (set_gdb_completion_word_break_characters): New prototype.
175 * python/py-cmd.c (cmdpy_completer_helper): New function.
176 (cmdpy_completer_handle_brkchars): New function.
177 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
178 (cmdpy_init): Set completer_handle_brkchars to
179 cmdpy_completer_handle_brkchars.
180
181 2014-09-03 Gary Benson <gbenson@redhat.com>
182
183 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
184 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
185 Loop conditions changed to equivalent form.
186 (struct x86_debug_reg_state): Updated dr_ref_count comment.
187 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
188 ALL_DEBUG_ADDRESS_REGISTERS.
189
190 2014-09-03 Joel Brobecker <brobecker@adacore.com>
191
192 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
193 description fix.
194
195 2014-09-02 Doug Evans <dje@google.com>
196
197 * typeprint.c (find_global_typedef): Fix comment.
198
199 2014-09-02 Gary Benson <gbenson@redhat.com>
200
201 * i386-nat.h: Renamed as...
202 * x86-nat.h: New file. All type, function and variable name
203 prefixes changed from "i386_" to "x86_". All references updated.
204 * i386-nat.c: Renamed as...
205 * x86-nat.c: New file. All type, function and variable name
206 prefixes changed from "i386_" to "x86_". All references updated.
207 * common/i386-xstate.h: Renamed as...
208 * common/x86-xstate.h: New file. All type, function and variable
209 name prefixes changed from "i386_" to "x86_". All references
210 updated.
211 * nat/i386-cpuid.h: Renamed as...
212 * nat/x86-cpuid.h: New file. All type, function and variable name
213 prefixes changed from "i386_" to "x86_". All references updated.
214 * nat/i386-gcc-cpuid.h: Renamed as...
215 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
216 name prefixes changed from "i386_" to "x86_". All references
217 updated.
218 * nat/i386-dregs.h: Renamed as...
219 * nat/x86-dregs.h: New file. All type, function and variable name
220 prefixes changed from "i386_" to "x86_". All references updated.
221 * nat/i386-dregs.c: Renamed as...
222 * nat/x86-dregs.c: New file. All type, function and variable name
223 prefixes changed from "i386_" to "x86_". All references updated.
224
225 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
226
227 * varobj.c (_initialize_varobj): Move to the end of file.
228
229 2014-08-29 Gary Benson <gbenson@redhat.com>
230
231 * common/common-exceptions.h: New file.
232 * common/common-exceptions.c: Likewise.
233 * Makefile.in (SFILES): Add common/common-exceptions.c.
234 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
235 (COMMON_OBS): Add common-exceptions.o.
236 (common-exceptions.o): New rule.
237 * exceptions.h (common-exceptions.h): Include.
238 (gdb_setjmp.h): Do not include.
239 (return_reason): Moved to common-exceptions.h.
240 (enum return_reason): Likewise.
241 (RETURN_MASK): Likewise.
242 (typedef return_mask): Likewise.
243 (enum errors): Likewise.
244 (struct gdb_exception): Likewise.
245 (exceptions_state_mc_init): Likewise.
246 (exceptions_state_mc_action_iter): Likewise.
247 (exceptions_state_mc_action_iter_1): Likewise.
248 (TRY_CATCH): Likewise.
249 (throw_exception): Likewise.
250 (throw_verror): Likewise.
251 (throw_vquit): Likewise.
252 (throw_error): Likewise.
253 (throw_quit): Likewise.
254 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
255 (enum catcher_action): Likewise.
256 (struct catcher): Likewise.
257 (current_catcher): Likewise.
258 (catcher_list_size): Likewise.
259 (exceptions_state_mc_init): Likewise.
260 (catcher_pop): Likewise.
261 (exceptions_state_mc): Likewise.
262 (exceptions_state_mc_action_iter): Likewise.
263 (exceptions_state_mc_action_iter_1): Likewise.
264 (throw_exception): Likewise.
265 (exception_messages): Likewise.
266 (exception_messages_size): Likewise.
267 (throw_it): Likewise.
268 (throw_verror): Likewise.
269 (throw_vquit): Likewise.
270 (throw_error): Likewise.
271 (throw_quit): Likewise.
272 (prepare_to_throw_exception): New function.
273
274 2014-08-29 Gary Benson <gbenson@redhat.com>
275
276 * common/gdb_setjmp.h: New file.
277 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
278 * configure.ac: Move sigsetjmp check...
279 * common/common.m4: ...here.
280 * configure: Regenerate.
281 * cp-support.c (SIGJMP_BUF): Delete.
282 (SIGSETJMP): Likewise.
283 (SIGLONGJMP): Likewise.
284 * exceptions.h (gdb_setjmp.h): Include.
285 (setjmp.h): Do not include.
286 (EXCEPTIONS_SIGJMP_BUF): Delete.
287 (EXCEPTIONS_SIGSETJMP): Likewise.
288 (EXCEPTIONS_SIGLONGJMP): Likewise.
289 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
290 from gdb_setjmp.h.
291 * exceptions.c: Likewise.
292
293 2014-08-29 Gary Benson <gbenson@redhat.com>
294
295 * cleanups.h: Moved to...
296 * common/cleanups.h: New file.
297 * cleanups.c: Moved to...
298 * common/cleanups.c: New file. Include common-defs.h and
299 cleanups.h. Do not include defs.h.
300 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
301 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
302 (cleanups.o): New rule.
303
304 2014-08-29 Gary Benson <gbenson@redhat.com>
305
306 * common/errors.h (internal_warning): New declaration.
307 (internal_vwarning): Likewise.
308 * common/errors.c (internal_warning): New function.
309 * utils.h (internal_warning): Don't declare.
310 (internal_vwarning): Likewise.
311 * utils.c (internal_warning): Removed.
312
313 2014-08-29 Gary Benson <gbenson@redhat.com>
314
315 * main.c (captured_main): Use warning during startup.
316 Prefix startup warning messages with command name.
317
318 2014-08-29 Gary Benson <gbenson@redhat.com>
319
320 * main.c (captured_main): Handle usage errors with error.
321
322 2014-08-29 Gary Benson <gbenson@redhat.com>
323
324 * go32-nat.c (go32_create_inferior): Replace a fprintf/
325 exit pair with a call to error. Wrap the message with _().
326
327 2014-08-29 Gary Benson <gbenson@redhat.com>
328
329 * main.c (captured_main): Replace a fprintf/exit
330 pair with a call to error. Wrap the message with _().
331
332 2014-08-29 Gary Benson <gbenson@redhat.com>
333
334 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
335 pairs with calls to error. Wrap the message with _().
336
337 2014-08-29 Gary Benson <gbenson@redhat.com>
338
339 * utils.c (vwarning): Protect calls to target_terminal_ours
340 and wrap_here.
341
342 2014-08-29 Gary Benson <gbenson@redhat.com>
343
344 * exceptions.c (print_flush): Protect calls to
345 target_terminal_ours and wrap_here.
346
347 2014-08-29 Gary Benson <gbenson@redhat.com>
348
349 * utils.h (filtered_printing_initialized): New declaration.
350 * utils.c (abort_with_message): New function.
351 (internal_vproblem): Use abort_with_message for first level
352 recursive internal problems, and if gdb_stderr is not set up.
353 Protect calls to target_terminal_ours, begin_line and query.
354
355 2014-08-28 Doug Evans <dje@google.com>
356
357 * symtab.c (in_prologue): Move definition to better spot.
358 (skip_prologue_using_sal): Ditto.
359
360 2014-08-28 Doug Evans <dje@google.com>
361
362 * symtab.c (find_function_start_sal): Move definition to better spot.
363
364 2014-08-28 Yao Qi <yao@codesourcery.com>
365
366 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
367 found_stack_adjust in forward scan. Remove condition check
368 on found_stack_adjust which is always true. Indent the code.
369
370 2014-08-28 Yao Qi <yao@codesourcery.com>
371
372 * dwarf2read.c (dwarf_decode_lines): Update declaration.
373 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
374 (dwarf_decode_lines): Remove argument
375 want_line_info. Remove condition check on want_line_info.
376 Callers update.
377
378 2014-08-27 Doug Evans <dje@google.com>
379
380 * dwarf2read.c (dwarf_record_line): Fix typo.
381
382 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
383
384 * target.h (struct target_ops::to_terminal_save_ours): Remove
385 declaration.
386 (target_terminal_save_ours): Remove macro.
387 * target-delegates.c: Regenerate.
388 * inf-child.c (inf_child_target): Don't set the nonexistent
389 field to_terminal_save_ours.
390 * inferior.h (child_terminal_save_ours): Remove declaration.
391 * terminal.h (gdb_save_tty_state): New declaration.
392 * inflow.c (child_terminal_save_ours): Rename to ...
393 (gdb_save_tty_state): ... this.
394 * tui/tui.c: Include terminal.h.
395 (tui_enable): Use gdb_save_tty_state instead of
396 target_terminal_save_ours.
397 (tui_disable): Likewise.
398
399 2014-08-25 Doug Evans <dje@google.com>
400
401 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
402 Pass NULL instead of 0 for context pointer.
403
404 2014-08-25 Yao Qi <yao@codesourcery.com>
405
406 * dwarf2read.c: Fix grammatical error.
407
408 2014-08-24 Yao Qi <yao@codesourcery.com>
409
410 * dwarf2read.c (scan_partial_symbols): Update comments.
411 Rename argument 'need_pc' with 'set_addrmap'.
412 (add_partial_namespace): Rename argument 'need_pc' with
413 'set_addrmap'.
414 (add_partial_module): Likewise.
415 (add_partial_subprogram): Likewise. Update comments.
416 (dwarf2_name): Fix typo.
417
418 2014-08-22 Doug Evans <dje@google.com>
419
420 PR 17276
421 * dwarf2read.c (dwarf_record_line_p): New function.
422 (dwarf_decode_lines_1): Ignore subsequent line number entries
423 for the same line if any entry had a non-zero discriminator.
424
425 2014-08-22 Doug Evans <dje@google.com>
426
427 * buildsym.h (record_line_ftype): New typedef.
428 (record_line): Use it.
429 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
430 (dwarf_decode_lines_1): Call them.
431
432 2014-08-22 Yao Qi <yao@codesourcery.com>
433
434 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
435 (ctf_end): Remove code.
436
437 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
438
439 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
440 (linux_make_corefile_notes): call update_thread_list, protected against
441 exceptions.
442
443 2014-08-21 Pedro Alves <palves@redhat.com>
444
445 * infcmd.c (attach_command): Remove comment.
446
447 2014-08-21 Bin Cheng <bin.cheng@arm.com>
448
449 * aarch64-linux-nat.c (dr_changed_t): Change the type from
450 unsigned LONGEST to ULONGEST.
451
452 2014-08-20 Pedro Alves <palves@redhat.com>
453
454 * Makefile.in (check-read1): New rule.
455
456 2014-08-20 Joel Brobecker <brobecker@adacore.com>
457
458 * value.c (value_from_contents_and_address): Strip resolved_type's
459 typedef layers before checking its TYPE_DATA_LOCATION.
460
461 2014-08-20 Pedro Alves <palves@redhat.com>
462
463 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
464
465 2014-08-20 Yao Qi <yao@codesourcery.com>
466
467 * amd64-tdep.c (amd64_classify): Add a blank line after the
468 example. Move "*/" to a new line.
469 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
470 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
471 * dwarf2read.c (psymtab_include_file_name): Likewise.
472
473 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
474 Pedro Alves <palves@redhat.com>
475
476 PR symtab/14604
477 PR symtab/14605
478 * ada-lang.c (coerce_unspec_val_to_type): Use
479 value_contents_copy_raw.
480 * ada-valprint.c (val_print_packed_array_elements): Adjust.
481 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
482 * cp-valprint.c (cp_print_value_fields): Let the common printing
483 code handle optimized out values.
484 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
485 * d-valprint.c (dynamic_array_type): Use
486 value_bits_any_optimized_out.
487 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
488 check_any_valid fields.
489 (check_pieced_value_bits): Delete and inline ...
490 (check_pieced_synthetic_pointer): ... here.
491 (check_pieced_value_validity): Delete.
492 (check_pieced_value_invalid): Delete.
493 (pieced_value_funcs): Remove check_validity and check_any_valid
494 fields.
495 (read_pieced_value): Use mark_value_bits_optimized_out.
496 (write_pieced_value): Switch to use
497 mark_value_bytes_optimized_out.
498 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
499 of assuming the whole value is optimized out.
500 * findvar.c (read_frame_register_value): Remove special handling
501 of optimized out registers.
502 (value_from_register): Use mark_value_bytes_optimized_out.
503 * frame-unwind.c (frame_unwind_got_optimized): Use
504 mark_value_bytes_optimized_out.
505 * jv-valprint.c (java_value_print): Adjust.
506 (java_print_value_fields): Let the common printing code handle
507 optimized out values.
508 * mips-tdep.c (mips_print_register): Remove special handling of
509 optimized out registers.
510 * opencl-lang.c (lval_func_check_validity): Delete.
511 (lval_func_check_any_valid): Delete.
512 (opencl_value_funcs): Remove check_validity and check_any_valid
513 fields.
514 * p-valprint.c (pascal_object_print_value_fields): Let the common
515 printing code handle optimized out values.
516 * stack.c (read_frame_arg): Remove special handling of optimized
517 out values. Fetch both VAL and ENTRYVAL before comparing
518 contents. Adjust to value_available_contents_eq rename.
519 * valprint.c (valprint_check_validity)
520 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
521 (val_print_array_elements): Adjust.
522 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
523 (value_bits_any_optimized_out): New function.
524 (value_entirely_covered_by_range_vector): New function, factored
525 out from value_entirely_unavailable.
526 (value_entirely_unavailable): Reimplement.
527 (value_entirely_optimized_out): New function.
528 (insert_into_bit_range_vector): New function, factored out from
529 mark_value_bits_unavailable.
530 (mark_value_bits_unavailable): Reimplement.
531 (struct ranges_and_idx): New struct.
532 (find_first_range_overlap_and_match): New function, factored out
533 from value_available_contents_bits_eq.
534 (value_available_contents_bits_eq): Rename to ...
535 (value_contents_bits_eq): ... this. Check both unavailable
536 contents and optimized out contents.
537 (value_available_contents_eq): Rename to ...
538 (value_contents_eq): ... this.
539 (allocate_value_lazy): Remove reference to the old optimized_out
540 boolean.
541 (allocate_optimized_out_value): Use
542 mark_value_bytes_optimized_out.
543 (require_not_optimized_out): Adjust to check whether the
544 optimized_out vec is empty.
545 (ranges_copy_adjusted): New function, factored out from
546 value_contents_copy_raw.
547 (value_contents_copy_raw): Also copy the optimized out ranges.
548 Assert the destination ranges aren't optimized out.
549 (value_contents_copy): Update comment, remove call to
550 require_not_optimized_out.
551 (value_contents_equal): Adjust to check whether the optimized_out
552 vec is empty.
553 (set_value_optimized_out, value_optimized_out_const): Delete.
554 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
555 New functions.
556 (value_entirely_optimized_out, value_bits_valid): Delete.
557 (value_copy): Take a VEC copy of the 'optimized_out' field.
558 (value_primitive_field): Remove special handling of optimized out.
559 (value_fetch_lazy): Assert that lazy values have no unavailable
560 regions. Use value_bits_any_optimized_out. Remove some special
561 handling for optimized out values.
562 * value.h: Add intro comment about <optimized out> and
563 <unavailable>.
564 (struct lval_funcs): Remove check_validity and check_any_valid
565 fields.
566 (set_value_optimized_out, value_optimized_out_const): Remove.
567 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
568 New declarations.
569 (value_bits_any_optimized_out): New declaration.
570 (value_bits_valid): Delete declaration.
571 (value_available_contents_eq): Rename to ...
572 (value_contents_eq): ... this, and extend comments.
573
574 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
575
576 Fix -fsanitize=address on unreadable inferior strings.
577 * valprint.c (val_print_string): Fix access before BUFFER.
578
579 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
580
581 * target.c (target_struct_size): Remove.
582 (target_struct_allocsize): Remove.
583 (DEFAULT_ALLOCSIZE): Remove.
584 (target_ops_p): New typedef.
585 (DEF_VEC_P (target_ops_p)): New vector type.
586 (target_structs): Change type to VEC (target_ops_p).
587 (add_target_with_completer): Replace "push" code by VEC_safe_push.
588 (find_default_run_target): Rewrite for loop following changes to
589 target_structs.
590
591 2014-08-19 Joel Brobecker <brobecker@adacore.com>
592
593 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
594 Adjust code accordingly. Adjust function description comment.
595
596 2014-08-19 Yao Qi <yao@codesourcery.com>
597
598 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
599 types.
600
601 2014-08-19 Alan Modra <amodra@gmail.com>
602
603 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
604 * config.in: Regenerate.
605 * configure: Regenerate.
606
607 2014-08-19 Tom Tromey <tromey@redhat.com>
608 Gary Benson <gbenson@redhat.com>
609
610 * common/common-debug.h: New file.
611 * common/common-debug.c: Likewise.
612 * debug.c: Likewise.
613 * Makefile.in (SFILES): Add common/common-debug.c.
614 (HFILES_NO_SRCDIR): Add common/common-debug.h.
615 (COMMON_OBS): Add common-debug.o and debug.o.
616 (common-debug.o): New rule.
617 * common/common-defs.h: Include common-debug.h.
618 * common/agent.c (debug_agent_printf): New function.
619 (DEBUG_AGENT): Redefine.
620 * nat/i386-dregs.c (debug_printf): Undefine.
621
622 2014-08-19 Gary Benson <gbenson@redhat.com>
623
624 * common/common-defs.h: Include print-utils.h.
625 * utils.h: Do not include print-utils.h.
626
627 2014-08-19 Tom Tromey <tromey@redhat.com>
628 Gary Benson <gbenson@redhat.com>
629
630 * common/common-types.h: New file.
631 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
632 * common/common-defs.h: Include common-types.h.
633 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
634 (ULONGEST): Remove.
635
636 2014-08-19 Tom Tromey <tromey@redhat.com>
637 Gary Benson <gbenson@redhat.com>
638
639 * common/errors.h: New file.
640 * common/errors.c: Likewise.
641 * Makefile.in (SFILES): Add common/errors.c.
642 (HFILES_NO_SRCDIR): Add common/errors.h.
643 (COMMON_OBS): Add errors.o.
644 (errors.o): New rule.
645 * common/common-defs.h: Include errors.h.
646 * utils.h (perror_with_name, error, verror, warning, vwarning):
647 Don't declare.
648 * common/common-utils.h: (malloc_failure, internal_error):
649 Likewise.
650
651 2014-08-19 Gary Benson <gbenson@redhat.com>
652
653 * utils.c (internal_vproblem): Always print the message.
654
655 2014-08-18 Doug Evans <dje@google.com>
656
657 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
658
659 2014-08-18 Joel Brobecker <brobecker@adacore.com>
660
661 * ada-typeprint.c (type_is_full_subrange_of_target_type):
662 Return 0 if TYPE is dynamic.
663 (print_range): Add handling of dynamic ranges.
664
665 2014-08-18 Keven Boell <keven.boell@intel.com>
666 Joel Brobecker <brobecker@adacore.com>
667
668 * gdbtypes.h (struct main_type): Add field "data_location".
669 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
670 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
671 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
672 a dynamic data location.
673 (resolve_dynamic_type): Add DW_AT_data_location handling.
674 (copy_recursive, copy_type): Copy the data_location information
675 when present.
676 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
677 * value.c (value_from_contents_and_address): Add
678 DW_AT_data_location handling.
679
680 2014-08-18 Keven Boell <keven.boell@intel.com>
681 Joel Brobecker <brobecker@adacore.com>
682
683 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
684 field "get_object_address".
685 * dwarf2expr.c (execute_stack_op): Add handling for
686 DW_OP_push_object_address.
687 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
688 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
689 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
690 (dwarf_expr_get_obj_addr): New function.
691 (dwarf_expr_ctx_funcs): Add get_object_address field.
692 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
693 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
694 (dwarf2_evaluate_property): Add parameter "address". Use it.
695 (needs_get_obj_addr): New function.
696 (needs_frame_ctx_funcs): Add get_object_address field.
697 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
698 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
699 (resolve_dynamic_array): Likewise.
700
701 2014-08-18 Joel Brobecker <brobecker@adacore.com>
702
703 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
704 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
705 fixed value for records and unions for which some GNAT encodings
706 are present.
707
708 2014-08-18 Joel Brobecker <brobecker@adacore.com>
709
710 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
711 rewrite to avoid "else if" and "else" constructs. Should be
712 a no-op in practice.
713
714 2014-08-18 Joel Brobecker <brobecker@adacore.com>
715
716 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
717 of lexical block.
718
719 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
720
721 PR c++/17132
722 * eval.c: Update all calls to find_overload_match.
723 * valarith.c: Likewise.
724 (value_user_defined_cpp_op, value_user_defined_op): New
725 argument NOSIDE. Update all callers.
726 * valops.c (find_overload_match): New argument NOSIDE.
727 * value.h (find_overload_match): Update signature.
728
729 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
730
731 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
732 'items' methods instead of 'iteritems' method on dictionaries.
733
734 2014-08-15 Doug Evans <dje@google.com>
735
736 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
737 closer to use.
738
739 2014-08-15 Doug Evans <dje@google.com>
740
741 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
742
743 2014-08-15 Doug Evans <dje@google.com>
744
745 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
746
747 2014-08-15 Doug Evans <dje@google.com>
748
749 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
750 unused.
751
752 2014-08-15 Eli Zaretskii <eliz@gnu.org>
753
754 * dcache.h: Include target.h, to avoid compile time warnings.
755
756 2014-08-15 Joel Brobecker <brobecker@adacore.com>
757
758 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
759 frame_info" partial declaration.
760 * gdbarch.h: Regenerate.
761
762 2014-08-15 Yao Qi <yao@codesourcery.com>
763
764 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
765 Add parameter 'decode_for_pst_p'. Callers update.
766
767 2014-08-13 Yao Qi <yao@codesourcery.com>
768
769 PR build/17104
770 * configure.ac: Use local variable 'pos'.
771 * configure: Regenerated.
772
773 2014-08-11 Doug Evans <dje@google.com>
774
775 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
776 message, it is redundant with "Reading symbols from ..." message.
777
778 2014-08-10 Doug Evans <xdje42@gmail.com>
779
780 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
781
782 2014-08-09 Yao Qi <yao@codesourcery.com>
783
784 PR remote/9053
785 * remote.c (remote_xfer_partial): Remove dead code.
786
787 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
788
789 * ia64-linux-tdep.c: Include "regset.h".
790 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
791 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
792 (ia64_linux_supply_fpregset): New function.
793 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
794 (ia64_linux_regset_from_core_section): New function.
795 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
796 method.
797
798 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
799
800 * m68klinux-tdep.c: Include "regset.h".
801 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
802 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
803 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
804 (m68k_linux_regset_from_core_section): New function.
805 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
806 method.
807
808 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
809
810 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
811 function. Move logic to...
812 (tilegx_linux_regmap): ... this new register map.
813 (tilegx_linux_regset): Refer to register map, replace supply
814 method by regcache_supply_regset, and add collect method.
815 * tilegx-tdep.h (enum tilegx_regnum): New enum value
816 TILEGX_FIRST_EASY_REGNUM.
817
818 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
819
820 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
821 that calls regcache_supply_regset and handles the EPC register
822 separately. Move main logic to...
823 (score7_linux_gregmap): ... this new register map.
824 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
825 (score7_linux_gregset): Refer to register map. Add collect method.
826 (score7_linux_regset_from_core_section): Replace
827 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
828 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
829 (struct regset): Delete unused forward declaraction.
830 (struct pt_regs): Delete structure definition.
831 (elf_gregset_t): Delete typedef.
832
833 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
834
835 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
836 (nios2_core_regset): Add collect method.
837
838 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
839
840 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
841 platform-independent and don't write to read-only input buffer.
842 (m32r_linux_collect_gregset): New function.
843 (m32r_linux_gregset): Add collect method.
844
845 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
846
847 * hppa-linux-tdep.c (greg_map): Rename to...
848 (hppa_linux_gregmap): ... this. Also convert to
849 regcache_map_entry format.
850 (hppa_linux_supply_regset): Delete function.
851 (hppa_linux_supply_fpregset): Delete function. Move logic to...
852 (hppa_linux_fpregmap): ... this new register map.
853 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
854 register map, replace supply method by regcache_supply_regset, and
855 add collect method regcache_collect_regset.
856
857 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
858
859 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
860 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
861 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
862 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
863 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
864 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
865 (frv_linux_supply_gregset): Replace main logic by call to
866 regcache_supply_regset, but keep clearing gr32-gr63.
867 (frv_linux_supply_fpregset): Delete function.
868 (frv_linux_gregset): Refer to appropriate register map and add
869 regcache_collect_regset as the collect method.
870 (frv_linux_fpregset): Likewise. Also exchange the supply method
871 by regcache_supply_regset.
872
873 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
874
875 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
876 by call to alpha_supply_int_regs.
877 (alpha_linux_collect_gregset): New function.
878 (alpha_linux_supply_fpregset): Replace logic by call to
879 alpha_supply_fp_regs.
880 (alpha_linux_collect_fpregset): New function.
881 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
882
883 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
884
885 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
886 by call to regcache_collect_regset.
887 (supply_gregset, supply_fpregset): Call regcache_supply_regset
888 instead of aarch64_linux_supply_gregset/_fpregset.
889 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
890 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
891 header file instead.
892 (aarch64_linux_supply_gregset, supply_gregset_from_core)
893 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
894 functions. Move logic to ...
895 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
896 register maps.
897 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
898 refer to new register maps, replace *_regset_from_core by
899 regcache_supply_regset, and also use regcache_collect_regset.
900 * aarch64-linux-tdep.h: Include "regset.h".
901 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
902 Delete prototypes.
903 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
904 macros, moved from C source file.
905 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
906 variable declarations.
907
908 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
909
910 * s390-linux-nat.c: Include "regset.h".
911 (regmap_gregset): Delete macro.
912 (s390_64_regmap_gregset): New register map for
913 regcache_supply/_collect_regset.
914 (s390_64_gregset): New regset.
915 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
916 (regmap_fpregset): Delete macro.
917 (s390_native_supply, s390_native_collect): Delete functions.
918 (supply_gregset, fill_gregset): Replace s390-specific regmap
919 handling by a call to regcache_supply/_collect_regset.
920 (supply_fpregset, fill_fpregset): Call regcache_supply/
921 _collect_regset instead of s390_native_supply/_collect.
922 (fetch_regset, store_regset): Likewise. Also change the last
923 parameter to a regset instead of a regmap.
924 (s390_linux_fetch_inferior_registers)
925 (390_linux_store_inferior_registers): Adjust last parameter in
926 calls to fetch_regset and store_regset.
927 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
928 (s390_gregmap): ... this. Also make static const and convert to
929 regcache_map_entry format.
930 (s390x_regmap_gregset): Delete.
931 (s390_regmap_fpregset): Rename to...
932 (s390_fpregmap): ... this. Make static const and convert to
933 regcache_map_entry format.
934 (s390_regmap_upper, s390_regmap_last_break)
935 (s390x_regmap_last_break, s390_regmap_system_call)
936 (s390_regmap_tdb): Likewise.
937 (s390_supply_regset, s390_collect_regset): Remove functions.
938 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
939 s390_supply_regset.
940 (s390_gregset, s390_fpregset, s390_upper_regset)
941 (s390_last_break_regset, s390x_last_break_regset)
942 (s390_system_call_regset, s390_tdb_regset): Make global and
943 replace s390_supply/_collect_regset by regcache_supply/
944 _collect_regset.
945 (s390x_gregset): Delete.
946 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
947 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
948 (s390_regmap_fpregset, s390_regmap_last_break)
949 (s390x_regmap_last_break, s390_regmap_system_call)
950 (s390_regmap_tdb): Delete global variable declarations.
951 (s390_gregset, s390_fpregset, s390_last_break_regset)
952 (s390x_last_break_regset, s390_system_call_regset)
953 (s390_tdb_regset): New global variable declarations.
954
955 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
956
957 * regcache.c: Include "regset.h".
958 (regcache_transfer_regset): New local function.
959 (regcache_supply_regset, regcache_collect_regset): New functions.
960 * regcache.h (struct regcache_map_entry): New structure.
961 (REGCACHE_MAP_SKIP): New enum value.
962 (regcache_supply_regset, regcache_collect_regset): New prototypes.
963
964 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
965
966 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
967 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
968 (ppc_linux_collect_gregset ): Likewise.
969 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
970 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
971 (ppc_collect_vrregset): Likewise.
972 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
973 Likewise.
974
975 2014-08-07 Yao Qi <yao@codesourcery.com>
976
977 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
978 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
979 * remote.c (remote_read_bytes): Likewise.
980
981 2014-08-07 Yao Qi <yao@codesourcery.com>
982
983 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
984
985 2014-08-07 Yao Qi <yao@codesourcery.com>
986
987 PR remote/17230
988 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
989 TARGET_XFER_OK instead of 0.
990
991 2014-08-07 Gary Benson <gbenson@redhat.com>
992
993 * common/common-defs.h: Include errno.h.
994 * defs.h: Do not include errno.h.
995 * ada-typeprint.c: Likewise.
996 * c-typeprint.c: Likewise.
997 * core-regset.c: Likewise.
998 * corefile.c: Likewise.
999 * corelow.c: Likewise.
1000 * event-loop.c: Likewise.
1001 * f-typeprint.c: Likewise.
1002 * gnu-nat.c: Likewise.
1003 * go32-nat.c: Likewise.
1004 * i386gnu-nat.c: Likewise.
1005 * m2-typeprint.c: Likewise.
1006 * nat/linux-btrace.c: Likewise.
1007 * p-typeprint.c: Likewise.
1008 * procfs.c: Likewise.
1009 * remote-sim.c: Likewise.
1010 * rs6000-nat.c: Likewise.
1011 * target.c: Likewise.
1012 * typeprint.c: Likewise.
1013 * ui-file.c: Likewise.
1014 * valops.c: Likewise.
1015 * valprint.c: Likewise.
1016
1017 2014-08-07 Gary Benson <gbenson@redhat.com>
1018
1019 * common/common-defs.h: Include string.h.
1020 * aarch64-tdep.c: Do not include string.h.
1021 * ada-exp.y: Likewise.
1022 * ada-lang.c: Likewise.
1023 * ada-lex.l: Likewise.
1024 * ada-typeprint.c: Likewise.
1025 * ada-valprint.c: Likewise.
1026 * aix-thread.c: Likewise.
1027 * alpha-linux-tdep.c: Likewise.
1028 * alpha-mdebug-tdep.c: Likewise.
1029 * alpha-nat.c: Likewise.
1030 * alpha-osf1-tdep.c: Likewise.
1031 * alpha-tdep.c: Likewise.
1032 * alphanbsd-tdep.c: Likewise.
1033 * amd64-dicos-tdep.c: Likewise.
1034 * amd64-linux-tdep.c: Likewise.
1035 * amd64-nat.c: Likewise.
1036 * amd64-sol2-tdep.c: Likewise.
1037 * amd64fbsd-tdep.c: Likewise.
1038 * amd64obsd-tdep.c: Likewise.
1039 * arch-utils.c: Likewise.
1040 * arm-linux-nat.c: Likewise.
1041 * arm-linux-tdep.c: Likewise.
1042 * arm-tdep.c: Likewise.
1043 * arm-wince-tdep.c: Likewise.
1044 * armbsd-tdep.c: Likewise.
1045 * armnbsd-nat.c: Likewise.
1046 * armnbsd-tdep.c: Likewise.
1047 * armobsd-tdep.c: Likewise.
1048 * avr-tdep.c: Likewise.
1049 * ax-gdb.c: Likewise.
1050 * ax-general.c: Likewise.
1051 * bcache.c: Likewise.
1052 * bfin-tdep.c: Likewise.
1053 * breakpoint.c: Likewise.
1054 * build-id.c: Likewise.
1055 * buildsym.c: Likewise.
1056 * c-exp.y: Likewise.
1057 * c-lang.c: Likewise.
1058 * c-typeprint.c: Likewise.
1059 * c-valprint.c: Likewise.
1060 * charset.c: Likewise.
1061 * cli-out.c: Likewise.
1062 * cli/cli-cmds.c: Likewise.
1063 * cli/cli-decode.c: Likewise.
1064 * cli/cli-dump.c: Likewise.
1065 * cli/cli-interp.c: Likewise.
1066 * cli/cli-logging.c: Likewise.
1067 * cli/cli-script.c: Likewise.
1068 * cli/cli-setshow.c: Likewise.
1069 * cli/cli-utils.c: Likewise.
1070 * coffread.c: Likewise.
1071 * common/agent.c: Likewise.
1072 * common/buffer.c: Likewise.
1073 * common/buffer.h: Likewise.
1074 * common/common-utils.c: Likewise.
1075 * common/filestuff.c: Likewise.
1076 * common/filestuff.c: Likewise.
1077 * common/format.c: Likewise.
1078 * common/print-utils.c: Likewise.
1079 * common/rsp-low.c: Likewise.
1080 * common/signals.c: Likewise.
1081 * common/vec.h: Likewise.
1082 * common/xml-utils.c: Likewise.
1083 * core-regset.c: Likewise.
1084 * corefile.c: Likewise.
1085 * corelow.c: Likewise.
1086 * cp-abi.c: Likewise.
1087 * cp-name-parser.y: Likewise.
1088 * cp-support.c: Likewise.
1089 * cp-valprint.c: Likewise.
1090 * cris-tdep.c: Likewise.
1091 * d-exp.y: Likewise.
1092 * darwin-nat.c: Likewise.
1093 * dbxread.c: Likewise.
1094 * dcache.c: Likewise.
1095 * demangle.c: Likewise.
1096 * dicos-tdep.c: Likewise.
1097 * disasm.c: Likewise.
1098 * doublest.c: Likewise.
1099 * dsrec.c: Likewise.
1100 * dummy-frame.c: Likewise.
1101 * dwarf2-frame.c: Likewise.
1102 * dwarf2loc.c: Likewise.
1103 * dwarf2read.c: Likewise.
1104 * elfread.c: Likewise.
1105 * environ.c: Likewise.
1106 * eval.c: Likewise.
1107 * event-loop.c: Likewise.
1108 * exceptions.c: Likewise.
1109 * exec.c: Likewise.
1110 * expprint.c: Likewise.
1111 * f-exp.y: Likewise.
1112 * f-lang.c: Likewise.
1113 * f-typeprint.c: Likewise.
1114 * f-valprint.c: Likewise.
1115 * fbsd-nat.c: Likewise.
1116 * findcmd.c: Likewise.
1117 * findvar.c: Likewise.
1118 * fork-child.c: Likewise.
1119 * frame.c: Likewise.
1120 * frv-linux-tdep.c: Likewise.
1121 * frv-tdep.c: Likewise.
1122 * gdb.c: Likewise.
1123 * gdb_bfd.c: Likewise.
1124 * gdbarch.c: Likewise.
1125 * gdbarch.sh: Likewise.
1126 * gdbtypes.c: Likewise.
1127 * gnu-nat.c: Likewise.
1128 * gnu-v2-abi.c: Likewise.
1129 * gnu-v3-abi.c: Likewise.
1130 * go-exp.y: Likewise.
1131 * go-lang.c: Likewise.
1132 * go32-nat.c: Likewise.
1133 * guile/guile.c: Likewise.
1134 * guile/scm-auto-load.c: Likewise.
1135 * hppa-hpux-tdep.c: Likewise.
1136 * hppa-linux-nat.c: Likewise.
1137 * hppanbsd-tdep.c: Likewise.
1138 * hppaobsd-tdep.c: Likewise.
1139 * i386-cygwin-tdep.c: Likewise.
1140 * i386-dicos-tdep.c: Likewise.
1141 * i386-linux-tdep.c: Likewise.
1142 * i386-nto-tdep.c: Likewise.
1143 * i386-sol2-tdep.c: Likewise.
1144 * i386-tdep.c: Likewise.
1145 * i386bsd-tdep.c: Likewise.
1146 * i386gnu-nat.c: Likewise.
1147 * i386nbsd-tdep.c: Likewise.
1148 * i386obsd-tdep.c: Likewise.
1149 * i387-tdep.c: Likewise.
1150 * ia64-libunwind-tdep.c: Likewise.
1151 * ia64-linux-nat.c: Likewise.
1152 * inf-child.c: Likewise.
1153 * inf-ptrace.c: Likewise.
1154 * inf-ttrace.c: Likewise.
1155 * infcall.c: Likewise.
1156 * infcmd.c: Likewise.
1157 * inflow.c: Likewise.
1158 * infrun.c: Likewise.
1159 * interps.c: Likewise.
1160 * iq2000-tdep.c: Likewise.
1161 * irix5-nat.c: Likewise.
1162 * jv-exp.y: Likewise.
1163 * jv-lang.c: Likewise.
1164 * jv-typeprint.c: Likewise.
1165 * jv-valprint.c: Likewise.
1166 * language.c: Likewise.
1167 * linux-fork.c: Likewise.
1168 * linux-nat.c: Likewise.
1169 * lm32-tdep.c: Likewise.
1170 * m2-exp.y: Likewise.
1171 * m2-typeprint.c: Likewise.
1172 * m32c-tdep.c: Likewise.
1173 * m32r-linux-nat.c: Likewise.
1174 * m32r-linux-tdep.c: Likewise.
1175 * m32r-rom.c: Likewise.
1176 * m32r-tdep.c: Likewise.
1177 * m68hc11-tdep.c: Likewise.
1178 * m68k-tdep.c: Likewise.
1179 * m68kbsd-tdep.c: Likewise.
1180 * m68klinux-nat.c: Likewise.
1181 * m68klinux-tdep.c: Likewise.
1182 * m88k-tdep.c: Likewise.
1183 * machoread.c: Likewise.
1184 * macrocmd.c: Likewise.
1185 * main.c: Likewise.
1186 * mdebugread.c: Likewise.
1187 * mem-break.c: Likewise.
1188 * memattr.c: Likewise.
1189 * memory-map.c: Likewise.
1190 * mep-tdep.c: Likewise.
1191 * mi/mi-cmd-break.c: Likewise.
1192 * mi/mi-cmd-disas.c: Likewise.
1193 * mi/mi-cmd-env.c: Likewise.
1194 * mi/mi-cmd-stack.c: Likewise.
1195 * mi/mi-cmd-var.c: Likewise.
1196 * mi/mi-cmds.c: Likewise.
1197 * mi/mi-console.c: Likewise.
1198 * mi/mi-getopt.c: Likewise.
1199 * mi/mi-interp.c: Likewise.
1200 * mi/mi-main.c: Likewise.
1201 * mi/mi-parse.c: Likewise.
1202 * microblaze-rom.c: Likewise.
1203 * microblaze-tdep.c: Likewise.
1204 * mingw-hdep.c: Likewise.
1205 * minidebug.c: Likewise.
1206 * minsyms.c: Likewise.
1207 * mips-irix-tdep.c: Likewise.
1208 * mips-linux-tdep.c: Likewise.
1209 * mips-tdep.c: Likewise.
1210 * mips64obsd-tdep.c: Likewise.
1211 * mipsnbsd-tdep.c: Likewise.
1212 * mipsread.c: Likewise.
1213 * mn10300-linux-tdep.c: Likewise.
1214 * mn10300-tdep.c: Likewise.
1215 * monitor.c: Likewise.
1216 * moxie-tdep.c: Likewise.
1217 * mt-tdep.c: Likewise.
1218 * nat/linux-btrace.c: Likewise.
1219 * nat/linux-osdata.c: Likewise.
1220 * nat/linux-procfs.c: Likewise.
1221 * nat/linux-ptrace.c: Likewise.
1222 * nat/linux-waitpid.c: Likewise.
1223 * nbsd-tdep.c: Likewise.
1224 * nios2-linux-tdep.c: Likewise.
1225 * nto-procfs.c: Likewise.
1226 * nto-tdep.c: Likewise.
1227 * objc-lang.c: Likewise.
1228 * objfiles.c: Likewise.
1229 * opencl-lang.c: Likewise.
1230 * osabi.c: Likewise.
1231 * osdata.c: Likewise.
1232 * p-exp.y: Likewise.
1233 * p-lang.c: Likewise.
1234 * p-typeprint.c: Likewise.
1235 * parse.c: Likewise.
1236 * posix-hdep.c: Likewise.
1237 * ppc-linux-nat.c: Likewise.
1238 * ppc-sysv-tdep.c: Likewise.
1239 * ppcfbsd-tdep.c: Likewise.
1240 * ppcnbsd-tdep.c: Likewise.
1241 * ppcobsd-tdep.c: Likewise.
1242 * printcmd.c: Likewise.
1243 * procfs.c: Likewise.
1244 * prologue-value.c: Likewise.
1245 * python/py-auto-load.c: Likewise.
1246 * python/py-gdb-readline.c: Likewise.
1247 * ravenscar-thread.c: Likewise.
1248 * regcache.c: Likewise.
1249 * registry.c: Likewise.
1250 * remote-fileio.c: Likewise.
1251 * remote-m32r-sdi.c: Likewise.
1252 * remote-mips.c: Likewise.
1253 * remote-notif.c: Likewise.
1254 * remote-sim.c: Likewise.
1255 * remote.c: Likewise.
1256 * reverse.c: Likewise.
1257 * rs6000-aix-tdep.c: Likewise.
1258 * ser-base.c: Likewise.
1259 * ser-go32.c: Likewise.
1260 * ser-mingw.c: Likewise.
1261 * ser-pipe.c: Likewise.
1262 * ser-tcp.c: Likewise.
1263 * ser-unix.c: Likewise.
1264 * serial.c: Likewise.
1265 * sh-tdep.c: Likewise.
1266 * sh64-tdep.c: Likewise.
1267 * shnbsd-tdep.c: Likewise.
1268 * skip.c: Likewise.
1269 * sol-thread.c: Likewise.
1270 * solib-dsbt.c: Likewise.
1271 * solib-frv.c: Likewise.
1272 * solib-osf.c: Likewise.
1273 * solib-som.c: Likewise.
1274 * solib-spu.c: Likewise.
1275 * solib-target.c: Likewise.
1276 * solib.c: Likewise.
1277 * somread.c: Likewise.
1278 * source.c: Likewise.
1279 * sparc-nat.c: Likewise.
1280 * sparc-sol2-tdep.c: Likewise.
1281 * sparc-tdep.c: Likewise.
1282 * sparc64-tdep.c: Likewise.
1283 * sparc64fbsd-tdep.c: Likewise.
1284 * sparc64nbsd-tdep.c: Likewise.
1285 * sparcnbsd-tdep.c: Likewise.
1286 * spu-linux-nat.c: Likewise.
1287 * spu-multiarch.c: Likewise.
1288 * spu-tdep.c: Likewise.
1289 * stabsread.c: Likewise.
1290 * stack.c: Likewise.
1291 * std-regs.c: Likewise.
1292 * symfile.c: Likewise.
1293 * symmisc.c: Likewise.
1294 * symtab.c: Likewise.
1295 * target.c: Likewise.
1296 * thread.c: Likewise.
1297 * tilegx-linux-nat.c: Likewise.
1298 * tilegx-tdep.c: Likewise.
1299 * top.c: Likewise.
1300 * tracepoint.c: Likewise.
1301 * tui/tui-command.c: Likewise.
1302 * tui/tui-data.c: Likewise.
1303 * tui/tui-disasm.c: Likewise.
1304 * tui/tui-file.c: Likewise.
1305 * tui/tui-layout.c: Likewise.
1306 * tui/tui-out.c: Likewise.
1307 * tui/tui-regs.c: Likewise.
1308 * tui/tui-source.c: Likewise.
1309 * tui/tui-stack.c: Likewise.
1310 * tui/tui-win.c: Likewise.
1311 * tui/tui-windata.c: Likewise.
1312 * tui/tui-winsource.c: Likewise.
1313 * typeprint.c: Likewise.
1314 * ui-file.c: Likewise.
1315 * ui-out.c: Likewise.
1316 * user-regs.c: Likewise.
1317 * utils.c: Likewise.
1318 * v850-tdep.c: Likewise.
1319 * valarith.c: Likewise.
1320 * valops.c: Likewise.
1321 * valprint.c: Likewise.
1322 * value.c: Likewise.
1323 * varobj.c: Likewise.
1324 * vax-tdep.c: Likewise.
1325 * vaxnbsd-tdep.c: Likewise.
1326 * vaxobsd-tdep.c: Likewise.
1327 * windows-nat.c: Likewise.
1328 * xcoffread.c: Likewise.
1329 * xml-support.c: Likewise.
1330 * xstormy16-tdep.c: Likewise.
1331 * xtensa-linux-nat.c: Likewise.
1332
1333 2014-08-07 Gary Benson <gbenson@redhat.com>
1334
1335 * common/common-defs.h: Include gdb_assert.h.
1336 * aarch64-tdep.c: Do not include gdb_assert.h.
1337 * addrmap.c: Likewise.
1338 * aix-thread.c: Likewise.
1339 * alpha-linux-tdep.c: Likewise.
1340 * alpha-mdebug-tdep.c: Likewise.
1341 * alphanbsd-tdep.c: Likewise.
1342 * amd64-nat.c: Likewise.
1343 * amd64-tdep.c: Likewise.
1344 * amd64bsd-nat.c: Likewise.
1345 * amd64fbsd-nat.c: Likewise.
1346 * amd64fbsd-tdep.c: Likewise.
1347 * amd64nbsd-nat.c: Likewise.
1348 * amd64nbsd-tdep.c: Likewise.
1349 * amd64obsd-nat.c: Likewise.
1350 * amd64obsd-tdep.c: Likewise.
1351 * arch-utils.c: Likewise.
1352 * arm-tdep.c: Likewise.
1353 * armbsd-tdep.c: Likewise.
1354 * auxv.c: Likewise.
1355 * bcache.c: Likewise.
1356 * bfin-tdep.c: Likewise.
1357 * blockframe.c: Likewise.
1358 * breakpoint.c: Likewise.
1359 * bsd-kvm.c: Likewise.
1360 * bsd-uthread.c: Likewise.
1361 * buildsym.c: Likewise.
1362 * c-exp.y: Likewise.
1363 * c-lang.c: Likewise.
1364 * charset.c: Likewise.
1365 * cleanups.c: Likewise.
1366 * cli-out.c: Likewise.
1367 * cli/cli-decode.c: Likewise.
1368 * cli/cli-dump.c: Likewise.
1369 * cli/cli-logging.c: Likewise.
1370 * cli/cli-script.c: Likewise.
1371 * cli/cli-utils.c: Likewise.
1372 * coffread.c: Likewise.
1373 * common/common-utils.c: Likewise.
1374 * common/queue.h: Likewise.
1375 * common/signals.c: Likewise.
1376 * common/vec.h: Likewise.
1377 * complaints.c: Likewise.
1378 * completer.c: Likewise.
1379 * corelow.c: Likewise.
1380 * cp-abi.c: Likewise.
1381 * cp-name-parser.y: Likewise.
1382 * cp-namespace.c: Likewise.
1383 * cp-support.c: Likewise.
1384 * cris-tdep.c: Likewise.
1385 * dbxread.c: Likewise.
1386 * dictionary.c: Likewise.
1387 * doublest.c: Likewise.
1388 * dsrec.c: Likewise.
1389 * dummy-frame.c: Likewise.
1390 * dwarf2-frame-tailcall.c: Likewise.
1391 * dwarf2-frame.c: Likewise.
1392 * dwarf2expr.c: Likewise.
1393 * dwarf2loc.c: Likewise.
1394 * dwarf2read.c: Likewise.
1395 * eval.c: Likewise.
1396 * event-loop.c: Likewise.
1397 * exceptions.c: Likewise.
1398 * expprint.c: Likewise.
1399 * f-valprint.c: Likewise.
1400 * fbsd-nat.c: Likewise.
1401 * findvar.c: Likewise.
1402 * frame-unwind.c: Likewise.
1403 * frame.c: Likewise.
1404 * frv-tdep.c: Likewise.
1405 * gcore.c: Likewise.
1406 * gdb-dlfcn.c: Likewise.
1407 * gdb_bfd.c: Likewise.
1408 * gdbarch.c: Likewise.
1409 * gdbarch.sh: Likewise.
1410 * gdbtypes.c: Likewise.
1411 * gnu-nat.c: Likewise.
1412 * gnu-v3-abi.c: Likewise.
1413 * go-lang.c: Likewise.
1414 * guile/scm-exception.c: Likewise.
1415 * guile/scm-gsmob.c: Likewise.
1416 * guile/scm-lazy-string.c: Likewise.
1417 * guile/scm-math.c: Likewise.
1418 * guile/scm-pretty-print.c: Likewise.
1419 * guile/scm-safe-call.c: Likewise.
1420 * guile/scm-utils.c: Likewise.
1421 * guile/scm-value.c: Likewise.
1422 * h8300-tdep.c: Likewise.
1423 * hppa-hpux-nat.c: Likewise.
1424 * hppa-tdep.c: Likewise.
1425 * hppanbsd-tdep.c: Likewise.
1426 * hppaobsd-tdep.c: Likewise.
1427 * i386-darwin-nat.c: Likewise.
1428 * i386-darwin-tdep.c: Likewise.
1429 * i386-nto-tdep.c: Likewise.
1430 * i386-tdep.c: Likewise.
1431 * i386bsd-nat.c: Likewise.
1432 * i386fbsd-tdep.c: Likewise.
1433 * i386gnu-nat.c: Likewise.
1434 * i386nbsd-tdep.c: Likewise.
1435 * i386obsd-tdep.c: Likewise.
1436 * i387-tdep.c: Likewise.
1437 * ia64-libunwind-tdep.c: Likewise.
1438 * ia64-tdep.c: Likewise.
1439 * inf-ptrace.c: Likewise.
1440 * inf-ttrace.c: Likewise.
1441 * infcall.c: Likewise.
1442 * infcmd.c: Likewise.
1443 * infrun.c: Likewise.
1444 * inline-frame.c: Likewise.
1445 * interps.c: Likewise.
1446 * jv-lang.c: Likewise.
1447 * jv-typeprint.c: Likewise.
1448 * linux-fork.c: Likewise.
1449 * linux-nat.c: Likewise.
1450 * linux-thread-db.c: Likewise.
1451 * m32c-tdep.c: Likewise.
1452 * m32r-linux-nat.c: Likewise.
1453 * m32r-tdep.c: Likewise.
1454 * m68k-tdep.c: Likewise.
1455 * m68kbsd-nat.c: Likewise.
1456 * m68kbsd-tdep.c: Likewise.
1457 * m88k-tdep.c: Likewise.
1458 * machoread.c: Likewise.
1459 * macroexp.c: Likewise.
1460 * macrotab.c: Likewise.
1461 * maint.c: Likewise.
1462 * mdebugread.c: Likewise.
1463 * memory-map.c: Likewise.
1464 * mep-tdep.c: Likewise.
1465 * mi/mi-common.c: Likewise.
1466 * microblaze-tdep.c: Likewise.
1467 * mingw-hdep.c: Likewise.
1468 * mips-linux-nat.c: Likewise.
1469 * mips-linux-tdep.c: Likewise.
1470 * mips-tdep.c: Likewise.
1471 * mips64obsd-tdep.c: Likewise.
1472 * mipsnbsd-tdep.c: Likewise.
1473 * mn10300-linux-tdep.c: Likewise.
1474 * mn10300-tdep.c: Likewise.
1475 * moxie-tdep.c: Likewise.
1476 * mt-tdep.c: Likewise.
1477 * nat/linux-btrace.c: Likewise.
1478 * nat/linux-osdata.c: Likewise.
1479 * nat/linux-ptrace.c: Likewise.
1480 * nat/mips-linux-watch.c: Likewise.
1481 * nios2-linux-tdep.c: Likewise.
1482 * nios2-tdep.c: Likewise.
1483 * objc-lang.c: Likewise.
1484 * objfiles.c: Likewise.
1485 * obsd-nat.c: Likewise.
1486 * opencl-lang.c: Likewise.
1487 * osabi.c: Likewise.
1488 * parse.c: Likewise.
1489 * ppc-linux-nat.c: Likewise.
1490 * ppc-sysv-tdep.c: Likewise.
1491 * ppcfbsd-nat.c: Likewise.
1492 * ppcfbsd-tdep.c: Likewise.
1493 * ppcnbsd-nat.c: Likewise.
1494 * ppcnbsd-tdep.c: Likewise.
1495 * ppcobsd-nat.c: Likewise.
1496 * ppcobsd-tdep.c: Likewise.
1497 * printcmd.c: Likewise.
1498 * procfs.c: Likewise.
1499 * prologue-value.c: Likewise.
1500 * psymtab.c: Likewise.
1501 * python/py-lazy-string.c: Likewise.
1502 * python/py-value.c: Likewise.
1503 * regcache.c: Likewise.
1504 * reggroups.c: Likewise.
1505 * registry.c: Likewise.
1506 * remote-sim.c: Likewise.
1507 * remote.c: Likewise.
1508 * rs6000-aix-tdep.c: Likewise.
1509 * rs6000-tdep.c: Likewise.
1510 * s390-linux-tdep.c: Likewise.
1511 * score-tdep.c: Likewise.
1512 * ser-base.c: Likewise.
1513 * ser-mingw.c: Likewise.
1514 * sh-tdep.c: Likewise.
1515 * sh64-tdep.c: Likewise.
1516 * solib-darwin.c: Likewise.
1517 * solib-spu.c: Likewise.
1518 * solib-svr4.c: Likewise.
1519 * source.c: Likewise.
1520 * sparc-nat.c: Likewise.
1521 * sparc-sol2-tdep.c: Likewise.
1522 * sparc-tdep.c: Likewise.
1523 * sparc64-sol2-tdep.c: Likewise.
1524 * sparc64-tdep.c: Likewise.
1525 * sparc64fbsd-tdep.c: Likewise.
1526 * sparc64nbsd-tdep.c: Likewise.
1527 * sparc64obsd-tdep.c: Likewise.
1528 * sparcnbsd-tdep.c: Likewise.
1529 * sparcobsd-tdep.c: Likewise.
1530 * spu-multiarch.c: Likewise.
1531 * spu-tdep.c: Likewise.
1532 * stabsread.c: Likewise.
1533 * stack.c: Likewise.
1534 * symfile.c: Likewise.
1535 * symtab.c: Likewise.
1536 * target-descriptions.c: Likewise.
1537 * target-memory.c: Likewise.
1538 * target.c: Likewise.
1539 * tic6x-linux-tdep.c: Likewise.
1540 * tic6x-tdep.c: Likewise.
1541 * tilegx-linux-nat.c: Likewise.
1542 * tilegx-tdep.c: Likewise.
1543 * top.c: Likewise.
1544 * tramp-frame.c: Likewise.
1545 * tui/tui-out.c: Likewise.
1546 * tui/tui-winsource.c: Likewise.
1547 * ui-out.c: Likewise.
1548 * user-regs.c: Likewise.
1549 * utils.c: Likewise.
1550 * v850-tdep.c: Likewise.
1551 * valops.c: Likewise.
1552 * value.c: Likewise.
1553 * varobj.c: Likewise.
1554 * vax-nat.c: Likewise.
1555 * xml-syscall.c: Likewise.
1556 * xml-tdesc.c: Likewise.
1557 * xstormy16-tdep.c: Likewise.
1558 * xtensa-linux-nat.c: Likewise.
1559 * xtensa-tdep.c: Likewise.
1560
1561 2014-08-07 Gary Benson <gbenson@redhat.com>
1562
1563 * common/common-defs.h: Include common-utils.h.
1564 * defs.h: Do not include common-utils.h.
1565 * common/gdb_assert.h: Likewise.
1566 * darwin-nat.h: Likewise.
1567 * nat/linux-btrace.c: Likewise.
1568 * target/waitstatus.h: Likewise.
1569
1570 2014-08-07 Gary Benson <gbenson@redhat.com>
1571
1572 * common/common-defs.h: Include ptid.h.
1573 * defs.h: Do not include ptid.h.
1574 * inferior.h: Likewise.
1575 * infrun.h: Likewise.
1576 * nat/linux-btrace.h: Likewise.
1577 * nat/linux-osdata.h: Likewise.
1578 * target/waitstatus.h: Likewise.
1579
1580 2014-08-07 Gary Benson <gbenson@redhat.com>
1581
1582 * common/common-defs.h: Include gdb_locale.h.
1583 * defs.h: Do not include gdb_locale.h.
1584
1585 2014-08-07 Gary Benson <gbenson@redhat.com>
1586
1587 * common/common-defs.h: Include gdb/signals.h.
1588 * defs.h: Do not include gdb/signals.h.
1589
1590 2014-08-07 Gary Benson <gbenson@redhat.com>
1591
1592 * common/common-defs.h: Include pathmax.h.
1593 * defs.h: Do not include pathmax.h.
1594
1595 2014-08-07 Gary Benson <gbenson@redhat.com>
1596
1597 * common/common-defs.h: Include libiberty.h.
1598 * defs.h: Do not include libiberty.h.
1599 * common/queue.h: Likewise.
1600 * cp-name-parser.y: Likewise.
1601 * mi/mi-cmd-catch.c: Likewise.
1602 * python/python.c: Likewise.
1603
1604 2014-08-07 Gary Benson <gbenson@redhat.com>
1605
1606 * common/common-defs.h: Include ansidecl.h.
1607 * defs.h: Do not include ansidecl.h.
1608 * common/buffer.h: Likewise.
1609 * common/common-utils.h: Likewise.
1610
1611 2014-08-07 Gary Benson <gbenson@redhat.com>
1612
1613 * common/common-defs.h: Include stddef.h.
1614 * defs.h: Do not include stddef.h.
1615 * common/common-utils.h: Likewise.
1616 * amd64fbsd-nat.c: Likewise.
1617 * bcache.c: Likewise.
1618 * charset.c: Likewise.
1619 * common/buffer.h: Likewise.
1620 * common/vec.h: Likewise.
1621 * i386bsd-nat.c: Likewise.
1622 * nat/linux-btrace.h: Likewise.
1623 * ppcfbsd-nat.c: Likewise.
1624 * ppcnbsd-tdep.h: Likewise.
1625 * ppcobsd-nat.c: Likewise.
1626 * ppcobsd-tdep.h: Likewise.
1627 * python/py-gdb-readline.c: Likewise.
1628
1629 2014-08-07 Gary Benson <gbenson@redhat.com>
1630
1631 * common/common-defs.h: Include stdarg.h.
1632 * defs.h: Do not include stdarg.h.
1633 * ada-lang.c: Likewise.
1634 * common/common-utils.h: Likewise.
1635 * guile/scm-string.c: Likewise.
1636 * guile/scm-utils.c: Likewise.
1637 * m32c-tdep.c: Likewise.
1638
1639 2014-08-07 Gary Benson <gbenson@redhat.com>
1640
1641 * common/common-defs.h: Include stdlib.h.
1642 * defs.h: Do not include stdlib.h.
1643 * addrmap.c: Likewise.
1644 * bcache.c: Likewise.
1645 * common/buffer.c: Likewise.
1646 * common/common-utils.c: Likewise.
1647 * cp-name-parser.y: Likewise.
1648 * go32-nat.c: Likewise.
1649 * mn10300-linux-tdep.c: Likewise.
1650 * nat/linux-osdata.c: Likewise.
1651 * tui/tui.c: Likewise.
1652 * windows-nat.c: Likewise.
1653
1654 2014-08-07 Gary Benson <gbenson@redhat.com>
1655
1656 * common/common-defs.h: Include stdio.h.
1657 * defs.h: Do not include stdio.h.
1658 * ada-lang.c: Likewise.
1659 * common/buffer.c: Likewise.
1660 * common/common-utils.c: Likewise.
1661 * cp-name-parser.y: Likewise.
1662 * gnu-nat.c: Likewise.
1663 * go32-nat.c: Likewise.
1664 * i386gnu-nat.c: Likewise.
1665 * proc-api.c: Likewise.
1666 * proc-events.c: Likewise.
1667 * proc-flags.c: Likewise.
1668 * proc-why.c: Likewise.
1669 * python/python-internal.h: Likewise.
1670 * target-memory.c: Likewise.
1671 * tui/tui-io.c: Likewise.
1672 * tui/tui.c: Likewise.
1673
1674 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1675
1676 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1677 (scan_dyntag_auxv): Same.
1678
1679 2014-08-06 Yao Qi <yao@codesourcery.com>
1680
1681 * amd64-linux-nat.c: Remove duplicated include
1682 "x86-linux-nat.h".
1683 * i386-linux-nat.c: Likewise.
1684
1685 2014-08-06 Yao Qi <yao@codesourcery.com>
1686
1687 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1688 operand" with "Special opcode" in comments.
1689
1690 2014-08-05 Gary Benson <gbenson@redhat.com>
1691
1692 * interps.c (initialize_interps): Remove prototype.
1693 (interpreter_initialized): Remove static global.
1694 (interp_add): Do not call initialize_interps.
1695 (initialize_interps): Remove function.
1696
1697 2014-08-05 Gary Benson <gbenson@redhat.com>
1698
1699 * utils.c (vwarning): Remove spurious va_end.
1700
1701 2014-08-05 Alan Modra <amodra@gmail.com>
1702
1703 * charset.c (convert_between_encodings): Cast result of obstack_base.
1704 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1705 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1706 (read_unwind_info): Use size_t for some locals.
1707 * jit.c (finalize_symtab): Likewise.
1708 * utils.c (hashtab_obstack_allocate): Likewise.
1709 * symmisc.c (print_objfile_statistics): Update format strings.
1710
1711 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1712
1713 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1714 (Changes in GDB 7.8): ... here.
1715
1716 2014-08-04 Tom Tromey <tromey@redhat.com>
1717
1718 * target.c (set_targetdebug): New function.
1719 (initialize_targets): Pass set_targetdebug when creating "set
1720 debug target".
1721
1722 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1723
1724 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1725 if detecting a variable-sized field that is not the last field.
1726 Fix struct type length computation.
1727
1728 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1729
1730 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1731 Add debug trace.
1732
1733 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1734
1735 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1736 Remove "+ 8" offset in computation of CHAIN_VMA.
1737
1738 2014-07-31 Doug Evans <dje@google.com>
1739
1740 * inflow.c (child_terminal_inferior): Add comment.
1741 (child_terminal_ours_for_output): Add comment.
1742 (child_terminal_ours): Add comment.
1743 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1744 (linux_nat_terminal_ours): Add comment.
1745
1746 2014-07-31 Gary Benson <gbenson@redhat.com>
1747
1748 * common/btrace-common.h: Do not include defs.h or server.h.
1749 * nat/mips-linux-watch.h: Likewise.
1750 * gdb-dlfcn.h: Do not include defs.h.
1751 * tracefile.h: Likewise.
1752
1753 2014-07-30 Roland McGrath <mcgrathr@google.com>
1754
1755 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1756
1757 2014-07-30 Tom Tromey <tromey@redhat.com>
1758
1759 * bsd-kvm.c (bsd_kvm_open): Constify.
1760 * corelow.c (core_open): Constify.
1761 * ctf.c (ctf_open): Constify.
1762 * dbug-rom.c (dbug_open): Constify.
1763 * exec.c (exec_open): Constify.
1764 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1765 * microblaze-rom.c (picobug_open): Constify.
1766 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1767 Constify.
1768 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1769 * record-btrace.c (record_btrace_open): Constify.
1770 * record-full.c (record_full_core_open_1, record_full_open_1)
1771 (record_full_open): Constify.
1772 * remote-m32r-sdi.c (m32r_open): Constify.
1773 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1774 (rockhopper_open, lsi_open): Constify.
1775 * remote-sim.c (gdbsim_open): Constify.
1776 * remote.c (remote_open, extended_remote_open, remote_open_1):
1777 Constify.
1778 * target.h (struct target_ops) <to_open>: Make "arg" const.
1779 * tracefile-tfile.c (tfile_open): Constify.
1780
1781 2014-07-30 Tom Tromey <tromey@redhat.com>
1782
1783 * breakpoint.c (map_breakpoint_numbers): Update.
1784 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1785 (get_number_const): New function.
1786 (get_number): Rewrite using get_number_const.
1787 (init_number_or_range): Make "string" const.
1788 (number_is_in_list): Make "list" const.
1789 * cli/cli-utils.h (get_number_const): Declare.
1790 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1791 (init_number_or_range, number_is_in_list): Update.
1792 * printcmd.c (map_display_numbers): Update.
1793 * value.c (value_from_history_ref): Constify.
1794 * value.h (value_from_history_ref): Update.
1795
1796 2014-07-30 Tom Tromey <tromey@redhat.com>
1797
1798 * corefile.c (hook_type, call_extra_exec_file_hooks)
1799 (specify_exec_file_hook): Constify.
1800 * exec.c (exec_file_attach): Make "filename" const.
1801 * gdbcore.h (deprecated_exec_file_display_hook)
1802 (specify_exec_file_hook, exec_file_attach): Constify.
1803 * main.c (captured_main): Use catch_command_errors_const.
1804
1805 2014-07-30 Tom Tromey <tromey@redhat.com>
1806
1807 * target.c (open_target): New function.
1808 (add_target_with_completer, add_deprecated_target_alias): Use
1809 set_cmd_sfunc, set_cmd_context.
1810 (debug_to_open): Remove.
1811 (setup_target_debug): Update.
1812
1813 2014-07-30 Yao Qi <yao@codesourcery.com>
1814
1815 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1816 comments.
1817 * parse.c (exp_iterate): Update comments.
1818
1819 2014-07-30 Gary Benson <gbenson@redhat.com>
1820
1821 * common/common-defs.h: New file.
1822 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1823 * defs.h: Include common-defs.h.
1824 Do not include config.h or build-gnulib/config.h.
1825
1826 2014-07-30 Gary Benson <gbenson@redhat.com>
1827
1828 * common/common-utils.h: Do not include config.h.
1829 * nat/linux-btrace.h: Likewise.
1830
1831 2014-07-30 Gary Benson <gbenson@redhat.com>
1832
1833 * btrace.c: Include defs.h.
1834 * common/ptid.c: Include defs.h or server.h as appropriate.
1835 * nat/mips-linux-watch.c: Likewise.
1836
1837 2014-07-29 Tom Tromey <tromey@redhat.com>
1838
1839 * target.c (target_is_pushed): Simplify.
1840
1841 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1842
1843 GDB 7.8 released.
1844
1845 2014-07-29 Yao Qi <yao@codesourcery.com>
1846
1847 PR gdb/17206
1848 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1849
1850 2014-07-28 Doug Evans <xdje42@gmail.com>
1851
1852 PR guile/17203
1853 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1854 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1855 parameters.
1856
1857 2014-07-28 Will Newton <will.newton@linaro.org>
1858
1859 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1860 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1861 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1862 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1863 (THUMB2_EABI_SYSCALL): Likewise.
1864 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1865 struct tramp_frame.
1866 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1867 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1868
1869 2014-07-27 Doug Evans <xdje42@gmail.com>
1870
1871 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1872
1873 2014-07-27 Doug Evans <xdje42@gmail.com>
1874
1875 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1876
1877 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1878 Doug Evans <xdje42@gmail.com>
1879
1880 PR guile/17146
1881 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1882 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1883 * configure.ac: Try to use guild to compile an scm file, if it fails
1884 then disable guile support.
1885 * configure: Regenerate.
1886 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1887 GUILE_FILE_LIST.
1888 (GUILE_COMPILED_FILES): New variable.
1889 (GUILE_FILES) Update.
1890 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1891 (stamp-guile): Compile scm files.
1892 * guile/guile.c (boot_guile_support): New function.
1893 (standard_throw_args_p): New function.
1894 (print_standard_throw_error, print_throw_error): New functions.
1895 (handle_boot_error): New function.
1896 (initialize_scheme_side): Rewrite to call boot_guile_support.
1897 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1898 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1899
1900 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1901 Doug Evans <xdje42@gmail.com>
1902
1903 PR guile/17146
1904 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1905 * guile/lib/gdb/support.scm: New file.
1906 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1907 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1908 All uses updated.
1909 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1910 All uses updated.
1911 (%assert-type): Ditto, and renamed to assert-type.
1912 (%exception-print-style): Delete.
1913
1914 2014-07-26 Doug Evans <xdje42@gmail.com>
1915
1916 PR build/17105
1917 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1918 * configure: Regenerate.
1919 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1920 PYTHON_FILES.
1921 (PYTHON_FILES): New variable.
1922 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1923 (GUILE_FILES): New variable.
1924 (stamp-python, install-python, uninstall-python): Handle empty
1925 file list.
1926 (stamp-guile, install-guile, uninstall-guile): Ditto.
1927
1928 2014-07-26 Doug Evans <xdje42@gmail.com>
1929
1930 PR guile/17177
1931 * guile/lib/gdb.scm (pretty-printers): Export.
1932 (set-pretty-printers!): Export.
1933 * guile/lib/gdb/printing.scm (gdb module): Update.
1934 (prepend-pretty-printer!, append-pretty-printer!): Update.
1935 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1936 (pretty_printer_list_var): Delete.
1937 (pretty_printer_list): New static global.
1938 (gdbscm_pretty_printers): New function.
1939 (gdbscm_set_pretty_printers_x): New function.
1940 (ppscm_find_pretty_printer_from_gdb): Update.
1941 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1942 (gdbscm_initialize_pretty_printers): Update.
1943
1944 2014-07-26 Doug Evans <xdje42@gmail.com>
1945
1946 PR 17185
1947 * configure.ac: Add check for header gc/gc.h.
1948 Add check for function setenv.
1949 * configure: Regenerate.
1950 * config.in: Regenerate.
1951 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1952
1953 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1954
1955 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1956 variation in gdbarch matching.
1957
1958 2014-07-25 Tom Tromey <tromey@redhat.com>
1959
1960 * exec.c (using_exec_ops): Remove.
1961 (exec_close_1): Update. Remove extraneous block, reindent.
1962 (add_target_sections): Use target_is_pushed.
1963
1964 2014-07-25 Pedro Alves <palves@redhat.com>
1965
1966 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1967 * monitor.c (monitor_create_inferior): Likewise.
1968 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1969 * remote-sim.c (gdbsim_create_inferior): Likewise.
1970 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1971 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1972 * windows-nat.c (do_initial_windows_stuff): Likewise.
1973
1974 2014-07-25 Pedro Alves <palves@redhat.com>
1975
1976 * NEWS: Mention signal passing and "signal" command changes.
1977 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1978 comment.
1979 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1980 call.
1981 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1982 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1983 (jump_command): Adjust clear_proceed_status call.
1984 (signal_command): Warn if other thread that are resumed have
1985 signals that will be delivered. Adjust clear_proceed_status call.
1986 (until_next_command, finish_command)
1987 (proceed_after_attach_callback, attach_command_post_wait)
1988 (attach_command): Adjust clear_proceed_status call.
1989 * infrun.c (proceed_after_vfork_done): Likewise.
1990 (proceed_after_attach_callback): Adjust comment.
1991 (clear_proceed_status_thread): Clear stop_signal if not in pass
1992 state.
1993 (clear_proceed_status_callback): Delete.
1994 (clear_proceed_status): New 'step' parameter. Only clear the
1995 proceed status of threads the command being prepared is about to
1996 resume.
1997 (proceed): If passed in an explicit signal, override stop_signal
1998 with it. Don't pass the last stop signal to the thread we're
1999 resuming.
2000 (init_wait_for_inferior): Adjust clear_proceed_status call.
2001 (switch_back_to_stepped_thread): Clear the signal if it should not
2002 be passed.
2003 * infrun.h (clear_proceed_status): New 'step' parameter.
2004 (user_visible_resume_ptid): Add comment.
2005 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
2006 signal is in pass state.
2007 * remote.c (append_pending_thread_resumptions): Likewise.
2008 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
2009
2010 2014-07-25 Tom Tromey <tromey@redhat.com>
2011
2012 * target.h (target_stopped_data_address)
2013 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
2014 parentheses.
2015
2016 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
2017
2018 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
2019 comments.
2020 (avr_pointer_to_address): Likewise.
2021
2022 2014-07-24 Tom Tromey <tromey@redhat.com>
2023
2024 * monitor.c (compile_pattern): Update.
2025 * target.h (struct target_ops) <to_shortname, to_longname,
2026 to_doc>: Now const.
2027
2028 2014-07-24 Tom Tromey <tromey@redhat.com>
2029
2030 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
2031 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
2032 (add_info_alias, add_com): Make "doc" const.
2033 (print_doc_line): Make "str" const.
2034 (delete_cmd): Update.
2035 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
2036 (print_doc_line): Update.
2037 * cli/cli-script.c (document_command): Update.
2038 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2039 (add_com, add_info, add_info_alias): Update.
2040 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2041 * python/py-cmd.c (cmdpy_destroyer): Update.
2042
2043 2014-07-24 Tom Tromey <tromey@redhat.com>
2044
2045 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
2046 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
2047 (help_cmd_list): Constify.
2048 (lookup_cmd): Update.
2049 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
2050 const.
2051 (help_cmd_list, apropos_cmd): Update.
2052 * cli/cli-script.c (show_user): Update.
2053 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
2054 * cli/cli-setshow.h (cmd_show_list): Update.
2055 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
2056 (cmd_show_list): Update.
2057 * guile/scm-cmd.c (cmdscm_destroyer): Update.
2058 * python/py-cmd.c (cmdpy_destroyer): Update.
2059
2060 2014-07-24 Tom Tromey <tromey@redhat.com>
2061
2062 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
2063 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
2064 const.
2065 * command.h (deprecate_cmd): Update.
2066 * maint.c (maintenance_do_deprecate): Add casts.
2067
2068 2014-07-24 Tom Tromey <tromey@redhat.com>
2069
2070 * cli/cli-decode.c (help_cmd): Make parameter "const".
2071 * cli/cli-decode.h (help_cmd): Update.
2072
2073 2014-07-24 Tom Tromey <tromey@redhat.com>
2074
2075 * stack.c (up_silently_base, down_silently_base): Make argument
2076 const.
2077
2078 2014-07-24 Tom Tromey <tromey@redhat.com>
2079
2080 * solib.c (solib_add): Make "pattern" const.
2081 * solib.h (solib_add): Update.
2082
2083 2014-07-24 Tom Tromey <tromey@redhat.com>
2084
2085 * remote.c (remote_serial_open, print_packet, putpkt)
2086 (putpkt_binary): Constify.
2087 * remote.h (putpkt): Update.
2088
2089 2014-07-24 Tom Tromey <tromey@redhat.com>
2090
2091 * monitor.c (monitor_open): Make "args" const.
2092 * monitor.h (monitor_open): Update.
2093
2094 2014-07-24 Tom Tromey <tromey@redhat.com>
2095
2096 * maint.c (match_bfd_flags): Make "string" const.
2097 (print_bfd_section_info): Remove casts.
2098 (print_objfile_section_info): Make "string" const.
2099
2100 2014-07-24 Tom Tromey <tromey@redhat.com>
2101
2102 * inf-child.c (inf_child_open_target): Make "arg" const.
2103 * inf-child.h (inf_child_open_target): Update.
2104
2105 2014-07-24 Tom Tromey <tromey@redhat.com>
2106
2107 * environ.c (unset_in_environ): Make "var" const.
2108 * environ.h (unset_in_environ): Update.
2109
2110 2014-07-24 Tom Tromey <tromey@redhat.com>
2111
2112 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2113 Make "cmd" const.
2114 (scan_filename_with_cleanup): Likewise.
2115 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2116 Make arguments const.
2117 (restore_command): Update.
2118
2119 2014-07-24 Pedro Alves <palves@redhat.com>
2120
2121 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2122
2123 2014-07-24 Tom Tromey <tromey@redhat.com>
2124 Gary Benson <gbenson@redhat.com>
2125
2126 * nat/linux-ptrace.c (additional_flags): New global.
2127 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2128 additional_flags; don't check GDBSERVER.
2129 (linux_ptrace_set_additional_flags): New function.
2130 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2131 Declare.
2132 * linux-nat.c (_initialize_linux_nat): Call
2133 linux_ptrace_set_additional_flags.
2134
2135 2014-07-24 Tom Tromey <tromey@redhat.com>
2136
2137 * make-target-delegates (munge_type, write_debugmethod): New
2138 functions.
2139 (debug_names): New global.
2140 ($TARGET_DEBUG_PRINTER): New global.
2141 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2142 name.
2143 Write debug methods. Generate init_debug_target.
2144 * target-debug.h: New file.
2145 * target-delegates.c: Rebuild.
2146 * target.c: Include target-debug.h.
2147 (debug_target): Hoist definition.
2148 (target_kill, target_get_section_table, target_memory_map)
2149 (target_flash_erase, target_flash_done, target_detach)
2150 (target_disconnect, target_wait, target_resume)
2151 (target_pass_signals, target_program_signals, target_follow_fork)
2152 (target_mourn_inferior, target_search_memory)
2153 (target_thread_address_space, target_close)
2154 (target_find_new_threads, target_core_of_thread)
2155 (target_verify_memory, target_insert_mask_watchpoint)
2156 (target_remove_mask_watchpoint): Remove targetdebug code.
2157 (debug_to_post_attach, debug_to_prepare_to_store)
2158 (debug_to_files_info, debug_to_insert_breakpoint)
2159 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2160 (debug_to_region_ok_for_hw_watchpoint)
2161 (debug_to_can_accel_watchpoint_condition)
2162 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2163 (debug_to_watchpoint_addr_within_range)
2164 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2165 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2166 (debug_to_terminal_init, debug_to_terminal_inferior)
2167 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2168 (debug_to_terminal_save_ours, debug_to_terminal_info)
2169 (debug_to_load, debug_to_post_startup_inferior)
2170 (debug_to_insert_fork_catchpoint)
2171 (debug_to_remove_fork_catchpoint)
2172 (debug_to_insert_vfork_catchpoint)
2173 (debug_to_remove_vfork_catchpoint)
2174 (debug_to_insert_exec_catchpoint)
2175 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2176 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2177 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2178 (setup_target_debug): Call init_debug_target.
2179 * target.h (TARGET_DEBUG_PRINTER): New macro.
2180 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2181 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2182
2183 2014-07-24 Gary Benson <gbenson@redhat.com>
2184
2185 * exceptions.h (throw_vfatal): Renamed to...
2186 (throw_vquit): New declaration.
2187 (throw_quit): Likewise.
2188 * exceptions.c (throw_vfatal): Renamed to...
2189 (throw_vquit): New function.
2190 (throw_quit): Likewise.
2191 (throw_error): Call throw_verror rather than throw_it.
2192 * utils.h (vfatal): Removed.
2193 (fatal): Likewise.
2194 * utils.c (vfatal): Removed.
2195 (fatal): Likewise.
2196 (internal_verror): Replaced call to fatal with call to throw_quit.
2197 (quit): Replaced calls to fatal with calls to throw_quit.
2198
2199 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2200
2201 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2202 target_read_code.
2203
2204 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2205
2206 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2207 less than zero in conditional expression.
2208
2209 2014-07-23 Tom Tromey <tromey@redhat.com>
2210
2211 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2212 ($INTRO_PART): Don't match whitespace.
2213 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2214 argument matching.
2215 ($METHOD): Add $METHOD_TRAILER.
2216 (trim): Rewrite.
2217 (scan_target_h): New sub.
2218 Change main loop not to collect state.
2219 * target-delegates.c: Rebuild.
2220
2221 2014-07-23 Gary Benson <gbenson@redhat.com>
2222
2223 * cp-support.c (gdb_demangle): Fix build on systems without
2224 sigaltstack.
2225
2226 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2227
2228 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2229 for reference entry value target data value.
2230
2231 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2232
2233 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2234 value_available_contents_eq.
2235
2236 2014-07-22 Pedro Alves <palves@redhat.com>
2237
2238 * value.c (allocate_optimized_out_value): Don't mark value as
2239 non-lazy.
2240
2241 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2242
2243 * MAINTAINERS (Write After Approval): Update my email address.
2244
2245 2014-07-20 Doug Evans <dje@google.com>
2246
2247 PR server/17147
2248 * remote.c (putpkt_binary): Add text to error message.
2249
2250 2014-07-20 Yao Qi <yao@codesourcery.com>
2251
2252 * eval.c: Remove "Chill" from comments.
2253 * gdbtypes.h: Likewise.
2254 * symtab.h: Likewise.
2255
2256 2014-07-20 Yao Qi <yao@codesourcery.com>
2257
2258 * std-operator.def: Update comments to TERNOP_SLICE.
2259
2260 2014-07-20 Yao Qi <yao@codesourcery.com>
2261
2262 * std-operator.def: Remove BINOP_RANGE.
2263 * breakpoint.c (watchpoint_exp_is_const): Update.
2264 * expprint.c (dump_subexp_body_standard): Likewise.
2265 * eval.c (init_array_element): Remove dead code.
2266 (evaluate_subexp_standard): Likewise.
2267
2268 2014-07-20 Yao Qi <yao@codesourcery.com>
2269
2270 * std-operator.def: Remove BINOP_IN.
2271 * breakpoint.c (watchpoint_exp_is_const): Update.
2272 * eval.c (evaluate_subexp_standard): Likewise.
2273 * expprint.c (dump_subexp_body_standard): Likewise.
2274
2275 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2276
2277 * microblaze-tdep.c (microblaze_register_names): Add
2278 the rshr and rslr register names.
2279 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2280 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2281 Use of tdesc_numbered_register. Use of
2282 microblaze_register_g_packet_guesses. Use of
2283 tdesc_use_registers. Use of set_gdbarch_register_type.
2284 (microblaze_register_g_packet_guesses): New.
2285 * microblaze-tdep.h (microblaze_reg_num): Add
2286 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2287 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2288 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2289 * features/microblaze-core.xml: New file.
2290 * features/microblaze-stack-protect.xml: New file.
2291 * features/microblaze-with-stack-protect.c: New file.
2292 * features/microblaze-with-stack-protect.xml: New file.
2293 * features/microblaze.xml: New file.
2294 * features/microblaze.c: New file.
2295 * features/Makefile (microblaze-with-stack-protect): Add
2296 microblaze-with-stack-protect microblaze and microblaze-expedite.
2297 * regformats/microblaze-with-stack-protect.dat: New file.
2298 * regformats/microblaze.dat: New file.
2299 * doc/gdb.texinfo (MicroBlaze Features): Added.
2300
2301 2014-07-18 Tom Tromey <tromey@redhat.com>
2302
2303 * exec.c (exec_ops): Now static.
2304 * exec.h (exec_ops): Don't declare.
2305
2306 2014-07-18 Tom Tromey <tromey@redhat.com>
2307
2308 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2309 to find_target_beneath.
2310 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2311 find_target_beneath.
2312 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2313
2314 2014-07-18 Tom Tromey <tromey@redhat.com>
2315
2316 PR gdb/17130:
2317 * utils.c (quit): Use target_supports_terminal_ours.
2318 * target.h (target_supports_terminal_ours): Declare.
2319 * target.c (target_supports_delete_record): Don't check
2320 to_delete_record against NULL.
2321 (target_supports_terminal_ours): New function.
2322
2323 2014-07-18 Tom Tromey <tromey@redhat.com>
2324
2325 PR gdb/17130:
2326 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2327 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2328 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2329 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2330 * windows-nat.c (windows_xfer_partial): Always delegate.
2331 * record-btrace.c (record_btrace_xfer_partial): Simplify
2332 delegation.
2333 (record_btrace_fetch_registers, record_btrace_store_registers)
2334 (record_btrace_prepare_to_store, record_btrace_resume)
2335 (record_btrace_wait, record_btrace_find_new_threads)
2336 (record_btrace_thread_alive): Likewise.
2337 * procfs.c (procfs_xfer_partial): Always delegate.
2338 * corelow.c (core_xfer_partial): Always delegate.
2339 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2340
2341 2014-07-18 Tom Tromey <tromey@redhat.com>
2342
2343 * exec.c (exec_make_note_section): Move earlier.
2344
2345 2014-07-17 Doug Evans <dje@google.com>
2346
2347 PR gdb/17170
2348 * maint.c (count_symtabs_and_blocks): Handle NULL
2349 current_program_space.
2350 (report_command_stats): Check global enabled flag in addition to
2351 recorded enabled flag.
2352 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2353
2354 2014-07-16 Pedro Alves <palves@redhat.com>
2355
2356 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2357
2358 2014-07-16 Tom Tromey <tromey@redhat.com>
2359
2360 * target.h (struct target_ops) <to_delete_record>: Reformat
2361 comment.
2362
2363 2014-07-16 Tom Tromey <tromey@redhat.com>
2364
2365 * target-delegates.c: Rebuild.
2366
2367 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2368
2369 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2370 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2371 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2372 (avr_pointer_to_address): Likewise.
2373 (avr_address_class_type_flags): New function.
2374 (avr_address_class_type_flags_to_name): Likewise.
2375 (avr_address_class_name_to_type_flags): Likewise.
2376 (avr_gdbarch_init): Set address_class_type_flags,
2377 address_class_type_flags_to_name and
2378 address_class_name_to_type_flags.
2379
2380 2014-07-15 Pedro Alves <palves@redhat.com>
2381
2382 * linux-nat.c (kill_callback): Save errno and work with saved
2383 copy.
2384
2385 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2386
2387 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2388
2389 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2390
2391 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2392 breakpoint support correctly.
2393
2394 2014-07-14 Pedro Alves <palves@redhat.com>
2395
2396 * utils.c (prompt_for_continue): Call target_terminal_ours.
2397
2398 2014-07-14 Pedro Alves <palves@redhat.com>
2399
2400 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2401 catch_errors. Don't re-enable stdin or notify observers where,
2402 and rethrow error.
2403 (fetch_inferior_event_wrapper): Delete.
2404
2405 2014-07-14 Pedro Alves <palves@redhat.com>
2406
2407 PR gdb/17072
2408 * top.c: Include "inf-loop.h".
2409 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2410 field.
2411 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2412 was async before.
2413 (gdb_readline_wrapper): Store whether the target is async, and
2414 make it sync.
2415
2416 2014-07-14 Pedro Alves <palves@redhat.com>
2417
2418 PR gdb/17072
2419 * top.c (gdb_readline_wrapper_line): Tweak comment.
2420 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2421 the input handler callback.
2422
2423 2014-07-14 Pedro Alves <palves@redhat.com>
2424
2425 PR gdb/17072
2426 * main.c: Include event-top.h.
2427 (handle_command_errors): New function.
2428 (catch_command_errors, catch_command_errors_const): Use it.
2429
2430 2014-07-14 Pedro Alves <palves@redhat.com>
2431
2432 * exceptions.c (catch_command_errors, catch_command_errors_const):
2433 Moved to main.c.
2434 * exceptions.h (catch_command_errors_ftype)
2435 (catch_command_errors_const_ftype): Moved to main.c.
2436 (catch_command_errors, catch_command_errors_const): Delete
2437 declarations.
2438 * main.c (catch_command_errors_ftype)
2439 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2440 (catch_command_errors, catch_command_errors_const)): Moved here
2441 from exceptions.c and make static.
2442
2443 2014-07-14 Pedro Alves <palves@redhat.com>
2444
2445 * exceptions.c (print_any_exception): Delete.
2446 (catch_exceptions_with_msg): Use exception_print instead of
2447 print_any_exception.
2448 (catch_errors): Use exception_fprintf instead of
2449 print_any_exception.
2450 (catch_command_errors, catch_command_errors_const): Use
2451 exception_print instead of print_any_exception.
2452
2453 2014-07-14 Pedro Alves <palves@redhat.com>
2454
2455 * infcall.c (run_inferior_call): Set 'sync_execution' while
2456 running the inferior call.
2457
2458 2014-07-14 Pedro Alves <palves@redhat.com>
2459
2460 * value.c (value_contents_equal): Delete function.
2461 * value.h (value_contents_equal): Delete declaration.
2462
2463 2014-07-14 Tom Tromey <tromey@redhat.com>
2464
2465 PR exp/17106:
2466 * gdbtypes.c (is_dynamic_type_internal): New function, from
2467 is_dynamic_type.
2468 (is_dynamic_type): Rewrite.
2469 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2470 (resolve_dynamic_struct): Likewise.
2471 (resolve_dynamic_type_internal): New function, from
2472 resolve_dynamic_type.
2473 (resolve_dynamic_type): Rewrite.
2474
2475 2014-07-14 Tom Tromey <tromey@redhat.com>
2476
2477 * target.c (target_require_runnable): Also check record_stratum.
2478 Update comment.
2479
2480 2014-07-11 Yao Qi <yao@codesourcery.com>
2481
2482 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2483 thumb_instruction_restores_sp return true.
2484
2485 2014-07-11 Yao Qi <yao@codesourcery.com>
2486
2487 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2488 (thumb_in_function_epilogue_p): Call
2489 thumb_instruction_restores_sp.
2490
2491 2014-07-11 Yao Qi <yao@codesourcery.com>
2492
2493 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2494 'add sp, #imm'.
2495 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2496
2497 2014-07-11 Gary Benson <gbenson@redhat.com>
2498
2499 * amd64-linux-nat.c (gdbcore.h): Remove include.
2500 (regset.h): Likewise.
2501 (nat/linux-btrace.h): Likewise.
2502 (btrace.h): Likewise.
2503 (gdb_assert.h): Likewise.
2504 (string.h): Likewise.
2505 (sys/uio.h): Likewise.
2506 (sys/debugreg.h): Likewise.
2507 (sys/syscall.h): Likewise.
2508 (sys/procfs.h): Likewise.
2509 (sys/user.h): Likewise.
2510 (asm/ptrace.h): Likewise.
2511 (i386-nat.h): Likewise.
2512 * i386-linux-nat.c (i386-nat.h): Likewise.
2513 (regset.h): Likewise.
2514 (target.h): Likewise.
2515 (linux-nat.h): Likewise.
2516 (nat/linux-btrace.h): Likewise.
2517 (btrace.h): Likewise.
2518 (gdb_assert.h): Likewise.
2519 (string.h): Likewise.
2520 (sys/uio.h): Likewise.
2521 (sys/user.h): Likewise.
2522 (sys/procfs.h): Likewise.
2523 (sys/reg.h): Likewise.
2524 (sys/debugreg.h): Likewise.
2525 (ORIG_EAX): Remove definition.
2526
2527 2014-07-11 Gary Benson <gbenson@redhat.com>
2528
2529 * i386-linux-nat.h: New file.
2530 * x86-linux-nat.h: Likewise.
2531 * x86-linux-nat.c: Likewise.
2532 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2533 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2534 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2535 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2536 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2537 (PTRACE_SETREGSET): Likewise.
2538 (arch_lwp_info): Now in x86-linux-nat.c.
2539 (have_ptrace_getregset): Now in x86-linux-nat.h.
2540 (x86_linux_dr_get): Now in x86-linux-nat.c.
2541 (x86_linux_dr_set): Likewise.
2542 (x86_linux_dr_get_addr): Likewise.
2543 (x86_linux_dr_get_control): Likewise.
2544 (x86_linux_dr_get_status): Likewise.
2545 (update_debug_registers_callback): Likewise.
2546 (x86_linux_dr_set_control): Likewise.
2547 (x86_linux_dr_set_addr): Likewise.
2548 (x86_linux_prepare_to_resume): Likewise.
2549 (x86_linux_new_thread): Likewise.
2550 (x86_linux_new_fork): Likewise.
2551 (x86_linux_get_thread_area): Likewise.
2552 (super_post_startup_inferior): Likewise.
2553 (x86_linux_child_post_startup_inferior): Likewise.
2554 (AMD64_LINUX_USER64_CS): Likewise.
2555 (AMD64_LINUX_X32_DS): Likewise.
2556 (x86_linux_read_description): Likewise.
2557 (x86_linux_enable_btrace): Likewise.
2558 (x86_linux_disable_btrace): Likewise.
2559 (x86_linux_teardown_btrace): Likewise.
2560 (x86_linux_read_btrace): Likewise.
2561 (x86_linux_create_target): Likewise.
2562 (x86_linux_add_target): Likewise.
2563 * i386-linux-nat.c (x86-linux-nat.h): New include.
2564 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2565 (PTRACE_SETREGSET): Likewise.
2566 (arch_lwp_info): Now in x86-linux-nat.c.
2567 (have_ptrace_getregset): Now in x86-linux-nat.h.
2568 (x86_linux_dr_get): Now in x86-linux-nat.c.
2569 (x86_linux_dr_set): Likewise.
2570 (x86_linux_dr_get_addr): Likewise.
2571 (x86_linux_dr_get_control): Likewise.
2572 (x86_linux_dr_get_status): Likewise.
2573 (update_debug_registers_callback): Likewise.
2574 (x86_linux_dr_set_control): Likewise.
2575 (x86_linux_dr_set_addr): Likewise.
2576 (x86_linux_prepare_to_resume): Likewise.
2577 (x86_linux_new_thread): Likewise.
2578 (x86_linux_new_fork): Likewise.
2579 (x86_linux_get_thread_area): Likewise.
2580 (super_post_startup_inferior): Likewise.
2581 (x86_linux_child_post_startup_inferior): Likewise.
2582 (AMD64_LINUX_USER64_CS): Likewise.
2583 (AMD64_LINUX_X32_DS): Likewise.
2584 (x86_linux_read_description): Likewise.
2585 (x86_linux_enable_btrace): Likewise.
2586 (x86_linux_disable_btrace): Likewise.
2587 (x86_linux_teardown_btrace): Likewise.
2588 (x86_linux_read_btrace): Likewise.
2589 (x86_linux_create_target): Likewise.
2590 (x86_linux_add_target): Likewise.
2591
2592 2014-07-11 Gary Benson <gbenson@redhat.com>
2593
2594 * amd64-linux-nat.c: Comment and whitespace changes.
2595 * i386-linux-nat.c: Comment and whitespace changes.
2596
2597 2014-07-11 Gary Benson <gbenson@redhat.com>
2598
2599 * amd64-linux-nat.c (x86_linux_create_target): New function.
2600 (x86_linux_add_target): Likewise.
2601 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2602 * i386-linux-nat.c (x86_linux_create_target): New function.
2603 (x86_linux_add_target): Likewise.
2604 (_initialize_i386_linux_nat): Delegate to the above new functions.
2605
2606 2014-07-11 Gary Benson <gbenson@redhat.com>
2607
2608 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2609 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2610 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2611 (ps_get_thread_area): Delegate to the above.
2612
2613 2014-07-11 Gary Benson <gbenson@redhat.com>
2614
2615 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2616 x86_linux_read_description. All uses updated. amd64-specific
2617 code conditionalized. Conditionalized i386-specific code added.
2618 Redundant cast removed.
2619 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2620 x86_linux_read_description. All uses updated. i386-specific
2621 code conditionalized. Conditionalized amd64-specific code added.
2622 One sizeof replaced with the actual type it is describing.
2623
2624 2014-07-11 Gary Benson <gbenson@redhat.com>
2625
2626 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2627 x86_linux_dr_get. All uses updated.
2628 (amd64_linux_dr_set): Renamed to
2629 x86_linux_dr_set. All uses updated.
2630 (amd64_linux_dr_get_addr): Renamed to
2631 x86_linux_dr_get_addr. All uses updated.
2632 (amd64_linux_dr_get_control): Renamed to
2633 x86_linux_dr_get_control. All uses updated.
2634 (amd64_linux_dr_get_status): Renamed to
2635 x86_linux_dr_get_status. All uses updated.
2636 (amd64_linux_dr_set_control): Renamed to
2637 x86_linux_dr_set_control. All uses updated.
2638 (amd64_linux_dr_set_addr): Renamed to
2639 x86_linux_dr_set_addr. All uses updated.
2640 (amd64_linux_prepare_to_resume): Renamed to
2641 x86_linux_prepare_to_resume. All uses updated.
2642 (amd64_linux_new_thread): Renamed to
2643 x86_linux_new_thread. All uses updated.
2644 (amd64_linux_new_fork): Renamed to
2645 x86_linux_new_fork. All uses updated.
2646 (amd64_linux_child_post_startup_inferior): Renamed to
2647 x86_linux_child_post_startup_inferior. All uses updated.
2648 (amd64_linux_enable_btrace): Renamed to
2649 x86_linux_enable_btrace. All uses updated.
2650 (amd64_linux_disable_btrace): Renamed to
2651 x86_linux_disable_btrace. All uses updated.
2652 (amd64_linux_teardown_btrace): Renamed to
2653 x86_linux_teardown_btrace. All uses updated.
2654 (amd64_linux_read_btrace): Renamed to
2655 x86_linux_read_btrace. All uses updated.
2656 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2657 x86_linux_dr_get. All uses updated.
2658 (i386_linux_dr_set): Renamed to
2659 x86_linux_dr_set. All uses updated.
2660 (i386_linux_dr_get_addr): Renamed to
2661 x86_linux_dr_get_addr. All uses updated.
2662 (i386_linux_dr_get_control): Renamed to
2663 x86_linux_dr_get_control. All uses updated.
2664 (i386_linux_dr_get_status): Renamed to
2665 x86_linux_dr_get_status. All uses updated.
2666 (i386_linux_dr_set_control): Renamed to
2667 x86_linux_dr_set_control. All uses updated.
2668 (i386_linux_dr_set_addr): Renamed to
2669 x86_linux_dr_set_addr. All uses updated.
2670 (i386_linux_prepare_to_resume): Renamed to
2671 x86_linux_prepare_to_resume. All uses updated.
2672 (i386_linux_new_thread): Renamed to
2673 x86_linux_new_thread. All uses updated.
2674 (i386_linux_new_fork): Renamed to
2675 x86_linux_new_fork. All uses updated.
2676 (i386_linux_child_post_startup_inferior): Renamed to
2677 x86_linux_child_post_startup_inferior. All uses updated.
2678 (i386_linux_enable_btrace): Renamed to
2679 x86_linux_enable_btrace. All uses updated.
2680 (i386_linux_disable_btrace): Renamed to
2681 x86_linux_disable_btrace. All uses updated.
2682 (i386_linux_teardown_btrace): Renamed to
2683 x86_linux_teardown_btrace. All uses updated.
2684 (i386_linux_read_btrace): Renamed to
2685 x86_linux_read_btrace. All uses updated.
2686
2687 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2688
2689 * remote.c (extended_remote_post_attach): New function.
2690 (init_extended_remote_ops): Install it as to_post_attach method.
2691
2692 2014-07-09 Pedro Alves <palves@redhat.com>
2693
2694 * infcmd.c (attach_command_post_wait): Don't call
2695 target_terminal_inferior here.
2696 (attach_command): Call it here instead.
2697
2698 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2699
2700 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2701 field.
2702 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2703 from varobj.c, with additional checks.
2704 (c_varobj_ops): Fill in is_path_expr_parent field.
2705 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2706 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2707 field.
2708 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2709 ops method.
2710 (varobj_default_is_path_expr_parent): New function.
2711 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2712 (varobj_default_is_path_expr_parent): Declare new function.
2713
2714 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2715
2716 * infcmd.c (finish_backward): Turn internal error into normal error.
2717
2718 2014-07-07 Pedro Alves <palves@redhat.com>
2719
2720 PR gdb/17096
2721 * remote.c (async_handle_remote_sigint)
2722 (async_handle_remote_sigint_twice): Call
2723 gdb_call_async_signal_handler instead of
2724 mark_async_signal_handler.
2725
2726 2014-07-07 Tom Tromey <tromey@redhat.com>
2727
2728 * target-delegates.c: Rebuild.
2729 * target.c (target_info_record): Remove.
2730 * record.c (info_record_command): Unconditionally call
2731 to_info_record.
2732 * target.h (struct target_ops) <to_info_record>: Use
2733 TARGET_DEFAULT_IGNORE.
2734 (target_info_record): Remove.
2735
2736 2014-07-07 Tom Tromey <tromey@redhat.com>
2737
2738 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2739 TARGET_DEFAULT_NORETURN.
2740 * target.c (generic_tls_error): New function.
2741 (target_translate_tls_address): Don't search target stack.
2742 * target-delegates.c: Rebuild.
2743 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2744 stack.
2745 * linux-thread-db.c (thread_db_get_thread_local_address):
2746 Unconditionally call beneath target.
2747
2748 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2749
2750 * cli/cli-logging.c (pop_output_files): Assign targerr to
2751 gdb_stdtargerr.
2752
2753 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2754
2755 * MAINTAINERS (Write After Approval): Update my email address.
2756
2757 2014-07-02 Gary Benson <gbenson@redhat.com>
2758
2759 * proc-service.c (ps_xfer_memory): Update comment.
2760 (ps_pstop): Remove unused function.
2761 (ps_pcontinue): Likewise.
2762 (ps_lstop): Likewise.
2763 (ps_lcontinue): Likewise.
2764 (ps_lgetxregsize): Likewise.
2765 (ps_lgetxregs): Likewise.
2766 (ps_lsetxregs): Likewise.
2767 (ps_plog): Likewise.
2768 (ps_ptread): Likewise.
2769 (ps_ptwrite): Likewise.
2770
2771 2014-07-01 Mark Wielaard <mjw@redhat.com>
2772
2773 * dwarf2read.c (add_array_cv_type): New function.
2774 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2775 (read_tag_volatile_type): Likewise.
2776
2777 2014-07-01 Tom Tromey <tromey@redhat.com>
2778
2779 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2780 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2781 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2782 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2783 * command.h (cmd_cfunc_ftype): Move earlier.
2784 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2785 (add_com, add_info): Use cmd_cfunc_ftype.
2786
2787 2014-06-30 Tom Tromey <tromey@redhat.com>
2788
2789 * symtab.c (operator_chars): Make parameters and return type
2790 const.
2791 (file_matches): Make "files" const.
2792 (struct search_symbols_data) <files>: Now const.
2793 (search_symbols): Make "regexp" and "files" parameters const.
2794 Update.
2795 (symtab_symbol_info): Remove cast.
2796 (rbreak_command): Update.
2797 * symtab.h (search_symbols): Update.
2798
2799 2014-06-27 Yao Qi <yao@codesourcery.com>
2800
2801 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2802 Change parameter type to 'struct thread_info *'. Caller
2803 updated.
2804 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2805 Update declaration.
2806 * dummy-frame.c (struct dummy_frame_id): New.
2807 (dummy_frame_id_eq): New function.
2808 (struct dummy_frame) <id>: Change its type to 'struct
2809 dummy_frame_id'.
2810 (dummy_frame_push): Add parameter ptid and save it in
2811 dummy_frame_id.
2812 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2813 inferior_ptid.
2814 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2815 to inferior_ptid.
2816 (lookup_dummy_frame): Change parameter type to 'struct
2817 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2818 instead of frame_id_eq.
2819 (dummy_frame_pop): Add parameter ptid. Callers updated.
2820 Update comments. Compose dummy_frame_id and pass it to
2821 lookup_dummy_frame.
2822 (dummy_frame_discard): Add parameter ptid.
2823 (dummy_frame_sniffer): Compose dummy_frame_id and call
2824 dummy_frame_id_eq instead of frame_id_eq.
2825 (fprint_dummy_frames): Print ptid.
2826 * dummy-frame.h: Remove comments.
2827 (dummy_frame_push): Add ptid in declaration.
2828 (dummy_frame_pop, dummy_frame_discard): Likewise.
2829
2830 2014-06-26 Tom Tromey <tromey@redhat.com>
2831
2832 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2833 * command.h (error_no_arg): Update.
2834
2835 2014-06-26 Tom Tromey <tromey@redhat.com>
2836
2837 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2838 (do_show_command): Make "arg" const.
2839 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2840
2841 2014-06-26 Tom Tromey <tromey@redhat.com>
2842
2843 * record-full.c (record_full_get_bookmark): Make "args" const.
2844 (record_full_goto_bookmark): Make "raw_bookmark" const.
2845 * record.c (record_goto): New function.
2846 (cmd_record_goto): Use it. Now static.
2847 * record.h (record_goto): Declare.
2848 (cmd_record_goto): Remove declaration.
2849 * target-delegates.c: Rebuild.
2850 * target.h (struct target_ops) <to_get_bookmark,
2851 to_goto_bookmark>: Make parameter const.
2852
2853 2014-06-26 Tom Tromey <tromey@redhat.com>
2854
2855 * defs.h (generic_load): Update.
2856 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2857 * monitor.c (monitor_load): Make "args" const.
2858 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2859 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2860 const.
2861 (mips_load): Make "file" const.
2862 * remote-sim.c (gdbsim_load): Make "args" const.
2863 * remote.c (remote_load): Make "name" const.
2864 * symfile.c (generic_load): Make "args" const.
2865 * target-delegates.c: Rebuild.
2866 * target.c (target_load): Make "arg" const.
2867 (debug_to_load): Make "args" const.
2868 * target.h (struct target_ops) <to_load>: Make parameter const.
2869 (target_load): Update.
2870
2871 2014-06-26 Tom Tromey <tromey@redhat.com>
2872
2873 PR symtab/16902:
2874 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2875 (dwarf2_physname, read_partial_die)
2876 (guess_partial_die_structure_name, fixup_partial_die)
2877 (guess_full_die_structure_name, anonymous_struct_prefix)
2878 (dwarf2_name): Use per-BFD obstack.
2879
2880 2014-06-26 Yao Qi <yao@codesourcery.com>
2881
2882 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2883 dummyframe and this_id into inner block below.
2884
2885 2014-06-26 Yao Qi <yao@codesourcery.com>
2886
2887 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2888 with "signal_pass[0]" in the initialization of signal_pass.
2889
2890 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2891
2892 * record-btrace.c (record_btrace_generating_corefile)
2893 (record_btrace_prepare_to_generate_core)
2894 (record_btrace_done_generating_core): New.
2895 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2896 (record_btrace_store_registers, record_btrace_prepare_to_store):
2897 Forward request when generating a core file.
2898 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2899 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2900 to_done_generating_core.
2901
2902 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2903
2904 * target.h (target_ops) <to_prepare_to_generate_core>
2905 <to_done_generating_core>: New.
2906 (target_prepare_to_generate_core, target_done_generating_core): New.
2907 * target.c (target_prepare_to_generate_core)
2908 (target_done_generating_core): New.
2909 * target-delegates.c: Regenerate.
2910 * gcore.c: (write_gcore_file): Rename to ...
2911 (write_gcore_file_1): ...this.
2912 (write_gcore_file): Call target_prepare_to_generate_core
2913 and target_done_generating_core.
2914
2915 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2916
2917 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2918 * gcore.c (write_gcore_file): Free memory returned from
2919 make_corefile_notes.
2920 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2921 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2922
2923 2014-06-24 Yao Qi <yao@codesourcery.com>
2924
2925 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2926 (arm_linux_init_abi): Set skip_trampoline_code with
2927 gdbarch_skip_trampoline_code instead of
2928 find_solib_trampoline_target.
2929
2930 2014-06-24 Yao Qi <yao@codesourcery.com>
2931
2932 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2933 arm_skip_bx_reg returns non-zero.
2934
2935 2014-06-24 Yao Qi <yao@codesourcery.com>
2936
2937 * arm-tdep.c (arm_skip_bx_reg): New function.
2938 (arm_skip_stub): Call arm_skip_bx_reg.
2939
2940 2014-06-23 Don Breazeal <donb@codesourcery.com>
2941
2942 * MAINTAINERS: Add myself as write-after-approval maintainer.
2943
2944 2014-06-23 Pedro Alves <palves@redhat.com>
2945
2946 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2947 DR_CONTROL before setting DR0..DR3.
2948 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2949 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2950 bits of DR_CONTROL related to the debug register slot being
2951 disabled. If all slots are vacant, clear local slowdown as well,
2952 and assert DR_CONTROL is 0.
2953
2954 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2955
2956 * python/lib/gdb/command/xmethods.py
2957 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2958 current progspace only if the string "progspace" matches LOCUS_RE.
2959
2960 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2961
2962 Fix --with-system-readline with readline-6.3 patch 5.
2963 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2964 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2965 types.
2966
2967 2014-06-20 Tom Tromey <tromey@redhat.com>
2968
2969 * dwarf2read.c (dw2_get_real_path): Use correct type in
2970 OBSTACK_CALLOC.
2971 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2972
2973 2014-06-20 Gary Benson <gbenson@redhat.com>
2974
2975 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2976 * common/glibc_thread_db.h: Likewise.
2977 * common/i386-cpuid.h: Likewise.
2978 * common/i386-gcc-cpuid.h: Likewise.
2979 * common/linux-btrace.h: Likewise.
2980 * common/linux-osdata.h: Likewise.
2981 * common/linux-procfs.h: Likewise.
2982 * common/linux-ptrace.h: Likewise.
2983 * common/mips-linux-watch.h: Likewise.
2984 * common/linux-btrace.c: Moved to nat.
2985 * common/linux-osdata.c: Likewise.
2986 * common/linux-procfs.c: Likewise.
2987 * common/linux-ptrace.c: Likewise.
2988 * common/mips-linux-watch.c: Likewise.
2989 * nat/gdb_thread_db.h: Moved from common.
2990 * nat/glibc_thread_db.h: Likewise.
2991 * nat/i386-cpuid.h: Likewise.
2992 * nat/i386-gcc-cpuid.h: Likewise.
2993 * nat/linux-btrace.c: Likewise.
2994 * nat/linux-btrace.h: Likewise.
2995 * nat/linux-osdata.c: Likewise.
2996 * nat/linux-osdata.h: Likewise.
2997 * nat/linux-procfs.c: Likewise.
2998 * nat/linux-procfs.h: Likewise.
2999 * nat/linux-ptrace.c: Likewise.
3000 * nat/linux-ptrace.h: Likewise.
3001 * nat/mips-linux-watch.c: Likewise.
3002 * nat/mips-linux-watch.h: Likewise.
3003 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
3004 (object file files): Reordered.
3005 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
3006 of glibc_thread_db.h.
3007
3008 2014-06-20 Gary Benson <gbenson@redhat.com>
3009
3010 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
3011 (i386_dr_low_type): Moved to nat/i386-dregs.h.
3012 (i386_dr_low): Likewise.
3013 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
3014 (i386_dr_low_set_addr): Likewise.
3015 (i386_dr_low_get_addr): Likewise.
3016 (i386_dr_low_can_set_control): Likewise.
3017 (i386_dr_low_set_control): Likewise.
3018 (i386_dr_low_get_control): Likewise.
3019 (i386_dr_low_get_status): Likewise.
3020 (i386_get_debug_register_length): Likewise.
3021 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
3022 (i386_dr_low): Likewise.
3023 * nat/i386-dregs.c (i386-low.h): Remove include.
3024 (i386-nat.h): Likewise.
3025 (nat/i386-dregs.h): New include.
3026 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
3027 (i386_dr_low_set_addr): Likewise.
3028 (i386_dr_low_get_addr): Likewise.
3029 (i386_dr_low_can_set_control): Likewise.
3030 (i386_dr_low_set_control): Likewise.
3031 (i386_dr_low_get_control): Likewise.
3032 (i386_dr_low_get_status): Likewise.
3033 (i386_get_debug_register_length): Likewise.
3034 (debug_hw_points): Likewise.
3035
3036 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
3037
3038 * Makefile.in (SFILES): Add d-exp.y.
3039 (YYFILES): Add d-exp.c.
3040 (YYOBJ): Add d-exp.o.
3041 (local-maintainer-clean): Delete d-exp.c.
3042 * d-exp.y: New file.
3043 * d-lang.h (d_parse): New declaration.
3044 (d_error): New declaration.
3045 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
3046 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
3047 PREC_ORDER operators.
3048 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
3049
3050 2014-06-19 Yao Qi <yao@codesourcery.com>
3051
3052 * gdbthread.h (any_running): Remove the declaration.
3053 * thread.c (any_running): Remove.
3054
3055 2014-06-19 Yao Qi <yao@codesourcery.com>
3056
3057 * gdbthread.h (struct thread_info) <state>: Change its type to
3058 'enum thread_state'. Update comments.
3059
3060 2014-06-19 Pedro Alves <palves@redhat.com>
3061
3062 * gdbthread.h (ALL_THREADS): Delete.
3063 (ALL_NON_EXITED_THREADS): New macro.
3064 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
3065 instead of ALL_THREADS.
3066 * infrun.c (find_thread_needs_step_over)
3067 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
3068 instead of ALL_THREADS.
3069 * record-btrace.c (record_btrace_open)
3070 (record_btrace_stop_recording, record_btrace_close)
3071 (record_btrace_is_replaying, record_btrace_resume)
3072 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
3073 * remote.c (append_pending_thread_resumptions): Likewise.
3074 * thread.c (thread_apply_all_command): Likewise.
3075
3076 2014-06-19 Gary Benson <gbenson@redhat.com>
3077
3078 * i386-nat.c (i386_stopped_by_watchpoint):
3079 Use i386_dr_stopped_by_watchpoint.
3080 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3081 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3082
3083 2014-06-19 Gary Benson <gbenson@redhat.com>
3084
3085 * nat/i386-dregs.c: New file.
3086 * Makefile.in (i386-dregs.o): New rule.
3087 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3088 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3089 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3090 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3091 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3092 * config/i386/go32.mh (NATDEPFILES): Likewise.
3093 * config/i386/linux.mh (NATDEPFILES): Likewise.
3094 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3095 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3096 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3097 * i386-nat.h (debug_hw_points): New declaration.
3098 * i386-nat.c (breakpoint.h): Remove include.
3099 (command.h): Likewise.
3100 (target.h): Likewise.
3101 (gdb_assert.h): Likewise.
3102 (debug_hw_points): Made nonstatic.
3103 (debug_printf): Now in i386-dregs.c.
3104 (TARGET_HAS_DR_LEN_8): Likewise.
3105 (DR_CONTROL_SHIFT): Likewise.
3106 (DR_CONTROL_SIZE): Likewise.
3107 (DR_RW_EXECUTE): Likewise.
3108 (DR_RW_WRITE): Likewise.
3109 (DR_RW_READ): Likewise.
3110 (DR_RW_IORW): Likewise.
3111 (DR_LEN_1): Likewise.
3112 (DR_LEN_2): Likewise.
3113 (DR_LEN_4): Likewise.
3114 (DR_LEN_8): Likewise.
3115 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3116 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3117 (DR_ENABLE_SIZE): Likewise.
3118 (DR_LOCAL_SLOWDOWN): Likewise.
3119 (DR_GLOBAL_SLOWDOWN): Likewise.
3120 (DR_CONTROL_RESERVED): Likewise.
3121 (I386_DR_CONTROL_MASK): Likewise.
3122 (I386_DR_VACANT): Likewise.
3123 (I386_DR_LOCAL_ENABLE): Likewise.
3124 (I386_DR_GLOBAL_ENABLE): Likewise.
3125 (I386_DR_DISABLE): Likewise.
3126 (I386_DR_SET_RW_LEN): Likewise.
3127 (I386_DR_GET_RW_LEN): Likewise.
3128 (I386_DR_WATCH_HIT): Likewise.
3129 (i386_wp_op_t): Likewise.
3130 (i386_show_dr): Likewise.
3131 (i386_length_and_rw_bits): Likewise.
3132 (i386_insert_aligned_watchpoint): Likewise.
3133 (i386_remove_aligned_watchpoint): Likewise.
3134 (i386_handle_nonaligned_watchpoint): Likewise.
3135 (i386_update_inferior_debug_regs): Likewise.
3136 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3137 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3138 (i386_region_ok_for_watchpoint):
3139 Use i386_dr_region_ok_for_watchpoint.
3140 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3141
3142 2014-06-19 Gary Benson <gbenson@redhat.com>
3143
3144 * i386-nat.c (i386_insert_hw_breakpoint): Use
3145 i386_insert_watchpoint.
3146 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3147
3148 2014-06-19 Gary Benson <gbenson@redhat.com>
3149
3150 * i386-nat.c (i386_dr_show): Renamed to
3151 i386_show_dr and made static. All uses updated.
3152 (i386_dr_length_and_rw_bits): Renamed to
3153 i386_length_and_rw_bits and made static.
3154 All uses updated.
3155 (i386_dr_insert_aligned_watchpoint): Renamed to
3156 i386_insert_aligned_watchpoint and made static.
3157 All uses updated.
3158 (i386_dr_remove_aligned_watchpoint): Renamed to
3159 i386_remove_aligned_watchpoint and made static.
3160 All uses updated.
3161 (i386_dr_update_inferior_debug_regs): Renamed to
3162 i386_update_inferior_debug_regs and made static.
3163 All uses updated.
3164 * nat/i386-dregs.h (i386_dr_show): Removed.
3165 (i386_dr_length_and_rw_bits): Likewise.
3166 (i386_dr_insert_aligned_watchpoint): Likewise.
3167 (i386_dr_remove_aligned_watchpoint): Likewise.
3168 (i386_dr_update_inferior_debug_regs): Likewise.
3169
3170 2014-06-19 Gary Benson <gbenson@redhat.com>
3171
3172 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3173 * configure: Regenerate.
3174 * config.in: Likewise.
3175 * main.c (signal.h): New include.
3176 (setup_alternate_signal_stack): New function.
3177 (captured_main): Call the above.
3178 * cp-support.c (signal.h): New include.
3179 (catch_demangler_crashes): New flag.
3180 (SIGJMP_BUF): New define.
3181 (SIGSETJMP): Likewise.
3182 (SIGLONGJMP): Likewise.
3183 (gdb_demangle_jmp_buf): New static global.
3184 (gdb_demangle_attempt_core_dump): Likewise.
3185 (gdb_demangle_signal_handler): New function.
3186 (gdb_demangle): If catch_demangler_crashes is set, install the
3187 above signal handler before calling bfd_demangle, and restore
3188 the original signal handler afterwards. Display the offending
3189 symbol and call demangler_warning the first time a segmentation
3190 fault is caught.
3191 (_initialize_cp_support): New maint set/show command.
3192
3193 2014-06-19 Gary Benson <gbenson@redhat.com>
3194
3195 * utils.h (resource_limit_kind): New enum.
3196 (can_dump_core): New declaration.
3197 (warn_cant_dump_core): Likewise.
3198 (dump_core): Likewise.
3199 * utils.c (dump_core): Made nonstatic. Added new
3200 parameter "limit_kind".
3201 (can_dump_core): Made nonstatic. Moved printing code to...
3202 (warn_cant_dump_core): New function.
3203 (can_dump_core_warn): Likewise.
3204 (internal_vproblem): Replace calls to can_dump_core with
3205 calls to can_dump_core_warn. Supply new argument to each.
3206
3207 2014-06-19 Gary Benson <gbenson@redhat.com>
3208
3209 * utils.h (demangler_vwarning): New declaration.
3210 (demangler_warning): Likewise.
3211 * utils.c (struct internal_problem)
3212 <user_settable_should_quit>: New field.
3213 <user_settable_should_dump_core>: Likewise
3214 (internal_error_problem): Add values for above new fields.
3215 (internal_warning_problem): Likewise.
3216 (demangler_warning_problem): New static global.
3217 (demangler_vwarning): New function.
3218 (demangler_warning): Likewise.
3219 (add_internal_problem_command): Selectively add commands.
3220 (_initialize_utils): New internal problem command.
3221 * maint.c (maintenance_demangler_warning): New function.
3222 (_initialize_maint_cmds): New command.
3223
3224 2014-06-18 Tom Tromey <tromey@redhat.com>
3225
3226 * f-valprint.c (info_common_command_for_block): Update.
3227 * symtab.h (struct general_symbol_info) <common_block>: Now
3228 const.
3229
3230 2014-06-18 Tom Tromey <tromey@redhat.com>
3231
3232 * symtab.h (struct symtab) <blockvector>: Now const.
3233 * ada-lang.c (ada_add_global_exceptions): Update.
3234 * buildsym.c (augment_type_symtab): Update.
3235 * dwarf2read.c (dw2_lookup_symbol): Update.
3236 * jit.c (finalize_symtab): Update.
3237 * jv-lang.c (add_class_symtab_symbol): Update.
3238 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3239 Update.
3240 * objfiles.c (objfile_relocate1): Update.
3241 * psymtab.c (lookup_symbol_aux_psymtabs)
3242 (maintenance_check_psymtabs): Update.
3243 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3244 Update.
3245 * spu-tdep.c (spu_catch_start): Update.
3246 * symmisc.c (dump_symtab_1): Update.
3247 * symtab.c (lookup_global_symbol_from_objfile)
3248 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3249 (basic_lookup_transparent_type_quick)
3250 (basic_lookup_transparent_type, find_pc_sect_symtab)
3251 (find_pc_sect_line, search_symbols): Update.
3252 * block.c (find_block_in_blockvector): Make "bl" const.
3253 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3254 const.
3255 (blockvector_contains_pc): Make "bv" const.
3256 (block_for_pc_sect): Update.
3257 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3258 (blockvector_contains_pc): Update.
3259 * breakpoint.c (resolve_sal_pc): Update.
3260 * inline-frame.c (block_starting_point_at): Update.
3261
3262 2014-06-18 Tom Tromey <tromey@redhat.com>
3263
3264 * completer.c (complete_line): Make "line_buffer" const.
3265 * completer.h (complete_line): Update.
3266
3267 2014-06-18 Tom Tromey <tromey@redhat.com>
3268
3269 * symtab.c (add_macro_name): Remove unneeded cast.
3270
3271 2014-06-18 Tom Tromey <tromey@redhat.com>
3272
3273 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3274 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3275
3276 2014-06-18 Tom Tromey <tromey@redhat.com>
3277
3278 * probe.c (info_probes_for_ops): Make "arg" const.
3279 * probe.h (info_probes_for_ops): Update.
3280
3281 2014-06-18 Tom Tromey <tromey@redhat.com>
3282
3283 * varobj.c (varobj_create): Update.
3284 * valops.c (value_of_this): Update.
3285 * tracepoint.c (add_local_symbols, scope_info): Update.
3286 * symtab.h (struct general_symbol_info) <block>: Now const.
3287 * symtab.c (skip_prologue_sal)
3288 (default_make_symbol_completion_list_break_on)
3289 (skip_prologue_using_sal): Update.
3290 * stack.h (iterate_over_block_locals)
3291 (iterate_over_block_local_vars): Update.
3292 * stack.c (print_frame_args): Update.
3293 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3294 parameter const.
3295 (get_selected_block): Make return type const.
3296 * python/py-frame.c (frapy_block): Update.
3297 * python/py-block.c (gdbpy_block_for_pc): Update.
3298 * p-exp.y (%union) <bval>: Now const.
3299 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3300 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3301 * m2-exp.y (%union) <bval>: Now const.
3302 * linespec.c (get_current_search_block): Make return type const.
3303 (create_sals_line_offset, find_label_symbols): Update.
3304 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3305 Update.
3306 (block_starting_point_at): Make "block" const.
3307 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3308 (check_exception_resume): Update.
3309 * guile/scm-frame.c (gdbscm_frame_block): Update.
3310 * guile/scm-block.c (gdbscm_lookup_block): Update.
3311 * frame.h (get_frame_block): Update.
3312 (get_selected_block): Make return type const.
3313 * frame.c (frame_id_inner): Update.
3314 * f-valprint.c (info_common_command_for_block)
3315 (info_common_command): Update.
3316 * dwarf2loc.c (dwarf2_find_location_expression)
3317 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3318 (locexpr_describe_location_piece): Update.
3319 * c-exp.y (%union) <bval>: Now const.
3320 * breakpoint.c (resolve_sal_pc): Update.
3321 * blockframe.c (get_frame_block):Make return type const.
3322 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3323 (block_innermost_frame): Update.
3324 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3325 (block_for_pc, block_for_pc_sect): Update.
3326 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3327 'pblock' const.
3328 (block_for_pc_sect, block_for_pc): Make return type const.
3329 * ax-gdb.c (gen_expr): Update.
3330 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3331 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3332 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3333 (ada_read_var_value): Update.
3334 * ada-exp.y (struct name_info) <block>: Now const.
3335 (%union): Likewise.
3336 (block_lookup): Constify.
3337
3338 2014-06-18 Gary Benson <gbenson@redhat.com>
3339
3340 * nat/i386-dregs.h: New file.
3341 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3342 * i386-nat.h (i386-dregs.h): New include.
3343 (DR_FIRSTADDR): Now in i386-dregs.h.
3344 (DR_LASTADDR): Likewise.
3345 (DR_NADDR): Likewise.
3346 (DR_STATUS): Likewise.
3347 (DR_CONTROL): Likewise.
3348 (i386_debug_reg_state): Likewise.
3349 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3350
3351 2014-06-18 Don Breazeal <donb@codesourcery.com>
3352
3353 * breakpoint.c (set_longjmp_breakpoint): Call
3354 momentary_breakpoint_from_master with additional argument.
3355 (set_longjmp_breakpoint_for_call_dummy): Call
3356 momentary_breakpoint_from_master with additional argument.
3357 (set_std_terminate_breakpoint): Call
3358 momentary_breakpoint_from_master with additional argument.
3359 (momentary_breakpoint_from_master): Add argument to function
3360 definition and use it to initialize structure member flag.
3361 (clone_momentary_breakpoint): Call
3362 momentary_breakpoint_from_master with additional argument.
3363 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3364 member flags set in momentary_breakpoint_from_master.
3365
3366 2014-06-18 Gary Benson <gbenson@redhat.com>
3367
3368 * i386-nat.c (i386_show_dr): Renamed to
3369 i386_dr_show and made nonstatic. All uses updated.
3370 (i386_length_and_rw_bits): Renamed to
3371 i386_dr_length_and_rw_bits and made nonstatic.
3372 All uses updated.
3373 (i386_insert_aligned_watchpoint): Renamed to
3374 i386_dr_insert_aligned_watchpoint and made nonstatic.
3375 All uses updated.
3376 (i386_remove_aligned_watchpoint): Renamed to
3377 i386_dr_remove_aligned_watchpoint and made nonstatic.
3378 All uses updated.
3379 (i386_update_inferior_debug_regs): Renamed to
3380 i386_dr_update_inferior_debug_regs and made nonstatic.
3381 All uses updated.
3382
3383 2014-06-18 Gary Benson <gbenson@redhat.com>
3384
3385 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3386 (i386_dr_low_can_set_control): Likewise.
3387 (i386_dr_low_set_addr): Likewise.
3388 (i386_dr_low_set_control): Likewise.
3389 (i386_dr_low_get_addr): Likewise.
3390 (i386_dr_low_get_status): Likewise.
3391 (i386_dr_low_get_control): Likewise.
3392 (i386_insert_aligned_watchpoint): Use new macros.
3393 (i386_update_inferior_debug_regs): Likewise.
3394 (i386_stopped_data_address): Likewise.
3395
3396 2014-06-18 Gary Benson <gbenson@redhat.com>
3397
3398 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3399 New parameter. All uses updated.
3400
3401 2014-06-18 Gary Benson <gbenson@redhat.com>
3402
3403 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3404 All uses updated.
3405
3406 2014-06-18 Gary Benson <gbenson@redhat.com>
3407
3408 * i386-nat.c (debug_printf): New macro.
3409 (i386_get_debug_register_length): Likewise.
3410 (TARGET_HAS_DR_LEN_8): Use above macro.
3411 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3412 and printf_unfiltered. Use phex to format values.
3413
3414 2014-06-18 Gary Benson <gbenson@redhat.com>
3415
3416 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3417 Make const.
3418
3419 2014-06-18 Gary Benson <gbenson@redhat.com>
3420
3421 * i386-nat.c: Comment changes.
3422
3423 2014-06-18 Gary Benson <gbenson@redhat.com>
3424
3425 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3426
3427 2014-06-18 Gary Benson <gbenson@redhat.com>
3428
3429 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3430 (i386_insert_aligned_watchpoint): Likewise.
3431 (i386_remove_aligned_watchpoint): Likewise.
3432 (i386_handle_nonaligned_watchpoint): Likewise.
3433
3434 2014-06-18 Gary Benson <gbenson@redhat.com>
3435
3436 * i386-nat.c: Whitespace changes.
3437
3438 2014-06-17 Samuel Bronson <naesten@gmail.com>
3439
3440 * MAINTAINERS: Update Roland McGrath's email address.
3441 Thanks to Sergio Durigan Junior for pointing out that he left
3442 Red Hat a while ago, and giving me a current address.
3443
3444 2014-06-17 Tom Tromey <tromey@redhat.com>
3445
3446 * utils.h (savestring): Remove declaration.
3447
3448 2014-06-17 Tom Tromey <tromey@redhat.com>
3449
3450 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3451
3452 2014-06-16 Keith Seitz <keiths@redhat.com>
3453
3454 PR mi/15863
3455 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3456 to update the varobj if inferior_ptid is null_ptid.
3457
3458 2014-06-16 Tom Tromey <tromey@redhat.com>
3459
3460 * target.h (struct target_ops) <to_info_proc>: Make parameter
3461 const.
3462 (target_info_proc): Update.
3463 * target.c (target_info_proc): Make "args" const.
3464 * procfs.c (procfs_info_proc): Update.
3465 * linux-tdep.c (linux_info_proc): Update.
3466 (linux_core_info_proc_mappings): Make "args" const.
3467 (linux_core_info_proc): Update.
3468 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3469 * gdbarch.c: Rebuild.
3470 * gdbarch.h: Rebuild.
3471 * corelow.c (core_info_proc): Update.
3472
3473 2014-06-16 Tom Tromey <tromey@redhat.com>
3474
3475 * target.h (struct target_ops) <to_disconnect>: Make parameter
3476 const.
3477 (target_disconnect): Update.
3478 * target.c (target_disconnect): Make "args" const.
3479 * target-delegates.c: Rebuild.
3480 * remote.c (remote_disconnect): Update.
3481 * record.h (record_disconnect): Update.
3482 * record.c (record_disconnect): Update.
3483 * inf-child.c (inf_child_disconnect): Update.
3484
3485 2014-06-16 Tom Tromey <tromey@redhat.com>
3486
3487 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3488 * target.c (debug_to_rcmd, default_rcmd): Update.
3489 * target-delegates.c: Rebuild.
3490 * remote.c (remote_rcmd): Update.
3491 * monitor.c (monitor_rcmd): Update.
3492
3493 2014-06-16 Pedro Alves <palves@redhat.com>
3494
3495 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3496 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3497 have OBJF_SHARED set.
3498 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3499 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3500 instead of OBJF_USERLOADED.
3501 * objfiles.h (OBJF_SHARED): Update comment.
3502 (userloaded_objfile_contains_address_p): Rename to ...
3503 (shared_objfile_contains_address_p): ... this, and update
3504 comments.
3505 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3506 new objfile.
3507 (remove_symbol_file_command): Skip objfiles that don't have
3508 OBJF_SHARED set.
3509
3510 2014-06-16 Tom Tromey <tromey@redhat.com>
3511
3512 * minsyms.h (prim_record_minimal_symbol)
3513 (prim_record_minimal_symbol_and_info): Update comments.
3514
3515 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3516
3517 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3518 or --without-guile, according to how GDB was built.
3519
3520 2014-06-13 Tom Tromey <tromey@redhat.com>
3521
3522 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3523 to help_list.
3524 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3525 to help_list.
3526 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3527 help_list.
3528 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3529 help_list.Pass all_commands, not -1, to help_list.
3530 * cli/cli-dump.c (dump_command, append_command)
3531 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3532 (binary_dump_command, binary_append_command): Pass all_commands,
3533 not -1, to help_list.
3534 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3535 -1, to help_list.
3536 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3537 -1, to help_list.
3538 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3539 help_list.
3540 * top.c (set_history): Pass all_commands, not -1, to help_list.
3541 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3542 all_commands, not -1, to help_list.
3543 * symfile.c (overlay_command): Pass all_commands, not -1, to
3544 help_list.
3545 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3546 help_list.
3547 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3548 help_list.
3549 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3550 -1, to help_list.
3551 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3552 not -1, to help_list.
3553 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3554 not -1, to help_list.
3555 * maint.c (maintenance_command, maintenance_info_command)
3556 (maintenance_print_command, maintenance_set_cmd): Pass
3557 all_commands, not -1, to help_list.
3558 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3559 help_list.
3560 * language.c (set_check): Pass all_commands, not -1, to help_list.
3561 * infcmd.c (unset_command): Pass all_commands, not -1, to
3562 help_list.
3563 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3564 help_list.
3565 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3566 help_list.
3567 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3568 help_list.
3569 * breakpoint.c (save_command): Pass all_commands, not -1, to
3570 help_list.
3571 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3572 all_commands, not -1, to help_list.
3573
3574 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3575
3576 * regcache.c (struct register_to_invalidate): New structure.
3577 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3578 functions.
3579 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3580
3581 2014-06-12 Yao Qi <yao@codesourcery.com>
3582
3583 * varobj.c (varobj_get_num_children): Call
3584 varobj_is_dynamic_p.
3585 (varobj_list_children): Likewise.
3586 (varobj_update): Likewise. Update comments.
3587
3588 2014-06-12 Yao Qi <yao@codesourcery.com>
3589
3590 * varobj.c (varobj_pretty_printed_p): Rename to ...
3591 (varobj_is_dynamic_p): ... this. New function.
3592 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3593 (varobj_is_dynamic_p): Declare.
3594 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3595 (mi_print_value_p, varobj_update_one): Likewise.
3596
3597 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3598 Yao Qi <yao@codesourcery.com>
3599
3600 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3601 (varobj_get_iterator): Wrap up code for pretty-printer by
3602 "#if HAVE_PYTHON" and "#endif".
3603 (update_dynamic_varobj_children): Likewise.
3604
3605 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3606 Yao Qi <yao@codesourcery.com>
3607
3608 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3609 gdb_python_initialized is false. Move some code from varobj.c.
3610 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3611 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3612 (struct varobj_item): Moved to varobj-iter.h".
3613 (varobj_clear_saved_item): New function.
3614 (update_dynamic_varobj_children): Move python-related code to
3615 py-varobj.c.
3616 (free_variable): Call varobj_clear_saved_item and
3617 varobj_iter_delete.
3618
3619 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3620 Yao Qi <yao@codesourcery.com>
3621
3622 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3623 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3624 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3625 (py-varobj.o): New rule.
3626 * python/py-varobj.c: New file.
3627 * python/python-internal.h (py_varobj_get_iterator): Declare.
3628 * varobj-iter.h: New file.
3629 * varobj.c: Include "varobj-iter.h"
3630 (struct varobj) <child_iter>: Change its type from "PyObject *"
3631 to "struct varobj_iter *".
3632 <saved_item>: Likewise.
3633 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3634 [HAVE_PYTHON] (varobj_get_iterator): New function.
3635 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3636 python-specific code to python/py-varobj.c.
3637 (install_visualizer): Call varobj_iter_delete instead of
3638 Py_XDECREF.
3639 * varobj.h (varobj_ensure_python_env): Declare.
3640
3641 2014-06-12 Yao Qi <yao@codesourcery.com>
3642
3643 * varobj.c (struct varobj_item): New structure.
3644 (create_child_with_value): Update declaration.
3645 (varobj_add_child): Replace arguments 'name' and 'value' with
3646 'item'. All callers updated.
3647 (install_dynamic_child): Likewise.
3648 (update_dynamic_varobj_children): Likewise.
3649 (varobj_add_child): Likewise.
3650 (create_child_with_value): Likewise.
3651
3652 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3653
3654 * NEWS: Create a new section for the next release branch.
3655 Rename the section of the current branch, now that it has
3656 been cut.
3657
3658 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3659
3660 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3661 * version.in: Bump version to 7.8.50.DATE-cvs.
3662
3663 2014-06-11 Pedro Alves <palves@redhat.com>
3664
3665 PR remote/17028
3666 * ser-mingw.c (net_windows_socket_check_pending): New function.
3667 (net_windows_select_thread): Ignore spurious wakeups. Use
3668 net_windows_socket_check_pending.
3669 (net_windows_wait_handle): Check for pending events with
3670 ioctlsocket, through net_windows_socket_check_pending, instead of
3671 checking the socket's event.
3672
3673 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3674
3675 * python/python-internal.h (gdb_PyObject_GetAttrString)
3676 (gdb_PyObject_HasAttrString): New inline function definitions.
3677 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3678 char * of the second argument to PyObject_GetAttrString.
3679
3680 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3681
3682 * serial.c (serial_write): Fix index of character to be printed
3683 in call to serial_logchar when serial debug traces are enabled.
3684
3685 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3686
3687 * gdbtypes (resolve_dynamic_range): Add function description.
3688
3689 2014-06-09 Pedro Alves <palves@redhat.com>
3690
3691 * linux-nat.c (linux_child_follow_fork): Initialize status with
3692 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3693 inner block. Only pass the signal to PTRACE_DETACH if in pass
3694 state.
3695
3696 2014-06-09 Gary Benson <gbenson@redhat.com>
3697
3698 * common/signals.c (gdb_signal_from_host): Reorder to separate
3699 the always-available ANSI-standard signals from the signals that
3700 require checking.
3701 (do_gdb_signal_to_host): Likewise.
3702 * proc-events.c (signal_table): Likewise.
3703
3704 2014-06-08 Hui Zhu <hui@codesourcery.com>
3705
3706 * common/linux-ptrace.c (linux_disable_event_reporting): New
3707 function.
3708 * common/linux-ptrace.h (linux_disable_event_reporting): New
3709 declaration.
3710 * linux-nat.c (linux_child_follow_fork): Do a single step before
3711 detach.
3712
3713 2014-06-07 Keith Seitz <keiths@redhat.com>
3714
3715 Revert:
3716 PR c++/16253
3717 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3718 from symbol_matches_domain in symtab.c. All local callers
3719 of symbol_matches_domain updated.
3720 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3721 search STRUCT_DOMAIN.
3722 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3723 independently. standard_lookup will do that automatically.
3724 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3725 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3726 (cp_lookup_symbol_in_namespace): Likewise.
3727 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3728 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3729 may return a STRUCT_DOMAIN match.
3730 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3731 * cp-support.c: Include language.h.
3732 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3733 VAR_DOMAIN.
3734 * psymtab.c (match_partial_symbol): Compare the requested
3735 domain with the symbol's domain directly.
3736 (lookup_partial_symbol): Likewise.
3737 * symtab.c (lookup_symbol_in_language): Explain when/why
3738 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3739 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3740 appropriate languages.
3741 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3742 and moved to ada-lang.c
3743 (lookup_block_symbol): Explain that this function only returns
3744 symbol matching the requested DOMAIN.
3745 Compare the requested domain with the symbol's domain directly.
3746 (iterate_over_symbols): Compare the requested domain with the
3747 symbol's domain directly.
3748 * symtab.h (symbol_matches_domain): Remove.
3749
3750 2014-06-06 Doug Evans <xdje42@gmail.com>
3751
3752 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3753 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3754 (gdbscm_guile_version_is_at_least): Declare.
3755 (gdbscm_scm_string_to_int): Declare.
3756 * guile/guile.c (gdbscm_guile_major_version): New global.
3757 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3758 (guile_datadir): New static global.
3759 (gdbscm_guile_data_directory): New function.
3760 (initialize_scheme_side): Update.
3761 (misc_guile_functions): Add guile-data-directory.
3762 (initialize_gdb_module): Fetch guile version number.
3763 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3764 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3765 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3766 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3767 comments.
3768 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3769 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3770 * guile/scm-value.c (gdbscm_value_to_string): Only call
3771 scm_port_conversion_strategy if Guile version >= 2.0.6.
3772
3773 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3774
3775 * main.c (print_gdb_help): Add -q and --silent.
3776
3777 2014-06-06 Gary Benson <gbenson@redhat.com>
3778
3779 * common/signals.c: Remove preprocessor conditionals for
3780 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3781 SIGSEGV and SIGTERM.
3782 * proc-events.c: Likewise.
3783
3784 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3785
3786 * symfile.c (symfile_free_objfile): Remove restriction to
3787 OBJF_USERLOADED.
3788 * symfile-mem.c (symbol_file_add_from_memory): Call
3789 add_target_sections_of_objfile.
3790
3791 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3792
3793 * guile/scm-value.c (gdbscm_history_append_x): Use
3794 'vlscm_get_value_smob_arg_unsafe' instead of
3795 'vlscm_scm_to_value'.
3796
3797 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3798
3799 PR mi/15806
3800 * utils.c (printchar): Don't escape at all if quoter is NUL.
3801 Update function documentation to clarify effect of parameter
3802 QUOTER.
3803 * remote.c (escape_buffer): Pass '\\' as the quoter to
3804 fputstrn_unfiltered.
3805 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3806 generate the output.
3807 (mi_solib_unloaded): Same.
3808
3809 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3810
3811 * development.sh: Delete.
3812 * Makefile.in (config.status): Adjust dependency on development.sh.
3813 * configure.ac: Adjust development.sh source call.
3814 * configure: Regenerate.
3815
3816 2014-06-04 Doug Evans <xdje42@gmail.com>
3817
3818 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3819 is_scheme_bkpt, spec.
3820 (bpscm_make_breakpoint_smob): Initialize new members.
3821 (gdbscm_create_breakpoint_x): Split into two ...
3822 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3823 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3824 (scheme_function breakpoint_functions): Update.
3825 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3826 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3827 register-breakpoint!.
3828
3829 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3830
3831 PR server/17023
3832 * mem-break.c (z_type_supported): Return zero if
3833 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3834
3835 2014-06-04 Tom Tromey <tromey@redhat.com>
3836
3837 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3838 value_from_contents_and_address_unresolved.
3839 (ada_template_to_fixed_record_type_1): Likewise.
3840 (ada_which_variant_applies): Likewise.
3841 * value.h (value_from_contents_and_address_unresolved): Declare.
3842 * value.c (value_from_contents_and_address_unresolved): New
3843 function.
3844 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3845 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3846 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3847
3848 2014-06-04 Tom Tromey <tromey@redhat.com>
3849
3850 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3851
3852 2014-06-04 Tom Tromey <tromey@redhat.com>
3853
3854 * procfs.c (procfs_attach): Make "args" const.
3855 * windows-nat.c (windows_attach): Make "args" const.
3856 * nto-procfs.c (procfs_attach): Make "args" const.
3857 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3858 * go32-nat.c (go32_attach): Make "args" const.
3859 * gnu-nat.c (gnu_attach): Make "args" const.
3860 * darwin-nat.c (darwin_attach): Make "args" const.
3861 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3862 * linux-nat.c (linux_nat_attach): Make "args" const.
3863 * remote.c (extended_remote_attach_1, extended_remote_attach):
3864 Make "args" const.
3865 * target.h (struct target_ops) <to_attach>: Make "args" const.
3866 (find_default_attach): Likewise.
3867 * utils.c (parse_pid_to_attach): Make "args" const.
3868 * utils.h (parse_pid_to_attach): Update.
3869
3870 2014-06-04 Tom Tromey <tromey@redhat.com>
3871
3872 * target-delegates.c: Rebuild.
3873 * target.c (default_thread_address_space): New function.
3874 (target_thread_address_space): Simplify.
3875 * target.h (struct target_ops) <to_thread_address_space>: Add
3876 TARGET_DEFAULT_FUNC.
3877
3878 2014-06-04 Doug Evans <xdje42@gmail.com>
3879
3880 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3881
3882 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3883
3884 * record-btrace.c: Include event-loop.h and inf-loop.h.
3885 (record_btrace_resume_exec_dir)
3886 (record_btrace_async_inferior_event_handler)
3887 (record_btrace_handle_async_inferior_event): New.
3888 (record_btrace_open): Create async event handler.
3889 (record_btrace_close): Delete async event handler.
3890 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3891 Mark async event handler.
3892 (record_btrace_execution_direction): New.
3893 (init_record_btrace_ops): Initialize to_execution_direction.
3894
3895 2014-06-03 Doug Evans <xdje42@gmail.com>
3896
3897 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3898 (gdbscm_make_parameter): Ditto.
3899
3900 2014-06-03 Doug Evans <dje@google.com>
3901
3902 * exec.c (exec_close_1): Call clear_section_table instead of
3903 resize_section_table.
3904 (clear_section_table): New function.
3905 (resize_section_table): Make static. Rename arg num_added to
3906 adjustment.
3907 * exec.h (clear_section_table): Declare.
3908 (resize_section_table): Delete.
3909 * progspace.c (release_program_space): Call clear_section_table
3910 instead of resize_section_table.
3911
3912 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3913
3914 * NEWS (Python Scripting): Add entry about the new xmethods
3915 feature.
3916
3917 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3918
3919 * python/py-xmethods.c: New file.
3920 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3921 (objfpy_dealloc): XDECREF on the new xmethods field.
3922 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3923 field.
3924 (objfpy_get_xmethods): New function.
3925 (objfile_getset): New entry 'xmethods'.
3926 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3927 (pspy_dealloc): XDECREF on the new xmethods field.
3928 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3929 field.
3930 (pspy_get_xmethods): New function.
3931 (pspace_getset): New entry 'xmethods'.
3932 * python/python-internal.h: Add declarations for new functions.
3933 * python/python.c (_initialize_python): Invoke
3934 gdbpy_initialize_xmethods.
3935 * python/lib/gdb/__init__.py (xmethods): New
3936 attribute.
3937 * python/lib/gdb/xmethod.py: New file.
3938 * python/lib/gdb/command/xmethods.py: New file.
3939
3940 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3941
3942 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3943 best match method returned by find_overload_match is an xmethod.
3944 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3945 the best matching operator returned by find_overload_match is an
3946 xmethod.
3947 * valops.c: #include "extension.h".
3948 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3949 Return void. The list of matching source methods is returned in
3950 "fn_list" and a vector of matching debug method workers is
3951 returned in "xm_worker_vec". Update all callers.
3952 (value_find_oload_method_list): Likewise.
3953 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3954 non-NULL, then the index of the best matching method in this
3955 vector is returned. Update all callers.
3956 (find_overload_match): Include xmethods while performing overload
3957 resolution.
3958
3959 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3960
3961 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3962 * extension-priv.h (struct extension_language_ops): Add the
3963 xmethod interface.
3964 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3965 get_matching_xmethod_workers, get_xmethod_argtypes,
3966 invoke_xmethod, free_xmethod_worker,
3967 free_xmethod_worker_vec): New functions.
3968 * extension.h: #include "common/vec.h".
3969 New function declarations.
3970 (struct xmethod_worker): New struct.
3971 (VEC (xmethod_worker_ptr)): New vector type.
3972 (xmethod_worker_ptr): New typedef.
3973 (xmethod_worker_vec): Likewise.
3974 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3975 builtin_type.
3976 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3977 (struct builtin_type): New field "xmethod".
3978 * valarith.c (value_ptradd): Assert that the value argument is not
3979 lval_xcallable.
3980 * valops.c (value_must_coerce_to_target): Return 0 for
3981 lval_xcallable values.
3982 * value.c (struct value): New field XM_WORKER in the field
3983 LOCATION.
3984 (value_address, value_raw_address): Return 0 for lval_xcallable
3985 values.
3986 (set_value_address): Assert that the value is not an
3987 lval_xcallable.
3988 (value_free): Free the associated xmethod worker when freeing
3989 lval_xcallable values.
3990 (set_value_component_location): Assert that the WHOLE value is not
3991 lval_xcallable.
3992 (value_of_xmethod, call_xmethod): New functions.
3993 * value.h: Declare "struct xmethod_worker".
3994 Declare new functions value_of_xmethod, call_xmethod.
3995
3996 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3997 Pedro Alves <palves@redhat.com>
3998
3999 PR breakpoints/17000
4000 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
4001 New function, extracted from software_breakpoint_inserted_here_p.
4002 (software_breakpoint_inserted_here_p): Replace factored out code
4003 by call to find_non_raw_software_breakpoint_inserted_here.
4004 (bp_target_info_copy_insertion_state): New function.
4005 (bkpt_insert_location): Handle the case of a single-step
4006 breakpoint already inserted at the same address.
4007 (bkpt_remove_location): Handle the case of a single-step
4008 breakpoint still inserted at the same address.
4009 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
4010 breakpoint already inserted at the same address.
4011 (deprecated_remove_raw_breakpoint): Handle the case of a
4012 non-raw breakpoint still inserted at the same address.
4013 (find_single_step_breakpoint): New function, extracted from
4014 single_step_breakpoint_inserted_here_p.
4015 (find_single_step_breakpoint): New function,
4016 factored out from single_step_breakpoint_inserted_here_p.
4017 (single_step_breakpoint_inserted_here_p): Reimplement.
4018
4019 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
4020
4021 Pushed by Joel Brobecker <brobecker@adacore.com>
4022 * source.c (show_substitute_path_command): Fix display of matching
4023 substitution rules.
4024
4025 2014-06-03 Gary Benson <gbenson@redhat.com>
4026
4027 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
4028
4029 2014-06-02 Doug Evans <xdje42@gmail.com>
4030
4031 Add parameter support for Guile.
4032 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
4033 (SUBDIR_GUILE_SRCS): Add scm-param.c.
4034 (scm-param.o): New rule.
4035 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
4036 (gdbscm_misc_error): Declare.
4037 (gdbscm_canonicalize_command_name): Declare.
4038 (gdbscm_scm_to_host_string): Declare.
4039 (gdbscm_scm_from_host_string): Declare.
4040 (gdbscm_initialize_parameters): Declare.
4041 * guile/guile.c (initialize_gdb_module): Call
4042 gdbscm_initialize_parameters.
4043 * guile/lib/gdb.scm: Export parameter symbols.
4044 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
4045 cmdscm_canonicalize_name and made public. All callers updated.
4046 * guile/scm-exception.c (gdbscm_misc_error): New function.
4047 * guile/scm-param.c: New file.
4048 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
4049 (gdbscm_scm_to_host_string): New function.
4050 (gdbscm_scm_from_host_string): New function.
4051 * scm-utils.c (gdbscm_gc_dup_argv): New function.
4052
4053 2014-06-02 Doug Evans <xdje42@gmail.com>
4054
4055 Add command support for Guile.
4056 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
4057 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
4058 (scm-cmd.o): New rule.
4059 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
4060 (gdbscm_user_error_p): Declare.
4061 (gdbscm_parse_command_name): Declare.
4062 (gdbscm_valid_command_class_p): Declare.
4063 (gdbscm_initialize_commands): Declare.
4064 * guile/guile.c (initialize_gdb_module): Call
4065 gdbscm_initialize_commands.
4066 * guile/lib/gdb.scm: Export command symbols.
4067 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
4068 (throw-user-error): New function.
4069 * guile/scm-cmd.c: New file.
4070 * guile/scm-exception.c (user_error_symbol): New static global.
4071 (gdbscm_user_error_p): New function.
4072 (gdbscm_initialize_exceptions): Set user_error_symbol.
4073 * scm-utils.c (gdbscm_gc_xstrdup): New function.
4074
4075 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
4076
4077 * top.c (command_loop): Handle comments here...
4078 (command_line_input): ... not here.
4079
4080 2014-06-02 Doug Evans <xdje42@gmail.com>
4081
4082 Add progspace support for Guile.
4083 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4084 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4085 (scm-progspace.o): New rule.
4086 * guile/guile-internal.h (pspace_smob): New typedef.
4087 (psscm_pspace_smob_pretty_printers): Declare.
4088 (psscm_pspace_smob_from_pspace): Declare.
4089 (psscm_scm_from_pspace): Declare.
4090 * guile/guile.c (initialize_gdb_module): Call
4091 gdbscm_initialize_pspaces.
4092 * guile/lib/gdb.scm: Export progspace symbols.
4093 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4094 support.
4095 (append-pretty-printer!): Ditto.
4096 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4097 Implement.
4098 * guile/scm-progspace.c: New file.
4099
4100 2014-06-03 Alan Modra <amodra@gmail.com>
4101
4102 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4103 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4104
4105 2014-06-02 Doug Evans <dje@google.com>
4106
4107 Add support for skeletonless type units.
4108 * dwarf2read.c (struct dwarf2_per_objfile): New member
4109 n_allocated_type_units.
4110 (struct dwarf2_per_objfile) <tu_stats>: New member
4111 nr_all_type_units_reallocs.
4112 (create_signatured_type_table_from_index): Initialize
4113 n_allocated_type_units
4114 (create_all_type_units): Ditto.
4115 (add_type_unit): Move up in file. New arg slot.
4116 All callers updated. Increase space for all_type_units more
4117 efficiently.
4118 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4119 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4120 (lookup_dwp_signatured_type): Ditto.
4121 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4122 All callers updated.
4123 (build_type_psymtabs_1): Leave type_unit_groups as
4124 NULL if no TUs present.
4125 (print_tu_stats): New function.
4126 (process_skeletonless_type_unit): New function.
4127 (process_dwo_file_for_skeletonless_type_units): New
4128 function.
4129 (process_skeletonless_type_units): New function.
4130 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4131 Call print tu_stats if debugging enabled.
4132
4133 2014-06-02 Pedro Alves <palves@redhat.com>
4134
4135 * breakpoint.c (build_target_command_list): Don't build a command
4136 list if we have any duplicate location that isn't a dprintf.
4137
4138 2014-06-02 Pedro Alves <palves@redhat.com>
4139
4140 * breakpoint.c (dprintf_breakpoint_hit): New function.
4141 (initialize_breakpoint_ops): Install it as dprintf's
4142 breakpoint_hit method.
4143
4144 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4145
4146 * source.c (substitute_path_rule_matches): Simplify using
4147 filename_ncmp instead of FILENAME_CMP.
4148
4149 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4150
4151 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4152
4153 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4154
4155 * configure.ac: When Guile is available, check for the
4156 availability of 'scm_new_smob'.
4157 * configure, config.h.in: Regenerate.
4158 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4159 function.
4160
4161 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4162
4163 * frame.c (struct frame_info): Add stop_string field.
4164 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4165 (get_prev_frame_always): Old content moved into
4166 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4167 TRY_CATCH, handle MEMORY_ERROR exceptions.
4168 (frame_stop_reason_string): New function definition.
4169 * frame.h (unwind_stop_reason_to_string): Extend comment to
4170 mention frame_stop_reason_string.
4171 (frame_stop_reason_string): New function declaration.
4172 * stack.c (frame_info): Switch to frame_stop_reason_string.
4173 (backtrace_command_1): Switch to frame_stop_reason_string.
4174 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4175 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4176 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4177
4178 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4179
4180 * frame.c (frame_stop_reason_string): Rename to ...
4181 (unwind_stop_reason_to_string): this.
4182 * frame.h (frame_stop_reason_string): Rename to ...
4183 (unwind_stop_reason_to_string): this.
4184 * stack.c (frame_info): Update call to frame_stop_reason_string.
4185 (backtrace_command_1): Likewise.
4186 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4187 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4188
4189 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4190
4191 * frame.c (remove_prev_frame): New function.
4192 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4193 remove_prev_frame.
4194
4195 2014-05-29 Pedro Alves <palves@redhat.com>
4196
4197 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4198 and make it const. When a single-step decays to a continue,
4199 clear 'step', not 'hw_step'. Pass whether the caller wanted
4200 to step to user_visible_resume_ptid, not what we ask the
4201 target to do.
4202
4203 2014-05-29 Pedro Alves <palves@redhat.com>
4204
4205 * infrun.c (process_event_stop_test, handle_step_into_function)
4206 (handle_step_into_function_backward): Adjust.
4207 Don't set the even thread's stop_step and call stop_waiting before
4208 calling end_stepping_range. Instead do that ...
4209 (end_stepping_range): ... here. Take an ecs pointer parameter.
4210
4211 2014-05-29 Pedro Alves <palves@redhat.com>
4212
4213 * infrun.c (stop_stepping): Rename to ...
4214 (stop_waiting): ... this.
4215 (proceed): Update comment.
4216 (process_event_stop_test, handle_inferior_event)
4217 (handle_signal_stop, handle_step_into_function)
4218 (handle_step_into_function_backward): Update.
4219
4220 2014-05-29 Pedro Alves <palves@redhat.com>
4221
4222 * infcall.c (run_inferior_call): Don't check whether the current
4223 thread is running after the proceed call.
4224
4225 2014-05-29 Pedro Alves <palves@redhat.com>
4226 Tom Tromey <tromey@redhat.com>
4227
4228 * NEWS: Mention "maint set target-async", "set mi-async", and that
4229 background execution commands are now always available.
4230 * target.h (target_async_permitted): Update comment.
4231 * target.c (target_async_permitted, target_async_permitted_1):
4232 Default to 1.
4233 (set_target_async_command): Rename to ...
4234 (maint_set_target_async_command): ... this.
4235 (show_target_async_command): Rename to ...
4236 (maint_show_target_async_command): ... this.
4237 (_initialize_target): Adjust.
4238 * infcmd.c (prepare_execution_command): Make extern.
4239 * inferior.h (prepare_execution_command): Declare.
4240 * infrun.c (set_observer_mode): Leave target async alone.
4241 * mi/mi-interp.c (mi_interpreter_init): Install
4242 mi_on_sync_execution_done as sync_execution_done observer.
4243 (mi_on_sync_execution_done): New function.
4244 (mi_execute_command_input_handler): Don't print the prompt if we
4245 just started a synchronous command with an async target.
4246 (mi_on_resume): Check sync_execution before printing prompt.
4247 * mi/mi-main.h (mi_async_p): Declare.
4248 * mi/mi-main.c: Include gdbcmd.h.
4249 (mi_async_p): New function.
4250 (mi_async, mi_async_1): New globals.
4251 (set_mi_async_command, show_mi_async_command, mi_async): New
4252 functions.
4253 (exec_continue): Call prepare_execution_command.
4254 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4255 (mi_execute_async_cli_command): Use mi_async_p.
4256 (_initialize_mi_main): Install "set mi-async". Make
4257 "target-async" a deprecated alias.
4258
4259 2014-05-29 Pedro Alves <palves@redhat.com>
4260
4261 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4262 (_initialize_cli_interp): Adjust.
4263 * event-loop.c: Include "observer.h".
4264 (start_event_loop): Notify 'command_error' observers instead of
4265 calling display_gdb_prompt. Remove FIXME comment.
4266 * event-top.c (display_gdb_prompt): Remove call into the
4267 interpreters.
4268 * inf-loop.c: Include "observer.h".
4269 (inferior_event_handler): Notify 'command_error' observers instead
4270 of calling display_gdb_prompt.
4271 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4272 observers instead of calling display_gdb_prompt.
4273 * interps.c (interp_set): Don't call display_gdb_prompt.
4274 (current_interp_display_prompt_p): Delete.
4275 * interps.h (interp_prompt_p): Delete declaration.
4276 (interp_prompt_p_ftype): Delete.
4277 (struct interp_procs) <prompt_proc_p>: Delete field.
4278 (current_interp_display_prompt_p): Delete declaration.
4279 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4280 (_initialize_mi_interp): Adjust.
4281 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4282 'command_error' observers.
4283 (tui_on_sync_execution_done, tui_on_command_error): New
4284 functions.
4285 (tui_display_prompt_p): Delete.
4286 (_initialize_tui_interp): Adjust.
4287
4288 2014-05-29 Pedro Alves <palves@redhat.com>
4289
4290 PR gdb/13860
4291 * cli/cli-interp.c: Include infrun.h and observer.h.
4292 (cli_uiout, cli_interp): New globals.
4293 (cli_on_signal_received, cli_on_end_stepping_range)
4294 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4295 functions.
4296 (cli_interpreter_init): Install them as 'end_stepping_range',
4297 'signal_received' 'signal_exited', 'exited' and 'no_history'
4298 observers.
4299 (_initialize_cli_interp): Remove cli_interp local.
4300 * infrun.c (handle_inferior_event): Call the several stop reason
4301 observers instead of printing the stop reason directly.
4302 (end_stepping_range): New function.
4303 (print_end_stepping_range_reason, print_signal_exited_reason)
4304 (print_exited_reason, print_signal_received_reason)
4305 (print_no_history_reason): Make static, and add an uiout
4306 parameter. Print to that instead of to CURRENT_UIOUT.
4307 * infrun.h (print_end_stepping_range_reason)
4308 (print_signal_exited_reason, print_exited_reason)
4309 (print_signal_received_reason print_no_history_reason): New
4310 declarations.
4311 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4312 'mi_uiout'.
4313 <cli_uiout>: New field.
4314 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4315 uiout for CLI output. Install 'signal_received',
4316 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4317 observers.
4318 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4319 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4320 (mi_on_no_history): New functions.
4321 (ui_out_free_cleanup): Delete function.
4322 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4323 instead use the one already stored in the MI interpreter data.
4324 (mi_ui_out): Adjust.
4325 * tui/tui-interp.c: Include infrun.h and observer.h.
4326 (tui_interp): New global.
4327 (tui_on_signal_received, tui_on_end_stepping_range)
4328 (tui_on_signal_exited, tui_on_exited)
4329 (tui_on_no_history): New functions.
4330 (tui_init): Install them as 'end_stepping_range',
4331 'signal_received' 'signal_exited', 'exited' and 'no_history'
4332 observers.
4333 (_initialize_tui_interp): Delete tui_interp local.
4334
4335 2014-05-29 Pedro Alves <palves@redhat.com>
4336
4337 PR gdb/15713
4338 * linux-nat.c (linux_nat_resume_callback): Rename the second
4339 parameter to 'except'. Skip LP if it points to EXCEPT.
4340 (linux_nat_resume): Don't mark the event lwp as not stopped
4341 before resuming sibling lwps. Instead ask
4342 linux_nat_resume_callback to skip the event lwp. Mark it as not
4343 stopped after actually resuming it.
4344 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4345 resuming it.
4346 (wait_lwp): Mark the lwp as stopped here.
4347 (stop_wait_callback): Mark the lwp as not stopped right after
4348 resuming it. Don't mark lwps as stopped here.
4349 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4350 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4351
4352 2014-05-29 Pedro Alves <palves@redhat.com>
4353
4354 PR PR15693
4355 * infrun.c (resume): Determine how much to resume depending on
4356 whether the caller wanted a step, not whether we can hardware step
4357 the target. Mark all threads that we intend to run as running,
4358 unless we're calling an inferior function.
4359 (normal_stop): If the thread is running an infcall, don't finish
4360 thread state.
4361 * target.c (target_resume): Don't mark threads as running here.
4362
4363 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4364
4365 * serial.c (_initialize_serial): Remove support for
4366 the "set remotebaud" and "show remotebaud" commands.
4367 * NEWS: Add entry documenting the removal of that command.
4368
4369 2014-05-28 Yao Qi <yao@codesourcery.com>
4370
4371 * charset.c: Fix typo in comments.
4372
4373 2014-05-27 Gary Benson <gbenson@redhat.com>
4374
4375 * utils.c (internal_vproblem): Prompt for a bug report.
4376
4377 2014-05-26 Andy Wingo <wingo@igalia.com>
4378
4379 * guile/scm-arch.c (arscm_mark_arch_smob):
4380 * guile/scm-block.c (bkscm_mark_block_smob)
4381 (bkscm_mark_block_syms_progress_smob):
4382 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4383 * guile/scm-exception.c (exscm_mark_exception_smob):
4384 * guile/scm-frame.c (frscm_mark_frame_smob):
4385 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4386 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4387 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4388 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4389 (ppscm_mark_pretty_printer_worker_smob):
4390 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4391 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4392 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4393 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4394 mark functions.
4395 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4396 function.
4397
4398 2014-05-26 Andy Wingo <wingo@igalia.com>
4399 Doug Evans <xdje42@gmail.com>
4400
4401 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4402 empty_base_class. All uses updated.
4403 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4404 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4405 Adapt all callers.
4406 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4407 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4408 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4409 (gdbscm_gsmob_has_property_p, add_property_name)
4410 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4411 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4412 (gdb-object-has-property?, gdb-object-properties): Remove.
4413 (gdb-object-kind): Renamed from gsmob-kind.
4414
4415 2014-05-26 Andy Wingo <wingo@igalia.com>
4416
4417 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4418 * configure: Regenerate.
4419
4420 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4421
4422 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4423
4424 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4425
4426 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4427 (replay_memory_access_read_only, replay_memory_access_read_write)
4428 (replay_memory_access_types, replay_memory_access)
4429 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4430 (cmd_set_record_btrace, cmd_show_record_btrace)
4431 (cmd_show_replay_memory_access): New.
4432 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4433 (record_btrace_remove_breakpoint): Replace
4434 record_btrace_allow_memory_access with replay_memory_access.
4435 (_initialize_record_btrace): Add commands.
4436 * NEWS: Announce it.
4437
4438 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4439
4440 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4441
4442 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4443
4444 * MAINTAINERS (Write After Approval): Move self back from
4445 paper trail.
4446
4447 2014-05-22 Pedro Alves <palves@redhat.com>
4448
4449 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4450 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4451 (disable_randomization, enum exec_direction_kind)
4452 (execution_direction, stop_registers, start_remote)
4453 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4454 (wait_for_inferior, normal_stop, get_last_target_status)
4455 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4456 (insert_step_resume_breakpoint_at_sal)
4457 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4458 (set_step_info, print_stop_event, signal_stop_state)
4459 (signal_print_state, signal_pass_state, signal_stop_update)
4460 (signal_print_update, signal_pass_update)
4461 (update_signals_program_target, clear_exit_convenience_vars)
4462 (displaced_step_dump_bytes, update_observer_mode)
4463 (signal_catch_update, gdb_signal_from_command): Move
4464 declarations ...
4465 * infrun.h: ... to this new file.
4466 * amd64-tdep.c: Include infrun.h.
4467 * annotate.c: Include infrun.h.
4468 * arch-utils.c: Include infrun.h.
4469 * arm-linux-tdep.c: Include infrun.h.
4470 * arm-tdep.c: Include infrun.h.
4471 * break-catch-sig.c: Include infrun.h.
4472 * breakpoint.c: Include infrun.h.
4473 * common/agent.c: Include infrun.h instead of inferior.h.
4474 * corelow.c: Include infrun.h.
4475 * event-top.c: Include infrun.h.
4476 * go32-nat.c: Include infrun.h.
4477 * i386-tdep.c: Include infrun.h.
4478 * inf-loop.c: Include infrun.h.
4479 * infcall.c: Include infrun.h.
4480 * infcmd.c: Include infrun.h.
4481 * infrun.c: Include infrun.h.
4482 * linux-fork.c: Include infrun.h.
4483 * linux-nat.c: Include infrun.h.
4484 * linux-thread-db.c: Include infrun.h.
4485 * monitor.c: Include infrun.h.
4486 * nto-tdep.c: Include infrun.h.
4487 * procfs.c: Include infrun.h.
4488 * record-btrace.c: Include infrun.h.
4489 * record-full.c: Include infrun.h.
4490 * remote-m32r-sdi.c: Include infrun.h.
4491 * remote-mips.c: Include infrun.h.
4492 * remote-notif.c: Include infrun.h.
4493 * remote-sim.c: Include infrun.h.
4494 * remote.c: Include infrun.h.
4495 * reverse.c: Include infrun.h.
4496 * rs6000-tdep.c: Include infrun.h.
4497 * s390-linux-tdep.c: Include infrun.h.
4498 * solib-irix.c: Include infrun.h.
4499 * solib-osf.c: Include infrun.h.
4500 * solib-svr4.c: Include infrun.h.
4501 * target.c: Include infrun.h.
4502 * top.c: Include infrun.h.
4503 * windows-nat.c: Include infrun.h.
4504 * mi/mi-interp.c: Include infrun.h.
4505 * mi/mi-main.c: Include infrun.h.
4506 * python/py-threadevent.c: Include infrun.h.
4507
4508 2014-05-22 Pedro Alves <palves@redhat.com>
4509
4510 * infrun.c (handle_inferior_event): Store the exit code for
4511 --return-child-result here, instead of ...
4512 (print_exited_reason): ... here.
4513
4514 2014-05-21 Pedro Alves <palves@redhat.com>
4515
4516 PR gdb/13860
4517 * gdbthread.h (struct thread_control_state): New field
4518 `command_interp'.
4519 * infrun.c (follow_fork): Copy the new thread control field to the
4520 child fork thread.
4521 (clear_proceed_status_thread): Clear the new thread control field.
4522 (proceed): Set the new thread control field.
4523 * interps.h (command_interp): Declare.
4524 * interps.c (command_interpreter): New global.
4525 (command_interp): New function.
4526 (interp_exec): Set `command_interpreter' while here.
4527 * cli-out.c (cli_uiout_dtor): New function.
4528 (cli_ui_out_impl): Install it.
4529 * mi/mi-interp.c: Include cli-out.h.
4530 (mi_cmd_interpreter_exec): Add comment.
4531 (restore_current_uiout_cleanup): New function.
4532 (ui_out_free_cleanup): New function.
4533 (mi_on_normal_stop): If finishing an execution command started by
4534 a CLI command, or any kind of breakpoint-like event triggered,
4535 print the stop event to the output (CLI) stream.
4536 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4537
4538 2014-05-21 Pedro Alves <palves@redhat.com>
4539
4540 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4541 current source line having changed.
4542 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4543 * infrun.c (normal_stop): Adjust call to
4544 set_current_sal_from_frame.
4545 * source.c (clear_lines_listed_range): New function.
4546 (set_current_source_symtab_and_line, identify_source_line): Clear
4547 the lines listed range.
4548 (line_info): Handle the first "info line" after the current source
4549 line having changed.
4550 * stack.c (print_stack_frame): Remove center handling.
4551 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4552 center sal.line.
4553
4554 2014-05-21 Pedro Alves <palves@redhat.com>
4555
4556 * inf-child.c (inf_child_mourn_inferior): New function.
4557 * inf-child.h (inf_child_mourn_inferior): New declaration.
4558 * darwin-nat.c (darwin_mourn_inferior): Use
4559 inf_child_mourn_inferior.
4560 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4561 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4562 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4563 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4564 * windows-nat.c (windows_mourn_inferior): Likewise.
4565
4566 2014-05-21 Doug Evans <xdje42@gmail.com>
4567
4568 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4569
4570 2014-05-21 Doug Evans <xdje42@gmail.com>
4571
4572 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4573 (gdbscm_out_of_range_error): Ditto.
4574 (gdbscm_memory_error): Ditto.
4575 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4576 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4577 (gdbscm_out_of_range_error): Update.
4578 (gdbscm_memory_error): Update.
4579 (gdbscm_scm_to_target_string_unsafe): Delete.
4580
4581 2014-05-21 Pedro Alves <palves@redhat.com>
4582
4583 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4584 globals.
4585 (inf_child_open_target): New function.
4586 (inf_child_open): Use inf_child_open_target to push the target
4587 instead of erroring out.
4588 (inf_child_disconnect, inf_child_close)
4589 (inf_child_maybe_unpush_target): New functions.
4590 (inf_child_target): Install inf_child_disconnect and
4591 inf_child_close. Store a pointer to the returned object.
4592 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4593 declarations.
4594 * target.c (auto_connect_native_target): New global.
4595 (show_default_run_target): New function.
4596 (find_default_run_target): Return NULL if automatically connecting
4597 to the native target is disabled.
4598 (_initialize_target): Install set/show auto-connect-native-target.
4599 * NEWS: Mention "set auto-connect-native-target", and "target
4600 native".
4601 * linux-nat.c (super_close): New global.
4602 (linux_nat_close): Call super_close.
4603 (linux_nat_add_target): Store a pointer to the base class's
4604 to_close method.
4605 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4606 inf_child_maybe_unpush.
4607 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4608 already pushed.
4609 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4610 the inferior. Use inf_child_maybe_unpush_target.
4611 (inf_ttrace_attach): Don't push the target if it is already
4612 pushed.
4613 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4614 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4615 after mourning the inferior. Use inf_child_maybe_unpush_target.
4616 (darwin_attach_pid): Don't push the target if it is already
4617 pushed.
4618 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4619 mourning the inferior. Use inf_child_maybe_unpush_target.
4620 (gnu_detach): Use inf_child_maybe_unpush_target.
4621 * go32-nat.c (go32_create_inferior): Don't push the target if it
4622 is already pushed.
4623 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4624 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4625 (procfs_open): Rename to ...
4626 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4627 comments. Can target_preopen before changing node. Call
4628 inf_child_open_target to push the target explicitly.
4629 (procfs_attach): Don't push the target if it is already pushed.
4630 (procfs_detach): Use inf_child_maybe_unpush_target.
4631 (procfs_create_inferior): Don't push the target if it is already
4632 pushed.
4633 (nto_native_ops): New global.
4634 (procfs_open): Reimplement.
4635 (procfs_native_open): New function.
4636 (init_procfs_targets): Install procfs_native_open as to_open of
4637 "target native". Store a pointer to the "native" target in
4638 nto_native_ops.
4639 * procfs.c (procfs_attach): Don't push the target if it is already
4640 pushed.
4641 (procfs_detach): Use inf_child_maybe_unpush_target.
4642 (procfs_mourn_inferior): Only unpush the target after mourning the
4643 inferior. Use inf_child_maybe_unpush_target.
4644 (procfs_init_inferior): Don't push the target if it is already
4645 pushed.
4646 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4647 if it is already pushed.
4648
4649 2014-05-21 Pedro Alves <palves@redhat.com>
4650
4651 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4652 and "procfs" targets are now called "native" instead.
4653
4654 2014-05-21 Pedro Alves <palves@redhat.com>
4655
4656 * go32-nat.c (go32_open): Delete.
4657 (go32_target): Don't override the to_open method.
4658
4659 2014-05-21 Pedro Alves <palves@redhat.com>
4660
4661 * nto-procfs.c (procfs_can_run): New function.
4662 (nto_procfs_ops): New global.
4663 (init_procfs_targets): New, based on procfs_target. Install
4664 "target native" in addition to "target procfs".
4665 (_initialize_procfs): Call init_procfs_targets instead of adding
4666 the target here.
4667
4668 2014-05-21 Pedro Alves <palves@redhat.com>
4669
4670 * windows-nat.c (windows_target): Don't override to_shortname,
4671 to_longname or to_doc.
4672
4673 2014-05-21 Pedro Alves <palves@redhat.com>
4674
4675 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4676 to_doc.
4677
4678 2014-05-21 Pedro Alves <palves@redhat.com>
4679
4680 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4681 to_shortname, to_longname or to_doc.
4682
4683 2014-05-21 Pedro Alves <palves@redhat.com>
4684
4685 * go32-nat.c (go32_target): Don't override to_shortname,
4686 to_longname or to_doc.
4687
4688 2014-05-21 Pedro Alves <palves@redhat.com>
4689
4690 * inf-child.c (inf_child_open): Remove mention of "child".
4691 (inf_child_target): Rename target to "native" instead of "child".
4692
4693 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4694
4695 * Makefile.in (SFILES): Delete "regset.c".
4696 (COMMON_OBS): Delete "regset.o".
4697 * regset.c: Remove.
4698 * regset.h (regset_alloc): Delete prototype.
4699
4700 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4701
4702 * sparc-linux-tdep.c (sparc32_linux_gregset)
4703 (sparc32_linux_fpregset): New static regset structures.
4704 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4705 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4706 'fpregset' fields.
4707 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4708 (sparc64_linux_fpregset): New static regset structures.
4709 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4710 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4711 New static regset structures.
4712 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4713 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4714 New static regset structures.
4715 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4716 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4717 New static regset structures.
4718 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4719 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4720 New static regset structures.
4721 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4722
4723 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4724
4725 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4726 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4727 register maps ("regmaps") from "*regset" to "*regmap". Do this
4728 for all regmap types and variables.
4729 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4730 (sparc32_linux_supply_core_gregset)
4731 (sparc32_linux_collect_core_gregset)
4732 (sparc32_linux_supply_core_fpregset)
4733 (sparc32_linux_collect_core_fpregset): Likewise.
4734 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4735 (sparc_gregmap, sparc_fpregmap): ... these.
4736 (sparc_supply_gregset, sparc_collect_gregset)
4737 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4738 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4739 (_initialize_sparc_nat): Rename regmaps.
4740 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4741 (sparc_gregmap, sparc_fpregmap): ... these.
4742 (sparc_supply_gregset, sparc_collect_gregset)
4743 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4744 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4745 Rename macros to...
4746 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4747 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4748 Likewise.
4749 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4750 Rename to...
4751 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4752 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4753 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4754 regmaps.
4755 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4756 (sparc32_bsd_fpregset): Rename to...
4757 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4758 (sparc32_bsd_fpregmap): ... these.
4759 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4760 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4761 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4762 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4763 (struct sparc_gregmap, struct sparc_fpregmap)
4764 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4765 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4766 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4767 (sparc32_supply_regset, sparc32_collect_gregset)
4768 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4769 prototypes.
4770 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4771 (sparc64_linux_ptrace_gregmap): ... this.
4772 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4773 (_initialize_sparc64_linux_nat): Rename regmaps.
4774 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4775 (sparc64_linux_core_gregmap): ... this.
4776 (sparc64_linux_supply_core_gregset)
4777 (sparc64_linux_collect_core_gregset)
4778 (sparc64_linux_supply_core_fpregset)
4779 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4780 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4781 (sparc64_sol2_fpregset): Rename to...
4782 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4783 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4784 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4785 regmaps.
4786 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4787 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4788 (sparc64_bsd_fpregset): Rename to...
4789 (struct sparc_gregmap, sparc64_sol2_gregmap)
4790 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4791 (sparc64_bsd_fpregmap): ... these.
4792 (sparc64_supply_gregset, sparc64_collect_gregset)
4793 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4794 prototypes.
4795 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4796 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4797 (sparc64fbsd_gregmap): ... this.
4798 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4799 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4800 Rename regmaps.
4801 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4802 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4803 (sparc64nbsd_collect_fpregset): Likewise.
4804 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4805 (sparc64nbsd_gregmap): ... this.
4806 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4807 regmaps.
4808 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4809 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4810 (sparc64obsd_gregmap): ... this.
4811 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4812 regmaps.
4813 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4814 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4815 (sparc32nbsd_gregmap): ... this.
4816 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4817 regmaps.
4818
4819 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4820
4821 * score-tdep.c (score7_linux_gregset): New static regset
4822 structure.
4823 (score7_linux_regset_from_core_section): Remove dynamic regset
4824 allocation.
4825 (score_gdbarch_init): Drop allocation of tdep structure.
4826 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4827
4828 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4829
4830 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4831 regset structures.
4832 (am33_regset_from_core_section): Remove dynamic regset
4833 allocations.
4834
4835 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4836
4837 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4838 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4839 structures.
4840 (mips_linux_regset_from_core_section): Remove dynamic regset
4841 allocations.
4842 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4843 'gregset64', 'fpregset', and 'fpregset64'.
4844 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4845 deleted tdep fields.
4846
4847 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4848
4849 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4850 regset structures.
4851 (amd64_regset_from_core_section): Remove dynamic regset
4852 allocations.
4853 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4854 structure.
4855 (amd64obsd_regset_from_core_section): Remove dynamic regset
4856 allocation.
4857 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4858 Likewise.
4859 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4860 x86-common regset supply function.
4861 * i386-tdep.c (i386_collect_gregset): Make static.
4862 (i386_gregset): New global regset structure.
4863 (i386_fpregset, i386_xstateregset): New static regset structures.
4864 (i386_regset_from_core_section): Remove dynamic regset
4865 allocations.
4866 (i386_gdbarch_init): Remove initialization of tdep fields
4867 'gregset', 'fpregset', and 'xstateregset'.
4868 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4869 'fpregset', and 'xstateregset'.
4870 (i386_collect_gregset): Remove prototype.
4871 (i386_gregset): New declaration.
4872 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4873 structure.
4874 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4875 allocation.
4876
4877 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4878
4879 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4880 (arm_linux_vfpregset): New static regset structures.
4881 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4882 regset structures.
4883 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4884 and 'vfpregset' fields.
4885
4886 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4887
4888 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4889 (aarch64_linux_fpregset): New static regset structures.
4890 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4891 of regset structures.
4892 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4893 'fpregset' fields.
4894
4895 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4896
4897 * regset.h (struct regset): Remove gdbarch field.
4898 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4899 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4900 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4901 Likewise.
4902 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4903 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4904 (ppc32_linux_vsxregset): Likewise.
4905 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4906 via the regcache instead of the regset.
4907 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4908 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4909 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4910 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4911 Likewise.
4912
4913 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4914
4915 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4916 Constify structures.
4917 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4918 (alphanbsd_aout_gregset): Likewise.
4919 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4920 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4921 Likewise.
4922 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4923 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4924 Likewise.
4925 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4926 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4927 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4928 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4929 * m88k-tdep.c (m88k_gregset): Likewise.
4930 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4931 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4932 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4933 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4934 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4935 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4936 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4937 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4938 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4939 Likewise.
4940 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4941 * sh-tdep.h (sh_corefile_gregset): Likewise.
4942 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4943 * vax-tdep.c (vax_gregset): Likewise.
4944
4945 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4946
4947 Fix TLS access for -static -pthread.
4948 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4949 (try_thread_db_load_1): Initialize it.
4950 (thread_db_get_thread_local_address): Call it if LM is zero.
4951 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4952 * target.h (struct target_ops) (to_get_thread_local_address): Add
4953 load_module_addr comment.
4954
4955 2014-05-21 Pedro Alves <palves@redhat.com>
4956
4957 * dcache.c (dcache_read_memory_partial): If reading the cache line
4958 fails, fallback to reading just the memory the caller wanted.
4959
4960 2014-05-20 Doug Evans <dje@google.com>
4961
4962 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4963 instead of get_current_arch.
4964
4965 2014-05-20 Pedro Alves <palves@redhat.com>
4966
4967 * NEWS: Mention that compare-sections now works with all targets.
4968
4969 * remote.c (PACKET_qCRC): New enum value.
4970 (remote_verify_memory): Don't send qCRC if the target has no
4971 execution. Use packet_support/packet_ok. If the target doesn't
4972 support the qCRC packet, fallback to a deep memory copy.
4973 (compare_sections_command): Say "target image" instead of "remote
4974 executable".
4975 (_initialize_remote): Add PACKET_qCRC to the list of config
4976 packets that have no associated command. Extend comment.
4977 * target.c (simple_verify_memory, default_verify_memory): New
4978 function.
4979 * target.h (struct target_ops) <to_verify_memory>: Default to
4980 default_verify_memory.
4981 (simple_verify_memory): New declaration.
4982 * target-delegates.c: Regenerate.
4983
4984 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4985
4986 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4987
4988 2014-05-20 Hui Zhu <hui@codesourcery.com>
4989 Yao Qi <yao@codesourcery.com>
4990
4991 PR backtrace/16558
4992 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4993 and change address of sp and pc.
4994
4995 2014-05-19 Tom Tromey <tromey@redhat.com>
4996
4997 * gdbtypes.c (rank_function): Use XNEWVEC.
4998 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4999
5000 2014-05-19 Doug Evans <dje@google.com>
5001
5002 * dwarf2read.c (build_type_psymtabs_1): Renamed from
5003 build_type_unit_groups and moved closer to only caller. Remove
5004 arguments. All references updated. Remove outdated .gdb_index
5005 comment.
5006 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
5007 build_type_psymtabs_1.
5008
5009 2014-05-19 Doug Evans <dje@google.com>
5010
5011 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
5012 n_type_unit_groups, all_type_unit_groups. All uses removed.
5013 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
5014 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
5015 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
5016 (add_type_unit_group_to_table): Delete.
5017
5018 2014-05-19 Doug Evans <dje@google.com>
5019
5020 * eval.c (evaluate_subexp_standard): Add some comments.
5021
5022 2014-05-17 Doug Evans <xdje42@gmail.com>
5023
5024 * progspace.c (remove_program_space): Delete, unused.
5025 * progspace.h (remove_program_space): Ditto.
5026
5027 2014-05-17 Doug Evans <xdje42@gmail.com>
5028
5029 * inferior.c (prune_inferiors): Fix comment.
5030 (remove_inferior_command): Call prune_program_spaces.
5031
5032 2014-05-16 Doug Evans <dje@google.com>
5033
5034 New command line option -D.
5035 * NEWS: Mention it.
5036 * main.c (set_gdb_data_directory): New function.
5037 (captured_main): Recognize -D. Flag error for --data-directory "".
5038 Call set_gdb_data_directory.
5039 (print_gdb_help): Print --data-directory, -D.
5040 * main.h (set_gdb_data_directory): Declare.
5041 * top.c (staged_gdb_datadir): New static global.
5042 (set_gdb_datadir): Call set_gdb_data_directory
5043 (show_gdb_datadir): New function.
5044 (init_main): Update init of data-directory parameter.
5045
5046 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
5047
5048 Import the "dirfd" gnulib module.
5049 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
5050 * gnulib/aclocal.m4: Update.
5051 * gnulib/config.in: Update.
5052 * gnulib/configure: Update.
5053 * gnulib/import/Makefile.am: Update.
5054 * gnulib/import/Makefile.in: Update.
5055 * gnulib/import/dirfd.c: New.
5056 * gnulib/import/m4/dirfd.m4: New.
5057 * gnulib/import/m4/gnulib-cache.m4: Update.
5058 * gnulib/import/m4/gnulib-comp.m4: Update.
5059
5060 2014-05-16 Pierre Muller <muller@sourceware.org>
5061 Yao Qi <yao@codesourcery.com>
5062
5063 * valprint.c (print_wchar): Move the code on checking whether
5064 W is a printable wide char to the default branch of switch
5065 statement below. Call wchar_printable instead of gdb_iswprint.
5066
5067 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
5068
5069 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
5070 ldr.w and ldrd instructions.
5071
5072 2014-05-15 Doug Evans <dje@google.com>
5073
5074 * dwarf2read.c (read_structure_type): Delete outdated comments.
5075
5076 2014-05-14 Tom Tromey <tromey@redhat.com>
5077
5078 * macrocmd.c (print_macro_definition): Reindent.
5079
5080 2014-05-13 Doug Evans <xdje42@gmail.com>
5081
5082 * python/py-cmd.c (cmdpy_completer): Add comment.
5083 (completers): Make const.
5084
5085 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5086
5087 * infrun.c (resume): Remove should_resume (unused). Move up
5088 declaration of resume_ptid.
5089
5090 2014-05-13 Tom Tromey <tromey@redhat.com>
5091
5092 * language.h (unop_type_check): Remove.
5093 (binop_type_check): Don't declare.
5094
5095 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5096
5097 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5098 call to regcache_raw_collect.
5099
5100 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5101
5102 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5103 mi_console->quote as the quoting character.
5104
5105 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5106
5107 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5108
5109 2014-04-29 Tom Tromey <tromey@redhat.com>
5110
5111 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5112 "show debug varobj".
5113
5114 2014-05-07 Kyle McMartin <kyle@redhat.com>
5115
5116 Pushed by Joel Brobecker <brobecker@adacore.com>.
5117 * aarch64-tdep.c (aarch64_software_single_step): New function.
5118 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5119 with aarch64_software_single_step.
5120
5121 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5122
5123 GDB 7.7.1 released.
5124
5125 2014-05-05 Keith Seitz <keiths@redhat.com>
5126
5127 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5128 variable or history value is successfully parsed.
5129
5130 2014-05-05 Yao Qi <yao@codesourcery.com>
5131 Pedro Alves <palves@redhat.com>
5132
5133 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5134 address of blocks that intersects the requested range. Trim
5135 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5136 sections.
5137 * ctf.c (ctf_xfer_partial): Likewise.
5138
5139 2014-05-05 Yao Qi <yao@codesourcery.com>
5140
5141 * printcmd.c (display_command): Remove the check to
5142 target_has_execution.
5143
5144 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5145
5146 * ppcobsd-nat.c: Include "obsd-nat.h".
5147 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5148 add_target.
5149 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5150
5151 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5152
5153 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5154 and 16-bit signed and unsigned arguments. Update comment.
5155 (stap_parse_probe_arguments): Extend code to handle such
5156 arguments. Use warning instead of complaint to notify about
5157 unrecognized bitness.
5158
5159 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5160
5161 PR breakpoints/16889
5162 * stap-probe.c (stap_parse_probe_arguments): Simplify
5163 check for non-prefixed probes (i.e., probes whose
5164 arguments do not start with "N@"). Always set the
5165 argument type to a sane value.
5166
5167 2014-05-01 David Taylor <dtaylor@emc.com>
5168
5169 * remote.c (compare_sections_command): Add -r option to compare
5170 all loadable read-only sections.
5171
5172 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5173
5174 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5175 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5176 Update all callers.
5177 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5178 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5179 Remove unused CORE_ADDR argument. Update all callers.
5180
5181 2014-04-29 Pedro Alves <palves@redhat.com>
5182
5183 * remote.c (struct packet_config) <detect>: Extend comment.
5184 (add_packet_config_cmd): Don't set the config's detect or support
5185 fields here.
5186 (init_all_packet_configs): Also initialize the config's 'detect'
5187 field.
5188 (reset_all_packet_configs_support): New function.
5189 (remote_open_1): Call reset_all_packet_configs_support instead of
5190 init_all_packet_configs.
5191 (_initialize_remote): Initialize all packet configs. Assert that
5192 all packets have an associated command, except a few known
5193 outliers.
5194
5195 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5196
5197 * dwarf2read.c (read_subrange_type): Handle dynamic
5198 DW_AT_lower_bound attributes.
5199
5200 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5201
5202 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5203 dynamic bounds before computing its upper bound.
5204 (ada_discrete_type_low_bound): Same as above with the lower bound.
5205
5206 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5207
5208 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5209 range types. Adjust the array handling implementation to
5210 take advantage of this change.
5211 (resolve_dynamic_range): New function, mostly extracted from
5212 resolve_dynamic_bounds.
5213 (resolve_dynamic_array): New function, mostly extracted from
5214 resolve_dynamic_bounds.
5215 (resolve_dynamic_bounds): Delete.
5216 (resolve_dynamic_type): Reimplement. Add handling of
5217 TYPE_CODE_RANGE types.
5218
5219 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5220
5221 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5222 handling of parallel ___XA types.
5223
5224 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5225
5226 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5227 unnecessary second call to static_unwrap_type.
5228
5229 2014-04-27 Hui Zhu <hui@codesourcery.com>
5230
5231 * stack.c (print_frame_info): Call do_gdb_disassembly with
5232 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5233
5234 2014-04-26 Doug Evans <xdje42@gmail.com>
5235
5236 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5237
5238 2014-04-25 Pedro Alves <palves@redhat.com>
5239
5240 PR server/16255
5241 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5242 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5243 and newline from built string.
5244 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5245 (linux_ptrace_attach_fail_reason): ... this.
5246 * linux-nat.c (linux_nat_attach): Adjust to use
5247 linux_ptrace_attach_fail_reason.
5248
5249 2014-04-25 Pedro Alves <palves@redhat.com>
5250
5251 * remote.c (struct remote_state): Remove multi_process_aware,
5252 non_stop_aware, cond_tracepoints, cond_breakpoints,
5253 breakpoint_commands, fast_tracepoints, static_tracepoints,
5254 install_in_trace, disconnected_tracing,
5255 enable_disable_tracepoints, string_tracing, and
5256 augmented_libraries_svr4_read fields.
5257 (remote_multi_process_p): Move further below in the file.
5258 (struct packet_config): Add comments.
5259 (update_packet_config): Delete function.
5260 (show_packet_config_cmd): Use packet_config_support.
5261 (add_packet_config_cmd): Use NULL as set callback.
5262 (packet_ok): "set remote foo-packet"-style commands no longer
5263 change config->supported -- adjust.
5264 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5265 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5266 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5267 (PACKET_QNonStop, PACKET_multiprocess_feature)
5268 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5269 (PACKET_DisconnectedTracing_feature)
5270 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5271 (set_remote_protocol_packet_cmd): Delete function.
5272 (packet_config_support, packet_support): New functions.
5273 (set_remote_protocol_Z_packet_cmd): Don't call
5274 update_packet_config.
5275 (remote_query_attached, remote_pass_signals)
5276 (remote_program_signals, remote_threads_info)
5277 (remote_threads_extra_info, remote_start_remote): Use
5278 packet_support.
5279 (remote_start_remote): Use packet_config_support and
5280 packet_support.
5281 (init_all_packet_configs): Set all packets to unknown support,
5282 instead of calling update_packet_config.
5283 (remote_check_symbols): Use packet_support.
5284 (remote_supported_packet): Unconditionally set the packet config's
5285 support status.
5286 (remote_multi_process_feature, remote_non_stop_feature)
5287 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5288 (remote_breakpoint_commands_feature)
5289 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5290 (remote_install_in_trace_feature)
5291 (remote_disconnected_tracing_feature)
5292 (remote_enable_disable_tracepoint_feature)
5293 (remote_string_tracing_feature)
5294 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5295 (remote_protocol_features): Adjust to use remote_supported_packet
5296 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5297 "ConditionalTracepoints", "ConditionalBreakpoints",
5298 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5299 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5300 "EnableDisableTracepoints", and "tracenz".
5301 (remote_query_supported): Use packet_support.
5302 (remote_open_1): Adjust.
5303 (extended_remote_attach_1): Use packet_support. Switch on the
5304 result of packet_ok instead of checking whether the packet ended
5305 up disabled.
5306 (remote_vcont_resume): Use packet_support.
5307 (remote_resume, remote_stop_ns, fetch_register_using_p)
5308 (remote_prepare_to_store, store_register_using_P)
5309 (check_binary_download, remote_write_bytes): Use packet_support.
5310 (remote_vkill): Use packet_support. Switch on the result of
5311 packet_ok instead of checking whether the packet ended up
5312 disabled.
5313 (extended_remote_supports_disable_randomization): Use
5314 packet_support.
5315 (extended_remote_run): Switch on the result of packet_ok instead
5316 of checking whether the packet ended up disabled.
5317 (remote_insert_breakpoint, remote_remove_breakpoint)
5318 (remote_insert_watchpoint, remote_remove_watchpoint)
5319 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5320 packet_support.
5321 (remote_search_memory): Use packet_config_support.
5322 (remote_get_thread_local_address, remote_get_tib_address)
5323 (remote_hostio_send_command, remote_can_execute_reverse): Use
5324 packet_support.
5325 (remote_supports_cond_tracepoints)
5326 (remote_supports_cond_breakpoints)
5327 (remote_supports_fast_tracepoints)
5328 (remote_supports_static_tracepoints)
5329 (remote_supports_install_in_trace)
5330 (remote_supports_enable_disable_tracepoint)
5331 (remote_supports_string_tracing)
5332 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5333 the packet config says the feature is enabled or disabled.
5334 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5335 (remote_get_trace_status): Use packet_support.
5336 (remote_set_disconnected_tracing): Adjust to check whether the
5337 feature is enabled with packet_support.
5338 (remote_set_trace_buffer_size, remote_use_agent)
5339 (remote_can_use_agent, remote_supports_btrace): Use
5340 packet_support.
5341 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5342 Use packet_config_support.
5343 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5344 the packet config says the feature is enabled or disabled.
5345 (set_range_stepping): Use packet_support.
5346
5347 2014-04-25 Tom Tromey <tromey@redhat.com>
5348
5349 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5350 argument.
5351
5352 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5353
5354 * NEWS: Mention support for C99 variable length arrays.
5355
5356 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5357
5358 * ada-lang.c (standard_exc): Expand introductory comment.
5359
5360 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5361 Walfred Tedeschi <walfred.tedeschi@intel.com>
5362
5363 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5364 AVX512 registers.
5365 (amd64_linux_read_description): Add code to handle AVX512 xstate
5366 mask and return respective tdesc.
5367 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5368 and features/i386/x32-avx512-linux.c.
5369 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5370 (amd64_linux_core_read_description): Add code to handle AVX512
5371 xstate mask and return respective tdesc.
5372 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5373 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5374 calculation.
5375 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5376 (tdesc_amd64_avx512_linux): New prototype.
5377 (tdesc_x32_avx512_linux): Likewise.
5378 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5379 features/i386/x32-avx512.c.
5380 (amd64_ymm_avx512_names): New register names for pseudo
5381 registers YMM16-31.
5382 (amd64_ymmh_avx512_names): New register names for raw registers
5383 YMMH16-31.
5384 (amd64_k_names): New register names for K registers.
5385 (amd64_zmmh_names): New register names for ZMM raw registers.
5386 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5387 (amd64_xmm_avx512_names): New register names for XMM16-31
5388 registers.
5389 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5390 registers.
5391 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5392 if feature is present.
5393 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5394 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5395 (AMD64_NUM_REGS): Adjust to new number of registers.
5396 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5397 registers supplied via XSTATE by AVX512 registers.
5398 (i386_linux_read_description): Add case for AVX512.
5399 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5400 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5401 (i386_linux_core_read_description): Add case for AVX512.
5402 (i386_linux_init_abi): Install supported register note section
5403 for AVX512.
5404 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5405 AVX512.
5406 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5407 registers to be number of zmm7h + 1.
5408 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5409 * i386-tdep.c: Include features/i386/i386-avx512.c.
5410 (i386_zmm_names): Add ZMM pseudo register names array.
5411 (i386_zmmh_names): Add ZMM raw register names array.
5412 (i386_k_names): Add K raw register names array.
5413 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5414 registers. AVX512 has 16 more ZMM registers than there are YMM
5415 registers.
5416 (i386_zmmh_regnum_p): Add function to look up register number of
5417 ZMM raw registers.
5418 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5419 (i386_k_regnum_p): Likewise for K raw registers.
5420 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5421 registers added by AVX512.
5422 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5423 registers added by AVX512.
5424 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5425 added by AVX512.
5426 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5427 (i386_pseudo_register_name): Add ZMM pseudo registers.
5428 (i386_zmm_type): Construct and return vector registers type for ZMM
5429 registers.
5430 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5431 ZMM0-31 pseudo registers and K registers.
5432 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5433 and YMM16-31 registers from register cache.
5434 (i386_pseudo_register_write): Add code to write K, ZMM and
5435 YMM16-31 registers.
5436 (i386_register_reggroup_p): Add code to include/exclude AVX512
5437 registers in/from respective register groups.
5438 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5439 registers if feature is present in xcr0.
5440 (i386_gdbarch_init): Add code to initialize AVX512 feature
5441 variables in tdep structure, wire in pseudo registers and call
5442 initialize_tdesc_i386_avx512.
5443 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5444 variables.
5445 (i386_regnum): Add AVX512 registers.
5446 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5447 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5448 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5449 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5450 512 bits wide.
5451 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5452 (i386_ymm_avx512_regnum_p): Likewise.
5453 (i386_k_regnum_p): Likewise.
5454 (i386_zmm_regnum_p): Likewise.
5455 (i386_zmmh_regnum_p): Likewise.
5456 * i387-tdep.c : Update year in copyright notice.
5457 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5458 XSAVE buffer.
5459 (XSAVE_YMM_AVX512_ADDR): New macro.
5460 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5461 XSAVE buffer.
5462 (XSAVE_XMM_AVX512_ADDR): New macro.
5463 (xsave_avx512_k_offset): New table for K register offsets in
5464 XSAVE buffer.
5465 (XSAVE_AVX512_K_ADDR): New macro.
5466 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5467 in XSAVE buffer.
5468 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5469 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5470 buffer.
5471 (i387_collect_xsave): Add code to collect AVX512 registers from
5472 XSAVE buffer.
5473 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5474 of XMM16-31 registers.
5475 (I387_NUM_K_REGS): New define for number of K registers.
5476 (I387_K0_REGNUM): New define for K0 register number.
5477 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5478 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5479 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5480 registers.
5481 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5482 (I387_XMM16_REGNUM): New define for XMM16 register number.
5483 (I387_YMM0_REGNUM): New define for YMM0 register number.
5484 (I387_KEND_REGNUM): New define for last K register number.
5485 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5486 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5487 number.
5488 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5489 number.
5490 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5491 size.
5492 * features/Makefile: Add AVX512 related files.
5493 * features/i386/32bit-avx512.xml: New file.
5494 * features/i386/64bit-avx512.xml: Likewise.
5495 * features/i386/amd64-avx512-linux.c: Likewise.
5496 * features/i386/amd64-avx512-linux.xml: Likewise.
5497 * features/i386/amd64-avx512.c: Likewise.
5498 * features/i386/amd64-avx512.xml: Likewise.
5499 * features/i386/i386-avx512-linux.c: Likewise.
5500 * features/i386/i386-avx512-linux.xml: Likewise.
5501 * features/i386/i386-avx512.c: Likewise.
5502 * features/i386/i386-avx512.xml: Likewise.
5503 * features/i386/x32-avx512-linux.c: Likewise.
5504 * features/i386/x32-avx512-linux.xml: Likewise.
5505 * features/i386/x32-avx512.c: Likewise.
5506 * features/i386/x32-avx512.xml: Likewise.
5507 * regformats/i386/amd64-avx512-linux.dat: New file.
5508 * regformats/i386/amd64-avx512.dat: Likewise.
5509 * regformats/i386/i386-avx512-linux.dat: Likewise.
5510 * regformats/i386/i386-avx512.dat: Likewise.
5511 * regformats/i386/x32-avx512-linux.dat: Likewise.
5512 * regformats/i386/x32-avx512.dat: Likewise.
5513 * NEWS: Add note about new support for AVX512.
5514
5515
5516 2014-04-23 Pedro Alves <palves@redhat.com>
5517
5518 * breakpoint.c (insert_bp_location): Tolerate errors if the
5519 breakpoint is set in a user-loaded objfile.
5520 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5521 location is marked shlib_disabled. If the breakpoint is set in a
5522 user-loaded objfile is a GDB-side memory breakpoint, validate it
5523 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5524 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5525 flag.
5526 * mem-break.c (memory_validate_breakpoint): New function.
5527 * objfiles.c (userloaded_objfile_contains_address_p): New
5528 function.
5529 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5530 * target.h (memory_validate_breakpoint): New declaration.
5531
5532 2014-04-23 Pedro Alves <palves@redhat.com>
5533
5534 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5535 the breakpoint is set in a shared library, only suppress
5536 errors for software breakpoints, not hardware breakpoints.
5537
5538 2014-04-22 Pedro Alves <palves@redhat.com>
5539
5540 * infrun.c (schedlock_applies): New function, factored out from
5541 find_thread_needs_step_over.
5542 (find_thread_needs_step_over): Use it.
5543 (switch_back_to_stepped_thread): Always clear trap_expected if the
5544 step over is finished. Return early if scheduler locking applies.
5545 Look for the stepping thread and a potential step-over thread with
5546 a single loop.
5547 (currently_stepping_or_nexting_callback): Delete.
5548
5549 2014-04-22 Nick Clifton <nickc@redhat.com>
5550
5551 * NEWS: Mention that ARM sim now supports tracing.
5552
5553 2014-04-22 Yao Qi <yao@codesourcery.com>
5554
5555 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5556 to ...
5557 * tracefile.c (tracefile_fetch_registers): ... it. New
5558 function.
5559 * tracefile.h (tracefile_fetch_registers): Declare.
5560 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5561 tracefile_fetch_registers.
5562
5563 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5564
5565 PR gdb/14018
5566 * windows-nat.c (thread_rec): Don't display a warning when
5567 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5568 fails for any reason, set th->suspended to -1, so that we don't
5569 try to resume such a thread. Also, don't return NULL in these
5570 cases, to avoid completely ruin the session due to "PC register is
5571 not available" error.
5572 (do_windows_fetch_inferior_registers): Check errors in
5573 GetThreadContext call.
5574 (windows_continue): Accept an additional argument KILLED; if not
5575 zero, ignore errors in the SetThreadContext call, since the
5576 inferior was killed and is shutting down.
5577 (windows_resume, get_windows_debug_event)
5578 (windows_create_inferior, windows_mourn_inferior)
5579 (windows_kill_inferior): All callers of windows_continue changed
5580 to adjust to its new calling sequence.
5581
5582 2014-04-19 Yao Qi <yao@codesourcery.com>
5583
5584 * ctf.c (ctf_open): Call post_create_inferior.
5585
5586 2014-04-19 Yao Qi <yao@codesourcery.com>
5587
5588 * ctf.c (handle_id): New static variable.
5589 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5590 value. Get the declaration of event "register" and get length
5591 of field "contents".
5592
5593 2014-04-19 Yao Qi <yao@codesourcery.com>
5594
5595 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5596
5597 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5598
5599 * valops.c (oload_method_static): Remove unnecessary argument
5600 METHOD. Update all callers.
5601
5602 2014-04-18 Pedro alves <palves@redhat.com>
5603 Tom Tromey <tromey@redhat.com>
5604
5605 PR backtrace/15558
5606 * frame.c (get_prev_frame_1): Rename to ...
5607 (get_prev_frame_always): ... this, and make extern. Adjust.
5608 (skip_artificial_frames): Use get_prev_frame_always.
5609 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5610 (get_frame_unwind_stop_reason): Adjust to rename.
5611 * frame.h (get_prev_frame_always): Declare.
5612 * inline-frame.c: Include frame.h.
5613 (inline_frame_this_id): Use get_prev_frame_always.
5614
5615 2014-04-18 Tristan Gingold <gingold@adacore.com>
5616
5617 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5618 code by using bfd_mach_o_get_base_address.
5619
5620 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5621
5622 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5623 (spu_ax_pseudo_register_collect): New function.
5624 (spu_ax_pseudo_register_push_stack): Likewise.
5625 (spu_dwarf_reg_to_regnum): Likewise.
5626 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5627
5628 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5629
5630 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5631 Replace FRAME argument with FRAME_ID.
5632 * gdbarch.c, gdbarch.h: Regenerate.
5633 * findvar.c (default_value_from_register): Add GDBARCH argument;
5634 replace FRAME by FRAME_ID. No longer call get_frame_id.
5635 (value_from_register): Update call to gdbarch_value_from_register.
5636 * value.h (default_value_from_register): Update prototype.
5637 * s390-linux-tdep.c (s390_value_from_register): Update interface
5638 and call to default_value_from_register.
5639 * spu-tdep.c (spu_value_from_register): Likewise.
5640
5641 * findvar.c (address_from_register): Remove TYPE argument.
5642 Do not call value_from_register; use gdbarch_value_from_register
5643 with null_frame_id instead.
5644 * value.h (address_from_register): Update prototype.
5645 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5646 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5647 address_from_register interface change.
5648
5649 2014-04-17 Yao Qi <yao@codesourcery.com>
5650
5651 * gdbtypes.h: Update comments to link to types and macros'
5652 definitions.
5653
5654 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5655
5656 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5657
5658 2014-04-16 Keith Seitz <keiths@redhat.com>
5659
5660 PR gdb/15827
5661 * dwarf2read.c (skip_one_die): Check that all relative-offset
5662 sibling DIEs fall within range of the current reader's buffer.
5663 (read_partial_die): Likewise.
5664
5665 2014-04-16 Keith Seitz <keiths@redhat.com>
5666
5667 PR c++/16597
5668 * cp-namespace.c (lookup_symbol_file): If the type name of
5669 `this' is NULL, return immediately.
5670
5671 2014-04-14 Keith Seitz <keiths@redhat.com>
5672
5673 PR c++/16253
5674 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5675 from symbol_matches_domain in symtab.c. All local callers
5676 of symbol_matches_domain updated.
5677 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5678 search STRUCT_DOMAIN.
5679 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5680 independently. standard_lookup will do that automatically.
5681 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5682 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5683 (cp_lookup_symbol_in_namespace): Likewise.
5684 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5685 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5686 may return a STRUCT_DOMAIN match.
5687 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5688 * cp-support.c: Include language.h.
5689 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5690 VAR_DOMAIN.
5691 * psymtab.c (match_partial_symbol): Compare the requested
5692 domain with the symbol's domain directly.
5693 (lookup_partial_symbol): Likewise.
5694 * symtab.c (lookup_symbol_in_language): Explain when/why
5695 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5696 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5697 appropriate languages.
5698 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5699 and moved to ada-lang.c
5700 (lookup_block_symbol): Explain that this function only returns
5701 symbol matching the requested DOMAIN.
5702 Compare the requested domain with the symbol's domain directly.
5703 (iterate_over_symbols): Compare the requested domain with the
5704 symbol's domain directly.
5705 * symtab.h (symbol_matches_domain): Remove.
5706
5707 2014-04-14 Tom Tromey <tromey@redhat.com>
5708
5709 PR c++/15246:
5710 * c-exp.y (type_aggregate_p): New function.
5711 (qualified_name, classify_inner_name): Use it.
5712 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5713 and TYPE_TARGET_TYPE of an enum type.
5714 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5715 an enum type.
5716 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5717 handle TYPE_DECLARED_CLASS.
5718 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5719 types.
5720 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5721 * valops.c (enum_constant_from_type): New function.
5722 (value_aggregate_elt): Use it.
5723 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5724 TYPE_CODE_ENUM.
5725
5726 2014-04-14 Tom Tromey <tromey@redhat.com>
5727
5728 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5729 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5730 const.
5731 * value.h (value_aggregate_elt): Update.
5732
5733 2014-04-14 Tom Tromey <tromey@redhat.com>
5734
5735 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5736
5737 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5738
5739 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5740 (evaluate_subexp_standard): Pass noside argument.
5741 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5742 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5743 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5744 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5745 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5746
5747 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5748
5749 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5750 points to a constant blob.
5751
5752 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5753
5754 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5755 property and store it as the high bound and flag the range accordingly.
5756 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5757 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5758 * gdbtypes.h (enum range_flags): New enum.
5759 (struct range_bounds): Add flags member.
5760
5761 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5762
5763 * c-typeprint.c (c_type_print_varspec_suffix): Added
5764 check for not yet resolved high bound. If unresolved, print
5765 "variable length" string to the console instead of random
5766 length.
5767
5768 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5769
5770 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5771 value.
5772 (ada_template_to_fixed_record_type_1): Likewise.
5773 (ada_to_fixed_type_1): Likewise.
5774 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5775 (cp_print_value): Likewise.
5776 * d-valprint.c (dynamic_array_type): Likewise.
5777 * findvar.c (address_of_variable): Likewise.
5778 * jv-valprint.c (java_value_print): Likewise.
5779 * valops.c (value_ind): Likewise.
5780 * value.c (coerce_ref): Likewise.
5781
5782 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5783
5784 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5785 value and retrieve the dynamic type size.
5786
5787 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5788
5789 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5790 passed to sizeof is dynamic evaluate the argument to compute the length.
5791
5792 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5793 Joel Brobecker <brobecker@adacore.com>
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 2014-04-14 Richard Henderson <rth@redhat.com>
5815
5816 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5817
5818 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5819 Doug Evans <xdje42@gmail.com>
5820
5821 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5822 dereference TYPE_CODE_REF values.
5823
5824 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5825
5826 Revert the following changes due to regressions:
5827
5828 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5829 (dwarf2_evaluate_property): New function.
5830 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5831 * dwarf2read.c (attr_to_dynamic_prop): New function.
5832 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5833 attribute.
5834 * gdbtypes.c: Include dwarf2loc.h.
5835 (is_dynamic_type): New function.
5836 (resolve_dynamic_type): New function.
5837 (resolve_dynamic_bounds): New function.
5838 (get_type_length): New function.
5839 (check_typedef): Use get_type_length to compute type length.
5840 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5841 (TYPE_LOW_BOUND_KIND): New macro.
5842 (is_dynamic_type): New function prototype.
5843 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5844 to resolve dynamic properties of the type. Update comment.
5845 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5846
5847 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5848 passed to sizeof is dynamic evaluate the argument to compute the length.
5849
5850 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5851 value and retrieve the dynamic type size.
5852
5853 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5854 (ada_template_to_fixed_record_type_1): Likewise.
5855 (ada_to_fixed_type_1): Likewise.
5856 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5857 (cp_print_value): Likewise.
5858 * d-valprint.c (dynamic_array_type): Likewise.
5859 * eval.c (evaluate_subexp_with_coercion): Likewise.
5860 * findvar.c (address_of_variable): Likewise.
5861 * jv-valprint.c (java_value_print): Likewise.
5862 * valops.c (value_ind): Likewise.
5863 * value.c (coerce_ref): Likewise.
5864
5865 * c-typeprint.c (c_type_print_varspec_suffix): Added
5866 check for not yet resolved high bound. If unresolved, print
5867 "variable length" string to the console instead of random
5868 length.
5869
5870 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5871 property and store it as the high bound and flag the range accordingly.
5872 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5873 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5874 * gdbtypes.h (enum range_flags): New enum.
5875 (struct range_bounds): Add flags member.
5876
5877 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5878 points to a constant blob.
5879
5880 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5881 (evaluate_subexp_standard): Pass noside argument.
5882 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5883 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5884 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5885 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5886 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5887
5888 2014-04-11 Keith Seitz <keiths@redhat.com>
5889
5890 PR c++/16675
5891 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5892 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5893 reference types.
5894
5895 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5896
5897 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5898 (evaluate_subexp_standard): Pass noside argument.
5899 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5900 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5901 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5902 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5903 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5904
5905 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5906
5907 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5908 points to a constant blob.
5909
5910 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5911
5912 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5913 property and store it as the high bound and flag the range accordingly.
5914 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5915 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5916 * gdbtypes.h (enum range_flags): New enum.
5917 (struct range_bounds): Add flags member.
5918
5919 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5920
5921 * c-typeprint.c (c_type_print_varspec_suffix): Added
5922 check for not yet resolved high bound. If unresolved, print
5923 "variable length" string to the console instead of random
5924 length.
5925
5926 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5927
5928 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5929 (ada_template_to_fixed_record_type_1): Likewise.
5930 (ada_to_fixed_type_1): Likewise.
5931 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5932 (cp_print_value): Likewise.
5933 * d-valprint.c (dynamic_array_type): Likewise.
5934 * eval.c (evaluate_subexp_with_coercion): Likewise.
5935 * findvar.c (address_of_variable): Likewise.
5936 * jv-valprint.c (java_value_print): Likewise.
5937 * valops.c (value_ind): Likewise.
5938 * value.c (coerce_ref): Likewise.
5939
5940 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5941
5942 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5943 value and retrieve the dynamic type size.
5944
5945 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5946
5947 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5948 passed to sizeof is dynamic evaluate the argument to compute the length.
5949
5950 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5951
5952 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5953 (dwarf2_evaluate_property): New function.
5954 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5955 * dwarf2read.c (attr_to_dynamic_prop): New function.
5956 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5957 attribute.
5958 * gdbtypes.c: Include dwarf2loc.h.
5959 (is_dynamic_type): New function.
5960 (resolve_dynamic_type): New function.
5961 (resolve_dynamic_bounds): New function.
5962 (get_type_length): New function.
5963 (check_typedef): Use get_type_length to compute type length.
5964 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5965 (TYPE_LOW_BOUND_KIND): New macro.
5966 (is_dynamic_type): New function prototype.
5967 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5968 to resolve dynamic properties of the type. Update comment.
5969 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5970
5971 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5972
5973 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5974 declaring high/low bounds and change uses accordingly. Call
5975 create_range_type instead of create_static_range_type.
5976 * gdbtypes.c (create_range_type): New function.
5977 (create_range_type): Convert bounds into struct bound_prop and pass
5978 them to create_range_type.
5979 * gdbtypes.h (struct bound_prop): New struct.
5980 (create_range_type): New function prototype.
5981 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5982 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5983 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5984 part of the bound.
5985 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5986
5987 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5988
5989 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5990 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5991 * ada-lang.c: All uses of create_range_type updated.
5992 * coffread.c: All uses of create_range_type updated.
5993 * dwarf2read.c: All uses of create_range_type updated.
5994 * f-exp.y: All uses of create_range_type updated.
5995 * m2-valprint.c: All uses of create_range_type updated.
5996 * mdebugread.c: All uses of create_range_type updated.
5997 * stabsread.c: All uses of create_range_type updated.
5998 * valops.c: All uses of create_range_type updated.
5999 * valprint.c: All uses of create_range_type updated.
6000
6001 2014-04-10 Pedro Alves <palves@redhat.com>
6002
6003 * breakpoint.c (single_step_breakpoints)
6004 (single_step_gdbarch): Move up in the file.
6005 (one_breakpoint_xfer_memory): New function, factored out from ...
6006 (breakpoint_xfer_memory): ... here. Also process single-step
6007 breakpoints.
6008
6009 2014-04-09 Tristan Gingold <gingold@adacore.com>
6010
6011 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
6012 comments.
6013 (darwin_decode_exception_message): Free port only after use.
6014
6015 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
6016
6017 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
6018 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
6019 when setting the size of call_length.
6020
6021 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
6022
6023 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
6024 dereference TYPE_CODE_REF values.
6025
6026 2014-04-07 Joel Brobecker <brobecker@adacore.com>
6027
6028 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
6029 end of warning message.
6030
6031 2014-04-03 Doug Evans <dje@google.com>
6032
6033 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
6034 of stub_comp_unit_die, stub_comp_dir is non-NULL.
6035
6036 2014-04-02 Alan Modra <amodra@gmail.com>
6037
6038 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
6039 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
6040 (struct symbol_file_add_from_memory_args): Add size field.
6041 (find_vdso_size): New function.
6042 (add_vsyscall_page): Attempt to find vdso size.
6043
6044 2014-04-01 Doug Evans <dje@google.com>
6045
6046 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
6047
6048 2014-04-01 Tristan Gingold <gingold@adacore.com>
6049
6050 * darwin-nat.c (darwin_encode_reply): Add prototype.
6051 (darwin_decode_exception_message): Reply to unknown inferiors.
6052 (darwin_decode_message): Handle message by id. Ignore message
6053 to unknown inferior.
6054 (darwin_wait): Discard unknown messages, add debug trace.
6055
6056 2014-03-31 Doug Evans <dje@google.com>
6057
6058 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
6059 comp_dir_string.
6060
6061 2014-03-31 Doug Evans <dje@google.com>
6062
6063 New option "set print symbol-loading".
6064 * NEWS: Mention it.
6065 * solib.c (solib_read_symbols): Only print symbol loading messages
6066 if requested.
6067 (solib_add): If symbol loading is in "brief" mode, notify user
6068 symbols are being loaded.
6069 (reload_shared_libraries_1): Ditto.
6070 * symfile.c (print_symbol_loading_off): New static global.
6071 (print_symbol_loading_brief): New static global.
6072 (print_symbol_loading_full): New static global.
6073 (print_symbol_loading_enums): New static global.
6074 (print_symbol_loading): New static global.
6075 (print_symbol_loading_p): New function.
6076 (symbol_file_add_with_addrs): Only print symbol loading messages
6077 if requested.
6078 (_initialize_symfile): Register "print symbol-loading" set/show
6079 command.
6080 * symfile.h (print_symbol_loading_p): Declare.
6081
6082 2014-03-30 Doug Evans <xdje42@gmail.com>
6083
6084 * infrun.c (set_last_target_status): New function.
6085 (handle_inferior_event): Call it.
6086
6087 2014-03-30 Doug Evans <xdje42@gmail.com>
6088
6089 * inferior.h (enum stop_kind): Improve comment.
6090
6091 2014-03-28 Joel Brobecker <brobecker@adacore.com>
6092
6093 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6094 a reference, strip the reference layer before calling
6095 the lang_ops value_has_mutated callback.
6096
6097 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6098
6099 Remove some globals from our parser.
6100 * language.c (unk_lang_parser): Add "struct parser_state"
6101 argument.
6102 * language.h (struct language_defn) <la_parser>: Likewise.
6103 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6104 (initialize_expout): Add "struct parser_state" argument.
6105 Rewrite function to use the parser state.
6106 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6107 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6108 write_exp_elt_longcst, write_exp_elt_dblcst,
6109 write_exp_elt_decfloatcst, write_exp_elt_type,
6110 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6111 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6112 write_dollar_variable): Likewise.
6113 (parse_exp_in_context_1): Use parser state.
6114 (insert_type_address_space): Add "struct parser_state" argument.
6115 Use parser state.
6116 (increase_expout_size): New function.
6117 * parser-defs.h: Forward declare "struct language_defn" and
6118 "struct parser_state".
6119 (expout, expout_size, expout_ptr): Remove extern declarations.
6120 (parse_gdbarch, parse_language): Rewrite macro declarations to
6121 accept the parser state.
6122 (struct parser_state): New struct.
6123 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6124 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6125 write_exp_elt_decfloatcst, write_exp_elt_type,
6126 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6127 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6128 write_exp_msymbol, write_dollar_variable,
6129 mark_struct_expression, insert_type_address_space): Add "struct
6130 parser_state" argument.
6131 (increase_expout_size): New function.
6132 * utils.c (do_clear_parser_state): New function.
6133 (make_cleanup_clear_parser_state): Likewise.
6134 * utils.h (make_cleanup_clear_parser_state): New function
6135 prototype.
6136 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6137 Update calls to write_exp* in order to pass the parser state.
6138 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6139 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6140 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6141 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6142 * stap-probe.c (stap_parse_register_operand): Likewise.
6143 (stap_parse_single_operand): Likewise.
6144 (stap_parse_argument_1): Likewise.
6145 (stap_parse_argument): Use parser state.
6146 * stap-probe.h: Include "parser-defs.h".
6147 (struct stap_parse_info) <pstate>: New field.
6148 * c-exp.y (parse_type): Rewrite to use parser state.
6149 (yyparse): Redefine to c_parse_internal.
6150 (pstate): New global variable.
6151 (parse_number): Add "struct parser_state" argument.
6152 (write_destructor_name): Likewise.
6153 (type_exp): Update calls to write_exp* and similars in order to
6154 use parser state.
6155 (exp1, exp, variable, qualified_name, space_identifier,
6156 typename, typebase): Likewise.
6157 (write_destructor_name, parse_number, lex_one_token,
6158 classify_name, classify_inner_name, c_parse): Add "struct
6159 parser_state" argument. Update function to use parser state.
6160 * c-lang.h: Forward declare "struct parser_state".
6161 (c_parse): Add "struct parser_state" argument.
6162 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6163 (yyparse): Redefine macro to ada_parse_internal.
6164 (pstate): New variable.
6165 (write_int, write_object_renaming, write_var_or_type,
6166 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6167 type_int, type_long, type_long_long, type_float, type_double,
6168 type_long_double, type_char, type_boolean, type_system_address):
6169 Add "struct parser_state" argument.
6170 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6171 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6172 var_or_type, aggregate, aggregate_component_list,
6173 positional_list, others, component_group,
6174 component_associations): Update calls to write_exp* and similar
6175 functions in order to use parser state.
6176 (ada_parse, write_var_from_sym, write_int,
6177 write_exp_op_with_string, write_object_renaming,
6178 find_primitive_type, write_selectors, write_ambiguous_var,
6179 write_var_or_type, write_name_assoc, type_int, type_long,
6180 type_long_long, type_float, type_double, type_long_double,
6181 type_char, type_boolean, type_system_address): Add "struct
6182 parser_state" argument. Adjust function to use parser state.
6183 * ada-lang.c (parse): Likewise.
6184 * ada-lang.h: Forward declare "struct parser_state".
6185 (ada_parse): Add "struct parser_state" argument.
6186 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6187 calls to both functions.
6188 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6189 parser state.
6190 (yyparse): Redefine macro to f_parse_internal.
6191 (pstate): New variable.
6192 (parse_number): Add "struct parser_state" argument.
6193 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6194 and similars in order to use parser state.
6195 (parse_number): Adjust code to use parser state.
6196 (yylex): Likewise.
6197 (f_parse): New function.
6198 * f-lang.h: Forward declare "struct parser_state".
6199 (f_parse): Add "struct parser_state" argument.
6200 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6201 parser state.
6202 (yyparse): Redefine macro for java_parse_internal.
6203 (pstate): New variable.
6204 (push_expression_name, push_expression_name, insert_exp): Add
6205 "struct parser_state" argument.
6206 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6207 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6208 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6209 PostIncrementExpression, PostDecrementExpression,
6210 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6211 UnaryExpressionNotPlusMinus, CastExpression,
6212 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6213 RelationalExpression, EqualityExpression, AndExpression,
6214 ExclusiveOrExpression, InclusiveOrExpression,
6215 ConditionalAndExpression, ConditionalOrExpression,
6216 ConditionalExpression, Assignment, LeftHandSide): Update
6217 calls to write_exp* and similars in order to use parser state.
6218 (parse_number): Ajust code to use parser state.
6219 (yylex): Likewise.
6220 (java_parse): New function.
6221 (push_variable): Add "struct parser_state" argument. Adjust
6222 code to user parser state.
6223 (push_fieldnames, push_qualified_expression_name,
6224 push_expression_name, insert_exp): Likewise.
6225 * jv-lang.h: Forward declare "struct parser_state".
6226 (java_parse): Add "struct parser_state" argument.
6227 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6228 parser state.
6229 (yyparse): Redefine macro to m2_parse_internal.
6230 (pstate): New variable.
6231 (type_exp, exp, fblock, variable, type): Update calls to
6232 write_exp* and similars to use parser state.
6233 (yylex): Likewise.
6234 (m2_parse): New function.
6235 * m2-lang.h: Forward declare "struct parser_state".
6236 (m2_parse): Add "struct parser_state" argument.
6237 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6238 * objc-lang.h: Forward declare "struct parser_state".
6239 (end_msglist): Add "struct parser_state" argument.
6240 * p-exp.y (parse_type): Rewrite macro to use parser state.
6241 (yyparse): Redefine macro to pascal_parse_internal.
6242 (pstate): New variable.
6243 (parse_number): Add "struct parser_state" argument.
6244 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6245 write_exp* and similars in order to use parser state.
6246 (parse_number, yylex): Adjust code to use parser state.
6247 (pascal_parse): New function.
6248 * p-lang.h: Forward declare "struct parser_state".
6249 (pascal_parse): Add "struct parser_state" argument.
6250 * go-exp.y (parse_type): Rewrite macro to use parser state.
6251 (yyparse): Redefine macro to go_parse_internal.
6252 (pstate): New variable.
6253 (parse_number): Add "struct parser_state" argument.
6254 (type_exp, exp1, exp, variable, type): Update calls to
6255 write_exp* and similars in order to use parser state.
6256 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6257 to use parser state.
6258 (go_parse): Likewise.
6259 * go-lang.h: Forward declare "struct parser_state".
6260 (go_parse): Add "struct parser_state" argument.
6261
6262 2014-03-27 Doug Evans <dje@google.com>
6263
6264 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6265
6266 2014-03-27 Doug Evans <dje@google.com>
6267
6268 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6269 Remove argument abbrev_section. All callers updated.
6270
6271 2014-03-27 Doug Evans <dje@google.com>
6272
6273 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6274 addr_base, ranges_base.
6275
6276 2014-03-26 Keith Seitz <keiths@redhat.com>
6277
6278 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6279 types, not VAR_DOMAIN.
6280
6281 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6282
6283 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6284 "ra" registers.
6285 * features/nios2-linux.c: Regenerated.
6286 * features/nios2.c: Regenerated.
6287
6288 2014-03-25 Pedro Alves <palves@redhat.com>
6289
6290 * cli/cli-script.c (script_from_file): Force the interpreter to
6291 sync mode.
6292
6293 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6294
6295 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6296 small stack allocation.
6297
6298 2014-03-24 Tristan Gingold <gingold@adacore.com>
6299
6300 * darwin-nat.c (exc_server): Remove unused prototype.
6301 (darwin_dump_message): Correctly display data on x86_64.
6302 (darwin_encode_reply): Fix style.
6303 Add comments and fix indentation.
6304
6305 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6306
6307 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6308
6309 2014-03-22 Doug Evans <xdje42@gmail.com>
6310
6311 * infcmd.c: Whitespace fixes.
6312 (interrupt_command): Merge two function comments into one.
6313
6314 2014-03-22 Doug Evans <xdje42@gmail.com>
6315
6316 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6317 All uses updated.
6318
6319 2014-03-22 Yao Qi <yao@codesourcery.com>
6320
6321 * remote.c (target_read_live_memory): Remove.
6322 (memory_xfer_live_readonly_partial): Rename it to
6323 remote_xfer_live_readonly_partial. Remove argument 'object'.
6324 All callers updated. Call remote_read_bytes_1
6325 instead of target_read_live_memory.
6326 * tracepoint.c (set_traceframe_number): Remove.
6327 (make_cleanup_restore_traceframe_number): Likewise .
6328 * tracepoint.h (set_traceframe_number): Remove declaration.
6329 (make_cleanup_restore_traceframe_number): Likewise.
6330
6331 2014-03-22 Yao Qi <yao@codesourcery.com>
6332
6333 * remote.c (remote_read_bytes): Move code on reading from the
6334 remote stub to ...
6335 (remote_read_bytes_1): ... here. New function.
6336
6337 2014-03-22 Yao Qi <yao@codesourcery.com>
6338
6339 * ctf.c (ctf_xfer_partial): Check the return value of
6340 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6341 return TARGET_XFER_UNAVAILABLE.
6342 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6343 * target.c (target_read_live_memory): Move it to remote.c.
6344 (memory_xfer_live_readonly_partial): Likewise.
6345 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6346 * remote.c (target_read_live_memory): Moved from target.c.
6347 (memory_xfer_live_readonly_partial): Likewise.
6348 (remote_read_bytes): Factored out from
6349 memory_xfer_partial_1.
6350
6351 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6352
6353 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6354 NULL pointer.
6355
6356 2014-03-21 Pedro Alves <palves@redhat.com>
6357
6358 * infrun.c (normal_stop): Extend comment.
6359
6360 2014-03-21 Hui Zhu <hui@codesourcery.com>
6361 Pedro Alves <palves@redhat.com>
6362
6363 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6364 static buffer.
6365 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6366 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6367 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6368
6369 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6370
6371 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6372 `z' formatted output modifier.
6373
6374 2014-03-20 Tom Tromey <tromey@redhat.com>
6375 Sergio Durigan Junior <sergiodj@redhat.com>
6376
6377 * probe.c (parse_probes): Turn assert into an ordinary error.
6378 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6379 exceptions when parsing probes. Rearrange the code for clarity.
6380
6381 2014-03-20 Tom Tromey <tromey@redhat.com>
6382
6383 PR gdb/14135
6384 * top.c (execute_command): Only dispatch events if the command
6385 started the target.
6386
6387 2014-03-20 Tom Tromey <tromey@redhat.com>
6388
6389 PR cli/15718
6390 * infcall.c: Include event-top.h.
6391 (run_inferior_call): Call async_disable_stdin if needed.
6392
6393 2014-03-20 Pedro Alves <palves@redhat.com>
6394
6395 * infrun.c (prepare_to_proceed): Delete.
6396 (thread_still_needs_step_over): New function.
6397 (find_thread_needs_step_over): New function.
6398 (proceed): If the current thread needs a step-over, set its
6399 steping_over_breakpoint flag. Adjust to use
6400 find_thread_needs_step_over instead of prepare_to_proceed.
6401 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6402 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6403 breakpoint.
6404 (switch_back_to_stepped_thread): Step over breakpoints of all
6405 threads not the stepping thread, before switching back to the
6406 stepping thread.
6407
6408 2014-03-20 Pedro Alves <palves@redhat.com>
6409
6410 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6411 extern.
6412 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6413 * infrun.c (saved_singlestep_ptid)
6414 (stepping_past_singlestep_breakpoint): Delete.
6415 (resume): Remove stepping_past_singlestep_breakpoint handling.
6416 (proceed): Store the prev_pc of the stepping thread too.
6417 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6418 singlestep_pc.
6419 (enum infwait_states): Delete infwait_thread_hop_state.
6420 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6421 field.
6422 (handle_inferior_event): Adjust.
6423 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6424 handling and the thread-hop code. Before removing single-step
6425 breakpoints, check whether the thread hit a single-step breakpoint
6426 of another thread. If it did, the trap is not a random signal.
6427 (switch_back_to_stepped_thread): If the event thread hit a
6428 single-step breakpoint, unblock it before switching to the
6429 stepping thread. Handle the case of the stepped thread having
6430 advanced already.
6431 (keep_going): Handle the case of the current thread moving past a
6432 single-step breakpoint.
6433
6434 2014-03-20 Pedro Alves <palves@redhat.com>
6435
6436 PR breakpoints/7143
6437 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6438 are being stepped over.
6439 (breakpoint_address_match): Make extern.
6440 * breakpoint.h (breakpoint_address_match): New declaration.
6441 * inferior.h (stepping_past_instruction_at): New declaration.
6442 * infrun.c (struct step_over_info): New type.
6443 (step_over_info): New global.
6444 (set_step_over_info, clear_step_over_info)
6445 (stepping_past_instruction_at): New functions.
6446 (handle_inferior_event): Clear the step-over info when
6447 trap_expected is cleared.
6448 (resume): Remove now stale comment.
6449 (clear_proceed_status): Clear step-over info.
6450 (proceed): Adjust step-over handling to set or clear the step-over
6451 info instead of removing all breakpoints.
6452 (handle_signal_stop): When setting up a thread-hop, don't remove
6453 breakpoints here.
6454 (stop_stepping): Clear step-over info.
6455 (keep_going): Adjust step-over handling to set or clear step-over
6456 info and then always inserting breakpoints, instead of removing
6457 all breakpoints when stepping over one.
6458
6459 2014-03-20 Pedro Alves <palves@redhat.com>
6460
6461 * infrun.c (previous_inferior_ptid): Adjust comment.
6462 (deferred_step_ptid): Delete.
6463 (infrun_thread_ptid_changed, prepare_to_proceed)
6464 (init_wait_for_inferior): Adjust.
6465 (handle_signal_stop): Delete deferred_step_ptid handling.
6466
6467 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6468
6469 PR gdb/15358
6470 * defs.h (sync_quit_force_run): New declaration.
6471 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6472 * event-top.c (async_sigterm_handler): New declaration.
6473 (async_sigterm_token): New variable.
6474 (async_init_signals): Create also async_sigterm_token.
6475 (async_sigterm_handler): New function.
6476 (sync_quit_force_run): New variable.
6477 (handle_sigterm): Replace quit_force call by other calls.
6478 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6479
6480 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6481
6482 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6483 offset into SPE pseudo registers.
6484
6485 2014-03-18 Pedro Alves <palves@redhat.com>
6486
6487 PR gdb/13860
6488 * inferior.h (print_stop_event): Declare.
6489 * infrun.c (print_stop_event): New, factored out from ...
6490 (normal_stop): ... this.
6491 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6492 of bpstat_print/print_stack_frame.
6493
6494 2014-03-17 Tom Tromey <tromey@redhat.com>
6495
6496 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6497
6498 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6499
6500 * ada-lang.c (decode_constrained_packed_array): Perform a
6501 minimal coercion for reference with coerce_ref instead of
6502 ada_coerce_ref.
6503
6504 2014-03-17 Tristan Gingold <gingold@adacore.com>
6505
6506 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6507 (darwin_solib_create_inferior_hook): Emit a warning if version
6508 is unhandled.
6509
6510 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6511
6512 * python/py-value.c (get_field_flag): Cast flag_name argument to
6513 PyObject_GetAttrString to support Python 2.4.
6514
6515 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6516
6517 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6518 (Global Maintainers): Remove Jan Kratochvil.
6519
6520 2014-03-14 Pedro Alves <palves@redhat.com>
6521
6522 * inferior.h (terminal_ours_for_output): Rename to ...
6523 (child_terminal_ours_for_output): ... this.
6524 (terminal_save_ours): Rename to ...
6525 (child_terminal_save_ours): ... this.
6526 (terminal_ours): Rename to ...
6527 (child_terminal_ours): ... this.
6528 (terminal_inferior): Rename to ...
6529 (child_terminal_inferior): ... this.
6530 (terminal_init_inferior): Rename to ...
6531 (child_terminal_init_inferior): ... this.
6532 (terminal_init_inferior_with_pgrp): Rename to ...
6533 (child_terminal_init_inferior_with_pgrp): ... this.
6534 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6535 (child_terminal_init_with_pgrp): ... this.
6536 (terminal_save_ours): Rename to ...
6537 (child_terminal_save_ours): ... this.
6538 (terminal_init_inferior): Rename to ...
6539 (child_terminal_init): ... this. Adjust.
6540 (terminal_inferior): Rename to ...
6541 (child_terminal_inferior): ... this.
6542 (terminal_ours_for_output): Rename to ...
6543 (child_terminal_ours_for_output): ... this. Adjust.
6544 (terminal_ours): Rename to ...
6545 (child_terminal_ours): ... this.
6546 (terminal_ours_1): Rename to ...
6547 (child_terminal_ours_1): ... this. Adjust.
6548 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6549 * windows-nat.c (do_initial_windows_stuff): Adjust.
6550 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6551 (gnu_terminal_init): ... this. Adjust.
6552 (gnu_target): Adjust.
6553 * inf-child.c (inf_child_target): Adjust.
6554
6555 2014-03-13 Doug Evans <xdje42@gmail.com>
6556
6557 PR guile/16612
6558 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6559 new eq?-hashtab.
6560
6561 2014-03-13 Doug Evans <xdje42@gmail.com>
6562
6563 * value.c (record_latest_value): Call release_value_or_incref
6564 instead of release_value.
6565
6566 2014-03-13 Pedro Alves <palves@redhat.com>
6567
6568 * procfs.c (procfs_target): Don't override to_shortname,
6569 to_longname or to_doc.
6570
6571 2014-03-13 Pedro Alves <palves@redhat.com>
6572
6573 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6574 Unix in user visible strings.
6575
6576 2014-03-12 Stan Shebs <stan@codesourcery.com>
6577
6578 * gdbtypes.h: Annotate comments for Doxygen, add a page
6579 block comment with some general info.
6580
6581 2014-03-12 Pedro Alves <palves@redhat.com>
6582
6583 * infcmd.c (prepare_execution_command): New function, factored out
6584 from several execution commands.
6585 (run_command_1, continue_command, step_1, jump_command)
6586 (signal_command, until_command, advance_command, finish_command)
6587 (attach_command): Use prepare_execution_command.
6588
6589 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6590
6591 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6592 (MAX_BPTS): Define.
6593 (MAX_WPTS): Define.
6594 (struct arm_linux_thread_points): Removed.
6595 (struct arm_linux_process_info): New.
6596 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6597 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6598 (arm_linux_find_breakpoints_by_tid): Removed.
6599 (struct arch_lwp_info): New.
6600 (arm_linux_find_process_pid): New functions.
6601 (arm_linux_add_process): New functions.
6602 (arm_linux_process_info_get): New functions.
6603 (arm_linux_forget_process): New function.
6604 (arm_linux_get_debug_reg_state): New function.
6605 (struct update_registers_data): New.
6606 (update_registers_callback): New function.
6607 (arm_linux_insert_hw_breakpoint1): Updated.
6608 (arm_linux_remove_hw_breakpoint1): Updated.
6609 (arm_linux_insert_hw_breakpoint): Updated.
6610 (arm_linux_remove_hw_breakpoint): Updated.
6611 (arm_linux_insert_watchpoint): Updated.
6612 (arm_linux_remove_watchpoint): Updated.
6613 (arm_linux_new_thread): Updated.
6614 (arm_linux_prepare_to_resume): New function.
6615 (arm_linux_new_fork): New function.
6616 (_initialize_arm_linux_nat): Updated.
6617
6618 2014-03-12 Pedro Alves <palves@redhat.com>
6619
6620 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6621
6622 2014-03-12 Tom Tromey <tromey@redhat.com>
6623
6624 * inf-child.c (return_zero): New function.
6625 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6626 * aix-thread.c (aix_thread_inferior_created): New function.
6627 (aix_thread_attach): Remove.
6628 (init_aix_thread_ops): Don't set to_attach.
6629 (_initialize_aix_thread): Register inferior_created observer.
6630 * corelow.c (init_core_ops): Don't set to_attach or
6631 to_create_inferior.
6632 * exec.c (init_exec_ops): Don't set to_attach or
6633 to_create_inferior.
6634 * infcmd.c (run_command_1): Use find_run_target. Make direct
6635 target calls.
6636 (attach_command): Use find_attach_target. Make direct target
6637 calls.
6638 * record-btrace.c (init_record_btrace_ops): Don't set
6639 to_create_inferior.
6640 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6641 Remove.
6642 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6643 set to_create_inferior.
6644 * target.c (complete_target_initialization): Add assertion.
6645 (target_create_inferior): Remove.
6646 (find_default_attach, find_default_create_inferior): Remove.
6647 (find_attach_target, find_run_target): New functions.
6648 (find_default_is_async_p, find_default_can_async_p)
6649 (target_supports_non_stop, target_attach): Remove.
6650 (init_dummy_target): Don't set to_create_inferior or
6651 to_supports_non_stop.
6652 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6653 TARGET_DEFAULT_FUNC.
6654 <to_create_inferior>: Add comment.
6655 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6656 TARGET_DEFAULT_RETURN.
6657 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6658 (find_attach_target, find_run_target): Declare.
6659 (target_create_inferior): Remove.
6660 (target_has_execution_1): Update comment.
6661 (target_supports_non_stop): Remove.
6662 * target-delegates.c: Rebuild.
6663
6664 2014-03-12 Pedro Alves <palves@redhat.com>
6665
6666 * inf-child.h: Update comment to not mention Unix.
6667
6668 2014-03-12 Pedro Alves <palves@redhat.com>
6669
6670 * inf-child.c: Update top comment to not mention Unix. Add
6671 generic comment describing how this target is meant to be used.
6672 (inf_child_post_attach, inf_child_post_startup_inferior)
6673 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6674 Unix in comment.
6675
6676 2014-03-12 Pedro Alves <palves@redhat.com>
6677
6678 * nto-procfs.c: Include inf-child.h.
6679 (procfs_ops): Delete global.
6680 (procfs_can_run): Delete method.
6681 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6682 target pointer instead of referencing procfs_ops.
6683 (procfs_prepare_to_store): Delete.
6684 (init_procfs_ops): Delete function.
6685 (procfs_target): New function, based on init_procfs_ops, but
6686 inherit inf_child_target.
6687 (_initialize_procfs): Use procfs_target.
6688
6689 2014-03-12 Pedro Alves <palves@redhat.com>
6690
6691 * windows-nat.c: Include inf-child.h.
6692 (windows_ops): Delete global.
6693 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6694 methods.
6695 (init_windows_ops): Delete function.
6696 (windows_target): New function, based on init_windows_ops, but
6697 inherit inf_child_target.
6698 (_initialize_windows_nat): Use windows_target. Install x86
6699 specific target methods here.
6700
6701 2014-03-10 Doug Evans <xdje42@gmail.com>
6702
6703 * guile/guile.c (call_initialize_gdb_module): New function.
6704 (initialize_guile): Replace call to scm_init_guile with call to
6705 scm_with_guile.
6706
6707 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6708
6709 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6710 in call to TYPE_CODE macro.
6711
6712 2014-03-10 Jerome Guitton <guitton@adacore.com>
6713
6714 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6715 Resolve tagged types to full view.
6716
6717 2014-03-10 Hui Zhu <hui@codesourcery.com>
6718
6719 * target.h (target_insert_breakpoint): Remove "hardware" from its
6720 comments.
6721
6722 2014-03-07 Doug Evans <dje@google.com>
6723
6724 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6725
6726 2014-03-07 Doug Evans <dje@google.com>
6727
6728 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6729 Remove unused local comp_dir_attr. Assert exactly one of
6730 stub_comp_unit_die, stub_comp_dir is non-NULL.
6731
6732 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6733
6734 * target.h (complete_target_initialization, add_target):
6735 Add comment.
6736
6737 2014-03-07 Pedro Alves <palves@redhat.com>
6738
6739 * go32-nat.c: Include inf-child.h.
6740 (go32_ops): Delete global.
6741 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6742 Delete methods.
6743 (go32_create_inferior): Push the passed in target pointer instead
6744 of referencing go32_ops.
6745 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6746 (go32_target): New function, based on init_go32_ops, but inherit
6747 inf_child_target.
6748 (_initialize_go32_nat): Use go32_target. Move parts of
6749 init_go32_ops here.
6750
6751 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6752
6753 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6754 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6755 SYMBOL_VALUE_ADDRESS.
6756 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6757
6758 2014-03-06 Yao Qi <yao@codesourcery.com>
6759
6760 * breakpoint.c (get_tracepoint_by_number): Remove argument
6761 optional_p. All callers updated. Adjust comments. Update
6762 output message.
6763 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6764
6765 2014-03-06 Yao Qi <yao@codesourcery.com>
6766
6767 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6768 early if get_number returns zero. Use 'p' instead of 'args'.
6769
6770 2014-03-06 Yao Qi <yao@codesourcery.com>
6771
6772 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6773 message.
6774
6775 2014-03-06 Yao Qi <yao@codesourcery.com>
6776
6777 PR breakpoints/16508
6778 * tracepoint.c (check_trace_running): New function.
6779 (trace_find_command): Move code to check_trace_running and
6780 call check_trace_running.
6781 (trace_find_pc_command): Likewise.
6782 (trace_find_tracepoint_command): Likewise.
6783 (trace_find_line_command): Likewise.
6784 (trace_find_range_command): Likewise.
6785 * tracepoint.h (check_trace_running): Likewise.
6786 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6787
6788 2014-03-06 Yao Qi <yao@codesourcery.com>
6789
6790 * target.h (struct target_ops) <to_traceframe_info>: Use
6791 TARGET_DEFAULT_NORETURN (tcomplain ()).
6792 * target-delegates.c: Regenerated.
6793
6794 2014-03-05 Pedro Alves <palves@redhat.com>
6795
6796 PR gdb/16575
6797 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6798 void. Update comment.
6799 (dcache_xfer_memory): Delete.
6800 (dcache_read_memory_partial): New, based on the read bits of
6801 dcache_xfer_memory.
6802 (dcache_update): Add status parameter. Use ULONGEST for len, and
6803 adjust. Discard cache lines if the reason for the update was
6804 error.
6805 * dcache.h (dcache_xfer_memory): Delete declaration.
6806 (dcache_read_memory_partial): New declaration.
6807 (dcache_update): Update prototype.
6808 * target.c (raw_memory_xfer_partial): Update the dcache here.
6809 (memory_xfer_partial_1): Don't handle dcache writes here.
6810
6811 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6812
6813 * remote-sim.c (gdbsim_load): Add const to prog.
6814
6815 2014-03-03 Tom Tromey <tromey@redhat.com>
6816
6817 * elfread.c (probe_key): Change to bfd_data.
6818 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6819 now per-BFD, not per-objfile.
6820 * stap-probe.c (stap_probe_destroy): Update comment.
6821 (handle_stap_probe): Allocate on the per-BFD obstack.
6822
6823 2014-03-03 Tom Tromey <tromey@redhat.com>
6824
6825 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6826 * breakpoint.c (create_longjmp_master_breakpoint): Use
6827 get_probe_address.
6828 (add_location_to_breakpoint, bkpt_probe_insert_location)
6829 (bkpt_probe_remove_location): Update.
6830 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6831 * elfread.c (elf_symfile_relocate_probe): Remove.
6832 (elf_probe_fns): Update.
6833 (insert_exception_resume_breakpoint): Change type of "probe"
6834 parameter to bound_probe.
6835 (check_exception_resume): Update.
6836 * objfiles.c (objfile_relocate1): Don't relocate probes.
6837 * probe.c (bound_probe_s): New typedef.
6838 (parse_probes): Use get_probe_address. Set sal's objfile.
6839 (find_probe_by_pc): Return a bound_probe.
6840 (collect_probes): Return a VEC(bound_probe_s).
6841 (compare_probes): Update.
6842 (gen_ui_out_table_header_info): Change type of "probes"
6843 parameter. Update.
6844 (info_probes_for_ops): Update.
6845 (get_probe_address): New function.
6846 (probe_safe_evaluate_at_pc): Update.
6847 * probe.h (struct probe_ops) <get_probe_address>: New field.
6848 <set_semaphore, clear_semaphore>: Add objfile parameter.
6849 (struct probe) <objfile>: Remove field.
6850 <arch>: New field.
6851 <address>: Update comment.
6852 (struct bound_probe): New.
6853 (find_probe_by_pc): Return a bound_probe.
6854 (get_probe_address): Declare.
6855 * solib-svr4.c (struct probe_and_action) <address>: New field.
6856 (hash_probe_and_action, equal_probe_and_action): Update.
6857 (register_solib_event_probe): Add address parameter.
6858 (solib_event_probe_at): Update.
6859 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6860 get_probe_address.
6861 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6862 (stap_get_probe_address): New function.
6863 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6864 (compile_probe_arg): Update.
6865 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6866 address.
6867 (handle_stap_probe): Don't relocate the probe.
6868 (stap_relocate): Remove.
6869 (stap_gen_info_probes_table_values): Update.
6870 (stap_probe_ops): Remove stap_relocate.
6871 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6872 (debug_sym_probe_fns): Update.
6873 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6874 * symtab.c (init_sal): Use memset.
6875 * symtab.h (struct symtab_and_line) <objfile>: New field.
6876 * tracepoint.c (start_tracing, stop_tracing): Update.
6877
6878 2014-03-03 Tom Tromey <tromey@redhat.com>
6879
6880 * probe.h (parse_probes, find_probe_by_pc)
6881 (find_probes_in_objfile): Fix comments.
6882
6883 2014-03-02 Doug Evans <xdje42@gmail.com>
6884
6885 * infrun.c (handle_signal_stop): Replace test for
6886 TARGET_WAITKIND_STOPPED with an assert.
6887
6888 2014-03-02 Doug Evans <xdje42@gmail.com>
6889
6890 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6891
6892 2014-03-02 Doug Evans <xdje42@gmail.com>
6893
6894 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6895
6896 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6897
6898 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6899
6900 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6901
6902 * i386obsd-nat.c: Include "obsd-nat.h".
6903 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6904 add_target.
6905 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6906
6907 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6908
6909 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6910
6911 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6912
6913 * mips64obsd-nat.c: Include "obsd-nath".
6914 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6915 add_target
6916 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6917
6918 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6919
6920 * amd64obsd-nat.c: Include "obsd-nat,h.
6921 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6922 add_target.
6923 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6924
6925 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6926
6927 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6928 (find_overload_match): Update call to find_oload_champ.
6929 (find_oload_champ_namespace_loop): Likewise
6930
6931 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6932
6933 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6934
6935 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6936 * config/sparc/obsd64.mh: New file.
6937 * sparc64obsd-nat.c: New file.
6938
6939 * obsd-nat.h: New file.
6940 * obsd-nat.c: New file.
6941 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6942 (ALLDEPFILES): Add obsd-nat.c.
6943
6944 2014-02-28 Tom Tromey <tromey@redhat.com>
6945
6946 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6947 * cli-out.h (cli_ui_out_impl): Now const.
6948 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6949 * ui-out.c (struct ui_out) <impl>: Now const.
6950 (default_ui_out_impl): Now const.
6951 (ui_out_new): Make 'impl' parameter const.
6952 * ui-out.h (ui_out_new): Update.
6953
6954 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6955
6956 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6957
6958 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6959
6960 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6961
6962 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6963
6964 Additional PR 8882 fix.
6965 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6966
6967 2014-02-27 Pedro Alves <palves@redhat.com>
6968
6969 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6970 isn't set.
6971
6972 2014-02-27 Pedro Alves <palves@redhat.com>
6973
6974 PR 12702
6975 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6976 * nat/linux-waitpid.c: Include string.h.
6977 (status_to_str): Moved here and made extern.
6978 * nat/linux-waitpid.h (status_to_str): New declaration.
6979
6980 2014-02-27 Hui Zhu <hui@codesourcery.com>
6981
6982 PR 12702
6983 * infrun.c (ptid_match): Move ...
6984 * common/ptid.c (ptid_match): ... here.
6985 * inferior.h (ptid_match): Move ...
6986 * common/ptid.h (ptid_match): ... here.
6987
6988 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6989
6990 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6991 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6992 gdb_target_obs.
6993
6994 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6995
6996 * obsd-tdep.c (obsd_auxv_parse): New function.
6997 (obsd_init_abi): Set auxv_parse.
6998
6999 * gdbarch.sh (auxv_parse): New.
7000 * gdbarch.h: Regenerated.
7001 * gdbarch.c: Regenerated.
7002 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
7003
7004 2014-02-26 Ludovic Courtès <ludo@gnu.org>
7005
7006 * guile/scm-value.c (gdbscm_history_append_x): New function.
7007 (value_functions): Add it.
7008
7009 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7010
7011 * dwarf2read.c (attr_value_as_address): New function.
7012 (dwarf2_find_base_address, read_call_site_scope): Use
7013 attr_value_as_address in place of DW_ADDR.
7014 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
7015 the low and high addresses. Slight rework of the handling
7016 of the high pc being a constant form, and limit it to
7017 DWARF verson 4 or higher.
7018 (dwarf2_record_block_ranges): Likewise.
7019 (read_partial_die): Likewise.
7020 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
7021
7022 2014-02-26 Tom Tromey <tromey@redhat.com>
7023
7024 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
7025
7026 2014-02-26 Tom Tromey <tromey@redhat.com>
7027
7028 * elfread.c (elf_read_minimal_symbols): Return early if
7029 minimal symbols have already been read. Add "ei" parameter.
7030 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
7031 * minsyms.c (prim_record_minimal_symbol_full): Update.
7032 * objfiles.h (struct objstats) <n_minsyms>: Move...
7033 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
7034 * symmisc.c (print_objfile_statistics): Update.
7035
7036 2014-02-26 Tom Tromey <tromey@redhat.com>
7037
7038 * elfread.c (elf_read_minimal_symbols): New function, from
7039 elf_symfile_read.
7040 (elf_symfile_read): Call it.
7041
7042 2014-02-26 Tom Tromey <tromey@redhat.com>
7043
7044 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
7045 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
7046 (lookup_minimal_symbol_solib_trampoline)
7047 (lookup_minimal_symbol_by_pc_section_1)
7048 (lookup_minimal_symbol_and_objfile): Update.
7049 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
7050 Don't allocate a minimal symbol if minsyms have already been read.
7051 (build_minimal_symbol_hash_tables): Update.
7052 (install_minimal_symbols): Do nothing if minsyms already read.
7053 Use the per-BFD obstack.
7054 (terminate_minimal_symbol_table): Use the per-BFD obstack.
7055 * objfiles.c (allocate_objfile): Call
7056 terminate_minimal_symbol_table later.
7057 (have_minimal_symbols): Update.
7058 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
7059 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
7060 Move from struct objfile.
7061 <minsyms_read>: New field.
7062 (struct objfile) <msymbols, minimal_symbol_count,
7063 msymbol_hash, msymbol_demangled_hash>: Move.
7064 (ALL_OBJFILE_MSYMBOLS): Update.
7065 * symfile.c (read_symbols): Set minsyms_read.
7066 (reread_symbols): Update.
7067 * symmisc.c (dump_objfile, dump_msymbols): Update.
7068
7069 2014-02-26 Tom Tromey <tromey@redhat.com>
7070
7071 * minsyms.c (msymbols_sort): Remove.
7072 * minsyms.h (msymbols_sort): Remove.
7073 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
7074 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
7075 * elfread.c (elf_symtab_read): Don't add section offsets.
7076 * xcoffread.c (record_minimal_symbol): Don't add section offset
7077 to minimal symbol address.
7078 * somread.c (text_offset, data_offset): Remove.
7079 (som_symtab_read): Don't add section offsets to minimal symbol
7080 addresses.
7081 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7082 Don't add section offsets to minimal symbols.
7083 * coffread.c (coff_symtab_read): Don't add section offsets
7084 to minimal symbol addresses.
7085 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7086 to minimal symbol addresses.
7087 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7088 section offset to minimal symbol addresses.
7089 * mdebugread.c (parse_partial_symbols): Don't add section
7090 offset to minimal symbol addresses.
7091 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7092 offset to minimal symbol addresses.
7093
7094 2014-02-26 Tom Tromey <tromey@redhat.com>
7095
7096 * ada-lang.c (ada_main_name): Update.
7097 (ada_add_standard_exceptions): Update.
7098 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7099 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7100 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7101 * auxv.c (ld_so_xfer_auxv): Update.
7102 * avr-tdep.c (avr_scan_prologue): Update.
7103 * ax-gdb.c (gen_var_ref): Update.
7104 * blockframe.c (get_pc_function_start)
7105 (find_pc_partial_function_gnu_ifunc): Update.
7106 * breakpoint.c (create_overlay_event_breakpoint)
7107 (create_longjmp_master_breakpoint)
7108 (create_std_terminate_master_breakpoint)
7109 (create_exception_master_breakpoint): Update.
7110 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7111 * c-valprint.c (c_val_print): Update.
7112 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7113 * common/agent.c (agent_look_up_symbols): Update.
7114 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7115 * dwarf2loc.c (call_site_to_target_addr): Update.
7116 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7117 * elfread.c (elf_gnu_ifunc_record_cache)
7118 (elf_gnu_ifunc_resolve_by_got): Update.
7119 * findvar.c (default_read_var_value): Update.
7120 * frame.c (inside_main_func): Update.
7121 * frv-tdep.c (frv_frame_this_id): Update.
7122 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7123 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7124 Update.
7125 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7126 (hppa_hpux_find_dummy_bpaddr): Update.
7127 * hppa-tdep.c (hppa_symbol_address): Update.
7128 * infcmd.c (until_next_command): Update.
7129 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7130 Update.
7131 * linespec.c (minsym_found, add_minsym): Update.
7132 * linux-nat.c (get_signo): Update.
7133 * linux-thread-db.c (inferior_has_bug): Update.
7134 * m32c-tdep.c (m32c_return_value)
7135 (m32c_m16c_address_to_pointer): Update.
7136 * m32r-tdep.c (m32r_frame_this_id): Update.
7137 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7138 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7139 * maint.c (maintenance_translate_address): Update.
7140 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7141 (frob_address): New function.
7142 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7143 frob_address. Rename parameter to "pc_in".
7144 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7145 addresses.
7146 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7147 Update.
7148 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7149 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7150 * objc-lang.c (find_objc_msgsend): Update.
7151 * objfiles.c (objfile_relocate1): Update.
7152 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7153 * p-valprint.c (pascal_val_print): Update.
7154 * parse.c (write_exp_msymbol): Update.
7155 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7156 (ppc_elfv2_skip_entrypoint): Update.
7157 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7158 * printcmd.c (build_address_symbolic, msym_info)
7159 (address_info): Update.
7160 * proc-service.c (ps_pglobal_lookup): Update.
7161 * psymtab.c (find_pc_sect_psymtab_closer)
7162 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7163 Change msymbol parameter to bound_minimal_symbol.
7164 * ravenscar-thread.c (get_running_thread_id): Update.
7165 * remote.c (remote_check_symbols): Update.
7166 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7167 address.
7168 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7169 * solib-dsbt.c (lm_base): Update.
7170 * solib-frv.c (lm_base, main_got): Update.
7171 * solib-irix.c (locate_base): Update.
7172 * solib-som.c (som_solib_create_inferior_hook)
7173 (link_map_start): Update.
7174 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7175 * solib-svr4.c (elf_locate_base, enable_break): Update.
7176 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7177 (flush_ea_cache): Update.
7178 * stabsread.c (define_symbol, scan_file_globals): Update.
7179 * stack.c (find_frame_funname): Update.
7180 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7181 (debug_qf_find_pc_sect_symtab): Update.
7182 * symfile.c (simple_read_overlay_table)
7183 (simple_overlay_update): Update.
7184 * symfile.h (struct quick_symbol_functions)
7185 <find_pc_sect_symtab>: Change type of msymbol to
7186 bound_minimal_symbol.
7187 * symmisc.c (dump_msymbols): Update.
7188 * symtab.c (find_pc_sect_symtab_via_partial)
7189 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7190 (search_symbols, print_msymbol_info): Update.
7191 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7192 (MSYMBOL_VALUE_ADDRESS): Redefine.
7193 (BMSYMBOL_VALUE_ADDRESS): New macro.
7194 * tracepoint.c (scope_info): Update.
7195 * tui/tui-disasm.c (tui_find_disassembly_address)
7196 (tui_get_begin_asm_address): Update.
7197 * valops.c (find_function_in_inferior): Update.
7198 * value.c (value_static_field, value_fn_field): Update.
7199
7200 2014-02-26 Tom Tromey <tromey@redhat.com>
7201
7202 * ada-lang.c (ada_update_initial_language): Update.
7203 (ada_main_name, ada_has_this_exception_support): Update.
7204 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7205 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7206 * arm-tdep.c (arm_skip_stub): Update.
7207 * auxv.c (ld_so_xfer_auxv): Update.
7208 * avr-tdep.c (avr_scan_prologue): Update.
7209 * ax-gdb.c (gen_var_ref): Update.
7210 * breakpoint.c (struct breakpoint_objfile_data)
7211 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7212 type to bound_minimal_symbol.
7213 (create_overlay_event_breakpoint)
7214 (create_longjmp_master_breakpoint)
7215 (create_std_terminate_master_breakpoint)
7216 (create_exception_master_breakpoint): Update.
7217 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7218 * c-exp.y (classify_name): Update.
7219 * coffread.c (coff_symfile_read): Update.
7220 * common/agent.c (agent_look_up_symbols): Update.
7221 * d-lang.c (d_main_name): Update.
7222 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7223 * dec-thread.c (enable_dec_thread): Update.
7224 * dwarf2loc.c (call_site_to_target_addr): Update.
7225 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7226 * eval.c (evaluate_subexp_standard): Update.
7227 * findvar.c (struct minsym_lookup_data) <result>: Change type
7228 to bound_minimal_symbol.
7229 <objfile>: Remove.
7230 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7231 * frame.c (inside_main_func): Update.
7232 * frv-tdep.c (frv_frame_this_id): Update.
7233 * gcore.c (call_target_sbrk): Update.
7234 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7235 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7236 Update.
7237 * go-lang.c (go_main_name): Update.
7238 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7239 (hppa_hpux_find_import_stub_for_addr): Update.
7240 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7241 Update. Change return type.
7242 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7243 type.
7244 * jit.c (jit_breakpoint_re_set_internal): Update.
7245 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7246 Update.
7247 * linux-nat.c (get_signo): Update.
7248 * linux-thread-db.c (inferior_has_bug): Update
7249 * m32c-tdep.c (m32c_return_value)
7250 (m32c_m16c_address_to_pointer): Update.
7251 * m32r-tdep.c (m32r_frame_this_id): Update.
7252 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7253 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7254 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7255 lookup_minimal_symbol. Change return type.
7256 (lookup_minimal_symbol): Remove.
7257 (lookup_bound_minimal_symbol): Update.
7258 (lookup_minimal_symbol_text): Change return type.
7259 (lookup_minimal_symbol_solib_trampoline): Change return type.
7260 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7261 (lookup_minimal_symbol_solib_trampoline): Change return type.
7262 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7263 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7264 (value_nsstring, find_imps): Update.
7265 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7266 * p-lang.c (pascal_main_name): Update.
7267 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7268 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7269 * proc-service.c (ps_pglobal_lookup): Update.
7270 * ravenscar-thread.c (get_running_thread_msymbol): Change
7271 return type.
7272 (has_ravenscar_runtime, get_running_thread_id): Update.
7273 * remote.c (remote_check_symbols): Update.
7274 * sol-thread.c (ps_pglobal_lookup): Update.
7275 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7276 * solib-dsbt.c (lm_base): Update.
7277 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7278 Update.
7279 * solib-irix.c (locate_base): Update.
7280 * solib-som.c (som_solib_create_inferior_hook)
7281 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7282 Update.
7283 * solib-spu.c (spu_enable_break): Update.
7284 * solib-svr4.c (elf_locate_base, enable_break): Update.
7285 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7286 (flush_ea_cache): Update.
7287 * stabsread.c (define_symbol): Update.
7288 * symfile.c (simple_read_overlay_table): Update.
7289 * symtab.c (find_pc_sect_line): Update.
7290 * tracepoint.c (scope_info): Update.
7291 * tui-disasm.c (tui_get_begin_asm_address): Update.
7292 * value.c (value_static_field): Update.
7293
7294 2014-02-26 Tom Tromey <tromey@redhat.com>
7295
7296 * minsyms.c (prim_record_minimal_symbol_full): Use
7297 SET_MSYMBOL_VALUE_ADDRESS.
7298 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7299 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7300 SET_MSYMBOL_VALUE_ADDRESS.
7301 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7302 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7303
7304 2014-02-26 Tom Tromey <tromey@redhat.com>
7305
7306 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7307 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7308 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7309 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7310 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7311 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7312 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7313 * ada-lang.c (ada_main_name): Update.
7314 (ada_lookup_simple_minsym): Update.
7315 (ada_make_symbol_completion_list): Update.
7316 (ada_add_standard_exceptions): Update.
7317 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7318 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7319 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7320 * arm-tdep.c (skip_prologue_function): Update.
7321 (arm_skip_stack_protector, arm_skip_stub): Update.
7322 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7323 (arm_wince_skip_main_prologue): Update.
7324 * auxv.c (ld_so_xfer_auxv): Update.
7325 * avr-tdep.c (avr_scan_prologue): Update.
7326 * ax-gdb.c (gen_var_ref): Update.
7327 * block.c (call_site_for_pc): Update.
7328 * blockframe.c (get_pc_function_start): Update.
7329 (find_pc_partial_function_gnu_ifunc): Update.
7330 * breakpoint.c (create_overlay_event_breakpoint): Update.
7331 (create_longjmp_master_breakpoint): Update.
7332 (create_std_terminate_master_breakpoint): Update.
7333 (create_exception_master_breakpoint): Update.
7334 (resolve_sal_pc): Update.
7335 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7336 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7337 Update.
7338 * c-valprint.c (c_val_print): Update.
7339 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7340 * coffread.c (coff_symfile_read): Update.
7341 * common/agent.c (agent_look_up_symbols): Update.
7342 * dbxread.c (find_stab_function_addr): Update.
7343 (end_psymtab): Update.
7344 * dwarf2loc.c (call_site_to_target_addr): Update.
7345 (func_verify_no_selftailcall): Update.
7346 (tailcall_dump): Update.
7347 (call_site_find_chain_1): Update.
7348 (dwarf_expr_reg_to_entry_parameter): Update.
7349 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7350 (elf_gnu_ifunc_resolve_by_got): Update.
7351 * f-valprint.c (info_common_command): Update.
7352 * findvar.c (read_var_value): Update.
7353 * frame.c (get_prev_frame_1): Update.
7354 (inside_main_func): Update.
7355 * frv-tdep.c (frv_skip_main_prologue): Update.
7356 (frv_frame_this_id): Update.
7357 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7358 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7359 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7360 (gnuv3_skip_trampoline): Update.
7361 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7362 (hppa64_hpux_in_solib_call_trampoline): Update.
7363 (hppa_hpux_skip_trampoline_code): Update.
7364 (hppa64_hpux_search_dummy_call_sequence): Update.
7365 (hppa_hpux_find_import_stub_for_addr): Update.
7366 (hppa_hpux_find_dummy_bpaddr): Update.
7367 * hppa-tdep.c (hppa_symbol_address)
7368 (hppa_lookup_stub_minimal_symbol): Update.
7369 * i386-tdep.c (i386_skip_main_prologue): Update.
7370 (i386_pe_skip_trampoline_code): Update.
7371 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7372 * infcall.c (get_function_name): Update.
7373 * infcmd.c (until_next_command): Update.
7374 * jit.c (jit_breakpoint_re_set_internal): Update.
7375 (jit_inferior_init): Update.
7376 * linespec.c (minsym_found): Update.
7377 (add_minsym): Update.
7378 * linux-fork.c (info_checkpoints_command): Update.
7379 * linux-nat.c (get_signo): Update.
7380 * linux-thread-db.c (inferior_has_bug): Update.
7381 * m32c-tdep.c (m32c_return_value): Update.
7382 (m32c_m16c_address_to_pointer): Update.
7383 (m32c_m16c_pointer_to_address): Update.
7384 * m32r-tdep.c (m32r_frame_this_id): Update.
7385 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7386 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7387 * maint.c (maintenance_translate_address): Update.
7388 * minsyms.c (add_minsym_to_hash_table): Update.
7389 (add_minsym_to_demangled_hash_table): Update.
7390 (msymbol_objfile): Update.
7391 (lookup_minimal_symbol): Update.
7392 (iterate_over_minimal_symbols): Update.
7393 (lookup_minimal_symbol_text): Update.
7394 (lookup_minimal_symbol_by_pc_name): Update.
7395 (lookup_minimal_symbol_solib_trampoline): Update.
7396 (lookup_minimal_symbol_by_pc_section_1): Update.
7397 (lookup_minimal_symbol_and_objfile): Update.
7398 (prim_record_minimal_symbol_full): Update.
7399 (compare_minimal_symbols): Update.
7400 (compact_minimal_symbols): Update.
7401 (build_minimal_symbol_hash_tables): Update.
7402 (install_minimal_symbols): Update.
7403 (terminate_minimal_symbol_table): Update.
7404 (find_solib_trampoline_target): Update.
7405 (minimal_symbol_upper_bound): Update.
7406 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7407 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7408 (mips_skip_pic_trampoline_code): Update.
7409 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7410 * objc-lang.c (selectors_info): Update.
7411 (classes_info): Update.
7412 (find_methods): Update.
7413 (find_imps): Update.
7414 (find_objc_msgsend): Update.
7415 * objfiles.c (objfile_relocate1): Update.
7416 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7417 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7418 * p-valprint.c (pascal_val_print): Update.
7419 * parse.c (write_exp_msymbol): Update.
7420 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7421 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7422 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7423 * printcmd.c (build_address_symbolic): Update.
7424 (sym_info): Update.
7425 (address_info): Update.
7426 * proc-service.c (ps_pglobal_lookup): Update.
7427 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7428 (find_pc_sect_psymtab): Update.
7429 * python/py-framefilter.c (py_print_frame): Update.
7430 * ravenscar-thread.c (get_running_thread_id): Update.
7431 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7432 Update.
7433 * remote.c (remote_check_symbols): Update.
7434 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7435 (rs6000_skip_trampoline_code): Update.
7436 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7437 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7438 * solib-dsbt.c (lm_base): Update.
7439 * solib-frv.c (lm_base): Update.
7440 (main_got): Update.
7441 * solib-irix.c (locate_base): Update.
7442 * solib-som.c (som_solib_create_inferior_hook): Update.
7443 (som_solib_desire_dynamic_linker_symbols): Update.
7444 (link_map_start): Update.
7445 * solib-spu.c (spu_enable_break): Update.
7446 (ocl_enable_break): Update.
7447 * solib-svr4.c (elf_locate_base): Update.
7448 (enable_break): Update.
7449 * spu-tdep.c (spu_get_overlay_table): Update.
7450 (spu_catch_start): Update.
7451 (flush_ea_cache): Update.
7452 * stabsread.c (define_symbol): Update.
7453 (scan_file_globals): Update.
7454 * stack.c (find_frame_funname): Update.
7455 (frame_info): Update.
7456 * symfile.c (simple_read_overlay_table): Update.
7457 (simple_overlay_update): Update.
7458 * symmisc.c (dump_msymbols): Update.
7459 * symtab.c (fixup_section): Update.
7460 (find_pc_sect_line): Update.
7461 (skip_prologue_sal): Update.
7462 (search_symbols): Update.
7463 (print_msymbol_info): Update.
7464 (rbreak_command): Update.
7465 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7466 (completion_list_objc_symbol): Update.
7467 (default_make_symbol_completion_list_break_on): Update.
7468 * tracepoint.c (scope_info): Update.
7469 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7470 (tui_get_begin_asm_address): Update.
7471 * valops.c (find_function_in_inferior): Update.
7472 * value.c (value_static_field): Update.
7473 (value_fn_field): Update.
7474
7475 2014-02-26 Tom Tromey <tromey@redhat.com>
7476
7477 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7478 bound minimal symbols. Move code that knows about minsym
7479 table layout...
7480 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7481 function.
7482 * minsyms.h (minimal_symbol_upper_bound): Declare.
7483 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7484 minimal_symbol_upper_bound.
7485
7486 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7487
7488 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7489 Use the type's name if its basic type does not have a tag.
7490
7491 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7492
7493 * dwarf2read.c (read_subrange_type): Add comment.
7494
7495 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7496
7497 * dwarf2read.c (update_enumeration_type_from_children): New
7498 function, mostly extracted from process_structure_scope.
7499 (read_enumeration_type): Call update_enumeration_type_from_children.
7500 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7501 and flag_flag_enum fields.
7502
7503 2014-02-26 Pedro Alves <palves@redhat.com>
7504
7505 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7506 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7507 to_xfer_partial method.
7508
7509 2014-02-26 Pedro Alves <palves@redhat.com>
7510
7511 * target.c (complete_target_initialization): Don't install
7512 default_xfer_partial as to_xfer_partial hook.
7513 (nomemory): Delete.
7514 (update_current_target): Don't INHERIT nor de_fault
7515 deprecated_xfer_memory. Delete de_fault macro.
7516 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7517 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7518 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7519 field.
7520
7521 2014-02-26 Pedro Alves <palves@redhat.com>
7522
7523 * go32-nat.c (my_write_child): New function.
7524 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7525 (go32_xfer_partial): New function.
7526 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7527 Instead install a to_xfer_partial hook.
7528
7529 2014-02-26 Pedro Alves <palves@redhat.com>
7530
7531 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7532 to_xfer_partial helper. Rewrite.
7533 (procfs_xfer_partial): New function.
7534 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7535 Install a to_xfer_partial hook.
7536
7537 2014-02-26 Pedro Alves <palves@redhat.com>
7538
7539 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7540 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7541 (m32r_xfer_partial): New function.
7542 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7543 Install a to_xfer_partial hook.
7544
7545 2014-02-26 Pedro Alves <palves@redhat.com>
7546
7547 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7548 helper.
7549 (mips_xfer_partial): New function.
7550 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7551 hook. Install a to_xfer_partial hook.
7552
7553 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7554
7555 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7556 * gdbtypes.c (create_array_type_with_stride): New function,
7557 renaming create_array_type, but with an added parameter
7558 called "bit_stride".
7559 (create_array_type): Re-implement using
7560 create_array_type_with_stride.
7561 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7562 and DW_AT_bit_stride attributes.
7563
7564 2014-02-26 Pedro Alves <palves@redhat.com>
7565
7566 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7567 task-specific breakpoints.
7568
7569 2014-02-25 Pedro Alves <palves@redhat.com>
7570
7571 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7572 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7573
7574 2014-02-25 Stan Shebs <stan@codesourcery.com>
7575
7576 * defs.h: Annotate comments for Doxygen.
7577
7578 2014-02-25 Tom Tromey <tromey@redhat.com>
7579
7580 * target.h (target_ignore): Don't declare.
7581 * target.c (target_ignore): Remove.
7582
7583 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7584
7585 PR gdb/16626
7586 * auto-load.c (auto_load_objfile_script_1): Change filename to
7587 debugfile.
7588
7589 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7590
7591 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7592 documentation. Adjust prototype to match the target_ops
7593 to_xfer_partial method. Adjust implementation accordingly.
7594
7595 2014-02-25 Hui Zhu <hui@codesourcery.com>
7596
7597 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7598 to_traceframe_info.
7599
7600 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7601
7602 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7603 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7604 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7605 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7606 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7607 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7608 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7609 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7610 New constants.
7611 (rl78_register_type): Use a data pointer type for SP and
7612 new pseudo registers mentioned above. Use a 16 bit integer
7613 type for all other register pairs.
7614 (rl78_register_name, rl78_g10_register_name): Update for
7615 new pseudo registers.
7616 (rl78_pseudo_register_read): Likewise.
7617 (rl78_pseudo_register_write): Likewise.
7618 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7619 to the newly added pseudo registers.
7620
7621 2014-02-24 Doug Evans <dje@google.com>
7622
7623 * value.c (record_latest_value): Fix comment.
7624 * printcmd.c (print_command_1): Remove code to handle -1 return from
7625 record_latest_value.
7626
7627 2014-02-24 Pedro Alves <palves@redhat.com>
7628
7629 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7630 deprecated_xfer_memory hook.
7631 (procfs_xfer_partial): Call procfs_xfer_memory instead
7632 of the deprecated_xfer_memory target hook.
7633 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7634 helper.
7635
7636 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7637
7638 * windows-nat.c (windows_xfer_shared_libraries): Return
7639 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7640 requested object is TARGET_OBJECT_LIBRARIES.
7641
7642 2014-02-24 Yao Qi <yao@codesourcery.com>
7643
7644 * target.h (enum target_xfer_status)
7645 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7646 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7647 explicitly. New.
7648 * corefile.c (memory_error_message): User updated.
7649 * exec.c (section_table_read_available_memory): Likewise.
7650 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7651 * target.c (target_xfer_status_to_string): Likewise.
7652 (raw_memory_xfer_partial): Likewise.
7653 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7654 * valops.c (read_value_memory): Likewise.
7655 * exec.h: Update comments.
7656
7657 2014-02-24 Yao Qi <yao@codesourcery.com>
7658
7659 * target.c (target_xfer_status_to_string): Rename argument err
7660 to status.
7661 * target.h (target_xfer_status_to_string): Update declaration.
7662 Replace target_xfer_error_to_string with
7663 target_xfer_status_to_string in comment.
7664
7665 2014-02-24 Yao Qi <yao@codesourcery.com>
7666
7667 * mips-linux-nat.c (super_close): Update its type.
7668 (mips_linux_close): Pass 'self' to super_close.
7669
7670 2014-02-24 Yao Qi <yao@codesourcery.com>
7671
7672 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7673 * corefile.c (read_memory): Adjusted.
7674 * target.c (target_write_with_progress): Adjusted.
7675
7676 2014-02-23 Yao Qi <yao@codesourcery.com>
7677
7678 Revert two patches:
7679
7680 2013-10-25 Yao Qi <yao@codesourcery.com>
7681
7682 * remote.c (remote_traceframe_info): Return early if
7683 traceframe is not selected.
7684
7685 2013-07-19 Yao Qi <yao@codesourcery.com>
7686
7687 * target.c (update_current_target): Change the default action
7688 of 'to_traceframe_info' from tcomplain to return_zero.
7689 * target.h (struct target_ops) <to_traceframe_info>: Add more
7690 comments.
7691
7692 2014-02-23 Yao Qi <yao@codesourcery.com>
7693
7694 * valops.c (read_value_memory): Rewrite it. Call
7695 target_xfer_partial in a loop.
7696 * exec.h (section_table_available_memory): Remove declaration.
7697 Move comments to ...
7698 * exec.c (section_table_available_memory): ... here. Make it
7699 static.
7700
7701 2014-02-23 Yao Qi <yao@codesourcery.com>
7702
7703 * exec.c (section_table_read_available_memory): New function.
7704 * exec.h (section_table_read_available_memory): Declare.
7705 * ctf.c (ctf_xfer_partial): Call
7706 section_table_read_available_memory.
7707 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7708
7709 2014-02-23 Yao Qi <yao@codesourcery.com>
7710
7711 * ctf.c (ctf_xfer_partial): Move code to ...
7712 * exec.c (exec_read_partial_read_only): ... it. New function.
7713 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7714 * tracefile.c: Include "exec.h".
7715 * exec.h (exec_read_partial_read_only): Declare.
7716
7717 2014-02-23 Yao Qi <yao@codesourcery.com>
7718
7719 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7720 (tfile_has_memory): Remove.
7721 (init_tfile_ops): Don't set fields to_has_all_memory and
7722 to_has_memory of tfile_ops.
7723 * tracefile.c (tracefile_has_all_memory): New function.
7724 (tracefile_has_memory): New function.
7725 (init_tracefile_ops): Initialize fields to_has_all_memory and
7726 to_has_memory of 'ops'.
7727
7728 2014-02-23 Yao Qi <yao@codesourcery.com>
7729
7730 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7731 (ctf_thread_alive, ctf_get_trace_status): Remove.
7732 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7733 init_tracefile_ops.
7734 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7735 (tfile_has_stack, tfile_has_registers): Remove.
7736 (tfile_thread_alive): Remove.
7737 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7738 init_tracefile_ops.
7739 * tracefile.c (tracefile_has_stack): New function.
7740 (tracefile_has_registers): New function.
7741 (tracefile_thread_alive): New function.
7742 (tracefile_get_trace_status): New function.
7743 (init_tracefile_ops): New function.
7744 * tracefile.h (init_tracefile_ops): Declare.
7745
7746 2014-02-23 Yao Qi <yao@codesourcery.com>
7747
7748 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7749 (O_LARGEFILE): Likewise.
7750 (tfile_ops): Likewise.
7751 (TRACE_HEADER_SIZE): Likewise.
7752 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7753 (cur_data_size): Likewise.
7754 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7755 (tfile_close, tfile_files_info): Likewise.
7756 (tfile_get_trace_status): Likewise.
7757 (tfile_get_tracepoint_status): Likewise.
7758 (tfile_get_traceframe_address): Likewise.
7759 (tfile_trace_find, match_blocktype): Likewise.
7760 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7761 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7762 (tfile_get_trace_state_variable_value): Likewise.
7763 (tfile_has_all_memory, tfile_has_memory): Likewise.
7764 (tfile_has_stack, tfile_has_registers): Likewise.
7765 (tfile_thread_alive, build_traceframe_info): Likewise.
7766 (tfile_traceframe_info, init_tfile_ops): Likewise.
7767 (_initialize_tracepoint): Don't call init_tfile_ops
7768 and add_target_with_completer.
7769 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7770 exec.h, completer.h and filenames.h.
7771 (_initialize_tracefile_tfile): New function.
7772
7773 2014-02-23 Yao Qi <yao@codesourcery.com>
7774
7775 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7776 tracefile-tfile.o.
7777 (HFILES_NO_SRCDIR): Add tracefile.h.
7778 * ctf.c: Include "tracefile.h".
7779 * tracefile.h: New file.
7780 * tracefile.c: New file
7781 * tracefile-tfile.c: New file.
7782 * tracepoint.c: Include "tracefile.h".
7783 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7784 (stop_reason_names): Add const.
7785 (trace_file_writer_xfree): Move it to tracefile.c.
7786 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7787 (trace_save_ctf): Likewise.
7788 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7789 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7790 (tfile_write_header, tfile_write_regblock_type): Likewise.
7791 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7792 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7793 (tfile_write_raw_data, tfile_end): Likewise.
7794 (tfile_trace_file_writer_new): Likewise.
7795 (free_uploaded_tp): Make it extern.
7796 (free_uploaded_tsv): Make it extern.
7797 (_initialize_tracepoint): Move code to register command 'tsave'
7798 to tracefile.c.
7799 * tracepoint.h (stop_reason_names): Declare.
7800 (struct trace_frame_write_ops): Move it to tracefile.h.
7801 (struct trace_file_write_ops): Likewise.
7802 (struct trace_file_writer): Likewise.
7803 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7804
7805 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7806
7807 PR gdb/16594
7808 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7809 process name.
7810 (get_cores_used_by_process): New parameter num_cores, use it.
7811 (linux_xfer_osdata_processes): Pass num_cores to it.
7812 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7813 process name.
7814
7815 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7816
7817 * target.c (memory_xfer_partial): Fix length arg in call to
7818 breakpoint_xfer_memory.
7819
7820 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7821
7822 PR tdep/16397
7823 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7824 number comes after the + or - signs. Adjust length of register
7825 name to be extracted.
7826
7827 2014-02-20 Tom Tromey <tromey@redhat.com>
7828
7829 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7830 (ada_varobj_ops): Mark "extern".
7831
7832 2014-02-20 Tom Tromey <tromey@redhat.com>
7833
7834 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7835
7836 2014-02-20 Doug Evans <xdje42@gmail.com>
7837
7838 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7839 All callers updated.
7840 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7841 All callers updated.
7842 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7843 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7844
7845 2014-02-20 lin zuojian <manjian2006@gmail.com>
7846 Joel Brobecker <brobecker@adacore.com>
7847 Doug Evans <xdje42@gmail.com>
7848
7849 PR symtab/16581
7850 * dwarf2read.c (struct die_info): New member in_process.
7851 (reset_die_in_process): New function.
7852 (process_die): Set it at the start, reset when returning.
7853 (inherit_abstract_dies): Only call process_die if origin_child_die
7854 not already being processed.
7855
7856 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7857
7858 * windows-nat.c (handle_unload_dll): Add function documentation.
7859 (do_initial_windows_stuff): Add comment explaining why we wait
7860 until after inferior initialization has finished before
7861 processing all DLLs.
7862
7863 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7864
7865 * windows-nat.c (get_module_name): Delete.
7866 (windows_get_exec_module_filename): New function, mostly
7867 inspired from get_module_name.
7868 (windows_pid_to_exec_file): Replace call to get_module_name
7869 by call to windows_get_exec_module_filename.
7870
7871 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7872
7873 * windows-nat.c (handle_load_dll): Rewrite this function's
7874 introductory comment. Remove code using get_module_name
7875 to get the DLL's name.
7876
7877 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7878
7879 * windows-nat.c (get_windows_debug_event): Ignore
7880 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7881 if windows_initialization_done == 0.
7882 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7883 Adjust implementation to always load all DLLs.
7884 (do_initial_windows_stuff): Replace call to
7885 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7886
7887 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7888
7889 * windows-nat.c (_initialize_windows_nat): Deprecate the
7890 "dll-symbols" command. Turn the "add-shared-symbol-files"
7891 and "assf" aliases into commands, and deprecate them as well.
7892 * NEWS: Add entry explaining that "dll-symbols" and its two
7893 aliases are now deprecated.
7894
7895 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7896
7897 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7898 new-line in debug string. Remove trailing spaces.
7899
7900 2014-02-19 Stan Shebs <stan@codesourcery.com>
7901
7902 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7903
7904 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7905
7906 * NEWS: Add entry for the new feature
7907 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7908 and class values.
7909
7910 2014-02-19 Stan Shebs <stan@codesourcery.com>
7911
7912 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7913
7914 2014-02-19 Pedro Alves <palves@redhat.com>
7915
7916 * common/ptid.h (struct ptid): Mention that process_stratum
7917 targets should prefer ptid.lwp.
7918
7919 2014-02-19 Pedro Alves <palves@redhat.com>
7920
7921 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7922 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7923 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7924 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7925 store remote thread ids rather than ptid.tid.
7926 (_initialize_remote): Adjust.
7927
7928 2014-02-19 Tom Tromey <tromey@redhat.com>
7929
7930 * target.c (target_get_unwinder): Rewrite.
7931 (target_get_tailcall_unwinder): Rewrite.
7932 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7933 (record_btrace_to_get_tailcall_unwinder): New function.
7934 (init_record_btrace_ops): Update.
7935 * target.h (struct target_ops) <to_get_unwinder,
7936 to_get_tailcall_unwinder>: Now function pointers. Use
7937 TARGET_DEFAULT_RETURN.
7938
7939 2014-02-19 Tom Tromey <tromey@redhat.com>
7940
7941 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7942 argument.
7943 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7944
7945 2014-02-19 Tom Tromey <tromey@redhat.com>
7946
7947 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7948 directly.
7949 * target-delegates.c: Rebuild.
7950 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7951 TARGET_DEFAULT_FUNC.
7952 * target.c (default_target_decr_pc_after_break): Rename from
7953 forward_target_decr_pc_after_break. Simplify.
7954 (target_decr_pc_after_break): Rely on delegation.
7955
7956 2014-02-19 Tom Tromey <tromey@redhat.com>
7957
7958 * target.c (update_current_target): Do not INHERIT to_doc or
7959 to_magic. Do not de_fault to_open or to_close.
7960
7961 2014-02-19 Tom Tromey <tromey@redhat.com>
7962
7963 * gcore.h (objfile_find_memory_regions): Declare.
7964 * gcore.c (objfile_find_memory_regions): No longer static. Add
7965 "self" argument.
7966 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7967 * exec.c: Include gcore.h.
7968 (exec_set_find_memory_regions): Remove.
7969 (exec_find_memory_regions): Remove.
7970 (exec_do_find_memory_regions): Remove.
7971 (init_exec_ops): Update.
7972 * defs.h (exec_set_find_memory_regions): Remove.
7973
7974 2014-02-19 Tom Tromey <tromey@redhat.com>
7975
7976 * target-delegates.c: Rebuild.
7977 * target.h (struct target_ops) <to_extra_thread_info,
7978 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7979 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7980 not 0, in TARGET_DEFAULT_RETURN.
7981
7982 2014-02-19 Tom Tromey <tromey@redhat.com>
7983
7984 * target.c (complete_target_initialization): Remove casts. Use
7985 return_zero_has_execution.
7986 (return_zero): Add "ignore" argument.
7987 (return_zero_has_execution): New function.
7988 (init_dummy_target): Remove casts. Use
7989 return_zero_has_execution.
7990
7991 2014-02-19 Tom Tromey <tromey@redhat.com>
7992
7993 * target.c (update_current_target): Update comments. Do not
7994 INHERIT to_stratum.
7995
7996 2014-02-19 Tom Tromey <tromey@redhat.com>
7997
7998 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7999 needed.
8000 * corelow.c (core_read_description): Delegate when needed.
8001 * remote.c (remote_read_description): Delegate when needed.
8002 * target-delegates.c: Rebuild.
8003 * target.c (target_read_description): Rewrite.
8004 * target.h (struct target_ops) <to_read_description>: Update
8005 comment. Use TARGET_DEFAULT_RETURN.
8006
8007 2014-02-19 Tom Tromey <tromey@redhat.com>
8008
8009 * target-delegates.c: Rebuild.
8010 * target.c (update_current_target): Don't inherit or default
8011 to_can_run.
8012 (find_default_run_target): Check against delegate_can_run.
8013 * target.h (struct target_ops) <to_can_run>: Use
8014 TARGET_DEFAULT_RETURN.
8015
8016 2014-02-19 Tom Tromey <tromey@redhat.com>
8017
8018 * target-delegates.c: Rebuild.
8019 * target.c (target_disconnect): Unconditionally delegate.
8020 * target.h (struct target_ops) <to_disconnect>: Use
8021 TARGET_DEFAULT_NORETURN.
8022
8023 2014-02-19 Tom Tromey <tromey@redhat.com>
8024
8025 * record.c (record_stop): Unconditionally delegate.
8026 * target-delegates.c: Rebuild.
8027 * target.c (target_stop_recording): Unconditionally delegate.
8028 * target.h (struct target_ops) <to_stop_recording>: Use
8029 TARGET_DEFAULT_IGNORE.
8030
8031 2014-02-19 Tom Tromey <tromey@redhat.com>
8032
8033 * target-delegates.c: Rebuild.
8034 * target.c (target_enable_btrace): Unconditionally delegate.
8035 * target.h (struct target_ops) <to_enable_btrace>: Use
8036 TARGET_DEFAULT_NORETURN.
8037
8038 2014-02-19 Tom Tromey <tromey@redhat.com>
8039
8040 * target-delegates.c: Rebuild.
8041 * target.c (target_read_btrace): Unconditionally delegate.
8042 * target.h (struct target_ops) <to_read_btrace>: Use
8043 TARGET_DEFAULT_NORETURN.
8044
8045 2014-02-19 Tom Tromey <tromey@redhat.com>
8046
8047 * target-delegates.c: Rebuild.
8048 * target.c (target_teardown_btrace): Unconditionally delegate.
8049 * target.h (struct target_ops) <to_teardown_btrace>: Use
8050 TARGET_DEFAULT_NORETURN.
8051
8052 2014-02-19 Tom Tromey <tromey@redhat.com>
8053
8054 * target-delegates.c: Rebuild.
8055 * target.c (target_disable_btrace): Unconditionally delegate.
8056 * target.h (struct target_ops) <to_disable_btrace>: Use
8057 TARGET_DEFAULT_NORETURN.
8058
8059 2014-02-19 Tom Tromey <tromey@redhat.com>
8060
8061 * target-delegates.c: Rebuild.
8062 * target.c (default_search_memory): New function.
8063 (simple_search_memory): Update comment.
8064 (target_search_memory): Unconditionally delegate.
8065 * target.h (struct target_ops) <to_search_memory>: Use
8066 TARGET_DEFAULT_FUNC.
8067
8068 2014-02-19 Tom Tromey <tromey@redhat.com>
8069
8070 * auxv.c (default_auxv_parse): No longer static.
8071 (target_auxv_parse): Unconditionally delegate.
8072 * auxv.h (default_auxv_parse): Declare.
8073 * target-delegates.c: Rebuild.
8074 * target.c: Include auxv.h.
8075 * target.h (struct target_ops) <to_auxv_parse>: Use
8076 TARGET_DEFAULT_FUNC.
8077
8078 2014-02-19 Tom Tromey <tromey@redhat.com>
8079
8080 * target-delegates.c: Rebuild.
8081 * target.c (target_memory_map): Unconditionally delegate.
8082 * target.h (struct target_ops) <to_memory_map>: Use
8083 TARGET_DEFAULT_RETURN.
8084
8085 2014-02-19 Tom Tromey <tromey@redhat.com>
8086
8087 * target-delegates.c: Rebuild.
8088 * target.c (target_thread_alive): Unconditionally delegate.
8089 * target.h (struct target_ops) <to_thread_alive>: Use
8090 TARGET_DEFAULT_RETURN.
8091
8092 2014-02-19 Tom Tromey <tromey@redhat.com>
8093
8094 * target-delegates.c: Rebuild.
8095 * target.c (target_save_record): Unconditionally delegate.
8096 * target.h (struct target_ops) <to_save_record>: Use
8097 TARGET_DEFAULT_NORETURN.
8098
8099 2014-02-19 Tom Tromey <tromey@redhat.com>
8100
8101 * target-delegates.c: Rebuild.
8102 * target.c (target_delete_record): Unconditionally delegate.
8103 * target.h (struct target_ops) <to_delete_record>: Use
8104 TARGET_DEFAULT_NORETURN.
8105
8106 2014-02-19 Tom Tromey <tromey@redhat.com>
8107
8108 * target-delegates.c: Rebuild.
8109 * target.c (target_record_is_replaying): Unconditionally
8110 delegate.
8111 * target.h (struct target_ops) <to_record_is_replaying>: Use
8112 TARGET_DEFAULT_RETURN.
8113
8114 2014-02-19 Tom Tromey <tromey@redhat.com>
8115
8116 * target-delegates.c: Rebuild.
8117 * target.c (target_goto_record_begin): Unconditionally delegate.
8118 * target.h (struct target_ops) <to_goto_record_begin>: Use
8119 TARGET_DEFAULT_NORETURN.
8120
8121 2014-02-19 Tom Tromey <tromey@redhat.com>
8122
8123 * target-delegates.c: Rebuild.
8124 * target.c (target_goto_record_end): Unconditionally delegate.
8125 * target.h (struct target_ops) <to_goto_record_end>: Use
8126 TARGET_DEFAULT_NORETURN.
8127
8128 2014-02-19 Tom Tromey <tromey@redhat.com>
8129
8130 * target-delegates.c: Rebuild.
8131 * target.c (target_goto_record): Unconditionally delegate.
8132 * target.h (struct target_ops) <to_goto_record>: Use
8133 TARGET_DEFAULT_NORETURN.
8134
8135 2014-02-19 Tom Tromey <tromey@redhat.com>
8136
8137 * target-delegates.c: Rebuild.
8138 * target.c (target_insn_history): Unconditionally delegate.
8139 * target.h (struct target_ops) <to_insn_history>: Use
8140 TARGET_DEFAULT_NORETURN.
8141
8142 2014-02-19 Tom Tromey <tromey@redhat.com>
8143
8144 * target-delegates.c: Rebuild.
8145 * target.c (target_insn_history_from): Unconditionally delegate.
8146 * target.h (struct target_ops) <to_insn_history_from>: Use
8147 TARGET_DEFAULT_NORETURN.
8148
8149 2014-02-19 Tom Tromey <tromey@redhat.com>
8150
8151 * target-delegates.c: Rebuild.
8152 * target.c (target_insn_history_range): Unconditionally delegate.
8153 * target.h (struct target_ops) <to_insn_history_range>: Use
8154 TARGET_DEFAULT_NORETURN.
8155
8156 2014-02-19 Tom Tromey <tromey@redhat.com>
8157
8158 * target-delegates.c: Rebuild.
8159 * target.c (target_call_history): Unconditionally delegate.
8160 * target.h (struct target_ops) <to_call_history>: Use
8161 TARGET_DEFAULT_NORETURN.
8162
8163 2014-02-19 Tom Tromey <tromey@redhat.com>
8164
8165 * target-delegates.c: Rebuild.
8166 * target.c (target_call_history_from): Unconditionally delegate.
8167 * target.h (struct target_ops) <to_call_history_from>: Use
8168 TARGET_DEFAULT_NORETURN.
8169
8170 2014-02-19 Tom Tromey <tromey@redhat.com>
8171
8172 * target-delegates.c: Rebuild.
8173 * target.c (target_call_history_range): Unconditionally delegate.
8174 * target.h (struct target_ops) <to_call_history_range>: Use
8175 TARGET_DEFAULT_NORETURN.
8176
8177 2014-02-19 Tom Tromey <tromey@redhat.com>
8178
8179 * target-delegates.c: Rebuild.
8180 * target.c (target_verify_memory): Unconditionally delegate.
8181 * target.h (struct target_ops) <to_verify_memory>: Use
8182 TARGET_DEFAULT_NORETURN.
8183
8184 2014-02-19 Tom Tromey <tromey@redhat.com>
8185
8186 * target-delegates.c: Rebuild.
8187 * target.c (target_core_of_thread): Unconditionally delegate.
8188 * target.h (struct target_ops) <to_core_of_thread>: Use
8189 TARGET_DEFAULT_RETURN.
8190
8191 2014-02-19 Tom Tromey <tromey@redhat.com>
8192
8193 * target-delegates.c: Rebuild.
8194 * target.c (target_flash_done): Unconditionally delegate.
8195 * target.h (struct target_ops) <to_flash_done>: Use
8196 TARGET_DEFAULT_NORETURN.
8197
8198 2014-02-19 Tom Tromey <tromey@redhat.com>
8199
8200 * target-delegates.c: Rebuild.
8201 * target.c (target_flash_erase): Unconditionally delegate.
8202 * target.h (struct target_ops) <to_flash_erase>: Use
8203 TARGET_DEFAULT_NORETURN.
8204
8205 2014-02-19 Tom Tromey <tromey@redhat.com>
8206
8207 * target-delegates.c: Rebuild.
8208 * target.c (target_get_section_table): Unconditionally delegate.
8209 * target.h (struct target_ops) <to_get_section_table>: Use
8210 TARGET_DEFAULT_RETURN.
8211
8212 2014-02-19 Tom Tromey <tromey@redhat.com>
8213
8214 * target-delegates.c: Rebuild.
8215 * target.c (target_pid_to_str): Unconditionally delegate.
8216 (init_dummy_target): Don't initialize to_pid_to_str.
8217 (default_pid_to_str): Rename from dummy_pid_to_str.
8218 * target.h (struct target_ops) <to_pid_to_str>: Use
8219 TARGET_DEFAULT_FUNC.
8220
8221 2014-02-19 Tom Tromey <tromey@redhat.com>
8222
8223 * target-delegates.c: Rebuild.
8224 * target.c (target_find_new_threads): Unconditionally delegate.
8225 * target.h (struct target_ops) <to_find_new_threads>: Use
8226 TARGET_DEFAULT_RETURN.
8227
8228 2014-02-19 Tom Tromey <tromey@redhat.com>
8229
8230 * target-delegates.c: Rebuild.
8231 * target.c (target_program_signals): Unconditionally delegate.
8232 * target.h (struct target_ops) <to_program_signals>: Use
8233 TARGET_DEFAULT_IGNORE.
8234
8235 2014-02-19 Tom Tromey <tromey@redhat.com>
8236
8237 * target-delegates.c: Rebuild.
8238 * target.c (target_pass_signals): Unconditionally delegate.
8239 * target.h (struct target_ops) <to_pass_signals>: Use
8240 TARGET_DEFAULT_IGNORE.
8241
8242 2014-02-19 Tom Tromey <tromey@redhat.com>
8243
8244 * target-delegates.c: Rebuild.
8245 * target.c (default_mourn_inferior): New function.
8246 (target_mourn_inferior): Unconditionally delegate.
8247 * target.h (struct target_ops) <to_mourn_inferior>: Use
8248 TARGET_DEFAULT_FUNC.
8249
8250 2014-02-19 Tom Tromey <tromey@redhat.com>
8251
8252 * target-delegates.c: Rebuild.
8253 * target.c (default_follow_fork): New function.
8254 (target_follow_fork): Unconditionally delegate.
8255 * target.h (struct target_ops) <to_follow_fork>: Use
8256 TARGET_DEFAULT_FUNC.
8257
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8259
8260 * target-delegates.c: Rebuild.
8261 * target.c (target_kill): Unconditionally delegate.
8262 * target.h (struct target_ops) <to_kill>: Use
8263 TARGET_DEFAULT_NORETURN.
8264
8265 2014-02-19 Tom Tromey <tromey@redhat.com>
8266
8267 * target-delegates.c: Rebuild.
8268 * target.c (target_masked_watch_num_registers): Unconditionally
8269 delegate.
8270 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8271 Use TARGET_DEFAULT_RETURN.
8272
8273 2014-02-19 Tom Tromey <tromey@redhat.com>
8274
8275 * target-delegates.c: Rebuild.
8276 * target.c (target_remove_mask_watchpoint): Unconditionally
8277 delegate.
8278 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8279 TARGET_DEFAULT_RETURN.
8280
8281 2014-02-19 Tom Tromey <tromey@redhat.com>
8282
8283 * target-delegates.c: Rebuild.
8284 * target.c (target_insert_mask_watchpoint): Unconditionally
8285 delegate.
8286 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8287 TARGET_DEFAULT_RETURN.
8288
8289 2014-02-19 Tom Tromey <tromey@redhat.com>
8290
8291 * target-delegates.c: Rebuild.
8292 * target.c (target_ranged_break_num_registers): Unconditionally
8293 delegate.
8294 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8295 Use TARGET_DEFAULT_RETURN.
8296
8297 2014-02-19 Tom Tromey <tromey@redhat.com>
8298
8299 * target-delegates.c: Rebuild.
8300 * target.c (target_fetch_registers): Unconditionally delegate.
8301 * target.h (struct target_ops) <to_fetch_registers>: Use
8302 TARGET_DEFAULT_NORETURN.
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_stop.
8309 * target.h (struct target_ops) <to_stop>: Use
8310 TARGET_DEFAULT_IGNORE.
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_can_run_breakpoint_commands.
8317 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8318 Use TARGET_DEFAULT_RETURN.
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_supports_evaluation_of_breakpoint_conditions.
8325 * target.h (struct target_ops)
8326 <to_supports_evaluation_of_breakpoint_conditions>: 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_augmented_libraries_svr4_read.
8334 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8335 Use TARGET_DEFAULT_RETURN.
8336
8337 2014-02-19 Tom Tromey <tromey@redhat.com>
8338
8339 * target-delegates.c: Rebuild.
8340 * target.c (update_current_target): Don't inherit or default
8341 to_can_use_agent.
8342 * target.h (struct target_ops) <to_can_use_agent>: Use
8343 TARGET_DEFAULT_RETURN.
8344
8345 2014-02-19 Tom Tromey <tromey@redhat.com>
8346
8347 * target-delegates.c: Rebuild.
8348 * target.c (update_current_target): Don't inherit or default
8349 to_use_agent.
8350 * target.h (struct target_ops) <to_use_agent>: Use
8351 TARGET_DEFAULT_NORETURN.
8352
8353 2014-02-19 Tom Tromey <tromey@redhat.com>
8354
8355 * target-delegates.c: Rebuild.
8356 * target.c (update_current_target): Don't inherit or default
8357 to_traceframe_info.
8358 (return_null): Remove.
8359 * target.h (struct target_ops) <to_traceframe_info>: Use
8360 TARGET_DEFAULT_RETURN.
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_static_tracepoint_markers_by_strid.
8367 * target.h (struct target_ops)
8368 <to_static_tracepoint_markers_by_strid>: Use
8369 TARGET_DEFAULT_NORETURN.
8370
8371 2014-02-19 Tom Tromey <tromey@redhat.com>
8372
8373 * target-delegates.c: Rebuild.
8374 * target.c (update_current_target): Don't inherit or default
8375 to_static_tracepoint_marker_at.
8376 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8377 Use TARGET_DEFAULT_RETURN.
8378
8379 2014-02-19 Tom Tromey <tromey@redhat.com>
8380
8381 * target-delegates.c: Rebuild.
8382 * target.c (update_current_target): Don't inherit or default
8383 to_set_permissions.
8384 * target.h (struct target_ops) <to_set_permissions>: Use
8385 TARGET_DEFAULT_IGNORE.
8386
8387 2014-02-19 Tom Tromey <tromey@redhat.com>
8388
8389 * target-delegates.c: Rebuild.
8390 * target.c (update_current_target): Don't inherit or default
8391 to_get_tib_address.
8392 * target.h (struct target_ops) <to_get_tib_address>: Use
8393 TARGET_DEFAULT_NORETURN.
8394
8395 2014-02-19 Tom Tromey <tromey@redhat.com>
8396
8397 * target-delegates.c: Rebuild.
8398 * target.c (update_current_target): Don't inherit or default
8399 to_set_trace_notes.
8400 * target.h (struct target_ops) <to_set_trace_notes>: Use
8401 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 initialize
8407 to_set_trace_buffer_size.
8408 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8409 TARGET_DEFAULT_IGNORE.
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_set_circular_trace_buffer.
8416 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8417 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
8424 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8425 TARGET_DEFAULT_IGNORE.
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_get_min_fast_tracepoint_insn_len.
8432 (return_minus_one): Remove.
8433 * target.h (struct target_ops)
8434 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8435
8436 2014-02-19 Tom Tromey <tromey@redhat.com>
8437
8438 * target-delegates.c: Rebuild.
8439 * target.c (update_current_target): Don't inherit or default
8440 to_get_raw_trace_data.
8441 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8442 TARGET_DEFAULT_NORETURN.
8443
8444 2014-02-19 Tom Tromey <tromey@redhat.com>
8445
8446 * target-delegates.c: Rebuild.
8447 * target.c (update_current_target): Don't inherit or default
8448 to_upload_trace_state_variables.
8449 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8450 Use TARGET_DEFAULT_RETURN.
8451
8452 2014-02-19 Tom Tromey <tromey@redhat.com>
8453
8454 * target-delegates.c: Rebuild.
8455 * target.c (update_current_target): Don't inherit or default
8456 to_upload_tracepoints.
8457 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8458 TARGET_DEFAULT_RETURN.
8459
8460 2014-02-19 Tom Tromey <tromey@redhat.com>
8461
8462 * target-delegates.c: Rebuild.
8463 * target.c (update_current_target): Don't inherit or default
8464 to_save_trace_data.
8465 * target.h (struct target_ops) <to_save_trace_data>: Use
8466 TARGET_DEFAULT_NORETURN.
8467
8468 2014-02-19 Tom Tromey <tromey@redhat.com>
8469
8470 * target-delegates.c: Rebuild.
8471 * target.c (update_current_target): Don't inherit or default
8472 to_get_trace_state_variable_value.
8473 * target.h (struct target_ops)
8474 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8475
8476 2014-02-19 Tom Tromey <tromey@redhat.com>
8477
8478 * target-delegates.c: Rebuild.
8479 * target.c (update_current_target): Don't inherit or default
8480 to_trace_find.
8481 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8482
8483 2014-02-19 Tom Tromey <tromey@redhat.com>
8484
8485 * target-delegates.c: Rebuild.
8486 * target.c (update_current_target): Don't inherit or default
8487 to_trace_stop.
8488 * target.h (struct target_ops) <to_trace_stop>: Use
8489 TARGET_DEFAULT_NORETURN.
8490
8491 2014-02-19 Tom Tromey <tromey@redhat.com>
8492
8493 * target-delegates.c: Rebuild.
8494 * target.c (update_current_target): Don't inherit or default
8495 to_get_tracepoint_status.
8496 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8497 TARGET_DEFAULT_NORETURN.
8498
8499 2014-02-19 Tom Tromey <tromey@redhat.com>
8500
8501 * target-delegates.c: Rebuild.
8502 * target.c (update_current_target): Don't inherit or default
8503 to_get_trace_status.
8504 * target.h (struct target_ops) <to_get_trace_status>: Use
8505 TARGET_DEFAULT_RETURN.
8506
8507 2014-02-19 Tom Tromey <tromey@redhat.com>
8508
8509 * target-delegates.c: Rebuild.
8510 * target.c (update_current_target): Don't inherit or default
8511 to_trace_start.
8512 * target.h (struct target_ops) <to_trace_start>: Use
8513 TARGET_DEFAULT_NORETURN.
8514
8515 2014-02-19 Tom Tromey <tromey@redhat.com>
8516
8517 * target-delegates.c: Rebuild.
8518 * target.c (update_current_target): Don't inherit or default
8519 to_trace_set_readonly_regions.
8520 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8521 Use TARGET_DEFAULT_NORETURN.
8522
8523 2014-02-19 Tom Tromey <tromey@redhat.com>
8524
8525 * target-delegates.c: Rebuild.
8526 * target.c (update_current_target): Don't inherit or default
8527 to_disable_tracepoint.
8528 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8529 TARGET_DEFAULT_NORETURN.
8530
8531 2014-02-19 Tom Tromey <tromey@redhat.com>
8532
8533 * target-delegates.c: Rebuild.
8534 * target.c (update_current_target): Don't inherit or default
8535 to_enable_tracepoint.
8536 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8537 TARGET_DEFAULT_NORETURN.
8538
8539 2014-02-19 Tom Tromey <tromey@redhat.com>
8540
8541 * target-delegates.c: Rebuild.
8542 * target.c (update_current_target): Don't inherit or default
8543 to_download_trace_state_variable.
8544 * target.h (struct target_ops) <to_download_trace_state_variable>:
8545 Use TARGET_DEFAULT_NORETURN.
8546
8547 2014-02-19 Tom Tromey <tromey@redhat.com>
8548
8549 * target-delegates.c: Rebuild.
8550 * target.c (update_current_target): Don't inherit or default
8551 to_can_download_tracepoint.
8552 * target.h (struct target_ops) <to_can_download_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_download_tracepoint.
8560 * target.h (struct target_ops) <to_download_tracepoint>: Use
8561 TARGET_DEFAULT_NORETURN.
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_trace_init.
8568 * target.h (struct target_ops) <to_trace_init>: Use
8569 TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
8576 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8577 TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
8584 * target.h (struct target_ops)
8585 <to_supports_enable_disable_tracepoint>: Use
8586 TARGET_DEFAULT_RETURN.
8587
8588 2014-02-19 Tom Tromey <tromey@redhat.com>
8589
8590 * target-delegates.c: Rebuild.
8591 * target.c (update_current_target): Don't inherit or default
8592 to_supports_multi_process.
8593 * target.h (struct target_ops) <to_supports_multi_process>: Use
8594 TARGET_DEFAULT_RETURN.
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_get_ada_task_ptid.
8601 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8602 TARGET_DEFAULT_FUNC.
8603
8604 2014-02-19 Tom Tromey <tromey@redhat.com>
8605
8606 * target-delegates.c: Rebuild.
8607 * target.c (update_current_target): Don't inherit or default
8608 to_thread_architecture.
8609 * target.h (struct target_ops) <to_thread_architecture>: Use
8610 TARGET_DEFAULT_FUNC.
8611
8612 2014-02-19 Tom Tromey <tromey@redhat.com>
8613
8614 * target-delegates.c: Rebuild.
8615 * target.c (update_current_target): Don't inherit or default
8616 to_execution_direction.
8617 * target.h (struct target_ops) <to_execution_direction>: Use
8618 TARGET_DEFAULT_FUNC.
8619
8620 2014-02-19 Tom Tromey <tromey@redhat.com>
8621
8622 * target-delegates.c: Rebuild.
8623 * target.c (update_current_target): Don't inherit or default
8624 to_can_execute_reverse.
8625 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8626 TARGET_DEFAULT_RETURN.
8627 (target_can_execute_reverse): Unconditionally delegate.
8628
8629 2014-02-19 Tom Tromey <tromey@redhat.com>
8630
8631 * target-delegates.c: Rebuild.
8632 * target.c (update_current_target): Don't inherit or default
8633 to_goto_bookmark.
8634 (dummy_goto_bookmark): Remove.
8635 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8636 * target.h (struct target_ops) <to_goto_bookmark>: Use
8637 TARGET_DEFAULT_NORETURN.
8638
8639 2014-02-19 Tom Tromey <tromey@redhat.com>
8640
8641 * target-delegates.c: Rebuild.
8642 * target.c (update_current_target): Don't inherit or default
8643 to_get_bookmark.
8644 (dummy_get_bookmark): Remove.
8645 (init_dummy_target): Don't inherit or default to_get_bookmark.
8646 * target.h (struct target_ops) <to_get_bookmark>: Use
8647 TARGET_DEFAULT_NORETURN
8648
8649 2014-02-19 Tom Tromey <tromey@redhat.com>
8650
8651 * target-delegates.c: Rebuild.
8652 * target.c (update_current_target): Don't inherit or default
8653 to_make_corefile_notes.
8654 (init_dummy_target): Don't initialize to_make_corefile_notes.
8655 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8656 TARGET_DEFAULT_FUNC.
8657
8658 2014-02-19 Tom Tromey <tromey@redhat.com>
8659
8660 * target-delegates.c: Rebuild.
8661 * target.c (update_current_target): Don't inherit or default
8662 to_find_memory_regions.
8663 (init_dummy_target): Don't initialize to_find_memory_regions.
8664 * target.h (struct target_ops) <to_find_memory_regions>: Use
8665 TARGET_DEFAULT_FUNC.
8666
8667 2014-02-19 Tom Tromey <tromey@redhat.com>
8668
8669 * target-delegates.c: Rebuild.
8670 * target.c (update_current_target): Don't inherit or default
8671 to_log_command.
8672 * target.h (struct target_ops) <to_log_command>: Use
8673 TARGET_DEFAULT_IGNORE.
8674 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
8681 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8682 TARGET_DEFAULT_RETURN.
8683
8684 2014-02-19 Tom Tromey <tromey@redhat.com>
8685
8686 * target-delegates.c: Rebuild.
8687 * target.c (update_current_target): Don't inherit or default
8688 to_thread_name.
8689 (target_thread_name): Unconditionally delegate.
8690 * target.h (struct target_ops) <to_thread_name>: Use
8691 TARGET_DEFAULT_RETURN.
8692
8693 2014-02-19 Tom Tromey <tromey@redhat.com>
8694
8695 * target-delegates.c: Rebuild.
8696 * target.c (update_current_target): Don't inherit or default
8697 to_extra_thread_info.
8698 * target.h (struct target_ops) <to_extra_thread_info>: 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_has_exited.
8706 * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
8714 (return_one): Remove.
8715 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8716 TARGET_DEFAULT_RETURN.
8717
8718 2014-02-19 Tom Tromey <tromey@redhat.com>
8719
8720 * target-delegates.c: Rebuild.
8721 * target.c (update_current_target): Don't inherit or default
8722 to_insert_exec_catchpoint.
8723 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8724 TARGET_DEFAULT_RETURN.
8725
8726 2014-01-08 Tom Tromey <tromey@redhat.com>
8727
8728 * target-delegates.c: Rebuild.
8729 * target.c (update_current_target): Don't inherit or default
8730 to_insert_exec_catchpoint.
8731 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8732 TARGET_DEFAULT_RETURN.
8733
8734 2014-02-19 Tom Tromey <tromey@redhat.com>
8735
8736 * target-delegates.c: Rebuild.
8737 * target.c (update_current_target): Don't inherit or default
8738 to_remove_vfork_catchpoint.
8739 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8740 TARGET_DEFAULT_RETURN.
8741
8742 2014-02-19 Tom Tromey <tromey@redhat.com>
8743
8744 * target-delegates.c: Rebuild.
8745 * target.c (update_current_target): Don't inherit or default
8746 to_insert_vfork_catchpoint.
8747 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8748 TARGET_DEFAULT_RETURN.
8749
8750 2014-02-19 Tom Tromey <tromey@redhat.com>
8751
8752 * target-delegates.c: Rebuild.
8753 * target.c (update_current_target): Don't inherit or default
8754 to_remove_fork_catchpoint.
8755 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8756 TARGET_DEFAULT_RETURN.
8757
8758 2014-02-19 Tom Tromey <tromey@redhat.com>
8759
8760 * target-delegates.c: Rebuild.
8761 * target.c (update_current_target): Don't inherit or default
8762 to_insert_fork_catchpoint.
8763 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8764 TARGET_DEFAULT_RETURN.
8765
8766 2014-02-19 Tom Tromey <tromey@redhat.com>
8767
8768 * target-delegates.c: Rebuild.
8769 * target.c (update_current_target): Don't inherit or default
8770 to_post_startup_inferior.
8771 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8772 TARGET_DEFAULT_IGNORE.
8773
8774 2014-02-19 Tom Tromey <tromey@redhat.com>
8775
8776 * target-delegates.c: Rebuild.
8777 * target.c (update_current_target): Don't inherit or default
8778 to_load.
8779 * target.h (struct target_ops) <to_load>: Use
8780 TARGET_DEFAULT_NORETURN.
8781
8782 2014-02-19 Tom Tromey <tromey@redhat.com>
8783
8784 * target-delegates.c: Rebuild.
8785 * target.c (update_current_target): Don't inherit or default
8786 to_terminal_info.
8787 * target.h (struct target_ops) <to_terminal_info>: Use
8788 TARGET_DEFAULT_FUNC.
8789
8790 2014-02-19 Tom Tromey <tromey@redhat.com>
8791
8792 * target-delegates.c: Rebuild.
8793 * target.c (update_current_target): Don't inherit or default
8794 to_terminal_save_ours.
8795 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8796 TARGET_DEFAULT_IGNORE.
8797
8798 2014-02-19 Tom Tromey <tromey@redhat.com>
8799
8800 * target-delegates.c: Rebuild.
8801 * target.c (update_current_target): Don't inherit or default
8802 to_terminal_ours.
8803 * target.h (struct target_ops) <to_terminal_ours>: Use
8804 TARGET_DEFAULT_IGNORE.
8805
8806 2014-02-19 Tom Tromey <tromey@redhat.com>
8807
8808 * target-delegates.c: Rebuild.
8809 * target.c (update_current_target): Don't inherit or default
8810 to_terminal_ours_for_output.
8811 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8812 TARGET_DEFAULT_IGNORE.
8813
8814 2014-02-19 Tom Tromey <tromey@redhat.com>
8815
8816 * target-delegates.c: Rebuild.
8817 * target.c (update_current_target): Don't inherit or default
8818 to_terminal_inferior.
8819 * target.h (struct target_ops) <to_terminal_inferior>: Use
8820 TARGET_DEFAULT_IGNORE.
8821
8822 2014-02-19 Tom Tromey <tromey@redhat.com>
8823
8824 * target-delegates.c: Rebuild.
8825 * target.c (update_current_target): Don't inherit or default
8826 to_terminal_init.
8827 * target.h (struct target_ops) <to_terminal_init>: Use
8828 TARGET_DEFAULT_IGNORE.
8829
8830 2014-02-19 Tom Tromey <tromey@redhat.com>
8831
8832 * target-delegates.c: Rebuild.
8833 * target.c (update_current_target): Don't inherit or default
8834 to_can_accel_watchpoint_condition.
8835 * target.h (struct target_ops)
8836 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8837
8838 2014-02-19 Tom Tromey <tromey@redhat.com>
8839
8840 * target-delegates.c: Rebuild.
8841 * target.c (update_current_target): Don't inherit or default
8842 to_region_ok_for_hw_watchpoint.
8843 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8844 Use TARGET_DEFAULT_FUNC.
8845
8846 2014-02-19 Tom Tromey <tromey@redhat.com>
8847
8848 * target-delegates.c: Rebuild.
8849 * target.c (update_current_target): Don't inherit or default
8850 to_watchpoint_addr_within_range.
8851 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8852 Use TARGET_DEFAULT_FUNC.
8853
8854 2014-02-19 Tom Tromey <tromey@redhat.com>
8855
8856 * target-delegates.c: Rebuild.
8857 * target.c (update_current_target): Don't inherit or default
8858 to_remove_watchpoint.
8859 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8860 TARGET_DEFAULT_NORETURN.
8861
8862 2014-02-19 Tom Tromey <tromey@redhat.com>
8863
8864 * target-delegates.c: Rebuild.
8865 * target.c (update_current_target): Don't inherit or default
8866 to_insert_watchpoint.
8867 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8868 TARGET_DEFAULT_RETURN.
8869
8870 2014-02-19 Tom Tromey <tromey@redhat.com>
8871
8872 * target-delegates.c: Rebuild.
8873 * target.c (update_current_target): Don't inherit or default
8874 to_remove_hw_breakpoint.
8875 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8876 TARGET_DEFAULT_RETURN.
8877
8878 2014-02-19 Tom Tromey <tromey@redhat.com>
8879
8880 * target-delegates.c: Rebuild.
8881 * target.c (update_current_target): Don't inherit or default
8882 to_insert_hw_breakpoint.
8883 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8884 TARGET_DEFAULT_RETURN.
8885
8886 2014-02-19 Tom Tromey <tromey@redhat.com>
8887
8888 * target-delegates.c: Rebuild.
8889 * target.c (update_current_target): Don't inherit or default
8890 to_can_use_hw_breakpoint.
8891 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8892 TARGET_DEFAULT_RETURN.
8893
8894 2014-02-19 Tom Tromey <tromey@redhat.com>
8895
8896 * target-delegates.c: Rebuild.
8897 * target.c (update_current_target): Don't inherit or default
8898 to_files_info.
8899 * target.h (struct target_ops) <to_files_info>: Use
8900 TARGET_DEFAULT_IGNORE.
8901
8902 2014-02-19 Tom Tromey <tromey@redhat.com>
8903
8904 * target-delegates.c: Rebuild.
8905 * target.c (update_current_target): Don't inherit or default
8906 to_store.
8907 * target.h (struct target_ops) <to_store>: Use
8908 TARGET_DEFAULT_NORETURN.
8909
8910 2014-02-19 Tom Tromey <tromey@redhat.com>
8911
8912 * target-delegates.c: Rebuild.
8913 * target.c (update_current_target): Don't inherit or default
8914 to_post_attach.
8915 * target.h (struct target_ops) <to_post_attach>: Use
8916 TARGET_DEFAULT_IGNORE.
8917
8918 2014-02-19 Tom Tromey <tromey@redhat.com>
8919
8920 * target-delegates.c: Rebuild.
8921 * target.c (update_current_target): Don't inherit or default
8922 to_rcmd.
8923 (default_rcmd): New function.
8924 (do_monitor_command): Unconditionally delegate.
8925 * target.h (struct target_ops) <to_rmcd>: Use
8926 TARGET_DEFAULT_FUNC.
8927
8928 2014-02-19 Tom Tromey <tromey@redhat.com>
8929
8930 * target-delegates.c: Rebuild.
8931 * target.c (init_dummy_target): Don't initialize to_attach.
8932 (target_attach): Unconditionally delegate.
8933 * target.h (struct target_ops) <to_attach>: Use
8934 TARGET_DEFAULT_FUNC.
8935
8936 2014-02-19 Tom Tromey <tromey@redhat.com>
8937
8938 * target-delegates.c: Rebuild.
8939 * target.c (target_detach): Unconditionally delegate.
8940 (init_dummy_target): Don't initialize to_detach.
8941 * target.h (struct target_ops) <to_detach>: Use
8942 TARGET_DEFAULT_IGNORE.
8943
8944 2014-02-19 Tom Tromey <tromey@redhat.com>
8945
8946 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8947 Add argument.
8948 (target_augmented_libraries_svr4_read): Add argument.
8949 * target.c (update_current_target): Update.
8950 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8951 argument.
8952
8953 2014-02-19 Tom Tromey <tromey@redhat.com>
8954
8955 * target.h (struct target_ops) <to_call_history_range>: Add
8956 argument.
8957 * target.c (target_call_history_range): Add argument.
8958 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8959 argument.
8960 (record_btrace_call_history_from): Update.
8961
8962 2014-02-19 Tom Tromey <tromey@redhat.com>
8963
8964 * target.h (struct target_ops) <to_call_history_from>: Add
8965 argument.
8966 * target.c (target_call_history_from): Add argument.
8967 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8968 argument.
8969
8970 2014-02-19 Tom Tromey <tromey@redhat.com>
8971
8972 * target.h (struct target_ops) <to_call_history>: Add argument.
8973 * target.c (target_call_history): Add argument.
8974 * record-btrace.c (record_btrace_call_history): Add 'self'
8975 argument.
8976
8977 2014-02-19 Tom Tromey <tromey@redhat.com>
8978
8979 * target.h (struct target_ops) <to_insn_history_range>: Add
8980 argument.
8981 * target.c (target_insn_history_range): Add argument.
8982 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8983 argument.
8984 (record_btrace_insn_history_from): Update.
8985
8986 2014-02-19 Tom Tromey <tromey@redhat.com>
8987
8988 * target.h (struct target_ops) <to_insn_history_from>: Add
8989 argument.
8990 * target.c (target_insn_history_from): Add argument.
8991 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8992 argument.
8993
8994 2014-02-19 Tom Tromey <tromey@redhat.com>
8995
8996 * target.h (struct target_ops) <to_insn_history>: Add argument.
8997 * target.c (target_insn_history): Add argument.
8998 * record-btrace.c (record_btrace_insn_history): Add 'self'
8999 argument.
9000
9001 2014-02-19 Tom Tromey <tromey@redhat.com>
9002
9003 * target.h (struct target_ops) <to_goto_record>: Add argument.
9004 * target.c (target_goto_record): Add argument.
9005 * record-full.c (record_full_goto): Add 'self' argument.
9006 * record-btrace.c (record_btrace_goto): Add 'self' argument.
9007
9008 2014-02-19 Tom Tromey <tromey@redhat.com>
9009
9010 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
9011 * target.c (target_goto_record_end): Add argument.
9012 * record-full.c (record_full_goto_end): Add 'self' argument.
9013 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
9014
9015 2014-02-19 Tom Tromey <tromey@redhat.com>
9016
9017 * target.h (struct target_ops) <to_goto_record_begin>: Add
9018 argument.
9019 * target.c (target_goto_record_begin): Add argument.
9020 * record-full.c (record_full_goto_begin): Add 'self' argument.
9021 * record-btrace.c (record_btrace_goto_begin): Add 'self'
9022 argument.
9023
9024 2014-02-19 Tom Tromey <tromey@redhat.com>
9025
9026 * target.h (struct target_ops) <to_record_is_replaying>: Add
9027 argument.
9028 * target.c (target_record_is_replaying): Add argument.
9029 * record-full.c (record_full_is_replaying): Add 'self' argument.
9030 * record-btrace.c (record_btrace_is_replaying): Add 'self'
9031 argument.
9032 (record_btrace_xfer_partial, record_btrace_store_registers)
9033 (record_btrace_prepare_to_store, record_btrace_resume)
9034 (record_btrace_wait, record_btrace_decr_pc_after_break)
9035 (record_btrace_find_new_threads, record_btrace_thread_alive):
9036 Update.
9037
9038 2014-02-19 Tom Tromey <tromey@redhat.com>
9039
9040 * target.h (struct target_ops) <to_delete_record>: Add argument.
9041 * target.c (target_delete_record): Add argument.
9042 * record-full.c (record_full_delete): Add 'self' argument.
9043
9044 2014-02-19 Tom Tromey <tromey@redhat.com>
9045
9046 * target.h (struct target_ops) <to_save_record>: Add argument.
9047 * target.c (target_save_record): Add argument.
9048 * record-full.c (record_full_save): Add 'self' argument.
9049 (record_full_save): Add 'self' argument.
9050
9051 2014-02-19 Tom Tromey <tromey@redhat.com>
9052
9053 * target.h (struct target_ops) <to_info_record>: Add argument.
9054 * target.c (target_info_record): Add argument.
9055 * record.c (info_record_command): Add argument.
9056 * record-full.c (record_full_info): Add 'self' argument.
9057 * record-btrace.c (record_btrace_info): Add 'self' argument.
9058
9059 2014-02-19 Tom Tromey <tromey@redhat.com>
9060
9061 * target.h (struct target_ops) <to_stop_recording>: Add argument.
9062 * target.c (target_stop_recording): Add argument.
9063 * record.c (record_stop): Add argument.
9064 * record-btrace.c (record_btrace_stop_recording): Add 'self'
9065 argument.
9066
9067 2014-02-19 Tom Tromey <tromey@redhat.com>
9068
9069 * target.h (struct target_ops) <to_read_btrace>: Add argument.
9070 * target.c (struct target_ops) <to_read_btrace>: Add argument.
9071 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
9072 argument.
9073 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
9074 (_initialize_amd64_linux_nat): Use it.
9075 * i386-linux-nat.c (i386_linux_read_btrace): New function.
9076 (_initialize_i386_linux_nat): Use it.
9077
9078 2014-02-19 Tom Tromey <tromey@redhat.com>
9079
9080 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9081 * target.c (target_teardown_btrace): Add argument.
9082 * remote.c (remote_teardown_btrace): Add 'self' argument.
9083 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9084 argument.
9085 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9086 argument.
9087
9088 2014-02-19 Tom Tromey <tromey@redhat.com>
9089
9090 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9091 * target.c (target_disable_btrace): Add argument.
9092 * remote.c (remote_disable_btrace): Add 'self' argument.
9093 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9094 argument.
9095 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9096 argument.
9097
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9099
9100 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9101 * target.c (target_enable_btrace): Add argument.
9102 * remote.c (remote_enable_btrace): Add 'self' argument.
9103 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9104 argument.
9105 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9106 argument.
9107
9108 2014-02-19 Tom Tromey <tromey@redhat.com>
9109
9110 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9111 (target_can_use_agent): Add argument.
9112 * target.c (update_current_target): Update.
9113 * remote.c (remote_can_use_agent): Add 'self' argument.
9114 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9115
9116 2014-02-19 Tom Tromey <tromey@redhat.com>
9117
9118 * target.h (struct target_ops) <to_use_agent>: Add argument.
9119 (target_use_agent): Add argument.
9120 * target.c (update_current_target): Update.
9121 * remote.c (remote_use_agent): Add 'self' argument.
9122 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9123
9124 2014-02-19 Tom Tromey <tromey@redhat.com>
9125
9126 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9127 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9128 (target_traceframe_info): Add argument.
9129 * target.c (update_current_target): Update.
9130 * remote.c (remote_traceframe_info): Add 'self' argument.
9131 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9132
9133 2014-02-19 Tom Tromey <tromey@redhat.com>
9134
9135 * target.h (target_static_tracepoint_markers_by_strid): Add
9136 argument.
9137 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9138 'self' argument.
9139 * target.c (update_current_target): Update.
9140 * remote.c (struct target_ops)
9141 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9142 * linux-nat.c (struct target_ops)
9143 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9144
9145 2014-02-19 Tom Tromey <tromey@redhat.com>
9146
9147 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9148 Add argument.
9149 (target_static_tracepoint_marker_at): Add argument.
9150 * target.c (update_current_target): Update.
9151 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9152 argument.
9153
9154 2014-02-19 Tom Tromey <tromey@redhat.com>
9155
9156 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9157 (target_set_permissions): Add argument.
9158 * target.c (update_current_target): Update.
9159 * remote.c (remote_set_permissions): Add 'self' argument.
9160 (remote_start_remote): Update.
9161
9162 2014-02-19 Tom Tromey <tromey@redhat.com>
9163
9164 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9165 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9166 (target_get_tib_address): Add argument.
9167 * target.c (update_current_target): Update.
9168 * remote.c (remote_get_tib_address): Add 'self' argument.
9169
9170 2014-02-19 Tom Tromey <tromey@redhat.com>
9171
9172 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9173 (target_set_trace_notes): Add argument.
9174 * target.c (update_current_target): Update.
9175 * remote.c (remote_set_trace_notes): Add 'self' argument.
9176
9177 2014-02-19 Tom Tromey <tromey@redhat.com>
9178
9179 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9180 argument.
9181 (target_set_trace_buffer_size): Add argument.
9182 * target.c (update_current_target): Update.
9183 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9184
9185 2014-02-19 Tom Tromey <tromey@redhat.com>
9186
9187 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9188 argument.
9189 (target_set_circular_trace_buffer): Add argument.
9190 * target.c (update_current_target): Update.
9191 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9192 argument.
9193
9194 2014-02-19 Tom Tromey <tromey@redhat.com>
9195
9196 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9197 argument.
9198 (target_set_disconnected_tracing): Add argument.
9199 * target.c (update_current_target): Update.
9200 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9201
9202 2014-02-19 Tom Tromey <tromey@redhat.com>
9203
9204 * target.h (struct target_ops)
9205 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9206 (target_get_min_fast_tracepoint_insn_len): Add argument.
9207 * target.c (update_current_target): Update.
9208 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9209 argument.
9210
9211 2014-02-19 Tom Tromey <tromey@redhat.com>
9212
9213 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9214 argument.
9215 (target_get_raw_trace_data): Add argument.
9216 * target.c (update_current_target): Update.
9217 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9218
9219 2014-02-19 Tom Tromey <tromey@redhat.com>
9220
9221 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9222 Add argument.
9223 (target_upload_trace_state_variables): Add argument.
9224 * target.c (update_current_target): Update.
9225 * remote.c (remote_upload_trace_state_variables): Add 'self'
9226 argument.
9227 (remote_start_remote): Update.
9228
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9232 argument.
9233 (target_upload_tracepoints): Add argument.
9234 * target.c (update_current_target): Update.
9235 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9236 (remote_start_remote): Update.
9237
9238 2014-02-19 Tom Tromey <tromey@redhat.com>
9239
9240 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9241 (target_save_trace_data): Add argument.
9242 * target.c (update_current_target): Update.
9243 * remote.c (remote_save_trace_data): Add 'self' argument.
9244
9245 2014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9248 argument.
9249 * target.h (struct target_ops)
9250 <to_get_trace_state_variable_value>: Add argument.
9251 (target_get_trace_state_variable_value): Add argument.
9252 * target.c (update_current_target): Update.
9253 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9254 argument.
9255 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9256
9257 2014-02-19 Tom Tromey <tromey@redhat.com>
9258
9259 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9260 * target.h (struct target_ops) <to_trace_find>: Add argument.
9261 (target_trace_find): Add argument.
9262 * target.c (update_current_target): Update.
9263 * remote.c (remote_trace_find): Add 'self' argument.
9264 * ctf.c (ctf_trace_find): Add 'self' argument.
9265
9266 2014-02-19 Tom Tromey <tromey@redhat.com>
9267
9268 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9269 (target_trace_stop): Add argument.
9270 * target.c (update_current_target): Update.
9271 * remote.c (remote_trace_stop): Add 'self' argument.
9272
9273 2014-02-19 Tom Tromey <tromey@redhat.com>
9274
9275 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9276 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9277 argument.
9278 (target_get_tracepoint_status): Add argument.
9279 * target.c (update_current_target): Update.
9280 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9281
9282 2014-02-19 Tom Tromey <tromey@redhat.com>
9283
9284 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9285 * target.h (struct target_ops) <to_get_trace_status>: Add
9286 argument.
9287 (target_get_trace_status): Add argument.
9288 * target.c (update_current_target): Update.
9289 * remote.c (remote_get_trace_status): Add 'self' argument.
9290 (remote_start_remote, remote_can_download_tracepoint): Update.
9291 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9292
9293 2014-02-19 Tom Tromey <tromey@redhat.com>
9294
9295 * target.h (struct target_ops) <to_trace_start>: Add argument.
9296 (target_trace_start): Add argument.
9297 * target.c (update_current_target): Update.
9298 * remote.c (remote_trace_start): Add 'self' argument.
9299
9300 2014-02-19 Tom Tromey <tromey@redhat.com>
9301
9302 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9303 Add argument.
9304 (target_trace_set_readonly_regions): Add argument.
9305 * target.c (update_current_target): Update.
9306 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9307 argument.
9308
9309 2014-02-19 Tom Tromey <tromey@redhat.com>
9310
9311 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9312 argument.
9313 (target_disable_tracepoint): Add argument.
9314 * target.c (update_current_target): Update.
9315 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9316
9317 2014-02-19 Tom Tromey <tromey@redhat.com>
9318
9319 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9320 argument.
9321 (target_enable_tracepoint): Add argument.
9322 * target.c (update_current_target): Update.
9323 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9324
9325 2014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target.h (struct target_ops) <to_download_trace_state_variable>:
9328 Add argument.
9329 (target_download_trace_state_variable): Add argument.
9330 * target.c (update_current_target): Update.
9331 * remote.c (remote_download_trace_state_variable): Add 'self'
9332 argument.
9333
9334 2014-02-19 Tom Tromey <tromey@redhat.com>
9335
9336 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9337 argument.
9338 (target_can_download_tracepoint): Add argument.
9339 * target.c (update_current_target): Update.
9340 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9341
9342 2014-02-19 Tom Tromey <tromey@redhat.com>
9343
9344 * target.h (struct target_ops) <to_download_tracepoint>: Add
9345 argument.
9346 (target_download_tracepoint): Add argument.
9347 * target.c (update_current_target): Update.
9348 * remote.c (remote_download_tracepoint): Add 'self' argument.
9349
9350 2014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * target.h (struct target_ops) <to_trace_init>: Add argument.
9353 (target_trace_init): Add argument.
9354 * target.c (update_current_target): Update.
9355 * remote.c (remote_trace_init): Add 'self' argument.
9356
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9358
9359 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9360 * target.c (target_fileio_readlink): Add argument.
9361 * remote.c (remote_hostio_readlink): Add 'self' argument.
9362 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9363
9364 2014-02-19 Tom Tromey <tromey@redhat.com>
9365
9366 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9367 * target.c (target_fileio_unlink): Add argument.
9368 * remote.c (remote_hostio_unlink): Add 'self' argument.
9369 (remote_file_delete): Update.
9370 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9371
9372 2014-02-19 Tom Tromey <tromey@redhat.com>
9373
9374 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9375 * target.c (target_fileio_close): Add argument.
9376 * remote.c (remote_hostio_close): Add 'self' argument.
9377 (remote_hostio_close_cleanup): Update.
9378 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9379 Update.
9380 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9381
9382 2014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9385 * target.c (target_fileio_pread): Add argument.
9386 * remote.c (remote_hostio_pread): Add 'self' argument.
9387 (remote_bfd_iovec_pread, remote_file_get): Update.
9388 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9389
9390 2014-02-19 Tom Tromey <tromey@redhat.com>
9391
9392 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9393 * target.c (target_fileio_pwrite): Add argument.
9394 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9395 (remote_file_put): Update.
9396 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9397
9398 2014-02-19 Tom Tromey <tromey@redhat.com>
9399
9400 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9401 * target.c (target_fileio_open): Add argument.
9402 * remote.c (remote_hostio_open): Add 'self' argument.
9403 (remote_bfd_iovec_open): Add 'self' argument.
9404 (remote_file_put): Add 'self' argument.
9405 (remote_file_get): Add 'self' argument.
9406 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9407
9408 2014-02-19 Tom Tromey <tromey@redhat.com>
9409
9410 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9411 Add argument.
9412 (target_can_run_breakpoint_commands): Add argument.
9413 * target.c (update_current_target): Update.
9414 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9415 argument.
9416 (remote_insert_breakpoint): Add 'self' argument.
9417 (remote_insert_hw_breakpoint): Add 'self' argument.
9418 (remote_can_run_breakpoint_commands): Add 'self' argument.
9419
9420 2014-02-19 Tom Tromey <tromey@redhat.com>
9421
9422 * target.h (struct target_ops)
9423 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9424 (target_supports_evaluation_of_breakpoint_conditions): Add
9425 argument.
9426 * target.c (update_current_target): Update.
9427 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9428 argument.
9429 (remote_insert_breakpoint): Add 'self' argument.
9430 (remote_insert_hw_breakpoint): Add 'self' argument.
9431 (remote_supports_cond_breakpoints): Add 'self' argument.
9432
9433 2014-02-19 Tom Tromey <tromey@redhat.com>
9434
9435 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9436 argument.
9437 (target_supports_string_tracing): Add argument.
9438 * target.c (update_current_target): Update.
9439 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9440
9441 2014-02-19 Tom Tromey <tromey@redhat.com>
9442
9443 * target.h (struct target_ops)
9444 <to_supports_disable_randomization>: Add argument.
9445 * target.c (find_default_supports_disable_randomization): Add
9446 argument.
9447 (target_supports_disable_randomization): Add argument.
9448 (find_default_supports_disable_randomization): Add 'self'
9449 argument.
9450 * remote.c (extended_remote_supports_disable_randomization): Add
9451 'self' argument.
9452 (remote_supports_disable_randomization): Add 'self' argument.
9453 (extended_remote_create_inferior): Update.
9454 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9455 'self' argument.
9456
9457 2014-02-19 Tom Tromey <tromey@redhat.com>
9458
9459 * target.h (struct target_ops)
9460 <to_supports_enable_disable_tracepoint>: Add argument.
9461 (target_supports_enable_disable_tracepoint): Add argument.
9462 * target.c (update_current_target): Update.
9463 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9464 argument.
9465
9466 2014-02-19 Tom Tromey <tromey@redhat.com>
9467
9468 * target.h (struct target_ops) <to_supports_multi_process>: Add
9469 argument.
9470 (target_supports_multi_process): Add argument.
9471 * target.c (update_current_target): Update.
9472 * remote.c (remote_supports_multi_process): Add 'self' argument.
9473 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9474 argument.
9475 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9476 argument.
9477
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9479
9480 * target.h (struct target_ops) <to_execution_direction>: Add
9481 argument.
9482 (target_execution_direction): Add argument.
9483 * target.c (default_execution_direction): Add 'self' argument.
9484 * record-full.c (record_full_execution_direction): Add 'self'
9485 argument.
9486
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9488
9489 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9490 argument.
9491 (target_can_execute_reverse): Add argument.
9492 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9493 * record-full.c (record_full_can_execute_reverse): Add 'self'
9494 argument.
9495 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9496 argument.
9497
9498 2014-02-19 Tom Tromey <tromey@redhat.com>
9499
9500 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9501 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9502 argument.
9503 (target_get_ada_task_ptid): Add argument.
9504 * target.c (update_current_target): Update.
9505 (default_get_ada_task_ptid): Add 'self' argument.
9506 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9507 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9508 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9509 argument.
9510 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9511 argument.
9512 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9513 argument.
9514 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9515 argument.
9516 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9517 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9518 argument.
9519
9520 2014-02-19 Tom Tromey <tromey@redhat.com>
9521
9522 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9523 (target_goto_bookmark): Add argument.
9524 * target.c (dummy_goto_bookmark): Add 'self' argument.
9525 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9526
9527 2014-02-19 Tom Tromey <tromey@redhat.com>
9528
9529 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9530 (target_get_bookmark): Add argument.
9531 * target.c (dummy_get_bookmark): Add 'self' argument.
9532 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9533
9534 2014-02-19 Tom Tromey <tromey@redhat.com>
9535
9536 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9537 argument.
9538 (target_make_corefile_notes): Add argument.
9539 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9540 * procfs.c (procfs_make_note_section): Add 'self' argument.
9541 (procfs_make_note_section): Add 'self' argument.
9542 (procfs_make_note_section): Add 'self' argument.
9543 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9544 argument.
9545 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9546 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9547 * exec.c (exec_make_note_section): Add 'self' argument.
9548 (exec_make_note_section): Add 'self' argument.
9549
9550 2014-02-19 Tom Tromey <tromey@redhat.com>
9551
9552 * target.h (struct target_ops) <to_find_memory_regions>: Add
9553 argument.
9554 (target_find_memory_regions): Add argument.
9555 * target.c (dummy_find_memory_regions): Add 'self' argument.
9556 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9557 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9558 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9559 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9560 * exec. (exec_do_find_memory_regions): New global.
9561 (exec_set_find_memory_regions): Rewrite.
9562 (exec_find_memory_regions): New function.
9563 (init_exec_ops): Use exec_find_memory_regions.
9564
9565 2014-02-19 Tom Tromey <tromey@redhat.com>
9566
9567 * target.h (struct target_ops) <to_supports_non_stop>: Add
9568 argument.
9569 * target.c (find_default_supports_non_stop): Add argument.
9570 (target_supports_non_stop): Add argument.
9571 (find_default_supports_non_stop): Add 'self' argument.
9572 * remote.c (remote_supports_non_stop): Add 'self' argument.
9573 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9574
9575 2014-02-19 Tom Tromey <tromey@redhat.com>
9576
9577 * target.h (struct target_ops) <to_log_command>: Add argument.
9578 (target_log_command): Add argument.
9579 * serial.h (serial_log_command): Add 'self' argument.
9580 * serial.c (serial_log_command): Add 'self' argument.
9581
9582 2014-02-19 Tom Tromey <tromey@redhat.com>
9583
9584 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9585 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9586 argument.
9587 (target_pid_to_exec_file): Add argument.
9588 * target.c (debug_to_pid_to_exec_file): Add argument.
9589 (update_current_target): Update.
9590 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9591 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9592 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9593 (linux_handle_extended_wait): Update.
9594 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9595 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9596 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9597 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9598
9599 2014-02-19 Tom Tromey <tromey@redhat.com>
9600
9601 * target.h (struct target_ops) <to_rcmd>: Add argument.
9602 (target_rcmd): Add argument.
9603 * target.c (debug_to_rcmd): Add argument.
9604 (update_current_target, do_monitor_command): Update.
9605 * remote.c (remote_rcmd): Add 'self' argument.
9606 * monitor.c (monitor_rcmd): Add 'self' argument.
9607
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9609
9610 * windows-nat.c (windows_stop): Add 'self' argument.
9611 * target.h (struct target_ops) <to_stop>: Add argument.
9612 * target.c (target_stop): Add argument.
9613 (debug_to_stop): Add argument.
9614 (update_current_target): Update.
9615 * remote.c (remote_stop): Add 'self' argument.
9616 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9617 (gdbsim_cntrl_c): Update.
9618 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9619 * procfs.c (procfs_stop): Add 'self' argument.
9620 * nto-procfs.c (procfs_stop): Add 'self' argument.
9621 * monitor.c (monitor_stop): Add 'self' argument.
9622 (monitor_open): Update.
9623 * linux-nat.c (linux_nat_stop): Add argument.
9624 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9625 * gnu-nat.c (gnu_stop): Add 'self' argument.
9626 * darwin-nat.c (darwin_stop): Add 'self' argument.
9627
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9629
9630 * target.h (struct target_ops) <to_thread_name>: Add argument.
9631 * target.c (target_thread_name): Add argument.
9632 (update_current_target): Update.
9633 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9634
9635 2014-02-19 Tom Tromey <tromey@redhat.com>
9636
9637 * target.h (struct target_ops) <to_extra_thread_info>: Add
9638 argument.
9639 (target_extra_thread_info): Add argument.
9640 * target.c (update_current_target): Update.
9641 * remote.c (remote_threads_extra_info): Add 'self' argument.
9642 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9643 argument.
9644 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9645 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9646 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9647 argument.
9648 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9649 argument.
9650 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9651 argument.
9652 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9653 argument.
9654
9655 2014-02-19 Tom Tromey <tromey@redhat.com>
9656
9657 * target.h (struct target_ops) <to_program_signals>: Add argument.
9658 * target.c (target_program_signals): Add argument.
9659 * remote.c (remote_program_signals): Add 'self' argument.
9660
9661 2014-02-19 Tom Tromey <tromey@redhat.com>
9662
9663 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9664 * target.c (target_pass_signals): Add argument.
9665 * remote.c (remote_pass_signals): Add 'self' argument.
9666 (remote_start_remote): Update.
9667 * procfs.c (procfs_pass_signals): Add 'self' argument.
9668 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9669 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9670 (linux_nat_create_inferior, linux_nat_attach): Update.
9671
9672 2014-02-19 Tom Tromey <tromey@redhat.com>
9673
9674 * windows-nat.c (windows_can_run): Add 'self' argument.
9675 * target.h (struct target_ops) <to_can_run>: Add argument.
9676 (target_can_run): Add argument.
9677 * target.c (debug_to_can_run): Add argument.
9678 (update_current_target): Update.
9679 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9680 * inf-child.c (inf_child_can_run): Add 'self' argument.
9681 * go32-nat.c (go32_can_run): Add 'self' argument.
9682
9683 2014-02-19 Tom Tromey <tromey@redhat.com>
9684
9685 * target.h (struct target_ops) <to_has_exited>: Add argument.
9686 (target_has_exited): Add argument.
9687 * target.c (debug_to_has_exited): Add argument.
9688 (update_current_target): Update.
9689
9690 2014-02-19 Tom Tromey <tromey@redhat.com>
9691
9692 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9693 argument.
9694 (target_set_syscall_catchpoint): Add argument.
9695 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9696 argument.
9697 * target.c (update_current_target): Update.
9698
9699 2014-02-19 Tom Tromey <tromey@redhat.com>
9700
9701 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9702 argument.
9703 (target_remove_exec_catchpoint): Add argument.
9704 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9705 (update_current_target): Update.
9706 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9707 argument.
9708
9709 2014-02-19 Tom Tromey <tromey@redhat.com>
9710
9711 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9712 argument.
9713 (target_insert_exec_catchpoint): Add argument.
9714 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9715 (update_current_target): Update.
9716 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9717 argument.
9718
9719 2014-02-19 Tom Tromey <tromey@redhat.com>
9720
9721 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9722 argument.
9723 (target_remove_vfork_catchpoint): Add argument.
9724 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9725 (update_current_target): Update.
9726 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9727 argument.
9728
9729 2014-02-19 Tom Tromey <tromey@redhat.com>
9730
9731 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9732 argument.
9733 (target_insert_vfork_catchpoint): Add argument.
9734 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9735 (update_current_target): Update.
9736 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9737 argument.
9738
9739 2014-02-19 Tom Tromey <tromey@redhat.com>
9740
9741 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9742 argument.
9743 (target_remove_fork_catchpoint): Add argument.
9744 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9745 (update_current_target): Update.
9746 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9747 argument.
9748
9749 2014-02-19 Tom Tromey <tromey@redhat.com>
9750
9751 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9752 argument.
9753 (target_insert_fork_catchpoint): Add argument.
9754 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9755 (update_current_target): Update.
9756 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9757 argument.
9758
9759 2014-02-19 Tom Tromey <tromey@redhat.com>
9760
9761 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9762 argument.
9763 (target_post_startup_inferior): Add argument.
9764 * target.c (debug_to_post_startup_inferior): Add argument.
9765 (update_current_target): Update.
9766 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9767 argument.
9768 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9769 argument.
9770 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9771 argument.
9772 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9773 argument.
9774 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9775 'self' argument.
9776 (super_post_startup_inferior): Likewise.
9777 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9778 'self' argument.
9779 (super_post_startup_inferior): Likewise.
9780 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9781 Add 'self' argument.
9782 (super_post_startup_inferior): Likewise.
9783
9784 2014-02-19 Tom Tromey <tromey@redhat.com>
9785
9786 * target.h (struct target_ops) <to_load>: Add argument.
9787 * target.c (target_load): Add argument.
9788 (debug_to_load): Add argument.
9789 (update_current_target): Update.
9790 * remote.c (remote_load): Add 'self' argument.
9791 * remote-sim.c (gdbsim_load): Add 'self' argument.
9792 * remote-mips.c (mips_load): Add 'self' argument.
9793 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9794 * monitor.c (monitor_load): Add 'self' argument.
9795 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9796
9797 2014-02-19 Tom Tromey <tromey@redhat.com>
9798
9799 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9800 (target_terminal_info): Add argument.
9801 * target.c (debug_to_terminal_info): Add argument.
9802 (default_terminal_info): Likewise.
9803 * inflow.c (child_terminal_info): Add 'self' argument.
9804 * inferior.h (child_terminal_info): Add 'self' argument.
9805 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9806
9807 2014-02-19 Tom Tromey <tromey@redhat.com>
9808
9809 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9810 argument.
9811 (target_terminal_save_ours): Add argument.
9812 * target.c (debug_to_terminal_save_ours): Add argument.
9813 (update_current_target): Update.
9814 * inflow.c (terminal_save_ours): Add 'self' argument.
9815 * inferior.h (terminal_save_ours): Add 'self' argument.
9816
9817 2014-02-19 Tom Tromey <tromey@redhat.com>
9818
9819 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9820 (target_terminal_ours): Add argument.
9821 * target.c (debug_to_terminal_ours): Add argument.
9822 (update_current_target): Update.
9823 * remote.c (remote_terminal_ours): Add 'self' argument.
9824 (remote_close): Update.
9825 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9826 * inflow.c (terminal_ours): Add 'self' argument.
9827 * inferior.h (terminal_ours): Add 'self' argument.
9828 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9829
9830 2014-02-19 Pedro Alves <palves@redhat.com>
9831 Tom Tromey <tromey@redhat.com>
9832
9833 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9834 argument.
9835 (target_terminal_ours_for_output): Add argument.
9836 * target.c (debug_to_terminal_ours_for_output): Add argument.
9837 (update_current_target): Update.
9838 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9839 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9840 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9841
9842 2014-02-19 Tom Tromey <tromey@redhat.com>
9843
9844 * target.h (struct target_ops) <to_terminal_inferior>: Add
9845 argument.
9846 * target.c (target_terminal_inferior): Add argument.
9847 (update_current_target): Update.
9848 * remote.c (remote_terminal_inferior): Add 'self' argument.
9849 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9850 * inflow.c (terminal_inferior): Add 'self' argument.
9851 * inferior.h (terminal_inferior): Add 'self' argument.
9852 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9853 (go32_terminal_inferior): Add 'self' argument.
9854
9855 2014-02-19 Tom Tromey <tromey@redhat.com>
9856
9857 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9858 (target_terminal_init): Add argument.
9859 * target.c (debug_to_terminal_init): Add argument.
9860 (update_current_target): Update.
9861 * inflow.c (terminal_init_inferior): Add 'self' argument.
9862 * inferior.h (terminal_init_inferior): Add 'self' argument.
9863 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9864 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9865
9866 2014-02-19 Tom Tromey <tromey@redhat.com>
9867
9868 * target.h (struct target_ops)
9869 <to_can_accel_watchpoint_condition>: Add argument.
9870 (target_can_accel_watchpoint_condition): Add argument.
9871 * target.c (debug_to_can_accel_watchpoint_condition): Add
9872 argument.
9873 (update_current_target): Update.
9874 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9875 'self' argument.
9876
9877 2014-02-19 Tom Tromey <tromey@redhat.com>
9878
9879 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9880 Add argument.
9881 (target_region_ok_for_hw_watchpoint): Add argument.
9882 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9883 (default_region_ok_for_hw_watchpoint): Add argument.
9884 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9885 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9886 argument.
9887 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9888 argument.
9889 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9890 argument.
9891 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9892 'self' argument.
9893 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9894 'self' argument.
9895 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9896 'self' argument.
9897 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9898 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9899 'self' argument.
9900 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9901 Add 'self' argument.
9902
9903 2014-02-19 Tom Tromey <tromey@redhat.com>
9904
9905 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9906 argument.
9907 (target_insert_watchpoint): Add argument.
9908 * target.c (debug_to_insert_watchpoint): Add argument.
9909 (update_current_target): Update.
9910 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9911 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9912 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9913 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9914 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9915 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9916 argument.
9917 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9918 (procfs_insert_hw_watchpoint): Add 'self' argument.
9919 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9920 argument.
9921 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9922 argument.
9923 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9924 argument.
9925 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9926 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9927 argument.
9928 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9929 'self' argument.
9930
9931 2014-02-19 Tom Tromey <tromey@redhat.com>
9932
9933 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9934 argument.
9935 (target_remove_watchpoint): Add argument.
9936 * target.c (debug_to_remove_watchpoint): Add argument.
9937 (update_current_target): Update.
9938 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9939 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9940 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9941 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9942 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9943 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9944 argument.
9945 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9946 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9947 argument.
9948 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9949 argument.
9950 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9951 argument.
9952 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9953 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9954 argument.
9955 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9956 'self' argument.
9957
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9959
9960 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9961 argument.
9962 (target_remove_hw_breakpoint): Add argument.
9963 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9964 (update_current_target): Update.
9965 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9966 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9967 argument.
9968 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9969 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9970 argument.
9971 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9972 'self' argument.
9973
9974 2014-02-19 Tom Tromey <tromey@redhat.com>
9975
9976 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9977 argument.
9978 (target_insert_hw_breakpoint): Add argument.
9979 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9980 (update_current_target): Update.
9981 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9982 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9983 argument.
9984 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9985 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9986 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9987 argument.
9988 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9989 'self' argument.
9990
9991 2014-02-19 Tom Tromey <tromey@redhat.com>
9992
9993 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9994 argument.
9995 (target_can_use_hardware_watchpoint): Add argument.
9996 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9997 (update_current_target): Update.
9998 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9999 argument.
10000 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
10001 argument.
10002 * remote.c (remote_check_watch_resources): Add 'self' argument.
10003 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
10004 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
10005 argument.
10006 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
10007 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
10008 argument.
10009 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
10010 argument.
10011 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
10012 argument.
10013 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
10014 argument.
10015 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
10016 argument.
10017 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
10018 argument.
10019 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
10020 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
10021 argument.
10022 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
10023 'self' argument.
10024
10025 2014-02-19 Tom Tromey <tromey@redhat.com>
10026
10027 * target.h (struct target_ops) <to_post_attach>: Add argument.
10028 (target_post_attach): Add argument.
10029 * target.c (debug_to_post_attach): Add argument.
10030 (update_current_target): Update.
10031 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
10032 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
10033 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
10034 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
10035 * inf-child.c (inf_child_post_attach): Add 'self' argument.
10036
10037 2014-02-19 Tom Tromey <tromey@redhat.com>
10038
10039 * windows-nat.c (windows_close): Add 'self' argument.
10040 * tracepoint.c (tfile_close): Add 'self' argument.
10041 * target.h (struct target_ops) <to_close>: Add argument.
10042 * target.c (target_close): Add argument.
10043 (update_current_target): Update.
10044 * remote.c (remote_close): Add 'self' argument.
10045 * remote-sim.c (gdbsim_close): Add 'self' argument.
10046 * remote-mips.c (mips_close): Add 'self' argument.
10047 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
10048 * record-full.c (record_full_close): Add 'self' argument.
10049 * record-btrace.c (record_btrace_close): Add 'self' argument.
10050 * monitor.h (monitor_close): Add 'self' argument.
10051 * monitor.c (monitor_close): Add 'self' argument.
10052 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
10053 * linux-nat.c (linux_nat_close): Add argument.
10054 * go32-nat.c (go32_close): Add 'self' argument.
10055 * exec.c (exec_close_1): Add 'self' argument.
10056 * ctf.c (ctf_close): Add 'self' argument.
10057 * corelow.c (core_close): Add 'self' argument.
10058 (core_close_cleanup): Update.
10059 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
10060 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
10061
10062 2014-02-19 Tom Tromey <tromey@redhat.com>
10063
10064 * remote.c (remote_load): New function.
10065 (init_remote_ops): Use it.
10066
10067 2014-02-19 Tom Tromey <tromey@redhat.com>
10068
10069 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
10070 argument.
10071 * common/linux-btrace.h (linux_supports_btrace): Update.
10072 * remote.c (remote_supports_btrace): Add "self" argument.
10073 * target-delegates.c: Rebuild.
10074 * target.c (target_supports_btrace): Remove.
10075 * target.h (struct target_ops) <to_supports_btrace>: Add
10076 target_ops argument.
10077 (target_supports_btrace): New define.
10078
10079 2014-02-19 Tom Tromey <tromey@redhat.com>
10080
10081 * record-full.c (record_full_beneath_to_resume_ops)
10082 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10083 (record_full_beneath_to_wait)
10084 (record_full_beneath_to_store_registers_ops)
10085 (record_full_beneath_to_store_registers)
10086 (record_full_beneath_to_xfer_partial_ops)
10087 (record_full_beneath_to_xfer_partial)
10088 (record_full_beneath_to_insert_breakpoint_ops)
10089 (record_full_beneath_to_insert_breakpoint)
10090 (record_full_beneath_to_remove_breakpoint_ops)
10091 (record_full_beneath_to_remove_breakpoint)
10092 (record_full_beneath_to_stopped_by_watchpoint)
10093 (record_full_beneath_to_stopped_data_address)
10094 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10095 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10096 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10097 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10098 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10099 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10100 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10101 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10102 (record_full_resume, record_full_wait_1)
10103 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10104 (record_full_store_registers, record_full_xfer_partial)
10105 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10106 (record_full_async, record_full_core_xfer_partial): Use target
10107 delegation.
10108 * target-delegates.c: Rebuild.
10109 * target.c (current_xfer_partial): Remove.
10110 (update_current_target): Do not INHERIT or de_fault
10111 to_insert_breakpoint, to_remove_breakpoint,
10112 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10113 to_is_async_p, to_async. Do not set to_xfer_partial field.
10114 (default_xfer_partial): Simplify.
10115 (current_xfer_partial): Remove.
10116 (target_wait, target_resume): Simplify.
10117 (find_default_can_async_p, find_default_is_async_p): Update.
10118 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10119 to_xfer_partial, to_stopped_by_watchpoint,
10120 to_stopped_data_address.
10121 (target_store_registers): Simplify.
10122 (forward_target_remove_breakpoint)
10123 (forward_target_insert_breakpoint): Remove.
10124 (target_remove_breakpoint, target_insert_breakpoint)
10125 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10126 * target.h (struct target_ops) <to_resume, to_wait,
10127 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10128 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10129 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10130 markup.
10131 (forward_target_remove_breakpoint)
10132 (forward_target_insert_breakpoint): Remove.
10133 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10134 directly.
10135 (record_btrace_insert_breakpoint): Delegate directly.
10136
10137 2014-02-19 Tom Tromey <tromey@redhat.com>
10138
10139 PR build/7701:
10140 * target-delegates.c: New file.
10141 * target.c: Include target-delegates.c.
10142 (init_dummy_target): Call install_dummy_methods.
10143 (complete_target_initialization): Call install_delegators.
10144 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10145 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10146 * make-target-delegates: New file.
10147
10148 2014-02-19 Tom Tromey <tromey@redhat.com>
10149
10150 * record.c (find_record_target): Use find_target_at.
10151 * target.c (find_target_at): New function.
10152 * target.h (find_target_at): Declare.
10153
10154 2014-02-19 Tom Tromey <tromey@redhat.com>
10155
10156 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10157 Add 'ops' argument.
10158 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10159 'ops' argument.
10160 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10161 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10162 'ops' argument.
10163 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10164 argument.
10165 * linux-nat.c (save_sigtrap): Update.
10166 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10167 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10168 (linux_nat_close): Update.
10169 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10170 argument.
10171 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10172 argument.
10173 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10174 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10175 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10176 (tmp_to_async): Add 'ops' argument.
10177 (record_full_stopped_by_watchpoint, record_full_async)
10178 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10179 argument.
10180 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10181 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10182 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10183 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10184 (remote_is_async_p, remote_async): Add 'ops' argument.
10185 (remote_stopped_data_address): Update.
10186 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10187 * target.c (update_current_target)
10188 (find_default_can_async_p, find_default_is_async_p): Update.
10189 (init_dummy_target): Update.
10190 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10191 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10192 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10193 (target_can_async_p, target_is_async_p, target_async)
10194 (target_stopped_by_watchpoint): Update.
10195
10196 2014-02-19 Yao Qi <yao@codesourcery.com>
10197
10198 PR gdb/16220
10199 * gdbarch.sh: Remove startup_gdbarch.
10200 * gdbarch.c: Regenerated.
10201 * gdbarch.h: Likewise.
10202
10203 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10204
10205 * rl78-tdep.c (rl78_g10_register_name): New function.
10206 (rl78_return_value): Add g10 support.
10207 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10208 g10.
10209
10210 2014-02-17 Doug Evans <xdje42@gmail.com>
10211
10212 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10213 (SUBDIR_GUILE_SRCS): Ditto.
10214 (scm-gsmob.o): Ditto.
10215
10216 2014-02-17 Yao Qi <yao@codesourcery.com>
10217
10218 * gnu-nat.c (ILL_RPC): Declare defined function.
10219
10220 2014-02-17 Yao Qi <yao@codesourcery.com>
10221
10222 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10223 mach_msg_type_number_t.
10224 (gnu_write_inferior): Likewise.
10225
10226 2014-02-17 Yao Qi <yao@codesourcery.com>
10227
10228 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10229 in format string.
10230 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10231 (inf_validate_procs, inf_signal): Likewise.
10232 (S_exception_raise_request): Likewise.
10233 (do_mach_notify_dead_name): Likewise.
10234 (steal_exc_port): Likewise.
10235 (gnu_read_inferior): Change 'copy_count''s type to
10236 mach_msg_type_number_t.
10237 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10238 format string.
10239
10240 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10241
10242 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10243 flag. Adjust all users; in particular...
10244 (gnu_wait): ..., don't decrement its value in here...
10245 (gnu_create_inferior): ..., and instead set the flag in here,
10246 around the startup_inferior call, and call that one with
10247 START_INFERIOR_TRAPS_EXPECTED.
10248
10249 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10250 (ILL_RPC): ... new macro.
10251 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10252 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10253 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10254 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10255 functions with ILL_RPC macro.
10256 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10257 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10258 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10259 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10260 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10261 (S_proc_getlogin_reply, S_proc_getsid_reply)
10262 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10263 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10264 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10265 (S_proc_getnports_reply, S_proc_is_important_reply)
10266 (S_proc_get_code_reply): New stub functions, generated with
10267 ILL_RPC macro.
10268
10269 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10270 collected the type check structures.
10271
10272 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10273
10274 2014-02-14 Doug Evans <dje@google.com>
10275
10276 * target.c (target_write_partial): Fix result type.
10277
10278 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10279
10280 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10281 the proper offsets to access fpregset_t.
10282
10283 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10284
10285 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10286 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10287 * h8300-tdep.c (setmachinelist): Remove global.
10288 * hppa-tdep.c (hppa_sigtramp): Remove global.
10289 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10290 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10291 * ravenscar-thread.c (update_target_observer): Remove global.
10292 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10293
10294 2014-02-12 Tom Tromey <tromey@redhat.com>
10295
10296 * common/rsp-low.c: Update comments.
10297 * common/rsp-low.h: Update comments.
10298
10299 2014-02-12 Tom Tromey <tromey@redhat.com>
10300
10301 * common/rsp-low.c (convert_ascii_to_int): Remove.
10302 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10303
10304 2014-02-12 Tom Tromey <tromey@redhat.com>
10305
10306 * common/rsp-low.h (unhexify): Don't declare.
10307 * common/rsp-low.c (unhexify): Remove.
10308
10309 2014-02-12 Tom Tromey <tromey@redhat.com>
10310
10311 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10312 * common/rsp-low.c (convert_int_to_ascii): Remove.
10313
10314 2014-02-12 Tom Tromey <tromey@redhat.com>
10315
10316 * common/rsp-low.h (hexify): Don't declare.
10317 * common/rsp-low.c (hexify): Remove.
10318
10319 2014-02-12 Tom Tromey <tromey@redhat.com>
10320
10321 * common/rsp-low.c (hexify): Never take strlen of argument.
10322
10323 2014-02-12 Tom Tromey <tromey@redhat.com>
10324
10325 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10326 * remote.c (extended_remote_run, remote_rcmd)
10327 (remote_download_trace_state_variable, remote_save_trace_data)
10328 (remote_set_trace_notes): Update.
10329 * tracepoint.c (encode_source_string, tfile_write_status)
10330 (tfile_write_uploaded_tsv): Update.
10331
10332 2014-02-12 Tom Tromey <tromey@redhat.com>
10333
10334 * tracepoint.c: Include rsp-low.h.
10335 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10336 * remote.c: Include rsp-low.h.
10337 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10338 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10339 (remote_unescape_input): Move to common/rsp-low.c.
10340 * common/rsp-low.h: New file.
10341 * common/rsp-low.c: New file.
10342 * Makefile.in (SFILES): Add common/rsp-low.c.
10343 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10344 (COMMON_OBS): Add rsp-low.o.
10345 (rsp-low.o): New target.
10346
10347 2014-02-12 Tom Tromey <tromey@redhat.com>
10348
10349 * utils.h: Include print-utils.h.
10350 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10351 (int_string, core_addr_to_string, core_addr_to_string_nz)
10352 (hex_string, hex_string_custom): Don't declare.
10353 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10354 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10355 (hex_string_custom, int_string, core_addr_to_string)
10356 (core_addr_to_string_nz, host_address_to_string): Move to
10357 common/print-utils.c.
10358 * common/print-utils.h: New file.
10359 * common/print-utils.c: New file
10360 * Makefile.in (SFILES): Add common/print-utils.c.
10361 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10362 (COMMON_OBS): Add print-utils.o.
10363 (print-utils.o): New target.
10364
10365 2014-02-12 Tom Tromey <tromey@redhat.com>
10366
10367 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10368
10369 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10370
10371 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10372
10373 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10374
10375 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10376 if a PT_IO ptrace request returns sucessfully but indicates that 0
10377 bytes were transferred.
10378
10379 2014-02-12 Pedro Alves <palves@redhat.com>
10380 Kevin Buettner <kevinb@redhat.com>
10381
10382 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10383 TYPE_INSTANCE_FLAG_CODE_SPACE.
10384
10385 2014-02-12 Pedro Alves <palves@redhat.com>
10386
10387 * h8300-tdep.c (pseudo_from_raw_register)
10388 (raw_from_pseudo_register): New functions.
10389 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10390 them.
10391
10392 2014-02-12 Pedro Alves <palves@redhat.com>
10393
10394 * h8300-tdep.c (h8300_register_sim_regno): New function.
10395 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10396 gdbarch_register_sim_regno hook.
10397
10398 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10399
10400 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10401
10402 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10403
10404 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10405
10406 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10407
10408 * obsd-tdep.h (obsd_init_abi): New prototype.
10409 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10410 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10411 (obsd_init_abi): New functions.
10412 * i386obsd-tdep.c: Include "obsd-tdep.h".
10413 (i386obsd_init_abi): Call obsd_init_abi.
10414 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10415 (amd64obsd_init_abi): Call obsd_init_abi.
10416 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10417 obsd-tdep.c to gdb_target_obs.
10418
10419 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10420
10421 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10422 double float arguments to 16-byte in the argument slots.
10423
10424 2014-02-11 Doug Evans <xdje42@gmail.com>
10425
10426 * configure.ac: Don't crash if pkg-config is not found and guile
10427 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10428 in guile checks.
10429 * configure: Regenerate.
10430
10431 2014-02-11 Yao Qi <yao@codesourcery.com>
10432
10433 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10434 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10435 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10436 * gnu-nat.c (gnu_xfer_memory): Likewise.
10437 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10438 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10439 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10440 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10441
10442 2014-02-11 Yao Qi <yao@codesourcery.com>
10443
10444 * target.h (enum target_xfer_error): Rename to ...
10445 (enum target_xfer_status): ... it. New. All users updated.
10446 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10447 New.
10448 (TARGET_XFER_STATUS_ERROR_P): New macro.
10449 (target_xfer_error_to_string): Remove declaration.
10450 (target_xfer_status_to_string): Declare.
10451 (target_xfer_partial_ftype): Adjust it.
10452 (struct target_ops) <to_xfer_partial>: Return
10453 target_xfer_status. Add argument xfered_len. Update
10454 comments.
10455 * target.c (target_xfer_error_to_string): Rename to ...
10456 (target_xfer_status_to_string): ... it. New. All callers
10457 updated.
10458 (target_read_live_memory): Likewise. Call target_xfer_partial
10459 instead of target_read.
10460 (memory_xfer_live_readonly_partial): Return
10461 target_xfer_status. Add argument xfered_len.
10462 (raw_memory_xfer_partial): Likewise.
10463 (memory_xfer_partial_1): Likewise.
10464 (memory_xfer_partial): Likewise.
10465 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10466 properly. Update debug message.
10467 (default_xfer_partial, current_xfer_partial): Likewise.
10468 (target_write_partial): Likewise.
10469 (target_read_partial): Likewise. All callers updated.
10470 (read_whatever_is_readable): Likewise.
10471 (target_write_with_progress): Likewise.
10472 (target_read_alloc_1): Likewise.
10473
10474 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10475 * auxv.c (procfs_xfer_auxv): Likewise.
10476 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10477 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10478 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10479 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10480 * corefile.c (read_memory): Adjust.
10481 * corelow.c (core_xfer_partial): Likewise.
10482 * ctf.c (ctf_xfer_partial): Likewise.
10483 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10484 updated.
10485 (darwin_xfer_partial): Likewise.
10486 * exec.c (section_table_xfer_memory_partial): Likewise. All
10487 callers updated.
10488 (exec_xfer_partial): Likewise.
10489 * exec.h (section_table_xfer_memory_partial): Update
10490 declaration.
10491 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10492 negative.
10493 (gnu_xfer_partial): Likewise.
10494 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10495 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10496 (ia64_hpux_xfer_solib_got): Likewise.
10497 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10498 type of 'partial_len' to ULONGEST.
10499 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10500 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10501 (linux_nat_xfer_partial): Likewise.
10502 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10503 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10504 * monitor.c (monitor_xfer_memory): Likewise.
10505 (monitor_xfer_partial): Likewise.
10506 * procfs.c (procfs_xfer_partial): Likewise.
10507 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10508 * record-full.c (record_full_xfer_partial): Likewise.
10509 (record_full_core_xfer_partial): Likewise.
10510 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10511 (gdbsim_xfer_partial): Likewise.
10512 * remote.c (remote_write_bytes_aux): Likewise. All callers
10513 updated.
10514 (remote_write_bytes, remote_read_bytes): Likewise. All
10515 callers updated.
10516 (remote_flash_erase): Likewise. All callers updated.
10517 (remote_write_qxfer): Likewise. All callers updated.
10518 (remote_read_qxfer): Likewise. All callers updated.
10519 (remote_xfer_partial): Likewise.
10520 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10521 (rs6000_xfer_shared_libraries): Likewise.
10522 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10523 (sol_thread_xfer_partial): Likewise.
10524 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10525 (sparc_xfer_partial): Likewise.
10526 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10527 updated.
10528 (spu_xfer_partial): Likewise.
10529 * spu-multiarch.c (spu_xfer_partial): Likewise.
10530 * tracepoint.c (tfile_xfer_partial): Likewise.
10531 * windows-nat.c (windows_xfer_memory): Likewise.
10532 (windows_xfer_shared_libraries): Likewise.
10533 (windows_xfer_partial): Likewise.
10534 * valprint.c: Replace 'target_xfer_error' with
10535 'target_xfer_status' in comments.
10536
10537 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10538
10539 Checked in by Joel Brobecker <brobecker@adacore.com>.
10540 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10541
10542 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10543
10544 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10545 function parameters.
10546
10547 2014-02-10 Will Newton <will.newton@linaro.org>
10548
10549 * elfread.c (elf_rel_plt_read): Look for a .got section if
10550 looking up .got.plt fails.
10551 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10552 on address passed to elf_gnu_ifunc_record_cache.
10553 (elf_gnu_ifunc_resolve_addr): Likewise.
10554 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10555
10556 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10557
10558 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10559 (X_RETTURN): New macro.
10560 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10561
10562 * sparc64-tdep.c (sparc64_init_abi): Hook
10563 sparc_in_function_epilogue_p.
10564
10565 2014-02-10 Gary Benson <gbenson@redhat.com>
10566
10567 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10568 Rename name_matcher to symbol_matcher.
10569
10570 2014-02-10 Gary Benson <gbenson@redhat.com>
10571
10572 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10573 Use expand_symtabs_file_matcher_ftype and
10574 expand_symtabs_symbol_matcher_ftype.
10575
10576 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10577
10578 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10579 (struct ada_symbol_cache): New.
10580 (ada_free_symbol_cache): Forward declare.
10581 (struct ada_pspace_data): New.
10582 (ada_pspace_data_handle): New static global.
10583 (get_ada_pspace_data, ada_pspace_data_cleanup)
10584 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10585 (cache_space, cache): Delete, now folded inside struct
10586 ada_pspace_data.
10587 (ada_get_symbol_cache): New function.
10588 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10589 implementation.
10590 (_initialize_ada_language): Remove initialization of cache_space.
10591 Move call to observer_attach_inferior_exit up, grouping it
10592 with the other observer registrations inside this function.
10593 Rename command to be more general. Add call to
10594 register_program_space_data_with_cleanup.
10595
10596 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10597
10598 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10599 ada_new_objfile_observer.
10600 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10601 (_initialize_tasks): Update uses of ada_new_objfile_observer
10602 and ada_tasks_normal_stop_observer.
10603
10604 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10605
10606 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10607 returned by the 'Length attribute to integer.
10608
10609 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10610
10611 * ada-lang.c (_initialize_ada_language): Initialize
10612 cache_space obstack.
10613
10614 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10615
10616 * ada-lang.c (HASH_SIZE): New macro.
10617 (struct cache_entry): New type.
10618 (cache_space, cache): New static globals.
10619 (ada_clear_symbol_cache, find_entry): New functions.
10620 (lookup_cached_symbol, cache_symbol): Implement.
10621 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10622 (_initialize_ada_language): Attach ada_new_objfile_observer
10623 and ada_free_objfile_observer.
10624
10625 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10626
10627 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10628 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10629 struct block * parameter.
10630 (ada_lookup_symbol_list_worker): Constify local variable "block".
10631 Remove cast which is no longer necessary.
10632
10633 2014-02-10 Doug Evans <xdje42@gmail.com>
10634
10635 Add Guile as an extension language.
10636 * NEWS: Mention Guile scripting.
10637 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10638 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10639 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10640 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10641 (CLIBS): Add GUILE_LIBS.
10642 (install-guile): New rule.
10643 (guile.o): New rule.
10644 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10645 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10646 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10647 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10648 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10649 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10650 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10651 * configure.ac: New option --with-guile.
10652 * configure: Regenerate.
10653 * config.in: Regenerate.
10654 * auto-load.c: Remove #include "python/python.h". Add #include
10655 "gdb/section-scripts.h".
10656 (source_section_scripts): Handle Guile scripts.
10657 (_initialize_auto_load): Add name of Guile objfile script to
10658 scripts-directory help text.
10659 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10660 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10661 (struct breakpoint): New member scm_bp_object.
10662 * defs.h (enum command_control_type): New value guile_control.
10663 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10664 "extension.h".
10665 (show_user): Update comment.
10666 (_initialize_cli_cmds): Update help text for "show user". Update help
10667 text for max-user-call-depth.
10668 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10669 "extension.h".
10670 (multi_line_command_p): Add guile_control.
10671 (print_command_lines): Handle guile_control.
10672 (execute_control_command, recurse_read_control_structure): Ditto.
10673 (process_next_line): Recognize "guile" commands.
10674 * disasm.c (gdb_disassemble_info): Make non-static.
10675 * disasm.h: #include "dis-asm.h".
10676 (struct gdbarch): Add forward decl.
10677 (gdb_disassemble_info): Declare.
10678 * extension.c: #include "guile/guile.h".
10679 (extension_languages): Add guile.
10680 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10681 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10682 * gdbtypes.c (get_unsigned_type_max): New function.
10683 (get_signed_type_minmax): New function.
10684 * gdbtypes.h (get_unsigned_type_max): Declare.
10685 (get_signed_type_minmax): Declare.
10686 * guile/README: New file.
10687 * guile/guile-internal.h: New file.
10688 * guile/guile.c: New file.
10689 * guile/guile.h: New file.
10690 * guile/scm-arch.c: New file.
10691 * guile/scm-auto-load.c: New file.
10692 * guile/scm-block.c: New file.
10693 * guile/scm-breakpoint.c: New file.
10694 * guile/scm-disasm.c: New file.
10695 * guile/scm-exception.c: New file.
10696 * guile/scm-frame.c: New file.
10697 * guile/scm-gsmob.c: New file.
10698 * guile/scm-iterator.c: New file.
10699 * guile/scm-lazy-string.c: New file.
10700 * guile/scm-math.c: New file.
10701 * guile/scm-objfile.c: New file.
10702 * guile/scm-ports.c: New file.
10703 * guile/scm-pretty-print.c: New file.
10704 * guile/scm-safe-call.c: New file.
10705 * guile/scm-string.c: New file.
10706 * guile/scm-symbol.c: New file.
10707 * guile/scm-symtab.c: New file.
10708 * guile/scm-type.c: New file.
10709 * guile/scm-utils.c: New file.
10710 * guile/scm-value.c: New file.
10711 * guile/lib/gdb.scm: New file.
10712 * guile/lib/gdb/boot.scm: New file.
10713 * guile/lib/gdb/experimental.scm: New file.
10714 * guile/lib/gdb/init.scm: New file.
10715 * guile/lib/gdb/iterator.scm: New file.
10716 * guile/lib/gdb/printing.scm: New file.
10717 * guile/lib/gdb/types.scm: New file.
10718 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10719 (VPATH): Add $(GUILE_SRCDIR).
10720 (GUILE_DIR): New variable.
10721 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10722 (all): Add stamp-guile dependency.
10723 (stamp-guile): New rule.
10724 (clean-guile, install-guile, uninstall-guile): New rules.
10725 (install-only): Add install-guile dependency.
10726 (uninstall): Add uninstall-guile dependency.
10727 (clean): Add clean-guile dependency.
10728
10729 2014-02-09 Doug Evans <xdje42@gmail.com>
10730
10731 Revert this patch (which I approved, mea culpa).
10732
10733 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10734
10735 * Makefile.in (all-lib): Remove.
10736 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10737
10738 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10739
10740 Fix Python stack corruption.
10741 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10742 gdb_py_longest.
10743
10744 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10745
10746 * Makefile.in (all-lib): Remove.
10747 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10748
10749 2014-02-07 Doug Evans <dje@google.com>
10750
10751 * extension-priv.h (extension_language_script_ops): Add comment.
10752 (extension_language_ops): Add comment.
10753 (active_ext_lang_state): Fix typo in comment.
10754
10755 2014-02-07 Pedro Alves <palves@redhat.com>
10756
10757 PR breakpoints/16292
10758 * infrun.c (handle_signal_stop) <signal arrives while stepping
10759 over a breakpoint>: Switch back to the stepping thread.
10760
10761 2014-02-07 Yao Qi <yao@codesourcery.com>
10762
10763 * target.c (target_xfer_partial): Return zero if LEN is zero.
10764
10765 2014-02-07 Yao Qi <yao@codesourcery.com>
10766
10767 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10768 (ld_so_xfer_auxv): Likewise.
10769 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10770 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10771 * corelow.c (core_xfer_partial): Likewise.
10772 * ctf.c (ctf_xfer_partial): Likewise.
10773 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10774 (darwin_xfer_partial): Likewise.
10775 * exec.c (exec_xfer_partial): Likewise.
10776 * gnu-nat.c (gnu_xfer_partial): Likewise.
10777 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10778 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10779 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10780 * linux-nat.c (linux_xfer_siginfo): Likewise.
10781 (linux_proc_xfer_spu): Likewise.
10782 * procfs.c (procfs_xfer_partial): Likewise.
10783 * record-full.c (record_full_xfer_partial): Likewise.
10784 (record_full_core_xfer_partial): Likewise.
10785 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10786 * remote.c (remote_write_qxfer): Likewise.
10787 (remote_write_qxfer, remote_read_qxfer): Likewise.
10788 (remote_xfer_partial): Likewise.
10789 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10790 (rs6000_xfer_shared_libraries): Likewise.
10791 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10792 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10793 (spu_xfer_partial): Likewise.
10794 * target.c (memory_xfer_partial_1): Likewise.
10795 * tracepoint.c (tfile_xfer_partial): Likewise.
10796 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10797 (windows_xfer_partial): Likewise.
10798
10799 2014-02-07 Yao Qi <yao@codesourcery.com>
10800
10801 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10802 comments.
10803 (core_xfer_shared_libraries_aix): Likewise.
10804 * gdbarch.c, gdbarch.h: Regenerated.
10805 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10806 ULONGEST. Change 'len_avail' type to ULONGEST.
10807 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10808 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10809 declaration.
10810 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10811
10812 2014-02-07 Yao Qi <yao@codesourcery.com>
10813
10814 * corefile.c (memory_error): Get 'exception' from ERR and pass
10815 'exception' to throw_error.
10816
10817 2014-02-06 Doug Evans <xdje42@gmail.com>
10818
10819 * configure.ac (libpython checking): Remove all but python.o from
10820 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10821 * configure: Regenerate.
10822
10823 * Makefile.in (SFILES): Add extension.c.
10824 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10825 (COMMON_OBS): Add extension.o.
10826 * extension.h: New file.
10827 * extension-priv.h: New file.
10828 * extension.c: New file.
10829
10830 * python/python-internal.h: #include "extension.h".
10831 (gdbpy_auto_load_enabled): Declare.
10832 (gdbpy_apply_val_pretty_printer): Declare.
10833 (gdbpy_apply_frame_filter): Declare.
10834 (gdbpy_preserve_values): Declare.
10835 (gdbpy_breakpoint_cond_says_stop): Declare.
10836 (gdbpy_breakpoint_has_cond): Declare.
10837 (void source_python_script_for_objfile): Delete.
10838 * python/python.c: #include "extension-priv.h".
10839 Delete inclusion of "observer.h".
10840 (extension_language_python): Moved here and renamed from
10841 script_language_python in py-auto-load.c.
10842 Redefined to be of type extension_language_defn.
10843 (python_extension_script_ops): New global.
10844 (python_extension_ops): New global.
10845 (struct python_env): New member previous_active.
10846 (restore_python_env): Call restore_active_ext_lang.
10847 (ensure_python_env): Call set_active_ext_lang.
10848 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10849 New arg extlang.
10850 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10851 New arg extlang.
10852 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10853 New arg extlang.
10854 (gdbpy_eval_from_control_command): Renamed from
10855 eval_python_from_control_command, made static. New arg extlang.
10856 (gdbpy_source_script) Renamed from source_python_script, made static.
10857 New arg extlang.
10858 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10859 result to int. New arg extlang.
10860 (gdbpy_source_objfile_script): Renamed from
10861 source_python_script_for_objfile, made static. New arg extlang.
10862 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10863 static. New args extlang, extlang_printers. Change result type to
10864 "void".
10865 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10866 static. New arg extlang. Rename arg printers to extlang_printers
10867 and change type to ext_lang_type_printers *.
10868 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10869 static. Replace argument arg with extlang, extlang_printers.
10870 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10871 (!HAVE_PYTHON, source_python_script): Delete.
10872 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10873 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10874 (!HAVE_PYTHON, start_type_printers): Delete.
10875 (!HAVE_PYTHON, apply_type_printers): Delete.
10876 (!HAVE_PYTHON, free_type_printers): Delete.
10877 (_initialize_python): Delete call to observer_attach_before_prompt.
10878 (finalize_python): Set/restore active extension language.
10879 (gdbpy_finish_initialization) Renamed from
10880 finish_python_initialization, made static. New arg extlang.
10881 (gdbpy_initialized): New function.
10882 * python/python.h: #include "extension.h". Delete #include
10883 "value.h", "mi/mi-cmds.h".
10884 (extension_language_python): Declare.
10885 (GDBPY_AUTO_FILE_NAME): Delete.
10886 (enum py_bt_status): Moved to extension.h and renamed to
10887 ext_lang_bt_status.
10888 (enum frame_filter_flags): Moved to extension.h.
10889 (enum py_frame_args): Moved to extension.h and renamed to
10890 ext_lang_frame_args.
10891 (finish_python_initialization): Delete.
10892 (eval_python_from_control_command): Delete.
10893 (source_python_script): Delete.
10894 (apply_val_pretty_printer): Delete.
10895 (apply_frame_filter): Delete.
10896 (preserve_python_values): Delete.
10897 (gdbpy_script_language_defn): Delete.
10898 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10899 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10900
10901 * auto-load.c: #include "extension.h".
10902 (GDB_AUTO_FILE_NAME): Delete.
10903 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10904 (script_language_gdb): Delete, moved to extension.c and renamed to
10905 extension_language_gdb.
10906 (source_gdb_script_for_objfile): Delete.
10907 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10908 (loaded_script): Change type of language member to
10909 struct extension_language_defn *.
10910 (init_loaded_scripts_info): Initialize
10911 unsupported_script_warning_printed.
10912 (maybe_add_script): Make static. Change type of language arg to
10913 struct extension_language_defn *.
10914 (clear_section_scripts): Reset unsupported_script_warning_printed.
10915 (auto_load_objfile_script_1): Rewrite to use extension language API.
10916 (auto_load_objfile_script): Make public. Remove support-compiled-in
10917 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10918 (source_section_scripts): Rewrite to use extension language API.
10919 (load_auto_scripts_for_objfile): Rewrite to use
10920 auto_load_scripts_for_objfile.
10921 (collect_matching_scripts_data): Change type of language member to
10922 struct extension_language_defn *.
10923 (auto_load_info_scripts): Change type of language arg to
10924 struct extension_language_defn *.
10925 (unsupported_script_warning_print): New function.
10926 (script_not_found_warning_print): Make static.
10927 (_initialize_auto_load): Rewrite construction of scripts-directory
10928 help.
10929 * auto-load.h (struct objfile): Add forward decl.
10930 (struct script_language): Delete.
10931 (struct auto_load_pspace_info): Add forward decl.
10932 (struct extension_language_defn): Add forward decl.
10933 (maybe_add_script): Delete.
10934 (auto_load_objfile_script): Declare.
10935 (script_not_found_warning_print): Delete.
10936 (auto_load_info_scripts): Update prototype.
10937 (auto_load_gdb_scripts_enabled): Declare.
10938 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10939 auto_load_python_scripts_enabled and made public.
10940 (script_language_python): Delete, moved to python.c.
10941 (gdbpy_script_language_defn): Delete.
10942 (info_auto_load_python_scripts): Update to use
10943 extension_language_python.
10944
10945 * breakpoint.c (condition_command): Replace call to
10946 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10947 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10948 with call to breakpoint_ext_lang_cond_says_stop.
10949 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10950 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10951 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10952 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10953 New arg slang.
10954 (local_setattro): Print name of extension language with existing
10955 stop condition.
10956
10957 * valprint.c (val_print, value_print): Update to call
10958 apply_ext_lang_val_pretty_printer.
10959 * cp-valprint.c (cp_print_value): Update call to
10960 apply_ext_lang_val_pretty_printer.
10961 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10962 (gdbpy_apply_val_pretty_printer): Renamed from
10963 apply_val_pretty_printer. New arg extlang.
10964 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10965
10966 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10967 extension language API.
10968 * cli/cli-script.c (execute_control_command): Update to call
10969 eval_ext_lang_from_control_command.
10970
10971 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10972 enum ext_lang_bt_status values. Update call to
10973 apply_ext_lang_frame_filter.
10974 (mi_cmd_stack_list_locals): Ditto.
10975 (mi_cmd_stack_list_args): Ditto.
10976 (mi_cmd_stack_list_variables): Ditto.
10977 * mi/mi-main.c: Delete #include "python/python-internal.h".
10978 Add #include "extension.h".
10979 (mi_cmd_list_features): Replace reference to python internal variable
10980 gdb_python_initialized with call to ext_lang_initialized_p.
10981
10982 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10983 Update to use enum ext_lang_frame_args. Update to call
10984 apply_ext_lang_frame_filter.
10985 * python/py-framefilter.c (extract_sym): Update to use enum
10986 ext_lang_bt_status.
10987 (extract_value, py_print_type, py_print_value): Ditto.
10988 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10989 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10990 (py_print_frame): Ditto.
10991 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10992 New arg extlang. Update to use enum ext_lang_bt_status.
10993
10994 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10995 finish_python_initialization. Replace with call to
10996 finish_ext_lang_initialization.
10997
10998 * typeprint.c (do_free_global_table): Update to call
10999 free_ext_lang_type_printers.
11000 (create_global_typedef_table): Update to call
11001 start_ext_lang_type_printers.
11002 (find_global_typedef): Update to call apply_ext_lang_type_printers.
11003 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
11004 (type_print_options): Change type of global_printers from "void *"
11005 to "struct ext_lang_type_printers *".
11006
11007 * value.c (preserve_values): Update to call preserve_ext_lang_values.
11008 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
11009 (gdbpy_preserve_values): Renamed from preserve_python_values.
11010 New arg extlang.
11011 (!HAVE_PYTHON, preserve_python_values): Delete.
11012
11013 * utils.c (quit_flag): Delete, moved to extension.c.
11014 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
11015 extension.c.
11016
11017 * eval.c: Delete #include "python/python.h".
11018 * main.c: Delete #include "python/python.h".
11019
11020 * defs.h: Update comment.
11021
11022 2014-02-06 Joel Brobecker <brobecker@adacore.com>
11023
11024 GDB 7.7 released.
11025
11026 2014-02-05 Mark Kettenis <kettenis@gnu.org>
11027
11028 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
11029 defined.
11030
11031 2014-02-05 Yao Qi <yao@codesourcery.com>
11032
11033 * remote.c (remote_pass_signals): Remove local 'buf' and use
11034 rs->buf.
11035 (remote_program_signals): Likewise.
11036
11037 2014-02-05 Yao Qi <yao@codesourcery.com>
11038
11039 * ctf.c: Include "inferior.h" and "gdbthread.h".
11040 (CTF_PID): A new macro.
11041 (ctf_open): Call inferior_appeared and add_thread_silent.
11042 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
11043 (ctf_thread_alive): New function.
11044 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
11045
11046 2014-02-05 Yao Qi <yao@codesourcery.com>
11047
11048 Revert this patch:
11049
11050 2013-05-24 Yao Qi <yao@codesourcery.com>
11051
11052 * tracepoint.c (TFILE_PID): Remove.
11053 (tfile_open): Don't add thread and inferior.
11054 (tfile_close): Don't set 'inferior_ptid'. Don't call
11055 exit_inferior_silent.
11056 (tfile_thread_alive): Remove.
11057 (init_tfile_ops): Don't set field 'to_thread_alive' of
11058 tfile_ops.
11059
11060 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
11061
11062 * remote.c (remote_start_remote): Call remote_check_symbols even
11063 if only symbol-file (not file) has been given.
11064
11065 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11066
11067 * gdbarch.sh (skip_entrypoint): New callback.
11068 * gdbarch.c, gdbarch.h: Regenerate.
11069 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
11070 * infrun.c (fill_in_stop_func): Likewise.
11071 * ppc-linux-tdep.c: Include "elf/ppc64.h".
11072 (ppc_elfv2_elf_make_msymbol_special): New function.
11073 (ppc_elfv2_skip_entrypoint): Likewise.
11074 (ppc_linux_init_abi): Install them for ELFv2.
11075
11076 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11077
11078 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11079 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11080 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11081 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11082 structures returned in GPRs.
11083
11084 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11085
11086 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11087 offset to the stack parameter list for the ELFv2 ABI.
11088
11089 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11090
11091 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11092 set_gdbarch_convert_from_func_ptr_addr and
11093 set_gdbarch_elf_make_msymbol_special for ELFv1.
11094 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11095 function descriptors on ELFv1.
11096 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11097 set up r12 at function entry.
11098
11099 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11100
11101 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11102 (struct gdbarch_tdep): New member elf_abi.
11103
11104 * rs6000-tdep.c: Include "elf/ppc64.h".
11105 (rs6000_gdbarch_init): Detect ELF ABI version.
11106
11107 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11108
11109 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11110 within a register pair holding a DFP 128-bit value on little-endian.
11111 (ppc64_sysv_abi_return_value_base): Likewise.
11112 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11113 (dfp_pseudo_register_write): Likewise.
11114
11115 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11116
11117 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11118 offset on little-endian when passing _Decimal32.
11119 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11120
11121 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11122
11123 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11124 of the overlapped FP register within the VSX register on little-
11125 endian platforms.
11126 (efpr_pseudo_register_write): Likewise.
11127
11128 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11129
11130 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11131 offset on little-endian when passing small structures.
11132
11133 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11134
11135 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11136 (struct ppc64_sysv_argpos): New data structure.
11137 (ppc64_sysv_abi_push_float): Remove.
11138 (ppc64_sysv_abi_push_val): New function.
11139 (ppc64_sysv_abi_push_integer): Likewise.
11140 (ppc64_sysv_abi_push_freg): Likewise.
11141 (ppc64_sysv_abi_push_vreg): Likewise.
11142 (ppc64_sysv_abi_push_param): Likewise.
11143 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11144 (ppc64_sysv_abi_return_value_base): New function.
11145 (ppc64_sysv_abi_return_value): Refactor to use it.
11146
11147 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11148
11149 * NEWS: Document new target powerpc64le-*-linux*.
11150
11151 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11152
11153 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11154 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11155 core dumps.
11156 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11157 register set used in ELF core dumps. Add floating-point register set.
11158
11159 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11160
11161 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11162 dwarf2_to_gdb[] table using symbolic constants. Adjust
11163 penultimate entry from number representing the PC register
11164 to symbolic constant representing the MDR register. Add
11165 constant for the PC register to the end of the table.
11166
11167 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11168
11169 * bsd-kvm.c: Include <sys/param.h>
11170
11171 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11172
11173 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11174
11175 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11176
11177 * ada-lang.h (clear_ada_sym_cache): Delete.
11178
11179 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11180
11181 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11182
11183 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11184
11185 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11186 the sigreturn register save area only if the syscall is
11187 sigreturn.
11188
11189 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11190
11191 * valops.c (value_slice): Minor reformatting.
11192
11193 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11194
11195 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11196
11197 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11198
11199 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11200 New static globals.
11201 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11202 (ada_ignore_descriptive_types_p): New static global.
11203 (find_parallel_type_by_descriptive_type): Return immediately
11204 if ada_ignore_descriptive_types_p is set.
11205 (_initialize_ada_language): Register new commands "maintenance
11206 set ada", "maintenance show ada", "maintenance set ada
11207 ignore-descriptive-types" and "maintenance show ada
11208 ignore-descriptive-types".
11209 * NEWS: Add entry for new "maint ada set/show
11210 ignore-descriptive-types" commands.
11211
11212 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11213
11214 * record-btrace.c (record_btrace_close): Call btrace_teardown
11215 for all threads.
11216
11217 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11218
11219 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11220 "ui-out.h".
11221
11222 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11223
11224 * ada-typeprint (type_is_full_subrange_of_target_type):
11225 New function.
11226 (print_range): Add parameter bounds_prefered_p. If not set,
11227 try printing range types using the name of their base type.
11228 (print_range_type): Add parameter bounds_prefered_p.
11229 Use it in call to print_range.
11230 (print_array_type, ada_print_type): Update calls to print_range
11231 and print_range_type.
11232
11233 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11234
11235 * ada-typeprint.c (print_array_type, print_choices, print_range)
11236 (print_range_bound, print_dynamic_range_bound, print_range_type):
11237 Remove declaration.
11238
11239 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11240
11241 * ada-typeprint.c (print_range): Add missing empty line
11242 after local declaration.
11243
11244 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11245
11246 * ada-valprint.c (print_optional_low_bound): Get index_type's
11247 target type for as long as it is a TYPE_CODE_RANGE.
11248
11249 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11250
11251 * procfs.c (procfs_make_note_section): Remove assertion and
11252 associated comment.
11253
11254 2014-01-24 Yao Qi <yao@codesourcery.com>
11255
11256 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11257 * corelow.c (get_core_siginfo): Likewise.
11258
11259 2014-01-24 Yao Qi <yao@codesourcery.com>
11260
11261 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11262 ULONGEST. Don't check 'len' is negative.
11263 (remote_write_bytes): Change type of 'len' to ULONGEST.
11264
11265 2014-01-23 Tom Tromey <tromey@redhat.com>
11266
11267 PR python/16485:
11268 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11269 Handle exception from frame.block.
11270 (FrameVars.fetch_frame_locals): Likewise.
11271
11272 2014-01-23 Tom Tromey <tromey@redhat.com>
11273
11274 PR python/16487:
11275 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11276 on a NULL pointer. Move "goto error" to correct place.
11277
11278 2014-01-23 Tom Tromey <tromey@redhat.com>
11279
11280 PR python/16491:
11281 * python/py-framefilter.c (apply_frame_filter): Call
11282 ensure_python_env after computing gdbarch.
11283
11284 2014-01-23 Yao Qi <yao@codesourcery.com>
11285
11286 * target.c (raw_memory_xfer_partial): Change argument type
11287 from void * to gdb_byte *.
11288 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11289
11290 2014-01-22 Doug Evans <dje@google.com>
11291
11292 New gdbserver option --debug-format=timestamp.
11293 * NEWS: Mention it.
11294
11295 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11296
11297 * syscalls/s390x-linux.xml: New file.
11298 * syscalls/s390-linux.xml: New file.
11299 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11300 (XML_SYSCALL_FILENAME_S390X): Likewise.
11301 (op_svc): New enum value for SVC opcode.
11302 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11303 (s390_linux_get_syscall_number): New function.
11304 (s390_gdbarch_init): Register '*get_syscall_number' and the
11305 syscall xml file name.
11306 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11307 "s390-linux.xml" and "s390x-linux.xml".
11308 * NEWS: Announce new feature.
11309
11310 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11311
11312 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11313
11314 2014-01-22 Pedro Alves <palves@redhat.com>
11315
11316 * xtensa-config.c: Include defs.h.
11317
11318 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11319
11320 * common/common-utils.h: Add "ARI:" comment beside __func__
11321 reference.
11322
11323 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11324
11325 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11326 documentation a bit.
11327
11328 2014-01-21 Roland McGrath <mcgrathr@google.com>
11329
11330 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11331 * configure: Regenerate.
11332 * aclocal.m4: Regenerate.
11333 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11334 New substituted variables.
11335 (install-strip): New target.
11336 (INSTALL_SCRIPT): New substituted variable.
11337 (FLAGS_TO_PASS): Add it.
11338 (install-only): Use $(INSTALL_SCRIPT) rather than
11339 $(INSTALL_PROGRAM) for gcore.
11340
11341 2014-01-20 Tom Tromey <tromey@redhat.com>
11342
11343 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11344 together.
11345
11346 2014-01-20 Tom Tromey <tromey@redhat.com>
11347
11348 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11349 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11350 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11351 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11352 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11353 (struct cmd_list_element) <flags>: Remove.
11354 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11355 doc_allocated>: New fields.
11356 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11357 bitfields.
11358 * maint.c (maintenance_do_deprecate): Update.
11359 * top.c (execute_command): Update.
11360
11361 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11362
11363 * xtensa-linux-nat.c: Include asm/ptrace.h.
11364
11365 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11366
11367 * Makefile.in (SFILES): Add d-support.c.
11368 (COMMON_OBS): Add d-support.o.
11369 * d-lang.h (d_parse_symbol): Add comment, now defined in
11370 d-support.c.
11371 * d-lang.c (parse_call_convention)
11372 (parse_attributes, parse_function_types)
11373 (parse_function_args, parse_type, parse_identifier)
11374 (call_convention_p, d_parse_symbol): Move functions to ...
11375 * d-support.c: ... New file.
11376
11377 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11378
11379 * d-lang.h (d_parse_symbol): Add declaration.
11380 * d-lang.c (extract_identifiers)
11381 (extract_type_info): Remove functions.
11382 (parse_call_convention, parse_attributes)
11383 (parse_function_types, parse_function_args)
11384 (parse_type, parse_identifier, call_convention_p)
11385 (d_parse_symbol): New functions.
11386 (d_demangle): Use d_parse_symbol to demangle D symbols.
11387
11388 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11389
11390 * d-lang.h (struct builtin_d_type): New data type.
11391 (builtin_d_type): Add declaration.
11392 * d-lang.c (d_language_arch_info, build_d_types)
11393 (builtin_d_type): New functions.
11394 (enum d_primitive_types): New data type.
11395 (d_language_defn): Change c_language_arch_info to
11396 d_language_arch_info.
11397 (d_type_data): New static variable.
11398 (_initialize_d_language): Initialize d_type_data.
11399
11400 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11401
11402 * d-lang.h (d_main_name): Add declaration.
11403 * d-lang.c (d_main_name): New function.
11404 * symtab.c (find_main_name): Add call to d_main_name.
11405
11406 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11407
11408 * d-lang.c (d_language_defn): Change macro_expansion_c to
11409 macro_expansion_no.
11410
11411 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11412
11413 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11414
11415 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11416
11417 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11418 gdb_exception" declaration.
11419 * remote.c (getpkt_or_notif_sane): Likewise.
11420
11421 2014-01-17 Doug Evans <dje@google.com>
11422
11423 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11424 function, contents of dirnames_to_char_ptr_vec_append moved here.
11425 (delim_string_to_char_ptr_vec): New function.
11426 (dirnames_to_char_ptr_vec_append): Rewrite.
11427 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11428
11429 2014-01-17 Doug Evans <dje@google.com>
11430
11431 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11432 and moved here ...
11433 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11434 #include "common-utils.h".
11435 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11436 * common/vec.h (VEC_ASSERT_PASS): Update.
11437 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11438 (MACH_CHECK_ERROR): Update.
11439
11440 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11441
11442 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11443 comments.
11444 * gdbarch.h: Regenerate.
11445
11446 2014-01-16 Tom Tromey <tromey@redhat.com>
11447
11448 * value.c (struct value) <regnum>: Move earlier.
11449
11450 2014-01-16 Tom Tromey <tromey@redhat.com>
11451
11452 * remote.c (extended_remote_create_inferior): Rename from
11453 extended_remote_create_inferior_1. Add "ops" argument. Remove
11454 old implementation.
11455
11456 2014-01-16 Pedro Alves <palves@redhat.com>
11457
11458 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11459 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11460 the backchain.
11461
11462 2014-01-16 Doug Evans <dje@google.com>
11463
11464 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11465
11466 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11467
11468 * btrace.h (btrace_thread_flag): New.
11469 (struct btrace_thread_info) <flags>: New.
11470 * record-btrace.c (record_btrace_resume_thread)
11471 (record_btrace_find_thread_to_move, btrace_step_no_history)
11472 (btrace_step_stopped, record_btrace_start_replaying)
11473 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11474 (record_btrace_find_resume_thread): New.
11475 (record_btrace_resume, record_btrace_wait): Extend.
11476 (record_btrace_can_execute_reverse): New.
11477 (record_btrace_open): Fail in non-stop mode.
11478 (record_btrace_set_replay): Split into this, ...
11479 (record_btrace_stop_replaying): ... this, ...
11480 (record_btrace_clear_histories): ... and this.
11481 (init_record_btrace_ops): Init to_can_execute_reverse.
11482 * NEWS: Announce it.
11483
11484 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11485
11486 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11487 (forward_target_decr_pc_after_break)
11488 (target_decr_pc_after_break): New.
11489 * target.c (forward_target_decr_pc_after_break)
11490 (target_decr_pc_after_break): New.
11491 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11492 instead of gdbarch_decr_pc_after_break.
11493 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11494 instead of gdbarch_decr_pc_after_break.
11495 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11496 instead of gdbarch_decr_pc_after_break.
11497 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11498 instead of gdbarch_decr_pc_after_break.
11499 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11500 instead of gdbarch_decr_pc_after_break.
11501 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11502 instead of gdbarch_decr_pc_after_break.
11503
11504 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11505
11506 * btrace.c: Include regcache.h.
11507 (btrace_add_pc): New.
11508 (btrace_enable): Call btrace_add_pc.
11509 (btrace_is_empty): New.
11510 * btrace.h (btrace_is_empty): New.
11511 * record-btrace.c (require_btrace, record_btrace_info): Call
11512 btrace_is_empty.
11513
11514 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11515
11516 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11517 Support delta reads.
11518 (linux_disable_btrace): Change return type.
11519 * common/linux-btrace.h (linux_read_btrace): Change parameters
11520 and return type to allow error reporting. Update users.
11521 (linux_disable_btrace): Change return type. Update users.
11522 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11523 New.
11524 (btrace_error): New.
11525 (btrace_block) <begin>: Comment on BEGIN == 0.
11526 * btrace.c (btrace_compute_ftrace): Start from the end of
11527 the current trace.
11528 (btrace_stitch_trace, btrace_clear_history): New.
11529 (btrace_fetch): Read delta trace, return if replaying.
11530 (btrace_clear): Move clear history code to btrace_clear_history.
11531 (parse_xml_btrace): Throw an error if parsing failed.
11532 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11533 and return type to allow error reporting.
11534 (target_read_btrace): Change parameters and return type to allow
11535 error reporting.
11536 * target.c (target_read_btrace): Update.
11537 * remote.c (remote_read_btrace): Support delta reads. Pass
11538 errors on.
11539 * NEWS: Announce it.
11540
11541 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11542
11543 * record.h (record_btrace_frame_unwind)
11544 (record_btrace_tailcall_frame_unwind): New declarations.
11545 * dwarf2-frame: Include record.h
11546 (dwarf2_frame_cfa): Throw an error for btrace frames.
11547 * record-btrace.c: Include hashtab.h.
11548 (btrace_get_bfun_name): New.
11549 (btrace_call_history): Call btrace_get_bfun_name.
11550 (struct btrace_frame_cache): New.
11551 (bfcache): New.
11552 (bfcache_hash, bfcache_eq, bfcache_new): New.
11553 (btrace_get_frame_function): New.
11554 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11555 (record_btrace_frame_this_id): Compute own id.
11556 (record_btrace_frame_prev_register): Provide PC, throw_error
11557 for all other registers.
11558 (record_btrace_frame_sniffer): Detect btrace frames.
11559 (record_btrace_tailcall_frame_sniffer): New.
11560 (record_btrace_frame_dealloc_cache): New.
11561 (record_btrace_frame_unwind): Add new functions.
11562 (record_btrace_tailcall_frame_unwind): New.
11563 (_initialize_record_btrace): Allocate cache.
11564 * btrace.c (btrace_clear): Call reinit_frame_cache.
11565 * NEWS: Announce it.
11566
11567 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11568
11569 * record-btrace.c (record_btrace_set_replay)
11570 (record_btrace_goto_begin, record_btrace_goto_end)
11571 (record_btrace_goto): New.
11572 (init_record_btrace_ops): Initialize them.
11573 * NEWS: Announce it.
11574
11575 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11576
11577 * record-btrace.c (record_btrace_find_new_threads)
11578 (record_btrace_thread_alive): New.
11579 (init_record_btrace_ops): Initialize to_find_new_threads and
11580 to_thread_alive.
11581
11582 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11583
11584 * record-btrace.c (record_btrace_resume): New.
11585 (record_btrace_wait): New.
11586 (init_record_btrace_ops): Initialize to_wait and to_resume.
11587
11588 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11589
11590 * record-btrace.c (record_btrace_xfer_partial)
11591 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11592 (record_btrace_allow_memory_access): New.
11593 (init_record_btrace_ops): Initialize new methods.
11594 * target.c (raw_memory_xfer_partial): Bail out if target reports
11595 that this memory is not available.
11596
11597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11598
11599 * target.h (target_ops) <to_insert_breakpoint>
11600 <to_remove_breakpoint>: Add target_ops parameter.
11601 (forward_target_insert_breakpoint): New.
11602 (forward_target_remove_breakpoint): New.
11603 (memory_remove_breakpoint, memory_insert_breakpoint):
11604 Add target_ops parameter.
11605 * target.c (target_insert_breakpoint): Split into this and ...
11606 (forward_target_insert_breakpoint): ... this.
11607 (target_remove_breakpoint): Split into this and ...
11608 (forward_target_remove_breakpoint): ... this.
11609 (debug_to_insert_breakpoint): Add target_ops parameter.
11610 Call forward_target_insert_breakpoint.
11611 (debug_to_remove_breakpoint): Add target_ops parameter.
11612 Call forward_target_remove_breakpoint.
11613 (update_current_target): Do not inherit or default to_insert_breakpoint
11614 and to_remove_breakpoint.
11615 * corelow.c (ignore): Add target_ops parameter.
11616 * exec.c (ignore): Add target_ops parameter.
11617 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11618 Add target_ops parameter.
11619 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11620 Add target_ops parameter.
11621 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11622 Add target_ops parameter.
11623 * record-full.c (record_full_beneath_to_insert_breakpoint)
11624 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11625 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11626 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11627 (record_full_core_remove_breakpoint): Add target_ops parameter.
11628 Update users.
11629 (record_full_beneath_to_insert_breakpoint_ops)
11630 (record_full_beneath_to_remove_breakpoint_ops)
11631 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11632 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11633 tmp_to_remove_breakpoint_ops,
11634 record_full_beneath_to_insert_breakpoint_ops, and
11635 record_full_beneath_to_remove_breakpoint_ops.
11636 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11637 (m32r_remove_breakpoint): Add target_ops parameter.
11638 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11639 Add target_ops parameter.
11640 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11641 Add target_ops parameter.
11642
11643 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11644 Markus Metzger <markus.t.metzger@intel.com>
11645
11646 * record-btrace.c: Include frame-unwind.h.
11647 (record_btrace_frame_unwind_stop_reason)
11648 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11649 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11650 New.
11651 (init_record_btrace_ops): Install it.
11652
11653 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11654
11655 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11656 get_prev_frame_1.
11657
11658 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11659
11660 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11661 earlier.
11662
11663 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11664
11665 * frame-unwind.c: Include target.h.
11666 (frame_unwind_try_unwinder): New function with code from ...
11667 (frame_unwind_find_by_frame): ... here. New variable
11668 unwinder_from_target, call also target_get_unwinder)
11669 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11670 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11671 * target.h (struct target_ops): New fields to_get_unwinder and
11672 to_get_tailcall_unwinder.
11673 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11674
11675 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11676
11677 * record-btrace.c (record_btrace_fetch_registers)
11678 (record_btrace_store_registers)
11679 (record_btrace_to_prepare_to_store): New.
11680 (init_record_btrace_ops): Add the above.
11681
11682 2014-01-16 Tom Tromey <tromey@redhat.com>
11683
11684 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11685 * target.h (struct target_ops) <to_prepare_to_store>: Add
11686 argument.
11687 (target_prepare_to_store): Add argument.
11688 * target.c (debug_to_prepare_to_store): Add argument.
11689 (update_current_target): Update.
11690 * remote.c (remote_prepare_to_store): Add 'self' argument.
11691 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11692 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11693 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11694 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11695 argument.
11696 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11697 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11698 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11699 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11700 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11701
11702 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11703
11704 * btrace.h (replay) <replay>: New.
11705 (btrace_is_replaying): New.
11706 * btrace.c (btrace_clear): Free replay iterator.
11707 (btrace_is_replaying): New.
11708 * record-btrace.c (record_btrace_is_replaying): New.
11709 (record_btrace_info): Print insn number if replaying.
11710 (record_btrace_insn_history): Start at replay position.
11711 (record_btrace_call_history): Start at replay position.
11712 (init_record_btrace_ops): Init to_record_is_replaying.
11713
11714 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11715
11716 * record-btrace.c (record_btrace_insn_history_range): Include
11717 end.
11718 (record_btrace_insn_history_from): Adjust range.
11719 (record_btrace_call_history_range): Include
11720 end.
11721 (record_btrace_call_history_from): Adjust range.
11722 * NEWS: Announce changes.
11723
11724 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11725
11726 * record.h (enum record_print_flag)
11727 <record_print_indent_calls>: New.
11728 * record.c (get_call_history_modifiers): Recognize /c modifier.
11729 (_initialize_record): Document /c modifier.
11730 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11731 Reorder fields. Optionally indent the function name. Update
11732 all users.
11733 * NEWS: Announce changes.
11734
11735 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11736
11737 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11738
11739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11740
11741 * btrace.c (ftrace_new_function): Start counting at one.
11742 * record-btrace.c (record_btrace_info): Adjust number of calls
11743 and insns.
11744 * NEWS: Announce it.
11745
11746 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11747
11748 * record-btrace.c (btrace_call_history_insn_range): Print
11749 insn range as [begin, end].
11750
11751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11752
11753 * btrace.h (struct btrace_func_link): New.
11754 (enum btrace_function_flag): New.
11755 (struct btrace_inst): Rename to ...
11756 (struct btrace_insn): ...this. Update all users.
11757 (struct btrace_func) <ibegin, iend>: Remove.
11758 (struct btrace_func_link): New.
11759 (struct btrace_func): Rename to ...
11760 (struct btrace_function): ...this. Update all users.
11761 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11762 (number, level, flags>: New.
11763 (struct btrace_insn_iterator): Rename to ...
11764 (struct btrace_insn_history): ...this.
11765 Update all users.
11766 (struct btrace_insn_iterator, btrace_call_iterator): New.
11767 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11768 (struct btrace_target_info) <begin, end, level>
11769 <insn_history, call_history>: New.
11770 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11771 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11772 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11773 (btrace_call_number, btrace_call_begin, btrace_call_end)
11774 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11775 (btrace_find_function_by_number, btrace_set_insn_history)
11776 (btrace_set_call_history): New.
11777 * btrace.c (btrace_init_insn_iterator)
11778 (btrace_init_func_iterator, compute_itrace): Remove.
11779 (ftrace_print_function_name, ftrace_print_filename)
11780 (ftrace_skip_file): Change
11781 parameter to const.
11782 (ftrace_init_func): Remove.
11783 (ftrace_debug): Use new btrace_function fields.
11784 (ftrace_function_switched): Also consider gaining and
11785 losing symbol information).
11786 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11787 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11788 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11789 New.
11790 (ftrace_new_function): Move. Remove debug print.
11791 (ftrace_update_lines, ftrace_update_insns): New.
11792 (ftrace_update_function): Check for call, ret, and jump.
11793 (compute_ftrace): Renamed to ...
11794 (btrace_compute_ftrace): ...this. Rewritten to compute call
11795 stack.
11796 (btrace_fetch, btrace_clear): Updated.
11797 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11798 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11799 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11800 (btrace_call_number, btrace_call_begin, btrace_call_end)
11801 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11802 (btrace_find_function_by_number, btrace_set_insn_history)
11803 (btrace_set_call_history): New.
11804 * record-btrace.c (require_btrace): Use new btrace thread
11805 info fields.
11806 (record_btrace_info, btrace_insn_history)
11807 (record_btrace_insn_history, record_btrace_insn_history_range):
11808 Use new btrace thread info fields and new iterator.
11809 (btrace_func_history_src_line): Rename to ...
11810 (btrace_call_history_src_line): ...this. Use new btrace
11811 thread info fields.
11812 (btrace_func_history): Rename to ...
11813 (btrace_call_history): ...this. Use new btrace thread info
11814 fields and new iterator.
11815 (record_btrace_call_history, record_btrace_call_history_range):
11816 Use new btrace thread info fields and new iterator.
11817
11818 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11819
11820 * frame.h (frame_id_build_unavailable_stack_special): New.
11821 * frame.c (frame_id_build_unavailable_stack_special): New.
11822
11823 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11824
11825 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11826 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11827 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11828 to gdbarch.
11829 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11830 (i386_insn_is_jump, i386_jmp_p): New.
11831 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11832 insn_is_jump to gdbarch.
11833 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11834 * gdbarch.h: Regenerated.
11835 * gdbarch.c: Regenerated.
11836 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11837 (default_insn_is_jump): New.
11838 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11839 (default_insn_is_jump): New.
11840
11841 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11842
11843 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11844 Change to ...
11845 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11846 (btrace_read_type) <btrace_read_new>: Change to ...
11847 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11848
11849 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11850
11851 * common/linux-btrace.c (linux_read_btrace): Free trace from
11852 previous iteration.
11853
11854 2014-01-15 Doug Evans <dje@google.com>
11855
11856 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11857 uint32_t.
11858
11859 2014-01-15 Tom Tromey <tromey@redhat.com>
11860
11861 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11862 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11863 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11864 (set_objfile_main_name): New function.
11865 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11866 language_of_main>: New fields.
11867 (set_objfile_main_name): Declare.
11868 * symtab.c (find_main_name): Loop over objfiles to find the main
11869 name and language.
11870 (set_main_name): Now static.
11871 (get_main_info): Add comment.
11872 * symtab.h (set_main_name): Don't declare.
11873
11874 2014-01-15 Tom Tromey <tromey@redhat.com>
11875
11876 * symtab.c (main_progspace_key): New global.
11877 (struct main_info): New.
11878 (name_of_main, language_of_main): Remove.
11879 (get_main_info, main_info_cleanup): New function.
11880 (set_main_name, main_name, main_language): Use get_main_info.
11881 (_initialize_symtab): Initialize main_progspace_key.
11882
11883 2014-01-15 Tom Tromey <tromey@redhat.com>
11884
11885 * dbxread.c (process_one_symbol): Update.
11886 * dwarf2read.c (read_partial_die): Update.
11887 * symfile.c (set_initial_language): Call main_language.
11888 * symtab.c (language_of_main): Now static.
11889 (set_main_name): Add 'lang' parameter.
11890 (find_main_name): Update.
11891 (main_language): New function.
11892 (symtab_observer_executable_changed): Update.
11893 * symtab.h (set_main_name): Update.
11894 (language_of_main): Remove.
11895 (main_language): Declare.
11896
11897 2014-01-15 Tom Tromey <tromey@redhat.com>
11898
11899 * symfile.c (init_entry_point_info): Use new "initialized" field.
11900 Update.
11901 * objfiles.h (struct entry_point) <initialized>: New field.
11902 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11903 (struct objfile) <ei>: ...here. Remove.
11904 * objfiles.c (entry_point_address_query): Update.
11905
11906 2014-01-15 Tom Tromey <tromey@redhat.com>
11907
11908 * objfiles.c (entry_point_address_query): Relocate entry point
11909 address.
11910 (objfile_relocate1): Do not relocate entry point address.
11911 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11912 <the_bfd_section_index>: New field.
11913 * symfile.c (init_entry_point_info): Find the entry point's
11914 section.
11915
11916 2014-01-15 Tom Tromey <tromey@redhat.com>
11917
11918 * solib-frv.c (enable_break): Use entry_point_address_query.
11919
11920 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11921
11922 * NEWS: Add note on improved process record-replay on
11923 arm*-linux* targets.
11924
11925 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11926
11927 * arm-tdep.c (enum arm_record_result): New enum.
11928 (arm_record_unsupported_insn): New function.
11929 (arm_record_coproc_data_proc): Removed.
11930 (thumb2_record_ld_st_multiple): New function.
11931 (thumb2_record_ld_st_dual_ex_tbb): New function.
11932 (thumb2_record_data_proc_sreg_mimm): New function.
11933 (thumb2_record_ps_dest_generic): New function.
11934 (thumb2_record_branch_misc_cntrl): New function.
11935 (thumb2_record_str_single_data): New function.
11936 (thumb2_record_ld_mem_hints): New function.
11937 (thumb2_record_ld_word): New function.
11938 (thumb2_record_lmul_lmla_div): New function.
11939 (thumb2_record_decode_insn_handler): New function.
11940 (decode_insn): Add thumb32 instruction handlers.
11941
11942 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11943
11944 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11945 (struct arm_linux_record_tdep): Declare.
11946 (arm_canonicalize_syscall): New function.
11947 (arm_all_but_pc_registers_record): New function.
11948 (arm_linux_syscall_record): New function.
11949 (arm_linux_init_abi): Add syscall recording constructs.
11950 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11951 decoding. (arm_record_coproc_data_proc): Update arm syscall
11952 decoding.
11953 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11954 <arm_syscall_record>: New field.
11955 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11956 gdb_target_obs.
11957
11958 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11959
11960 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11961 register for push instruction recording.
11962
11963 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11964
11965 * arm-tdep.c (thumb_record_misc): Update to correct logical
11966 error while recording ldm, ldmia and pop instructions.
11967
11968 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11969
11970 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11971
11972 2014-01-15 Pedro Alves <palves@redhat.com>
11973
11974 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11975 (go32_resume, go32_fetch_registers, store_register)
11976 (go32_store_registers, go32_prepare_to_store)
11977 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11978 (go32_create_inferior, go32_can_run, go32_terminal_init)
11979 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11980 declarations.
11981
11982 2014-01-15 Tom Tromey <tromey@redhat.com>
11983
11984 * target.h (async_callback_ftype): New typedef.
11985 (struct target_ops) <to_async>: Use it.
11986
11987 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11988
11989 * python/py-value.c (get_field_type): Remove unnecessary curly
11990 braces for single-statement if block.
11991
11992 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11993
11994 * python/py-type.c (convert_field): Add missing empty line
11995 after declarations.
11996
11997 2014-01-14 Doug Evans <dje@google.com>
11998
11999 * symfile.h (expand_symtabs_matching): Renamed from
12000 expand_partial_symbol_names. Update prototype.
12001 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12002 * symfile.c (expand_symtabs_matching): Renamed from
12003 expand_partial_symbol_names. New args file_matcher, kind.
12004 Rename arg fun to symbol_matcher.
12005 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
12006 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
12007 ada_expand_partial_symbol_name.
12008 (ada_make_symbol_completion_list): Update to call
12009 expand_symtabs_matching.
12010 (ada_add_global_exceptions): Call expand_symtabs_matching.
12011 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
12012 call map_symbol_filenames.
12013 * symtab.c (sources_info): Update to call map_symbol_filenames.
12014 (search_symbols): Call expand_symtabs_matching.
12015 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
12016 (default_make_symbol_completion_list_break_on): Update to call
12017 expand_symtabs_matching.
12018 (make_source_files_completion_list): Update to call
12019 map_symbol_filenames.
12020
12021 2014-01-14 Doug Evans <dje@google.com>
12022
12023 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
12024 (expand_symtabs_symbol_matcher_ftype): New typedef.
12025 (quick_symbol_functions.expand_symtabs_matching): Update to use.
12026 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12027 * symfile.c (expand_partial_symbol_names): Update to use
12028 expand_symtabs_symbol_matcher_ftype.
12029 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
12030 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12031 Arg name_matcher renamed to symbol_matcher.
12032 * psymtab.c (recursively_search_psymtabs): Update to use
12033 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
12034 sym_matcher.
12035 (expand_symtabs_matching_via_partial): Update to use
12036 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
12037 Arg name_matcher renamed to symbol_matcher.
12038
12039 2014-01-14 Doug Evans <dje@google.com>
12040
12041 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
12042 (map_partial_symbol_filenames): Ditto.
12043 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
12044 (map_partial_symbol_filenames): Ditto.
12045 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
12046 (map_partial_symbol_filenames): Ditto.
12047 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
12048 (map_partial_symbol_filenames): Ditto.
12049 * symtab.c: Delete #include "psymtab.h".
12050
12051 2014-01-14 Pedro Alves <palves@redhat.com>
12052 Tom Tromey <tromey@redhat.com>
12053
12054 * infrun.c (use_displaced_stepping): Use find_record_target
12055 instead of RECORD_IS_USED.
12056 (adjust_pc_after_break): Use record_full_is_used instead of
12057 RECORD_IS_USED.
12058 * record-btrace.c (record_btrace_open): Call record_preopen
12059 instead of checking RECORD_IS_USED.
12060 * record-full.c (record_full_shortname)
12061 (record_full_core_shortname): New globals.
12062 (record_full_is_used): New function.
12063 (find_full_open): Call record_preopen instead of checking
12064 RECORD_IS_USED.
12065 (init_record_full_ops): Set the target's shortname to
12066 record_full_shortname.
12067 (init_record_full_core_ops): Set the target's shortname to
12068 record_full_core_shortname.
12069 * record-full.h (record_full_is_used): Declare.
12070 * record.c (find_record_target): Make extern.
12071 (record_preopen): New function.
12072 * record.h (RECORD_IS_USED): Delete macro.
12073 (find_record_target, record_preopen): Declare functions.
12074
12075 2014-01-14 Yao Qi <yao@codesourcery.com>
12076
12077 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
12078 'len''s type to ULONGEST.
12079 (core_xfer_shared_libraries_aix): Likewise.
12080 * gdbarch.c, gdbarch.h: Regenerated.
12081 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12082 Change type of 'len' to ULONGEST.
12083 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12084 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12085
12086 2014-01-14 Yao Qi <yao@codesourcery.com>
12087
12088 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12089 type of 'len' to ULONGEST.
12090 (linux_xfer_osdata_processgroups): Likewise.
12091 (linux_xfer_osdata_threads): Likewise.
12092 (linux_xfer_osdata_fds): Likewise.
12093 (linux_xfer_osdata_isockets): Likewise.
12094 (linux_xfer_osdata_shm): Likewise.
12095 (linux_xfer_osdata_sem): Likewise.
12096 (linux_xfer_osdata_msg): Likewise.
12097 (linux_common_xfer_osdata): Likewise.
12098 (struct osdata_type) <getter>: Likewise.
12099 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12100 the declaration.
12101
12102 2014-01-14 Yao Qi <yao@codesourcery.com>
12103
12104 * target.h (target_xfer_partial_ftype): Update.
12105 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12106 ULONGEST.
12107 * aix-thread.c (aix_thread_xfer_partial): Change type of
12108 argument 'len' to ULONGEST.
12109 * auxv.c (procfs_xfer_auxv): Likewise.
12110 (ld_so_xfer_auxv): Likewise.
12111 (memory_xfer_auxv): Likewise.
12112 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12113 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12114 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12115 * corelow.c (core_xfer_partial): Likewise.
12116 * ctf.c (ctf_xfer_partial): Likewise.
12117 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12118 '%u'.
12119 (darwin_read_dyld_info): Likewise.
12120 (darwin_xfer_partial): Likewise.
12121 * exec.c (section_table_xfer_memory_partial): Likewise.
12122 (exec_xfer_partial): Likewise.
12123 * exec.h (section_table_xfer_memory_partial): Update
12124 declaration.
12125 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12126 instead of plongest.
12127 (gnu_xfer_partial): Likewise.
12128 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12129 (ia64_hpux_xfer_solib_got): Likewise.
12130 (ia64_hpux_xfer_partial): Likewise.
12131 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12132 * inf-ptrace.c (inf_ptrace_xfer_partial):
12133 * inf-ttrace.c (inf_ttrace_xfer_partial):
12134 * linux-nat.c (linux_xfer_siginfo): Likewise.
12135 (linux_nat_xfer_partial): Likewise.
12136 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12137 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12138 * monitor.c (monitor_xfer_memory): Likewise.
12139 (monitor_xfer_partial): Likewise.
12140 * procfs.c (procfs_xfer_partial): Likewise.
12141 * record-full.c (record_full_xfer_partial): Likewise.
12142 (record_full_core_xfer_partial): Likewise.
12143 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12144 instead of plongest.
12145 (gdbsim_xfer_partial): Likewise.
12146 * remote.c (remote_xfer_partial): Likewise.
12147 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12148 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12149 declaration.
12150 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12151 (rs6000_xfer_shared_libraries): Likewise.
12152 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12153 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12154 (sparc_xfer_partial): Likewise.
12155 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12156 (spu_xfer_partial): Likewise.
12157 * spu-multiarch.c (spu_xfer_partial): Likewise.
12158 * target.c (target_read_live_memory): Likewise.
12159 (memory_xfer_live_readonly_partial): Likewise.
12160 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12161 (target_xfer_partial, default_xfer_partial): Likewise.
12162 (current_xfer_partial): Likewise.
12163 * tracepoint.c (tfile_xfer_partial): Likewise.
12164 * windows-nat.c (windows_xfer_memory): Likewise. Call
12165 pulongest instead of plongest.
12166 (windows_xfer_partial): Likewise.
12167 (windows_xfer_shared_libraries): Likewise.
12168
12169 2014-01-14 Yao Qi <yao@codesourcery.com>
12170
12171 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12172 target_xfer_partial_ftype.
12173
12174 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12175
12176 PR python/15464
12177 PR python/16113
12178 * valops.c (value_struct_elt_bitpos): New function
12179 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12180 object to 'None' if the field name is an empty string ("").
12181 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12182 attribute to look for a field when 'name' is 'None'.
12183 (get_field_type): New function
12184
12185 2014-01-13 Doug Evans <dje@google.com>
12186
12187 PR symtab/16426
12188 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12189 (try_open_dwop_file): Ditto.
12190 * gdb_bfd.c: #include "vec.h".
12191 (bfdp): New typedef.
12192 (struct gdb_bfd_data): New member included_bfds.
12193 (gdb_bfd_unref): Unref all included bfds.
12194 (gdb_bfd_record_inclusion): New function.
12195 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12196
12197 2014-01-13 Tom Tromey <tromey@redhat.com>
12198
12199 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12200
12201 2014-01-13 Tom Tromey <tromey@redhat.com>
12202
12203 * defs.h (use_windows): Remove.
12204 * gdb.c (main): Update.
12205 * main.c (captured_main, gdb_main): Update.
12206 * main.h (struct captured_main_args) <use_windows>: Remove.
12207 * top.c (use_windows): Remove.
12208
12209 2014-01-13 Tom Tromey <tromey@redhat.com>
12210
12211 * defs.h (deprecated_flush_hook): Remove.
12212
12213 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12214
12215 PR threads/16216
12216 * linux-thread-db.c (try_thread_db_load): Add parameter
12217 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12218 (try_thread_db_load_from_pdir_1): Move it there from here.
12219 (try_thread_db_load_from_sdir): Update caller.
12220 (try_thread_db_load_from_dir): Move it there from here.
12221
12222 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12223
12224 * regformats/regdat.sh: Always rewrite the register file.
12225
12226 2014-01-13 Pedro Alves <palves@redhat.com>
12227
12228 * Makefile.in (CHECK_HEADERS): New variable.
12229 (check-headers:): New rule.
12230
12231 2014-01-13 Tom Tromey <tromey@redhat.com>
12232
12233 * cli/cli-setshow.c (do_set_command): Update.
12234 * defs.h (deprecated_set_hook): Remove.
12235 * top.c (deprecated_set_hook): Remove.
12236
12237 2014-01-13 Pedro Alves <palves@redhat.com>
12238
12239 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12240 the tracepoint if the PC is a pseudo-register.
12241
12242 2014-01-13 Tom Tromey <tromey@redhat.com>
12243
12244 * defs.h (XCALLOC): Remove.
12245 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12246 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12247 * dwarf2loc.c (allocate_piece_closure): Likewise.
12248 * elfread.c (elf_symfile_segments): Likewise.
12249 (elf_symfile_segments): Likewise.
12250 * gdbtypes.c (copy_type_recursive): Likewise.
12251 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12252 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12253 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12254 XCALLOC.
12255 * mt-tdep.c (mt_gdbarch_init): Likewise.
12256 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12257 XCALLOC.
12258 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12259 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12260 * registry.c (registry_alloc_data): Likewise.
12261 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12262 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12263 * serial.c (serial_fdopen_ops): Likewise.
12264 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12265 XCALLOC.
12266 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12267 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12268 not XCALLOC.
12269
12270 2014-01-13 Tom Tromey <tromey@redhat.com>
12271
12272 * defs.h (XMALLOC): Remove.
12273 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12274 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12275 * cli-out.c (struct ui_out *): Likewise.
12276 * cli/cli-dump.c (add_dump_command): Likewise.
12277 (add_dump_command): Likewise.
12278 * complaints.c (get_complaints): Likewise.
12279 (find_complaint): Likewise.
12280 * dwarf2-frame.c (execute_cfa_program): Likewise.
12281 * dwarf2read.c (abbrev_table_read_table): Likewise.
12282 * gdbarch.sh: Likewise.
12283 * gdbarch.c: Rebuild.
12284 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12285 * interps.c (interp_new): Likewise.
12286 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12287 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12288 * mi/mi-console.c (mi_console_file_new): Likewise.
12289 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12290 * mi/mi-out.c (mi_out_new): Likewise.
12291 * mi/mi-parse.c (mi_parse): Likewise.
12292 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12293 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12294 * observer.c (xalloc_observer_list_node): Likewise.
12295 * regcache.c (regcache_xmalloc_1): Likewise.
12296 * reggroups.c (reggroup_new): Likewise.
12297 (_initialize_reggroup): Likewise.
12298 * registry.c (register_data_with_cleanup): Likewise.
12299 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12300 * ser-base.c (serial_ttystate): Likewise.
12301 * ser-mingw.c (make_pipe_state): Likewise.
12302 * ser-pipe.c (pipe_open): Likewise.
12303 * serial.c (serial_open): Likewise.
12304 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12305 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12306 (tui_alloc_win_info): Likewise.
12307 (tui_add_content_elements): Likewise.
12308 * tui/tui-file.c (tui_file_new): Likewise.
12309 * tui/tui-out.c (tui_out_new): Likewise.
12310 * ui-file.c (mem_file_new): Likewise.
12311 * ui-out.c (push_level): Likewise.
12312 (make_cleanup_ui_out_end): Likewise.
12313 (append_header_to_list): Likewise.
12314 (ui_out_new): Likewise.
12315 * user-regs.c (user_reg_add_builtin): Likewise.
12316
12317 2014-01-13 Tom Tromey <tromey@redhat.com>
12318
12319 * defs.h (XZALLOC): Remove.
12320 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12321 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12322 (get_ada_tasks_inferior_data): Likewise.
12323 * auto-load.c (get_auto_load_pspace_data): Likewise.
12324 * auxv.c (get_auxv_inferior_data): Likewise.
12325 * bfd-target.c (target_bfd_reopen): Likewise.
12326 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12327 (deprecated_insert_raw_breakpoint): Likewise.
12328 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12329 * corelow.c (core_open): Likewise.
12330 * darwin-nat.c (darwin_check_new_threads): Likewise.
12331 (darwin_attach_pid): Likewise.
12332 * dummy-frame.c (dummy_frame_push): Likewise.
12333 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12334 * dwarf2loc.c (allocate_piece_closure): Likewise.
12335 * elfread.c (elf_symfile_segments): Likewise.
12336 * eval.c (ptrmath_type_p): Likewise.
12337 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12338 * gdbtypes.c (alloc_type_arch): Likewise.
12339 (alloc_type_instance): Likewise.
12340 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12341 * inf-child.c (inf_child_can_use_agent): Likewise.
12342 * inflow.c (get_inflow_inferior_data): Likewise.
12343 * infrun.c (save_infcall_suspend_state): Likewise.
12344 * jit.c (jit_reader_load): Likewise.
12345 (get_jit_objfile_data): Likewise.
12346 (get_jit_program_space_data): Likewise.
12347 (jit_object_open_impl): Likewise.
12348 (jit_symtab_open_impl): Likewise.
12349 (jit_block_open_impl): Likewise.
12350 (jit_frame_sniffer): Likewise.
12351 * linux-fork.c (add_fork): Likewise.
12352 * maint.c (make_command_stats_cleanup): Likewise.
12353 * objfiles.c (get_objfile_pspace_data): Likewise.
12354 * opencl-lang.c (struct lval_closure): Likewise.
12355 * osdata.c (osdata_start_osdata): Likewise.
12356 * progspace.c (new_address_space): Likewise.
12357 (add_program_space): Likewise.
12358 * remote-sim.c (get_sim_inferior_data): Likewise.
12359 * sh-tdep.c (sh_gdbarch_init): Likewise.
12360 * skip.c (Ignore): Likewise.
12361 (skip_delete_command): Likewise.
12362 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12363 (library_list_start_library): Likewise.
12364 (solib_aix_current_sos): Likewise.
12365 * solib-darwin.c (get_darwin_info): Likewise.
12366 (darwin_current_sos): Likewise.
12367 * solib-dsbt.c (get_dsbt_info): Likewise.
12368 * solib-ia64-hpux.c (new_so_list): Likewise.
12369 (ia64_hpux_get_solib_linkage_addr): Likewise.
12370 * solib-spu.c (append_ocl_sos): Likewise.
12371 (spu_current_sos): Likewise.
12372 * solib-svr4.c (get_svr4_info): Likewise.
12373 (svr4_keep_data_in_core): Likewise.
12374 (library_list_start_library): Likewise.
12375 (svr4_default_sos): Likewise.
12376 (svr4_read_so_list): Likewise.
12377 * solib-target.c (library_list_start_library): Likewise.
12378 (solib_target_current_sos): Likewise.
12379 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12380 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12381 * symfile.c (default_symfile_segments): Likewise.
12382 * target-descriptions.c (tdesc_data_init): Likewise.
12383 (tdesc_create_reg): Likewise.
12384 (struct tdesc_type *): Likewise.
12385 (tdesc_create_vector): Likewise.
12386 (tdesc_set_struct_size): Likewise.
12387 (struct tdesc_type *): Likewise.
12388 (tdesc_free_feature): Likewise.
12389 (tdesc_create_feature): Likewise.
12390 * windows-nat.c (windows_add_thread): Likewise.
12391 (windows_make_so): Likewise.
12392 * xml-support.c (gdb_xml_body_text): Likewise.
12393 (gdb_xml_create_parser_and_cleanup): Likewise.
12394 (xml_process_xincludes): Likewise.
12395 * xml-syscall.c (allocate_syscalls_info): Likewise.
12396 (syscall_create_syscall_desc): Likewise.
12397
12398 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12399
12400 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12401 function, with code from i386_stap_parse_special_token.
12402 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12403 (i386_stap_parse_special_token): Move code to the two functions
12404 above; simplify it.
12405
12406 2014-01-09 Pedro Alves <palves@redhat.com>
12407 Hui Zhu <hui@codesourcery.com>
12408
12409 PR gdb/16101
12410 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12411 bp_err_string. Don't mark the location shlib_disabled if the
12412 error thrown wasn't a generic or memory error. Catch errors
12413 thrown while inserting breakpoints in overlayed code. Output
12414 error message of software breakpoints.
12415 * remote.c (remote_insert_breakpoint): If this breakpoint has
12416 target-side commands but this stub doesn't support Z0 packets,
12417 throw NOT_SUPPORTED_ERROR error.
12418 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12419 * target.h (target_insert_breakpoint): Extend comment.
12420 (target_insert_hw_breakpoint): Add comment.
12421
12422 2014-01-08 Pedro Alves <palves@redhat.com>
12423
12424 * remote.c (remote_add_thread): Add threads silently if starting
12425 up.
12426 (remote_notice_new_inferior): If in all-stop, and starting up,
12427 don't call notice_new_inferior.
12428 (get_current_thread): New function, factored out from ...
12429 (add_current_inferior_and_thread): ... this. Adjust.
12430 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12431 found any thread, then select the remote's current thread as GDB's
12432 current thread too.
12433
12434 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12435
12436 * NEWS: Create a new section for the next release branch.
12437 Rename the section of the current branch, now that it has
12438 been cut.
12439
12440 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12441
12442 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12443 * version.in: Bump version to 7.7.50.DATE-cvs.
12444
12445 2014-01-08 Yao Qi <yao@codesourcery.com>
12446
12447 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12448 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12449 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12450
12451 2014-01-08 Yao Qi <yao@codesourcery.com>
12452
12453 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12454 return value of bfd_get_filename to symbol_file_add_from_bfd.
12455
12456 2014-01-08 Pierre Muller <muller@sourceware.org>
12457
12458 Fix PR16201.
12459 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12460 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12461 to prim_record_mininal_symbol_and_info.
12462 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12463 in call to prim_record_minimal_symbol_and_info.
12464 (read_pe_exported_syms): Set index field of section_data.
12465
12466 2014-01-07 Andrew Pinski <apinski@cavium.com>
12467
12468 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12469 * features/aarch64.c: Regenerate.
12470
12471 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12472
12473 * target.c (return_null): Define.
12474 (update_current_target): Use it instead of return_zero for
12475 functions that return a pointer.
12476
12477 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12478
12479 * source.c (add_path): Fix check for duplicated paths in the previously
12480 included paths.
12481
12482 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12483
12484 * ada-lang.c: Remove duplicated include statements.
12485 * alphabsd-nat.c: Ditto.
12486 * amd64-darwin-tdep.c: Ditto.
12487 * amd64fbsd-nat.c: Ditto.
12488 * auto-load.c: Ditto.
12489 * ax-gdb.c: Ditto.
12490 * breakpoint.c: Ditto.
12491 * dbxread.c: Ditto.
12492 * fork-child.c: Ditto.
12493 * gdb_usleep.c: Ditto.
12494 * i386-darwin-tdep.c: Ditto.
12495 * i386fbsd-nat.c: Ditto.
12496 * infcmd.c: Ditto.
12497 * inferior.c: Ditto.
12498 * jv-lang.c: Ditto.
12499 * linux-nat.c: Ditto.
12500 * linux-tdep.c: Ditto.
12501 * m68kbsd-nat.c: Ditto.
12502 * m68klinux-nat.c: Ditto.
12503 * microblaze-tdep.c: Ditto.
12504 * mips-linux-tdep.c: Ditto.
12505 * mn10300-tdep.c: Ditto.
12506 * nto-tdep.c: Ditto.
12507 * opencl-lang.c: Ditto.
12508 * osdata.c: Ditto.
12509 * printcmd.c: Ditto.
12510 * regcache.c: Ditto.
12511 * remote-m32r-sdi.c: Ditto.
12512 * remote.c: Ditto.
12513 * symfile.c: Ditto.
12514 * symtab.c: Ditto.
12515 * tilegx-linux-nat.c: Ditto.
12516 * tilegx-tdep.c: Ditto.
12517 * tracepoint.c: Ditto.
12518 * valops.c: Ditto.
12519 * vaxbsd-nat.c: Ditto.
12520 * windows-nat.c: Ditto.
12521 * xtensa-tdep.c: Ditto.
12522
12523 2014-01-07 Yao Qi <yao@codesourcery.com>
12524
12525 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12526
12527 2014-01-07 Yao Qi <yao@codesourcery.com>
12528 Joel Brobecker <brobecker@adacore.com>
12529
12530 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12531 (pdc_write_regs): Likewise.
12532 (fetch_regs_kernel_thread): Likewise.
12533 (store_regs_kernel_thread): Likewise.
12534
12535 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12536
12537 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12538 tagged type objects to their actual type.
12539
12540 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12541
12542 * ada-valprint.c (print_field_values): Add "language" parameter.
12543 Update calls to print_field_values and print_variant_part.
12544 Pass new parameter "language" in call to val_print instead
12545 of "current_language". Replace call to ada_val_print by call
12546 to val_print.
12547 (print_variant_part): Add "language" parameter.
12548 (ada_val_print_struct_union): Update call to print_field_values.
12549
12550 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12551
12552 * ada-valprint.c (ui_memcpy): Delete.
12553 (ada_print_floating): Update documentation. Add empty line
12554 between between function documentation and implementation.
12555 Delete variable "buffer". Use ui_file_xstrdup in place of
12556 ui_file_put. Minor adjustments following this change.
12557
12558 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12559
12560 * ada-valprint.c (ada_val_print_string): New function,
12561 extracted from ada_val_print_array.
12562 (ada_val_print_array): Replace extracted code by call
12563 to ada_val_print_string followed by a return. Move
12564 "else" branch to the function's top block.
12565
12566 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12567
12568 * ada-valprint.c (ada_val_print_array): Move implementation
12569 down. Rename parameter "offset" and "val" into "offset_aligned"
12570 and "original_value" respectively. Add parameter "offset".
12571
12572 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12573
12574 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12575 re-organizing the code. Change the "???" message printed
12576 when target type is a TYPE_CODE_UNDEF into
12577 "<ref to undefined type>".
12578
12579 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12580
12581 * ada-valprint.c (print_record): Delete, implementation inlined...
12582 (ada_val_print_struct_union): ... here. Remove call to
12583 ada_check_typedef in inlined implementation.
12584
12585 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12586
12587 * ada-valprint.c (ada_val_print_gnat_array): New function,
12588 extracted from ada_val_print_1;
12589 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12590 (ada_val_print_flt, ada_val_print_struct_union)
12591 (ada_val_print_ref): Likewise.
12592 (ada_val_print_1): Delete variables i and elttype.
12593 Replace extracted-out code by call to corresponding
12594 new functions.
12595
12596 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12597
12598 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12599
12600 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12601
12602 * ada-valprint.c (ada_val_print_1): Replace calls to
12603 ada_val_print_1 by calls to val_print.
12604
12605 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12606
12607 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12608 Update calls to self accordingly. Replace calls to c_val_print
12609 by calls to val_print.
12610
12611 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12612
12613 * ada-valprint.c (print_record): Delete declaration.
12614 (adjust_type_signedness, ada_val_print_1): Likewise.
12615 (ada_val_print): Move function implementation down.
12616 (print_variant_part, print_field_values, print_record):
12617 Move function implementation up.
12618
12619 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12620
12621 * python/py-type.c (typy_get_name): New function.
12622 (type_object_getset): Add entry for attribute "name".
12623 * NEWS: Add entry mentioning this new attribute.
12624
12625 2014-01-07 Yao Qi <yao@codesourcery.com>
12626
12627 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12628 statement.
12629
12630 2014-01-07 Yao Qi <yao@codesourcery.com>
12631
12632 * gnu-nat.c (info_port_rights): Add qualifier const to
12633 argument args.
12634
12635 2014-01-07 Yao Qi <yao@codesourcery.com>
12636
12637 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12638
12639 2014-01-07 Yao Qi <yao@codesourcery.com>
12640
12641 * gnu-nat.c (make_inf) Update declaration.
12642 (make_inf): Make it static.
12643 (inf_set_traced): Likewise.
12644 (inf_port_to_thread, inf_task_died_status): Likewise.
12645
12646 2014-01-07 Yao Qi <yao@codesourcery.com>
12647
12648 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12649
12650 2014-01-07 Yao Qi <yao@codesourcery.com>
12651
12652 * gnu-nat.c (_initialize_gnu_nat): Declare.
12653
12654 2014-01-07 Yao Qi <yao@codesourcery.com>
12655
12656 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12657 'enum bfd_endian'.
12658 (struct gdbarch_info) <byte_order>: Change type to
12659 'enum bfd_endian'.
12660 <byte_order_for_code>: Likewise.
12661 * gdbarch.c, gdbarch.h: Regenerated.
12662
12663 2014-01-06 Sasha Smundak <asmundak@google.com>
12664
12665 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12666
12667 2014-01-06 Tom Tromey <tromey@redhat.com>
12668
12669 * doublest.c (convert_doublest_to_floatformat): Use const, not
12670 CONST.
12671 * somread.c (som_symtab_read): Likewise.
12672
12673 2014-01-07 Hui Zhu <hui@codesourcery.com>
12674
12675 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12676 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12677 (gdb_bfd_fopen): Ditto.
12678 (gdb_bfd_openr): Ditto.
12679 (gdb_bfd_openw): Ditto.
12680 (gdb_bfd_openr_iovec): Ditto.
12681 (gdb_bfd_fdopenr): Ditto.
12682 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12683 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12684 with xstrdup.
12685 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12686 with xstrdup.
12687 * symfile-mem.c (symbol_file_add_from_memory): Removed
12688 gdb_bfd_stash_filename.
12689
12690 2014-01-03 Doug Evans <dje@google.com>
12691
12692 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12693 output.
12694
12695 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12696
12697 Update year range in copyright notice of all files.
12698
12699 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12700
12701 * top.c (print_gdb_version): Set copyright year to 2014.
12702
12703 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12704
12705 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12706
12707 For older changes see ChangeLog-2013.
12708 \f
12709 Local Variables:
12710 mode: change-log
12711 left-margin: 8
12712 fill-column: 74
12713 version-control: never
12714 coding: utf-8
12715 End:
This page took 0.327037 seconds and 4 git commands to generate.