Fix PR fortran/17237: bug in f-valprint.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 PR fortran/17237
4 * f-valprint.c (f_val_print): Specify the correct print option to
5 use when printing integer values.
6
7 2014-09-04 Gary Benson <gbenson@redhat.com>
8
9 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
10 Remove code to cope with LWPs wrapped as PIDs.
11 Add assertions to ensure no wrapped LWPs are passed.
12
13 2014-09-04 Pedro Alves <palves@redhat.com>
14
15 * value.c (value_ranges_copy_adjusted): New function, factored out
16 from ...
17 (value_contents_copy_raw): ... here.
18 (unpack_value_bits_as_long_1): Rename back to ...
19 (unpack_bits_as_long): ... this. Remove 'original_value' and
20 'result' parameters. Change return type to LONGEST.
21 (unpack_value_bits_as_long): Delete.
22 (unpack_value_field_as_long_1): Delete.
23 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
24 (unpack_value_bitfield): New function.
25 (value_field_bitfield): Reimplement using unpack_value_bitfield.
26 (value_fetch_lazy): Use unpack_value_bitfield.
27 * value.h (unpack_value_bits_as_long): Delete declaration.
28
29 2014-09-03 Sasha Smundak <asmundak@google.com>
30
31 * python/py-frame.c (frapy_read_register): New function.
32
33 2014-09-03 James Hogan <james.hogan@imgtec.com>
34
35 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
36 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
37
38 2014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
39
40 PR python/16699
41 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
42 function.
43 (add_cmd): Set "completer_handle_brkchars" to NULL.
44 * cli/cli-decode.h (struct cmd_list_element)
45 <completer_handle_brkchars>: New field.
46 * command.h (completer_ftype_void): New typedef.
47 (set_cmd_completer_handle_brkchars): New prototype.
48 * completer.c (set_gdb_completion_word_break_characters): New
49 function.
50 (complete_line_internal): Call "completer_handle_brkchars"
51 callback from command.
52 * completer.h: Include "command.h".
53 (set_gdb_completion_word_break_characters): New prototype.
54 * python/py-cmd.c (cmdpy_completer_helper): New function.
55 (cmdpy_completer_handle_brkchars): New function.
56 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
57 (cmdpy_init): Set completer_handle_brkchars to
58 cmdpy_completer_handle_brkchars.
59
60 2014-09-03 Gary Benson <gbenson@redhat.com>
61
62 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
63 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
64 Loop conditions changed to equivalent form.
65 (struct x86_debug_reg_state): Updated dr_ref_count comment.
66 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
67 ALL_DEBUG_ADDRESS_REGISTERS.
68
69 2014-09-03 Joel Brobecker <brobecker@adacore.com>
70
71 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
72 description fix.
73
74 2014-09-02 Doug Evans <dje@google.com>
75
76 * typeprint.c (find_global_typedef): Fix comment.
77
78 2014-09-02 Gary Benson <gbenson@redhat.com>
79
80 * i386-nat.h: Renamed as...
81 * x86-nat.h: New file. All type, function and variable name
82 prefixes changed from "i386_" to "x86_". All references updated.
83 * i386-nat.c: Renamed as...
84 * x86-nat.c: New file. All type, function and variable name
85 prefixes changed from "i386_" to "x86_". All references updated.
86 * common/i386-xstate.h: Renamed as...
87 * common/x86-xstate.h: New file. All type, function and variable
88 name prefixes changed from "i386_" to "x86_". All references
89 updated.
90 * nat/i386-cpuid.h: Renamed as...
91 * nat/x86-cpuid.h: New file. All type, function and variable name
92 prefixes changed from "i386_" to "x86_". All references updated.
93 * nat/i386-gcc-cpuid.h: Renamed as...
94 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
95 name prefixes changed from "i386_" to "x86_". All references
96 updated.
97 * nat/i386-dregs.h: Renamed as...
98 * nat/x86-dregs.h: New file. All type, function and variable name
99 prefixes changed from "i386_" to "x86_". All references updated.
100 * nat/i386-dregs.c: Renamed as...
101 * nat/x86-dregs.c: New file. All type, function and variable name
102 prefixes changed from "i386_" to "x86_". All references updated.
103
104 2014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
105
106 * varobj.c (_initialize_varobj): Move to the end of file.
107
108 2014-08-29 Gary Benson <gbenson@redhat.com>
109
110 * common/common-exceptions.h: New file.
111 * common/common-exceptions.c: Likewise.
112 * Makefile.in (SFILES): Add common/common-exceptions.c.
113 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
114 (COMMON_OBS): Add common-exceptions.o.
115 (common-exceptions.o): New rule.
116 * exceptions.h (common-exceptions.h): Include.
117 (gdb_setjmp.h): Do not include.
118 (return_reason): Moved to common-exceptions.h.
119 (enum return_reason): Likewise.
120 (RETURN_MASK): Likewise.
121 (typedef return_mask): Likewise.
122 (enum errors): Likewise.
123 (struct gdb_exception): Likewise.
124 (exceptions_state_mc_init): Likewise.
125 (exceptions_state_mc_action_iter): Likewise.
126 (exceptions_state_mc_action_iter_1): Likewise.
127 (TRY_CATCH): Likewise.
128 (throw_exception): Likewise.
129 (throw_verror): Likewise.
130 (throw_vquit): Likewise.
131 (throw_error): Likewise.
132 (throw_quit): Likewise.
133 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
134 (enum catcher_action): Likewise.
135 (struct catcher): Likewise.
136 (current_catcher): Likewise.
137 (catcher_list_size): Likewise.
138 (exceptions_state_mc_init): Likewise.
139 (catcher_pop): Likewise.
140 (exceptions_state_mc): Likewise.
141 (exceptions_state_mc_action_iter): Likewise.
142 (exceptions_state_mc_action_iter_1): Likewise.
143 (throw_exception): Likewise.
144 (exception_messages): Likewise.
145 (exception_messages_size): Likewise.
146 (throw_it): Likewise.
147 (throw_verror): Likewise.
148 (throw_vquit): Likewise.
149 (throw_error): Likewise.
150 (throw_quit): Likewise.
151 (prepare_to_throw_exception): New function.
152
153 2014-08-29 Gary Benson <gbenson@redhat.com>
154
155 * common/gdb_setjmp.h: New file.
156 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
157 * configure.ac: Move sigsetjmp check...
158 * common/common.m4: ...here.
159 * configure: Regenerate.
160 * cp-support.c (SIGJMP_BUF): Delete.
161 (SIGSETJMP): Likewise.
162 (SIGLONGJMP): Likewise.
163 * exceptions.h (gdb_setjmp.h): Include.
164 (setjmp.h): Do not include.
165 (EXCEPTIONS_SIGJMP_BUF): Delete.
166 (EXCEPTIONS_SIGSETJMP): Likewise.
167 (EXCEPTIONS_SIGLONGJMP): Likewise.
168 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
169 from gdb_setjmp.h.
170 * exceptions.c: Likewise.
171
172 2014-08-29 Gary Benson <gbenson@redhat.com>
173
174 * cleanups.h: Moved to...
175 * common/cleanups.h: New file.
176 * cleanups.c: Moved to...
177 * common/cleanups.c: New file. Include common-defs.h and
178 cleanups.h. Do not include defs.h.
179 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
180 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
181 (cleanups.o): New rule.
182
183 2014-08-29 Gary Benson <gbenson@redhat.com>
184
185 * common/errors.h (internal_warning): New declaration.
186 (internal_vwarning): Likewise.
187 * common/errors.c (internal_warning): New function.
188 * utils.h (internal_warning): Don't declare.
189 (internal_vwarning): Likewise.
190 * utils.c (internal_warning): Removed.
191
192 2014-08-29 Gary Benson <gbenson@redhat.com>
193
194 * main.c (captured_main): Use warning during startup.
195 Prefix startup warning messages with command name.
196
197 2014-08-29 Gary Benson <gbenson@redhat.com>
198
199 * main.c (captured_main): Handle usage errors with error.
200
201 2014-08-29 Gary Benson <gbenson@redhat.com>
202
203 * go32-nat.c (go32_create_inferior): Replace a fprintf/
204 exit pair with a call to error. Wrap the message with _().
205
206 2014-08-29 Gary Benson <gbenson@redhat.com>
207
208 * main.c (captured_main): Replace a fprintf/exit
209 pair with a call to error. Wrap the message with _().
210
211 2014-08-29 Gary Benson <gbenson@redhat.com>
212
213 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
214 pairs with calls to error. Wrap the message with _().
215
216 2014-08-29 Gary Benson <gbenson@redhat.com>
217
218 * utils.c (vwarning): Protect calls to target_terminal_ours
219 and wrap_here.
220
221 2014-08-29 Gary Benson <gbenson@redhat.com>
222
223 * exceptions.c (print_flush): Protect calls to
224 target_terminal_ours and wrap_here.
225
226 2014-08-29 Gary Benson <gbenson@redhat.com>
227
228 * utils.h (filtered_printing_initialized): New declaration.
229 * utils.c (abort_with_message): New function.
230 (internal_vproblem): Use abort_with_message for first level
231 recursive internal problems, and if gdb_stderr is not set up.
232 Protect calls to target_terminal_ours, begin_line and query.
233
234 2014-08-28 Doug Evans <dje@google.com>
235
236 * symtab.c (in_prologue): Move definition to better spot.
237 (skip_prologue_using_sal): Ditto.
238
239 2014-08-28 Doug Evans <dje@google.com>
240
241 * symtab.c (find_function_start_sal): Move definition to better spot.
242
243 2014-08-28 Yao Qi <yao@codesourcery.com>
244
245 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
246 found_stack_adjust in forward scan. Remove condition check
247 on found_stack_adjust which is always true. Indent the code.
248
249 2014-08-28 Yao Qi <yao@codesourcery.com>
250
251 * dwarf2read.c (dwarf_decode_lines): Update declaration.
252 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
253 (dwarf_decode_lines): Remove argument
254 want_line_info. Remove condition check on want_line_info.
255 Callers update.
256
257 2014-08-27 Doug Evans <dje@google.com>
258
259 * dwarf2read.c (dwarf_record_line): Fix typo.
260
261 2014-08-27 Patrick Palka <patrick@parcs.ath.cx>
262
263 * target.h (struct target_ops::to_terminal_save_ours): Remove
264 declaration.
265 (target_terminal_save_ours): Remove macro.
266 * target-delegates.c: Regenerate.
267 * inf-child.c (inf_child_target): Don't set the nonexistent
268 field to_terminal_save_ours.
269 * inferior.h (child_terminal_save_ours): Remove declaration.
270 * terminal.h (gdb_save_tty_state): New declaration.
271 * inflow.c (child_terminal_save_ours): Rename to ...
272 (gdb_save_tty_state): ... this.
273 * tui/tui.c: Include terminal.h.
274 (tui_enable): Use gdb_save_tty_state instead of
275 target_terminal_save_ours.
276 (tui_disable): Likewise.
277
278 2014-08-25 Doug Evans <dje@google.com>
279
280 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
281 Pass NULL instead of 0 for context pointer.
282
283 2014-08-25 Yao Qi <yao@codesourcery.com>
284
285 * dwarf2read.c: Fix grammatical error.
286
287 2014-08-24 Yao Qi <yao@codesourcery.com>
288
289 * dwarf2read.c (scan_partial_symbols): Update comments.
290 Rename argument 'need_pc' with 'set_addrmap'.
291 (add_partial_namespace): Rename argument 'need_pc' with
292 'set_addrmap'.
293 (add_partial_module): Likewise.
294 (add_partial_subprogram): Likewise. Update comments.
295 (dwarf2_name): Fix typo.
296
297 2014-08-22 Doug Evans <dje@google.com>
298
299 PR 17276
300 * dwarf2read.c (dwarf_record_line_p): New function.
301 (dwarf_decode_lines_1): Ignore subsequent line number entries
302 for the same line if any entry had a non-zero discriminator.
303
304 2014-08-22 Doug Evans <dje@google.com>
305
306 * buildsym.h (record_line_ftype): New typedef.
307 (record_line): Use it.
308 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
309 (dwarf_decode_lines_1): Call them.
310
311 2014-08-22 Yao Qi <yao@codesourcery.com>
312
313 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
314 (ctf_end): Remove code.
315
316 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
317
318 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
319 (linux_make_corefile_notes): call update_thread_list, protected against
320 exceptions.
321
322 2014-08-21 Pedro Alves <palves@redhat.com>
323
324 * infcmd.c (attach_command): Remove comment.
325
326 2014-08-21 Bin Cheng <bin.cheng@arm.com>
327
328 * aarch64-linux-nat.c (dr_changed_t): Change the type from
329 unsigned LONGEST to ULONGEST.
330
331 2014-08-20 Pedro Alves <palves@redhat.com>
332
333 * Makefile.in (check-read1): New rule.
334
335 2014-08-20 Joel Brobecker <brobecker@adacore.com>
336
337 * value.c (value_from_contents_and_address): Strip resolved_type's
338 typedef layers before checking its TYPE_DATA_LOCATION.
339
340 2014-08-20 Pedro Alves <palves@redhat.com>
341
342 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
343
344 2014-08-20 Yao Qi <yao@codesourcery.com>
345
346 * amd64-tdep.c (amd64_classify): Add a blank line after the
347 example. Move "*/" to a new line.
348 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
349 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
350 * dwarf2read.c (psymtab_include_file_name): Likewise.
351
352 2014-08-19 Andrew Burgess <aburgess@broadcom.com>
353 Pedro Alves <palves@redhat.com>
354
355 PR symtab/14604
356 PR symtab/14605
357 * ada-lang.c (coerce_unspec_val_to_type): Use
358 value_contents_copy_raw.
359 * ada-valprint.c (val_print_packed_array_elements): Adjust.
360 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
361 * cp-valprint.c (cp_print_value_fields): Let the common printing
362 code handle optimized out values.
363 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
364 * d-valprint.c (dynamic_array_type): Use
365 value_bits_any_optimized_out.
366 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
367 check_any_valid fields.
368 (check_pieced_value_bits): Delete and inline ...
369 (check_pieced_synthetic_pointer): ... here.
370 (check_pieced_value_validity): Delete.
371 (check_pieced_value_invalid): Delete.
372 (pieced_value_funcs): Remove check_validity and check_any_valid
373 fields.
374 (read_pieced_value): Use mark_value_bits_optimized_out.
375 (write_pieced_value): Switch to use
376 mark_value_bytes_optimized_out.
377 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
378 of assuming the whole value is optimized out.
379 * findvar.c (read_frame_register_value): Remove special handling
380 of optimized out registers.
381 (value_from_register): Use mark_value_bytes_optimized_out.
382 * frame-unwind.c (frame_unwind_got_optimized): Use
383 mark_value_bytes_optimized_out.
384 * jv-valprint.c (java_value_print): Adjust.
385 (java_print_value_fields): Let the common printing code handle
386 optimized out values.
387 * mips-tdep.c (mips_print_register): Remove special handling of
388 optimized out registers.
389 * opencl-lang.c (lval_func_check_validity): Delete.
390 (lval_func_check_any_valid): Delete.
391 (opencl_value_funcs): Remove check_validity and check_any_valid
392 fields.
393 * p-valprint.c (pascal_object_print_value_fields): Let the common
394 printing code handle optimized out values.
395 * stack.c (read_frame_arg): Remove special handling of optimized
396 out values. Fetch both VAL and ENTRYVAL before comparing
397 contents. Adjust to value_available_contents_eq rename.
398 * valprint.c (valprint_check_validity)
399 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
400 (val_print_array_elements): Adjust.
401 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
402 (value_bits_any_optimized_out): New function.
403 (value_entirely_covered_by_range_vector): New function, factored
404 out from value_entirely_unavailable.
405 (value_entirely_unavailable): Reimplement.
406 (value_entirely_optimized_out): New function.
407 (insert_into_bit_range_vector): New function, factored out from
408 mark_value_bits_unavailable.
409 (mark_value_bits_unavailable): Reimplement.
410 (struct ranges_and_idx): New struct.
411 (find_first_range_overlap_and_match): New function, factored out
412 from value_available_contents_bits_eq.
413 (value_available_contents_bits_eq): Rename to ...
414 (value_contents_bits_eq): ... this. Check both unavailable
415 contents and optimized out contents.
416 (value_available_contents_eq): Rename to ...
417 (value_contents_eq): ... this.
418 (allocate_value_lazy): Remove reference to the old optimized_out
419 boolean.
420 (allocate_optimized_out_value): Use
421 mark_value_bytes_optimized_out.
422 (require_not_optimized_out): Adjust to check whether the
423 optimized_out vec is empty.
424 (ranges_copy_adjusted): New function, factored out from
425 value_contents_copy_raw.
426 (value_contents_copy_raw): Also copy the optimized out ranges.
427 Assert the destination ranges aren't optimized out.
428 (value_contents_copy): Update comment, remove call to
429 require_not_optimized_out.
430 (value_contents_equal): Adjust to check whether the optimized_out
431 vec is empty.
432 (set_value_optimized_out, value_optimized_out_const): Delete.
433 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
434 New functions.
435 (value_entirely_optimized_out, value_bits_valid): Delete.
436 (value_copy): Take a VEC copy of the 'optimized_out' field.
437 (value_primitive_field): Remove special handling of optimized out.
438 (value_fetch_lazy): Assert that lazy values have no unavailable
439 regions. Use value_bits_any_optimized_out. Remove some special
440 handling for optimized out values.
441 * value.h: Add intro comment about <optimized out> and
442 <unavailable>.
443 (struct lval_funcs): Remove check_validity and check_any_valid
444 fields.
445 (set_value_optimized_out, value_optimized_out_const): Remove.
446 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
447 New declarations.
448 (value_bits_any_optimized_out): New declaration.
449 (value_bits_valid): Delete declaration.
450 (value_available_contents_eq): Rename to ...
451 (value_contents_eq): ... this, and extend comments.
452
453 2014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
454
455 Fix -fsanitize=address on unreadable inferior strings.
456 * valprint.c (val_print_string): Fix access before BUFFER.
457
458 2014-08-19 Simon Marchi <simon.marchi@ericsson.com>
459
460 * target.c (target_struct_size): Remove.
461 (target_struct_allocsize): Remove.
462 (DEFAULT_ALLOCSIZE): Remove.
463 (target_ops_p): New typedef.
464 (DEF_VEC_P (target_ops_p)): New vector type.
465 (target_structs): Change type to VEC (target_ops_p).
466 (add_target_with_completer): Replace "push" code by VEC_safe_push.
467 (find_default_run_target): Rewrite for loop following changes to
468 target_structs.
469
470 2014-08-19 Joel Brobecker <brobecker@adacore.com>
471
472 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
473 Adjust code accordingly. Adjust function description comment.
474
475 2014-08-19 Yao Qi <yao@codesourcery.com>
476
477 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
478 types.
479
480 2014-08-19 Alan Modra <amodra@gmail.com>
481
482 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
483 * config.in: Regenerate.
484 * configure: Regenerate.
485
486 2014-08-19 Tom Tromey <tromey@redhat.com>
487 Gary Benson <gbenson@redhat.com>
488
489 * common/common-debug.h: New file.
490 * common/common-debug.c: Likewise.
491 * debug.c: Likewise.
492 * Makefile.in (SFILES): Add common/common-debug.c.
493 (HFILES_NO_SRCDIR): Add common/common-debug.h.
494 (COMMON_OBS): Add common-debug.o and debug.o.
495 (common-debug.o): New rule.
496 * common/common-defs.h: Include common-debug.h.
497 * common/agent.c (debug_agent_printf): New function.
498 (DEBUG_AGENT): Redefine.
499 * nat/i386-dregs.c (debug_printf): Undefine.
500
501 2014-08-19 Gary Benson <gbenson@redhat.com>
502
503 * common/common-defs.h: Include print-utils.h.
504 * utils.h: Do not include print-utils.h.
505
506 2014-08-19 Tom Tromey <tromey@redhat.com>
507 Gary Benson <gbenson@redhat.com>
508
509 * common/common-types.h: New file.
510 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
511 * common/common-defs.h: Include common-types.h.
512 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
513 (ULONGEST): Remove.
514
515 2014-08-19 Tom Tromey <tromey@redhat.com>
516 Gary Benson <gbenson@redhat.com>
517
518 * common/errors.h: New file.
519 * common/errors.c: Likewise.
520 * Makefile.in (SFILES): Add common/errors.c.
521 (HFILES_NO_SRCDIR): Add common/errors.h.
522 (COMMON_OBS): Add errors.o.
523 (errors.o): New rule.
524 * common/common-defs.h: Include errors.h.
525 * utils.h (perror_with_name, error, verror, warning, vwarning):
526 Don't declare.
527 * common/common-utils.h: (malloc_failure, internal_error):
528 Likewise.
529
530 2014-08-19 Gary Benson <gbenson@redhat.com>
531
532 * utils.c (internal_vproblem): Always print the message.
533
534 2014-08-18 Doug Evans <dje@google.com>
535
536 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
537
538 2014-08-18 Joel Brobecker <brobecker@adacore.com>
539
540 * ada-typeprint.c (type_is_full_subrange_of_target_type):
541 Return 0 if TYPE is dynamic.
542 (print_range): Add handling of dynamic ranges.
543
544 2014-08-18 Keven Boell <keven.boell@intel.com>
545 Joel Brobecker <brobecker@adacore.com>
546
547 * gdbtypes.h (struct main_type): Add field "data_location".
548 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
549 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
550 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
551 a dynamic data location.
552 (resolve_dynamic_type): Add DW_AT_data_location handling.
553 (copy_recursive, copy_type): Copy the data_location information
554 when present.
555 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
556 * value.c (value_from_contents_and_address): Add
557 DW_AT_data_location handling.
558
559 2014-08-18 Keven Boell <keven.boell@intel.com>
560 Joel Brobecker <brobecker@adacore.com>
561
562 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
563 field "get_object_address".
564 * dwarf2expr.c (execute_stack_op): Add handling for
565 DW_OP_push_object_address.
566 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
567 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
568 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
569 (dwarf_expr_get_obj_addr): New function.
570 (dwarf_expr_ctx_funcs): Add get_object_address field.
571 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
572 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
573 (dwarf2_evaluate_property): Add parameter "address". Use it.
574 (needs_get_obj_addr): New function.
575 (needs_frame_ctx_funcs): Add get_object_address field.
576 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
577 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
578 (resolve_dynamic_array): Likewise.
579
580 2014-08-18 Joel Brobecker <brobecker@adacore.com>
581
582 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
583 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
584 fixed value for records and unions for which some GNAT encodings
585 are present.
586
587 2014-08-18 Joel Brobecker <brobecker@adacore.com>
588
589 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
590 rewrite to avoid "else if" and "else" constructs. Should be
591 a no-op in practice.
592
593 2014-08-18 Joel Brobecker <brobecker@adacore.com>
594
595 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
596 of lexical block.
597
598 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
599
600 PR c++/17132
601 * eval.c: Update all calls to find_overload_match.
602 * valarith.c: Likewise.
603 (value_user_defined_cpp_op, value_user_defined_op): New
604 argument NOSIDE. Update all callers.
605 * valops.c (find_overload_match): New argument NOSIDE.
606 * value.h (find_overload_match): Update signature.
607
608 2014-08-15 Siva Chandra Reddy <sivachandra@google.com>
609
610 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
611 'items' methods instead of 'iteritems' method on dictionaries.
612
613 2014-08-15 Doug Evans <dje@google.com>
614
615 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
616 closer to use.
617
618 2014-08-15 Doug Evans <dje@google.com>
619
620 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
621
622 2014-08-15 Doug Evans <dje@google.com>
623
624 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
625
626 2014-08-15 Doug Evans <dje@google.com>
627
628 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
629 unused.
630
631 2014-08-15 Eli Zaretskii <eliz@gnu.org>
632
633 * dcache.h: Include target.h, to avoid compile time warnings.
634
635 2014-08-15 Joel Brobecker <brobecker@adacore.com>
636
637 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
638 frame_info" partial declaration.
639 * gdbarch.h: Regenerate.
640
641 2014-08-15 Yao Qi <yao@codesourcery.com>
642
643 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
644 Add parameter 'decode_for_pst_p'. Callers update.
645
646 2014-08-13 Yao Qi <yao@codesourcery.com>
647
648 PR build/17104
649 * configure.ac: Use local variable 'pos'.
650 * configure: Regenerated.
651
652 2014-08-11 Doug Evans <dje@google.com>
653
654 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
655 message, it is redundant with "Reading symbols from ..." message.
656
657 2014-08-10 Doug Evans <xdje42@gmail.com>
658
659 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
660
661 2014-08-09 Yao Qi <yao@codesourcery.com>
662
663 PR remote/9053
664 * remote.c (remote_xfer_partial): Remove dead code.
665
666 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
667
668 * ia64-linux-tdep.c: Include "regset.h".
669 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
670 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
671 (ia64_linux_supply_fpregset): New function.
672 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
673 (ia64_linux_regset_from_core_section): New function.
674 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
675 method.
676
677 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
678
679 * m68klinux-tdep.c: Include "regset.h".
680 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
681 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
682 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
683 (m68k_linux_regset_from_core_section): New function.
684 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
685 method.
686
687 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
688
689 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
690 function. Move logic to...
691 (tilegx_linux_regmap): ... this new register map.
692 (tilegx_linux_regset): Refer to register map, replace supply
693 method by regcache_supply_regset, and add collect method.
694 * tilegx-tdep.h (enum tilegx_regnum): New enum value
695 TILEGX_FIRST_EASY_REGNUM.
696
697 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
698
699 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
700 that calls regcache_supply_regset and handles the EPC register
701 separately. Move main logic to...
702 (score7_linux_gregmap): ... this new register map.
703 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
704 (score7_linux_gregset): Refer to register map. Add collect method.
705 (score7_linux_regset_from_core_section): Replace
706 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
707 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
708 (struct regset): Delete unused forward declaraction.
709 (struct pt_regs): Delete structure definition.
710 (elf_gregset_t): Delete typedef.
711
712 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
713
714 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
715 (nios2_core_regset): Add collect method.
716
717 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
718
719 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
720 platform-independent and don't write to read-only input buffer.
721 (m32r_linux_collect_gregset): New function.
722 (m32r_linux_gregset): Add collect method.
723
724 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
725
726 * hppa-linux-tdep.c (greg_map): Rename to...
727 (hppa_linux_gregmap): ... this. Also convert to
728 regcache_map_entry format.
729 (hppa_linux_supply_regset): Delete function.
730 (hppa_linux_supply_fpregset): Delete function. Move logic to...
731 (hppa_linux_fpregmap): ... this new register map.
732 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
733 register map, replace supply method by regcache_supply_regset, and
734 add collect method regcache_collect_regset.
735
736 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
737
738 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
739 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
740 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
741 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
742 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
743 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
744 (frv_linux_supply_gregset): Replace main logic by call to
745 regcache_supply_regset, but keep clearing gr32-gr63.
746 (frv_linux_supply_fpregset): Delete function.
747 (frv_linux_gregset): Refer to appropriate register map and add
748 regcache_collect_regset as the collect method.
749 (frv_linux_fpregset): Likewise. Also exchange the supply method
750 by regcache_supply_regset.
751
752 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
753
754 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
755 by call to alpha_supply_int_regs.
756 (alpha_linux_collect_gregset): New function.
757 (alpha_linux_supply_fpregset): Replace logic by call to
758 alpha_supply_fp_regs.
759 (alpha_linux_collect_fpregset): New function.
760 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
761
762 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
763
764 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
765 by call to regcache_collect_regset.
766 (supply_gregset, supply_fpregset): Call regcache_supply_regset
767 instead of aarch64_linux_supply_gregset/_fpregset.
768 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
769 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
770 header file instead.
771 (aarch64_linux_supply_gregset, supply_gregset_from_core)
772 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
773 functions. Move logic to ...
774 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
775 register maps.
776 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
777 refer to new register maps, replace *_regset_from_core by
778 regcache_supply_regset, and also use regcache_collect_regset.
779 * aarch64-linux-tdep.h: Include "regset.h".
780 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
781 Delete prototypes.
782 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
783 macros, moved from C source file.
784 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
785 variable declarations.
786
787 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
788
789 * s390-linux-nat.c: Include "regset.h".
790 (regmap_gregset): Delete macro.
791 (s390_64_regmap_gregset): New register map for
792 regcache_supply/_collect_regset.
793 (s390_64_gregset): New regset.
794 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
795 (regmap_fpregset): Delete macro.
796 (s390_native_supply, s390_native_collect): Delete functions.
797 (supply_gregset, fill_gregset): Replace s390-specific regmap
798 handling by a call to regcache_supply/_collect_regset.
799 (supply_fpregset, fill_fpregset): Call regcache_supply/
800 _collect_regset instead of s390_native_supply/_collect.
801 (fetch_regset, store_regset): Likewise. Also change the last
802 parameter to a regset instead of a regmap.
803 (s390_linux_fetch_inferior_registers)
804 (390_linux_store_inferior_registers): Adjust last parameter in
805 calls to fetch_regset and store_regset.
806 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
807 (s390_gregmap): ... this. Also make static const and convert to
808 regcache_map_entry format.
809 (s390x_regmap_gregset): Delete.
810 (s390_regmap_fpregset): Rename to...
811 (s390_fpregmap): ... this. Make static const and convert to
812 regcache_map_entry format.
813 (s390_regmap_upper, s390_regmap_last_break)
814 (s390x_regmap_last_break, s390_regmap_system_call)
815 (s390_regmap_tdb): Likewise.
816 (s390_supply_regset, s390_collect_regset): Remove functions.
817 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
818 s390_supply_regset.
819 (s390_gregset, s390_fpregset, s390_upper_regset)
820 (s390_last_break_regset, s390x_last_break_regset)
821 (s390_system_call_regset, s390_tdb_regset): Make global and
822 replace s390_supply/_collect_regset by regcache_supply/
823 _collect_regset.
824 (s390x_gregset): Delete.
825 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
826 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
827 (s390_regmap_fpregset, s390_regmap_last_break)
828 (s390x_regmap_last_break, s390_regmap_system_call)
829 (s390_regmap_tdb): Delete global variable declarations.
830 (s390_gregset, s390_fpregset, s390_last_break_regset)
831 (s390x_last_break_regset, s390_system_call_regset)
832 (s390_tdb_regset): New global variable declarations.
833
834 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
835
836 * regcache.c: Include "regset.h".
837 (regcache_transfer_regset): New local function.
838 (regcache_supply_regset, regcache_collect_regset): New functions.
839 * regcache.h (struct regcache_map_entry): New structure.
840 (REGCACHE_MAP_SKIP): New enum value.
841 (regcache_supply_regset, regcache_collect_regset): New prototypes.
842
843 2014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
844
845 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
846 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
847 (ppc_linux_collect_gregset ): Likewise.
848 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
849 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
850 (ppc_collect_vrregset): Likewise.
851 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
852 Likewise.
853
854 2014-08-07 Yao Qi <yao@codesourcery.com>
855
856 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
857 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
858 * remote.c (remote_read_bytes): Likewise.
859
860 2014-08-07 Yao Qi <yao@codesourcery.com>
861
862 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
863
864 2014-08-07 Yao Qi <yao@codesourcery.com>
865
866 PR remote/17230
867 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
868 TARGET_XFER_OK instead of 0.
869
870 2014-08-07 Gary Benson <gbenson@redhat.com>
871
872 * common/common-defs.h: Include errno.h.
873 * defs.h: Do not include errno.h.
874 * ada-typeprint.c: Likewise.
875 * c-typeprint.c: Likewise.
876 * core-regset.c: Likewise.
877 * corefile.c: Likewise.
878 * corelow.c: Likewise.
879 * event-loop.c: Likewise.
880 * f-typeprint.c: Likewise.
881 * gnu-nat.c: Likewise.
882 * go32-nat.c: Likewise.
883 * i386gnu-nat.c: Likewise.
884 * m2-typeprint.c: Likewise.
885 * nat/linux-btrace.c: Likewise.
886 * p-typeprint.c: Likewise.
887 * procfs.c: Likewise.
888 * remote-sim.c: Likewise.
889 * rs6000-nat.c: Likewise.
890 * target.c: Likewise.
891 * typeprint.c: Likewise.
892 * ui-file.c: Likewise.
893 * valops.c: Likewise.
894 * valprint.c: Likewise.
895
896 2014-08-07 Gary Benson <gbenson@redhat.com>
897
898 * common/common-defs.h: Include string.h.
899 * aarch64-tdep.c: Do not include string.h.
900 * ada-exp.y: Likewise.
901 * ada-lang.c: Likewise.
902 * ada-lex.l: Likewise.
903 * ada-typeprint.c: Likewise.
904 * ada-valprint.c: Likewise.
905 * aix-thread.c: Likewise.
906 * alpha-linux-tdep.c: Likewise.
907 * alpha-mdebug-tdep.c: Likewise.
908 * alpha-nat.c: Likewise.
909 * alpha-osf1-tdep.c: Likewise.
910 * alpha-tdep.c: Likewise.
911 * alphanbsd-tdep.c: Likewise.
912 * amd64-dicos-tdep.c: Likewise.
913 * amd64-linux-tdep.c: Likewise.
914 * amd64-nat.c: Likewise.
915 * amd64-sol2-tdep.c: Likewise.
916 * amd64fbsd-tdep.c: Likewise.
917 * amd64obsd-tdep.c: Likewise.
918 * arch-utils.c: Likewise.
919 * arm-linux-nat.c: Likewise.
920 * arm-linux-tdep.c: Likewise.
921 * arm-tdep.c: Likewise.
922 * arm-wince-tdep.c: Likewise.
923 * armbsd-tdep.c: Likewise.
924 * armnbsd-nat.c: Likewise.
925 * armnbsd-tdep.c: Likewise.
926 * armobsd-tdep.c: Likewise.
927 * avr-tdep.c: Likewise.
928 * ax-gdb.c: Likewise.
929 * ax-general.c: Likewise.
930 * bcache.c: Likewise.
931 * bfin-tdep.c: Likewise.
932 * breakpoint.c: Likewise.
933 * build-id.c: Likewise.
934 * buildsym.c: Likewise.
935 * c-exp.y: Likewise.
936 * c-lang.c: Likewise.
937 * c-typeprint.c: Likewise.
938 * c-valprint.c: Likewise.
939 * charset.c: Likewise.
940 * cli-out.c: Likewise.
941 * cli/cli-cmds.c: Likewise.
942 * cli/cli-decode.c: Likewise.
943 * cli/cli-dump.c: Likewise.
944 * cli/cli-interp.c: Likewise.
945 * cli/cli-logging.c: Likewise.
946 * cli/cli-script.c: Likewise.
947 * cli/cli-setshow.c: Likewise.
948 * cli/cli-utils.c: Likewise.
949 * coffread.c: Likewise.
950 * common/agent.c: Likewise.
951 * common/buffer.c: Likewise.
952 * common/buffer.h: Likewise.
953 * common/common-utils.c: Likewise.
954 * common/filestuff.c: Likewise.
955 * common/filestuff.c: Likewise.
956 * common/format.c: Likewise.
957 * common/print-utils.c: Likewise.
958 * common/rsp-low.c: Likewise.
959 * common/signals.c: Likewise.
960 * common/vec.h: Likewise.
961 * common/xml-utils.c: Likewise.
962 * core-regset.c: Likewise.
963 * corefile.c: Likewise.
964 * corelow.c: Likewise.
965 * cp-abi.c: Likewise.
966 * cp-name-parser.y: Likewise.
967 * cp-support.c: Likewise.
968 * cp-valprint.c: Likewise.
969 * cris-tdep.c: Likewise.
970 * d-exp.y: Likewise.
971 * darwin-nat.c: Likewise.
972 * dbxread.c: Likewise.
973 * dcache.c: Likewise.
974 * demangle.c: Likewise.
975 * dicos-tdep.c: Likewise.
976 * disasm.c: Likewise.
977 * doublest.c: Likewise.
978 * dsrec.c: Likewise.
979 * dummy-frame.c: Likewise.
980 * dwarf2-frame.c: Likewise.
981 * dwarf2loc.c: Likewise.
982 * dwarf2read.c: Likewise.
983 * elfread.c: Likewise.
984 * environ.c: Likewise.
985 * eval.c: Likewise.
986 * event-loop.c: Likewise.
987 * exceptions.c: Likewise.
988 * exec.c: Likewise.
989 * expprint.c: Likewise.
990 * f-exp.y: Likewise.
991 * f-lang.c: Likewise.
992 * f-typeprint.c: Likewise.
993 * f-valprint.c: Likewise.
994 * fbsd-nat.c: Likewise.
995 * findcmd.c: Likewise.
996 * findvar.c: Likewise.
997 * fork-child.c: Likewise.
998 * frame.c: Likewise.
999 * frv-linux-tdep.c: Likewise.
1000 * frv-tdep.c: Likewise.
1001 * gdb.c: Likewise.
1002 * gdb_bfd.c: Likewise.
1003 * gdbarch.c: Likewise.
1004 * gdbarch.sh: Likewise.
1005 * gdbtypes.c: Likewise.
1006 * gnu-nat.c: Likewise.
1007 * gnu-v2-abi.c: Likewise.
1008 * gnu-v3-abi.c: Likewise.
1009 * go-exp.y: Likewise.
1010 * go-lang.c: Likewise.
1011 * go32-nat.c: Likewise.
1012 * guile/guile.c: Likewise.
1013 * guile/scm-auto-load.c: Likewise.
1014 * hppa-hpux-tdep.c: Likewise.
1015 * hppa-linux-nat.c: Likewise.
1016 * hppanbsd-tdep.c: Likewise.
1017 * hppaobsd-tdep.c: Likewise.
1018 * i386-cygwin-tdep.c: Likewise.
1019 * i386-dicos-tdep.c: Likewise.
1020 * i386-linux-tdep.c: Likewise.
1021 * i386-nto-tdep.c: Likewise.
1022 * i386-sol2-tdep.c: Likewise.
1023 * i386-tdep.c: Likewise.
1024 * i386bsd-tdep.c: Likewise.
1025 * i386gnu-nat.c: Likewise.
1026 * i386nbsd-tdep.c: Likewise.
1027 * i386obsd-tdep.c: Likewise.
1028 * i387-tdep.c: Likewise.
1029 * ia64-libunwind-tdep.c: Likewise.
1030 * ia64-linux-nat.c: Likewise.
1031 * inf-child.c: Likewise.
1032 * inf-ptrace.c: Likewise.
1033 * inf-ttrace.c: Likewise.
1034 * infcall.c: Likewise.
1035 * infcmd.c: Likewise.
1036 * inflow.c: Likewise.
1037 * infrun.c: Likewise.
1038 * interps.c: Likewise.
1039 * iq2000-tdep.c: Likewise.
1040 * irix5-nat.c: Likewise.
1041 * jv-exp.y: Likewise.
1042 * jv-lang.c: Likewise.
1043 * jv-typeprint.c: Likewise.
1044 * jv-valprint.c: Likewise.
1045 * language.c: Likewise.
1046 * linux-fork.c: Likewise.
1047 * linux-nat.c: Likewise.
1048 * lm32-tdep.c: Likewise.
1049 * m2-exp.y: Likewise.
1050 * m2-typeprint.c: Likewise.
1051 * m32c-tdep.c: Likewise.
1052 * m32r-linux-nat.c: Likewise.
1053 * m32r-linux-tdep.c: Likewise.
1054 * m32r-rom.c: Likewise.
1055 * m32r-tdep.c: Likewise.
1056 * m68hc11-tdep.c: Likewise.
1057 * m68k-tdep.c: Likewise.
1058 * m68kbsd-tdep.c: Likewise.
1059 * m68klinux-nat.c: Likewise.
1060 * m68klinux-tdep.c: Likewise.
1061 * m88k-tdep.c: Likewise.
1062 * machoread.c: Likewise.
1063 * macrocmd.c: Likewise.
1064 * main.c: Likewise.
1065 * mdebugread.c: Likewise.
1066 * mem-break.c: Likewise.
1067 * memattr.c: Likewise.
1068 * memory-map.c: Likewise.
1069 * mep-tdep.c: Likewise.
1070 * mi/mi-cmd-break.c: Likewise.
1071 * mi/mi-cmd-disas.c: Likewise.
1072 * mi/mi-cmd-env.c: Likewise.
1073 * mi/mi-cmd-stack.c: Likewise.
1074 * mi/mi-cmd-var.c: Likewise.
1075 * mi/mi-cmds.c: Likewise.
1076 * mi/mi-console.c: Likewise.
1077 * mi/mi-getopt.c: Likewise.
1078 * mi/mi-interp.c: Likewise.
1079 * mi/mi-main.c: Likewise.
1080 * mi/mi-parse.c: Likewise.
1081 * microblaze-rom.c: Likewise.
1082 * microblaze-tdep.c: Likewise.
1083 * mingw-hdep.c: Likewise.
1084 * minidebug.c: Likewise.
1085 * minsyms.c: Likewise.
1086 * mips-irix-tdep.c: Likewise.
1087 * mips-linux-tdep.c: Likewise.
1088 * mips-tdep.c: Likewise.
1089 * mips64obsd-tdep.c: Likewise.
1090 * mipsnbsd-tdep.c: Likewise.
1091 * mipsread.c: Likewise.
1092 * mn10300-linux-tdep.c: Likewise.
1093 * mn10300-tdep.c: Likewise.
1094 * monitor.c: Likewise.
1095 * moxie-tdep.c: Likewise.
1096 * mt-tdep.c: Likewise.
1097 * nat/linux-btrace.c: Likewise.
1098 * nat/linux-osdata.c: Likewise.
1099 * nat/linux-procfs.c: Likewise.
1100 * nat/linux-ptrace.c: Likewise.
1101 * nat/linux-waitpid.c: Likewise.
1102 * nbsd-tdep.c: Likewise.
1103 * nios2-linux-tdep.c: Likewise.
1104 * nto-procfs.c: Likewise.
1105 * nto-tdep.c: Likewise.
1106 * objc-lang.c: Likewise.
1107 * objfiles.c: Likewise.
1108 * opencl-lang.c: Likewise.
1109 * osabi.c: Likewise.
1110 * osdata.c: Likewise.
1111 * p-exp.y: Likewise.
1112 * p-lang.c: Likewise.
1113 * p-typeprint.c: Likewise.
1114 * parse.c: Likewise.
1115 * posix-hdep.c: Likewise.
1116 * ppc-linux-nat.c: Likewise.
1117 * ppc-sysv-tdep.c: Likewise.
1118 * ppcfbsd-tdep.c: Likewise.
1119 * ppcnbsd-tdep.c: Likewise.
1120 * ppcobsd-tdep.c: Likewise.
1121 * printcmd.c: Likewise.
1122 * procfs.c: Likewise.
1123 * prologue-value.c: Likewise.
1124 * python/py-auto-load.c: Likewise.
1125 * python/py-gdb-readline.c: Likewise.
1126 * ravenscar-thread.c: Likewise.
1127 * regcache.c: Likewise.
1128 * registry.c: Likewise.
1129 * remote-fileio.c: Likewise.
1130 * remote-m32r-sdi.c: Likewise.
1131 * remote-mips.c: Likewise.
1132 * remote-notif.c: Likewise.
1133 * remote-sim.c: Likewise.
1134 * remote.c: Likewise.
1135 * reverse.c: Likewise.
1136 * rs6000-aix-tdep.c: Likewise.
1137 * ser-base.c: Likewise.
1138 * ser-go32.c: Likewise.
1139 * ser-mingw.c: Likewise.
1140 * ser-pipe.c: Likewise.
1141 * ser-tcp.c: Likewise.
1142 * ser-unix.c: Likewise.
1143 * serial.c: Likewise.
1144 * sh-tdep.c: Likewise.
1145 * sh64-tdep.c: Likewise.
1146 * shnbsd-tdep.c: Likewise.
1147 * skip.c: Likewise.
1148 * sol-thread.c: Likewise.
1149 * solib-dsbt.c: Likewise.
1150 * solib-frv.c: Likewise.
1151 * solib-osf.c: Likewise.
1152 * solib-som.c: Likewise.
1153 * solib-spu.c: Likewise.
1154 * solib-target.c: Likewise.
1155 * solib.c: Likewise.
1156 * somread.c: Likewise.
1157 * source.c: Likewise.
1158 * sparc-nat.c: Likewise.
1159 * sparc-sol2-tdep.c: Likewise.
1160 * sparc-tdep.c: Likewise.
1161 * sparc64-tdep.c: Likewise.
1162 * sparc64fbsd-tdep.c: Likewise.
1163 * sparc64nbsd-tdep.c: Likewise.
1164 * sparcnbsd-tdep.c: Likewise.
1165 * spu-linux-nat.c: Likewise.
1166 * spu-multiarch.c: Likewise.
1167 * spu-tdep.c: Likewise.
1168 * stabsread.c: Likewise.
1169 * stack.c: Likewise.
1170 * std-regs.c: Likewise.
1171 * symfile.c: Likewise.
1172 * symmisc.c: Likewise.
1173 * symtab.c: Likewise.
1174 * target.c: Likewise.
1175 * thread.c: Likewise.
1176 * tilegx-linux-nat.c: Likewise.
1177 * tilegx-tdep.c: Likewise.
1178 * top.c: Likewise.
1179 * tracepoint.c: Likewise.
1180 * tui/tui-command.c: Likewise.
1181 * tui/tui-data.c: Likewise.
1182 * tui/tui-disasm.c: Likewise.
1183 * tui/tui-file.c: Likewise.
1184 * tui/tui-layout.c: Likewise.
1185 * tui/tui-out.c: Likewise.
1186 * tui/tui-regs.c: Likewise.
1187 * tui/tui-source.c: Likewise.
1188 * tui/tui-stack.c: Likewise.
1189 * tui/tui-win.c: Likewise.
1190 * tui/tui-windata.c: Likewise.
1191 * tui/tui-winsource.c: Likewise.
1192 * typeprint.c: Likewise.
1193 * ui-file.c: Likewise.
1194 * ui-out.c: Likewise.
1195 * user-regs.c: Likewise.
1196 * utils.c: Likewise.
1197 * v850-tdep.c: Likewise.
1198 * valarith.c: Likewise.
1199 * valops.c: Likewise.
1200 * valprint.c: Likewise.
1201 * value.c: Likewise.
1202 * varobj.c: Likewise.
1203 * vax-tdep.c: Likewise.
1204 * vaxnbsd-tdep.c: Likewise.
1205 * vaxobsd-tdep.c: Likewise.
1206 * windows-nat.c: Likewise.
1207 * xcoffread.c: Likewise.
1208 * xml-support.c: Likewise.
1209 * xstormy16-tdep.c: Likewise.
1210 * xtensa-linux-nat.c: Likewise.
1211
1212 2014-08-07 Gary Benson <gbenson@redhat.com>
1213
1214 * common/common-defs.h: Include gdb_assert.h.
1215 * aarch64-tdep.c: Do not include gdb_assert.h.
1216 * addrmap.c: Likewise.
1217 * aix-thread.c: Likewise.
1218 * alpha-linux-tdep.c: Likewise.
1219 * alpha-mdebug-tdep.c: Likewise.
1220 * alphanbsd-tdep.c: Likewise.
1221 * amd64-nat.c: Likewise.
1222 * amd64-tdep.c: Likewise.
1223 * amd64bsd-nat.c: Likewise.
1224 * amd64fbsd-nat.c: Likewise.
1225 * amd64fbsd-tdep.c: Likewise.
1226 * amd64nbsd-nat.c: Likewise.
1227 * amd64nbsd-tdep.c: Likewise.
1228 * amd64obsd-nat.c: Likewise.
1229 * amd64obsd-tdep.c: Likewise.
1230 * arch-utils.c: Likewise.
1231 * arm-tdep.c: Likewise.
1232 * armbsd-tdep.c: Likewise.
1233 * auxv.c: Likewise.
1234 * bcache.c: Likewise.
1235 * bfin-tdep.c: Likewise.
1236 * blockframe.c: Likewise.
1237 * breakpoint.c: Likewise.
1238 * bsd-kvm.c: Likewise.
1239 * bsd-uthread.c: Likewise.
1240 * buildsym.c: Likewise.
1241 * c-exp.y: Likewise.
1242 * c-lang.c: Likewise.
1243 * charset.c: Likewise.
1244 * cleanups.c: Likewise.
1245 * cli-out.c: Likewise.
1246 * cli/cli-decode.c: Likewise.
1247 * cli/cli-dump.c: Likewise.
1248 * cli/cli-logging.c: Likewise.
1249 * cli/cli-script.c: Likewise.
1250 * cli/cli-utils.c: Likewise.
1251 * coffread.c: Likewise.
1252 * common/common-utils.c: Likewise.
1253 * common/queue.h: Likewise.
1254 * common/signals.c: Likewise.
1255 * common/vec.h: Likewise.
1256 * complaints.c: Likewise.
1257 * completer.c: Likewise.
1258 * corelow.c: Likewise.
1259 * cp-abi.c: Likewise.
1260 * cp-name-parser.y: Likewise.
1261 * cp-namespace.c: Likewise.
1262 * cp-support.c: Likewise.
1263 * cris-tdep.c: Likewise.
1264 * dbxread.c: Likewise.
1265 * dictionary.c: Likewise.
1266 * doublest.c: Likewise.
1267 * dsrec.c: Likewise.
1268 * dummy-frame.c: Likewise.
1269 * dwarf2-frame-tailcall.c: Likewise.
1270 * dwarf2-frame.c: Likewise.
1271 * dwarf2expr.c: Likewise.
1272 * dwarf2loc.c: Likewise.
1273 * dwarf2read.c: Likewise.
1274 * eval.c: Likewise.
1275 * event-loop.c: Likewise.
1276 * exceptions.c: Likewise.
1277 * expprint.c: Likewise.
1278 * f-valprint.c: Likewise.
1279 * fbsd-nat.c: Likewise.
1280 * findvar.c: Likewise.
1281 * frame-unwind.c: Likewise.
1282 * frame.c: Likewise.
1283 * frv-tdep.c: Likewise.
1284 * gcore.c: Likewise.
1285 * gdb-dlfcn.c: Likewise.
1286 * gdb_bfd.c: Likewise.
1287 * gdbarch.c: Likewise.
1288 * gdbarch.sh: Likewise.
1289 * gdbtypes.c: Likewise.
1290 * gnu-nat.c: Likewise.
1291 * gnu-v3-abi.c: Likewise.
1292 * go-lang.c: Likewise.
1293 * guile/scm-exception.c: Likewise.
1294 * guile/scm-gsmob.c: Likewise.
1295 * guile/scm-lazy-string.c: Likewise.
1296 * guile/scm-math.c: Likewise.
1297 * guile/scm-pretty-print.c: Likewise.
1298 * guile/scm-safe-call.c: Likewise.
1299 * guile/scm-utils.c: Likewise.
1300 * guile/scm-value.c: Likewise.
1301 * h8300-tdep.c: Likewise.
1302 * hppa-hpux-nat.c: Likewise.
1303 * hppa-tdep.c: Likewise.
1304 * hppanbsd-tdep.c: Likewise.
1305 * hppaobsd-tdep.c: Likewise.
1306 * i386-darwin-nat.c: Likewise.
1307 * i386-darwin-tdep.c: Likewise.
1308 * i386-nto-tdep.c: Likewise.
1309 * i386-tdep.c: Likewise.
1310 * i386bsd-nat.c: Likewise.
1311 * i386fbsd-tdep.c: Likewise.
1312 * i386gnu-nat.c: Likewise.
1313 * i386nbsd-tdep.c: Likewise.
1314 * i386obsd-tdep.c: Likewise.
1315 * i387-tdep.c: Likewise.
1316 * ia64-libunwind-tdep.c: Likewise.
1317 * ia64-tdep.c: Likewise.
1318 * inf-ptrace.c: Likewise.
1319 * inf-ttrace.c: Likewise.
1320 * infcall.c: Likewise.
1321 * infcmd.c: Likewise.
1322 * infrun.c: Likewise.
1323 * inline-frame.c: Likewise.
1324 * interps.c: Likewise.
1325 * jv-lang.c: Likewise.
1326 * jv-typeprint.c: Likewise.
1327 * linux-fork.c: Likewise.
1328 * linux-nat.c: Likewise.
1329 * linux-thread-db.c: Likewise.
1330 * m32c-tdep.c: Likewise.
1331 * m32r-linux-nat.c: Likewise.
1332 * m32r-tdep.c: Likewise.
1333 * m68k-tdep.c: Likewise.
1334 * m68kbsd-nat.c: Likewise.
1335 * m68kbsd-tdep.c: Likewise.
1336 * m88k-tdep.c: Likewise.
1337 * machoread.c: Likewise.
1338 * macroexp.c: Likewise.
1339 * macrotab.c: Likewise.
1340 * maint.c: Likewise.
1341 * mdebugread.c: Likewise.
1342 * memory-map.c: Likewise.
1343 * mep-tdep.c: Likewise.
1344 * mi/mi-common.c: Likewise.
1345 * microblaze-tdep.c: Likewise.
1346 * mingw-hdep.c: Likewise.
1347 * mips-linux-nat.c: Likewise.
1348 * mips-linux-tdep.c: Likewise.
1349 * mips-tdep.c: Likewise.
1350 * mips64obsd-tdep.c: Likewise.
1351 * mipsnbsd-tdep.c: Likewise.
1352 * mn10300-linux-tdep.c: Likewise.
1353 * mn10300-tdep.c: Likewise.
1354 * moxie-tdep.c: Likewise.
1355 * mt-tdep.c: Likewise.
1356 * nat/linux-btrace.c: Likewise.
1357 * nat/linux-osdata.c: Likewise.
1358 * nat/linux-ptrace.c: Likewise.
1359 * nat/mips-linux-watch.c: Likewise.
1360 * nios2-linux-tdep.c: Likewise.
1361 * nios2-tdep.c: Likewise.
1362 * objc-lang.c: Likewise.
1363 * objfiles.c: Likewise.
1364 * obsd-nat.c: Likewise.
1365 * opencl-lang.c: Likewise.
1366 * osabi.c: Likewise.
1367 * parse.c: Likewise.
1368 * ppc-linux-nat.c: Likewise.
1369 * ppc-sysv-tdep.c: Likewise.
1370 * ppcfbsd-nat.c: Likewise.
1371 * ppcfbsd-tdep.c: Likewise.
1372 * ppcnbsd-nat.c: Likewise.
1373 * ppcnbsd-tdep.c: Likewise.
1374 * ppcobsd-nat.c: Likewise.
1375 * ppcobsd-tdep.c: Likewise.
1376 * printcmd.c: Likewise.
1377 * procfs.c: Likewise.
1378 * prologue-value.c: Likewise.
1379 * psymtab.c: Likewise.
1380 * python/py-lazy-string.c: Likewise.
1381 * python/py-value.c: Likewise.
1382 * regcache.c: Likewise.
1383 * reggroups.c: Likewise.
1384 * registry.c: Likewise.
1385 * remote-sim.c: Likewise.
1386 * remote.c: Likewise.
1387 * rs6000-aix-tdep.c: Likewise.
1388 * rs6000-tdep.c: Likewise.
1389 * s390-linux-tdep.c: Likewise.
1390 * score-tdep.c: Likewise.
1391 * ser-base.c: Likewise.
1392 * ser-mingw.c: Likewise.
1393 * sh-tdep.c: Likewise.
1394 * sh64-tdep.c: Likewise.
1395 * solib-darwin.c: Likewise.
1396 * solib-spu.c: Likewise.
1397 * solib-svr4.c: Likewise.
1398 * source.c: Likewise.
1399 * sparc-nat.c: Likewise.
1400 * sparc-sol2-tdep.c: Likewise.
1401 * sparc-tdep.c: Likewise.
1402 * sparc64-sol2-tdep.c: Likewise.
1403 * sparc64-tdep.c: Likewise.
1404 * sparc64fbsd-tdep.c: Likewise.
1405 * sparc64nbsd-tdep.c: Likewise.
1406 * sparc64obsd-tdep.c: Likewise.
1407 * sparcnbsd-tdep.c: Likewise.
1408 * sparcobsd-tdep.c: Likewise.
1409 * spu-multiarch.c: Likewise.
1410 * spu-tdep.c: Likewise.
1411 * stabsread.c: Likewise.
1412 * stack.c: Likewise.
1413 * symfile.c: Likewise.
1414 * symtab.c: Likewise.
1415 * target-descriptions.c: Likewise.
1416 * target-memory.c: Likewise.
1417 * target.c: Likewise.
1418 * tic6x-linux-tdep.c: Likewise.
1419 * tic6x-tdep.c: Likewise.
1420 * tilegx-linux-nat.c: Likewise.
1421 * tilegx-tdep.c: Likewise.
1422 * top.c: Likewise.
1423 * tramp-frame.c: Likewise.
1424 * tui/tui-out.c: Likewise.
1425 * tui/tui-winsource.c: Likewise.
1426 * ui-out.c: Likewise.
1427 * user-regs.c: Likewise.
1428 * utils.c: Likewise.
1429 * v850-tdep.c: Likewise.
1430 * valops.c: Likewise.
1431 * value.c: Likewise.
1432 * varobj.c: Likewise.
1433 * vax-nat.c: Likewise.
1434 * xml-syscall.c: Likewise.
1435 * xml-tdesc.c: Likewise.
1436 * xstormy16-tdep.c: Likewise.
1437 * xtensa-linux-nat.c: Likewise.
1438 * xtensa-tdep.c: Likewise.
1439
1440 2014-08-07 Gary Benson <gbenson@redhat.com>
1441
1442 * common/common-defs.h: Include common-utils.h.
1443 * defs.h: Do not include common-utils.h.
1444 * common/gdb_assert.h: Likewise.
1445 * darwin-nat.h: Likewise.
1446 * nat/linux-btrace.c: Likewise.
1447 * target/waitstatus.h: Likewise.
1448
1449 2014-08-07 Gary Benson <gbenson@redhat.com>
1450
1451 * common/common-defs.h: Include ptid.h.
1452 * defs.h: Do not include ptid.h.
1453 * inferior.h: Likewise.
1454 * infrun.h: Likewise.
1455 * nat/linux-btrace.h: Likewise.
1456 * nat/linux-osdata.h: Likewise.
1457 * target/waitstatus.h: Likewise.
1458
1459 2014-08-07 Gary Benson <gbenson@redhat.com>
1460
1461 * common/common-defs.h: Include gdb_locale.h.
1462 * defs.h: Do not include gdb_locale.h.
1463
1464 2014-08-07 Gary Benson <gbenson@redhat.com>
1465
1466 * common/common-defs.h: Include gdb/signals.h.
1467 * defs.h: Do not include gdb/signals.h.
1468
1469 2014-08-07 Gary Benson <gbenson@redhat.com>
1470
1471 * common/common-defs.h: Include pathmax.h.
1472 * defs.h: Do not include pathmax.h.
1473
1474 2014-08-07 Gary Benson <gbenson@redhat.com>
1475
1476 * common/common-defs.h: Include libiberty.h.
1477 * defs.h: Do not include libiberty.h.
1478 * common/queue.h: Likewise.
1479 * cp-name-parser.y: Likewise.
1480 * mi/mi-cmd-catch.c: Likewise.
1481 * python/python.c: Likewise.
1482
1483 2014-08-07 Gary Benson <gbenson@redhat.com>
1484
1485 * common/common-defs.h: Include ansidecl.h.
1486 * defs.h: Do not include ansidecl.h.
1487 * common/buffer.h: Likewise.
1488 * common/common-utils.h: Likewise.
1489
1490 2014-08-07 Gary Benson <gbenson@redhat.com>
1491
1492 * common/common-defs.h: Include stddef.h.
1493 * defs.h: Do not include stddef.h.
1494 * common/common-utils.h: Likewise.
1495 * amd64fbsd-nat.c: Likewise.
1496 * bcache.c: Likewise.
1497 * charset.c: Likewise.
1498 * common/buffer.h: Likewise.
1499 * common/vec.h: Likewise.
1500 * i386bsd-nat.c: Likewise.
1501 * nat/linux-btrace.h: Likewise.
1502 * ppcfbsd-nat.c: Likewise.
1503 * ppcnbsd-tdep.h: Likewise.
1504 * ppcobsd-nat.c: Likewise.
1505 * ppcobsd-tdep.h: Likewise.
1506 * python/py-gdb-readline.c: Likewise.
1507
1508 2014-08-07 Gary Benson <gbenson@redhat.com>
1509
1510 * common/common-defs.h: Include stdarg.h.
1511 * defs.h: Do not include stdarg.h.
1512 * ada-lang.c: Likewise.
1513 * common/common-utils.h: Likewise.
1514 * guile/scm-string.c: Likewise.
1515 * guile/scm-utils.c: Likewise.
1516 * m32c-tdep.c: Likewise.
1517
1518 2014-08-07 Gary Benson <gbenson@redhat.com>
1519
1520 * common/common-defs.h: Include stdlib.h.
1521 * defs.h: Do not include stdlib.h.
1522 * addrmap.c: Likewise.
1523 * bcache.c: Likewise.
1524 * common/buffer.c: Likewise.
1525 * common/common-utils.c: Likewise.
1526 * cp-name-parser.y: Likewise.
1527 * go32-nat.c: Likewise.
1528 * mn10300-linux-tdep.c: Likewise.
1529 * nat/linux-osdata.c: Likewise.
1530 * tui/tui.c: Likewise.
1531 * windows-nat.c: Likewise.
1532
1533 2014-08-07 Gary Benson <gbenson@redhat.com>
1534
1535 * common/common-defs.h: Include stdio.h.
1536 * defs.h: Do not include stdio.h.
1537 * ada-lang.c: Likewise.
1538 * common/buffer.c: Likewise.
1539 * common/common-utils.c: Likewise.
1540 * cp-name-parser.y: Likewise.
1541 * gnu-nat.c: Likewise.
1542 * go32-nat.c: Likewise.
1543 * i386gnu-nat.c: Likewise.
1544 * proc-api.c: Likewise.
1545 * proc-events.c: Likewise.
1546 * proc-flags.c: Likewise.
1547 * proc-why.c: Likewise.
1548 * python/python-internal.h: Likewise.
1549 * target-memory.c: Likewise.
1550 * tui/tui-io.c: Likewise.
1551 * tui/tui.c: Likewise.
1552
1553 2014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1554
1555 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1556 (scan_dyntag_auxv): Same.
1557
1558 2014-08-06 Yao Qi <yao@codesourcery.com>
1559
1560 * amd64-linux-nat.c: Remove duplicated include
1561 "x86-linux-nat.h".
1562 * i386-linux-nat.c: Likewise.
1563
1564 2014-08-06 Yao Qi <yao@codesourcery.com>
1565
1566 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1567 operand" with "Special opcode" in comments.
1568
1569 2014-08-05 Gary Benson <gbenson@redhat.com>
1570
1571 * interps.c (initialize_interps): Remove prototype.
1572 (interpreter_initialized): Remove static global.
1573 (interp_add): Do not call initialize_interps.
1574 (initialize_interps): Remove function.
1575
1576 2014-08-05 Gary Benson <gbenson@redhat.com>
1577
1578 * utils.c (vwarning): Remove spurious va_end.
1579
1580 2014-08-05 Alan Modra <amodra@gmail.com>
1581
1582 * charset.c (convert_between_encodings): Cast result of obstack_base.
1583 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1584 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1585 (read_unwind_info): Use size_t for some locals.
1586 * jit.c (finalize_symtab): Likewise.
1587 * utils.c (hashtab_obstack_allocate): Likewise.
1588 * symmisc.c (print_objfile_statistics): Update format strings.
1589
1590 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1591
1592 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1593 (Changes in GDB 7.8): ... here.
1594
1595 2014-08-04 Tom Tromey <tromey@redhat.com>
1596
1597 * target.c (set_targetdebug): New function.
1598 (initialize_targets): Pass set_targetdebug when creating "set
1599 debug target".
1600
1601 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1602
1603 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1604 if detecting a variable-sized field that is not the last field.
1605 Fix struct type length computation.
1606
1607 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1608
1609 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1610 Add debug trace.
1611
1612 2014-08-01 Joel Brobecker <brobecker@adacore.com>
1613
1614 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1615 Remove "+ 8" offset in computation of CHAIN_VMA.
1616
1617 2014-07-31 Doug Evans <dje@google.com>
1618
1619 * inflow.c (child_terminal_inferior): Add comment.
1620 (child_terminal_ours_for_output): Add comment.
1621 (child_terminal_ours): Add comment.
1622 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1623 (linux_nat_terminal_ours): Add comment.
1624
1625 2014-07-31 Gary Benson <gbenson@redhat.com>
1626
1627 * common/btrace-common.h: Do not include defs.h or server.h.
1628 * nat/mips-linux-watch.h: Likewise.
1629 * gdb-dlfcn.h: Do not include defs.h.
1630 * tracefile.h: Likewise.
1631
1632 2014-07-30 Roland McGrath <mcgrathr@google.com>
1633
1634 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1635
1636 2014-07-30 Tom Tromey <tromey@redhat.com>
1637
1638 * bsd-kvm.c (bsd_kvm_open): Constify.
1639 * corelow.c (core_open): Constify.
1640 * ctf.c (ctf_open): Constify.
1641 * dbug-rom.c (dbug_open): Constify.
1642 * exec.c (exec_open): Constify.
1643 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1644 * microblaze-rom.c (picobug_open): Constify.
1645 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1646 Constify.
1647 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1648 * record-btrace.c (record_btrace_open): Constify.
1649 * record-full.c (record_full_core_open_1, record_full_open_1)
1650 (record_full_open): Constify.
1651 * remote-m32r-sdi.c (m32r_open): Constify.
1652 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1653 (rockhopper_open, lsi_open): Constify.
1654 * remote-sim.c (gdbsim_open): Constify.
1655 * remote.c (remote_open, extended_remote_open, remote_open_1):
1656 Constify.
1657 * target.h (struct target_ops) <to_open>: Make "arg" const.
1658 * tracefile-tfile.c (tfile_open): Constify.
1659
1660 2014-07-30 Tom Tromey <tromey@redhat.com>
1661
1662 * breakpoint.c (map_breakpoint_numbers): Update.
1663 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1664 (get_number_const): New function.
1665 (get_number): Rewrite using get_number_const.
1666 (init_number_or_range): Make "string" const.
1667 (number_is_in_list): Make "list" const.
1668 * cli/cli-utils.h (get_number_const): Declare.
1669 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1670 (init_number_or_range, number_is_in_list): Update.
1671 * printcmd.c (map_display_numbers): Update.
1672 * value.c (value_from_history_ref): Constify.
1673 * value.h (value_from_history_ref): Update.
1674
1675 2014-07-30 Tom Tromey <tromey@redhat.com>
1676
1677 * corefile.c (hook_type, call_extra_exec_file_hooks)
1678 (specify_exec_file_hook): Constify.
1679 * exec.c (exec_file_attach): Make "filename" const.
1680 * gdbcore.h (deprecated_exec_file_display_hook)
1681 (specify_exec_file_hook, exec_file_attach): Constify.
1682 * main.c (captured_main): Use catch_command_errors_const.
1683
1684 2014-07-30 Tom Tromey <tromey@redhat.com>
1685
1686 * target.c (open_target): New function.
1687 (add_target_with_completer, add_deprecated_target_alias): Use
1688 set_cmd_sfunc, set_cmd_context.
1689 (debug_to_open): Remove.
1690 (setup_target_debug): Update.
1691
1692 2014-07-30 Yao Qi <yao@codesourcery.com>
1693
1694 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1695 comments.
1696 * parse.c (exp_iterate): Update comments.
1697
1698 2014-07-30 Gary Benson <gbenson@redhat.com>
1699
1700 * common/common-defs.h: New file.
1701 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1702 * defs.h: Include common-defs.h.
1703 Do not include config.h or build-gnulib/config.h.
1704
1705 2014-07-30 Gary Benson <gbenson@redhat.com>
1706
1707 * common/common-utils.h: Do not include config.h.
1708 * nat/linux-btrace.h: Likewise.
1709
1710 2014-07-30 Gary Benson <gbenson@redhat.com>
1711
1712 * btrace.c: Include defs.h.
1713 * common/ptid.c: Include defs.h or server.h as appropriate.
1714 * nat/mips-linux-watch.c: Likewise.
1715
1716 2014-07-29 Tom Tromey <tromey@redhat.com>
1717
1718 * target.c (target_is_pushed): Simplify.
1719
1720 2014-07-29 Joel Brobecker <brobecker@adacore.com>
1721
1722 GDB 7.8 released.
1723
1724 2014-07-29 Yao Qi <yao@codesourcery.com>
1725
1726 PR gdb/17206
1727 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1728
1729 2014-07-28 Doug Evans <xdje42@gmail.com>
1730
1731 PR guile/17203
1732 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1733 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1734 parameters.
1735
1736 2014-07-28 Will Newton <will.newton@linaro.org>
1737
1738 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1739 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1740 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1741 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1742 (THUMB2_EABI_SYSCALL): Likewise.
1743 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1744 struct tramp_frame.
1745 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1746 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1747
1748 2014-07-27 Doug Evans <xdje42@gmail.com>
1749
1750 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1751
1752 2014-07-27 Doug Evans <xdje42@gmail.com>
1753
1754 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1755
1756 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1757 Doug Evans <xdje42@gmail.com>
1758
1759 PR guile/17146
1760 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1761 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1762 * configure.ac: Try to use guild to compile an scm file, if it fails
1763 then disable guile support.
1764 * configure: Regenerate.
1765 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1766 GUILE_FILE_LIST.
1767 (GUILE_COMPILED_FILES): New variable.
1768 (GUILE_FILES) Update.
1769 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1770 (stamp-guile): Compile scm files.
1771 * guile/guile.c (boot_guile_support): New function.
1772 (standard_throw_args_p): New function.
1773 (print_standard_throw_error, print_throw_error): New functions.
1774 (handle_boot_error): New function.
1775 (initialize_scheme_side): Rewrite to call boot_guile_support.
1776 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1777 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1778
1779 2014-07-26 Ludovic Courtès <ludo@gnu.org>
1780 Doug Evans <xdje42@gmail.com>
1781
1782 PR guile/17146
1783 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1784 * guile/lib/gdb/support.scm: New file.
1785 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1786 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1787 All uses updated.
1788 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1789 All uses updated.
1790 (%assert-type): Ditto, and renamed to assert-type.
1791 (%exception-print-style): Delete.
1792
1793 2014-07-26 Doug Evans <xdje42@gmail.com>
1794
1795 PR build/17105
1796 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1797 * configure: Regenerate.
1798 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1799 PYTHON_FILES.
1800 (PYTHON_FILES): New variable.
1801 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1802 (GUILE_FILES): New variable.
1803 (stamp-python, install-python, uninstall-python): Handle empty
1804 file list.
1805 (stamp-guile, install-guile, uninstall-guile): Ditto.
1806
1807 2014-07-26 Doug Evans <xdje42@gmail.com>
1808
1809 PR guile/17177
1810 * guile/lib/gdb.scm (pretty-printers): Export.
1811 (set-pretty-printers!): Export.
1812 * guile/lib/gdb/printing.scm (gdb module): Update.
1813 (prepend-pretty-printer!, append-pretty-printer!): Update.
1814 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1815 (pretty_printer_list_var): Delete.
1816 (pretty_printer_list): New static global.
1817 (gdbscm_pretty_printers): New function.
1818 (gdbscm_set_pretty_printers_x): New function.
1819 (ppscm_find_pretty_printer_from_gdb): Update.
1820 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1821 (gdbscm_initialize_pretty_printers): Update.
1822
1823 2014-07-26 Doug Evans <xdje42@gmail.com>
1824
1825 PR 17185
1826 * configure.ac: Add check for header gc/gc.h.
1827 Add check for function setenv.
1828 * configure: Regenerate.
1829 * config.in: Regenerate.
1830 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1831
1832 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1833
1834 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1835 variation in gdbarch matching.
1836
1837 2014-07-25 Tom Tromey <tromey@redhat.com>
1838
1839 * exec.c (using_exec_ops): Remove.
1840 (exec_close_1): Update. Remove extraneous block, reindent.
1841 (add_target_sections): Use target_is_pushed.
1842
1843 2014-07-25 Pedro Alves <palves@redhat.com>
1844
1845 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1846 * monitor.c (monitor_create_inferior): Likewise.
1847 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1848 * remote-sim.c (gdbsim_create_inferior): Likewise.
1849 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1850 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1851 * windows-nat.c (do_initial_windows_stuff): Likewise.
1852
1853 2014-07-25 Pedro Alves <palves@redhat.com>
1854
1855 * NEWS: Mention signal passing and "signal" command changes.
1856 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1857 comment.
1858 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1859 call.
1860 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1861 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1862 (jump_command): Adjust clear_proceed_status call.
1863 (signal_command): Warn if other thread that are resumed have
1864 signals that will be delivered. Adjust clear_proceed_status call.
1865 (until_next_command, finish_command)
1866 (proceed_after_attach_callback, attach_command_post_wait)
1867 (attach_command): Adjust clear_proceed_status call.
1868 * infrun.c (proceed_after_vfork_done): Likewise.
1869 (proceed_after_attach_callback): Adjust comment.
1870 (clear_proceed_status_thread): Clear stop_signal if not in pass
1871 state.
1872 (clear_proceed_status_callback): Delete.
1873 (clear_proceed_status): New 'step' parameter. Only clear the
1874 proceed status of threads the command being prepared is about to
1875 resume.
1876 (proceed): If passed in an explicit signal, override stop_signal
1877 with it. Don't pass the last stop signal to the thread we're
1878 resuming.
1879 (init_wait_for_inferior): Adjust clear_proceed_status call.
1880 (switch_back_to_stepped_thread): Clear the signal if it should not
1881 be passed.
1882 * infrun.h (clear_proceed_status): New 'step' parameter.
1883 (user_visible_resume_ptid): Add comment.
1884 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1885 signal is in pass state.
1886 * remote.c (append_pending_thread_resumptions): Likewise.
1887 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1888
1889 2014-07-25 Tom Tromey <tromey@redhat.com>
1890
1891 * target.h (target_stopped_data_address)
1892 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1893 parentheses.
1894
1895 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1896
1897 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1898 comments.
1899 (avr_pointer_to_address): Likewise.
1900
1901 2014-07-24 Tom Tromey <tromey@redhat.com>
1902
1903 * monitor.c (compile_pattern): Update.
1904 * target.h (struct target_ops) <to_shortname, to_longname,
1905 to_doc>: Now const.
1906
1907 2014-07-24 Tom Tromey <tromey@redhat.com>
1908
1909 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1910 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1911 (add_info_alias, add_com): Make "doc" const.
1912 (print_doc_line): Make "str" const.
1913 (delete_cmd): Update.
1914 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1915 (print_doc_line): Update.
1916 * cli/cli-script.c (document_command): Update.
1917 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1918 (add_com, add_info, add_info_alias): Update.
1919 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1920 * python/py-cmd.c (cmdpy_destroyer): Update.
1921
1922 2014-07-24 Tom Tromey <tromey@redhat.com>
1923
1924 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1925 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1926 (help_cmd_list): Constify.
1927 (lookup_cmd): Update.
1928 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1929 const.
1930 (help_cmd_list, apropos_cmd): Update.
1931 * cli/cli-script.c (show_user): Update.
1932 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1933 * cli/cli-setshow.h (cmd_show_list): Update.
1934 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1935 (cmd_show_list): Update.
1936 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1937 * python/py-cmd.c (cmdpy_destroyer): Update.
1938
1939 2014-07-24 Tom Tromey <tromey@redhat.com>
1940
1941 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1942 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1943 const.
1944 * command.h (deprecate_cmd): Update.
1945 * maint.c (maintenance_do_deprecate): Add casts.
1946
1947 2014-07-24 Tom Tromey <tromey@redhat.com>
1948
1949 * cli/cli-decode.c (help_cmd): Make parameter "const".
1950 * cli/cli-decode.h (help_cmd): Update.
1951
1952 2014-07-24 Tom Tromey <tromey@redhat.com>
1953
1954 * stack.c (up_silently_base, down_silently_base): Make argument
1955 const.
1956
1957 2014-07-24 Tom Tromey <tromey@redhat.com>
1958
1959 * solib.c (solib_add): Make "pattern" const.
1960 * solib.h (solib_add): Update.
1961
1962 2014-07-24 Tom Tromey <tromey@redhat.com>
1963
1964 * remote.c (remote_serial_open, print_packet, putpkt)
1965 (putpkt_binary): Constify.
1966 * remote.h (putpkt): Update.
1967
1968 2014-07-24 Tom Tromey <tromey@redhat.com>
1969
1970 * monitor.c (monitor_open): Make "args" const.
1971 * monitor.h (monitor_open): Update.
1972
1973 2014-07-24 Tom Tromey <tromey@redhat.com>
1974
1975 * maint.c (match_bfd_flags): Make "string" const.
1976 (print_bfd_section_info): Remove casts.
1977 (print_objfile_section_info): Make "string" const.
1978
1979 2014-07-24 Tom Tromey <tromey@redhat.com>
1980
1981 * inf-child.c (inf_child_open_target): Make "arg" const.
1982 * inf-child.h (inf_child_open_target): Update.
1983
1984 2014-07-24 Tom Tromey <tromey@redhat.com>
1985
1986 * environ.c (unset_in_environ): Make "var" const.
1987 * environ.h (unset_in_environ): Update.
1988
1989 2014-07-24 Tom Tromey <tromey@redhat.com>
1990
1991 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1992 Make "cmd" const.
1993 (scan_filename_with_cleanup): Likewise.
1994 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1995 Make arguments const.
1996 (restore_command): Update.
1997
1998 2014-07-24 Pedro Alves <palves@redhat.com>
1999
2000 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2001
2002 2014-07-24 Tom Tromey <tromey@redhat.com>
2003 Gary Benson <gbenson@redhat.com>
2004
2005 * nat/linux-ptrace.c (additional_flags): New global.
2006 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2007 additional_flags; don't check GDBSERVER.
2008 (linux_ptrace_set_additional_flags): New function.
2009 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2010 Declare.
2011 * linux-nat.c (_initialize_linux_nat): Call
2012 linux_ptrace_set_additional_flags.
2013
2014 2014-07-24 Tom Tromey <tromey@redhat.com>
2015
2016 * make-target-delegates (munge_type, write_debugmethod): New
2017 functions.
2018 (debug_names): New global.
2019 ($TARGET_DEBUG_PRINTER): New global.
2020 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2021 name.
2022 Write debug methods. Generate init_debug_target.
2023 * target-debug.h: New file.
2024 * target-delegates.c: Rebuild.
2025 * target.c: Include target-debug.h.
2026 (debug_target): Hoist definition.
2027 (target_kill, target_get_section_table, target_memory_map)
2028 (target_flash_erase, target_flash_done, target_detach)
2029 (target_disconnect, target_wait, target_resume)
2030 (target_pass_signals, target_program_signals, target_follow_fork)
2031 (target_mourn_inferior, target_search_memory)
2032 (target_thread_address_space, target_close)
2033 (target_find_new_threads, target_core_of_thread)
2034 (target_verify_memory, target_insert_mask_watchpoint)
2035 (target_remove_mask_watchpoint): Remove targetdebug code.
2036 (debug_to_post_attach, debug_to_prepare_to_store)
2037 (debug_to_files_info, debug_to_insert_breakpoint)
2038 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2039 (debug_to_region_ok_for_hw_watchpoint)
2040 (debug_to_can_accel_watchpoint_condition)
2041 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2042 (debug_to_watchpoint_addr_within_range)
2043 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2044 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2045 (debug_to_terminal_init, debug_to_terminal_inferior)
2046 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2047 (debug_to_terminal_save_ours, debug_to_terminal_info)
2048 (debug_to_load, debug_to_post_startup_inferior)
2049 (debug_to_insert_fork_catchpoint)
2050 (debug_to_remove_fork_catchpoint)
2051 (debug_to_insert_vfork_catchpoint)
2052 (debug_to_remove_vfork_catchpoint)
2053 (debug_to_insert_exec_catchpoint)
2054 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2055 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2056 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2057 (setup_target_debug): Call init_debug_target.
2058 * target.h (TARGET_DEBUG_PRINTER): New macro.
2059 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2060 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2061
2062 2014-07-24 Gary Benson <gbenson@redhat.com>
2063
2064 * exceptions.h (throw_vfatal): Renamed to...
2065 (throw_vquit): New declaration.
2066 (throw_quit): Likewise.
2067 * exceptions.c (throw_vfatal): Renamed to...
2068 (throw_vquit): New function.
2069 (throw_quit): Likewise.
2070 (throw_error): Call throw_verror rather than throw_it.
2071 * utils.h (vfatal): Removed.
2072 (fatal): Likewise.
2073 * utils.c (vfatal): Removed.
2074 (fatal): Likewise.
2075 (internal_verror): Replaced call to fatal with call to throw_quit.
2076 (quit): Replaced calls to fatal with calls to throw_quit.
2077
2078 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2079
2080 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2081 target_read_code.
2082
2083 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2084
2085 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2086 less than zero in conditional expression.
2087
2088 2014-07-23 Tom Tromey <tromey@redhat.com>
2089
2090 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2091 ($INTRO_PART): Don't match whitespace.
2092 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2093 argument matching.
2094 ($METHOD): Add $METHOD_TRAILER.
2095 (trim): Rewrite.
2096 (scan_target_h): New sub.
2097 Change main loop not to collect state.
2098 * target-delegates.c: Rebuild.
2099
2100 2014-07-23 Gary Benson <gbenson@redhat.com>
2101
2102 * cp-support.c (gdb_demangle): Fix build on systems without
2103 sigaltstack.
2104
2105 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2106
2107 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2108 for reference entry value target data value.
2109
2110 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2111
2112 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2113 value_available_contents_eq.
2114
2115 2014-07-22 Pedro Alves <palves@redhat.com>
2116
2117 * value.c (allocate_optimized_out_value): Don't mark value as
2118 non-lazy.
2119
2120 2014-07-22 Jiong Wang <jiong.wang@arm.com>
2121
2122 * MAINTAINERS (Write After Approval): Update my email address.
2123
2124 2014-07-20 Doug Evans <dje@google.com>
2125
2126 PR server/17147
2127 * remote.c (putpkt_binary): Add text to error message.
2128
2129 2014-07-20 Yao Qi <yao@codesourcery.com>
2130
2131 * eval.c: Remove "Chill" from comments.
2132 * gdbtypes.h: Likewise.
2133 * symtab.h: Likewise.
2134
2135 2014-07-20 Yao Qi <yao@codesourcery.com>
2136
2137 * std-operator.def: Update comments to TERNOP_SLICE.
2138
2139 2014-07-20 Yao Qi <yao@codesourcery.com>
2140
2141 * std-operator.def: Remove BINOP_RANGE.
2142 * breakpoint.c (watchpoint_exp_is_const): Update.
2143 * expprint.c (dump_subexp_body_standard): Likewise.
2144 * eval.c (init_array_element): Remove dead code.
2145 (evaluate_subexp_standard): Likewise.
2146
2147 2014-07-20 Yao Qi <yao@codesourcery.com>
2148
2149 * std-operator.def: Remove BINOP_IN.
2150 * breakpoint.c (watchpoint_exp_is_const): Update.
2151 * eval.c (evaluate_subexp_standard): Likewise.
2152 * expprint.c (dump_subexp_body_standard): Likewise.
2153
2154 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2155
2156 * microblaze-tdep.c (microblaze_register_names): Add
2157 the rshr and rslr register names.
2158 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2159 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2160 Use of tdesc_numbered_register. Use of
2161 microblaze_register_g_packet_guesses. Use of
2162 tdesc_use_registers. Use of set_gdbarch_register_type.
2163 (microblaze_register_g_packet_guesses): New.
2164 * microblaze-tdep.h (microblaze_reg_num): Add
2165 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2166 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2167 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2168 * features/microblaze-core.xml: New file.
2169 * features/microblaze-stack-protect.xml: New file.
2170 * features/microblaze-with-stack-protect.c: New file.
2171 * features/microblaze-with-stack-protect.xml: New file.
2172 * features/microblaze.xml: New file.
2173 * features/microblaze.c: New file.
2174 * features/Makefile (microblaze-with-stack-protect): Add
2175 microblaze-with-stack-protect microblaze and microblaze-expedite.
2176 * regformats/microblaze-with-stack-protect.dat: New file.
2177 * regformats/microblaze.dat: New file.
2178 * doc/gdb.texinfo (MicroBlaze Features): Added.
2179
2180 2014-07-18 Tom Tromey <tromey@redhat.com>
2181
2182 * exec.c (exec_ops): Now static.
2183 * exec.h (exec_ops): Don't declare.
2184
2185 2014-07-18 Tom Tromey <tromey@redhat.com>
2186
2187 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2188 to find_target_beneath.
2189 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2190 find_target_beneath.
2191 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2192
2193 2014-07-18 Tom Tromey <tromey@redhat.com>
2194
2195 PR gdb/17130:
2196 * utils.c (quit): Use target_supports_terminal_ours.
2197 * target.h (target_supports_terminal_ours): Declare.
2198 * target.c (target_supports_delete_record): Don't check
2199 to_delete_record against NULL.
2200 (target_supports_terminal_ours): New function.
2201
2202 2014-07-18 Tom Tromey <tromey@redhat.com>
2203
2204 PR gdb/17130:
2205 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2206 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2207 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2208 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2209 * windows-nat.c (windows_xfer_partial): Always delegate.
2210 * record-btrace.c (record_btrace_xfer_partial): Simplify
2211 delegation.
2212 (record_btrace_fetch_registers, record_btrace_store_registers)
2213 (record_btrace_prepare_to_store, record_btrace_resume)
2214 (record_btrace_wait, record_btrace_find_new_threads)
2215 (record_btrace_thread_alive): Likewise.
2216 * procfs.c (procfs_xfer_partial): Always delegate.
2217 * corelow.c (core_xfer_partial): Always delegate.
2218 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2219
2220 2014-07-18 Tom Tromey <tromey@redhat.com>
2221
2222 * exec.c (exec_make_note_section): Move earlier.
2223
2224 2014-07-17 Doug Evans <dje@google.com>
2225
2226 PR gdb/17170
2227 * maint.c (count_symtabs_and_blocks): Handle NULL
2228 current_program_space.
2229 (report_command_stats): Check global enabled flag in addition to
2230 recorded enabled flag.
2231 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2232
2233 2014-07-16 Pedro Alves <palves@redhat.com>
2234
2235 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2236
2237 2014-07-16 Tom Tromey <tromey@redhat.com>
2238
2239 * target.h (struct target_ops) <to_delete_record>: Reformat
2240 comment.
2241
2242 2014-07-16 Tom Tromey <tromey@redhat.com>
2243
2244 * target-delegates.c: Rebuild.
2245
2246 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2247
2248 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2249 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2250 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2251 (avr_pointer_to_address): Likewise.
2252 (avr_address_class_type_flags): New function.
2253 (avr_address_class_type_flags_to_name): Likewise.
2254 (avr_address_class_name_to_type_flags): Likewise.
2255 (avr_gdbarch_init): Set address_class_type_flags,
2256 address_class_type_flags_to_name and
2257 address_class_name_to_type_flags.
2258
2259 2014-07-15 Pedro Alves <palves@redhat.com>
2260
2261 * linux-nat.c (kill_callback): Save errno and work with saved
2262 copy.
2263
2264 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2265
2266 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2267
2268 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2269
2270 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2271 breakpoint support correctly.
2272
2273 2014-07-14 Pedro Alves <palves@redhat.com>
2274
2275 * utils.c (prompt_for_continue): Call target_terminal_ours.
2276
2277 2014-07-14 Pedro Alves <palves@redhat.com>
2278
2279 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2280 catch_errors. Don't re-enable stdin or notify observers where,
2281 and rethrow error.
2282 (fetch_inferior_event_wrapper): Delete.
2283
2284 2014-07-14 Pedro Alves <palves@redhat.com>
2285
2286 PR gdb/17072
2287 * top.c: Include "inf-loop.h".
2288 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2289 field.
2290 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2291 was async before.
2292 (gdb_readline_wrapper): Store whether the target is async, and
2293 make it sync.
2294
2295 2014-07-14 Pedro Alves <palves@redhat.com>
2296
2297 PR gdb/17072
2298 * top.c (gdb_readline_wrapper_line): Tweak comment.
2299 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2300 the input handler callback.
2301
2302 2014-07-14 Pedro Alves <palves@redhat.com>
2303
2304 PR gdb/17072
2305 * main.c: Include event-top.h.
2306 (handle_command_errors): New function.
2307 (catch_command_errors, catch_command_errors_const): Use it.
2308
2309 2014-07-14 Pedro Alves <palves@redhat.com>
2310
2311 * exceptions.c (catch_command_errors, catch_command_errors_const):
2312 Moved to main.c.
2313 * exceptions.h (catch_command_errors_ftype)
2314 (catch_command_errors_const_ftype): Moved to main.c.
2315 (catch_command_errors, catch_command_errors_const): Delete
2316 declarations.
2317 * main.c (catch_command_errors_ftype)
2318 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2319 (catch_command_errors, catch_command_errors_const)): Moved here
2320 from exceptions.c and make static.
2321
2322 2014-07-14 Pedro Alves <palves@redhat.com>
2323
2324 * exceptions.c (print_any_exception): Delete.
2325 (catch_exceptions_with_msg): Use exception_print instead of
2326 print_any_exception.
2327 (catch_errors): Use exception_fprintf instead of
2328 print_any_exception.
2329 (catch_command_errors, catch_command_errors_const): Use
2330 exception_print instead of print_any_exception.
2331
2332 2014-07-14 Pedro Alves <palves@redhat.com>
2333
2334 * infcall.c (run_inferior_call): Set 'sync_execution' while
2335 running the inferior call.
2336
2337 2014-07-14 Pedro Alves <palves@redhat.com>
2338
2339 * value.c (value_contents_equal): Delete function.
2340 * value.h (value_contents_equal): Delete declaration.
2341
2342 2014-07-14 Tom Tromey <tromey@redhat.com>
2343
2344 PR exp/17106:
2345 * gdbtypes.c (is_dynamic_type_internal): New function, from
2346 is_dynamic_type.
2347 (is_dynamic_type): Rewrite.
2348 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2349 (resolve_dynamic_struct): Likewise.
2350 (resolve_dynamic_type_internal): New function, from
2351 resolve_dynamic_type.
2352 (resolve_dynamic_type): Rewrite.
2353
2354 2014-07-14 Tom Tromey <tromey@redhat.com>
2355
2356 * target.c (target_require_runnable): Also check record_stratum.
2357 Update comment.
2358
2359 2014-07-11 Yao Qi <yao@codesourcery.com>
2360
2361 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2362 thumb_instruction_restores_sp return true.
2363
2364 2014-07-11 Yao Qi <yao@codesourcery.com>
2365
2366 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2367 (thumb_in_function_epilogue_p): Call
2368 thumb_instruction_restores_sp.
2369
2370 2014-07-11 Yao Qi <yao@codesourcery.com>
2371
2372 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2373 'add sp, #imm'.
2374 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2375
2376 2014-07-11 Gary Benson <gbenson@redhat.com>
2377
2378 * amd64-linux-nat.c (gdbcore.h): Remove include.
2379 (regset.h): Likewise.
2380 (nat/linux-btrace.h): Likewise.
2381 (btrace.h): Likewise.
2382 (gdb_assert.h): Likewise.
2383 (string.h): Likewise.
2384 (sys/uio.h): Likewise.
2385 (sys/debugreg.h): Likewise.
2386 (sys/syscall.h): Likewise.
2387 (sys/procfs.h): Likewise.
2388 (sys/user.h): Likewise.
2389 (asm/ptrace.h): Likewise.
2390 (i386-nat.h): Likewise.
2391 * i386-linux-nat.c (i386-nat.h): Likewise.
2392 (regset.h): Likewise.
2393 (target.h): Likewise.
2394 (linux-nat.h): Likewise.
2395 (nat/linux-btrace.h): Likewise.
2396 (btrace.h): Likewise.
2397 (gdb_assert.h): Likewise.
2398 (string.h): Likewise.
2399 (sys/uio.h): Likewise.
2400 (sys/user.h): Likewise.
2401 (sys/procfs.h): Likewise.
2402 (sys/reg.h): Likewise.
2403 (sys/debugreg.h): Likewise.
2404 (ORIG_EAX): Remove definition.
2405
2406 2014-07-11 Gary Benson <gbenson@redhat.com>
2407
2408 * i386-linux-nat.h: New file.
2409 * x86-linux-nat.h: Likewise.
2410 * x86-linux-nat.c: Likewise.
2411 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2412 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2413 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2414 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2415 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2416 (PTRACE_SETREGSET): Likewise.
2417 (arch_lwp_info): Now in x86-linux-nat.c.
2418 (have_ptrace_getregset): Now in x86-linux-nat.h.
2419 (x86_linux_dr_get): Now in x86-linux-nat.c.
2420 (x86_linux_dr_set): Likewise.
2421 (x86_linux_dr_get_addr): Likewise.
2422 (x86_linux_dr_get_control): Likewise.
2423 (x86_linux_dr_get_status): Likewise.
2424 (update_debug_registers_callback): Likewise.
2425 (x86_linux_dr_set_control): Likewise.
2426 (x86_linux_dr_set_addr): Likewise.
2427 (x86_linux_prepare_to_resume): Likewise.
2428 (x86_linux_new_thread): Likewise.
2429 (x86_linux_new_fork): Likewise.
2430 (x86_linux_get_thread_area): Likewise.
2431 (super_post_startup_inferior): Likewise.
2432 (x86_linux_child_post_startup_inferior): Likewise.
2433 (AMD64_LINUX_USER64_CS): Likewise.
2434 (AMD64_LINUX_X32_DS): Likewise.
2435 (x86_linux_read_description): Likewise.
2436 (x86_linux_enable_btrace): Likewise.
2437 (x86_linux_disable_btrace): Likewise.
2438 (x86_linux_teardown_btrace): Likewise.
2439 (x86_linux_read_btrace): Likewise.
2440 (x86_linux_create_target): Likewise.
2441 (x86_linux_add_target): Likewise.
2442 * i386-linux-nat.c (x86-linux-nat.h): New include.
2443 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2444 (PTRACE_SETREGSET): Likewise.
2445 (arch_lwp_info): Now in x86-linux-nat.c.
2446 (have_ptrace_getregset): Now in x86-linux-nat.h.
2447 (x86_linux_dr_get): Now in x86-linux-nat.c.
2448 (x86_linux_dr_set): Likewise.
2449 (x86_linux_dr_get_addr): Likewise.
2450 (x86_linux_dr_get_control): Likewise.
2451 (x86_linux_dr_get_status): Likewise.
2452 (update_debug_registers_callback): Likewise.
2453 (x86_linux_dr_set_control): Likewise.
2454 (x86_linux_dr_set_addr): Likewise.
2455 (x86_linux_prepare_to_resume): Likewise.
2456 (x86_linux_new_thread): Likewise.
2457 (x86_linux_new_fork): Likewise.
2458 (x86_linux_get_thread_area): Likewise.
2459 (super_post_startup_inferior): Likewise.
2460 (x86_linux_child_post_startup_inferior): Likewise.
2461 (AMD64_LINUX_USER64_CS): Likewise.
2462 (AMD64_LINUX_X32_DS): Likewise.
2463 (x86_linux_read_description): Likewise.
2464 (x86_linux_enable_btrace): Likewise.
2465 (x86_linux_disable_btrace): Likewise.
2466 (x86_linux_teardown_btrace): Likewise.
2467 (x86_linux_read_btrace): Likewise.
2468 (x86_linux_create_target): Likewise.
2469 (x86_linux_add_target): Likewise.
2470
2471 2014-07-11 Gary Benson <gbenson@redhat.com>
2472
2473 * amd64-linux-nat.c: Comment and whitespace changes.
2474 * i386-linux-nat.c: Comment and whitespace changes.
2475
2476 2014-07-11 Gary Benson <gbenson@redhat.com>
2477
2478 * amd64-linux-nat.c (x86_linux_create_target): New function.
2479 (x86_linux_add_target): Likewise.
2480 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2481 * i386-linux-nat.c (x86_linux_create_target): New function.
2482 (x86_linux_add_target): Likewise.
2483 (_initialize_i386_linux_nat): Delegate to the above new functions.
2484
2485 2014-07-11 Gary Benson <gbenson@redhat.com>
2486
2487 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2488 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2489 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2490 (ps_get_thread_area): Delegate to the above.
2491
2492 2014-07-11 Gary Benson <gbenson@redhat.com>
2493
2494 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2495 x86_linux_read_description. All uses updated. amd64-specific
2496 code conditionalized. Conditionalized i386-specific code added.
2497 Redundant cast removed.
2498 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2499 x86_linux_read_description. All uses updated. i386-specific
2500 code conditionalized. Conditionalized amd64-specific code added.
2501 One sizeof replaced with the actual type it is describing.
2502
2503 2014-07-11 Gary Benson <gbenson@redhat.com>
2504
2505 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2506 x86_linux_dr_get. All uses updated.
2507 (amd64_linux_dr_set): Renamed to
2508 x86_linux_dr_set. All uses updated.
2509 (amd64_linux_dr_get_addr): Renamed to
2510 x86_linux_dr_get_addr. All uses updated.
2511 (amd64_linux_dr_get_control): Renamed to
2512 x86_linux_dr_get_control. All uses updated.
2513 (amd64_linux_dr_get_status): Renamed to
2514 x86_linux_dr_get_status. All uses updated.
2515 (amd64_linux_dr_set_control): Renamed to
2516 x86_linux_dr_set_control. All uses updated.
2517 (amd64_linux_dr_set_addr): Renamed to
2518 x86_linux_dr_set_addr. All uses updated.
2519 (amd64_linux_prepare_to_resume): Renamed to
2520 x86_linux_prepare_to_resume. All uses updated.
2521 (amd64_linux_new_thread): Renamed to
2522 x86_linux_new_thread. All uses updated.
2523 (amd64_linux_new_fork): Renamed to
2524 x86_linux_new_fork. All uses updated.
2525 (amd64_linux_child_post_startup_inferior): Renamed to
2526 x86_linux_child_post_startup_inferior. All uses updated.
2527 (amd64_linux_enable_btrace): Renamed to
2528 x86_linux_enable_btrace. All uses updated.
2529 (amd64_linux_disable_btrace): Renamed to
2530 x86_linux_disable_btrace. All uses updated.
2531 (amd64_linux_teardown_btrace): Renamed to
2532 x86_linux_teardown_btrace. All uses updated.
2533 (amd64_linux_read_btrace): Renamed to
2534 x86_linux_read_btrace. All uses updated.
2535 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2536 x86_linux_dr_get. All uses updated.
2537 (i386_linux_dr_set): Renamed to
2538 x86_linux_dr_set. All uses updated.
2539 (i386_linux_dr_get_addr): Renamed to
2540 x86_linux_dr_get_addr. All uses updated.
2541 (i386_linux_dr_get_control): Renamed to
2542 x86_linux_dr_get_control. All uses updated.
2543 (i386_linux_dr_get_status): Renamed to
2544 x86_linux_dr_get_status. All uses updated.
2545 (i386_linux_dr_set_control): Renamed to
2546 x86_linux_dr_set_control. All uses updated.
2547 (i386_linux_dr_set_addr): Renamed to
2548 x86_linux_dr_set_addr. All uses updated.
2549 (i386_linux_prepare_to_resume): Renamed to
2550 x86_linux_prepare_to_resume. All uses updated.
2551 (i386_linux_new_thread): Renamed to
2552 x86_linux_new_thread. All uses updated.
2553 (i386_linux_new_fork): Renamed to
2554 x86_linux_new_fork. All uses updated.
2555 (i386_linux_child_post_startup_inferior): Renamed to
2556 x86_linux_child_post_startup_inferior. All uses updated.
2557 (i386_linux_enable_btrace): Renamed to
2558 x86_linux_enable_btrace. All uses updated.
2559 (i386_linux_disable_btrace): Renamed to
2560 x86_linux_disable_btrace. All uses updated.
2561 (i386_linux_teardown_btrace): Renamed to
2562 x86_linux_teardown_btrace. All uses updated.
2563 (i386_linux_read_btrace): Renamed to
2564 x86_linux_read_btrace. All uses updated.
2565
2566 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2567
2568 * remote.c (extended_remote_post_attach): New function.
2569 (init_extended_remote_ops): Install it as to_post_attach method.
2570
2571 2014-07-09 Pedro Alves <palves@redhat.com>
2572
2573 * infcmd.c (attach_command_post_wait): Don't call
2574 target_terminal_inferior here.
2575 (attach_command): Call it here instead.
2576
2577 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2578
2579 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2580 field.
2581 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2582 from varobj.c, with additional checks.
2583 (c_varobj_ops): Fill in is_path_expr_parent field.
2584 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2585 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2586 field.
2587 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2588 ops method.
2589 (varobj_default_is_path_expr_parent): New function.
2590 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2591 (varobj_default_is_path_expr_parent): Declare new function.
2592
2593 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2594
2595 * infcmd.c (finish_backward): Turn internal error into normal error.
2596
2597 2014-07-07 Pedro Alves <palves@redhat.com>
2598
2599 PR gdb/17096
2600 * remote.c (async_handle_remote_sigint)
2601 (async_handle_remote_sigint_twice): Call
2602 gdb_call_async_signal_handler instead of
2603 mark_async_signal_handler.
2604
2605 2014-07-07 Tom Tromey <tromey@redhat.com>
2606
2607 * target-delegates.c: Rebuild.
2608 * target.c (target_info_record): Remove.
2609 * record.c (info_record_command): Unconditionally call
2610 to_info_record.
2611 * target.h (struct target_ops) <to_info_record>: Use
2612 TARGET_DEFAULT_IGNORE.
2613 (target_info_record): Remove.
2614
2615 2014-07-07 Tom Tromey <tromey@redhat.com>
2616
2617 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2618 TARGET_DEFAULT_NORETURN.
2619 * target.c (generic_tls_error): New function.
2620 (target_translate_tls_address): Don't search target stack.
2621 * target-delegates.c: Rebuild.
2622 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2623 stack.
2624 * linux-thread-db.c (thread_db_get_thread_local_address):
2625 Unconditionally call beneath target.
2626
2627 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2628
2629 * cli/cli-logging.c (pop_output_files): Assign targerr to
2630 gdb_stdtargerr.
2631
2632 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2633
2634 * MAINTAINERS (Write After Approval): Update my email address.
2635
2636 2014-07-02 Gary Benson <gbenson@redhat.com>
2637
2638 * proc-service.c (ps_xfer_memory): Update comment.
2639 (ps_pstop): Remove unused function.
2640 (ps_pcontinue): Likewise.
2641 (ps_lstop): Likewise.
2642 (ps_lcontinue): Likewise.
2643 (ps_lgetxregsize): Likewise.
2644 (ps_lgetxregs): Likewise.
2645 (ps_lsetxregs): Likewise.
2646 (ps_plog): Likewise.
2647 (ps_ptread): Likewise.
2648 (ps_ptwrite): Likewise.
2649
2650 2014-07-01 Mark Wielaard <mjw@redhat.com>
2651
2652 * dwarf2read.c (add_array_cv_type): New function.
2653 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2654 (read_tag_volatile_type): Likewise.
2655
2656 2014-07-01 Tom Tromey <tromey@redhat.com>
2657
2658 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2659 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2660 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2661 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2662 * command.h (cmd_cfunc_ftype): Move earlier.
2663 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2664 (add_com, add_info): Use cmd_cfunc_ftype.
2665
2666 2014-06-30 Tom Tromey <tromey@redhat.com>
2667
2668 * symtab.c (operator_chars): Make parameters and return type
2669 const.
2670 (file_matches): Make "files" const.
2671 (struct search_symbols_data) <files>: Now const.
2672 (search_symbols): Make "regexp" and "files" parameters const.
2673 Update.
2674 (symtab_symbol_info): Remove cast.
2675 (rbreak_command): Update.
2676 * symtab.h (search_symbols): Update.
2677
2678 2014-06-27 Yao Qi <yao@codesourcery.com>
2679
2680 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2681 Change parameter type to 'struct thread_info *'. Caller
2682 updated.
2683 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2684 Update declaration.
2685 * dummy-frame.c (struct dummy_frame_id): New.
2686 (dummy_frame_id_eq): New function.
2687 (struct dummy_frame) <id>: Change its type to 'struct
2688 dummy_frame_id'.
2689 (dummy_frame_push): Add parameter ptid and save it in
2690 dummy_frame_id.
2691 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2692 inferior_ptid.
2693 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2694 to inferior_ptid.
2695 (lookup_dummy_frame): Change parameter type to 'struct
2696 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2697 instead of frame_id_eq.
2698 (dummy_frame_pop): Add parameter ptid. Callers updated.
2699 Update comments. Compose dummy_frame_id and pass it to
2700 lookup_dummy_frame.
2701 (dummy_frame_discard): Add parameter ptid.
2702 (dummy_frame_sniffer): Compose dummy_frame_id and call
2703 dummy_frame_id_eq instead of frame_id_eq.
2704 (fprint_dummy_frames): Print ptid.
2705 * dummy-frame.h: Remove comments.
2706 (dummy_frame_push): Add ptid in declaration.
2707 (dummy_frame_pop, dummy_frame_discard): Likewise.
2708
2709 2014-06-26 Tom Tromey <tromey@redhat.com>
2710
2711 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2712 * command.h (error_no_arg): Update.
2713
2714 2014-06-26 Tom Tromey <tromey@redhat.com>
2715
2716 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2717 (do_show_command): Make "arg" const.
2718 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2719
2720 2014-06-26 Tom Tromey <tromey@redhat.com>
2721
2722 * record-full.c (record_full_get_bookmark): Make "args" const.
2723 (record_full_goto_bookmark): Make "raw_bookmark" const.
2724 * record.c (record_goto): New function.
2725 (cmd_record_goto): Use it. Now static.
2726 * record.h (record_goto): Declare.
2727 (cmd_record_goto): Remove declaration.
2728 * target-delegates.c: Rebuild.
2729 * target.h (struct target_ops) <to_get_bookmark,
2730 to_goto_bookmark>: Make parameter const.
2731
2732 2014-06-26 Tom Tromey <tromey@redhat.com>
2733
2734 * defs.h (generic_load): Update.
2735 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2736 * monitor.c (monitor_load): Make "args" const.
2737 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2738 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2739 const.
2740 (mips_load): Make "file" const.
2741 * remote-sim.c (gdbsim_load): Make "args" const.
2742 * remote.c (remote_load): Make "name" const.
2743 * symfile.c (generic_load): Make "args" const.
2744 * target-delegates.c: Rebuild.
2745 * target.c (target_load): Make "arg" const.
2746 (debug_to_load): Make "args" const.
2747 * target.h (struct target_ops) <to_load>: Make parameter const.
2748 (target_load): Update.
2749
2750 2014-06-26 Tom Tromey <tromey@redhat.com>
2751
2752 PR symtab/16902:
2753 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2754 (dwarf2_physname, read_partial_die)
2755 (guess_partial_die_structure_name, fixup_partial_die)
2756 (guess_full_die_structure_name, anonymous_struct_prefix)
2757 (dwarf2_name): Use per-BFD obstack.
2758
2759 2014-06-26 Yao Qi <yao@codesourcery.com>
2760
2761 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2762 dummyframe and this_id into inner block below.
2763
2764 2014-06-26 Yao Qi <yao@codesourcery.com>
2765
2766 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2767 with "signal_pass[0]" in the initialization of signal_pass.
2768
2769 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2770
2771 * record-btrace.c (record_btrace_generating_corefile)
2772 (record_btrace_prepare_to_generate_core)
2773 (record_btrace_done_generating_core): New.
2774 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2775 (record_btrace_store_registers, record_btrace_prepare_to_store):
2776 Forward request when generating a core file.
2777 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2778 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2779 to_done_generating_core.
2780
2781 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2782
2783 * target.h (target_ops) <to_prepare_to_generate_core>
2784 <to_done_generating_core>: New.
2785 (target_prepare_to_generate_core, target_done_generating_core): New.
2786 * target.c (target_prepare_to_generate_core)
2787 (target_done_generating_core): New.
2788 * target-delegates.c: Regenerate.
2789 * gcore.c: (write_gcore_file): Rename to ...
2790 (write_gcore_file_1): ...this.
2791 (write_gcore_file): Call target_prepare_to_generate_core
2792 and target_done_generating_core.
2793
2794 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2795
2796 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2797 * gcore.c (write_gcore_file): Free memory returned from
2798 make_corefile_notes.
2799 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2800 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2801
2802 2014-06-24 Yao Qi <yao@codesourcery.com>
2803
2804 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2805 (arm_linux_init_abi): Set skip_trampoline_code with
2806 gdbarch_skip_trampoline_code instead of
2807 find_solib_trampoline_target.
2808
2809 2014-06-24 Yao Qi <yao@codesourcery.com>
2810
2811 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2812 arm_skip_bx_reg returns non-zero.
2813
2814 2014-06-24 Yao Qi <yao@codesourcery.com>
2815
2816 * arm-tdep.c (arm_skip_bx_reg): New function.
2817 (arm_skip_stub): Call arm_skip_bx_reg.
2818
2819 2014-06-23 Don Breazeal <donb@codesourcery.com>
2820
2821 * MAINTAINERS: Add myself as write-after-approval maintainer.
2822
2823 2014-06-23 Pedro Alves <palves@redhat.com>
2824
2825 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2826 DR_CONTROL before setting DR0..DR3.
2827 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2828 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2829 bits of DR_CONTROL related to the debug register slot being
2830 disabled. If all slots are vacant, clear local slowdown as well,
2831 and assert DR_CONTROL is 0.
2832
2833 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2834
2835 * python/lib/gdb/command/xmethods.py
2836 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2837 current progspace only if the string "progspace" matches LOCUS_RE.
2838
2839 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2840
2841 Fix --with-system-readline with readline-6.3 patch 5.
2842 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2843 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2844 types.
2845
2846 2014-06-20 Tom Tromey <tromey@redhat.com>
2847
2848 * dwarf2read.c (dw2_get_real_path): Use correct type in
2849 OBSTACK_CALLOC.
2850 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2851
2852 2014-06-20 Gary Benson <gbenson@redhat.com>
2853
2854 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2855 * common/glibc_thread_db.h: Likewise.
2856 * common/i386-cpuid.h: Likewise.
2857 * common/i386-gcc-cpuid.h: Likewise.
2858 * common/linux-btrace.h: Likewise.
2859 * common/linux-osdata.h: Likewise.
2860 * common/linux-procfs.h: Likewise.
2861 * common/linux-ptrace.h: Likewise.
2862 * common/mips-linux-watch.h: Likewise.
2863 * common/linux-btrace.c: Moved to nat.
2864 * common/linux-osdata.c: Likewise.
2865 * common/linux-procfs.c: Likewise.
2866 * common/linux-ptrace.c: Likewise.
2867 * common/mips-linux-watch.c: Likewise.
2868 * nat/gdb_thread_db.h: Moved from common.
2869 * nat/glibc_thread_db.h: Likewise.
2870 * nat/i386-cpuid.h: Likewise.
2871 * nat/i386-gcc-cpuid.h: Likewise.
2872 * nat/linux-btrace.c: Likewise.
2873 * nat/linux-btrace.h: Likewise.
2874 * nat/linux-osdata.c: Likewise.
2875 * nat/linux-osdata.h: Likewise.
2876 * nat/linux-procfs.c: Likewise.
2877 * nat/linux-procfs.h: Likewise.
2878 * nat/linux-ptrace.c: Likewise.
2879 * nat/linux-ptrace.h: Likewise.
2880 * nat/mips-linux-watch.c: Likewise.
2881 * nat/mips-linux-watch.h: Likewise.
2882 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2883 (object file files): Reordered.
2884 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2885 of glibc_thread_db.h.
2886
2887 2014-06-20 Gary Benson <gbenson@redhat.com>
2888
2889 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2890 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2891 (i386_dr_low): Likewise.
2892 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2893 (i386_dr_low_set_addr): Likewise.
2894 (i386_dr_low_get_addr): Likewise.
2895 (i386_dr_low_can_set_control): Likewise.
2896 (i386_dr_low_set_control): Likewise.
2897 (i386_dr_low_get_control): Likewise.
2898 (i386_dr_low_get_status): Likewise.
2899 (i386_get_debug_register_length): Likewise.
2900 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2901 (i386_dr_low): Likewise.
2902 * nat/i386-dregs.c (i386-low.h): Remove include.
2903 (i386-nat.h): Likewise.
2904 (nat/i386-dregs.h): New include.
2905 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2906 (i386_dr_low_set_addr): Likewise.
2907 (i386_dr_low_get_addr): Likewise.
2908 (i386_dr_low_can_set_control): Likewise.
2909 (i386_dr_low_set_control): Likewise.
2910 (i386_dr_low_get_control): Likewise.
2911 (i386_dr_low_get_status): Likewise.
2912 (i386_get_debug_register_length): Likewise.
2913 (debug_hw_points): Likewise.
2914
2915 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2916
2917 * Makefile.in (SFILES): Add d-exp.y.
2918 (YYFILES): Add d-exp.c.
2919 (YYOBJ): Add d-exp.o.
2920 (local-maintainer-clean): Delete d-exp.c.
2921 * d-exp.y: New file.
2922 * d-lang.h (d_parse): New declaration.
2923 (d_error): New declaration.
2924 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2925 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2926 PREC_ORDER operators.
2927 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2928
2929 2014-06-19 Yao Qi <yao@codesourcery.com>
2930
2931 * gdbthread.h (any_running): Remove the declaration.
2932 * thread.c (any_running): Remove.
2933
2934 2014-06-19 Yao Qi <yao@codesourcery.com>
2935
2936 * gdbthread.h (struct thread_info) <state>: Change its type to
2937 'enum thread_state'. Update comments.
2938
2939 2014-06-19 Pedro Alves <palves@redhat.com>
2940
2941 * gdbthread.h (ALL_THREADS): Delete.
2942 (ALL_NON_EXITED_THREADS): New macro.
2943 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2944 instead of ALL_THREADS.
2945 * infrun.c (find_thread_needs_step_over)
2946 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2947 instead of ALL_THREADS.
2948 * record-btrace.c (record_btrace_open)
2949 (record_btrace_stop_recording, record_btrace_close)
2950 (record_btrace_is_replaying, record_btrace_resume)
2951 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2952 * remote.c (append_pending_thread_resumptions): Likewise.
2953 * thread.c (thread_apply_all_command): Likewise.
2954
2955 2014-06-19 Gary Benson <gbenson@redhat.com>
2956
2957 * i386-nat.c (i386_stopped_by_watchpoint):
2958 Use i386_dr_stopped_by_watchpoint.
2959 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2960 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2961
2962 2014-06-19 Gary Benson <gbenson@redhat.com>
2963
2964 * nat/i386-dregs.c: New file.
2965 * Makefile.in (i386-dregs.o): New rule.
2966 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2967 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2968 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2969 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2970 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2971 * config/i386/go32.mh (NATDEPFILES): Likewise.
2972 * config/i386/linux.mh (NATDEPFILES): Likewise.
2973 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2974 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2975 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2976 * i386-nat.h (debug_hw_points): New declaration.
2977 * i386-nat.c (breakpoint.h): Remove include.
2978 (command.h): Likewise.
2979 (target.h): Likewise.
2980 (gdb_assert.h): Likewise.
2981 (debug_hw_points): Made nonstatic.
2982 (debug_printf): Now in i386-dregs.c.
2983 (TARGET_HAS_DR_LEN_8): Likewise.
2984 (DR_CONTROL_SHIFT): Likewise.
2985 (DR_CONTROL_SIZE): Likewise.
2986 (DR_RW_EXECUTE): Likewise.
2987 (DR_RW_WRITE): Likewise.
2988 (DR_RW_READ): Likewise.
2989 (DR_RW_IORW): Likewise.
2990 (DR_LEN_1): Likewise.
2991 (DR_LEN_2): Likewise.
2992 (DR_LEN_4): Likewise.
2993 (DR_LEN_8): Likewise.
2994 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2995 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2996 (DR_ENABLE_SIZE): Likewise.
2997 (DR_LOCAL_SLOWDOWN): Likewise.
2998 (DR_GLOBAL_SLOWDOWN): Likewise.
2999 (DR_CONTROL_RESERVED): Likewise.
3000 (I386_DR_CONTROL_MASK): Likewise.
3001 (I386_DR_VACANT): Likewise.
3002 (I386_DR_LOCAL_ENABLE): Likewise.
3003 (I386_DR_GLOBAL_ENABLE): Likewise.
3004 (I386_DR_DISABLE): Likewise.
3005 (I386_DR_SET_RW_LEN): Likewise.
3006 (I386_DR_GET_RW_LEN): Likewise.
3007 (I386_DR_WATCH_HIT): Likewise.
3008 (i386_wp_op_t): Likewise.
3009 (i386_show_dr): Likewise.
3010 (i386_length_and_rw_bits): Likewise.
3011 (i386_insert_aligned_watchpoint): Likewise.
3012 (i386_remove_aligned_watchpoint): Likewise.
3013 (i386_handle_nonaligned_watchpoint): Likewise.
3014 (i386_update_inferior_debug_regs): Likewise.
3015 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3016 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3017 (i386_region_ok_for_watchpoint):
3018 Use i386_dr_region_ok_for_watchpoint.
3019 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3020
3021 2014-06-19 Gary Benson <gbenson@redhat.com>
3022
3023 * i386-nat.c (i386_insert_hw_breakpoint): Use
3024 i386_insert_watchpoint.
3025 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3026
3027 2014-06-19 Gary Benson <gbenson@redhat.com>
3028
3029 * i386-nat.c (i386_dr_show): Renamed to
3030 i386_show_dr and made static. All uses updated.
3031 (i386_dr_length_and_rw_bits): Renamed to
3032 i386_length_and_rw_bits and made static.
3033 All uses updated.
3034 (i386_dr_insert_aligned_watchpoint): Renamed to
3035 i386_insert_aligned_watchpoint and made static.
3036 All uses updated.
3037 (i386_dr_remove_aligned_watchpoint): Renamed to
3038 i386_remove_aligned_watchpoint and made static.
3039 All uses updated.
3040 (i386_dr_update_inferior_debug_regs): Renamed to
3041 i386_update_inferior_debug_regs and made static.
3042 All uses updated.
3043 * nat/i386-dregs.h (i386_dr_show): Removed.
3044 (i386_dr_length_and_rw_bits): Likewise.
3045 (i386_dr_insert_aligned_watchpoint): Likewise.
3046 (i386_dr_remove_aligned_watchpoint): Likewise.
3047 (i386_dr_update_inferior_debug_regs): Likewise.
3048
3049 2014-06-19 Gary Benson <gbenson@redhat.com>
3050
3051 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3052 * configure: Regenerate.
3053 * config.in: Likewise.
3054 * main.c (signal.h): New include.
3055 (setup_alternate_signal_stack): New function.
3056 (captured_main): Call the above.
3057 * cp-support.c (signal.h): New include.
3058 (catch_demangler_crashes): New flag.
3059 (SIGJMP_BUF): New define.
3060 (SIGSETJMP): Likewise.
3061 (SIGLONGJMP): Likewise.
3062 (gdb_demangle_jmp_buf): New static global.
3063 (gdb_demangle_attempt_core_dump): Likewise.
3064 (gdb_demangle_signal_handler): New function.
3065 (gdb_demangle): If catch_demangler_crashes is set, install the
3066 above signal handler before calling bfd_demangle, and restore
3067 the original signal handler afterwards. Display the offending
3068 symbol and call demangler_warning the first time a segmentation
3069 fault is caught.
3070 (_initialize_cp_support): New maint set/show command.
3071
3072 2014-06-19 Gary Benson <gbenson@redhat.com>
3073
3074 * utils.h (resource_limit_kind): New enum.
3075 (can_dump_core): New declaration.
3076 (warn_cant_dump_core): Likewise.
3077 (dump_core): Likewise.
3078 * utils.c (dump_core): Made nonstatic. Added new
3079 parameter "limit_kind".
3080 (can_dump_core): Made nonstatic. Moved printing code to...
3081 (warn_cant_dump_core): New function.
3082 (can_dump_core_warn): Likewise.
3083 (internal_vproblem): Replace calls to can_dump_core with
3084 calls to can_dump_core_warn. Supply new argument to each.
3085
3086 2014-06-19 Gary Benson <gbenson@redhat.com>
3087
3088 * utils.h (demangler_vwarning): New declaration.
3089 (demangler_warning): Likewise.
3090 * utils.c (struct internal_problem)
3091 <user_settable_should_quit>: New field.
3092 <user_settable_should_dump_core>: Likewise
3093 (internal_error_problem): Add values for above new fields.
3094 (internal_warning_problem): Likewise.
3095 (demangler_warning_problem): New static global.
3096 (demangler_vwarning): New function.
3097 (demangler_warning): Likewise.
3098 (add_internal_problem_command): Selectively add commands.
3099 (_initialize_utils): New internal problem command.
3100 * maint.c (maintenance_demangler_warning): New function.
3101 (_initialize_maint_cmds): New command.
3102
3103 2014-06-18 Tom Tromey <tromey@redhat.com>
3104
3105 * f-valprint.c (info_common_command_for_block): Update.
3106 * symtab.h (struct general_symbol_info) <common_block>: Now
3107 const.
3108
3109 2014-06-18 Tom Tromey <tromey@redhat.com>
3110
3111 * symtab.h (struct symtab) <blockvector>: Now const.
3112 * ada-lang.c (ada_add_global_exceptions): Update.
3113 * buildsym.c (augment_type_symtab): Update.
3114 * dwarf2read.c (dw2_lookup_symbol): Update.
3115 * jit.c (finalize_symtab): Update.
3116 * jv-lang.c (add_class_symtab_symbol): Update.
3117 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3118 Update.
3119 * objfiles.c (objfile_relocate1): Update.
3120 * psymtab.c (lookup_symbol_aux_psymtabs)
3121 (maintenance_check_psymtabs): Update.
3122 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3123 Update.
3124 * spu-tdep.c (spu_catch_start): Update.
3125 * symmisc.c (dump_symtab_1): Update.
3126 * symtab.c (lookup_global_symbol_from_objfile)
3127 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3128 (basic_lookup_transparent_type_quick)
3129 (basic_lookup_transparent_type, find_pc_sect_symtab)
3130 (find_pc_sect_line, search_symbols): Update.
3131 * block.c (find_block_in_blockvector): Make "bl" const.
3132 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3133 const.
3134 (blockvector_contains_pc): Make "bv" const.
3135 (block_for_pc_sect): Update.
3136 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3137 (blockvector_contains_pc): Update.
3138 * breakpoint.c (resolve_sal_pc): Update.
3139 * inline-frame.c (block_starting_point_at): Update.
3140
3141 2014-06-18 Tom Tromey <tromey@redhat.com>
3142
3143 * completer.c (complete_line): Make "line_buffer" const.
3144 * completer.h (complete_line): Update.
3145
3146 2014-06-18 Tom Tromey <tromey@redhat.com>
3147
3148 * symtab.c (add_macro_name): Remove unneeded cast.
3149
3150 2014-06-18 Tom Tromey <tromey@redhat.com>
3151
3152 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3153 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3154
3155 2014-06-18 Tom Tromey <tromey@redhat.com>
3156
3157 * probe.c (info_probes_for_ops): Make "arg" const.
3158 * probe.h (info_probes_for_ops): Update.
3159
3160 2014-06-18 Tom Tromey <tromey@redhat.com>
3161
3162 * varobj.c (varobj_create): Update.
3163 * valops.c (value_of_this): Update.
3164 * tracepoint.c (add_local_symbols, scope_info): Update.
3165 * symtab.h (struct general_symbol_info) <block>: Now const.
3166 * symtab.c (skip_prologue_sal)
3167 (default_make_symbol_completion_list_break_on)
3168 (skip_prologue_using_sal): Update.
3169 * stack.h (iterate_over_block_locals)
3170 (iterate_over_block_local_vars): Update.
3171 * stack.c (print_frame_args): Update.
3172 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3173 parameter const.
3174 (get_selected_block): Make return type const.
3175 * python/py-frame.c (frapy_block): Update.
3176 * python/py-block.c (gdbpy_block_for_pc): Update.
3177 * p-exp.y (%union) <bval>: Now const.
3178 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3179 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3180 * m2-exp.y (%union) <bval>: Now const.
3181 * linespec.c (get_current_search_block): Make return type const.
3182 (create_sals_line_offset, find_label_symbols): Update.
3183 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3184 Update.
3185 (block_starting_point_at): Make "block" const.
3186 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3187 (check_exception_resume): Update.
3188 * guile/scm-frame.c (gdbscm_frame_block): Update.
3189 * guile/scm-block.c (gdbscm_lookup_block): Update.
3190 * frame.h (get_frame_block): Update.
3191 (get_selected_block): Make return type const.
3192 * frame.c (frame_id_inner): Update.
3193 * f-valprint.c (info_common_command_for_block)
3194 (info_common_command): Update.
3195 * dwarf2loc.c (dwarf2_find_location_expression)
3196 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3197 (locexpr_describe_location_piece): Update.
3198 * c-exp.y (%union) <bval>: Now const.
3199 * breakpoint.c (resolve_sal_pc): Update.
3200 * blockframe.c (get_frame_block):Make return type const.
3201 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3202 (block_innermost_frame): Update.
3203 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3204 (block_for_pc, block_for_pc_sect): Update.
3205 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3206 'pblock' const.
3207 (block_for_pc_sect, block_for_pc): Make return type const.
3208 * ax-gdb.c (gen_expr): Update.
3209 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3210 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3211 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3212 (ada_read_var_value): Update.
3213 * ada-exp.y (struct name_info) <block>: Now const.
3214 (%union): Likewise.
3215 (block_lookup): Constify.
3216
3217 2014-06-18 Gary Benson <gbenson@redhat.com>
3218
3219 * nat/i386-dregs.h: New file.
3220 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3221 * i386-nat.h (i386-dregs.h): New include.
3222 (DR_FIRSTADDR): Now in i386-dregs.h.
3223 (DR_LASTADDR): Likewise.
3224 (DR_NADDR): Likewise.
3225 (DR_STATUS): Likewise.
3226 (DR_CONTROL): Likewise.
3227 (i386_debug_reg_state): Likewise.
3228 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3229
3230 2014-06-18 Don Breazeal <donb@codesourcery.com>
3231
3232 * breakpoint.c (set_longjmp_breakpoint): Call
3233 momentary_breakpoint_from_master with additional argument.
3234 (set_longjmp_breakpoint_for_call_dummy): Call
3235 momentary_breakpoint_from_master with additional argument.
3236 (set_std_terminate_breakpoint): Call
3237 momentary_breakpoint_from_master with additional argument.
3238 (momentary_breakpoint_from_master): Add argument to function
3239 definition and use it to initialize structure member flag.
3240 (clone_momentary_breakpoint): Call
3241 momentary_breakpoint_from_master with additional argument.
3242 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3243 member flags set in momentary_breakpoint_from_master.
3244
3245 2014-06-18 Gary Benson <gbenson@redhat.com>
3246
3247 * i386-nat.c (i386_show_dr): Renamed to
3248 i386_dr_show and made nonstatic. All uses updated.
3249 (i386_length_and_rw_bits): Renamed to
3250 i386_dr_length_and_rw_bits and made nonstatic.
3251 All uses updated.
3252 (i386_insert_aligned_watchpoint): Renamed to
3253 i386_dr_insert_aligned_watchpoint and made nonstatic.
3254 All uses updated.
3255 (i386_remove_aligned_watchpoint): Renamed to
3256 i386_dr_remove_aligned_watchpoint and made nonstatic.
3257 All uses updated.
3258 (i386_update_inferior_debug_regs): Renamed to
3259 i386_dr_update_inferior_debug_regs and made nonstatic.
3260 All uses updated.
3261
3262 2014-06-18 Gary Benson <gbenson@redhat.com>
3263
3264 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3265 (i386_dr_low_can_set_control): Likewise.
3266 (i386_dr_low_set_addr): Likewise.
3267 (i386_dr_low_set_control): Likewise.
3268 (i386_dr_low_get_addr): Likewise.
3269 (i386_dr_low_get_status): Likewise.
3270 (i386_dr_low_get_control): Likewise.
3271 (i386_insert_aligned_watchpoint): Use new macros.
3272 (i386_update_inferior_debug_regs): Likewise.
3273 (i386_stopped_data_address): Likewise.
3274
3275 2014-06-18 Gary Benson <gbenson@redhat.com>
3276
3277 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3278 New parameter. All uses updated.
3279
3280 2014-06-18 Gary Benson <gbenson@redhat.com>
3281
3282 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3283 All uses updated.
3284
3285 2014-06-18 Gary Benson <gbenson@redhat.com>
3286
3287 * i386-nat.c (debug_printf): New macro.
3288 (i386_get_debug_register_length): Likewise.
3289 (TARGET_HAS_DR_LEN_8): Use above macro.
3290 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3291 and printf_unfiltered. Use phex to format values.
3292
3293 2014-06-18 Gary Benson <gbenson@redhat.com>
3294
3295 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3296 Make const.
3297
3298 2014-06-18 Gary Benson <gbenson@redhat.com>
3299
3300 * i386-nat.c: Comment changes.
3301
3302 2014-06-18 Gary Benson <gbenson@redhat.com>
3303
3304 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3305
3306 2014-06-18 Gary Benson <gbenson@redhat.com>
3307
3308 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3309 (i386_insert_aligned_watchpoint): Likewise.
3310 (i386_remove_aligned_watchpoint): Likewise.
3311 (i386_handle_nonaligned_watchpoint): Likewise.
3312
3313 2014-06-18 Gary Benson <gbenson@redhat.com>
3314
3315 * i386-nat.c: Whitespace changes.
3316
3317 2014-06-17 Samuel Bronson <naesten@gmail.com>
3318
3319 * MAINTAINERS: Update Roland McGrath's email address.
3320 Thanks to Sergio Durigan Junior for pointing out that he left
3321 Red Hat a while ago, and giving me a current address.
3322
3323 2014-06-17 Tom Tromey <tromey@redhat.com>
3324
3325 * utils.h (savestring): Remove declaration.
3326
3327 2014-06-17 Tom Tromey <tromey@redhat.com>
3328
3329 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3330
3331 2014-06-16 Keith Seitz <keiths@redhat.com>
3332
3333 PR mi/15863
3334 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3335 to update the varobj if inferior_ptid is null_ptid.
3336
3337 2014-06-16 Tom Tromey <tromey@redhat.com>
3338
3339 * target.h (struct target_ops) <to_info_proc>: Make parameter
3340 const.
3341 (target_info_proc): Update.
3342 * target.c (target_info_proc): Make "args" const.
3343 * procfs.c (procfs_info_proc): Update.
3344 * linux-tdep.c (linux_info_proc): Update.
3345 (linux_core_info_proc_mappings): Make "args" const.
3346 (linux_core_info_proc): Update.
3347 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3348 * gdbarch.c: Rebuild.
3349 * gdbarch.h: Rebuild.
3350 * corelow.c (core_info_proc): Update.
3351
3352 2014-06-16 Tom Tromey <tromey@redhat.com>
3353
3354 * target.h (struct target_ops) <to_disconnect>: Make parameter
3355 const.
3356 (target_disconnect): Update.
3357 * target.c (target_disconnect): Make "args" const.
3358 * target-delegates.c: Rebuild.
3359 * remote.c (remote_disconnect): Update.
3360 * record.h (record_disconnect): Update.
3361 * record.c (record_disconnect): Update.
3362 * inf-child.c (inf_child_disconnect): Update.
3363
3364 2014-06-16 Tom Tromey <tromey@redhat.com>
3365
3366 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3367 * target.c (debug_to_rcmd, default_rcmd): Update.
3368 * target-delegates.c: Rebuild.
3369 * remote.c (remote_rcmd): Update.
3370 * monitor.c (monitor_rcmd): Update.
3371
3372 2014-06-16 Pedro Alves <palves@redhat.com>
3373
3374 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3375 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3376 have OBJF_SHARED set.
3377 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3378 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3379 instead of OBJF_USERLOADED.
3380 * objfiles.h (OBJF_SHARED): Update comment.
3381 (userloaded_objfile_contains_address_p): Rename to ...
3382 (shared_objfile_contains_address_p): ... this, and update
3383 comments.
3384 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3385 new objfile.
3386 (remove_symbol_file_command): Skip objfiles that don't have
3387 OBJF_SHARED set.
3388
3389 2014-06-16 Tom Tromey <tromey@redhat.com>
3390
3391 * minsyms.h (prim_record_minimal_symbol)
3392 (prim_record_minimal_symbol_and_info): Update comments.
3393
3394 2014-06-14 Eli Zaretskii <eliz@gnu.org>
3395
3396 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3397 or --without-guile, according to how GDB was built.
3398
3399 2014-06-13 Tom Tromey <tromey@redhat.com>
3400
3401 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3402 to help_list.
3403 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3404 to help_list.
3405 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3406 help_list.
3407 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3408 help_list.Pass all_commands, not -1, to help_list.
3409 * cli/cli-dump.c (dump_command, append_command)
3410 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3411 (binary_dump_command, binary_append_command): Pass all_commands,
3412 not -1, to help_list.
3413 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3414 -1, to help_list.
3415 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3416 -1, to help_list.
3417 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3418 help_list.
3419 * top.c (set_history): Pass all_commands, not -1, to help_list.
3420 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3421 all_commands, not -1, to help_list.
3422 * symfile.c (overlay_command): Pass all_commands, not -1, to
3423 help_list.
3424 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3425 help_list.
3426 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3427 help_list.
3428 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3429 -1, to help_list.
3430 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3431 not -1, to help_list.
3432 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3433 not -1, to help_list.
3434 * maint.c (maintenance_command, maintenance_info_command)
3435 (maintenance_print_command, maintenance_set_cmd): Pass
3436 all_commands, not -1, to help_list.
3437 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3438 help_list.
3439 * language.c (set_check): Pass all_commands, not -1, to help_list.
3440 * infcmd.c (unset_command): Pass all_commands, not -1, to
3441 help_list.
3442 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3443 help_list.
3444 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3445 help_list.
3446 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3447 help_list.
3448 * breakpoint.c (save_command): Pass all_commands, not -1, to
3449 help_list.
3450 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3451 all_commands, not -1, to help_list.
3452
3453 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3454
3455 * regcache.c (struct register_to_invalidate): New structure.
3456 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3457 functions.
3458 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3459
3460 2014-06-12 Yao Qi <yao@codesourcery.com>
3461
3462 * varobj.c (varobj_get_num_children): Call
3463 varobj_is_dynamic_p.
3464 (varobj_list_children): Likewise.
3465 (varobj_update): Likewise. Update comments.
3466
3467 2014-06-12 Yao Qi <yao@codesourcery.com>
3468
3469 * varobj.c (varobj_pretty_printed_p): Rename to ...
3470 (varobj_is_dynamic_p): ... this. New function.
3471 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3472 (varobj_is_dynamic_p): Declare.
3473 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3474 (mi_print_value_p, varobj_update_one): Likewise.
3475
3476 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3477 Yao Qi <yao@codesourcery.com>
3478
3479 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3480 (varobj_get_iterator): Wrap up code for pretty-printer by
3481 "#if HAVE_PYTHON" and "#endif".
3482 (update_dynamic_varobj_children): Likewise.
3483
3484 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3485 Yao Qi <yao@codesourcery.com>
3486
3487 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3488 gdb_python_initialized is false. Move some code from varobj.c.
3489 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3490 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3491 (struct varobj_item): Moved to varobj-iter.h".
3492 (varobj_clear_saved_item): New function.
3493 (update_dynamic_varobj_children): Move python-related code to
3494 py-varobj.c.
3495 (free_variable): Call varobj_clear_saved_item and
3496 varobj_iter_delete.
3497
3498 2014-06-12 Pedro Alves <pedro@codesourcery.com>
3499 Yao Qi <yao@codesourcery.com>
3500
3501 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3502 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3503 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3504 (py-varobj.o): New rule.
3505 * python/py-varobj.c: New file.
3506 * python/python-internal.h (py_varobj_get_iterator): Declare.
3507 * varobj-iter.h: New file.
3508 * varobj.c: Include "varobj-iter.h"
3509 (struct varobj) <child_iter>: Change its type from "PyObject *"
3510 to "struct varobj_iter *".
3511 <saved_item>: Likewise.
3512 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3513 [HAVE_PYTHON] (varobj_get_iterator): New function.
3514 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3515 python-specific code to python/py-varobj.c.
3516 (install_visualizer): Call varobj_iter_delete instead of
3517 Py_XDECREF.
3518 * varobj.h (varobj_ensure_python_env): Declare.
3519
3520 2014-06-12 Yao Qi <yao@codesourcery.com>
3521
3522 * varobj.c (struct varobj_item): New structure.
3523 (create_child_with_value): Update declaration.
3524 (varobj_add_child): Replace arguments 'name' and 'value' with
3525 'item'. All callers updated.
3526 (install_dynamic_child): Likewise.
3527 (update_dynamic_varobj_children): Likewise.
3528 (varobj_add_child): Likewise.
3529 (create_child_with_value): Likewise.
3530
3531 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3532
3533 * NEWS: Create a new section for the next release branch.
3534 Rename the section of the current branch, now that it has
3535 been cut.
3536
3537 2014-06-11 Joel Brobecker <brobecker@adacore.com>
3538
3539 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3540 * version.in: Bump version to 7.8.50.DATE-cvs.
3541
3542 2014-06-11 Pedro Alves <palves@redhat.com>
3543
3544 PR remote/17028
3545 * ser-mingw.c (net_windows_socket_check_pending): New function.
3546 (net_windows_select_thread): Ignore spurious wakeups. Use
3547 net_windows_socket_check_pending.
3548 (net_windows_wait_handle): Check for pending events with
3549 ioctlsocket, through net_windows_socket_check_pending, instead of
3550 checking the socket's event.
3551
3552 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3553
3554 * python/python-internal.h (gdb_PyObject_GetAttrString)
3555 (gdb_PyObject_HasAttrString): New inline function definitions.
3556 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3557 char * of the second argument to PyObject_GetAttrString.
3558
3559 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3560
3561 * serial.c (serial_write): Fix index of character to be printed
3562 in call to serial_logchar when serial debug traces are enabled.
3563
3564 2014-06-10 Joel Brobecker <brobecker@adacore.com>
3565
3566 * gdbtypes (resolve_dynamic_range): Add function description.
3567
3568 2014-06-09 Pedro Alves <palves@redhat.com>
3569
3570 * linux-nat.c (linux_child_follow_fork): Initialize status with
3571 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3572 inner block. Only pass the signal to PTRACE_DETACH if in pass
3573 state.
3574
3575 2014-06-09 Gary Benson <gbenson@redhat.com>
3576
3577 * common/signals.c (gdb_signal_from_host): Reorder to separate
3578 the always-available ANSI-standard signals from the signals that
3579 require checking.
3580 (do_gdb_signal_to_host): Likewise.
3581 * proc-events.c (signal_table): Likewise.
3582
3583 2014-06-08 Hui Zhu <hui@codesourcery.com>
3584
3585 * common/linux-ptrace.c (linux_disable_event_reporting): New
3586 function.
3587 * common/linux-ptrace.h (linux_disable_event_reporting): New
3588 declaration.
3589 * linux-nat.c (linux_child_follow_fork): Do a single step before
3590 detach.
3591
3592 2014-06-07 Keith Seitz <keiths@redhat.com>
3593
3594 Revert:
3595 PR c++/16253
3596 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3597 from symbol_matches_domain in symtab.c. All local callers
3598 of symbol_matches_domain updated.
3599 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3600 search STRUCT_DOMAIN.
3601 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3602 independently. standard_lookup will do that automatically.
3603 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3604 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3605 (cp_lookup_symbol_in_namespace): Likewise.
3606 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3607 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3608 may return a STRUCT_DOMAIN match.
3609 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3610 * cp-support.c: Include language.h.
3611 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3612 VAR_DOMAIN.
3613 * psymtab.c (match_partial_symbol): Compare the requested
3614 domain with the symbol's domain directly.
3615 (lookup_partial_symbol): Likewise.
3616 * symtab.c (lookup_symbol_in_language): Explain when/why
3617 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3618 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3619 appropriate languages.
3620 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3621 and moved to ada-lang.c
3622 (lookup_block_symbol): Explain that this function only returns
3623 symbol matching the requested DOMAIN.
3624 Compare the requested domain with the symbol's domain directly.
3625 (iterate_over_symbols): Compare the requested domain with the
3626 symbol's domain directly.
3627 * symtab.h (symbol_matches_domain): Remove.
3628
3629 2014-06-06 Doug Evans <xdje42@gmail.com>
3630
3631 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3632 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3633 (gdbscm_guile_version_is_at_least): Declare.
3634 (gdbscm_scm_string_to_int): Declare.
3635 * guile/guile.c (gdbscm_guile_major_version): New global.
3636 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3637 (guile_datadir): New static global.
3638 (gdbscm_guile_data_directory): New function.
3639 (initialize_scheme_side): Update.
3640 (misc_guile_functions): Add guile-data-directory.
3641 (initialize_gdb_module): Fetch guile version number.
3642 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3643 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3644 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3645 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3646 comments.
3647 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3648 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3649 * guile/scm-value.c (gdbscm_value_to_string): Only call
3650 scm_port_conversion_strategy if Guile version >= 2.0.6.
3651
3652 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3653
3654 * main.c (print_gdb_help): Add -q and --silent.
3655
3656 2014-06-06 Gary Benson <gbenson@redhat.com>
3657
3658 * common/signals.c: Remove preprocessor conditionals for
3659 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3660 SIGSEGV and SIGTERM.
3661 * proc-events.c: Likewise.
3662
3663 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3664
3665 * symfile.c (symfile_free_objfile): Remove restriction to
3666 OBJF_USERLOADED.
3667 * symfile-mem.c (symbol_file_add_from_memory): Call
3668 add_target_sections_of_objfile.
3669
3670 2014-06-05 Ludovic Courtès <ludo@gnu.org>
3671
3672 * guile/scm-value.c (gdbscm_history_append_x): Use
3673 'vlscm_get_value_smob_arg_unsafe' instead of
3674 'vlscm_scm_to_value'.
3675
3676 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3677
3678 PR mi/15806
3679 * utils.c (printchar): Don't escape at all if quoter is NUL.
3680 Update function documentation to clarify effect of parameter
3681 QUOTER.
3682 * remote.c (escape_buffer): Pass '\\' as the quoter to
3683 fputstrn_unfiltered.
3684 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3685 generate the output.
3686 (mi_solib_unloaded): Same.
3687
3688 2014-06-05 Joel Brobecker <brobecker@adacore.com>
3689
3690 * development.sh: Delete.
3691 * Makefile.in (config.status): Adjust dependency on development.sh.
3692 * configure.ac: Adjust development.sh source call.
3693 * configure: Regenerate.
3694
3695 2014-06-04 Doug Evans <xdje42@gmail.com>
3696
3697 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3698 is_scheme_bkpt, spec.
3699 (bpscm_make_breakpoint_smob): Initialize new members.
3700 (gdbscm_create_breakpoint_x): Split into two ...
3701 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3702 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3703 (scheme_function breakpoint_functions): Update.
3704 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3705 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3706 register-breakpoint!.
3707
3708 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
3709
3710 PR server/17023
3711 * mem-break.c (z_type_supported): Return zero if
3712 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3713
3714 2014-06-04 Tom Tromey <tromey@redhat.com>
3715
3716 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3717 value_from_contents_and_address_unresolved.
3718 (ada_template_to_fixed_record_type_1): Likewise.
3719 (ada_which_variant_applies): Likewise.
3720 * value.h (value_from_contents_and_address_unresolved): Declare.
3721 * value.c (value_from_contents_and_address_unresolved): New
3722 function.
3723 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3724 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3725 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3726
3727 2014-06-04 Tom Tromey <tromey@redhat.com>
3728
3729 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3730
3731 2014-06-04 Tom Tromey <tromey@redhat.com>
3732
3733 * procfs.c (procfs_attach): Make "args" const.
3734 * windows-nat.c (windows_attach): Make "args" const.
3735 * nto-procfs.c (procfs_attach): Make "args" const.
3736 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3737 * go32-nat.c (go32_attach): Make "args" const.
3738 * gnu-nat.c (gnu_attach): Make "args" const.
3739 * darwin-nat.c (darwin_attach): Make "args" const.
3740 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3741 * linux-nat.c (linux_nat_attach): Make "args" const.
3742 * remote.c (extended_remote_attach_1, extended_remote_attach):
3743 Make "args" const.
3744 * target.h (struct target_ops) <to_attach>: Make "args" const.
3745 (find_default_attach): Likewise.
3746 * utils.c (parse_pid_to_attach): Make "args" const.
3747 * utils.h (parse_pid_to_attach): Update.
3748
3749 2014-06-04 Tom Tromey <tromey@redhat.com>
3750
3751 * target-delegates.c: Rebuild.
3752 * target.c (default_thread_address_space): New function.
3753 (target_thread_address_space): Simplify.
3754 * target.h (struct target_ops) <to_thread_address_space>: Add
3755 TARGET_DEFAULT_FUNC.
3756
3757 2014-06-04 Doug Evans <xdje42@gmail.com>
3758
3759 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3760
3761 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3762
3763 * record-btrace.c: Include event-loop.h and inf-loop.h.
3764 (record_btrace_resume_exec_dir)
3765 (record_btrace_async_inferior_event_handler)
3766 (record_btrace_handle_async_inferior_event): New.
3767 (record_btrace_open): Create async event handler.
3768 (record_btrace_close): Delete async event handler.
3769 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3770 Mark async event handler.
3771 (record_btrace_execution_direction): New.
3772 (init_record_btrace_ops): Initialize to_execution_direction.
3773
3774 2014-06-03 Doug Evans <xdje42@gmail.com>
3775
3776 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3777 (gdbscm_make_parameter): Ditto.
3778
3779 2014-06-03 Doug Evans <dje@google.com>
3780
3781 * exec.c (exec_close_1): Call clear_section_table instead of
3782 resize_section_table.
3783 (clear_section_table): New function.
3784 (resize_section_table): Make static. Rename arg num_added to
3785 adjustment.
3786 * exec.h (clear_section_table): Declare.
3787 (resize_section_table): Delete.
3788 * progspace.c (release_program_space): Call clear_section_table
3789 instead of resize_section_table.
3790
3791 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3792
3793 * NEWS (Python Scripting): Add entry about the new xmethods
3794 feature.
3795
3796 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3797
3798 * python/py-xmethods.c: New file.
3799 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3800 (objfpy_dealloc): XDECREF on the new xmethods field.
3801 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3802 field.
3803 (objfpy_get_xmethods): New function.
3804 (objfile_getset): New entry 'xmethods'.
3805 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3806 (pspy_dealloc): XDECREF on the new xmethods field.
3807 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3808 field.
3809 (pspy_get_xmethods): New function.
3810 (pspace_getset): New entry 'xmethods'.
3811 * python/python-internal.h: Add declarations for new functions.
3812 * python/python.c (_initialize_python): Invoke
3813 gdbpy_initialize_xmethods.
3814 * python/lib/gdb/__init__.py (xmethods): New
3815 attribute.
3816 * python/lib/gdb/xmethod.py: New file.
3817 * python/lib/gdb/command/xmethods.py: New file.
3818
3819 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3820
3821 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3822 best match method returned by find_overload_match is an xmethod.
3823 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3824 the best matching operator returned by find_overload_match is an
3825 xmethod.
3826 * valops.c: #include "extension.h".
3827 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3828 Return void. The list of matching source methods is returned in
3829 "fn_list" and a vector of matching debug method workers is
3830 returned in "xm_worker_vec". Update all callers.
3831 (value_find_oload_method_list): Likewise.
3832 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3833 non-NULL, then the index of the best matching method in this
3834 vector is returned. Update all callers.
3835 (find_overload_match): Include xmethods while performing overload
3836 resolution.
3837
3838 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3839
3840 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3841 * extension-priv.h (struct extension_language_ops): Add the
3842 xmethod interface.
3843 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3844 get_matching_xmethod_workers, get_xmethod_argtypes,
3845 invoke_xmethod, free_xmethod_worker,
3846 free_xmethod_worker_vec): New functions.
3847 * extension.h: #include "common/vec.h".
3848 New function declarations.
3849 (struct xmethod_worker): New struct.
3850 (VEC (xmethod_worker_ptr)): New vector type.
3851 (xmethod_worker_ptr): New typedef.
3852 (xmethod_worker_vec): Likewise.
3853 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3854 builtin_type.
3855 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3856 (struct builtin_type): New field "xmethod".
3857 * valarith.c (value_ptradd): Assert that the value argument is not
3858 lval_xcallable.
3859 * valops.c (value_must_coerce_to_target): Return 0 for
3860 lval_xcallable values.
3861 * value.c (struct value): New field XM_WORKER in the field
3862 LOCATION.
3863 (value_address, value_raw_address): Return 0 for lval_xcallable
3864 values.
3865 (set_value_address): Assert that the value is not an
3866 lval_xcallable.
3867 (value_free): Free the associated xmethod worker when freeing
3868 lval_xcallable values.
3869 (set_value_component_location): Assert that the WHOLE value is not
3870 lval_xcallable.
3871 (value_of_xmethod, call_xmethod): New functions.
3872 * value.h: Declare "struct xmethod_worker".
3873 Declare new functions value_of_xmethod, call_xmethod.
3874
3875 2014-06-03 Joel Brobecker <brobecker@adacore.com>
3876 Pedro Alves <palves@redhat.com>
3877
3878 PR breakpoints/17000
3879 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3880 New function, extracted from software_breakpoint_inserted_here_p.
3881 (software_breakpoint_inserted_here_p): Replace factored out code
3882 by call to find_non_raw_software_breakpoint_inserted_here.
3883 (bp_target_info_copy_insertion_state): New function.
3884 (bkpt_insert_location): Handle the case of a single-step
3885 breakpoint already inserted at the same address.
3886 (bkpt_remove_location): Handle the case of a single-step
3887 breakpoint still inserted at the same address.
3888 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3889 breakpoint already inserted at the same address.
3890 (deprecated_remove_raw_breakpoint): Handle the case of a
3891 non-raw breakpoint still inserted at the same address.
3892 (find_single_step_breakpoint): New function, extracted from
3893 single_step_breakpoint_inserted_here_p.
3894 (find_single_step_breakpoint): New function,
3895 factored out from single_step_breakpoint_inserted_here_p.
3896 (single_step_breakpoint_inserted_here_p): Reimplement.
3897
3898 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3899
3900 Pushed by Joel Brobecker <brobecker@adacore.com>
3901 * source.c (show_substitute_path_command): Fix display of matching
3902 substitution rules.
3903
3904 2014-06-03 Gary Benson <gbenson@redhat.com>
3905
3906 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3907
3908 2014-06-02 Doug Evans <xdje42@gmail.com>
3909
3910 Add parameter support for Guile.
3911 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3912 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3913 (scm-param.o): New rule.
3914 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3915 (gdbscm_misc_error): Declare.
3916 (gdbscm_canonicalize_command_name): Declare.
3917 (gdbscm_scm_to_host_string): Declare.
3918 (gdbscm_scm_from_host_string): Declare.
3919 (gdbscm_initialize_parameters): Declare.
3920 * guile/guile.c (initialize_gdb_module): Call
3921 gdbscm_initialize_parameters.
3922 * guile/lib/gdb.scm: Export parameter symbols.
3923 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3924 cmdscm_canonicalize_name and made public. All callers updated.
3925 * guile/scm-exception.c (gdbscm_misc_error): New function.
3926 * guile/scm-param.c: New file.
3927 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3928 (gdbscm_scm_to_host_string): New function.
3929 (gdbscm_scm_from_host_string): New function.
3930 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3931
3932 2014-06-02 Doug Evans <xdje42@gmail.com>
3933
3934 Add command support for Guile.
3935 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3936 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3937 (scm-cmd.o): New rule.
3938 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3939 (gdbscm_user_error_p): Declare.
3940 (gdbscm_parse_command_name): Declare.
3941 (gdbscm_valid_command_class_p): Declare.
3942 (gdbscm_initialize_commands): Declare.
3943 * guile/guile.c (initialize_gdb_module): Call
3944 gdbscm_initialize_commands.
3945 * guile/lib/gdb.scm: Export command symbols.
3946 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3947 (throw-user-error): New function.
3948 * guile/scm-cmd.c: New file.
3949 * guile/scm-exception.c (user_error_symbol): New static global.
3950 (gdbscm_user_error_p): New function.
3951 (gdbscm_initialize_exceptions): Set user_error_symbol.
3952 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3953
3954 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3955
3956 * top.c (command_loop): Handle comments here...
3957 (command_line_input): ... not here.
3958
3959 2014-06-02 Doug Evans <xdje42@gmail.com>
3960
3961 Add progspace support for Guile.
3962 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3963 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3964 (scm-progspace.o): New rule.
3965 * guile/guile-internal.h (pspace_smob): New typedef.
3966 (psscm_pspace_smob_pretty_printers): Declare.
3967 (psscm_pspace_smob_from_pspace): Declare.
3968 (psscm_scm_from_pspace): Declare.
3969 * guile/guile.c (initialize_gdb_module): Call
3970 gdbscm_initialize_pspaces.
3971 * guile/lib/gdb.scm: Export progspace symbols.
3972 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3973 support.
3974 (append-pretty-printer!): Ditto.
3975 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3976 Implement.
3977 * guile/scm-progspace.c: New file.
3978
3979 2014-06-03 Alan Modra <amodra@gmail.com>
3980
3981 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3982 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3983
3984 2014-06-02 Doug Evans <dje@google.com>
3985
3986 Add support for skeletonless type units.
3987 * dwarf2read.c (struct dwarf2_per_objfile): New member
3988 n_allocated_type_units.
3989 (struct dwarf2_per_objfile) <tu_stats>: New member
3990 nr_all_type_units_reallocs.
3991 (create_signatured_type_table_from_index): Initialize
3992 n_allocated_type_units
3993 (create_all_type_units): Ditto.
3994 (add_type_unit): Move up in file. New arg slot.
3995 All callers updated. Increase space for all_type_units more
3996 efficiently.
3997 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3998 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3999 (lookup_dwp_signatured_type): Ditto.
4000 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4001 All callers updated.
4002 (build_type_psymtabs_1): Leave type_unit_groups as
4003 NULL if no TUs present.
4004 (print_tu_stats): New function.
4005 (process_skeletonless_type_unit): New function.
4006 (process_dwo_file_for_skeletonless_type_units): New
4007 function.
4008 (process_skeletonless_type_units): New function.
4009 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4010 Call print tu_stats if debugging enabled.
4011
4012 2014-06-02 Pedro Alves <palves@redhat.com>
4013
4014 * breakpoint.c (build_target_command_list): Don't build a command
4015 list if we have any duplicate location that isn't a dprintf.
4016
4017 2014-06-02 Pedro Alves <palves@redhat.com>
4018
4019 * breakpoint.c (dprintf_breakpoint_hit): New function.
4020 (initialize_breakpoint_ops): Install it as dprintf's
4021 breakpoint_hit method.
4022
4023 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4024
4025 * source.c (substitute_path_rule_matches): Simplify using
4026 filename_ncmp instead of FILENAME_CMP.
4027
4028 2014-06-02 Joel Brobecker <brobecker@adacore.com>
4029
4030 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4031
4032 2014-06-01 Ludovic Courtès <ludo@gnu.org>
4033
4034 * configure.ac: When Guile is available, check for the
4035 availability of 'scm_new_smob'.
4036 * configure, config.h.in: Regenerate.
4037 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4038 function.
4039
4040 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4041
4042 * frame.c (struct frame_info): Add stop_string field.
4043 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4044 (get_prev_frame_always): Old content moved into
4045 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4046 TRY_CATCH, handle MEMORY_ERROR exceptions.
4047 (frame_stop_reason_string): New function definition.
4048 * frame.h (unwind_stop_reason_to_string): Extend comment to
4049 mention frame_stop_reason_string.
4050 (frame_stop_reason_string): New function declaration.
4051 * stack.c (frame_info): Switch to frame_stop_reason_string.
4052 (backtrace_command_1): Switch to frame_stop_reason_string.
4053 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4054 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4055 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4056
4057 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4058
4059 * frame.c (frame_stop_reason_string): Rename to ...
4060 (unwind_stop_reason_to_string): this.
4061 * frame.h (frame_stop_reason_string): Rename to ...
4062 (unwind_stop_reason_to_string): this.
4063 * stack.c (frame_info): Update call to frame_stop_reason_string.
4064 (backtrace_command_1): Likewise.
4065 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4066 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4067
4068 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
4069
4070 * frame.c (remove_prev_frame): New function.
4071 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4072 remove_prev_frame.
4073
4074 2014-05-29 Pedro Alves <palves@redhat.com>
4075
4076 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4077 and make it const. When a single-step decays to a continue,
4078 clear 'step', not 'hw_step'. Pass whether the caller wanted
4079 to step to user_visible_resume_ptid, not what we ask the
4080 target to do.
4081
4082 2014-05-29 Pedro Alves <palves@redhat.com>
4083
4084 * infrun.c (process_event_stop_test, handle_step_into_function)
4085 (handle_step_into_function_backward): Adjust.
4086 Don't set the even thread's stop_step and call stop_waiting before
4087 calling end_stepping_range. Instead do that ...
4088 (end_stepping_range): ... here. Take an ecs pointer parameter.
4089
4090 2014-05-29 Pedro Alves <palves@redhat.com>
4091
4092 * infrun.c (stop_stepping): Rename to ...
4093 (stop_waiting): ... this.
4094 (proceed): Update comment.
4095 (process_event_stop_test, handle_inferior_event)
4096 (handle_signal_stop, handle_step_into_function)
4097 (handle_step_into_function_backward): Update.
4098
4099 2014-05-29 Pedro Alves <palves@redhat.com>
4100
4101 * infcall.c (run_inferior_call): Don't check whether the current
4102 thread is running after the proceed call.
4103
4104 2014-05-29 Pedro Alves <palves@redhat.com>
4105 Tom Tromey <tromey@redhat.com>
4106
4107 * NEWS: Mention "maint set target-async", "set mi-async", and that
4108 background execution commands are now always available.
4109 * target.h (target_async_permitted): Update comment.
4110 * target.c (target_async_permitted, target_async_permitted_1):
4111 Default to 1.
4112 (set_target_async_command): Rename to ...
4113 (maint_set_target_async_command): ... this.
4114 (show_target_async_command): Rename to ...
4115 (maint_show_target_async_command): ... this.
4116 (_initialize_target): Adjust.
4117 * infcmd.c (prepare_execution_command): Make extern.
4118 * inferior.h (prepare_execution_command): Declare.
4119 * infrun.c (set_observer_mode): Leave target async alone.
4120 * mi/mi-interp.c (mi_interpreter_init): Install
4121 mi_on_sync_execution_done as sync_execution_done observer.
4122 (mi_on_sync_execution_done): New function.
4123 (mi_execute_command_input_handler): Don't print the prompt if we
4124 just started a synchronous command with an async target.
4125 (mi_on_resume): Check sync_execution before printing prompt.
4126 * mi/mi-main.h (mi_async_p): Declare.
4127 * mi/mi-main.c: Include gdbcmd.h.
4128 (mi_async_p): New function.
4129 (mi_async, mi_async_1): New globals.
4130 (set_mi_async_command, show_mi_async_command, mi_async): New
4131 functions.
4132 (exec_continue): Call prepare_execution_command.
4133 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4134 (mi_execute_async_cli_command): Use mi_async_p.
4135 (_initialize_mi_main): Install "set mi-async". Make
4136 "target-async" a deprecated alias.
4137
4138 2014-05-29 Pedro Alves <palves@redhat.com>
4139
4140 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4141 (_initialize_cli_interp): Adjust.
4142 * event-loop.c: Include "observer.h".
4143 (start_event_loop): Notify 'command_error' observers instead of
4144 calling display_gdb_prompt. Remove FIXME comment.
4145 * event-top.c (display_gdb_prompt): Remove call into the
4146 interpreters.
4147 * inf-loop.c: Include "observer.h".
4148 (inferior_event_handler): Notify 'command_error' observers instead
4149 of calling display_gdb_prompt.
4150 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4151 observers instead of calling display_gdb_prompt.
4152 * interps.c (interp_set): Don't call display_gdb_prompt.
4153 (current_interp_display_prompt_p): Delete.
4154 * interps.h (interp_prompt_p): Delete declaration.
4155 (interp_prompt_p_ftype): Delete.
4156 (struct interp_procs) <prompt_proc_p>: Delete field.
4157 (current_interp_display_prompt_p): Delete declaration.
4158 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4159 (_initialize_mi_interp): Adjust.
4160 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4161 'command_error' observers.
4162 (tui_on_sync_execution_done, tui_on_command_error): New
4163 functions.
4164 (tui_display_prompt_p): Delete.
4165 (_initialize_tui_interp): Adjust.
4166
4167 2014-05-29 Pedro Alves <palves@redhat.com>
4168
4169 PR gdb/13860
4170 * cli/cli-interp.c: Include infrun.h and observer.h.
4171 (cli_uiout, cli_interp): New globals.
4172 (cli_on_signal_received, cli_on_end_stepping_range)
4173 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4174 functions.
4175 (cli_interpreter_init): Install them as 'end_stepping_range',
4176 'signal_received' 'signal_exited', 'exited' and 'no_history'
4177 observers.
4178 (_initialize_cli_interp): Remove cli_interp local.
4179 * infrun.c (handle_inferior_event): Call the several stop reason
4180 observers instead of printing the stop reason directly.
4181 (end_stepping_range): New function.
4182 (print_end_stepping_range_reason, print_signal_exited_reason)
4183 (print_exited_reason, print_signal_received_reason)
4184 (print_no_history_reason): Make static, and add an uiout
4185 parameter. Print to that instead of to CURRENT_UIOUT.
4186 * infrun.h (print_end_stepping_range_reason)
4187 (print_signal_exited_reason, print_exited_reason)
4188 (print_signal_received_reason print_no_history_reason): New
4189 declarations.
4190 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4191 'mi_uiout'.
4192 <cli_uiout>: New field.
4193 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4194 uiout for CLI output. Install 'signal_received',
4195 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4196 observers.
4197 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4198 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4199 (mi_on_no_history): New functions.
4200 (ui_out_free_cleanup): Delete function.
4201 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4202 instead use the one already stored in the MI interpreter data.
4203 (mi_ui_out): Adjust.
4204 * tui/tui-interp.c: Include infrun.h and observer.h.
4205 (tui_interp): New global.
4206 (tui_on_signal_received, tui_on_end_stepping_range)
4207 (tui_on_signal_exited, tui_on_exited)
4208 (tui_on_no_history): New functions.
4209 (tui_init): Install them as 'end_stepping_range',
4210 'signal_received' 'signal_exited', 'exited' and 'no_history'
4211 observers.
4212 (_initialize_tui_interp): Delete tui_interp local.
4213
4214 2014-05-29 Pedro Alves <palves@redhat.com>
4215
4216 PR gdb/15713
4217 * linux-nat.c (linux_nat_resume_callback): Rename the second
4218 parameter to 'except'. Skip LP if it points to EXCEPT.
4219 (linux_nat_resume): Don't mark the event lwp as not stopped
4220 before resuming sibling lwps. Instead ask
4221 linux_nat_resume_callback to skip the event lwp. Mark it as not
4222 stopped after actually resuming it.
4223 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4224 resuming it.
4225 (wait_lwp): Mark the lwp as stopped here.
4226 (stop_wait_callback): Mark the lwp as not stopped right after
4227 resuming it. Don't mark lwps as stopped here.
4228 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4229 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4230
4231 2014-05-29 Pedro Alves <palves@redhat.com>
4232
4233 PR PR15693
4234 * infrun.c (resume): Determine how much to resume depending on
4235 whether the caller wanted a step, not whether we can hardware step
4236 the target. Mark all threads that we intend to run as running,
4237 unless we're calling an inferior function.
4238 (normal_stop): If the thread is running an infcall, don't finish
4239 thread state.
4240 * target.c (target_resume): Don't mark threads as running here.
4241
4242 2014-05-28 Joel Brobecker <brobecker@adacore.com>
4243
4244 * serial.c (_initialize_serial): Remove support for
4245 the "set remotebaud" and "show remotebaud" commands.
4246 * NEWS: Add entry documenting the removal of that command.
4247
4248 2014-05-28 Yao Qi <yao@codesourcery.com>
4249
4250 * charset.c: Fix typo in comments.
4251
4252 2014-05-27 Gary Benson <gbenson@redhat.com>
4253
4254 * utils.c (internal_vproblem): Prompt for a bug report.
4255
4256 2014-05-26 Andy Wingo <wingo@igalia.com>
4257
4258 * guile/scm-arch.c (arscm_mark_arch_smob):
4259 * guile/scm-block.c (bkscm_mark_block_smob)
4260 (bkscm_mark_block_syms_progress_smob):
4261 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4262 * guile/scm-exception.c (exscm_mark_exception_smob):
4263 * guile/scm-frame.c (frscm_mark_frame_smob):
4264 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4265 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4266 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4267 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4268 (ppscm_mark_pretty_printer_worker_smob):
4269 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4270 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4271 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4272 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4273 mark functions.
4274 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4275 function.
4276
4277 2014-05-26 Andy Wingo <wingo@igalia.com>
4278 Doug Evans <xdje42@gmail.com>
4279
4280 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4281 empty_base_class. All uses updated.
4282 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4283 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4284 Adapt all callers.
4285 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4286 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4287 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4288 (gdbscm_gsmob_has_property_p, add_property_name)
4289 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4290 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4291 (gdb-object-has-property?, gdb-object-properties): Remove.
4292 (gdb-object-kind): Renamed from gsmob-kind.
4293
4294 2014-05-26 Andy Wingo <wingo@igalia.com>
4295
4296 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4297 * configure: Regenerate.
4298
4299 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4300
4301 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4302
4303 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4304
4305 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4306 (replay_memory_access_read_only, replay_memory_access_read_write)
4307 (replay_memory_access_types, replay_memory_access)
4308 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4309 (cmd_set_record_btrace, cmd_show_record_btrace)
4310 (cmd_show_replay_memory_access): New.
4311 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4312 (record_btrace_remove_breakpoint): Replace
4313 record_btrace_allow_memory_access with replay_memory_access.
4314 (_initialize_record_btrace): Add commands.
4315 * NEWS: Announce it.
4316
4317 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4318
4319 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4320
4321 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4322
4323 * MAINTAINERS (Write After Approval): Move self back from
4324 paper trail.
4325
4326 2014-05-22 Pedro Alves <palves@redhat.com>
4327
4328 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4329 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4330 (disable_randomization, enum exec_direction_kind)
4331 (execution_direction, stop_registers, start_remote)
4332 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4333 (wait_for_inferior, normal_stop, get_last_target_status)
4334 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4335 (insert_step_resume_breakpoint_at_sal)
4336 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4337 (set_step_info, print_stop_event, signal_stop_state)
4338 (signal_print_state, signal_pass_state, signal_stop_update)
4339 (signal_print_update, signal_pass_update)
4340 (update_signals_program_target, clear_exit_convenience_vars)
4341 (displaced_step_dump_bytes, update_observer_mode)
4342 (signal_catch_update, gdb_signal_from_command): Move
4343 declarations ...
4344 * infrun.h: ... to this new file.
4345 * amd64-tdep.c: Include infrun.h.
4346 * annotate.c: Include infrun.h.
4347 * arch-utils.c: Include infrun.h.
4348 * arm-linux-tdep.c: Include infrun.h.
4349 * arm-tdep.c: Include infrun.h.
4350 * break-catch-sig.c: Include infrun.h.
4351 * breakpoint.c: Include infrun.h.
4352 * common/agent.c: Include infrun.h instead of inferior.h.
4353 * corelow.c: Include infrun.h.
4354 * event-top.c: Include infrun.h.
4355 * go32-nat.c: Include infrun.h.
4356 * i386-tdep.c: Include infrun.h.
4357 * inf-loop.c: Include infrun.h.
4358 * infcall.c: Include infrun.h.
4359 * infcmd.c: Include infrun.h.
4360 * infrun.c: Include infrun.h.
4361 * linux-fork.c: Include infrun.h.
4362 * linux-nat.c: Include infrun.h.
4363 * linux-thread-db.c: Include infrun.h.
4364 * monitor.c: Include infrun.h.
4365 * nto-tdep.c: Include infrun.h.
4366 * procfs.c: Include infrun.h.
4367 * record-btrace.c: Include infrun.h.
4368 * record-full.c: Include infrun.h.
4369 * remote-m32r-sdi.c: Include infrun.h.
4370 * remote-mips.c: Include infrun.h.
4371 * remote-notif.c: Include infrun.h.
4372 * remote-sim.c: Include infrun.h.
4373 * remote.c: Include infrun.h.
4374 * reverse.c: Include infrun.h.
4375 * rs6000-tdep.c: Include infrun.h.
4376 * s390-linux-tdep.c: Include infrun.h.
4377 * solib-irix.c: Include infrun.h.
4378 * solib-osf.c: Include infrun.h.
4379 * solib-svr4.c: Include infrun.h.
4380 * target.c: Include infrun.h.
4381 * top.c: Include infrun.h.
4382 * windows-nat.c: Include infrun.h.
4383 * mi/mi-interp.c: Include infrun.h.
4384 * mi/mi-main.c: Include infrun.h.
4385 * python/py-threadevent.c: Include infrun.h.
4386
4387 2014-05-22 Pedro Alves <palves@redhat.com>
4388
4389 * infrun.c (handle_inferior_event): Store the exit code for
4390 --return-child-result here, instead of ...
4391 (print_exited_reason): ... here.
4392
4393 2014-05-21 Pedro Alves <palves@redhat.com>
4394
4395 PR gdb/13860
4396 * gdbthread.h (struct thread_control_state): New field
4397 `command_interp'.
4398 * infrun.c (follow_fork): Copy the new thread control field to the
4399 child fork thread.
4400 (clear_proceed_status_thread): Clear the new thread control field.
4401 (proceed): Set the new thread control field.
4402 * interps.h (command_interp): Declare.
4403 * interps.c (command_interpreter): New global.
4404 (command_interp): New function.
4405 (interp_exec): Set `command_interpreter' while here.
4406 * cli-out.c (cli_uiout_dtor): New function.
4407 (cli_ui_out_impl): Install it.
4408 * mi/mi-interp.c: Include cli-out.h.
4409 (mi_cmd_interpreter_exec): Add comment.
4410 (restore_current_uiout_cleanup): New function.
4411 (ui_out_free_cleanup): New function.
4412 (mi_on_normal_stop): If finishing an execution command started by
4413 a CLI command, or any kind of breakpoint-like event triggered,
4414 print the stop event to the output (CLI) stream.
4415 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4416
4417 2014-05-21 Pedro Alves <palves@redhat.com>
4418
4419 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4420 current source line having changed.
4421 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4422 * infrun.c (normal_stop): Adjust call to
4423 set_current_sal_from_frame.
4424 * source.c (clear_lines_listed_range): New function.
4425 (set_current_source_symtab_and_line, identify_source_line): Clear
4426 the lines listed range.
4427 (line_info): Handle the first "info line" after the current source
4428 line having changed.
4429 * stack.c (print_stack_frame): Remove center handling.
4430 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4431 center sal.line.
4432
4433 2014-05-21 Pedro Alves <palves@redhat.com>
4434
4435 * inf-child.c (inf_child_mourn_inferior): New function.
4436 * inf-child.h (inf_child_mourn_inferior): New declaration.
4437 * darwin-nat.c (darwin_mourn_inferior): Use
4438 inf_child_mourn_inferior.
4439 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4440 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4441 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4442 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4443 * windows-nat.c (windows_mourn_inferior): Likewise.
4444
4445 2014-05-21 Doug Evans <xdje42@gmail.com>
4446
4447 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
4448
4449 2014-05-21 Doug Evans <xdje42@gmail.com>
4450
4451 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4452 (gdbscm_out_of_range_error): Ditto.
4453 (gdbscm_memory_error): Ditto.
4454 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4455 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4456 (gdbscm_out_of_range_error): Update.
4457 (gdbscm_memory_error): Update.
4458 (gdbscm_scm_to_target_string_unsafe): Delete.
4459
4460 2014-05-21 Pedro Alves <palves@redhat.com>
4461
4462 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4463 globals.
4464 (inf_child_open_target): New function.
4465 (inf_child_open): Use inf_child_open_target to push the target
4466 instead of erroring out.
4467 (inf_child_disconnect, inf_child_close)
4468 (inf_child_maybe_unpush_target): New functions.
4469 (inf_child_target): Install inf_child_disconnect and
4470 inf_child_close. Store a pointer to the returned object.
4471 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4472 declarations.
4473 * target.c (auto_connect_native_target): New global.
4474 (show_default_run_target): New function.
4475 (find_default_run_target): Return NULL if automatically connecting
4476 to the native target is disabled.
4477 (_initialize_target): Install set/show auto-connect-native-target.
4478 * NEWS: Mention "set auto-connect-native-target", and "target
4479 native".
4480 * linux-nat.c (super_close): New global.
4481 (linux_nat_close): Call super_close.
4482 (linux_nat_add_target): Store a pointer to the base class's
4483 to_close method.
4484 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4485 inf_child_maybe_unpush.
4486 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4487 already pushed.
4488 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4489 the inferior. Use inf_child_maybe_unpush_target.
4490 (inf_ttrace_attach): Don't push the target if it is already
4491 pushed.
4492 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4493 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4494 after mourning the inferior. Use inf_child_maybe_unpush_target.
4495 (darwin_attach_pid): Don't push the target if it is already
4496 pushed.
4497 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4498 mourning the inferior. Use inf_child_maybe_unpush_target.
4499 (gnu_detach): Use inf_child_maybe_unpush_target.
4500 * go32-nat.c (go32_create_inferior): Don't push the target if it
4501 is already pushed.
4502 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4503 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4504 (procfs_open): Rename to ...
4505 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4506 comments. Can target_preopen before changing node. Call
4507 inf_child_open_target to push the target explicitly.
4508 (procfs_attach): Don't push the target if it is already pushed.
4509 (procfs_detach): Use inf_child_maybe_unpush_target.
4510 (procfs_create_inferior): Don't push the target if it is already
4511 pushed.
4512 (nto_native_ops): New global.
4513 (procfs_open): Reimplement.
4514 (procfs_native_open): New function.
4515 (init_procfs_targets): Install procfs_native_open as to_open of
4516 "target native". Store a pointer to the "native" target in
4517 nto_native_ops.
4518 * procfs.c (procfs_attach): Don't push the target if it is already
4519 pushed.
4520 (procfs_detach): Use inf_child_maybe_unpush_target.
4521 (procfs_mourn_inferior): Only unpush the target after mourning the
4522 inferior. Use inf_child_maybe_unpush_target.
4523 (procfs_init_inferior): Don't push the target if it is already
4524 pushed.
4525 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4526 if it is already pushed.
4527
4528 2014-05-21 Pedro Alves <palves@redhat.com>
4529
4530 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4531 and "procfs" targets are now called "native" instead.
4532
4533 2014-05-21 Pedro Alves <palves@redhat.com>
4534
4535 * go32-nat.c (go32_open): Delete.
4536 (go32_target): Don't override the to_open method.
4537
4538 2014-05-21 Pedro Alves <palves@redhat.com>
4539
4540 * nto-procfs.c (procfs_can_run): New function.
4541 (nto_procfs_ops): New global.
4542 (init_procfs_targets): New, based on procfs_target. Install
4543 "target native" in addition to "target procfs".
4544 (_initialize_procfs): Call init_procfs_targets instead of adding
4545 the target here.
4546
4547 2014-05-21 Pedro Alves <palves@redhat.com>
4548
4549 * windows-nat.c (windows_target): Don't override to_shortname,
4550 to_longname or to_doc.
4551
4552 2014-05-21 Pedro Alves <palves@redhat.com>
4553
4554 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4555 to_doc.
4556
4557 2014-05-21 Pedro Alves <palves@redhat.com>
4558
4559 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4560 to_shortname, to_longname or to_doc.
4561
4562 2014-05-21 Pedro Alves <palves@redhat.com>
4563
4564 * go32-nat.c (go32_target): Don't override to_shortname,
4565 to_longname or to_doc.
4566
4567 2014-05-21 Pedro Alves <palves@redhat.com>
4568
4569 * inf-child.c (inf_child_open): Remove mention of "child".
4570 (inf_child_target): Rename target to "native" instead of "child".
4571
4572 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4573
4574 * Makefile.in (SFILES): Delete "regset.c".
4575 (COMMON_OBS): Delete "regset.o".
4576 * regset.c: Remove.
4577 * regset.h (regset_alloc): Delete prototype.
4578
4579 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4580
4581 * sparc-linux-tdep.c (sparc32_linux_gregset)
4582 (sparc32_linux_fpregset): New static regset structures.
4583 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4584 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4585 'fpregset' fields.
4586 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4587 (sparc64_linux_fpregset): New static regset structures.
4588 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4589 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4590 New static regset structures.
4591 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4592 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4593 New static regset structures.
4594 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4595 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4596 New static regset structures.
4597 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4598 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4599 New static regset structures.
4600 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4601
4602 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4603
4604 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4605 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4606 register maps ("regmaps") from "*regset" to "*regmap". Do this
4607 for all regmap types and variables.
4608 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4609 (sparc32_linux_supply_core_gregset)
4610 (sparc32_linux_collect_core_gregset)
4611 (sparc32_linux_supply_core_fpregset)
4612 (sparc32_linux_collect_core_fpregset): Likewise.
4613 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4614 (sparc_gregmap, sparc_fpregmap): ... these.
4615 (sparc_supply_gregset, sparc_collect_gregset)
4616 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4617 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4618 (_initialize_sparc_nat): Rename regmaps.
4619 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4620 (sparc_gregmap, sparc_fpregmap): ... these.
4621 (sparc_supply_gregset, sparc_collect_gregset)
4622 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4623 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4624 Rename macros to...
4625 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4626 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4627 Likewise.
4628 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4629 Rename to...
4630 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4631 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4632 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4633 regmaps.
4634 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4635 (sparc32_bsd_fpregset): Rename to...
4636 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4637 (sparc32_bsd_fpregmap): ... these.
4638 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4639 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4640 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4641 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4642 (struct sparc_gregmap, struct sparc_fpregmap)
4643 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4644 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4645 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4646 (sparc32_supply_regset, sparc32_collect_gregset)
4647 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4648 prototypes.
4649 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4650 (sparc64_linux_ptrace_gregmap): ... this.
4651 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4652 (_initialize_sparc64_linux_nat): Rename regmaps.
4653 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4654 (sparc64_linux_core_gregmap): ... this.
4655 (sparc64_linux_supply_core_gregset)
4656 (sparc64_linux_collect_core_gregset)
4657 (sparc64_linux_supply_core_fpregset)
4658 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4659 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4660 (sparc64_sol2_fpregset): Rename to...
4661 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4662 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4663 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4664 regmaps.
4665 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4666 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4667 (sparc64_bsd_fpregset): Rename to...
4668 (struct sparc_gregmap, sparc64_sol2_gregmap)
4669 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4670 (sparc64_bsd_fpregmap): ... these.
4671 (sparc64_supply_gregset, sparc64_collect_gregset)
4672 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4673 prototypes.
4674 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4675 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4676 (sparc64fbsd_gregmap): ... this.
4677 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4678 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4679 Rename regmaps.
4680 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4681 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4682 (sparc64nbsd_collect_fpregset): Likewise.
4683 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4684 (sparc64nbsd_gregmap): ... this.
4685 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4686 regmaps.
4687 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4688 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4689 (sparc64obsd_gregmap): ... this.
4690 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4691 regmaps.
4692 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4693 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4694 (sparc32nbsd_gregmap): ... this.
4695 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4696 regmaps.
4697
4698 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4699
4700 * score-tdep.c (score7_linux_gregset): New static regset
4701 structure.
4702 (score7_linux_regset_from_core_section): Remove dynamic regset
4703 allocation.
4704 (score_gdbarch_init): Drop allocation of tdep structure.
4705 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4706
4707 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4708
4709 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4710 regset structures.
4711 (am33_regset_from_core_section): Remove dynamic regset
4712 allocations.
4713
4714 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4715
4716 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4717 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4718 structures.
4719 (mips_linux_regset_from_core_section): Remove dynamic regset
4720 allocations.
4721 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4722 'gregset64', 'fpregset', and 'fpregset64'.
4723 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4724 deleted tdep fields.
4725
4726 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4727
4728 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4729 regset structures.
4730 (amd64_regset_from_core_section): Remove dynamic regset
4731 allocations.
4732 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4733 structure.
4734 (amd64obsd_regset_from_core_section): Remove dynamic regset
4735 allocation.
4736 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4737 Likewise.
4738 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4739 x86-common regset supply function.
4740 * i386-tdep.c (i386_collect_gregset): Make static.
4741 (i386_gregset): New global regset structure.
4742 (i386_fpregset, i386_xstateregset): New static regset structures.
4743 (i386_regset_from_core_section): Remove dynamic regset
4744 allocations.
4745 (i386_gdbarch_init): Remove initialization of tdep fields
4746 'gregset', 'fpregset', and 'xstateregset'.
4747 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4748 'fpregset', and 'xstateregset'.
4749 (i386_collect_gregset): Remove prototype.
4750 (i386_gregset): New declaration.
4751 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4752 structure.
4753 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4754 allocation.
4755
4756 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4757
4758 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4759 (arm_linux_vfpregset): New static regset structures.
4760 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4761 regset structures.
4762 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4763 and 'vfpregset' fields.
4764
4765 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4766
4767 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4768 (aarch64_linux_fpregset): New static regset structures.
4769 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4770 of regset structures.
4771 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4772 'fpregset' fields.
4773
4774 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4775
4776 * regset.h (struct regset): Remove gdbarch field.
4777 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4778 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4779 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4780 Likewise.
4781 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4782 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4783 (ppc32_linux_vsxregset): Likewise.
4784 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4785 via the regcache instead of the regset.
4786 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4787 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4788 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4789 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4790 Likewise.
4791
4792 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4793
4794 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4795 Constify structures.
4796 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4797 (alphanbsd_aout_gregset): Likewise.
4798 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4799 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4800 Likewise.
4801 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4802 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4803 Likewise.
4804 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4805 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4806 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4807 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4808 * m88k-tdep.c (m88k_gregset): Likewise.
4809 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4810 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4811 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4812 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4813 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4814 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4815 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4816 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4817 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4818 Likewise.
4819 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4820 * sh-tdep.h (sh_corefile_gregset): Likewise.
4821 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4822 * vax-tdep.c (vax_gregset): Likewise.
4823
4824 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4825
4826 Fix TLS access for -static -pthread.
4827 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4828 (try_thread_db_load_1): Initialize it.
4829 (thread_db_get_thread_local_address): Call it if LM is zero.
4830 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4831 * target.h (struct target_ops) (to_get_thread_local_address): Add
4832 load_module_addr comment.
4833
4834 2014-05-21 Pedro Alves <palves@redhat.com>
4835
4836 * dcache.c (dcache_read_memory_partial): If reading the cache line
4837 fails, fallback to reading just the memory the caller wanted.
4838
4839 2014-05-20 Doug Evans <dje@google.com>
4840
4841 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4842 instead of get_current_arch.
4843
4844 2014-05-20 Pedro Alves <palves@redhat.com>
4845
4846 * NEWS: Mention that compare-sections now works with all targets.
4847
4848 * remote.c (PACKET_qCRC): New enum value.
4849 (remote_verify_memory): Don't send qCRC if the target has no
4850 execution. Use packet_support/packet_ok. If the target doesn't
4851 support the qCRC packet, fallback to a deep memory copy.
4852 (compare_sections_command): Say "target image" instead of "remote
4853 executable".
4854 (_initialize_remote): Add PACKET_qCRC to the list of config
4855 packets that have no associated command. Extend comment.
4856 * target.c (simple_verify_memory, default_verify_memory): New
4857 function.
4858 * target.h (struct target_ops) <to_verify_memory>: Default to
4859 default_verify_memory.
4860 (simple_verify_memory): New declaration.
4861 * target-delegates.c: Regenerate.
4862
4863 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4864
4865 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4866
4867 2014-05-20 Hui Zhu <hui@codesourcery.com>
4868 Yao Qi <yao@codesourcery.com>
4869
4870 PR backtrace/16558
4871 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4872 and change address of sp and pc.
4873
4874 2014-05-19 Tom Tromey <tromey@redhat.com>
4875
4876 * gdbtypes.c (rank_function): Use XNEWVEC.
4877 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4878
4879 2014-05-19 Doug Evans <dje@google.com>
4880
4881 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4882 build_type_unit_groups and moved closer to only caller. Remove
4883 arguments. All references updated. Remove outdated .gdb_index
4884 comment.
4885 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4886 build_type_psymtabs_1.
4887
4888 2014-05-19 Doug Evans <dje@google.com>
4889
4890 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4891 n_type_unit_groups, all_type_unit_groups. All uses removed.
4892 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4893 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4894 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4895 (add_type_unit_group_to_table): Delete.
4896
4897 2014-05-19 Doug Evans <dje@google.com>
4898
4899 * eval.c (evaluate_subexp_standard): Add some comments.
4900
4901 2014-05-17 Doug Evans <xdje42@gmail.com>
4902
4903 * progspace.c (remove_program_space): Delete, unused.
4904 * progspace.h (remove_program_space): Ditto.
4905
4906 2014-05-17 Doug Evans <xdje42@gmail.com>
4907
4908 * inferior.c (prune_inferiors): Fix comment.
4909 (remove_inferior_command): Call prune_program_spaces.
4910
4911 2014-05-16 Doug Evans <dje@google.com>
4912
4913 New command line option -D.
4914 * NEWS: Mention it.
4915 * main.c (set_gdb_data_directory): New function.
4916 (captured_main): Recognize -D. Flag error for --data-directory "".
4917 Call set_gdb_data_directory.
4918 (print_gdb_help): Print --data-directory, -D.
4919 * main.h (set_gdb_data_directory): Declare.
4920 * top.c (staged_gdb_datadir): New static global.
4921 (set_gdb_datadir): Call set_gdb_data_directory
4922 (show_gdb_datadir): New function.
4923 (init_main): Update init of data-directory parameter.
4924
4925 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4926
4927 Import the "dirfd" gnulib module.
4928 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4929 * gnulib/aclocal.m4: Update.
4930 * gnulib/config.in: Update.
4931 * gnulib/configure: Update.
4932 * gnulib/import/Makefile.am: Update.
4933 * gnulib/import/Makefile.in: Update.
4934 * gnulib/import/dirfd.c: New.
4935 * gnulib/import/m4/dirfd.m4: New.
4936 * gnulib/import/m4/gnulib-cache.m4: Update.
4937 * gnulib/import/m4/gnulib-comp.m4: Update.
4938
4939 2014-05-16 Pierre Muller <muller@sourceware.org>
4940 Yao Qi <yao@codesourcery.com>
4941
4942 * valprint.c (print_wchar): Move the code on checking whether
4943 W is a printable wide char to the default branch of switch
4944 statement below. Call wchar_printable instead of gdb_iswprint.
4945
4946 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4947
4948 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
4949 ldr.w and ldrd instructions.
4950
4951 2014-05-15 Doug Evans <dje@google.com>
4952
4953 * dwarf2read.c (read_structure_type): Delete outdated comments.
4954
4955 2014-05-14 Tom Tromey <tromey@redhat.com>
4956
4957 * macrocmd.c (print_macro_definition): Reindent.
4958
4959 2014-05-13 Doug Evans <xdje42@gmail.com>
4960
4961 * python/py-cmd.c (cmdpy_completer): Add comment.
4962 (completers): Make const.
4963
4964 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4965
4966 * infrun.c (resume): Remove should_resume (unused). Move up
4967 declaration of resume_ptid.
4968
4969 2014-05-13 Tom Tromey <tromey@redhat.com>
4970
4971 * language.h (unop_type_check): Remove.
4972 (binop_type_check): Don't declare.
4973
4974 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4975
4976 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4977 call to regcache_raw_collect.
4978
4979 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4980
4981 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4982 mi_console->quote as the quoting character.
4983
4984 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4985
4986 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4987
4988 2014-04-29 Tom Tromey <tromey@redhat.com>
4989
4990 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4991 "show debug varobj".
4992
4993 2014-05-07 Kyle McMartin <kyle@redhat.com>
4994
4995 Pushed by Joel Brobecker <brobecker@adacore.com>.
4996 * aarch64-tdep.c (aarch64_software_single_step): New function.
4997 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4998 with aarch64_software_single_step.
4999
5000 2014-05-05 Joel Brobecker <brobecker@adacore.com>
5001
5002 GDB 7.7.1 released.
5003
5004 2014-05-05 Keith Seitz <keiths@redhat.com>
5005
5006 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5007 variable or history value is successfully parsed.
5008
5009 2014-05-05 Yao Qi <yao@codesourcery.com>
5010 Pedro Alves <palves@redhat.com>
5011
5012 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5013 address of blocks that intersects the requested range. Trim
5014 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5015 sections.
5016 * ctf.c (ctf_xfer_partial): Likewise.
5017
5018 2014-05-05 Yao Qi <yao@codesourcery.com>
5019
5020 * printcmd.c (display_command): Remove the check to
5021 target_has_execution.
5022
5023 2014-05-03 Mark Kettenis <kettenis@gnu.org>
5024
5025 * ppcobsd-nat.c: Include "obsd-nat.h".
5026 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5027 add_target.
5028 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5029
5030 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5031
5032 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5033 and 16-bit signed and unsigned arguments. Update comment.
5034 (stap_parse_probe_arguments): Extend code to handle such
5035 arguments. Use warning instead of complaint to notify about
5036 unrecognized bitness.
5037
5038 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5039
5040 PR breakpoints/16889
5041 * stap-probe.c (stap_parse_probe_arguments): Simplify
5042 check for non-prefixed probes (i.e., probes whose
5043 arguments do not start with "N@"). Always set the
5044 argument type to a sane value.
5045
5046 2014-05-01 David Taylor <dtaylor@emc.com>
5047
5048 * remote.c (compare_sections_command): Add -r option to compare
5049 all loadable read-only sections.
5050
5051 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5052
5053 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5054 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5055 Update all callers.
5056 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5057 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5058 Remove unused CORE_ADDR argument. Update all callers.
5059
5060 2014-04-29 Pedro Alves <palves@redhat.com>
5061
5062 * remote.c (struct packet_config) <detect>: Extend comment.
5063 (add_packet_config_cmd): Don't set the config's detect or support
5064 fields here.
5065 (init_all_packet_configs): Also initialize the config's 'detect'
5066 field.
5067 (reset_all_packet_configs_support): New function.
5068 (remote_open_1): Call reset_all_packet_configs_support instead of
5069 init_all_packet_configs.
5070 (_initialize_remote): Initialize all packet configs. Assert that
5071 all packets have an associated command, except a few known
5072 outliers.
5073
5074 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5075
5076 * dwarf2read.c (read_subrange_type): Handle dynamic
5077 DW_AT_lower_bound attributes.
5078
5079 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5080
5081 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5082 dynamic bounds before computing its upper bound.
5083 (ada_discrete_type_low_bound): Same as above with the lower bound.
5084
5085 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5086
5087 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5088 range types. Adjust the array handling implementation to
5089 take advantage of this change.
5090 (resolve_dynamic_range): New function, mostly extracted from
5091 resolve_dynamic_bounds.
5092 (resolve_dynamic_array): New function, mostly extracted from
5093 resolve_dynamic_bounds.
5094 (resolve_dynamic_bounds): Delete.
5095 (resolve_dynamic_type): Reimplement. Add handling of
5096 TYPE_CODE_RANGE types.
5097
5098 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5099
5100 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5101 handling of parallel ___XA types.
5102
5103 2014-04-28 Joel Brobecker <brobecker@adacore.com>
5104
5105 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5106 unnecessary second call to static_unwrap_type.
5107
5108 2014-04-27 Hui Zhu <hui@codesourcery.com>
5109
5110 * stack.c (print_frame_info): Call do_gdb_disassembly with
5111 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5112
5113 2014-04-26 Doug Evans <xdje42@gmail.com>
5114
5115 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5116
5117 2014-04-25 Pedro Alves <palves@redhat.com>
5118
5119 PR server/16255
5120 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5121 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5122 and newline from built string.
5123 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5124 (linux_ptrace_attach_fail_reason): ... this.
5125 * linux-nat.c (linux_nat_attach): Adjust to use
5126 linux_ptrace_attach_fail_reason.
5127
5128 2014-04-25 Pedro Alves <palves@redhat.com>
5129
5130 * remote.c (struct remote_state): Remove multi_process_aware,
5131 non_stop_aware, cond_tracepoints, cond_breakpoints,
5132 breakpoint_commands, fast_tracepoints, static_tracepoints,
5133 install_in_trace, disconnected_tracing,
5134 enable_disable_tracepoints, string_tracing, and
5135 augmented_libraries_svr4_read fields.
5136 (remote_multi_process_p): Move further below in the file.
5137 (struct packet_config): Add comments.
5138 (update_packet_config): Delete function.
5139 (show_packet_config_cmd): Use packet_config_support.
5140 (add_packet_config_cmd): Use NULL as set callback.
5141 (packet_ok): "set remote foo-packet"-style commands no longer
5142 change config->supported -- adjust.
5143 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5144 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5145 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5146 (PACKET_QNonStop, PACKET_multiprocess_feature)
5147 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5148 (PACKET_DisconnectedTracing_feature)
5149 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5150 (set_remote_protocol_packet_cmd): Delete function.
5151 (packet_config_support, packet_support): New functions.
5152 (set_remote_protocol_Z_packet_cmd): Don't call
5153 update_packet_config.
5154 (remote_query_attached, remote_pass_signals)
5155 (remote_program_signals, remote_threads_info)
5156 (remote_threads_extra_info, remote_start_remote): Use
5157 packet_support.
5158 (remote_start_remote): Use packet_config_support and
5159 packet_support.
5160 (init_all_packet_configs): Set all packets to unknown support,
5161 instead of calling update_packet_config.
5162 (remote_check_symbols): Use packet_support.
5163 (remote_supported_packet): Unconditionally set the packet config's
5164 support status.
5165 (remote_multi_process_feature, remote_non_stop_feature)
5166 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5167 (remote_breakpoint_commands_feature)
5168 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5169 (remote_install_in_trace_feature)
5170 (remote_disconnected_tracing_feature)
5171 (remote_enable_disable_tracepoint_feature)
5172 (remote_string_tracing_feature)
5173 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5174 (remote_protocol_features): Adjust to use remote_supported_packet
5175 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5176 "ConditionalTracepoints", "ConditionalBreakpoints",
5177 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5178 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5179 "EnableDisableTracepoints", and "tracenz".
5180 (remote_query_supported): Use packet_support.
5181 (remote_open_1): Adjust.
5182 (extended_remote_attach_1): Use packet_support. Switch on the
5183 result of packet_ok instead of checking whether the packet ended
5184 up disabled.
5185 (remote_vcont_resume): Use packet_support.
5186 (remote_resume, remote_stop_ns, fetch_register_using_p)
5187 (remote_prepare_to_store, store_register_using_P)
5188 (check_binary_download, remote_write_bytes): Use packet_support.
5189 (remote_vkill): Use packet_support. Switch on the result of
5190 packet_ok instead of checking whether the packet ended up
5191 disabled.
5192 (extended_remote_supports_disable_randomization): Use
5193 packet_support.
5194 (extended_remote_run): Switch on the result of packet_ok instead
5195 of checking whether the packet ended up disabled.
5196 (remote_insert_breakpoint, remote_remove_breakpoint)
5197 (remote_insert_watchpoint, remote_remove_watchpoint)
5198 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5199 packet_support.
5200 (remote_search_memory): Use packet_config_support.
5201 (remote_get_thread_local_address, remote_get_tib_address)
5202 (remote_hostio_send_command, remote_can_execute_reverse): Use
5203 packet_support.
5204 (remote_supports_cond_tracepoints)
5205 (remote_supports_cond_breakpoints)
5206 (remote_supports_fast_tracepoints)
5207 (remote_supports_static_tracepoints)
5208 (remote_supports_install_in_trace)
5209 (remote_supports_enable_disable_tracepoint)
5210 (remote_supports_string_tracing)
5211 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5212 the packet config says the feature is enabled or disabled.
5213 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5214 (remote_get_trace_status): Use packet_support.
5215 (remote_set_disconnected_tracing): Adjust to check whether the
5216 feature is enabled with packet_support.
5217 (remote_set_trace_buffer_size, remote_use_agent)
5218 (remote_can_use_agent, remote_supports_btrace): Use
5219 packet_support.
5220 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5221 Use packet_config_support.
5222 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5223 the packet config says the feature is enabled or disabled.
5224 (set_range_stepping): Use packet_support.
5225
5226 2014-04-25 Tom Tromey <tromey@redhat.com>
5227
5228 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5229 argument.
5230
5231 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5232
5233 * NEWS: Mention support for C99 variable length arrays.
5234
5235 2014-04-24 Joel Brobecker <brobecker@adacore.com>
5236
5237 * ada-lang.c (standard_exc): Expand introductory comment.
5238
5239 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
5240 Walfred Tedeschi <walfred.tedeschi@intel.com>
5241
5242 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5243 AVX512 registers.
5244 (amd64_linux_read_description): Add code to handle AVX512 xstate
5245 mask and return respective tdesc.
5246 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5247 and features/i386/x32-avx512-linux.c.
5248 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5249 (amd64_linux_core_read_description): Add code to handle AVX512
5250 xstate mask and return respective tdesc.
5251 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5252 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5253 calculation.
5254 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5255 (tdesc_amd64_avx512_linux): New prototype.
5256 (tdesc_x32_avx512_linux): Likewise.
5257 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5258 features/i386/x32-avx512.c.
5259 (amd64_ymm_avx512_names): New register names for pseudo
5260 registers YMM16-31.
5261 (amd64_ymmh_avx512_names): New register names for raw registers
5262 YMMH16-31.
5263 (amd64_k_names): New register names for K registers.
5264 (amd64_zmmh_names): New register names for ZMM raw registers.
5265 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5266 (amd64_xmm_avx512_names): New register names for XMM16-31
5267 registers.
5268 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5269 registers.
5270 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5271 if feature is present.
5272 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5273 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5274 (AMD64_NUM_REGS): Adjust to new number of registers.
5275 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5276 registers supplied via XSTATE by AVX512 registers.
5277 (i386_linux_read_description): Add case for AVX512.
5278 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5279 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5280 (i386_linux_core_read_description): Add case for AVX512.
5281 (i386_linux_init_abi): Install supported register note section
5282 for AVX512.
5283 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5284 AVX512.
5285 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5286 registers to be number of zmm7h + 1.
5287 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5288 * i386-tdep.c: Include features/i386/i386-avx512.c.
5289 (i386_zmm_names): Add ZMM pseudo register names array.
5290 (i386_zmmh_names): Add ZMM raw register names array.
5291 (i386_k_names): Add K raw register names array.
5292 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5293 registers. AVX512 has 16 more ZMM registers than there are YMM
5294 registers.
5295 (i386_zmmh_regnum_p): Add function to look up register number of
5296 ZMM raw registers.
5297 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5298 (i386_k_regnum_p): Likewise for K raw registers.
5299 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5300 registers added by AVX512.
5301 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5302 registers added by AVX512.
5303 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5304 added by AVX512.
5305 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5306 (i386_pseudo_register_name): Add ZMM pseudo registers.
5307 (i386_zmm_type): Construct and return vector registers type for ZMM
5308 registers.
5309 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5310 ZMM0-31 pseudo registers and K registers.
5311 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5312 and YMM16-31 registers from register cache.
5313 (i386_pseudo_register_write): Add code to write K, ZMM and
5314 YMM16-31 registers.
5315 (i386_register_reggroup_p): Add code to include/exclude AVX512
5316 registers in/from respective register groups.
5317 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5318 registers if feature is present in xcr0.
5319 (i386_gdbarch_init): Add code to initialize AVX512 feature
5320 variables in tdep structure, wire in pseudo registers and call
5321 initialize_tdesc_i386_avx512.
5322 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5323 variables.
5324 (i386_regnum): Add AVX512 registers.
5325 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5326 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5327 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5328 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5329 512 bits wide.
5330 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5331 (i386_ymm_avx512_regnum_p): Likewise.
5332 (i386_k_regnum_p): Likewise.
5333 (i386_zmm_regnum_p): Likewise.
5334 (i386_zmmh_regnum_p): Likewise.
5335 * i387-tdep.c : Update year in copyright notice.
5336 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5337 XSAVE buffer.
5338 (XSAVE_YMM_AVX512_ADDR): New macro.
5339 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5340 XSAVE buffer.
5341 (XSAVE_XMM_AVX512_ADDR): New macro.
5342 (xsave_avx512_k_offset): New table for K register offsets in
5343 XSAVE buffer.
5344 (XSAVE_AVX512_K_ADDR): New macro.
5345 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5346 in XSAVE buffer.
5347 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5348 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5349 buffer.
5350 (i387_collect_xsave): Add code to collect AVX512 registers from
5351 XSAVE buffer.
5352 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5353 of XMM16-31 registers.
5354 (I387_NUM_K_REGS): New define for number of K registers.
5355 (I387_K0_REGNUM): New define for K0 register number.
5356 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5357 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5358 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5359 registers.
5360 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5361 (I387_XMM16_REGNUM): New define for XMM16 register number.
5362 (I387_YMM0_REGNUM): New define for YMM0 register number.
5363 (I387_KEND_REGNUM): New define for last K register number.
5364 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5365 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5366 number.
5367 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5368 number.
5369 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5370 size.
5371 * features/Makefile: Add AVX512 related files.
5372 * features/i386/32bit-avx512.xml: New file.
5373 * features/i386/64bit-avx512.xml: Likewise.
5374 * features/i386/amd64-avx512-linux.c: Likewise.
5375 * features/i386/amd64-avx512-linux.xml: Likewise.
5376 * features/i386/amd64-avx512.c: Likewise.
5377 * features/i386/amd64-avx512.xml: Likewise.
5378 * features/i386/i386-avx512-linux.c: Likewise.
5379 * features/i386/i386-avx512-linux.xml: Likewise.
5380 * features/i386/i386-avx512.c: Likewise.
5381 * features/i386/i386-avx512.xml: Likewise.
5382 * features/i386/x32-avx512-linux.c: Likewise.
5383 * features/i386/x32-avx512-linux.xml: Likewise.
5384 * features/i386/x32-avx512.c: Likewise.
5385 * features/i386/x32-avx512.xml: Likewise.
5386 * regformats/i386/amd64-avx512-linux.dat: New file.
5387 * regformats/i386/amd64-avx512.dat: Likewise.
5388 * regformats/i386/i386-avx512-linux.dat: Likewise.
5389 * regformats/i386/i386-avx512.dat: Likewise.
5390 * regformats/i386/x32-avx512-linux.dat: Likewise.
5391 * regformats/i386/x32-avx512.dat: Likewise.
5392 * NEWS: Add note about new support for AVX512.
5393
5394
5395 2014-04-23 Pedro Alves <palves@redhat.com>
5396
5397 * breakpoint.c (insert_bp_location): Tolerate errors if the
5398 breakpoint is set in a user-loaded objfile.
5399 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5400 location is marked shlib_disabled. If the breakpoint is set in a
5401 user-loaded objfile is a GDB-side memory breakpoint, validate it
5402 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5403 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5404 flag.
5405 * mem-break.c (memory_validate_breakpoint): New function.
5406 * objfiles.c (userloaded_objfile_contains_address_p): New
5407 function.
5408 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5409 * target.h (memory_validate_breakpoint): New declaration.
5410
5411 2014-04-23 Pedro Alves <palves@redhat.com>
5412
5413 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5414 the breakpoint is set in a shared library, only suppress
5415 errors for software breakpoints, not hardware breakpoints.
5416
5417 2014-04-22 Pedro Alves <palves@redhat.com>
5418
5419 * infrun.c (schedlock_applies): New function, factored out from
5420 find_thread_needs_step_over.
5421 (find_thread_needs_step_over): Use it.
5422 (switch_back_to_stepped_thread): Always clear trap_expected if the
5423 step over is finished. Return early if scheduler locking applies.
5424 Look for the stepping thread and a potential step-over thread with
5425 a single loop.
5426 (currently_stepping_or_nexting_callback): Delete.
5427
5428 2014-04-22 Nick Clifton <nickc@redhat.com>
5429
5430 * NEWS: Mention that ARM sim now supports tracing.
5431
5432 2014-04-22 Yao Qi <yao@codesourcery.com>
5433
5434 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5435 to ...
5436 * tracefile.c (tracefile_fetch_registers): ... it. New
5437 function.
5438 * tracefile.h (tracefile_fetch_registers): Declare.
5439 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5440 tracefile_fetch_registers.
5441
5442 2014-04-19 Eli Zaretskii <eliz@gnu.org>
5443
5444 PR gdb/14018
5445 * windows-nat.c (thread_rec): Don't display a warning when
5446 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5447 fails for any reason, set th->suspended to -1, so that we don't
5448 try to resume such a thread. Also, don't return NULL in these
5449 cases, to avoid completely ruin the session due to "PC register is
5450 not available" error.
5451 (do_windows_fetch_inferior_registers): Check errors in
5452 GetThreadContext call.
5453 (windows_continue): Accept an additional argument KILLED; if not
5454 zero, ignore errors in the SetThreadContext call, since the
5455 inferior was killed and is shutting down.
5456 (windows_resume, get_windows_debug_event)
5457 (windows_create_inferior, windows_mourn_inferior)
5458 (windows_kill_inferior): All callers of windows_continue changed
5459 to adjust to its new calling sequence.
5460
5461 2014-04-19 Yao Qi <yao@codesourcery.com>
5462
5463 * ctf.c (ctf_open): Call post_create_inferior.
5464
5465 2014-04-19 Yao Qi <yao@codesourcery.com>
5466
5467 * ctf.c (handle_id): New static variable.
5468 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5469 value. Get the declaration of event "register" and get length
5470 of field "contents".
5471
5472 2014-04-19 Yao Qi <yao@codesourcery.com>
5473
5474 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5475
5476 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5477
5478 * valops.c (oload_method_static): Remove unnecessary argument
5479 METHOD. Update all callers.
5480
5481 2014-04-18 Pedro alves <palves@redhat.com>
5482 Tom Tromey <tromey@redhat.com>
5483
5484 PR backtrace/15558
5485 * frame.c (get_prev_frame_1): Rename to ...
5486 (get_prev_frame_always): ... this, and make extern. Adjust.
5487 (skip_artificial_frames): Use get_prev_frame_always.
5488 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5489 (get_frame_unwind_stop_reason): Adjust to rename.
5490 * frame.h (get_prev_frame_always): Declare.
5491 * inline-frame.c: Include frame.h.
5492 (inline_frame_this_id): Use get_prev_frame_always.
5493
5494 2014-04-18 Tristan Gingold <gingold@adacore.com>
5495
5496 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5497 code by using bfd_mach_o_get_base_address.
5498
5499 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5500
5501 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5502 (spu_ax_pseudo_register_collect): New function.
5503 (spu_ax_pseudo_register_push_stack): Likewise.
5504 (spu_dwarf_reg_to_regnum): Likewise.
5505 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5506
5507 2014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5508
5509 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5510 Replace FRAME argument with FRAME_ID.
5511 * gdbarch.c, gdbarch.h: Regenerate.
5512 * findvar.c (default_value_from_register): Add GDBARCH argument;
5513 replace FRAME by FRAME_ID. No longer call get_frame_id.
5514 (value_from_register): Update call to gdbarch_value_from_register.
5515 * value.h (default_value_from_register): Update prototype.
5516 * s390-linux-tdep.c (s390_value_from_register): Update interface
5517 and call to default_value_from_register.
5518 * spu-tdep.c (spu_value_from_register): Likewise.
5519
5520 * findvar.c (address_from_register): Remove TYPE argument.
5521 Do not call value_from_register; use gdbarch_value_from_register
5522 with null_frame_id instead.
5523 * value.h (address_from_register): Update prototype.
5524 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5525 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5526 address_from_register interface change.
5527
5528 2014-04-17 Yao Qi <yao@codesourcery.com>
5529
5530 * gdbtypes.h: Update comments to link to types and macros'
5531 definitions.
5532
5533 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5534
5535 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5536
5537 2014-04-16 Keith Seitz <keiths@redhat.com>
5538
5539 PR gdb/15827
5540 * dwarf2read.c (skip_one_die): Check that all relative-offset
5541 sibling DIEs fall within range of the current reader's buffer.
5542 (read_partial_die): Likewise.
5543
5544 2014-04-16 Keith Seitz <keiths@redhat.com>
5545
5546 PR c++/16597
5547 * cp-namespace.c (lookup_symbol_file): If the type name of
5548 `this' is NULL, return immediately.
5549
5550 2014-04-14 Keith Seitz <keiths@redhat.com>
5551
5552 PR c++/16253
5553 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5554 from symbol_matches_domain in symtab.c. All local callers
5555 of symbol_matches_domain updated.
5556 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5557 search STRUCT_DOMAIN.
5558 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5559 independently. standard_lookup will do that automatically.
5560 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5561 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5562 (cp_lookup_symbol_in_namespace): Likewise.
5563 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5564 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5565 may return a STRUCT_DOMAIN match.
5566 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5567 * cp-support.c: Include language.h.
5568 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5569 VAR_DOMAIN.
5570 * psymtab.c (match_partial_symbol): Compare the requested
5571 domain with the symbol's domain directly.
5572 (lookup_partial_symbol): Likewise.
5573 * symtab.c (lookup_symbol_in_language): Explain when/why
5574 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5575 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5576 appropriate languages.
5577 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5578 and moved to ada-lang.c
5579 (lookup_block_symbol): Explain that this function only returns
5580 symbol matching the requested DOMAIN.
5581 Compare the requested domain with the symbol's domain directly.
5582 (iterate_over_symbols): Compare the requested domain with the
5583 symbol's domain directly.
5584 * symtab.h (symbol_matches_domain): Remove.
5585
5586 2014-04-14 Tom Tromey <tromey@redhat.com>
5587
5588 PR c++/15246:
5589 * c-exp.y (type_aggregate_p): New function.
5590 (qualified_name, classify_inner_name): Use it.
5591 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5592 and TYPE_TARGET_TYPE of an enum type.
5593 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5594 an enum type.
5595 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5596 handle TYPE_DECLARED_CLASS.
5597 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5598 types.
5599 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5600 * valops.c (enum_constant_from_type): New function.
5601 (value_aggregate_elt): Use it.
5602 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5603 TYPE_CODE_ENUM.
5604
5605 2014-04-14 Tom Tromey <tromey@redhat.com>
5606
5607 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5608 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5609 const.
5610 * value.h (value_aggregate_elt): Update.
5611
5612 2014-04-14 Tom Tromey <tromey@redhat.com>
5613
5614 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5615
5616 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5617
5618 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5619 (evaluate_subexp_standard): Pass noside argument.
5620 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5621 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5622 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5623 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5624 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5625
5626 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5627
5628 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5629 points to a constant blob.
5630
5631 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5632
5633 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5634 property and store it as the high bound and flag the range accordingly.
5635 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5636 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5637 * gdbtypes.h (enum range_flags): New enum.
5638 (struct range_bounds): Add flags member.
5639
5640 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5641
5642 * c-typeprint.c (c_type_print_varspec_suffix): Added
5643 check for not yet resolved high bound. If unresolved, print
5644 "variable length" string to the console instead of random
5645 length.
5646
5647 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5648
5649 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5650 value.
5651 (ada_template_to_fixed_record_type_1): Likewise.
5652 (ada_to_fixed_type_1): Likewise.
5653 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5654 (cp_print_value): Likewise.
5655 * d-valprint.c (dynamic_array_type): Likewise.
5656 * findvar.c (address_of_variable): Likewise.
5657 * jv-valprint.c (java_value_print): Likewise.
5658 * valops.c (value_ind): Likewise.
5659 * value.c (coerce_ref): Likewise.
5660
5661 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5662
5663 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5664 value and retrieve the dynamic type size.
5665
5666 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5667
5668 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5669 passed to sizeof is dynamic evaluate the argument to compute the length.
5670
5671 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5672 Joel Brobecker <brobecker@adacore.com>
5673
5674 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5675 (dwarf2_evaluate_property): New function.
5676 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5677 * dwarf2read.c (attr_to_dynamic_prop): New function.
5678 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5679 attribute.
5680 * gdbtypes.c: Include dwarf2loc.h.
5681 (is_dynamic_type): New function.
5682 (resolve_dynamic_type): New function.
5683 (resolve_dynamic_bounds): New function.
5684 (get_type_length): New function.
5685 (check_typedef): Use get_type_length to compute type length.
5686 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5687 (TYPE_LOW_BOUND_KIND): New macro.
5688 (is_dynamic_type): New function prototype.
5689 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5690 to resolve dynamic properties of the type. Update comment.
5691 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5692
5693 2014-04-14 Richard Henderson <rth@redhat.com>
5694
5695 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5696
5697 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5698 Doug Evans <xdje42@gmail.com>
5699
5700 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5701 dereference TYPE_CODE_REF values.
5702
5703 2014-04-11 Joel Brobecker <brobecker@adacore.com>
5704
5705 Revert the following changes due to regressions:
5706
5707 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5708 (dwarf2_evaluate_property): New function.
5709 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5710 * dwarf2read.c (attr_to_dynamic_prop): New function.
5711 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5712 attribute.
5713 * gdbtypes.c: Include dwarf2loc.h.
5714 (is_dynamic_type): New function.
5715 (resolve_dynamic_type): New function.
5716 (resolve_dynamic_bounds): New function.
5717 (get_type_length): New function.
5718 (check_typedef): Use get_type_length to compute type length.
5719 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5720 (TYPE_LOW_BOUND_KIND): New macro.
5721 (is_dynamic_type): New function prototype.
5722 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5723 to resolve dynamic properties of the type. Update comment.
5724 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5725
5726 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5727 passed to sizeof is dynamic evaluate the argument to compute the length.
5728
5729 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5730 value and retrieve the dynamic type size.
5731
5732 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5733 (ada_template_to_fixed_record_type_1): Likewise.
5734 (ada_to_fixed_type_1): Likewise.
5735 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5736 (cp_print_value): Likewise.
5737 * d-valprint.c (dynamic_array_type): Likewise.
5738 * eval.c (evaluate_subexp_with_coercion): Likewise.
5739 * findvar.c (address_of_variable): Likewise.
5740 * jv-valprint.c (java_value_print): Likewise.
5741 * valops.c (value_ind): Likewise.
5742 * value.c (coerce_ref): Likewise.
5743
5744 * c-typeprint.c (c_type_print_varspec_suffix): Added
5745 check for not yet resolved high bound. If unresolved, print
5746 "variable length" string to the console instead of random
5747 length.
5748
5749 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5750 property and store it as the high bound and flag the range accordingly.
5751 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5752 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5753 * gdbtypes.h (enum range_flags): New enum.
5754 (struct range_bounds): Add flags member.
5755
5756 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5757 points to a constant blob.
5758
5759 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5760 (evaluate_subexp_standard): Pass noside argument.
5761 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5762 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5763 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5764 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5765 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5766
5767 2014-04-11 Keith Seitz <keiths@redhat.com>
5768
5769 PR c++/16675
5770 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5771 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5772 reference types.
5773
5774 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5775
5776 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5777 (evaluate_subexp_standard): Pass noside argument.
5778 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5779 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5780 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5781 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5782 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5783
5784 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5785
5786 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5787 points to a constant blob.
5788
5789 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5790
5791 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5792 property and store it as the high bound and flag the range accordingly.
5793 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5794 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5795 * gdbtypes.h (enum range_flags): New enum.
5796 (struct range_bounds): Add flags member.
5797
5798 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5799
5800 * c-typeprint.c (c_type_print_varspec_suffix): Added
5801 check for not yet resolved high bound. If unresolved, print
5802 "variable length" string to the console instead of random
5803 length.
5804
5805 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5806
5807 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5808 (ada_template_to_fixed_record_type_1): Likewise.
5809 (ada_to_fixed_type_1): Likewise.
5810 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5811 (cp_print_value): Likewise.
5812 * d-valprint.c (dynamic_array_type): Likewise.
5813 * eval.c (evaluate_subexp_with_coercion): Likewise.
5814 * findvar.c (address_of_variable): Likewise.
5815 * jv-valprint.c (java_value_print): Likewise.
5816 * valops.c (value_ind): Likewise.
5817 * value.c (coerce_ref): Likewise.
5818
5819 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5820
5821 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5822 value and retrieve the dynamic type size.
5823
5824 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5825
5826 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5827 passed to sizeof is dynamic evaluate the argument to compute the length.
5828
5829 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5830
5831 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5832 (dwarf2_evaluate_property): New function.
5833 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5834 * dwarf2read.c (attr_to_dynamic_prop): New function.
5835 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5836 attribute.
5837 * gdbtypes.c: Include dwarf2loc.h.
5838 (is_dynamic_type): New function.
5839 (resolve_dynamic_type): New function.
5840 (resolve_dynamic_bounds): New function.
5841 (get_type_length): New function.
5842 (check_typedef): Use get_type_length to compute type length.
5843 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5844 (TYPE_LOW_BOUND_KIND): New macro.
5845 (is_dynamic_type): New function prototype.
5846 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5847 to resolve dynamic properties of the type. Update comment.
5848 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5849
5850 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5851
5852 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5853 declaring high/low bounds and change uses accordingly. Call
5854 create_range_type instead of create_static_range_type.
5855 * gdbtypes.c (create_range_type): New function.
5856 (create_range_type): Convert bounds into struct bound_prop and pass
5857 them to create_range_type.
5858 * gdbtypes.h (struct bound_prop): New struct.
5859 (create_range_type): New function prototype.
5860 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5861 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5862 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5863 part of the bound.
5864 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5865
5866 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5867
5868 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5869 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5870 * ada-lang.c: All uses of create_range_type updated.
5871 * coffread.c: All uses of create_range_type updated.
5872 * dwarf2read.c: All uses of create_range_type updated.
5873 * f-exp.y: All uses of create_range_type updated.
5874 * m2-valprint.c: All uses of create_range_type updated.
5875 * mdebugread.c: All uses of create_range_type updated.
5876 * stabsread.c: All uses of create_range_type updated.
5877 * valops.c: All uses of create_range_type updated.
5878 * valprint.c: All uses of create_range_type updated.
5879
5880 2014-04-10 Pedro Alves <palves@redhat.com>
5881
5882 * breakpoint.c (single_step_breakpoints)
5883 (single_step_gdbarch): Move up in the file.
5884 (one_breakpoint_xfer_memory): New function, factored out from ...
5885 (breakpoint_xfer_memory): ... here. Also process single-step
5886 breakpoints.
5887
5888 2014-04-09 Tristan Gingold <gingold@adacore.com>
5889
5890 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5891 comments.
5892 (darwin_decode_exception_message): Free port only after use.
5893
5894 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5895
5896 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5897 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5898 when setting the size of call_length.
5899
5900 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5901
5902 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5903 dereference TYPE_CODE_REF values.
5904
5905 2014-04-07 Joel Brobecker <brobecker@adacore.com>
5906
5907 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5908 end of warning message.
5909
5910 2014-04-03 Doug Evans <dje@google.com>
5911
5912 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5913 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5914
5915 2014-04-02 Alan Modra <amodra@gmail.com>
5916
5917 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5918 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5919 (struct symbol_file_add_from_memory_args): Add size field.
5920 (find_vdso_size): New function.
5921 (add_vsyscall_page): Attempt to find vdso size.
5922
5923 2014-04-01 Doug Evans <dje@google.com>
5924
5925 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5926
5927 2014-04-01 Tristan Gingold <gingold@adacore.com>
5928
5929 * darwin-nat.c (darwin_encode_reply): Add prototype.
5930 (darwin_decode_exception_message): Reply to unknown inferiors.
5931 (darwin_decode_message): Handle message by id. Ignore message
5932 to unknown inferior.
5933 (darwin_wait): Discard unknown messages, add debug trace.
5934
5935 2014-03-31 Doug Evans <dje@google.com>
5936
5937 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5938 comp_dir_string.
5939
5940 2014-03-31 Doug Evans <dje@google.com>
5941
5942 New option "set print symbol-loading".
5943 * NEWS: Mention it.
5944 * solib.c (solib_read_symbols): Only print symbol loading messages
5945 if requested.
5946 (solib_add): If symbol loading is in "brief" mode, notify user
5947 symbols are being loaded.
5948 (reload_shared_libraries_1): Ditto.
5949 * symfile.c (print_symbol_loading_off): New static global.
5950 (print_symbol_loading_brief): New static global.
5951 (print_symbol_loading_full): New static global.
5952 (print_symbol_loading_enums): New static global.
5953 (print_symbol_loading): New static global.
5954 (print_symbol_loading_p): New function.
5955 (symbol_file_add_with_addrs): Only print symbol loading messages
5956 if requested.
5957 (_initialize_symfile): Register "print symbol-loading" set/show
5958 command.
5959 * symfile.h (print_symbol_loading_p): Declare.
5960
5961 2014-03-30 Doug Evans <xdje42@gmail.com>
5962
5963 * infrun.c (set_last_target_status): New function.
5964 (handle_inferior_event): Call it.
5965
5966 2014-03-30 Doug Evans <xdje42@gmail.com>
5967
5968 * inferior.h (enum stop_kind): Improve comment.
5969
5970 2014-03-28 Joel Brobecker <brobecker@adacore.com>
5971
5972 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5973 a reference, strip the reference layer before calling
5974 the lang_ops value_has_mutated callback.
5975
5976 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5977
5978 Remove some globals from our parser.
5979 * language.c (unk_lang_parser): Add "struct parser_state"
5980 argument.
5981 * language.h (struct language_defn) <la_parser>: Likewise.
5982 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5983 (initialize_expout): Add "struct parser_state" argument.
5984 Rewrite function to use the parser state.
5985 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5986 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5987 write_exp_elt_longcst, write_exp_elt_dblcst,
5988 write_exp_elt_decfloatcst, write_exp_elt_type,
5989 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5990 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5991 write_dollar_variable): Likewise.
5992 (parse_exp_in_context_1): Use parser state.
5993 (insert_type_address_space): Add "struct parser_state" argument.
5994 Use parser state.
5995 (increase_expout_size): New function.
5996 * parser-defs.h: Forward declare "struct language_defn" and
5997 "struct parser_state".
5998 (expout, expout_size, expout_ptr): Remove extern declarations.
5999 (parse_gdbarch, parse_language): Rewrite macro declarations to
6000 accept the parser state.
6001 (struct parser_state): New struct.
6002 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6003 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6004 write_exp_elt_decfloatcst, write_exp_elt_type,
6005 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6006 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6007 write_exp_msymbol, write_dollar_variable,
6008 mark_struct_expression, insert_type_address_space): Add "struct
6009 parser_state" argument.
6010 (increase_expout_size): New function.
6011 * utils.c (do_clear_parser_state): New function.
6012 (make_cleanup_clear_parser_state): Likewise.
6013 * utils.h (make_cleanup_clear_parser_state): New function
6014 prototype.
6015 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6016 Update calls to write_exp* in order to pass the parser state.
6017 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6018 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6019 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6020 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6021 * stap-probe.c (stap_parse_register_operand): Likewise.
6022 (stap_parse_single_operand): Likewise.
6023 (stap_parse_argument_1): Likewise.
6024 (stap_parse_argument): Use parser state.
6025 * stap-probe.h: Include "parser-defs.h".
6026 (struct stap_parse_info) <pstate>: New field.
6027 * c-exp.y (parse_type): Rewrite to use parser state.
6028 (yyparse): Redefine to c_parse_internal.
6029 (pstate): New global variable.
6030 (parse_number): Add "struct parser_state" argument.
6031 (write_destructor_name): Likewise.
6032 (type_exp): Update calls to write_exp* and similars in order to
6033 use parser state.
6034 (exp1, exp, variable, qualified_name, space_identifier,
6035 typename, typebase): Likewise.
6036 (write_destructor_name, parse_number, lex_one_token,
6037 classify_name, classify_inner_name, c_parse): Add "struct
6038 parser_state" argument. Update function to use parser state.
6039 * c-lang.h: Forward declare "struct parser_state".
6040 (c_parse): Add "struct parser_state" argument.
6041 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6042 (yyparse): Redefine macro to ada_parse_internal.
6043 (pstate): New variable.
6044 (write_int, write_object_renaming, write_var_or_type,
6045 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6046 type_int, type_long, type_long_long, type_float, type_double,
6047 type_long_double, type_char, type_boolean, type_system_address):
6048 Add "struct parser_state" argument.
6049 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6050 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6051 var_or_type, aggregate, aggregate_component_list,
6052 positional_list, others, component_group,
6053 component_associations): Update calls to write_exp* and similar
6054 functions in order to use parser state.
6055 (ada_parse, write_var_from_sym, write_int,
6056 write_exp_op_with_string, write_object_renaming,
6057 find_primitive_type, write_selectors, write_ambiguous_var,
6058 write_var_or_type, write_name_assoc, type_int, type_long,
6059 type_long_long, type_float, type_double, type_long_double,
6060 type_char, type_boolean, type_system_address): Add "struct
6061 parser_state" argument. Adjust function to use parser state.
6062 * ada-lang.c (parse): Likewise.
6063 * ada-lang.h: Forward declare "struct parser_state".
6064 (ada_parse): Add "struct parser_state" argument.
6065 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6066 calls to both functions.
6067 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6068 parser state.
6069 (yyparse): Redefine macro to f_parse_internal.
6070 (pstate): New variable.
6071 (parse_number): Add "struct parser_state" argument.
6072 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6073 and similars in order to use parser state.
6074 (parse_number): Adjust code to use parser state.
6075 (yylex): Likewise.
6076 (f_parse): New function.
6077 * f-lang.h: Forward declare "struct parser_state".
6078 (f_parse): Add "struct parser_state" argument.
6079 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6080 parser state.
6081 (yyparse): Redefine macro for java_parse_internal.
6082 (pstate): New variable.
6083 (push_expression_name, push_expression_name, insert_exp): Add
6084 "struct parser_state" argument.
6085 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6086 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6087 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6088 PostIncrementExpression, PostDecrementExpression,
6089 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6090 UnaryExpressionNotPlusMinus, CastExpression,
6091 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6092 RelationalExpression, EqualityExpression, AndExpression,
6093 ExclusiveOrExpression, InclusiveOrExpression,
6094 ConditionalAndExpression, ConditionalOrExpression,
6095 ConditionalExpression, Assignment, LeftHandSide): Update
6096 calls to write_exp* and similars in order to use parser state.
6097 (parse_number): Ajust code to use parser state.
6098 (yylex): Likewise.
6099 (java_parse): New function.
6100 (push_variable): Add "struct parser_state" argument. Adjust
6101 code to user parser state.
6102 (push_fieldnames, push_qualified_expression_name,
6103 push_expression_name, insert_exp): Likewise.
6104 * jv-lang.h: Forward declare "struct parser_state".
6105 (java_parse): Add "struct parser_state" argument.
6106 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6107 parser state.
6108 (yyparse): Redefine macro to m2_parse_internal.
6109 (pstate): New variable.
6110 (type_exp, exp, fblock, variable, type): Update calls to
6111 write_exp* and similars to use parser state.
6112 (yylex): Likewise.
6113 (m2_parse): New function.
6114 * m2-lang.h: Forward declare "struct parser_state".
6115 (m2_parse): Add "struct parser_state" argument.
6116 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6117 * objc-lang.h: Forward declare "struct parser_state".
6118 (end_msglist): Add "struct parser_state" argument.
6119 * p-exp.y (parse_type): Rewrite macro to use parser state.
6120 (yyparse): Redefine macro to pascal_parse_internal.
6121 (pstate): New variable.
6122 (parse_number): Add "struct parser_state" argument.
6123 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6124 write_exp* and similars in order to use parser state.
6125 (parse_number, yylex): Adjust code to use parser state.
6126 (pascal_parse): New function.
6127 * p-lang.h: Forward declare "struct parser_state".
6128 (pascal_parse): Add "struct parser_state" argument.
6129 * go-exp.y (parse_type): Rewrite macro to use parser state.
6130 (yyparse): Redefine macro to go_parse_internal.
6131 (pstate): New variable.
6132 (parse_number): Add "struct parser_state" argument.
6133 (type_exp, exp1, exp, variable, type): Update calls to
6134 write_exp* and similars in order to use parser state.
6135 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6136 to use parser state.
6137 (go_parse): Likewise.
6138 * go-lang.h: Forward declare "struct parser_state".
6139 (go_parse): Add "struct parser_state" argument.
6140
6141 2014-03-27 Doug Evans <dje@google.com>
6142
6143 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6144
6145 2014-03-27 Doug Evans <dje@google.com>
6146
6147 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6148 Remove argument abbrev_section. All callers updated.
6149
6150 2014-03-27 Doug Evans <dje@google.com>
6151
6152 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6153 addr_base, ranges_base.
6154
6155 2014-03-26 Keith Seitz <keiths@redhat.com>
6156
6157 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6158 types, not VAR_DOMAIN.
6159
6160 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6161
6162 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6163 "ra" registers.
6164 * features/nios2-linux.c: Regenerated.
6165 * features/nios2.c: Regenerated.
6166
6167 2014-03-25 Pedro Alves <palves@redhat.com>
6168
6169 * cli/cli-script.c (script_from_file): Force the interpreter to
6170 sync mode.
6171
6172 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6173
6174 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6175 small stack allocation.
6176
6177 2014-03-24 Tristan Gingold <gingold@adacore.com>
6178
6179 * darwin-nat.c (exc_server): Remove unused prototype.
6180 (darwin_dump_message): Correctly display data on x86_64.
6181 (darwin_encode_reply): Fix style.
6182 Add comments and fix indentation.
6183
6184 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6185
6186 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6187
6188 2014-03-22 Doug Evans <xdje42@gmail.com>
6189
6190 * infcmd.c: Whitespace fixes.
6191 (interrupt_command): Merge two function comments into one.
6192
6193 2014-03-22 Doug Evans <xdje42@gmail.com>
6194
6195 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6196 All uses updated.
6197
6198 2014-03-22 Yao Qi <yao@codesourcery.com>
6199
6200 * remote.c (target_read_live_memory): Remove.
6201 (memory_xfer_live_readonly_partial): Rename it to
6202 remote_xfer_live_readonly_partial. Remove argument 'object'.
6203 All callers updated. Call remote_read_bytes_1
6204 instead of target_read_live_memory.
6205 * tracepoint.c (set_traceframe_number): Remove.
6206 (make_cleanup_restore_traceframe_number): Likewise .
6207 * tracepoint.h (set_traceframe_number): Remove declaration.
6208 (make_cleanup_restore_traceframe_number): Likewise.
6209
6210 2014-03-22 Yao Qi <yao@codesourcery.com>
6211
6212 * remote.c (remote_read_bytes): Move code on reading from the
6213 remote stub to ...
6214 (remote_read_bytes_1): ... here. New function.
6215
6216 2014-03-22 Yao Qi <yao@codesourcery.com>
6217
6218 * ctf.c (ctf_xfer_partial): Check the return value of
6219 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6220 return TARGET_XFER_UNAVAILABLE.
6221 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6222 * target.c (target_read_live_memory): Move it to remote.c.
6223 (memory_xfer_live_readonly_partial): Likewise.
6224 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6225 * remote.c (target_read_live_memory): Moved from target.c.
6226 (memory_xfer_live_readonly_partial): Likewise.
6227 (remote_read_bytes): Factored out from
6228 memory_xfer_partial_1.
6229
6230 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6231
6232 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6233 NULL pointer.
6234
6235 2014-03-21 Pedro Alves <palves@redhat.com>
6236
6237 * infrun.c (normal_stop): Extend comment.
6238
6239 2014-03-21 Hui Zhu <hui@codesourcery.com>
6240 Pedro Alves <palves@redhat.com>
6241
6242 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6243 static buffer.
6244 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6245 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6246 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6247
6248 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6249
6250 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6251 `z' formatted output modifier.
6252
6253 2014-03-20 Tom Tromey <tromey@redhat.com>
6254 Sergio Durigan Junior <sergiodj@redhat.com>
6255
6256 * probe.c (parse_probes): Turn assert into an ordinary error.
6257 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6258 exceptions when parsing probes. Rearrange the code for clarity.
6259
6260 2014-03-20 Tom Tromey <tromey@redhat.com>
6261
6262 PR gdb/14135
6263 * top.c (execute_command): Only dispatch events if the command
6264 started the target.
6265
6266 2014-03-20 Tom Tromey <tromey@redhat.com>
6267
6268 PR cli/15718
6269 * infcall.c: Include event-top.h.
6270 (run_inferior_call): Call async_disable_stdin if needed.
6271
6272 2014-03-20 Pedro Alves <palves@redhat.com>
6273
6274 * infrun.c (prepare_to_proceed): Delete.
6275 (thread_still_needs_step_over): New function.
6276 (find_thread_needs_step_over): New function.
6277 (proceed): If the current thread needs a step-over, set its
6278 steping_over_breakpoint flag. Adjust to use
6279 find_thread_needs_step_over instead of prepare_to_proceed.
6280 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6281 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6282 breakpoint.
6283 (switch_back_to_stepped_thread): Step over breakpoints of all
6284 threads not the stepping thread, before switching back to the
6285 stepping thread.
6286
6287 2014-03-20 Pedro Alves <palves@redhat.com>
6288
6289 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6290 extern.
6291 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6292 * infrun.c (saved_singlestep_ptid)
6293 (stepping_past_singlestep_breakpoint): Delete.
6294 (resume): Remove stepping_past_singlestep_breakpoint handling.
6295 (proceed): Store the prev_pc of the stepping thread too.
6296 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6297 singlestep_pc.
6298 (enum infwait_states): Delete infwait_thread_hop_state.
6299 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6300 field.
6301 (handle_inferior_event): Adjust.
6302 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6303 handling and the thread-hop code. Before removing single-step
6304 breakpoints, check whether the thread hit a single-step breakpoint
6305 of another thread. If it did, the trap is not a random signal.
6306 (switch_back_to_stepped_thread): If the event thread hit a
6307 single-step breakpoint, unblock it before switching to the
6308 stepping thread. Handle the case of the stepped thread having
6309 advanced already.
6310 (keep_going): Handle the case of the current thread moving past a
6311 single-step breakpoint.
6312
6313 2014-03-20 Pedro Alves <palves@redhat.com>
6314
6315 PR breakpoints/7143
6316 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6317 are being stepped over.
6318 (breakpoint_address_match): Make extern.
6319 * breakpoint.h (breakpoint_address_match): New declaration.
6320 * inferior.h (stepping_past_instruction_at): New declaration.
6321 * infrun.c (struct step_over_info): New type.
6322 (step_over_info): New global.
6323 (set_step_over_info, clear_step_over_info)
6324 (stepping_past_instruction_at): New functions.
6325 (handle_inferior_event): Clear the step-over info when
6326 trap_expected is cleared.
6327 (resume): Remove now stale comment.
6328 (clear_proceed_status): Clear step-over info.
6329 (proceed): Adjust step-over handling to set or clear the step-over
6330 info instead of removing all breakpoints.
6331 (handle_signal_stop): When setting up a thread-hop, don't remove
6332 breakpoints here.
6333 (stop_stepping): Clear step-over info.
6334 (keep_going): Adjust step-over handling to set or clear step-over
6335 info and then always inserting breakpoints, instead of removing
6336 all breakpoints when stepping over one.
6337
6338 2014-03-20 Pedro Alves <palves@redhat.com>
6339
6340 * infrun.c (previous_inferior_ptid): Adjust comment.
6341 (deferred_step_ptid): Delete.
6342 (infrun_thread_ptid_changed, prepare_to_proceed)
6343 (init_wait_for_inferior): Adjust.
6344 (handle_signal_stop): Delete deferred_step_ptid handling.
6345
6346 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6347
6348 PR gdb/15358
6349 * defs.h (sync_quit_force_run): New declaration.
6350 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6351 * event-top.c (async_sigterm_handler): New declaration.
6352 (async_sigterm_token): New variable.
6353 (async_init_signals): Create also async_sigterm_token.
6354 (async_sigterm_handler): New function.
6355 (sync_quit_force_run): New variable.
6356 (handle_sigterm): Replace quit_force call by other calls.
6357 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6358
6359 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6360
6361 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6362 offset into SPE pseudo registers.
6363
6364 2014-03-18 Pedro Alves <palves@redhat.com>
6365
6366 PR gdb/13860
6367 * inferior.h (print_stop_event): Declare.
6368 * infrun.c (print_stop_event): New, factored out from ...
6369 (normal_stop): ... this.
6370 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6371 of bpstat_print/print_stack_frame.
6372
6373 2014-03-17 Tom Tromey <tromey@redhat.com>
6374
6375 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6376
6377 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6378
6379 * ada-lang.c (decode_constrained_packed_array): Perform a
6380 minimal coercion for reference with coerce_ref instead of
6381 ada_coerce_ref.
6382
6383 2014-03-17 Tristan Gingold <gingold@adacore.com>
6384
6385 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6386 (darwin_solib_create_inferior_hook): Emit a warning if version
6387 is unhandled.
6388
6389 2014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6390
6391 * python/py-value.c (get_field_flag): Cast flag_name argument to
6392 PyObject_GetAttrString to support Python 2.4.
6393
6394 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6395
6396 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6397 (Global Maintainers): Remove Jan Kratochvil.
6398
6399 2014-03-14 Pedro Alves <palves@redhat.com>
6400
6401 * inferior.h (terminal_ours_for_output): Rename to ...
6402 (child_terminal_ours_for_output): ... this.
6403 (terminal_save_ours): Rename to ...
6404 (child_terminal_save_ours): ... this.
6405 (terminal_ours): Rename to ...
6406 (child_terminal_ours): ... this.
6407 (terminal_inferior): Rename to ...
6408 (child_terminal_inferior): ... this.
6409 (terminal_init_inferior): Rename to ...
6410 (child_terminal_init_inferior): ... this.
6411 (terminal_init_inferior_with_pgrp): Rename to ...
6412 (child_terminal_init_inferior_with_pgrp): ... this.
6413 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6414 (child_terminal_init_with_pgrp): ... this.
6415 (terminal_save_ours): Rename to ...
6416 (child_terminal_save_ours): ... this.
6417 (terminal_init_inferior): Rename to ...
6418 (child_terminal_init): ... this. Adjust.
6419 (terminal_inferior): Rename to ...
6420 (child_terminal_inferior): ... this.
6421 (terminal_ours_for_output): Rename to ...
6422 (child_terminal_ours_for_output): ... this. Adjust.
6423 (terminal_ours): Rename to ...
6424 (child_terminal_ours): ... this.
6425 (terminal_ours_1): Rename to ...
6426 (child_terminal_ours_1): ... this. Adjust.
6427 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6428 * windows-nat.c (do_initial_windows_stuff): Adjust.
6429 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6430 (gnu_terminal_init): ... this. Adjust.
6431 (gnu_target): Adjust.
6432 * inf-child.c (inf_child_target): Adjust.
6433
6434 2014-03-13 Doug Evans <xdje42@gmail.com>
6435
6436 PR guile/16612
6437 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6438 new eq?-hashtab.
6439
6440 2014-03-13 Doug Evans <xdje42@gmail.com>
6441
6442 * value.c (record_latest_value): Call release_value_or_incref
6443 instead of release_value.
6444
6445 2014-03-13 Pedro Alves <palves@redhat.com>
6446
6447 * procfs.c (procfs_target): Don't override to_shortname,
6448 to_longname or to_doc.
6449
6450 2014-03-13 Pedro Alves <palves@redhat.com>
6451
6452 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6453 Unix in user visible strings.
6454
6455 2014-03-12 Stan Shebs <stan@codesourcery.com>
6456
6457 * gdbtypes.h: Annotate comments for Doxygen, add a page
6458 block comment with some general info.
6459
6460 2014-03-12 Pedro Alves <palves@redhat.com>
6461
6462 * infcmd.c (prepare_execution_command): New function, factored out
6463 from several execution commands.
6464 (run_command_1, continue_command, step_1, jump_command)
6465 (signal_command, until_command, advance_command, finish_command)
6466 (attach_command): Use prepare_execution_command.
6467
6468 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
6469
6470 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6471 (MAX_BPTS): Define.
6472 (MAX_WPTS): Define.
6473 (struct arm_linux_thread_points): Removed.
6474 (struct arm_linux_process_info): New.
6475 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6476 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6477 (arm_linux_find_breakpoints_by_tid): Removed.
6478 (struct arch_lwp_info): New.
6479 (arm_linux_find_process_pid): New functions.
6480 (arm_linux_add_process): New functions.
6481 (arm_linux_process_info_get): New functions.
6482 (arm_linux_forget_process): New function.
6483 (arm_linux_get_debug_reg_state): New function.
6484 (struct update_registers_data): New.
6485 (update_registers_callback): New function.
6486 (arm_linux_insert_hw_breakpoint1): Updated.
6487 (arm_linux_remove_hw_breakpoint1): Updated.
6488 (arm_linux_insert_hw_breakpoint): Updated.
6489 (arm_linux_remove_hw_breakpoint): Updated.
6490 (arm_linux_insert_watchpoint): Updated.
6491 (arm_linux_remove_watchpoint): Updated.
6492 (arm_linux_new_thread): Updated.
6493 (arm_linux_prepare_to_resume): New function.
6494 (arm_linux_new_fork): New function.
6495 (_initialize_arm_linux_nat): Updated.
6496
6497 2014-03-12 Pedro Alves <palves@redhat.com>
6498
6499 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6500
6501 2014-03-12 Tom Tromey <tromey@redhat.com>
6502
6503 * inf-child.c (return_zero): New function.
6504 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6505 * aix-thread.c (aix_thread_inferior_created): New function.
6506 (aix_thread_attach): Remove.
6507 (init_aix_thread_ops): Don't set to_attach.
6508 (_initialize_aix_thread): Register inferior_created observer.
6509 * corelow.c (init_core_ops): Don't set to_attach or
6510 to_create_inferior.
6511 * exec.c (init_exec_ops): Don't set to_attach or
6512 to_create_inferior.
6513 * infcmd.c (run_command_1): Use find_run_target. Make direct
6514 target calls.
6515 (attach_command): Use find_attach_target. Make direct target
6516 calls.
6517 * record-btrace.c (init_record_btrace_ops): Don't set
6518 to_create_inferior.
6519 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6520 Remove.
6521 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6522 set to_create_inferior.
6523 * target.c (complete_target_initialization): Add assertion.
6524 (target_create_inferior): Remove.
6525 (find_default_attach, find_default_create_inferior): Remove.
6526 (find_attach_target, find_run_target): New functions.
6527 (find_default_is_async_p, find_default_can_async_p)
6528 (target_supports_non_stop, target_attach): Remove.
6529 (init_dummy_target): Don't set to_create_inferior or
6530 to_supports_non_stop.
6531 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6532 TARGET_DEFAULT_FUNC.
6533 <to_create_inferior>: Add comment.
6534 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6535 TARGET_DEFAULT_RETURN.
6536 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6537 (find_attach_target, find_run_target): Declare.
6538 (target_create_inferior): Remove.
6539 (target_has_execution_1): Update comment.
6540 (target_supports_non_stop): Remove.
6541 * target-delegates.c: Rebuild.
6542
6543 2014-03-12 Pedro Alves <palves@redhat.com>
6544
6545 * inf-child.h: Update comment to not mention Unix.
6546
6547 2014-03-12 Pedro Alves <palves@redhat.com>
6548
6549 * inf-child.c: Update top comment to not mention Unix. Add
6550 generic comment describing how this target is meant to be used.
6551 (inf_child_post_attach, inf_child_post_startup_inferior)
6552 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6553 Unix in comment.
6554
6555 2014-03-12 Pedro Alves <palves@redhat.com>
6556
6557 * nto-procfs.c: Include inf-child.h.
6558 (procfs_ops): Delete global.
6559 (procfs_can_run): Delete method.
6560 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6561 target pointer instead of referencing procfs_ops.
6562 (procfs_prepare_to_store): Delete.
6563 (init_procfs_ops): Delete function.
6564 (procfs_target): New function, based on init_procfs_ops, but
6565 inherit inf_child_target.
6566 (_initialize_procfs): Use procfs_target.
6567
6568 2014-03-12 Pedro Alves <palves@redhat.com>
6569
6570 * windows-nat.c: Include inf-child.h.
6571 (windows_ops): Delete global.
6572 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6573 methods.
6574 (init_windows_ops): Delete function.
6575 (windows_target): New function, based on init_windows_ops, but
6576 inherit inf_child_target.
6577 (_initialize_windows_nat): Use windows_target. Install x86
6578 specific target methods here.
6579
6580 2014-03-10 Doug Evans <xdje42@gmail.com>
6581
6582 * guile/guile.c (call_initialize_gdb_module): New function.
6583 (initialize_guile): Replace call to scm_init_guile with call to
6584 scm_with_guile.
6585
6586 2014-03-10 Joel Brobecker <brobecker@adacore.com>
6587
6588 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6589 in call to TYPE_CODE macro.
6590
6591 2014-03-10 Jerome Guitton <guitton@adacore.com>
6592
6593 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6594 Resolve tagged types to full view.
6595
6596 2014-03-10 Hui Zhu <hui@codesourcery.com>
6597
6598 * target.h (target_insert_breakpoint): Remove "hardware" from its
6599 comments.
6600
6601 2014-03-07 Doug Evans <dje@google.com>
6602
6603 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6604
6605 2014-03-07 Doug Evans <dje@google.com>
6606
6607 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6608 Remove unused local comp_dir_attr. Assert exactly one of
6609 stub_comp_unit_die, stub_comp_dir is non-NULL.
6610
6611 2014-03-07 Joel Brobecker <brobecker@adacore.com>
6612
6613 * target.h (complete_target_initialization, add_target):
6614 Add comment.
6615
6616 2014-03-07 Pedro Alves <palves@redhat.com>
6617
6618 * go32-nat.c: Include inf-child.h.
6619 (go32_ops): Delete global.
6620 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6621 Delete methods.
6622 (go32_create_inferior): Push the passed in target pointer instead
6623 of referencing go32_ops.
6624 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6625 (go32_target): New function, based on init_go32_ops, but inherit
6626 inf_child_target.
6627 (_initialize_go32_nat): Use go32_target. Move parts of
6628 init_go32_ops here.
6629
6630 2014-03-06 Joel Brobecker <brobecker@adacore.com>
6631
6632 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6633 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6634 SYMBOL_VALUE_ADDRESS.
6635 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6636
6637 2014-03-06 Yao Qi <yao@codesourcery.com>
6638
6639 * breakpoint.c (get_tracepoint_by_number): Remove argument
6640 optional_p. All callers updated. Adjust comments. Update
6641 output message.
6642 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6643
6644 2014-03-06 Yao Qi <yao@codesourcery.com>
6645
6646 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6647 early if get_number returns zero. Use 'p' instead of 'args'.
6648
6649 2014-03-06 Yao Qi <yao@codesourcery.com>
6650
6651 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6652 message.
6653
6654 2014-03-06 Yao Qi <yao@codesourcery.com>
6655
6656 PR breakpoints/16508
6657 * tracepoint.c (check_trace_running): New function.
6658 (trace_find_command): Move code to check_trace_running and
6659 call check_trace_running.
6660 (trace_find_pc_command): Likewise.
6661 (trace_find_tracepoint_command): Likewise.
6662 (trace_find_line_command): Likewise.
6663 (trace_find_range_command): Likewise.
6664 * tracepoint.h (check_trace_running): Likewise.
6665 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6666
6667 2014-03-06 Yao Qi <yao@codesourcery.com>
6668
6669 * target.h (struct target_ops) <to_traceframe_info>: Use
6670 TARGET_DEFAULT_NORETURN (tcomplain ()).
6671 * target-delegates.c: Regenerated.
6672
6673 2014-03-05 Pedro Alves <palves@redhat.com>
6674
6675 PR gdb/16575
6676 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6677 void. Update comment.
6678 (dcache_xfer_memory): Delete.
6679 (dcache_read_memory_partial): New, based on the read bits of
6680 dcache_xfer_memory.
6681 (dcache_update): Add status parameter. Use ULONGEST for len, and
6682 adjust. Discard cache lines if the reason for the update was
6683 error.
6684 * dcache.h (dcache_xfer_memory): Delete declaration.
6685 (dcache_read_memory_partial): New declaration.
6686 (dcache_update): Update prototype.
6687 * target.c (raw_memory_xfer_partial): Update the dcache here.
6688 (memory_xfer_partial_1): Don't handle dcache writes here.
6689
6690 2014-03-05 Mike Frysinger <vapier@gentoo.org>
6691
6692 * remote-sim.c (gdbsim_load): Add const to prog.
6693
6694 2014-03-03 Tom Tromey <tromey@redhat.com>
6695
6696 * elfread.c (probe_key): Change to bfd_data.
6697 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6698 now per-BFD, not per-objfile.
6699 * stap-probe.c (stap_probe_destroy): Update comment.
6700 (handle_stap_probe): Allocate on the per-BFD obstack.
6701
6702 2014-03-03 Tom Tromey <tromey@redhat.com>
6703
6704 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6705 * breakpoint.c (create_longjmp_master_breakpoint): Use
6706 get_probe_address.
6707 (add_location_to_breakpoint, bkpt_probe_insert_location)
6708 (bkpt_probe_remove_location): Update.
6709 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6710 * elfread.c (elf_symfile_relocate_probe): Remove.
6711 (elf_probe_fns): Update.
6712 (insert_exception_resume_breakpoint): Change type of "probe"
6713 parameter to bound_probe.
6714 (check_exception_resume): Update.
6715 * objfiles.c (objfile_relocate1): Don't relocate probes.
6716 * probe.c (bound_probe_s): New typedef.
6717 (parse_probes): Use get_probe_address. Set sal's objfile.
6718 (find_probe_by_pc): Return a bound_probe.
6719 (collect_probes): Return a VEC(bound_probe_s).
6720 (compare_probes): Update.
6721 (gen_ui_out_table_header_info): Change type of "probes"
6722 parameter. Update.
6723 (info_probes_for_ops): Update.
6724 (get_probe_address): New function.
6725 (probe_safe_evaluate_at_pc): Update.
6726 * probe.h (struct probe_ops) <get_probe_address>: New field.
6727 <set_semaphore, clear_semaphore>: Add objfile parameter.
6728 (struct probe) <objfile>: Remove field.
6729 <arch>: New field.
6730 <address>: Update comment.
6731 (struct bound_probe): New.
6732 (find_probe_by_pc): Return a bound_probe.
6733 (get_probe_address): Declare.
6734 * solib-svr4.c (struct probe_and_action) <address>: New field.
6735 (hash_probe_and_action, equal_probe_and_action): Update.
6736 (register_solib_event_probe): Add address parameter.
6737 (solib_event_probe_at): Update.
6738 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6739 get_probe_address.
6740 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6741 (stap_get_probe_address): New function.
6742 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6743 (compile_probe_arg): Update.
6744 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6745 address.
6746 (handle_stap_probe): Don't relocate the probe.
6747 (stap_relocate): Remove.
6748 (stap_gen_info_probes_table_values): Update.
6749 (stap_probe_ops): Remove stap_relocate.
6750 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6751 (debug_sym_probe_fns): Update.
6752 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6753 * symtab.c (init_sal): Use memset.
6754 * symtab.h (struct symtab_and_line) <objfile>: New field.
6755 * tracepoint.c (start_tracing, stop_tracing): Update.
6756
6757 2014-03-03 Tom Tromey <tromey@redhat.com>
6758
6759 * probe.h (parse_probes, find_probe_by_pc)
6760 (find_probes_in_objfile): Fix comments.
6761
6762 2014-03-02 Doug Evans <xdje42@gmail.com>
6763
6764 * infrun.c (handle_signal_stop): Replace test for
6765 TARGET_WAITKIND_STOPPED with an assert.
6766
6767 2014-03-02 Doug Evans <xdje42@gmail.com>
6768
6769 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6770
6771 2014-03-02 Doug Evans <xdje42@gmail.com>
6772
6773 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6774
6775 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6776
6777 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6778
6779 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6780
6781 * i386obsd-nat.c: Include "obsd-nat.h".
6782 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6783 add_target.
6784 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6785
6786 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6787
6788 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6789
6790 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6791
6792 * mips64obsd-nat.c: Include "obsd-nath".
6793 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6794 add_target
6795 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6796
6797 2014-03-01 Mark Kettenis <kettenis@gnu.org>
6798
6799 * amd64obsd-nat.c: Include "obsd-nat,h.
6800 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6801 add_target.
6802 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6803
6804 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6805
6806 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6807 (find_overload_match): Update call to find_oload_champ.
6808 (find_oload_champ_namespace_loop): Likewise
6809
6810 2014-02-28 Mark Kettenis <kettenis@gnu.org>
6811
6812 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6813
6814 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6815 * config/sparc/obsd64.mh: New file.
6816 * sparc64obsd-nat.c: New file.
6817
6818 * obsd-nat.h: New file.
6819 * obsd-nat.c: New file.
6820 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6821 (ALLDEPFILES): Add obsd-nat.c.
6822
6823 2014-02-28 Tom Tromey <tromey@redhat.com>
6824
6825 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6826 * cli-out.h (cli_ui_out_impl): Now const.
6827 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6828 * ui-out.c (struct ui_out) <impl>: Now const.
6829 (default_ui_out_impl): Now const.
6830 (ui_out_new): Make 'impl' parameter const.
6831 * ui-out.h (ui_out_new): Update.
6832
6833 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6834
6835 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6836
6837 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6838
6839 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6840
6841 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6842
6843 Additional PR 8882 fix.
6844 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6845
6846 2014-02-27 Pedro Alves <palves@redhat.com>
6847
6848 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6849 isn't set.
6850
6851 2014-02-27 Pedro Alves <palves@redhat.com>
6852
6853 PR 12702
6854 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6855 * nat/linux-waitpid.c: Include string.h.
6856 (status_to_str): Moved here and made extern.
6857 * nat/linux-waitpid.h (status_to_str): New declaration.
6858
6859 2014-02-27 Hui Zhu <hui@codesourcery.com>
6860
6861 PR 12702
6862 * infrun.c (ptid_match): Move ...
6863 * common/ptid.c (ptid_match): ... here.
6864 * inferior.h (ptid_match): Move ...
6865 * common/ptid.h (ptid_match): ... here.
6866
6867 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6868
6869 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6870 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6871 gdb_target_obs.
6872
6873 2014-02-27 Mark Kettenis <kettenis@gnu.org>
6874
6875 * obsd-tdep.c (obsd_auxv_parse): New function.
6876 (obsd_init_abi): Set auxv_parse.
6877
6878 * gdbarch.sh (auxv_parse): New.
6879 * gdbarch.h: Regenerated.
6880 * gdbarch.c: Regenerated.
6881 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6882
6883 2014-02-26 Ludovic Courtès <ludo@gnu.org>
6884
6885 * guile/scm-value.c (gdbscm_history_append_x): New function.
6886 (value_functions): Add it.
6887
6888 2014-02-27 Joel Brobecker <brobecker@adacore.com>
6889
6890 * dwarf2read.c (attr_value_as_address): New function.
6891 (dwarf2_find_base_address, read_call_site_scope): Use
6892 attr_value_as_address in place of DW_ADDR.
6893 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6894 the low and high addresses. Slight rework of the handling
6895 of the high pc being a constant form, and limit it to
6896 DWARF verson 4 or higher.
6897 (dwarf2_record_block_ranges): Likewise.
6898 (read_partial_die): Likewise.
6899 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6900
6901 2014-02-26 Tom Tromey <tromey@redhat.com>
6902
6903 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6904
6905 2014-02-26 Tom Tromey <tromey@redhat.com>
6906
6907 * elfread.c (elf_read_minimal_symbols): Return early if
6908 minimal symbols have already been read. Add "ei" parameter.
6909 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6910 * minsyms.c (prim_record_minimal_symbol_full): Update.
6911 * objfiles.h (struct objstats) <n_minsyms>: Move...
6912 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6913 * symmisc.c (print_objfile_statistics): Update.
6914
6915 2014-02-26 Tom Tromey <tromey@redhat.com>
6916
6917 * elfread.c (elf_read_minimal_symbols): New function, from
6918 elf_symfile_read.
6919 (elf_symfile_read): Call it.
6920
6921 2014-02-26 Tom Tromey <tromey@redhat.com>
6922
6923 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6924 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6925 (lookup_minimal_symbol_solib_trampoline)
6926 (lookup_minimal_symbol_by_pc_section_1)
6927 (lookup_minimal_symbol_and_objfile): Update.
6928 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6929 Don't allocate a minimal symbol if minsyms have already been read.
6930 (build_minimal_symbol_hash_tables): Update.
6931 (install_minimal_symbols): Do nothing if minsyms already read.
6932 Use the per-BFD obstack.
6933 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6934 * objfiles.c (allocate_objfile): Call
6935 terminate_minimal_symbol_table later.
6936 (have_minimal_symbols): Update.
6937 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6938 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6939 Move from struct objfile.
6940 <minsyms_read>: New field.
6941 (struct objfile) <msymbols, minimal_symbol_count,
6942 msymbol_hash, msymbol_demangled_hash>: Move.
6943 (ALL_OBJFILE_MSYMBOLS): Update.
6944 * symfile.c (read_symbols): Set minsyms_read.
6945 (reread_symbols): Update.
6946 * symmisc.c (dump_objfile, dump_msymbols): Update.
6947
6948 2014-02-26 Tom Tromey <tromey@redhat.com>
6949
6950 * minsyms.c (msymbols_sort): Remove.
6951 * minsyms.h (msymbols_sort): Remove.
6952 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6953 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6954 * elfread.c (elf_symtab_read): Don't add section offsets.
6955 * xcoffread.c (record_minimal_symbol): Don't add section offset
6956 to minimal symbol address.
6957 * somread.c (text_offset, data_offset): Remove.
6958 (som_symtab_read): Don't add section offsets to minimal symbol
6959 addresses.
6960 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6961 Don't add section offsets to minimal symbols.
6962 * coffread.c (coff_symtab_read): Don't add section offsets
6963 to minimal symbol addresses.
6964 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6965 to minimal symbol addresses.
6966 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6967 section offset to minimal symbol addresses.
6968 * mdebugread.c (parse_partial_symbols): Don't add section
6969 offset to minimal symbol addresses.
6970 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6971 offset to minimal symbol addresses.
6972
6973 2014-02-26 Tom Tromey <tromey@redhat.com>
6974
6975 * ada-lang.c (ada_main_name): Update.
6976 (ada_add_standard_exceptions): Update.
6977 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6978 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6979 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6980 * auxv.c (ld_so_xfer_auxv): Update.
6981 * avr-tdep.c (avr_scan_prologue): Update.
6982 * ax-gdb.c (gen_var_ref): Update.
6983 * blockframe.c (get_pc_function_start)
6984 (find_pc_partial_function_gnu_ifunc): Update.
6985 * breakpoint.c (create_overlay_event_breakpoint)
6986 (create_longjmp_master_breakpoint)
6987 (create_std_terminate_master_breakpoint)
6988 (create_exception_master_breakpoint): Update.
6989 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6990 * c-valprint.c (c_val_print): Update.
6991 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6992 * common/agent.c (agent_look_up_symbols): Update.
6993 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6994 * dwarf2loc.c (call_site_to_target_addr): Update.
6995 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6996 * elfread.c (elf_gnu_ifunc_record_cache)
6997 (elf_gnu_ifunc_resolve_by_got): Update.
6998 * findvar.c (default_read_var_value): Update.
6999 * frame.c (inside_main_func): Update.
7000 * frv-tdep.c (frv_frame_this_id): Update.
7001 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7002 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7003 Update.
7004 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7005 (hppa_hpux_find_dummy_bpaddr): Update.
7006 * hppa-tdep.c (hppa_symbol_address): Update.
7007 * infcmd.c (until_next_command): Update.
7008 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7009 Update.
7010 * linespec.c (minsym_found, add_minsym): Update.
7011 * linux-nat.c (get_signo): Update.
7012 * linux-thread-db.c (inferior_has_bug): Update.
7013 * m32c-tdep.c (m32c_return_value)
7014 (m32c_m16c_address_to_pointer): Update.
7015 * m32r-tdep.c (m32r_frame_this_id): Update.
7016 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7017 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7018 * maint.c (maintenance_translate_address): Update.
7019 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7020 (frob_address): New function.
7021 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7022 frob_address. Rename parameter to "pc_in".
7023 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7024 addresses.
7025 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7026 Update.
7027 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7028 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7029 * objc-lang.c (find_objc_msgsend): Update.
7030 * objfiles.c (objfile_relocate1): Update.
7031 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7032 * p-valprint.c (pascal_val_print): Update.
7033 * parse.c (write_exp_msymbol): Update.
7034 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7035 (ppc_elfv2_skip_entrypoint): Update.
7036 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7037 * printcmd.c (build_address_symbolic, msym_info)
7038 (address_info): Update.
7039 * proc-service.c (ps_pglobal_lookup): Update.
7040 * psymtab.c (find_pc_sect_psymtab_closer)
7041 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7042 Change msymbol parameter to bound_minimal_symbol.
7043 * ravenscar-thread.c (get_running_thread_id): Update.
7044 * remote.c (remote_check_symbols): Update.
7045 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7046 address.
7047 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7048 * solib-dsbt.c (lm_base): Update.
7049 * solib-frv.c (lm_base, main_got): Update.
7050 * solib-irix.c (locate_base): Update.
7051 * solib-som.c (som_solib_create_inferior_hook)
7052 (link_map_start): Update.
7053 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7054 * solib-svr4.c (elf_locate_base, enable_break): Update.
7055 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7056 (flush_ea_cache): Update.
7057 * stabsread.c (define_symbol, scan_file_globals): Update.
7058 * stack.c (find_frame_funname): Update.
7059 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7060 (debug_qf_find_pc_sect_symtab): Update.
7061 * symfile.c (simple_read_overlay_table)
7062 (simple_overlay_update): Update.
7063 * symfile.h (struct quick_symbol_functions)
7064 <find_pc_sect_symtab>: Change type of msymbol to
7065 bound_minimal_symbol.
7066 * symmisc.c (dump_msymbols): Update.
7067 * symtab.c (find_pc_sect_symtab_via_partial)
7068 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7069 (search_symbols, print_msymbol_info): Update.
7070 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7071 (MSYMBOL_VALUE_ADDRESS): Redefine.
7072 (BMSYMBOL_VALUE_ADDRESS): New macro.
7073 * tracepoint.c (scope_info): Update.
7074 * tui/tui-disasm.c (tui_find_disassembly_address)
7075 (tui_get_begin_asm_address): Update.
7076 * valops.c (find_function_in_inferior): Update.
7077 * value.c (value_static_field, value_fn_field): Update.
7078
7079 2014-02-26 Tom Tromey <tromey@redhat.com>
7080
7081 * ada-lang.c (ada_update_initial_language): Update.
7082 (ada_main_name, ada_has_this_exception_support): Update.
7083 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7084 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7085 * arm-tdep.c (arm_skip_stub): Update.
7086 * auxv.c (ld_so_xfer_auxv): Update.
7087 * avr-tdep.c (avr_scan_prologue): Update.
7088 * ax-gdb.c (gen_var_ref): Update.
7089 * breakpoint.c (struct breakpoint_objfile_data)
7090 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7091 type to bound_minimal_symbol.
7092 (create_overlay_event_breakpoint)
7093 (create_longjmp_master_breakpoint)
7094 (create_std_terminate_master_breakpoint)
7095 (create_exception_master_breakpoint): Update.
7096 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7097 * c-exp.y (classify_name): Update.
7098 * coffread.c (coff_symfile_read): Update.
7099 * common/agent.c (agent_look_up_symbols): Update.
7100 * d-lang.c (d_main_name): Update.
7101 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7102 * dec-thread.c (enable_dec_thread): Update.
7103 * dwarf2loc.c (call_site_to_target_addr): Update.
7104 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7105 * eval.c (evaluate_subexp_standard): Update.
7106 * findvar.c (struct minsym_lookup_data) <result>: Change type
7107 to bound_minimal_symbol.
7108 <objfile>: Remove.
7109 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7110 * frame.c (inside_main_func): Update.
7111 * frv-tdep.c (frv_frame_this_id): Update.
7112 * gcore.c (call_target_sbrk): Update.
7113 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7114 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7115 Update.
7116 * go-lang.c (go_main_name): Update.
7117 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7118 (hppa_hpux_find_import_stub_for_addr): Update.
7119 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7120 Update. Change return type.
7121 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7122 type.
7123 * jit.c (jit_breakpoint_re_set_internal): Update.
7124 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7125 Update.
7126 * linux-nat.c (get_signo): Update.
7127 * linux-thread-db.c (inferior_has_bug): Update
7128 * m32c-tdep.c (m32c_return_value)
7129 (m32c_m16c_address_to_pointer): Update.
7130 * m32r-tdep.c (m32r_frame_this_id): Update.
7131 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7132 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7133 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7134 lookup_minimal_symbol. Change return type.
7135 (lookup_minimal_symbol): Remove.
7136 (lookup_bound_minimal_symbol): Update.
7137 (lookup_minimal_symbol_text): Change return type.
7138 (lookup_minimal_symbol_solib_trampoline): Change return type.
7139 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7140 (lookup_minimal_symbol_solib_trampoline): Change return type.
7141 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7142 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7143 (value_nsstring, find_imps): Update.
7144 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7145 * p-lang.c (pascal_main_name): Update.
7146 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7147 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7148 * proc-service.c (ps_pglobal_lookup): Update.
7149 * ravenscar-thread.c (get_running_thread_msymbol): Change
7150 return type.
7151 (has_ravenscar_runtime, get_running_thread_id): Update.
7152 * remote.c (remote_check_symbols): Update.
7153 * sol-thread.c (ps_pglobal_lookup): Update.
7154 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7155 * solib-dsbt.c (lm_base): Update.
7156 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7157 Update.
7158 * solib-irix.c (locate_base): Update.
7159 * solib-som.c (som_solib_create_inferior_hook)
7160 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7161 Update.
7162 * solib-spu.c (spu_enable_break): Update.
7163 * solib-svr4.c (elf_locate_base, enable_break): Update.
7164 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7165 (flush_ea_cache): Update.
7166 * stabsread.c (define_symbol): Update.
7167 * symfile.c (simple_read_overlay_table): Update.
7168 * symtab.c (find_pc_sect_line): Update.
7169 * tracepoint.c (scope_info): Update.
7170 * tui-disasm.c (tui_get_begin_asm_address): Update.
7171 * value.c (value_static_field): Update.
7172
7173 2014-02-26 Tom Tromey <tromey@redhat.com>
7174
7175 * minsyms.c (prim_record_minimal_symbol_full): Use
7176 SET_MSYMBOL_VALUE_ADDRESS.
7177 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7178 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7179 SET_MSYMBOL_VALUE_ADDRESS.
7180 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7181 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7182
7183 2014-02-26 Tom Tromey <tromey@redhat.com>
7184
7185 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7186 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7187 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7188 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7189 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7190 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7191 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7192 * ada-lang.c (ada_main_name): Update.
7193 (ada_lookup_simple_minsym): Update.
7194 (ada_make_symbol_completion_list): Update.
7195 (ada_add_standard_exceptions): Update.
7196 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7197 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7198 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7199 * arm-tdep.c (skip_prologue_function): Update.
7200 (arm_skip_stack_protector, arm_skip_stub): Update.
7201 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7202 (arm_wince_skip_main_prologue): Update.
7203 * auxv.c (ld_so_xfer_auxv): Update.
7204 * avr-tdep.c (avr_scan_prologue): Update.
7205 * ax-gdb.c (gen_var_ref): Update.
7206 * block.c (call_site_for_pc): Update.
7207 * blockframe.c (get_pc_function_start): Update.
7208 (find_pc_partial_function_gnu_ifunc): Update.
7209 * breakpoint.c (create_overlay_event_breakpoint): Update.
7210 (create_longjmp_master_breakpoint): Update.
7211 (create_std_terminate_master_breakpoint): Update.
7212 (create_exception_master_breakpoint): Update.
7213 (resolve_sal_pc): Update.
7214 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7215 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7216 Update.
7217 * c-valprint.c (c_val_print): Update.
7218 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7219 * coffread.c (coff_symfile_read): Update.
7220 * common/agent.c (agent_look_up_symbols): Update.
7221 * dbxread.c (find_stab_function_addr): Update.
7222 (end_psymtab): Update.
7223 * dwarf2loc.c (call_site_to_target_addr): Update.
7224 (func_verify_no_selftailcall): Update.
7225 (tailcall_dump): Update.
7226 (call_site_find_chain_1): Update.
7227 (dwarf_expr_reg_to_entry_parameter): Update.
7228 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7229 (elf_gnu_ifunc_resolve_by_got): Update.
7230 * f-valprint.c (info_common_command): Update.
7231 * findvar.c (read_var_value): Update.
7232 * frame.c (get_prev_frame_1): Update.
7233 (inside_main_func): Update.
7234 * frv-tdep.c (frv_skip_main_prologue): Update.
7235 (frv_frame_this_id): Update.
7236 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7237 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7238 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7239 (gnuv3_skip_trampoline): Update.
7240 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7241 (hppa64_hpux_in_solib_call_trampoline): Update.
7242 (hppa_hpux_skip_trampoline_code): Update.
7243 (hppa64_hpux_search_dummy_call_sequence): Update.
7244 (hppa_hpux_find_import_stub_for_addr): Update.
7245 (hppa_hpux_find_dummy_bpaddr): Update.
7246 * hppa-tdep.c (hppa_symbol_address)
7247 (hppa_lookup_stub_minimal_symbol): Update.
7248 * i386-tdep.c (i386_skip_main_prologue): Update.
7249 (i386_pe_skip_trampoline_code): Update.
7250 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7251 * infcall.c (get_function_name): Update.
7252 * infcmd.c (until_next_command): Update.
7253 * jit.c (jit_breakpoint_re_set_internal): Update.
7254 (jit_inferior_init): Update.
7255 * linespec.c (minsym_found): Update.
7256 (add_minsym): Update.
7257 * linux-fork.c (info_checkpoints_command): Update.
7258 * linux-nat.c (get_signo): Update.
7259 * linux-thread-db.c (inferior_has_bug): Update.
7260 * m32c-tdep.c (m32c_return_value): Update.
7261 (m32c_m16c_address_to_pointer): Update.
7262 (m32c_m16c_pointer_to_address): Update.
7263 * m32r-tdep.c (m32r_frame_this_id): Update.
7264 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7265 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7266 * maint.c (maintenance_translate_address): Update.
7267 * minsyms.c (add_minsym_to_hash_table): Update.
7268 (add_minsym_to_demangled_hash_table): Update.
7269 (msymbol_objfile): Update.
7270 (lookup_minimal_symbol): Update.
7271 (iterate_over_minimal_symbols): Update.
7272 (lookup_minimal_symbol_text): Update.
7273 (lookup_minimal_symbol_by_pc_name): Update.
7274 (lookup_minimal_symbol_solib_trampoline): Update.
7275 (lookup_minimal_symbol_by_pc_section_1): Update.
7276 (lookup_minimal_symbol_and_objfile): Update.
7277 (prim_record_minimal_symbol_full): Update.
7278 (compare_minimal_symbols): Update.
7279 (compact_minimal_symbols): Update.
7280 (build_minimal_symbol_hash_tables): Update.
7281 (install_minimal_symbols): Update.
7282 (terminate_minimal_symbol_table): Update.
7283 (find_solib_trampoline_target): Update.
7284 (minimal_symbol_upper_bound): Update.
7285 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7286 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7287 (mips_skip_pic_trampoline_code): Update.
7288 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7289 * objc-lang.c (selectors_info): Update.
7290 (classes_info): Update.
7291 (find_methods): Update.
7292 (find_imps): Update.
7293 (find_objc_msgsend): Update.
7294 * objfiles.c (objfile_relocate1): Update.
7295 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7296 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7297 * p-valprint.c (pascal_val_print): Update.
7298 * parse.c (write_exp_msymbol): Update.
7299 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7300 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7301 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7302 * printcmd.c (build_address_symbolic): Update.
7303 (sym_info): Update.
7304 (address_info): Update.
7305 * proc-service.c (ps_pglobal_lookup): Update.
7306 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7307 (find_pc_sect_psymtab): Update.
7308 * python/py-framefilter.c (py_print_frame): Update.
7309 * ravenscar-thread.c (get_running_thread_id): Update.
7310 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7311 Update.
7312 * remote.c (remote_check_symbols): Update.
7313 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7314 (rs6000_skip_trampoline_code): Update.
7315 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7316 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7317 * solib-dsbt.c (lm_base): Update.
7318 * solib-frv.c (lm_base): Update.
7319 (main_got): Update.
7320 * solib-irix.c (locate_base): Update.
7321 * solib-som.c (som_solib_create_inferior_hook): Update.
7322 (som_solib_desire_dynamic_linker_symbols): Update.
7323 (link_map_start): Update.
7324 * solib-spu.c (spu_enable_break): Update.
7325 (ocl_enable_break): Update.
7326 * solib-svr4.c (elf_locate_base): Update.
7327 (enable_break): Update.
7328 * spu-tdep.c (spu_get_overlay_table): Update.
7329 (spu_catch_start): Update.
7330 (flush_ea_cache): Update.
7331 * stabsread.c (define_symbol): Update.
7332 (scan_file_globals): Update.
7333 * stack.c (find_frame_funname): Update.
7334 (frame_info): Update.
7335 * symfile.c (simple_read_overlay_table): Update.
7336 (simple_overlay_update): Update.
7337 * symmisc.c (dump_msymbols): Update.
7338 * symtab.c (fixup_section): Update.
7339 (find_pc_sect_line): Update.
7340 (skip_prologue_sal): Update.
7341 (search_symbols): Update.
7342 (print_msymbol_info): Update.
7343 (rbreak_command): Update.
7344 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7345 (completion_list_objc_symbol): Update.
7346 (default_make_symbol_completion_list_break_on): Update.
7347 * tracepoint.c (scope_info): Update.
7348 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7349 (tui_get_begin_asm_address): Update.
7350 * valops.c (find_function_in_inferior): Update.
7351 * value.c (value_static_field): Update.
7352 (value_fn_field): Update.
7353
7354 2014-02-26 Tom Tromey <tromey@redhat.com>
7355
7356 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7357 bound minimal symbols. Move code that knows about minsym
7358 table layout...
7359 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7360 function.
7361 * minsyms.h (minimal_symbol_upper_bound): Declare.
7362 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7363 minimal_symbol_upper_bound.
7364
7365 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7366
7367 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7368 Use the type's name if its basic type does not have a tag.
7369
7370 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7371
7372 * dwarf2read.c (read_subrange_type): Add comment.
7373
7374 2014-02-27 Joel Brobecker <brobecker@adacore.com>
7375
7376 * dwarf2read.c (update_enumeration_type_from_children): New
7377 function, mostly extracted from process_structure_scope.
7378 (read_enumeration_type): Call update_enumeration_type_from_children.
7379 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7380 and flag_flag_enum fields.
7381
7382 2014-02-26 Pedro Alves <palves@redhat.com>
7383
7384 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7385 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7386 to_xfer_partial method.
7387
7388 2014-02-26 Pedro Alves <palves@redhat.com>
7389
7390 * target.c (complete_target_initialization): Don't install
7391 default_xfer_partial as to_xfer_partial hook.
7392 (nomemory): Delete.
7393 (update_current_target): Don't INHERIT nor de_fault
7394 deprecated_xfer_memory. Delete de_fault macro.
7395 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7396 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7397 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7398 field.
7399
7400 2014-02-26 Pedro Alves <palves@redhat.com>
7401
7402 * go32-nat.c (my_write_child): New function.
7403 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7404 (go32_xfer_partial): New function.
7405 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7406 Instead install a to_xfer_partial hook.
7407
7408 2014-02-26 Pedro Alves <palves@redhat.com>
7409
7410 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7411 to_xfer_partial helper. Rewrite.
7412 (procfs_xfer_partial): New function.
7413 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7414 Install a to_xfer_partial hook.
7415
7416 2014-02-26 Pedro Alves <palves@redhat.com>
7417
7418 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7419 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7420 (m32r_xfer_partial): New function.
7421 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7422 Install a to_xfer_partial hook.
7423
7424 2014-02-26 Pedro Alves <palves@redhat.com>
7425
7426 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7427 helper.
7428 (mips_xfer_partial): New function.
7429 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7430 hook. Install a to_xfer_partial hook.
7431
7432 2014-02-26 Joel Brobecker <brobecker@adacore.com>
7433
7434 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7435 * gdbtypes.c (create_array_type_with_stride): New function,
7436 renaming create_array_type, but with an added parameter
7437 called "bit_stride".
7438 (create_array_type): Re-implement using
7439 create_array_type_with_stride.
7440 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7441 and DW_AT_bit_stride attributes.
7442
7443 2014-02-26 Pedro Alves <palves@redhat.com>
7444
7445 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7446 task-specific breakpoints.
7447
7448 2014-02-25 Pedro Alves <palves@redhat.com>
7449
7450 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7451 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7452
7453 2014-02-25 Stan Shebs <stan@codesourcery.com>
7454
7455 * defs.h: Annotate comments for Doxygen.
7456
7457 2014-02-25 Tom Tromey <tromey@redhat.com>
7458
7459 * target.h (target_ignore): Don't declare.
7460 * target.c (target_ignore): Remove.
7461
7462 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7463
7464 PR gdb/16626
7465 * auto-load.c (auto_load_objfile_script_1): Change filename to
7466 debugfile.
7467
7468 2014-02-25 Joel Brobecker <brobecker@adacore.com>
7469
7470 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7471 documentation. Adjust prototype to match the target_ops
7472 to_xfer_partial method. Adjust implementation accordingly.
7473
7474 2014-02-25 Hui Zhu <hui@codesourcery.com>
7475
7476 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7477 to_traceframe_info.
7478
7479 2014-02-25 Kevin Buettner <kevinb@redhat.com>
7480
7481 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
7482 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7483 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7484 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7485 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7486 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7487 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7488 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7489 New constants.
7490 (rl78_register_type): Use a data pointer type for SP and
7491 new pseudo registers mentioned above. Use a 16 bit integer
7492 type for all other register pairs.
7493 (rl78_register_name, rl78_g10_register_name): Update for
7494 new pseudo registers.
7495 (rl78_pseudo_register_read): Likewise.
7496 (rl78_pseudo_register_write): Likewise.
7497 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7498 to the newly added pseudo registers.
7499
7500 2014-02-24 Doug Evans <dje@google.com>
7501
7502 * value.c (record_latest_value): Fix comment.
7503 * printcmd.c (print_command_1): Remove code to handle -1 return from
7504 record_latest_value.
7505
7506 2014-02-24 Pedro Alves <palves@redhat.com>
7507
7508 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7509 deprecated_xfer_memory hook.
7510 (procfs_xfer_partial): Call procfs_xfer_memory instead
7511 of the deprecated_xfer_memory target hook.
7512 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7513 helper.
7514
7515 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7516
7517 * windows-nat.c (windows_xfer_shared_libraries): Return
7518 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7519 requested object is TARGET_OBJECT_LIBRARIES.
7520
7521 2014-02-24 Yao Qi <yao@codesourcery.com>
7522
7523 * target.h (enum target_xfer_status)
7524 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7525 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7526 explicitly. New.
7527 * corefile.c (memory_error_message): User updated.
7528 * exec.c (section_table_read_available_memory): Likewise.
7529 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7530 * target.c (target_xfer_status_to_string): Likewise.
7531 (raw_memory_xfer_partial): Likewise.
7532 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7533 * valops.c (read_value_memory): Likewise.
7534 * exec.h: Update comments.
7535
7536 2014-02-24 Yao Qi <yao@codesourcery.com>
7537
7538 * target.c (target_xfer_status_to_string): Rename argument err
7539 to status.
7540 * target.h (target_xfer_status_to_string): Update declaration.
7541 Replace target_xfer_error_to_string with
7542 target_xfer_status_to_string in comment.
7543
7544 2014-02-24 Yao Qi <yao@codesourcery.com>
7545
7546 * mips-linux-nat.c (super_close): Update its type.
7547 (mips_linux_close): Pass 'self' to super_close.
7548
7549 2014-02-24 Yao Qi <yao@codesourcery.com>
7550
7551 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7552 * corefile.c (read_memory): Adjusted.
7553 * target.c (target_write_with_progress): Adjusted.
7554
7555 2014-02-23 Yao Qi <yao@codesourcery.com>
7556
7557 Revert two patches:
7558
7559 2013-10-25 Yao Qi <yao@codesourcery.com>
7560
7561 * remote.c (remote_traceframe_info): Return early if
7562 traceframe is not selected.
7563
7564 2013-07-19 Yao Qi <yao@codesourcery.com>
7565
7566 * target.c (update_current_target): Change the default action
7567 of 'to_traceframe_info' from tcomplain to return_zero.
7568 * target.h (struct target_ops) <to_traceframe_info>: Add more
7569 comments.
7570
7571 2014-02-23 Yao Qi <yao@codesourcery.com>
7572
7573 * valops.c (read_value_memory): Rewrite it. Call
7574 target_xfer_partial in a loop.
7575 * exec.h (section_table_available_memory): Remove declaration.
7576 Move comments to ...
7577 * exec.c (section_table_available_memory): ... here. Make it
7578 static.
7579
7580 2014-02-23 Yao Qi <yao@codesourcery.com>
7581
7582 * exec.c (section_table_read_available_memory): New function.
7583 * exec.h (section_table_read_available_memory): Declare.
7584 * ctf.c (ctf_xfer_partial): Call
7585 section_table_read_available_memory.
7586 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7587
7588 2014-02-23 Yao Qi <yao@codesourcery.com>
7589
7590 * ctf.c (ctf_xfer_partial): Move code to ...
7591 * exec.c (exec_read_partial_read_only): ... it. New function.
7592 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7593 * tracefile.c: Include "exec.h".
7594 * exec.h (exec_read_partial_read_only): Declare.
7595
7596 2014-02-23 Yao Qi <yao@codesourcery.com>
7597
7598 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7599 (tfile_has_memory): Remove.
7600 (init_tfile_ops): Don't set fields to_has_all_memory and
7601 to_has_memory of tfile_ops.
7602 * tracefile.c (tracefile_has_all_memory): New function.
7603 (tracefile_has_memory): New function.
7604 (init_tracefile_ops): Initialize fields to_has_all_memory and
7605 to_has_memory of 'ops'.
7606
7607 2014-02-23 Yao Qi <yao@codesourcery.com>
7608
7609 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7610 (ctf_thread_alive, ctf_get_trace_status): Remove.
7611 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7612 init_tracefile_ops.
7613 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7614 (tfile_has_stack, tfile_has_registers): Remove.
7615 (tfile_thread_alive): Remove.
7616 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7617 init_tracefile_ops.
7618 * tracefile.c (tracefile_has_stack): New function.
7619 (tracefile_has_registers): New function.
7620 (tracefile_thread_alive): New function.
7621 (tracefile_get_trace_status): New function.
7622 (init_tracefile_ops): New function.
7623 * tracefile.h (init_tracefile_ops): Declare.
7624
7625 2014-02-23 Yao Qi <yao@codesourcery.com>
7626
7627 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7628 (O_LARGEFILE): Likewise.
7629 (tfile_ops): Likewise.
7630 (TRACE_HEADER_SIZE): Likewise.
7631 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7632 (cur_data_size): Likewise.
7633 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7634 (tfile_close, tfile_files_info): Likewise.
7635 (tfile_get_trace_status): Likewise.
7636 (tfile_get_tracepoint_status): Likewise.
7637 (tfile_get_traceframe_address): Likewise.
7638 (tfile_trace_find, match_blocktype): Likewise.
7639 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7640 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7641 (tfile_get_trace_state_variable_value): Likewise.
7642 (tfile_has_all_memory, tfile_has_memory): Likewise.
7643 (tfile_has_stack, tfile_has_registers): Likewise.
7644 (tfile_thread_alive, build_traceframe_info): Likewise.
7645 (tfile_traceframe_info, init_tfile_ops): Likewise.
7646 (_initialize_tracepoint): Don't call init_tfile_ops
7647 and add_target_with_completer.
7648 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7649 exec.h, completer.h and filenames.h.
7650 (_initialize_tracefile_tfile): New function.
7651
7652 2014-02-23 Yao Qi <yao@codesourcery.com>
7653
7654 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7655 tracefile-tfile.o.
7656 (HFILES_NO_SRCDIR): Add tracefile.h.
7657 * ctf.c: Include "tracefile.h".
7658 * tracefile.h: New file.
7659 * tracefile.c: New file
7660 * tracefile-tfile.c: New file.
7661 * tracepoint.c: Include "tracefile.h".
7662 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7663 (stop_reason_names): Add const.
7664 (trace_file_writer_xfree): Move it to tracefile.c.
7665 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7666 (trace_save_ctf): Likewise.
7667 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7668 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7669 (tfile_write_header, tfile_write_regblock_type): Likewise.
7670 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7671 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7672 (tfile_write_raw_data, tfile_end): Likewise.
7673 (tfile_trace_file_writer_new): Likewise.
7674 (free_uploaded_tp): Make it extern.
7675 (free_uploaded_tsv): Make it extern.
7676 (_initialize_tracepoint): Move code to register command 'tsave'
7677 to tracefile.c.
7678 * tracepoint.h (stop_reason_names): Declare.
7679 (struct trace_frame_write_ops): Move it to tracefile.h.
7680 (struct trace_file_write_ops): Likewise.
7681 (struct trace_file_writer): Likewise.
7682 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7683
7684 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7685
7686 PR gdb/16594
7687 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7688 process name.
7689 (get_cores_used_by_process): New parameter num_cores, use it.
7690 (linux_xfer_osdata_processes): Pass num_cores to it.
7691 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7692 process name.
7693
7694 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7695
7696 * target.c (memory_xfer_partial): Fix length arg in call to
7697 breakpoint_xfer_memory.
7698
7699 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7700
7701 PR tdep/16397
7702 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7703 number comes after the + or - signs. Adjust length of register
7704 name to be extracted.
7705
7706 2014-02-20 Tom Tromey <tromey@redhat.com>
7707
7708 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7709 (ada_varobj_ops): Mark "extern".
7710
7711 2014-02-20 Tom Tromey <tromey@redhat.com>
7712
7713 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7714
7715 2014-02-20 Doug Evans <xdje42@gmail.com>
7716
7717 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7718 All callers updated.
7719 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7720 All callers updated.
7721 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7722 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7723
7724 2014-02-20 lin zuojian <manjian2006@gmail.com>
7725 Joel Brobecker <brobecker@adacore.com>
7726 Doug Evans <xdje42@gmail.com>
7727
7728 PR symtab/16581
7729 * dwarf2read.c (struct die_info): New member in_process.
7730 (reset_die_in_process): New function.
7731 (process_die): Set it at the start, reset when returning.
7732 (inherit_abstract_dies): Only call process_die if origin_child_die
7733 not already being processed.
7734
7735 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7736
7737 * windows-nat.c (handle_unload_dll): Add function documentation.
7738 (do_initial_windows_stuff): Add comment explaining why we wait
7739 until after inferior initialization has finished before
7740 processing all DLLs.
7741
7742 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7743
7744 * windows-nat.c (get_module_name): Delete.
7745 (windows_get_exec_module_filename): New function, mostly
7746 inspired from get_module_name.
7747 (windows_pid_to_exec_file): Replace call to get_module_name
7748 by call to windows_get_exec_module_filename.
7749
7750 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7751
7752 * windows-nat.c (handle_load_dll): Rewrite this function's
7753 introductory comment. Remove code using get_module_name
7754 to get the DLL's name.
7755
7756 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7757
7758 * windows-nat.c (get_windows_debug_event): Ignore
7759 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7760 if windows_initialization_done == 0.
7761 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7762 Adjust implementation to always load all DLLs.
7763 (do_initial_windows_stuff): Replace call to
7764 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7765
7766 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7767
7768 * windows-nat.c (_initialize_windows_nat): Deprecate the
7769 "dll-symbols" command. Turn the "add-shared-symbol-files"
7770 and "assf" aliases into commands, and deprecate them as well.
7771 * NEWS: Add entry explaining that "dll-symbols" and its two
7772 aliases are now deprecated.
7773
7774 2014-02-20 Joel Brobecker <brobecker@adacore.com>
7775
7776 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7777 new-line in debug string. Remove trailing spaces.
7778
7779 2014-02-19 Stan Shebs <stan@codesourcery.com>
7780
7781 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7782
7783 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7784
7785 * NEWS: Add entry for the new feature
7786 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7787 and class values.
7788
7789 2014-02-19 Stan Shebs <stan@codesourcery.com>
7790
7791 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7792
7793 2014-02-19 Pedro Alves <palves@redhat.com>
7794
7795 * common/ptid.h (struct ptid): Mention that process_stratum
7796 targets should prefer ptid.lwp.
7797
7798 2014-02-19 Pedro Alves <palves@redhat.com>
7799
7800 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7801 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7802 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7803 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7804 store remote thread ids rather than ptid.tid.
7805 (_initialize_remote): Adjust.
7806
7807 2014-02-19 Tom Tromey <tromey@redhat.com>
7808
7809 * target.c (target_get_unwinder): Rewrite.
7810 (target_get_tailcall_unwinder): Rewrite.
7811 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7812 (record_btrace_to_get_tailcall_unwinder): New function.
7813 (init_record_btrace_ops): Update.
7814 * target.h (struct target_ops) <to_get_unwinder,
7815 to_get_tailcall_unwinder>: Now function pointers. Use
7816 TARGET_DEFAULT_RETURN.
7817
7818 2014-02-19 Tom Tromey <tromey@redhat.com>
7819
7820 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7821 argument.
7822 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7823
7824 2014-02-19 Tom Tromey <tromey@redhat.com>
7825
7826 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7827 directly.
7828 * target-delegates.c: Rebuild.
7829 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7830 TARGET_DEFAULT_FUNC.
7831 * target.c (default_target_decr_pc_after_break): Rename from
7832 forward_target_decr_pc_after_break. Simplify.
7833 (target_decr_pc_after_break): Rely on delegation.
7834
7835 2014-02-19 Tom Tromey <tromey@redhat.com>
7836
7837 * target.c (update_current_target): Do not INHERIT to_doc or
7838 to_magic. Do not de_fault to_open or to_close.
7839
7840 2014-02-19 Tom Tromey <tromey@redhat.com>
7841
7842 * gcore.h (objfile_find_memory_regions): Declare.
7843 * gcore.c (objfile_find_memory_regions): No longer static. Add
7844 "self" argument.
7845 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7846 * exec.c: Include gcore.h.
7847 (exec_set_find_memory_regions): Remove.
7848 (exec_find_memory_regions): Remove.
7849 (exec_do_find_memory_regions): Remove.
7850 (init_exec_ops): Update.
7851 * defs.h (exec_set_find_memory_regions): Remove.
7852
7853 2014-02-19 Tom Tromey <tromey@redhat.com>
7854
7855 * target-delegates.c: Rebuild.
7856 * target.h (struct target_ops) <to_extra_thread_info,
7857 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7858 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7859 not 0, in TARGET_DEFAULT_RETURN.
7860
7861 2014-02-19 Tom Tromey <tromey@redhat.com>
7862
7863 * target.c (complete_target_initialization): Remove casts. Use
7864 return_zero_has_execution.
7865 (return_zero): Add "ignore" argument.
7866 (return_zero_has_execution): New function.
7867 (init_dummy_target): Remove casts. Use
7868 return_zero_has_execution.
7869
7870 2014-02-19 Tom Tromey <tromey@redhat.com>
7871
7872 * target.c (update_current_target): Update comments. Do not
7873 INHERIT to_stratum.
7874
7875 2014-02-19 Tom Tromey <tromey@redhat.com>
7876
7877 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7878 needed.
7879 * corelow.c (core_read_description): Delegate when needed.
7880 * remote.c (remote_read_description): Delegate when needed.
7881 * target-delegates.c: Rebuild.
7882 * target.c (target_read_description): Rewrite.
7883 * target.h (struct target_ops) <to_read_description>: Update
7884 comment. Use TARGET_DEFAULT_RETURN.
7885
7886 2014-02-19 Tom Tromey <tromey@redhat.com>
7887
7888 * target-delegates.c: Rebuild.
7889 * target.c (update_current_target): Don't inherit or default
7890 to_can_run.
7891 (find_default_run_target): Check against delegate_can_run.
7892 * target.h (struct target_ops) <to_can_run>: Use
7893 TARGET_DEFAULT_RETURN.
7894
7895 2014-02-19 Tom Tromey <tromey@redhat.com>
7896
7897 * target-delegates.c: Rebuild.
7898 * target.c (target_disconnect): Unconditionally delegate.
7899 * target.h (struct target_ops) <to_disconnect>: Use
7900 TARGET_DEFAULT_NORETURN.
7901
7902 2014-02-19 Tom Tromey <tromey@redhat.com>
7903
7904 * record.c (record_stop): Unconditionally delegate.
7905 * target-delegates.c: Rebuild.
7906 * target.c (target_stop_recording): Unconditionally delegate.
7907 * target.h (struct target_ops) <to_stop_recording>: Use
7908 TARGET_DEFAULT_IGNORE.
7909
7910 2014-02-19 Tom Tromey <tromey@redhat.com>
7911
7912 * target-delegates.c: Rebuild.
7913 * target.c (target_enable_btrace): Unconditionally delegate.
7914 * target.h (struct target_ops) <to_enable_btrace>: Use
7915 TARGET_DEFAULT_NORETURN.
7916
7917 2014-02-19 Tom Tromey <tromey@redhat.com>
7918
7919 * target-delegates.c: Rebuild.
7920 * target.c (target_read_btrace): Unconditionally delegate.
7921 * target.h (struct target_ops) <to_read_btrace>: Use
7922 TARGET_DEFAULT_NORETURN.
7923
7924 2014-02-19 Tom Tromey <tromey@redhat.com>
7925
7926 * target-delegates.c: Rebuild.
7927 * target.c (target_teardown_btrace): Unconditionally delegate.
7928 * target.h (struct target_ops) <to_teardown_btrace>: Use
7929 TARGET_DEFAULT_NORETURN.
7930
7931 2014-02-19 Tom Tromey <tromey@redhat.com>
7932
7933 * target-delegates.c: Rebuild.
7934 * target.c (target_disable_btrace): Unconditionally delegate.
7935 * target.h (struct target_ops) <to_disable_btrace>: Use
7936 TARGET_DEFAULT_NORETURN.
7937
7938 2014-02-19 Tom Tromey <tromey@redhat.com>
7939
7940 * target-delegates.c: Rebuild.
7941 * target.c (default_search_memory): New function.
7942 (simple_search_memory): Update comment.
7943 (target_search_memory): Unconditionally delegate.
7944 * target.h (struct target_ops) <to_search_memory>: Use
7945 TARGET_DEFAULT_FUNC.
7946
7947 2014-02-19 Tom Tromey <tromey@redhat.com>
7948
7949 * auxv.c (default_auxv_parse): No longer static.
7950 (target_auxv_parse): Unconditionally delegate.
7951 * auxv.h (default_auxv_parse): Declare.
7952 * target-delegates.c: Rebuild.
7953 * target.c: Include auxv.h.
7954 * target.h (struct target_ops) <to_auxv_parse>: Use
7955 TARGET_DEFAULT_FUNC.
7956
7957 2014-02-19 Tom Tromey <tromey@redhat.com>
7958
7959 * target-delegates.c: Rebuild.
7960 * target.c (target_memory_map): Unconditionally delegate.
7961 * target.h (struct target_ops) <to_memory_map>: Use
7962 TARGET_DEFAULT_RETURN.
7963
7964 2014-02-19 Tom Tromey <tromey@redhat.com>
7965
7966 * target-delegates.c: Rebuild.
7967 * target.c (target_thread_alive): Unconditionally delegate.
7968 * target.h (struct target_ops) <to_thread_alive>: Use
7969 TARGET_DEFAULT_RETURN.
7970
7971 2014-02-19 Tom Tromey <tromey@redhat.com>
7972
7973 * target-delegates.c: Rebuild.
7974 * target.c (target_save_record): Unconditionally delegate.
7975 * target.h (struct target_ops) <to_save_record>: Use
7976 TARGET_DEFAULT_NORETURN.
7977
7978 2014-02-19 Tom Tromey <tromey@redhat.com>
7979
7980 * target-delegates.c: Rebuild.
7981 * target.c (target_delete_record): Unconditionally delegate.
7982 * target.h (struct target_ops) <to_delete_record>: Use
7983 TARGET_DEFAULT_NORETURN.
7984
7985 2014-02-19 Tom Tromey <tromey@redhat.com>
7986
7987 * target-delegates.c: Rebuild.
7988 * target.c (target_record_is_replaying): Unconditionally
7989 delegate.
7990 * target.h (struct target_ops) <to_record_is_replaying>: Use
7991 TARGET_DEFAULT_RETURN.
7992
7993 2014-02-19 Tom Tromey <tromey@redhat.com>
7994
7995 * target-delegates.c: Rebuild.
7996 * target.c (target_goto_record_begin): Unconditionally delegate.
7997 * target.h (struct target_ops) <to_goto_record_begin>: Use
7998 TARGET_DEFAULT_NORETURN.
7999
8000 2014-02-19 Tom Tromey <tromey@redhat.com>
8001
8002 * target-delegates.c: Rebuild.
8003 * target.c (target_goto_record_end): Unconditionally delegate.
8004 * target.h (struct target_ops) <to_goto_record_end>: Use
8005 TARGET_DEFAULT_NORETURN.
8006
8007 2014-02-19 Tom Tromey <tromey@redhat.com>
8008
8009 * target-delegates.c: Rebuild.
8010 * target.c (target_goto_record): Unconditionally delegate.
8011 * target.h (struct target_ops) <to_goto_record>: Use
8012 TARGET_DEFAULT_NORETURN.
8013
8014 2014-02-19 Tom Tromey <tromey@redhat.com>
8015
8016 * target-delegates.c: Rebuild.
8017 * target.c (target_insn_history): Unconditionally delegate.
8018 * target.h (struct target_ops) <to_insn_history>: Use
8019 TARGET_DEFAULT_NORETURN.
8020
8021 2014-02-19 Tom Tromey <tromey@redhat.com>
8022
8023 * target-delegates.c: Rebuild.
8024 * target.c (target_insn_history_from): Unconditionally delegate.
8025 * target.h (struct target_ops) <to_insn_history_from>: Use
8026 TARGET_DEFAULT_NORETURN.
8027
8028 2014-02-19 Tom Tromey <tromey@redhat.com>
8029
8030 * target-delegates.c: Rebuild.
8031 * target.c (target_insn_history_range): Unconditionally delegate.
8032 * target.h (struct target_ops) <to_insn_history_range>: Use
8033 TARGET_DEFAULT_NORETURN.
8034
8035 2014-02-19 Tom Tromey <tromey@redhat.com>
8036
8037 * target-delegates.c: Rebuild.
8038 * target.c (target_call_history): Unconditionally delegate.
8039 * target.h (struct target_ops) <to_call_history>: Use
8040 TARGET_DEFAULT_NORETURN.
8041
8042 2014-02-19 Tom Tromey <tromey@redhat.com>
8043
8044 * target-delegates.c: Rebuild.
8045 * target.c (target_call_history_from): Unconditionally delegate.
8046 * target.h (struct target_ops) <to_call_history_from>: Use
8047 TARGET_DEFAULT_NORETURN.
8048
8049 2014-02-19 Tom Tromey <tromey@redhat.com>
8050
8051 * target-delegates.c: Rebuild.
8052 * target.c (target_call_history_range): Unconditionally delegate.
8053 * target.h (struct target_ops) <to_call_history_range>: Use
8054 TARGET_DEFAULT_NORETURN.
8055
8056 2014-02-19 Tom Tromey <tromey@redhat.com>
8057
8058 * target-delegates.c: Rebuild.
8059 * target.c (target_verify_memory): Unconditionally delegate.
8060 * target.h (struct target_ops) <to_verify_memory>: Use
8061 TARGET_DEFAULT_NORETURN.
8062
8063 2014-02-19 Tom Tromey <tromey@redhat.com>
8064
8065 * target-delegates.c: Rebuild.
8066 * target.c (target_core_of_thread): Unconditionally delegate.
8067 * target.h (struct target_ops) <to_core_of_thread>: Use
8068 TARGET_DEFAULT_RETURN.
8069
8070 2014-02-19 Tom Tromey <tromey@redhat.com>
8071
8072 * target-delegates.c: Rebuild.
8073 * target.c (target_flash_done): Unconditionally delegate.
8074 * target.h (struct target_ops) <to_flash_done>: Use
8075 TARGET_DEFAULT_NORETURN.
8076
8077 2014-02-19 Tom Tromey <tromey@redhat.com>
8078
8079 * target-delegates.c: Rebuild.
8080 * target.c (target_flash_erase): Unconditionally delegate.
8081 * target.h (struct target_ops) <to_flash_erase>: Use
8082 TARGET_DEFAULT_NORETURN.
8083
8084 2014-02-19 Tom Tromey <tromey@redhat.com>
8085
8086 * target-delegates.c: Rebuild.
8087 * target.c (target_get_section_table): Unconditionally delegate.
8088 * target.h (struct target_ops) <to_get_section_table>: Use
8089 TARGET_DEFAULT_RETURN.
8090
8091 2014-02-19 Tom Tromey <tromey@redhat.com>
8092
8093 * target-delegates.c: Rebuild.
8094 * target.c (target_pid_to_str): Unconditionally delegate.
8095 (init_dummy_target): Don't initialize to_pid_to_str.
8096 (default_pid_to_str): Rename from dummy_pid_to_str.
8097 * target.h (struct target_ops) <to_pid_to_str>: Use
8098 TARGET_DEFAULT_FUNC.
8099
8100 2014-02-19 Tom Tromey <tromey@redhat.com>
8101
8102 * target-delegates.c: Rebuild.
8103 * target.c (target_find_new_threads): Unconditionally delegate.
8104 * target.h (struct target_ops) <to_find_new_threads>: Use
8105 TARGET_DEFAULT_RETURN.
8106
8107 2014-02-19 Tom Tromey <tromey@redhat.com>
8108
8109 * target-delegates.c: Rebuild.
8110 * target.c (target_program_signals): Unconditionally delegate.
8111 * target.h (struct target_ops) <to_program_signals>: Use
8112 TARGET_DEFAULT_IGNORE.
8113
8114 2014-02-19 Tom Tromey <tromey@redhat.com>
8115
8116 * target-delegates.c: Rebuild.
8117 * target.c (target_pass_signals): Unconditionally delegate.
8118 * target.h (struct target_ops) <to_pass_signals>: Use
8119 TARGET_DEFAULT_IGNORE.
8120
8121 2014-02-19 Tom Tromey <tromey@redhat.com>
8122
8123 * target-delegates.c: Rebuild.
8124 * target.c (default_mourn_inferior): New function.
8125 (target_mourn_inferior): Unconditionally delegate.
8126 * target.h (struct target_ops) <to_mourn_inferior>: Use
8127 TARGET_DEFAULT_FUNC.
8128
8129 2014-02-19 Tom Tromey <tromey@redhat.com>
8130
8131 * target-delegates.c: Rebuild.
8132 * target.c (default_follow_fork): New function.
8133 (target_follow_fork): Unconditionally delegate.
8134 * target.h (struct target_ops) <to_follow_fork>: Use
8135 TARGET_DEFAULT_FUNC.
8136
8137 2014-02-19 Tom Tromey <tromey@redhat.com>
8138
8139 * target-delegates.c: Rebuild.
8140 * target.c (target_kill): Unconditionally delegate.
8141 * target.h (struct target_ops) <to_kill>: Use
8142 TARGET_DEFAULT_NORETURN.
8143
8144 2014-02-19 Tom Tromey <tromey@redhat.com>
8145
8146 * target-delegates.c: Rebuild.
8147 * target.c (target_masked_watch_num_registers): Unconditionally
8148 delegate.
8149 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8150 Use TARGET_DEFAULT_RETURN.
8151
8152 2014-02-19 Tom Tromey <tromey@redhat.com>
8153
8154 * target-delegates.c: Rebuild.
8155 * target.c (target_remove_mask_watchpoint): Unconditionally
8156 delegate.
8157 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8158 TARGET_DEFAULT_RETURN.
8159
8160 2014-02-19 Tom Tromey <tromey@redhat.com>
8161
8162 * target-delegates.c: Rebuild.
8163 * target.c (target_insert_mask_watchpoint): Unconditionally
8164 delegate.
8165 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8166 TARGET_DEFAULT_RETURN.
8167
8168 2014-02-19 Tom Tromey <tromey@redhat.com>
8169
8170 * target-delegates.c: Rebuild.
8171 * target.c (target_ranged_break_num_registers): Unconditionally
8172 delegate.
8173 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8174 Use TARGET_DEFAULT_RETURN.
8175
8176 2014-02-19 Tom Tromey <tromey@redhat.com>
8177
8178 * target-delegates.c: Rebuild.
8179 * target.c (target_fetch_registers): Unconditionally delegate.
8180 * target.h (struct target_ops) <to_fetch_registers>: Use
8181 TARGET_DEFAULT_NORETURN.
8182
8183 2014-02-19 Tom Tromey <tromey@redhat.com>
8184
8185 * target-delegates.c: Rebuild.
8186 * target.c (update_current_target): Don't inherit or default
8187 to_stop.
8188 * target.h (struct target_ops) <to_stop>: Use
8189 TARGET_DEFAULT_IGNORE.
8190
8191 2014-02-19 Tom Tromey <tromey@redhat.com>
8192
8193 * target-delegates.c: Rebuild.
8194 * target.c (update_current_target): Don't inherit or default
8195 to_can_run_breakpoint_commands.
8196 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8197 Use TARGET_DEFAULT_RETURN.
8198
8199 2014-02-19 Tom Tromey <tromey@redhat.com>
8200
8201 * target-delegates.c: Rebuild.
8202 * target.c (update_current_target): Don't inherit or default
8203 to_supports_evaluation_of_breakpoint_conditions.
8204 * target.h (struct target_ops)
8205 <to_supports_evaluation_of_breakpoint_conditions>: Use
8206 TARGET_DEFAULT_RETURN.
8207
8208 2014-02-19 Tom Tromey <tromey@redhat.com>
8209
8210 * target-delegates.c: Rebuild.
8211 * target.c (update_current_target): Don't inherit or default
8212 to_augmented_libraries_svr4_read.
8213 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8214 Use TARGET_DEFAULT_RETURN.
8215
8216 2014-02-19 Tom Tromey <tromey@redhat.com>
8217
8218 * target-delegates.c: Rebuild.
8219 * target.c (update_current_target): Don't inherit or default
8220 to_can_use_agent.
8221 * target.h (struct target_ops) <to_can_use_agent>: Use
8222 TARGET_DEFAULT_RETURN.
8223
8224 2014-02-19 Tom Tromey <tromey@redhat.com>
8225
8226 * target-delegates.c: Rebuild.
8227 * target.c (update_current_target): Don't inherit or default
8228 to_use_agent.
8229 * target.h (struct target_ops) <to_use_agent>: Use
8230 TARGET_DEFAULT_NORETURN.
8231
8232 2014-02-19 Tom Tromey <tromey@redhat.com>
8233
8234 * target-delegates.c: Rebuild.
8235 * target.c (update_current_target): Don't inherit or default
8236 to_traceframe_info.
8237 (return_null): Remove.
8238 * target.h (struct target_ops) <to_traceframe_info>: Use
8239 TARGET_DEFAULT_RETURN.
8240
8241 2014-02-19 Tom Tromey <tromey@redhat.com>
8242
8243 * target-delegates.c: Rebuild.
8244 * target.c (update_current_target): Don't inherit or default
8245 to_static_tracepoint_markers_by_strid.
8246 * target.h (struct target_ops)
8247 <to_static_tracepoint_markers_by_strid>: Use
8248 TARGET_DEFAULT_NORETURN.
8249
8250 2014-02-19 Tom Tromey <tromey@redhat.com>
8251
8252 * target-delegates.c: Rebuild.
8253 * target.c (update_current_target): Don't inherit or default
8254 to_static_tracepoint_marker_at.
8255 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8256 Use TARGET_DEFAULT_RETURN.
8257
8258 2014-02-19 Tom Tromey <tromey@redhat.com>
8259
8260 * target-delegates.c: Rebuild.
8261 * target.c (update_current_target): Don't inherit or default
8262 to_set_permissions.
8263 * target.h (struct target_ops) <to_set_permissions>: Use
8264 TARGET_DEFAULT_IGNORE.
8265
8266 2014-02-19 Tom Tromey <tromey@redhat.com>
8267
8268 * target-delegates.c: Rebuild.
8269 * target.c (update_current_target): Don't inherit or default
8270 to_get_tib_address.
8271 * target.h (struct target_ops) <to_get_tib_address>: Use
8272 TARGET_DEFAULT_NORETURN.
8273
8274 2014-02-19 Tom Tromey <tromey@redhat.com>
8275
8276 * target-delegates.c: Rebuild.
8277 * target.c (update_current_target): Don't inherit or default
8278 to_set_trace_notes.
8279 * target.h (struct target_ops) <to_set_trace_notes>: Use
8280 TARGET_DEFAULT_RETURN.
8281
8282 2014-02-19 Tom Tromey <tromey@redhat.com>
8283
8284 * target-delegates.c: Rebuild.
8285 * target.c (update_current_target): Don't initialize
8286 to_set_trace_buffer_size.
8287 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8288 TARGET_DEFAULT_IGNORE.
8289
8290 2014-02-19 Tom Tromey <tromey@redhat.com>
8291
8292 * target-delegates.c: Rebuild.
8293 * target.c (update_current_target): Don't inherit or default
8294 to_set_circular_trace_buffer.
8295 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8296 TARGET_DEFAULT_IGNORE.
8297
8298 2014-02-19 Tom Tromey <tromey@redhat.com>
8299
8300 * target-delegates.c: Rebuild.
8301 * target.c (update_current_target): Don't inherit or default
8302 to_set_disconnected_tracing.
8303 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8304 TARGET_DEFAULT_IGNORE.
8305
8306 2014-02-19 Tom Tromey <tromey@redhat.com>
8307
8308 * target-delegates.c: Rebuild.
8309 * target.c (update_current_target): Don't inherit or default
8310 to_get_min_fast_tracepoint_insn_len.
8311 (return_minus_one): Remove.
8312 * target.h (struct target_ops)
8313 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8314
8315 2014-02-19 Tom Tromey <tromey@redhat.com>
8316
8317 * target-delegates.c: Rebuild.
8318 * target.c (update_current_target): Don't inherit or default
8319 to_get_raw_trace_data.
8320 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8321 TARGET_DEFAULT_NORETURN.
8322
8323 2014-02-19 Tom Tromey <tromey@redhat.com>
8324
8325 * target-delegates.c: Rebuild.
8326 * target.c (update_current_target): Don't inherit or default
8327 to_upload_trace_state_variables.
8328 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8329 Use TARGET_DEFAULT_RETURN.
8330
8331 2014-02-19 Tom Tromey <tromey@redhat.com>
8332
8333 * target-delegates.c: Rebuild.
8334 * target.c (update_current_target): Don't inherit or default
8335 to_upload_tracepoints.
8336 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8337 TARGET_DEFAULT_RETURN.
8338
8339 2014-02-19 Tom Tromey <tromey@redhat.com>
8340
8341 * target-delegates.c: Rebuild.
8342 * target.c (update_current_target): Don't inherit or default
8343 to_save_trace_data.
8344 * target.h (struct target_ops) <to_save_trace_data>: Use
8345 TARGET_DEFAULT_NORETURN.
8346
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8348
8349 * target-delegates.c: Rebuild.
8350 * target.c (update_current_target): Don't inherit or default
8351 to_get_trace_state_variable_value.
8352 * target.h (struct target_ops)
8353 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8354
8355 2014-02-19 Tom Tromey <tromey@redhat.com>
8356
8357 * target-delegates.c: Rebuild.
8358 * target.c (update_current_target): Don't inherit or default
8359 to_trace_find.
8360 * target.h (struct target_ops): Use 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_trace_stop.
8367 * target.h (struct target_ops) <to_trace_stop>: Use
8368 TARGET_DEFAULT_NORETURN.
8369
8370 2014-02-19 Tom Tromey <tromey@redhat.com>
8371
8372 * target-delegates.c: Rebuild.
8373 * target.c (update_current_target): Don't inherit or default
8374 to_get_tracepoint_status.
8375 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8376 TARGET_DEFAULT_NORETURN.
8377
8378 2014-02-19 Tom Tromey <tromey@redhat.com>
8379
8380 * target-delegates.c: Rebuild.
8381 * target.c (update_current_target): Don't inherit or default
8382 to_get_trace_status.
8383 * target.h (struct target_ops) <to_get_trace_status>: Use
8384 TARGET_DEFAULT_RETURN.
8385
8386 2014-02-19 Tom Tromey <tromey@redhat.com>
8387
8388 * target-delegates.c: Rebuild.
8389 * target.c (update_current_target): Don't inherit or default
8390 to_trace_start.
8391 * target.h (struct target_ops) <to_trace_start>: Use
8392 TARGET_DEFAULT_NORETURN.
8393
8394 2014-02-19 Tom Tromey <tromey@redhat.com>
8395
8396 * target-delegates.c: Rebuild.
8397 * target.c (update_current_target): Don't inherit or default
8398 to_trace_set_readonly_regions.
8399 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8400 Use TARGET_DEFAULT_NORETURN.
8401
8402 2014-02-19 Tom Tromey <tromey@redhat.com>
8403
8404 * target-delegates.c: Rebuild.
8405 * target.c (update_current_target): Don't inherit or default
8406 to_disable_tracepoint.
8407 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8408 TARGET_DEFAULT_NORETURN.
8409
8410 2014-02-19 Tom Tromey <tromey@redhat.com>
8411
8412 * target-delegates.c: Rebuild.
8413 * target.c (update_current_target): Don't inherit or default
8414 to_enable_tracepoint.
8415 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8416 TARGET_DEFAULT_NORETURN.
8417
8418 2014-02-19 Tom Tromey <tromey@redhat.com>
8419
8420 * target-delegates.c: Rebuild.
8421 * target.c (update_current_target): Don't inherit or default
8422 to_download_trace_state_variable.
8423 * target.h (struct target_ops) <to_download_trace_state_variable>:
8424 Use TARGET_DEFAULT_NORETURN.
8425
8426 2014-02-19 Tom Tromey <tromey@redhat.com>
8427
8428 * target-delegates.c: Rebuild.
8429 * target.c (update_current_target): Don't inherit or default
8430 to_can_download_tracepoint.
8431 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8432 TARGET_DEFAULT_RETURN.
8433
8434 2014-02-19 Tom Tromey <tromey@redhat.com>
8435
8436 * target-delegates.c: Rebuild.
8437 * target.c (update_current_target): Don't inherit or default
8438 to_download_tracepoint.
8439 * target.h (struct target_ops) <to_download_tracepoint>: Use
8440 TARGET_DEFAULT_NORETURN.
8441
8442 2014-02-19 Tom Tromey <tromey@redhat.com>
8443
8444 * target-delegates.c: Rebuild.
8445 * target.c (update_current_target): Don't inherit or default
8446 to_trace_init.
8447 * target.h (struct target_ops) <to_trace_init>: Use
8448 TARGET_DEFAULT_RETURN.
8449
8450 2014-02-19 Tom Tromey <tromey@redhat.com>
8451
8452 * target-delegates.c: Rebuild.
8453 * target.c (update_current_target): Don't inherit or default
8454 to_supports_string_tracing.
8455 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8456 TARGET_DEFAULT_RETURN.
8457
8458 2014-02-19 Tom Tromey <tromey@redhat.com>
8459
8460 * target-delegates.c: Rebuild.
8461 * target.c (update_current_target): Don't inherit or default
8462 to_supports_enable_disable_tracepoint.
8463 * target.h (struct target_ops)
8464 <to_supports_enable_disable_tracepoint>: Use
8465 TARGET_DEFAULT_RETURN.
8466
8467 2014-02-19 Tom Tromey <tromey@redhat.com>
8468
8469 * target-delegates.c: Rebuild.
8470 * target.c (update_current_target): Don't inherit or default
8471 to_supports_multi_process.
8472 * target.h (struct target_ops) <to_supports_multi_process>: Use
8473 TARGET_DEFAULT_RETURN.
8474
8475 2014-02-19 Tom Tromey <tromey@redhat.com>
8476
8477 * target-delegates.c: Rebuild.
8478 * target.c (update_current_target): Don't inherit or default
8479 to_get_ada_task_ptid.
8480 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8481 TARGET_DEFAULT_FUNC.
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_thread_architecture.
8488 * target.h (struct target_ops) <to_thread_architecture>: Use
8489 TARGET_DEFAULT_FUNC.
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_execution_direction.
8496 * target.h (struct target_ops) <to_execution_direction>: Use
8497 TARGET_DEFAULT_FUNC.
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_can_execute_reverse.
8504 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8505 TARGET_DEFAULT_RETURN.
8506 (target_can_execute_reverse): Unconditionally delegate.
8507
8508 2014-02-19 Tom Tromey <tromey@redhat.com>
8509
8510 * target-delegates.c: Rebuild.
8511 * target.c (update_current_target): Don't inherit or default
8512 to_goto_bookmark.
8513 (dummy_goto_bookmark): Remove.
8514 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8515 * target.h (struct target_ops) <to_goto_bookmark>: Use
8516 TARGET_DEFAULT_NORETURN.
8517
8518 2014-02-19 Tom Tromey <tromey@redhat.com>
8519
8520 * target-delegates.c: Rebuild.
8521 * target.c (update_current_target): Don't inherit or default
8522 to_get_bookmark.
8523 (dummy_get_bookmark): Remove.
8524 (init_dummy_target): Don't inherit or default to_get_bookmark.
8525 * target.h (struct target_ops) <to_get_bookmark>: Use
8526 TARGET_DEFAULT_NORETURN
8527
8528 2014-02-19 Tom Tromey <tromey@redhat.com>
8529
8530 * target-delegates.c: Rebuild.
8531 * target.c (update_current_target): Don't inherit or default
8532 to_make_corefile_notes.
8533 (init_dummy_target): Don't initialize to_make_corefile_notes.
8534 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8535 TARGET_DEFAULT_FUNC.
8536
8537 2014-02-19 Tom Tromey <tromey@redhat.com>
8538
8539 * target-delegates.c: Rebuild.
8540 * target.c (update_current_target): Don't inherit or default
8541 to_find_memory_regions.
8542 (init_dummy_target): Don't initialize to_find_memory_regions.
8543 * target.h (struct target_ops) <to_find_memory_regions>: Use
8544 TARGET_DEFAULT_FUNC.
8545
8546 2014-02-19 Tom Tromey <tromey@redhat.com>
8547
8548 * target-delegates.c: Rebuild.
8549 * target.c (update_current_target): Don't inherit or default
8550 to_log_command.
8551 * target.h (struct target_ops) <to_log_command>: Use
8552 TARGET_DEFAULT_IGNORE.
8553 (target_log_command): Unconditionally delegate.
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_pid_to_exec_file.
8560 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8561 TARGET_DEFAULT_RETURN.
8562
8563 2014-02-19 Tom Tromey <tromey@redhat.com>
8564
8565 * target-delegates.c: Rebuild.
8566 * target.c (update_current_target): Don't inherit or default
8567 to_thread_name.
8568 (target_thread_name): Unconditionally delegate.
8569 * target.h (struct target_ops) <to_thread_name>: Use
8570 TARGET_DEFAULT_RETURN.
8571
8572 2014-02-19 Tom Tromey <tromey@redhat.com>
8573
8574 * target-delegates.c: Rebuild.
8575 * target.c (update_current_target): Don't inherit or default
8576 to_extra_thread_info.
8577 * target.h (struct target_ops) <to_extra_thread_info>: Use
8578 TARGET_DEFAULT_RETURN.
8579
8580 2014-02-19 Tom Tromey <tromey@redhat.com>
8581
8582 * target-delegates.c: Rebuild.
8583 * target.c (update_current_target): Don't inherit or default
8584 to_has_exited.
8585 * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
8593 (return_one): Remove.
8594 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8595 TARGET_DEFAULT_RETURN.
8596
8597 2014-02-19 Tom Tromey <tromey@redhat.com>
8598
8599 * target-delegates.c: Rebuild.
8600 * target.c (update_current_target): Don't inherit or default
8601 to_insert_exec_catchpoint.
8602 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8603 TARGET_DEFAULT_RETURN.
8604
8605 2014-01-08 Tom Tromey <tromey@redhat.com>
8606
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8609 to_insert_exec_catchpoint.
8610 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8611 TARGET_DEFAULT_RETURN.
8612
8613 2014-02-19 Tom Tromey <tromey@redhat.com>
8614
8615 * target-delegates.c: Rebuild.
8616 * target.c (update_current_target): Don't inherit or default
8617 to_remove_vfork_catchpoint.
8618 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8619 TARGET_DEFAULT_RETURN.
8620
8621 2014-02-19 Tom Tromey <tromey@redhat.com>
8622
8623 * target-delegates.c: Rebuild.
8624 * target.c (update_current_target): Don't inherit or default
8625 to_insert_vfork_catchpoint.
8626 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8627 TARGET_DEFAULT_RETURN.
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_remove_fork_catchpoint.
8634 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8635 TARGET_DEFAULT_RETURN.
8636
8637 2014-02-19 Tom Tromey <tromey@redhat.com>
8638
8639 * target-delegates.c: Rebuild.
8640 * target.c (update_current_target): Don't inherit or default
8641 to_insert_fork_catchpoint.
8642 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8643 TARGET_DEFAULT_RETURN.
8644
8645 2014-02-19 Tom Tromey <tromey@redhat.com>
8646
8647 * target-delegates.c: Rebuild.
8648 * target.c (update_current_target): Don't inherit or default
8649 to_post_startup_inferior.
8650 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8651 TARGET_DEFAULT_IGNORE.
8652
8653 2014-02-19 Tom Tromey <tromey@redhat.com>
8654
8655 * target-delegates.c: Rebuild.
8656 * target.c (update_current_target): Don't inherit or default
8657 to_load.
8658 * target.h (struct target_ops) <to_load>: Use
8659 TARGET_DEFAULT_NORETURN.
8660
8661 2014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * target-delegates.c: Rebuild.
8664 * target.c (update_current_target): Don't inherit or default
8665 to_terminal_info.
8666 * target.h (struct target_ops) <to_terminal_info>: Use
8667 TARGET_DEFAULT_FUNC.
8668
8669 2014-02-19 Tom Tromey <tromey@redhat.com>
8670
8671 * target-delegates.c: Rebuild.
8672 * target.c (update_current_target): Don't inherit or default
8673 to_terminal_save_ours.
8674 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8675 TARGET_DEFAULT_IGNORE.
8676
8677 2014-02-19 Tom Tromey <tromey@redhat.com>
8678
8679 * target-delegates.c: Rebuild.
8680 * target.c (update_current_target): Don't inherit or default
8681 to_terminal_ours.
8682 * target.h (struct target_ops) <to_terminal_ours>: Use
8683 TARGET_DEFAULT_IGNORE.
8684
8685 2014-02-19 Tom Tromey <tromey@redhat.com>
8686
8687 * target-delegates.c: Rebuild.
8688 * target.c (update_current_target): Don't inherit or default
8689 to_terminal_ours_for_output.
8690 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8691 TARGET_DEFAULT_IGNORE.
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_terminal_inferior.
8698 * target.h (struct target_ops) <to_terminal_inferior>: Use
8699 TARGET_DEFAULT_IGNORE.
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_terminal_init.
8706 * target.h (struct target_ops) <to_terminal_init>: Use
8707 TARGET_DEFAULT_IGNORE.
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_can_accel_watchpoint_condition.
8714 * target.h (struct target_ops)
8715 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8716
8717 2014-02-19 Tom Tromey <tromey@redhat.com>
8718
8719 * target-delegates.c: Rebuild.
8720 * target.c (update_current_target): Don't inherit or default
8721 to_region_ok_for_hw_watchpoint.
8722 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8723 Use TARGET_DEFAULT_FUNC.
8724
8725 2014-02-19 Tom Tromey <tromey@redhat.com>
8726
8727 * target-delegates.c: Rebuild.
8728 * target.c (update_current_target): Don't inherit or default
8729 to_watchpoint_addr_within_range.
8730 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8731 Use TARGET_DEFAULT_FUNC.
8732
8733 2014-02-19 Tom Tromey <tromey@redhat.com>
8734
8735 * target-delegates.c: Rebuild.
8736 * target.c (update_current_target): Don't inherit or default
8737 to_remove_watchpoint.
8738 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8739 TARGET_DEFAULT_NORETURN.
8740
8741 2014-02-19 Tom Tromey <tromey@redhat.com>
8742
8743 * target-delegates.c: Rebuild.
8744 * target.c (update_current_target): Don't inherit or default
8745 to_insert_watchpoint.
8746 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8747 TARGET_DEFAULT_RETURN.
8748
8749 2014-02-19 Tom Tromey <tromey@redhat.com>
8750
8751 * target-delegates.c: Rebuild.
8752 * target.c (update_current_target): Don't inherit or default
8753 to_remove_hw_breakpoint.
8754 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8755 TARGET_DEFAULT_RETURN.
8756
8757 2014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't inherit or default
8761 to_insert_hw_breakpoint.
8762 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8763 TARGET_DEFAULT_RETURN.
8764
8765 2014-02-19 Tom Tromey <tromey@redhat.com>
8766
8767 * target-delegates.c: Rebuild.
8768 * target.c (update_current_target): Don't inherit or default
8769 to_can_use_hw_breakpoint.
8770 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8771 TARGET_DEFAULT_RETURN.
8772
8773 2014-02-19 Tom Tromey <tromey@redhat.com>
8774
8775 * target-delegates.c: Rebuild.
8776 * target.c (update_current_target): Don't inherit or default
8777 to_files_info.
8778 * target.h (struct target_ops) <to_files_info>: Use
8779 TARGET_DEFAULT_IGNORE.
8780
8781 2014-02-19 Tom Tromey <tromey@redhat.com>
8782
8783 * target-delegates.c: Rebuild.
8784 * target.c (update_current_target): Don't inherit or default
8785 to_store.
8786 * target.h (struct target_ops) <to_store>: Use
8787 TARGET_DEFAULT_NORETURN.
8788
8789 2014-02-19 Tom Tromey <tromey@redhat.com>
8790
8791 * target-delegates.c: Rebuild.
8792 * target.c (update_current_target): Don't inherit or default
8793 to_post_attach.
8794 * target.h (struct target_ops) <to_post_attach>: Use
8795 TARGET_DEFAULT_IGNORE.
8796
8797 2014-02-19 Tom Tromey <tromey@redhat.com>
8798
8799 * target-delegates.c: Rebuild.
8800 * target.c (update_current_target): Don't inherit or default
8801 to_rcmd.
8802 (default_rcmd): New function.
8803 (do_monitor_command): Unconditionally delegate.
8804 * target.h (struct target_ops) <to_rmcd>: Use
8805 TARGET_DEFAULT_FUNC.
8806
8807 2014-02-19 Tom Tromey <tromey@redhat.com>
8808
8809 * target-delegates.c: Rebuild.
8810 * target.c (init_dummy_target): Don't initialize to_attach.
8811 (target_attach): Unconditionally delegate.
8812 * target.h (struct target_ops) <to_attach>: Use
8813 TARGET_DEFAULT_FUNC.
8814
8815 2014-02-19 Tom Tromey <tromey@redhat.com>
8816
8817 * target-delegates.c: Rebuild.
8818 * target.c (target_detach): Unconditionally delegate.
8819 (init_dummy_target): Don't initialize to_detach.
8820 * target.h (struct target_ops) <to_detach>: Use
8821 TARGET_DEFAULT_IGNORE.
8822
8823 2014-02-19 Tom Tromey <tromey@redhat.com>
8824
8825 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8826 Add argument.
8827 (target_augmented_libraries_svr4_read): Add argument.
8828 * target.c (update_current_target): Update.
8829 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8830 argument.
8831
8832 2014-02-19 Tom Tromey <tromey@redhat.com>
8833
8834 * target.h (struct target_ops) <to_call_history_range>: Add
8835 argument.
8836 * target.c (target_call_history_range): Add argument.
8837 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8838 argument.
8839 (record_btrace_call_history_from): Update.
8840
8841 2014-02-19 Tom Tromey <tromey@redhat.com>
8842
8843 * target.h (struct target_ops) <to_call_history_from>: Add
8844 argument.
8845 * target.c (target_call_history_from): Add argument.
8846 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8847 argument.
8848
8849 2014-02-19 Tom Tromey <tromey@redhat.com>
8850
8851 * target.h (struct target_ops) <to_call_history>: Add argument.
8852 * target.c (target_call_history): Add argument.
8853 * record-btrace.c (record_btrace_call_history): Add 'self'
8854 argument.
8855
8856 2014-02-19 Tom Tromey <tromey@redhat.com>
8857
8858 * target.h (struct target_ops) <to_insn_history_range>: Add
8859 argument.
8860 * target.c (target_insn_history_range): Add argument.
8861 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8862 argument.
8863 (record_btrace_insn_history_from): Update.
8864
8865 2014-02-19 Tom Tromey <tromey@redhat.com>
8866
8867 * target.h (struct target_ops) <to_insn_history_from>: Add
8868 argument.
8869 * target.c (target_insn_history_from): Add argument.
8870 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8871 argument.
8872
8873 2014-02-19 Tom Tromey <tromey@redhat.com>
8874
8875 * target.h (struct target_ops) <to_insn_history>: Add argument.
8876 * target.c (target_insn_history): Add argument.
8877 * record-btrace.c (record_btrace_insn_history): Add 'self'
8878 argument.
8879
8880 2014-02-19 Tom Tromey <tromey@redhat.com>
8881
8882 * target.h (struct target_ops) <to_goto_record>: Add argument.
8883 * target.c (target_goto_record): Add argument.
8884 * record-full.c (record_full_goto): Add 'self' argument.
8885 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8886
8887 2014-02-19 Tom Tromey <tromey@redhat.com>
8888
8889 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8890 * target.c (target_goto_record_end): Add argument.
8891 * record-full.c (record_full_goto_end): Add 'self' argument.
8892 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8893
8894 2014-02-19 Tom Tromey <tromey@redhat.com>
8895
8896 * target.h (struct target_ops) <to_goto_record_begin>: Add
8897 argument.
8898 * target.c (target_goto_record_begin): Add argument.
8899 * record-full.c (record_full_goto_begin): Add 'self' argument.
8900 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8901 argument.
8902
8903 2014-02-19 Tom Tromey <tromey@redhat.com>
8904
8905 * target.h (struct target_ops) <to_record_is_replaying>: Add
8906 argument.
8907 * target.c (target_record_is_replaying): Add argument.
8908 * record-full.c (record_full_is_replaying): Add 'self' argument.
8909 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8910 argument.
8911 (record_btrace_xfer_partial, record_btrace_store_registers)
8912 (record_btrace_prepare_to_store, record_btrace_resume)
8913 (record_btrace_wait, record_btrace_decr_pc_after_break)
8914 (record_btrace_find_new_threads, record_btrace_thread_alive):
8915 Update.
8916
8917 2014-02-19 Tom Tromey <tromey@redhat.com>
8918
8919 * target.h (struct target_ops) <to_delete_record>: Add argument.
8920 * target.c (target_delete_record): Add argument.
8921 * record-full.c (record_full_delete): Add 'self' argument.
8922
8923 2014-02-19 Tom Tromey <tromey@redhat.com>
8924
8925 * target.h (struct target_ops) <to_save_record>: Add argument.
8926 * target.c (target_save_record): Add argument.
8927 * record-full.c (record_full_save): Add 'self' argument.
8928 (record_full_save): Add 'self' argument.
8929
8930 2014-02-19 Tom Tromey <tromey@redhat.com>
8931
8932 * target.h (struct target_ops) <to_info_record>: Add argument.
8933 * target.c (target_info_record): Add argument.
8934 * record.c (info_record_command): Add argument.
8935 * record-full.c (record_full_info): Add 'self' argument.
8936 * record-btrace.c (record_btrace_info): Add 'self' argument.
8937
8938 2014-02-19 Tom Tromey <tromey@redhat.com>
8939
8940 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8941 * target.c (target_stop_recording): Add argument.
8942 * record.c (record_stop): Add argument.
8943 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8944 argument.
8945
8946 2014-02-19 Tom Tromey <tromey@redhat.com>
8947
8948 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8949 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8950 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8951 argument.
8952 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8953 (_initialize_amd64_linux_nat): Use it.
8954 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8955 (_initialize_i386_linux_nat): Use it.
8956
8957 2014-02-19 Tom Tromey <tromey@redhat.com>
8958
8959 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8960 * target.c (target_teardown_btrace): Add argument.
8961 * remote.c (remote_teardown_btrace): Add 'self' argument.
8962 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8963 argument.
8964 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8965 argument.
8966
8967 2014-02-19 Tom Tromey <tromey@redhat.com>
8968
8969 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8970 * target.c (target_disable_btrace): Add argument.
8971 * remote.c (remote_disable_btrace): Add 'self' argument.
8972 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8973 argument.
8974 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8975 argument.
8976
8977 2014-02-19 Tom Tromey <tromey@redhat.com>
8978
8979 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8980 * target.c (target_enable_btrace): Add argument.
8981 * remote.c (remote_enable_btrace): Add 'self' argument.
8982 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8983 argument.
8984 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8985 argument.
8986
8987 2014-02-19 Tom Tromey <tromey@redhat.com>
8988
8989 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8990 (target_can_use_agent): Add argument.
8991 * target.c (update_current_target): Update.
8992 * remote.c (remote_can_use_agent): Add 'self' argument.
8993 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8994
8995 2014-02-19 Tom Tromey <tromey@redhat.com>
8996
8997 * target.h (struct target_ops) <to_use_agent>: Add argument.
8998 (target_use_agent): Add argument.
8999 * target.c (update_current_target): Update.
9000 * remote.c (remote_use_agent): Add 'self' argument.
9001 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9002
9003 2014-02-19 Tom Tromey <tromey@redhat.com>
9004
9005 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9006 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9007 (target_traceframe_info): Add argument.
9008 * target.c (update_current_target): Update.
9009 * remote.c (remote_traceframe_info): Add 'self' argument.
9010 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9011
9012 2014-02-19 Tom Tromey <tromey@redhat.com>
9013
9014 * target.h (target_static_tracepoint_markers_by_strid): Add
9015 argument.
9016 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9017 'self' argument.
9018 * target.c (update_current_target): Update.
9019 * remote.c (struct target_ops)
9020 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9021 * linux-nat.c (struct target_ops)
9022 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9023
9024 2014-02-19 Tom Tromey <tromey@redhat.com>
9025
9026 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9027 Add argument.
9028 (target_static_tracepoint_marker_at): Add argument.
9029 * target.c (update_current_target): Update.
9030 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9031 argument.
9032
9033 2014-02-19 Tom Tromey <tromey@redhat.com>
9034
9035 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9036 (target_set_permissions): Add argument.
9037 * target.c (update_current_target): Update.
9038 * remote.c (remote_set_permissions): Add 'self' argument.
9039 (remote_start_remote): Update.
9040
9041 2014-02-19 Tom Tromey <tromey@redhat.com>
9042
9043 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9044 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9045 (target_get_tib_address): Add argument.
9046 * target.c (update_current_target): Update.
9047 * remote.c (remote_get_tib_address): Add 'self' argument.
9048
9049 2014-02-19 Tom Tromey <tromey@redhat.com>
9050
9051 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9052 (target_set_trace_notes): Add argument.
9053 * target.c (update_current_target): Update.
9054 * remote.c (remote_set_trace_notes): Add 'self' argument.
9055
9056 2014-02-19 Tom Tromey <tromey@redhat.com>
9057
9058 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9059 argument.
9060 (target_set_trace_buffer_size): Add argument.
9061 * target.c (update_current_target): Update.
9062 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9063
9064 2014-02-19 Tom Tromey <tromey@redhat.com>
9065
9066 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9067 argument.
9068 (target_set_circular_trace_buffer): Add argument.
9069 * target.c (update_current_target): Update.
9070 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9071 argument.
9072
9073 2014-02-19 Tom Tromey <tromey@redhat.com>
9074
9075 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9076 argument.
9077 (target_set_disconnected_tracing): Add argument.
9078 * target.c (update_current_target): Update.
9079 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9080
9081 2014-02-19 Tom Tromey <tromey@redhat.com>
9082
9083 * target.h (struct target_ops)
9084 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9085 (target_get_min_fast_tracepoint_insn_len): Add argument.
9086 * target.c (update_current_target): Update.
9087 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9088 argument.
9089
9090 2014-02-19 Tom Tromey <tromey@redhat.com>
9091
9092 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9093 argument.
9094 (target_get_raw_trace_data): Add argument.
9095 * target.c (update_current_target): Update.
9096 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9097
9098 2014-02-19 Tom Tromey <tromey@redhat.com>
9099
9100 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9101 Add argument.
9102 (target_upload_trace_state_variables): Add argument.
9103 * target.c (update_current_target): Update.
9104 * remote.c (remote_upload_trace_state_variables): Add 'self'
9105 argument.
9106 (remote_start_remote): Update.
9107
9108 2014-02-19 Tom Tromey <tromey@redhat.com>
9109
9110 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9111 argument.
9112 (target_upload_tracepoints): Add argument.
9113 * target.c (update_current_target): Update.
9114 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9115 (remote_start_remote): Update.
9116
9117 2014-02-19 Tom Tromey <tromey@redhat.com>
9118
9119 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9120 (target_save_trace_data): Add argument.
9121 * target.c (update_current_target): Update.
9122 * remote.c (remote_save_trace_data): Add 'self' argument.
9123
9124 2014-02-19 Tom Tromey <tromey@redhat.com>
9125
9126 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9127 argument.
9128 * target.h (struct target_ops)
9129 <to_get_trace_state_variable_value>: Add argument.
9130 (target_get_trace_state_variable_value): Add argument.
9131 * target.c (update_current_target): Update.
9132 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9133 argument.
9134 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9135
9136 2014-02-19 Tom Tromey <tromey@redhat.com>
9137
9138 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9139 * target.h (struct target_ops) <to_trace_find>: Add argument.
9140 (target_trace_find): Add argument.
9141 * target.c (update_current_target): Update.
9142 * remote.c (remote_trace_find): Add 'self' argument.
9143 * ctf.c (ctf_trace_find): Add 'self' argument.
9144
9145 2014-02-19 Tom Tromey <tromey@redhat.com>
9146
9147 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9148 (target_trace_stop): Add argument.
9149 * target.c (update_current_target): Update.
9150 * remote.c (remote_trace_stop): Add 'self' argument.
9151
9152 2014-02-19 Tom Tromey <tromey@redhat.com>
9153
9154 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9155 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9156 argument.
9157 (target_get_tracepoint_status): Add argument.
9158 * target.c (update_current_target): Update.
9159 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9160
9161 2014-02-19 Tom Tromey <tromey@redhat.com>
9162
9163 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9164 * target.h (struct target_ops) <to_get_trace_status>: Add
9165 argument.
9166 (target_get_trace_status): Add argument.
9167 * target.c (update_current_target): Update.
9168 * remote.c (remote_get_trace_status): Add 'self' argument.
9169 (remote_start_remote, remote_can_download_tracepoint): Update.
9170 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9171
9172 2014-02-19 Tom Tromey <tromey@redhat.com>
9173
9174 * target.h (struct target_ops) <to_trace_start>: Add argument.
9175 (target_trace_start): Add argument.
9176 * target.c (update_current_target): Update.
9177 * remote.c (remote_trace_start): Add 'self' argument.
9178
9179 2014-02-19 Tom Tromey <tromey@redhat.com>
9180
9181 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9182 Add argument.
9183 (target_trace_set_readonly_regions): Add argument.
9184 * target.c (update_current_target): Update.
9185 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9186 argument.
9187
9188 2014-02-19 Tom Tromey <tromey@redhat.com>
9189
9190 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9191 argument.
9192 (target_disable_tracepoint): Add argument.
9193 * target.c (update_current_target): Update.
9194 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9195
9196 2014-02-19 Tom Tromey <tromey@redhat.com>
9197
9198 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9199 argument.
9200 (target_enable_tracepoint): Add argument.
9201 * target.c (update_current_target): Update.
9202 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9203
9204 2014-02-19 Tom Tromey <tromey@redhat.com>
9205
9206 * target.h (struct target_ops) <to_download_trace_state_variable>:
9207 Add argument.
9208 (target_download_trace_state_variable): Add argument.
9209 * target.c (update_current_target): Update.
9210 * remote.c (remote_download_trace_state_variable): Add 'self'
9211 argument.
9212
9213 2014-02-19 Tom Tromey <tromey@redhat.com>
9214
9215 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9216 argument.
9217 (target_can_download_tracepoint): Add argument.
9218 * target.c (update_current_target): Update.
9219 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9220
9221 2014-02-19 Tom Tromey <tromey@redhat.com>
9222
9223 * target.h (struct target_ops) <to_download_tracepoint>: Add
9224 argument.
9225 (target_download_tracepoint): Add argument.
9226 * target.c (update_current_target): Update.
9227 * remote.c (remote_download_tracepoint): Add 'self' argument.
9228
9229 2014-02-19 Tom Tromey <tromey@redhat.com>
9230
9231 * target.h (struct target_ops) <to_trace_init>: Add argument.
9232 (target_trace_init): Add argument.
9233 * target.c (update_current_target): Update.
9234 * remote.c (remote_trace_init): Add 'self' argument.
9235
9236 2014-02-19 Tom Tromey <tromey@redhat.com>
9237
9238 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9239 * target.c (target_fileio_readlink): Add argument.
9240 * remote.c (remote_hostio_readlink): Add 'self' argument.
9241 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9242
9243 2014-02-19 Tom Tromey <tromey@redhat.com>
9244
9245 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9246 * target.c (target_fileio_unlink): Add argument.
9247 * remote.c (remote_hostio_unlink): Add 'self' argument.
9248 (remote_file_delete): Update.
9249 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9250
9251 2014-02-19 Tom Tromey <tromey@redhat.com>
9252
9253 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9254 * target.c (target_fileio_close): Add argument.
9255 * remote.c (remote_hostio_close): Add 'self' argument.
9256 (remote_hostio_close_cleanup): Update.
9257 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9258 Update.
9259 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9260
9261 2014-02-19 Tom Tromey <tromey@redhat.com>
9262
9263 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9264 * target.c (target_fileio_pread): Add argument.
9265 * remote.c (remote_hostio_pread): Add 'self' argument.
9266 (remote_bfd_iovec_pread, remote_file_get): Update.
9267 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9268
9269 2014-02-19 Tom Tromey <tromey@redhat.com>
9270
9271 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9272 * target.c (target_fileio_pwrite): Add argument.
9273 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9274 (remote_file_put): Update.
9275 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9276
9277 2014-02-19 Tom Tromey <tromey@redhat.com>
9278
9279 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9280 * target.c (target_fileio_open): Add argument.
9281 * remote.c (remote_hostio_open): Add 'self' argument.
9282 (remote_bfd_iovec_open): Add 'self' argument.
9283 (remote_file_put): Add 'self' argument.
9284 (remote_file_get): Add 'self' argument.
9285 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9286
9287 2014-02-19 Tom Tromey <tromey@redhat.com>
9288
9289 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9290 Add argument.
9291 (target_can_run_breakpoint_commands): Add argument.
9292 * target.c (update_current_target): Update.
9293 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9294 argument.
9295 (remote_insert_breakpoint): Add 'self' argument.
9296 (remote_insert_hw_breakpoint): Add 'self' argument.
9297 (remote_can_run_breakpoint_commands): Add 'self' argument.
9298
9299 2014-02-19 Tom Tromey <tromey@redhat.com>
9300
9301 * target.h (struct target_ops)
9302 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9303 (target_supports_evaluation_of_breakpoint_conditions): Add
9304 argument.
9305 * target.c (update_current_target): Update.
9306 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9307 argument.
9308 (remote_insert_breakpoint): Add 'self' argument.
9309 (remote_insert_hw_breakpoint): Add 'self' argument.
9310 (remote_supports_cond_breakpoints): Add 'self' argument.
9311
9312 2014-02-19 Tom Tromey <tromey@redhat.com>
9313
9314 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9315 argument.
9316 (target_supports_string_tracing): Add argument.
9317 * target.c (update_current_target): Update.
9318 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9319
9320 2014-02-19 Tom Tromey <tromey@redhat.com>
9321
9322 * target.h (struct target_ops)
9323 <to_supports_disable_randomization>: Add argument.
9324 * target.c (find_default_supports_disable_randomization): Add
9325 argument.
9326 (target_supports_disable_randomization): Add argument.
9327 (find_default_supports_disable_randomization): Add 'self'
9328 argument.
9329 * remote.c (extended_remote_supports_disable_randomization): Add
9330 'self' argument.
9331 (remote_supports_disable_randomization): Add 'self' argument.
9332 (extended_remote_create_inferior): Update.
9333 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9334 'self' argument.
9335
9336 2014-02-19 Tom Tromey <tromey@redhat.com>
9337
9338 * target.h (struct target_ops)
9339 <to_supports_enable_disable_tracepoint>: Add argument.
9340 (target_supports_enable_disable_tracepoint): Add argument.
9341 * target.c (update_current_target): Update.
9342 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9343 argument.
9344
9345 2014-02-19 Tom Tromey <tromey@redhat.com>
9346
9347 * target.h (struct target_ops) <to_supports_multi_process>: Add
9348 argument.
9349 (target_supports_multi_process): Add argument.
9350 * target.c (update_current_target): Update.
9351 * remote.c (remote_supports_multi_process): Add 'self' argument.
9352 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9353 argument.
9354 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9355 argument.
9356
9357 2014-02-19 Tom Tromey <tromey@redhat.com>
9358
9359 * target.h (struct target_ops) <to_execution_direction>: Add
9360 argument.
9361 (target_execution_direction): Add argument.
9362 * target.c (default_execution_direction): Add 'self' argument.
9363 * record-full.c (record_full_execution_direction): Add 'self'
9364 argument.
9365
9366 2014-02-19 Tom Tromey <tromey@redhat.com>
9367
9368 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9369 argument.
9370 (target_can_execute_reverse): Add argument.
9371 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9372 * record-full.c (record_full_can_execute_reverse): Add 'self'
9373 argument.
9374 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9375 argument.
9376
9377 2014-02-19 Tom Tromey <tromey@redhat.com>
9378
9379 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9380 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9381 argument.
9382 (target_get_ada_task_ptid): Add argument.
9383 * target.c (update_current_target): Update.
9384 (default_get_ada_task_ptid): Add 'self' argument.
9385 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9386 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9387 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9388 argument.
9389 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9390 argument.
9391 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9392 argument.
9393 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9394 argument.
9395 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9396 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9397 argument.
9398
9399 2014-02-19 Tom Tromey <tromey@redhat.com>
9400
9401 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9402 (target_goto_bookmark): Add argument.
9403 * target.c (dummy_goto_bookmark): Add 'self' argument.
9404 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9405
9406 2014-02-19 Tom Tromey <tromey@redhat.com>
9407
9408 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9409 (target_get_bookmark): Add argument.
9410 * target.c (dummy_get_bookmark): Add 'self' argument.
9411 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9412
9413 2014-02-19 Tom Tromey <tromey@redhat.com>
9414
9415 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9416 argument.
9417 (target_make_corefile_notes): Add argument.
9418 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9419 * procfs.c (procfs_make_note_section): Add 'self' argument.
9420 (procfs_make_note_section): Add 'self' argument.
9421 (procfs_make_note_section): Add 'self' argument.
9422 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9423 argument.
9424 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9425 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9426 * exec.c (exec_make_note_section): Add 'self' argument.
9427 (exec_make_note_section): Add 'self' argument.
9428
9429 2014-02-19 Tom Tromey <tromey@redhat.com>
9430
9431 * target.h (struct target_ops) <to_find_memory_regions>: Add
9432 argument.
9433 (target_find_memory_regions): Add argument.
9434 * target.c (dummy_find_memory_regions): Add 'self' argument.
9435 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9436 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9437 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9438 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9439 * exec. (exec_do_find_memory_regions): New global.
9440 (exec_set_find_memory_regions): Rewrite.
9441 (exec_find_memory_regions): New function.
9442 (init_exec_ops): Use exec_find_memory_regions.
9443
9444 2014-02-19 Tom Tromey <tromey@redhat.com>
9445
9446 * target.h (struct target_ops) <to_supports_non_stop>: Add
9447 argument.
9448 * target.c (find_default_supports_non_stop): Add argument.
9449 (target_supports_non_stop): Add argument.
9450 (find_default_supports_non_stop): Add 'self' argument.
9451 * remote.c (remote_supports_non_stop): Add 'self' argument.
9452 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9453
9454 2014-02-19 Tom Tromey <tromey@redhat.com>
9455
9456 * target.h (struct target_ops) <to_log_command>: Add argument.
9457 (target_log_command): Add argument.
9458 * serial.h (serial_log_command): Add 'self' argument.
9459 * serial.c (serial_log_command): Add 'self' argument.
9460
9461 2014-02-19 Tom Tromey <tromey@redhat.com>
9462
9463 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9464 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9465 argument.
9466 (target_pid_to_exec_file): Add argument.
9467 * target.c (debug_to_pid_to_exec_file): Add argument.
9468 (update_current_target): Update.
9469 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9470 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9471 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9472 (linux_handle_extended_wait): Update.
9473 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9474 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9475 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9476 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9477
9478 2014-02-19 Tom Tromey <tromey@redhat.com>
9479
9480 * target.h (struct target_ops) <to_rcmd>: Add argument.
9481 (target_rcmd): Add argument.
9482 * target.c (debug_to_rcmd): Add argument.
9483 (update_current_target, do_monitor_command): Update.
9484 * remote.c (remote_rcmd): Add 'self' argument.
9485 * monitor.c (monitor_rcmd): Add 'self' argument.
9486
9487 2014-02-19 Tom Tromey <tromey@redhat.com>
9488
9489 * windows-nat.c (windows_stop): Add 'self' argument.
9490 * target.h (struct target_ops) <to_stop>: Add argument.
9491 * target.c (target_stop): Add argument.
9492 (debug_to_stop): Add argument.
9493 (update_current_target): Update.
9494 * remote.c (remote_stop): Add 'self' argument.
9495 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9496 (gdbsim_cntrl_c): Update.
9497 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9498 * procfs.c (procfs_stop): Add 'self' argument.
9499 * nto-procfs.c (procfs_stop): Add 'self' argument.
9500 * monitor.c (monitor_stop): Add 'self' argument.
9501 (monitor_open): Update.
9502 * linux-nat.c (linux_nat_stop): Add argument.
9503 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9504 * gnu-nat.c (gnu_stop): Add 'self' argument.
9505 * darwin-nat.c (darwin_stop): Add 'self' argument.
9506
9507 2014-02-19 Tom Tromey <tromey@redhat.com>
9508
9509 * target.h (struct target_ops) <to_thread_name>: Add argument.
9510 * target.c (target_thread_name): Add argument.
9511 (update_current_target): Update.
9512 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9513
9514 2014-02-19 Tom Tromey <tromey@redhat.com>
9515
9516 * target.h (struct target_ops) <to_extra_thread_info>: Add
9517 argument.
9518 (target_extra_thread_info): Add argument.
9519 * target.c (update_current_target): Update.
9520 * remote.c (remote_threads_extra_info): Add 'self' argument.
9521 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9522 argument.
9523 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9524 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9525 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9526 argument.
9527 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9528 argument.
9529 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9530 argument.
9531 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9532 argument.
9533
9534 2014-02-19 Tom Tromey <tromey@redhat.com>
9535
9536 * target.h (struct target_ops) <to_program_signals>: Add argument.
9537 * target.c (target_program_signals): Add argument.
9538 * remote.c (remote_program_signals): Add 'self' argument.
9539
9540 2014-02-19 Tom Tromey <tromey@redhat.com>
9541
9542 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9543 * target.c (target_pass_signals): Add argument.
9544 * remote.c (remote_pass_signals): Add 'self' argument.
9545 (remote_start_remote): Update.
9546 * procfs.c (procfs_pass_signals): Add 'self' argument.
9547 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9548 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9549 (linux_nat_create_inferior, linux_nat_attach): Update.
9550
9551 2014-02-19 Tom Tromey <tromey@redhat.com>
9552
9553 * windows-nat.c (windows_can_run): Add 'self' argument.
9554 * target.h (struct target_ops) <to_can_run>: Add argument.
9555 (target_can_run): Add argument.
9556 * target.c (debug_to_can_run): Add argument.
9557 (update_current_target): Update.
9558 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9559 * inf-child.c (inf_child_can_run): Add 'self' argument.
9560 * go32-nat.c (go32_can_run): Add 'self' argument.
9561
9562 2014-02-19 Tom Tromey <tromey@redhat.com>
9563
9564 * target.h (struct target_ops) <to_has_exited>: Add argument.
9565 (target_has_exited): Add argument.
9566 * target.c (debug_to_has_exited): Add argument.
9567 (update_current_target): Update.
9568
9569 2014-02-19 Tom Tromey <tromey@redhat.com>
9570
9571 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9572 argument.
9573 (target_set_syscall_catchpoint): Add argument.
9574 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9575 argument.
9576 * target.c (update_current_target): Update.
9577
9578 2014-02-19 Tom Tromey <tromey@redhat.com>
9579
9580 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9581 argument.
9582 (target_remove_exec_catchpoint): Add argument.
9583 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9584 (update_current_target): Update.
9585 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9586 argument.
9587
9588 2014-02-19 Tom Tromey <tromey@redhat.com>
9589
9590 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9591 argument.
9592 (target_insert_exec_catchpoint): Add argument.
9593 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9594 (update_current_target): Update.
9595 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9596 argument.
9597
9598 2014-02-19 Tom Tromey <tromey@redhat.com>
9599
9600 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9601 argument.
9602 (target_remove_vfork_catchpoint): Add argument.
9603 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9604 (update_current_target): Update.
9605 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9606 argument.
9607
9608 2014-02-19 Tom Tromey <tromey@redhat.com>
9609
9610 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9611 argument.
9612 (target_insert_vfork_catchpoint): Add argument.
9613 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9614 (update_current_target): Update.
9615 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9616 argument.
9617
9618 2014-02-19 Tom Tromey <tromey@redhat.com>
9619
9620 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9621 argument.
9622 (target_remove_fork_catchpoint): Add argument.
9623 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9624 (update_current_target): Update.
9625 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9626 argument.
9627
9628 2014-02-19 Tom Tromey <tromey@redhat.com>
9629
9630 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9631 argument.
9632 (target_insert_fork_catchpoint): Add argument.
9633 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9634 (update_current_target): Update.
9635 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9636 argument.
9637
9638 2014-02-19 Tom Tromey <tromey@redhat.com>
9639
9640 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9641 argument.
9642 (target_post_startup_inferior): Add argument.
9643 * target.c (debug_to_post_startup_inferior): Add argument.
9644 (update_current_target): Update.
9645 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9646 argument.
9647 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9648 argument.
9649 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9650 argument.
9651 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9652 argument.
9653 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9654 'self' argument.
9655 (super_post_startup_inferior): Likewise.
9656 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9657 'self' argument.
9658 (super_post_startup_inferior): Likewise.
9659 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9660 Add 'self' argument.
9661 (super_post_startup_inferior): Likewise.
9662
9663 2014-02-19 Tom Tromey <tromey@redhat.com>
9664
9665 * target.h (struct target_ops) <to_load>: Add argument.
9666 * target.c (target_load): Add argument.
9667 (debug_to_load): Add argument.
9668 (update_current_target): Update.
9669 * remote.c (remote_load): Add 'self' argument.
9670 * remote-sim.c (gdbsim_load): Add 'self' argument.
9671 * remote-mips.c (mips_load): Add 'self' argument.
9672 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9673 * monitor.c (monitor_load): Add 'self' argument.
9674 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9675
9676 2014-02-19 Tom Tromey <tromey@redhat.com>
9677
9678 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9679 (target_terminal_info): Add argument.
9680 * target.c (debug_to_terminal_info): Add argument.
9681 (default_terminal_info): Likewise.
9682 * inflow.c (child_terminal_info): Add 'self' argument.
9683 * inferior.h (child_terminal_info): Add 'self' argument.
9684 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9685
9686 2014-02-19 Tom Tromey <tromey@redhat.com>
9687
9688 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9689 argument.
9690 (target_terminal_save_ours): Add argument.
9691 * target.c (debug_to_terminal_save_ours): Add argument.
9692 (update_current_target): Update.
9693 * inflow.c (terminal_save_ours): Add 'self' argument.
9694 * inferior.h (terminal_save_ours): Add 'self' argument.
9695
9696 2014-02-19 Tom Tromey <tromey@redhat.com>
9697
9698 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9699 (target_terminal_ours): Add argument.
9700 * target.c (debug_to_terminal_ours): Add argument.
9701 (update_current_target): Update.
9702 * remote.c (remote_terminal_ours): Add 'self' argument.
9703 (remote_close): Update.
9704 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9705 * inflow.c (terminal_ours): Add 'self' argument.
9706 * inferior.h (terminal_ours): Add 'self' argument.
9707 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9708
9709 2014-02-19 Pedro Alves <palves@redhat.com>
9710 Tom Tromey <tromey@redhat.com>
9711
9712 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9713 argument.
9714 (target_terminal_ours_for_output): Add argument.
9715 * target.c (debug_to_terminal_ours_for_output): Add argument.
9716 (update_current_target): Update.
9717 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9718 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9719 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9720
9721 2014-02-19 Tom Tromey <tromey@redhat.com>
9722
9723 * target.h (struct target_ops) <to_terminal_inferior>: Add
9724 argument.
9725 * target.c (target_terminal_inferior): Add argument.
9726 (update_current_target): Update.
9727 * remote.c (remote_terminal_inferior): Add 'self' argument.
9728 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9729 * inflow.c (terminal_inferior): Add 'self' argument.
9730 * inferior.h (terminal_inferior): Add 'self' argument.
9731 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9732 (go32_terminal_inferior): Add 'self' argument.
9733
9734 2014-02-19 Tom Tromey <tromey@redhat.com>
9735
9736 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9737 (target_terminal_init): Add argument.
9738 * target.c (debug_to_terminal_init): Add argument.
9739 (update_current_target): Update.
9740 * inflow.c (terminal_init_inferior): Add 'self' argument.
9741 * inferior.h (terminal_init_inferior): Add 'self' argument.
9742 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9743 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9744
9745 2014-02-19 Tom Tromey <tromey@redhat.com>
9746
9747 * target.h (struct target_ops)
9748 <to_can_accel_watchpoint_condition>: Add argument.
9749 (target_can_accel_watchpoint_condition): Add argument.
9750 * target.c (debug_to_can_accel_watchpoint_condition): Add
9751 argument.
9752 (update_current_target): Update.
9753 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9754 'self' argument.
9755
9756 2014-02-19 Tom Tromey <tromey@redhat.com>
9757
9758 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9759 Add argument.
9760 (target_region_ok_for_hw_watchpoint): Add argument.
9761 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9762 (default_region_ok_for_hw_watchpoint): Add argument.
9763 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9764 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9765 argument.
9766 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9767 argument.
9768 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9769 argument.
9770 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9771 'self' argument.
9772 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9773 'self' argument.
9774 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9775 'self' argument.
9776 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9777 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9778 'self' argument.
9779 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9780 Add 'self' argument.
9781
9782 2014-02-19 Tom Tromey <tromey@redhat.com>
9783
9784 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9785 argument.
9786 (target_insert_watchpoint): Add argument.
9787 * target.c (debug_to_insert_watchpoint): Add argument.
9788 (update_current_target): Update.
9789 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9790 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9791 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9792 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9793 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9794 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9795 argument.
9796 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9797 (procfs_insert_hw_watchpoint): Add 'self' argument.
9798 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9799 argument.
9800 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9801 argument.
9802 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9803 argument.
9804 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9805 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9806 argument.
9807 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9808 'self' argument.
9809
9810 2014-02-19 Tom Tromey <tromey@redhat.com>
9811
9812 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9813 argument.
9814 (target_remove_watchpoint): Add argument.
9815 * target.c (debug_to_remove_watchpoint): Add argument.
9816 (update_current_target): Update.
9817 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9818 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9819 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9820 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9821 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9822 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9823 argument.
9824 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9825 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9826 argument.
9827 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9828 argument.
9829 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9830 argument.
9831 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9832 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9833 argument.
9834 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9835 'self' argument.
9836
9837 2014-02-19 Tom Tromey <tromey@redhat.com>
9838
9839 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9840 argument.
9841 (target_remove_hw_breakpoint): Add argument.
9842 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9843 (update_current_target): Update.
9844 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9845 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9846 argument.
9847 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9848 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9849 argument.
9850 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9851 'self' argument.
9852
9853 2014-02-19 Tom Tromey <tromey@redhat.com>
9854
9855 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9856 argument.
9857 (target_insert_hw_breakpoint): Add argument.
9858 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9859 (update_current_target): Update.
9860 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9861 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9862 argument.
9863 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9864 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9865 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9866 argument.
9867 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9868 'self' argument.
9869
9870 2014-02-19 Tom Tromey <tromey@redhat.com>
9871
9872 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9873 argument.
9874 (target_can_use_hardware_watchpoint): Add argument.
9875 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9876 (update_current_target): Update.
9877 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9878 argument.
9879 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9880 argument.
9881 * remote.c (remote_check_watch_resources): Add 'self' argument.
9882 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9883 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9884 argument.
9885 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9886 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9887 argument.
9888 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9889 argument.
9890 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9891 argument.
9892 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9893 argument.
9894 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9895 argument.
9896 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9897 argument.
9898 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9899 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9900 argument.
9901 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9902 'self' argument.
9903
9904 2014-02-19 Tom Tromey <tromey@redhat.com>
9905
9906 * target.h (struct target_ops) <to_post_attach>: Add argument.
9907 (target_post_attach): Add argument.
9908 * target.c (debug_to_post_attach): Add argument.
9909 (update_current_target): Update.
9910 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9911 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9912 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9913 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9914 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9915
9916 2014-02-19 Tom Tromey <tromey@redhat.com>
9917
9918 * windows-nat.c (windows_close): Add 'self' argument.
9919 * tracepoint.c (tfile_close): Add 'self' argument.
9920 * target.h (struct target_ops) <to_close>: Add argument.
9921 * target.c (target_close): Add argument.
9922 (update_current_target): Update.
9923 * remote.c (remote_close): Add 'self' argument.
9924 * remote-sim.c (gdbsim_close): Add 'self' argument.
9925 * remote-mips.c (mips_close): Add 'self' argument.
9926 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9927 * record-full.c (record_full_close): Add 'self' argument.
9928 * record-btrace.c (record_btrace_close): Add 'self' argument.
9929 * monitor.h (monitor_close): Add 'self' argument.
9930 * monitor.c (monitor_close): Add 'self' argument.
9931 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9932 * linux-nat.c (linux_nat_close): Add argument.
9933 * go32-nat.c (go32_close): Add 'self' argument.
9934 * exec.c (exec_close_1): Add 'self' argument.
9935 * ctf.c (ctf_close): Add 'self' argument.
9936 * corelow.c (core_close): Add 'self' argument.
9937 (core_close_cleanup): Update.
9938 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9939 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9940
9941 2014-02-19 Tom Tromey <tromey@redhat.com>
9942
9943 * remote.c (remote_load): New function.
9944 (init_remote_ops): Use it.
9945
9946 2014-02-19 Tom Tromey <tromey@redhat.com>
9947
9948 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9949 argument.
9950 * common/linux-btrace.h (linux_supports_btrace): Update.
9951 * remote.c (remote_supports_btrace): Add "self" argument.
9952 * target-delegates.c: Rebuild.
9953 * target.c (target_supports_btrace): Remove.
9954 * target.h (struct target_ops) <to_supports_btrace>: Add
9955 target_ops argument.
9956 (target_supports_btrace): New define.
9957
9958 2014-02-19 Tom Tromey <tromey@redhat.com>
9959
9960 * record-full.c (record_full_beneath_to_resume_ops)
9961 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9962 (record_full_beneath_to_wait)
9963 (record_full_beneath_to_store_registers_ops)
9964 (record_full_beneath_to_store_registers)
9965 (record_full_beneath_to_xfer_partial_ops)
9966 (record_full_beneath_to_xfer_partial)
9967 (record_full_beneath_to_insert_breakpoint_ops)
9968 (record_full_beneath_to_insert_breakpoint)
9969 (record_full_beneath_to_remove_breakpoint_ops)
9970 (record_full_beneath_to_remove_breakpoint)
9971 (record_full_beneath_to_stopped_by_watchpoint)
9972 (record_full_beneath_to_stopped_data_address)
9973 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9974 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9975 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9976 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9977 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9978 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9979 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9980 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9981 (record_full_resume, record_full_wait_1)
9982 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9983 (record_full_store_registers, record_full_xfer_partial)
9984 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9985 (record_full_async, record_full_core_xfer_partial): Use target
9986 delegation.
9987 * target-delegates.c: Rebuild.
9988 * target.c (current_xfer_partial): Remove.
9989 (update_current_target): Do not INHERIT or de_fault
9990 to_insert_breakpoint, to_remove_breakpoint,
9991 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9992 to_is_async_p, to_async. Do not set to_xfer_partial field.
9993 (default_xfer_partial): Simplify.
9994 (current_xfer_partial): Remove.
9995 (target_wait, target_resume): Simplify.
9996 (find_default_can_async_p, find_default_is_async_p): Update.
9997 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9998 to_xfer_partial, to_stopped_by_watchpoint,
9999 to_stopped_data_address.
10000 (target_store_registers): Simplify.
10001 (forward_target_remove_breakpoint)
10002 (forward_target_insert_breakpoint): Remove.
10003 (target_remove_breakpoint, target_insert_breakpoint)
10004 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10005 * target.h (struct target_ops) <to_resume, to_wait,
10006 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10007 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10008 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10009 markup.
10010 (forward_target_remove_breakpoint)
10011 (forward_target_insert_breakpoint): Remove.
10012 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10013 directly.
10014 (record_btrace_insert_breakpoint): Delegate directly.
10015
10016 2014-02-19 Tom Tromey <tromey@redhat.com>
10017
10018 PR build/7701:
10019 * target-delegates.c: New file.
10020 * target.c: Include target-delegates.c.
10021 (init_dummy_target): Call install_dummy_methods.
10022 (complete_target_initialization): Call install_delegators.
10023 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10024 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10025 * make-target-delegates: New file.
10026
10027 2014-02-19 Tom Tromey <tromey@redhat.com>
10028
10029 * record.c (find_record_target): Use find_target_at.
10030 * target.c (find_target_at): New function.
10031 * target.h (find_target_at): Declare.
10032
10033 2014-02-19 Tom Tromey <tromey@redhat.com>
10034
10035 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10036 Add 'ops' argument.
10037 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10038 'ops' argument.
10039 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10040 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10041 'ops' argument.
10042 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10043 argument.
10044 * linux-nat.c (save_sigtrap): Update.
10045 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10046 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10047 (linux_nat_close): Update.
10048 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10049 argument.
10050 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10051 argument.
10052 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10053 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10054 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10055 (tmp_to_async): Add 'ops' argument.
10056 (record_full_stopped_by_watchpoint, record_full_async)
10057 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10058 argument.
10059 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10060 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10061 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10062 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10063 (remote_is_async_p, remote_async): Add 'ops' argument.
10064 (remote_stopped_data_address): Update.
10065 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10066 * target.c (update_current_target)
10067 (find_default_can_async_p, find_default_is_async_p): Update.
10068 (init_dummy_target): Update.
10069 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10070 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10071 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10072 (target_can_async_p, target_is_async_p, target_async)
10073 (target_stopped_by_watchpoint): Update.
10074
10075 2014-02-19 Yao Qi <yao@codesourcery.com>
10076
10077 PR gdb/16220
10078 * gdbarch.sh: Remove startup_gdbarch.
10079 * gdbarch.c: Regenerated.
10080 * gdbarch.h: Likewise.
10081
10082 2014-02-17 Kevin Buettner <kevinb@redhat.com>
10083
10084 * rl78-tdep.c (rl78_g10_register_name): New function.
10085 (rl78_return_value): Add g10 support.
10086 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10087 g10.
10088
10089 2014-02-17 Doug Evans <xdje42@gmail.com>
10090
10091 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10092 (SUBDIR_GUILE_SRCS): Ditto.
10093 (scm-gsmob.o): Ditto.
10094
10095 2014-02-17 Yao Qi <yao@codesourcery.com>
10096
10097 * gnu-nat.c (ILL_RPC): Declare defined function.
10098
10099 2014-02-17 Yao Qi <yao@codesourcery.com>
10100
10101 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10102 mach_msg_type_number_t.
10103 (gnu_write_inferior): Likewise.
10104
10105 2014-02-17 Yao Qi <yao@codesourcery.com>
10106
10107 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10108 in format string.
10109 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10110 (inf_validate_procs, inf_signal): Likewise.
10111 (S_exception_raise_request): Likewise.
10112 (do_mach_notify_dead_name): Likewise.
10113 (steal_exc_port): Likewise.
10114 (gnu_read_inferior): Change 'copy_count''s type to
10115 mach_msg_type_number_t.
10116 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10117 format string.
10118
10119 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10120
10121 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10122 flag. Adjust all users; in particular...
10123 (gnu_wait): ..., don't decrement its value in here...
10124 (gnu_create_inferior): ..., and instead set the flag in here,
10125 around the startup_inferior call, and call that one with
10126 START_INFERIOR_TRAPS_EXPECTED.
10127
10128 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10129 (ILL_RPC): ... new macro.
10130 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10131 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10132 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10133 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10134 functions with ILL_RPC macro.
10135 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10136 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10137 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10138 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10139 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10140 (S_proc_getlogin_reply, S_proc_getsid_reply)
10141 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10142 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10143 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10144 (S_proc_getnports_reply, S_proc_is_important_reply)
10145 (S_proc_get_code_reply): New stub functions, generated with
10146 ILL_RPC macro.
10147
10148 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10149 collected the type check structures.
10150
10151 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10152
10153 2014-02-14 Doug Evans <dje@google.com>
10154
10155 * target.c (target_write_partial): Fix result type.
10156
10157 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10158
10159 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10160 the proper offsets to access fpregset_t.
10161
10162 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10163
10164 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10165 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10166 * h8300-tdep.c (setmachinelist): Remove global.
10167 * hppa-tdep.c (hppa_sigtramp): Remove global.
10168 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10169 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10170 * ravenscar-thread.c (update_target_observer): Remove global.
10171 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10172
10173 2014-02-12 Tom Tromey <tromey@redhat.com>
10174
10175 * common/rsp-low.c: Update comments.
10176 * common/rsp-low.h: Update comments.
10177
10178 2014-02-12 Tom Tromey <tromey@redhat.com>
10179
10180 * common/rsp-low.c (convert_ascii_to_int): Remove.
10181 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10182
10183 2014-02-12 Tom Tromey <tromey@redhat.com>
10184
10185 * common/rsp-low.h (unhexify): Don't declare.
10186 * common/rsp-low.c (unhexify): Remove.
10187
10188 2014-02-12 Tom Tromey <tromey@redhat.com>
10189
10190 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10191 * common/rsp-low.c (convert_int_to_ascii): Remove.
10192
10193 2014-02-12 Tom Tromey <tromey@redhat.com>
10194
10195 * common/rsp-low.h (hexify): Don't declare.
10196 * common/rsp-low.c (hexify): Remove.
10197
10198 2014-02-12 Tom Tromey <tromey@redhat.com>
10199
10200 * common/rsp-low.c (hexify): Never take strlen of argument.
10201
10202 2014-02-12 Tom Tromey <tromey@redhat.com>
10203
10204 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10205 * remote.c (extended_remote_run, remote_rcmd)
10206 (remote_download_trace_state_variable, remote_save_trace_data)
10207 (remote_set_trace_notes): Update.
10208 * tracepoint.c (encode_source_string, tfile_write_status)
10209 (tfile_write_uploaded_tsv): Update.
10210
10211 2014-02-12 Tom Tromey <tromey@redhat.com>
10212
10213 * tracepoint.c: Include rsp-low.h.
10214 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10215 * remote.c: Include rsp-low.h.
10216 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10217 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10218 (remote_unescape_input): Move to common/rsp-low.c.
10219 * common/rsp-low.h: New file.
10220 * common/rsp-low.c: New file.
10221 * Makefile.in (SFILES): Add common/rsp-low.c.
10222 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10223 (COMMON_OBS): Add rsp-low.o.
10224 (rsp-low.o): New target.
10225
10226 2014-02-12 Tom Tromey <tromey@redhat.com>
10227
10228 * utils.h: Include print-utils.h.
10229 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10230 (int_string, core_addr_to_string, core_addr_to_string_nz)
10231 (hex_string, hex_string_custom): Don't declare.
10232 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10233 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10234 (hex_string_custom, int_string, core_addr_to_string)
10235 (core_addr_to_string_nz, host_address_to_string): Move to
10236 common/print-utils.c.
10237 * common/print-utils.h: New file.
10238 * common/print-utils.c: New file
10239 * Makefile.in (SFILES): Add common/print-utils.c.
10240 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10241 (COMMON_OBS): Add print-utils.o.
10242 (print-utils.o): New target.
10243
10244 2014-02-12 Tom Tromey <tromey@redhat.com>
10245
10246 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10247
10248 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10249
10250 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10251
10252 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10253
10254 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10255 if a PT_IO ptrace request returns sucessfully but indicates that 0
10256 bytes were transferred.
10257
10258 2014-02-12 Pedro Alves <palves@redhat.com>
10259 Kevin Buettner <kevinb@redhat.com>
10260
10261 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10262 TYPE_INSTANCE_FLAG_CODE_SPACE.
10263
10264 2014-02-12 Pedro Alves <palves@redhat.com>
10265
10266 * h8300-tdep.c (pseudo_from_raw_register)
10267 (raw_from_pseudo_register): New functions.
10268 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10269 them.
10270
10271 2014-02-12 Pedro Alves <palves@redhat.com>
10272
10273 * h8300-tdep.c (h8300_register_sim_regno): New function.
10274 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10275 gdbarch_register_sim_regno hook.
10276
10277 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10278
10279 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10280
10281 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10282
10283 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10284
10285 2014-02-12 Mark Kettenis <kettenis@gnu.org>
10286
10287 * obsd-tdep.h (obsd_init_abi): New prototype.
10288 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10289 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10290 (obsd_init_abi): New functions.
10291 * i386obsd-tdep.c: Include "obsd-tdep.h".
10292 (i386obsd_init_abi): Call obsd_init_abi.
10293 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10294 (amd64obsd_init_abi): Call obsd_init_abi.
10295 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10296 obsd-tdep.c to gdb_target_obs.
10297
10298 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10299
10300 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10301 double float arguments to 16-byte in the argument slots.
10302
10303 2014-02-11 Doug Evans <xdje42@gmail.com>
10304
10305 * configure.ac: Don't crash if pkg-config is not found and guile
10306 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10307 in guile checks.
10308 * configure: Regenerate.
10309
10310 2014-02-11 Yao Qi <yao@codesourcery.com>
10311
10312 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10313 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10314 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10315 * gnu-nat.c (gnu_xfer_memory): Likewise.
10316 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10317 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10318 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10319 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10320
10321 2014-02-11 Yao Qi <yao@codesourcery.com>
10322
10323 * target.h (enum target_xfer_error): Rename to ...
10324 (enum target_xfer_status): ... it. New. All users updated.
10325 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10326 New.
10327 (TARGET_XFER_STATUS_ERROR_P): New macro.
10328 (target_xfer_error_to_string): Remove declaration.
10329 (target_xfer_status_to_string): Declare.
10330 (target_xfer_partial_ftype): Adjust it.
10331 (struct target_ops) <to_xfer_partial>: Return
10332 target_xfer_status. Add argument xfered_len. Update
10333 comments.
10334 * target.c (target_xfer_error_to_string): Rename to ...
10335 (target_xfer_status_to_string): ... it. New. All callers
10336 updated.
10337 (target_read_live_memory): Likewise. Call target_xfer_partial
10338 instead of target_read.
10339 (memory_xfer_live_readonly_partial): Return
10340 target_xfer_status. Add argument xfered_len.
10341 (raw_memory_xfer_partial): Likewise.
10342 (memory_xfer_partial_1): Likewise.
10343 (memory_xfer_partial): Likewise.
10344 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10345 properly. Update debug message.
10346 (default_xfer_partial, current_xfer_partial): Likewise.
10347 (target_write_partial): Likewise.
10348 (target_read_partial): Likewise. All callers updated.
10349 (read_whatever_is_readable): Likewise.
10350 (target_write_with_progress): Likewise.
10351 (target_read_alloc_1): Likewise.
10352
10353 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10354 * auxv.c (procfs_xfer_auxv): Likewise.
10355 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10356 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10357 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10358 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10359 * corefile.c (read_memory): Adjust.
10360 * corelow.c (core_xfer_partial): Likewise.
10361 * ctf.c (ctf_xfer_partial): Likewise.
10362 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10363 updated.
10364 (darwin_xfer_partial): Likewise.
10365 * exec.c (section_table_xfer_memory_partial): Likewise. All
10366 callers updated.
10367 (exec_xfer_partial): Likewise.
10368 * exec.h (section_table_xfer_memory_partial): Update
10369 declaration.
10370 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10371 negative.
10372 (gnu_xfer_partial): Likewise.
10373 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10374 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10375 (ia64_hpux_xfer_solib_got): Likewise.
10376 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10377 type of 'partial_len' to ULONGEST.
10378 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10379 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10380 (linux_nat_xfer_partial): Likewise.
10381 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10382 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10383 * monitor.c (monitor_xfer_memory): Likewise.
10384 (monitor_xfer_partial): Likewise.
10385 * procfs.c (procfs_xfer_partial): Likewise.
10386 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10387 * record-full.c (record_full_xfer_partial): Likewise.
10388 (record_full_core_xfer_partial): Likewise.
10389 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10390 (gdbsim_xfer_partial): Likewise.
10391 * remote.c (remote_write_bytes_aux): Likewise. All callers
10392 updated.
10393 (remote_write_bytes, remote_read_bytes): Likewise. All
10394 callers updated.
10395 (remote_flash_erase): Likewise. All callers updated.
10396 (remote_write_qxfer): Likewise. All callers updated.
10397 (remote_read_qxfer): Likewise. All callers updated.
10398 (remote_xfer_partial): Likewise.
10399 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10400 (rs6000_xfer_shared_libraries): Likewise.
10401 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10402 (sol_thread_xfer_partial): Likewise.
10403 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10404 (sparc_xfer_partial): Likewise.
10405 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10406 updated.
10407 (spu_xfer_partial): Likewise.
10408 * spu-multiarch.c (spu_xfer_partial): Likewise.
10409 * tracepoint.c (tfile_xfer_partial): Likewise.
10410 * windows-nat.c (windows_xfer_memory): Likewise.
10411 (windows_xfer_shared_libraries): Likewise.
10412 (windows_xfer_partial): Likewise.
10413 * valprint.c: Replace 'target_xfer_error' with
10414 'target_xfer_status' in comments.
10415
10416 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10417
10418 Checked in by Joel Brobecker <brobecker@adacore.com>.
10419 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10420
10421 2014-02-11 Joel Brobecker <brobecker@adacore.com>
10422
10423 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10424 function parameters.
10425
10426 2014-02-10 Will Newton <will.newton@linaro.org>
10427
10428 * elfread.c (elf_rel_plt_read): Look for a .got section if
10429 looking up .got.plt fails.
10430 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10431 on address passed to elf_gnu_ifunc_record_cache.
10432 (elf_gnu_ifunc_resolve_addr): Likewise.
10433 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10434
10435 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10436
10437 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10438 (X_RETTURN): New macro.
10439 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10440
10441 * sparc64-tdep.c (sparc64_init_abi): Hook
10442 sparc_in_function_epilogue_p.
10443
10444 2014-02-10 Gary Benson <gbenson@redhat.com>
10445
10446 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10447 Rename name_matcher to symbol_matcher.
10448
10449 2014-02-10 Gary Benson <gbenson@redhat.com>
10450
10451 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10452 Use expand_symtabs_file_matcher_ftype and
10453 expand_symtabs_symbol_matcher_ftype.
10454
10455 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10456
10457 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10458 (struct ada_symbol_cache): New.
10459 (ada_free_symbol_cache): Forward declare.
10460 (struct ada_pspace_data): New.
10461 (ada_pspace_data_handle): New static global.
10462 (get_ada_pspace_data, ada_pspace_data_cleanup)
10463 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10464 (cache_space, cache): Delete, now folded inside struct
10465 ada_pspace_data.
10466 (ada_get_symbol_cache): New function.
10467 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10468 implementation.
10469 (_initialize_ada_language): Remove initialization of cache_space.
10470 Move call to observer_attach_inferior_exit up, grouping it
10471 with the other observer registrations inside this function.
10472 Rename command to be more general. Add call to
10473 register_program_space_data_with_cleanup.
10474
10475 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10476
10477 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10478 ada_new_objfile_observer.
10479 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10480 (_initialize_tasks): Update uses of ada_new_objfile_observer
10481 and ada_tasks_normal_stop_observer.
10482
10483 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10484
10485 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10486 returned by the 'Length attribute to integer.
10487
10488 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10489
10490 * ada-lang.c (_initialize_ada_language): Initialize
10491 cache_space obstack.
10492
10493 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10494
10495 * ada-lang.c (HASH_SIZE): New macro.
10496 (struct cache_entry): New type.
10497 (cache_space, cache): New static globals.
10498 (ada_clear_symbol_cache, find_entry): New functions.
10499 (lookup_cached_symbol, cache_symbol): Implement.
10500 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10501 (_initialize_ada_language): Attach ada_new_objfile_observer
10502 and ada_free_objfile_observer.
10503
10504 2014-02-10 Joel Brobecker <brobecker@adacore.com>
10505
10506 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10507 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10508 struct block * parameter.
10509 (ada_lookup_symbol_list_worker): Constify local variable "block".
10510 Remove cast which is no longer necessary.
10511
10512 2014-02-10 Doug Evans <xdje42@gmail.com>
10513
10514 Add Guile as an extension language.
10515 * NEWS: Mention Guile scripting.
10516 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10517 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10518 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10519 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10520 (CLIBS): Add GUILE_LIBS.
10521 (install-guile): New rule.
10522 (guile.o): New rule.
10523 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10524 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10525 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10526 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10527 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10528 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10529 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10530 * configure.ac: New option --with-guile.
10531 * configure: Regenerate.
10532 * config.in: Regenerate.
10533 * auto-load.c: Remove #include "python/python.h". Add #include
10534 "gdb/section-scripts.h".
10535 (source_section_scripts): Handle Guile scripts.
10536 (_initialize_auto_load): Add name of Guile objfile script to
10537 scripts-directory help text.
10538 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10539 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10540 (struct breakpoint): New member scm_bp_object.
10541 * defs.h (enum command_control_type): New value guile_control.
10542 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10543 "extension.h".
10544 (show_user): Update comment.
10545 (_initialize_cli_cmds): Update help text for "show user". Update help
10546 text for max-user-call-depth.
10547 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10548 "extension.h".
10549 (multi_line_command_p): Add guile_control.
10550 (print_command_lines): Handle guile_control.
10551 (execute_control_command, recurse_read_control_structure): Ditto.
10552 (process_next_line): Recognize "guile" commands.
10553 * disasm.c (gdb_disassemble_info): Make non-static.
10554 * disasm.h: #include "dis-asm.h".
10555 (struct gdbarch): Add forward decl.
10556 (gdb_disassemble_info): Declare.
10557 * extension.c: #include "guile/guile.h".
10558 (extension_languages): Add guile.
10559 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10560 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10561 * gdbtypes.c (get_unsigned_type_max): New function.
10562 (get_signed_type_minmax): New function.
10563 * gdbtypes.h (get_unsigned_type_max): Declare.
10564 (get_signed_type_minmax): Declare.
10565 * guile/README: New file.
10566 * guile/guile-internal.h: New file.
10567 * guile/guile.c: New file.
10568 * guile/guile.h: New file.
10569 * guile/scm-arch.c: New file.
10570 * guile/scm-auto-load.c: New file.
10571 * guile/scm-block.c: New file.
10572 * guile/scm-breakpoint.c: New file.
10573 * guile/scm-disasm.c: New file.
10574 * guile/scm-exception.c: New file.
10575 * guile/scm-frame.c: New file.
10576 * guile/scm-gsmob.c: New file.
10577 * guile/scm-iterator.c: New file.
10578 * guile/scm-lazy-string.c: New file.
10579 * guile/scm-math.c: New file.
10580 * guile/scm-objfile.c: New file.
10581 * guile/scm-ports.c: New file.
10582 * guile/scm-pretty-print.c: New file.
10583 * guile/scm-safe-call.c: New file.
10584 * guile/scm-string.c: New file.
10585 * guile/scm-symbol.c: New file.
10586 * guile/scm-symtab.c: New file.
10587 * guile/scm-type.c: New file.
10588 * guile/scm-utils.c: New file.
10589 * guile/scm-value.c: New file.
10590 * guile/lib/gdb.scm: New file.
10591 * guile/lib/gdb/boot.scm: New file.
10592 * guile/lib/gdb/experimental.scm: New file.
10593 * guile/lib/gdb/init.scm: New file.
10594 * guile/lib/gdb/iterator.scm: New file.
10595 * guile/lib/gdb/printing.scm: New file.
10596 * guile/lib/gdb/types.scm: New file.
10597 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10598 (VPATH): Add $(GUILE_SRCDIR).
10599 (GUILE_DIR): New variable.
10600 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10601 (all): Add stamp-guile dependency.
10602 (stamp-guile): New rule.
10603 (clean-guile, install-guile, uninstall-guile): New rules.
10604 (install-only): Add install-guile dependency.
10605 (uninstall): Add uninstall-guile dependency.
10606 (clean): Add clean-guile dependency.
10607
10608 2014-02-09 Doug Evans <xdje42@gmail.com>
10609
10610 Revert this patch (which I approved, mea culpa).
10611
10612 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10613
10614 * Makefile.in (all-lib): Remove.
10615 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10616
10617 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10618
10619 Fix Python stack corruption.
10620 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10621 gdb_py_longest.
10622
10623 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10624
10625 * Makefile.in (all-lib): Remove.
10626 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10627
10628 2014-02-07 Doug Evans <dje@google.com>
10629
10630 * extension-priv.h (extension_language_script_ops): Add comment.
10631 (extension_language_ops): Add comment.
10632 (active_ext_lang_state): Fix typo in comment.
10633
10634 2014-02-07 Pedro Alves <palves@redhat.com>
10635
10636 PR breakpoints/16292
10637 * infrun.c (handle_signal_stop) <signal arrives while stepping
10638 over a breakpoint>: Switch back to the stepping thread.
10639
10640 2014-02-07 Yao Qi <yao@codesourcery.com>
10641
10642 * target.c (target_xfer_partial): Return zero if LEN is zero.
10643
10644 2014-02-07 Yao Qi <yao@codesourcery.com>
10645
10646 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10647 (ld_so_xfer_auxv): Likewise.
10648 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10649 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10650 * corelow.c (core_xfer_partial): Likewise.
10651 * ctf.c (ctf_xfer_partial): Likewise.
10652 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10653 (darwin_xfer_partial): Likewise.
10654 * exec.c (exec_xfer_partial): Likewise.
10655 * gnu-nat.c (gnu_xfer_partial): Likewise.
10656 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10657 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10658 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10659 * linux-nat.c (linux_xfer_siginfo): Likewise.
10660 (linux_proc_xfer_spu): Likewise.
10661 * procfs.c (procfs_xfer_partial): Likewise.
10662 * record-full.c (record_full_xfer_partial): Likewise.
10663 (record_full_core_xfer_partial): Likewise.
10664 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10665 * remote.c (remote_write_qxfer): Likewise.
10666 (remote_write_qxfer, remote_read_qxfer): Likewise.
10667 (remote_xfer_partial): Likewise.
10668 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10669 (rs6000_xfer_shared_libraries): Likewise.
10670 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10671 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10672 (spu_xfer_partial): Likewise.
10673 * target.c (memory_xfer_partial_1): Likewise.
10674 * tracepoint.c (tfile_xfer_partial): Likewise.
10675 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10676 (windows_xfer_partial): Likewise.
10677
10678 2014-02-07 Yao Qi <yao@codesourcery.com>
10679
10680 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10681 comments.
10682 (core_xfer_shared_libraries_aix): Likewise.
10683 * gdbarch.c, gdbarch.h: Regenerated.
10684 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10685 ULONGEST. Change 'len_avail' type to ULONGEST.
10686 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10687 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10688 declaration.
10689 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10690
10691 2014-02-07 Yao Qi <yao@codesourcery.com>
10692
10693 * corefile.c (memory_error): Get 'exception' from ERR and pass
10694 'exception' to throw_error.
10695
10696 2014-02-06 Doug Evans <xdje42@gmail.com>
10697
10698 * configure.ac (libpython checking): Remove all but python.o from
10699 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10700 * configure: Regenerate.
10701
10702 * Makefile.in (SFILES): Add extension.c.
10703 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10704 (COMMON_OBS): Add extension.o.
10705 * extension.h: New file.
10706 * extension-priv.h: New file.
10707 * extension.c: New file.
10708
10709 * python/python-internal.h: #include "extension.h".
10710 (gdbpy_auto_load_enabled): Declare.
10711 (gdbpy_apply_val_pretty_printer): Declare.
10712 (gdbpy_apply_frame_filter): Declare.
10713 (gdbpy_preserve_values): Declare.
10714 (gdbpy_breakpoint_cond_says_stop): Declare.
10715 (gdbpy_breakpoint_has_cond): Declare.
10716 (void source_python_script_for_objfile): Delete.
10717 * python/python.c: #include "extension-priv.h".
10718 Delete inclusion of "observer.h".
10719 (extension_language_python): Moved here and renamed from
10720 script_language_python in py-auto-load.c.
10721 Redefined to be of type extension_language_defn.
10722 (python_extension_script_ops): New global.
10723 (python_extension_ops): New global.
10724 (struct python_env): New member previous_active.
10725 (restore_python_env): Call restore_active_ext_lang.
10726 (ensure_python_env): Call set_active_ext_lang.
10727 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10728 New arg extlang.
10729 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10730 New arg extlang.
10731 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10732 New arg extlang.
10733 (gdbpy_eval_from_control_command): Renamed from
10734 eval_python_from_control_command, made static. New arg extlang.
10735 (gdbpy_source_script) Renamed from source_python_script, made static.
10736 New arg extlang.
10737 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10738 result to int. New arg extlang.
10739 (gdbpy_source_objfile_script): Renamed from
10740 source_python_script_for_objfile, made static. New arg extlang.
10741 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10742 static. New args extlang, extlang_printers. Change result type to
10743 "void".
10744 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10745 static. New arg extlang. Rename arg printers to extlang_printers
10746 and change type to ext_lang_type_printers *.
10747 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10748 static. Replace argument arg with extlang, extlang_printers.
10749 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10750 (!HAVE_PYTHON, source_python_script): Delete.
10751 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10752 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10753 (!HAVE_PYTHON, start_type_printers): Delete.
10754 (!HAVE_PYTHON, apply_type_printers): Delete.
10755 (!HAVE_PYTHON, free_type_printers): Delete.
10756 (_initialize_python): Delete call to observer_attach_before_prompt.
10757 (finalize_python): Set/restore active extension language.
10758 (gdbpy_finish_initialization) Renamed from
10759 finish_python_initialization, made static. New arg extlang.
10760 (gdbpy_initialized): New function.
10761 * python/python.h: #include "extension.h". Delete #include
10762 "value.h", "mi/mi-cmds.h".
10763 (extension_language_python): Declare.
10764 (GDBPY_AUTO_FILE_NAME): Delete.
10765 (enum py_bt_status): Moved to extension.h and renamed to
10766 ext_lang_bt_status.
10767 (enum frame_filter_flags): Moved to extension.h.
10768 (enum py_frame_args): Moved to extension.h and renamed to
10769 ext_lang_frame_args.
10770 (finish_python_initialization): Delete.
10771 (eval_python_from_control_command): Delete.
10772 (source_python_script): Delete.
10773 (apply_val_pretty_printer): Delete.
10774 (apply_frame_filter): Delete.
10775 (preserve_python_values): Delete.
10776 (gdbpy_script_language_defn): Delete.
10777 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10778 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10779
10780 * auto-load.c: #include "extension.h".
10781 (GDB_AUTO_FILE_NAME): Delete.
10782 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10783 (script_language_gdb): Delete, moved to extension.c and renamed to
10784 extension_language_gdb.
10785 (source_gdb_script_for_objfile): Delete.
10786 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10787 (loaded_script): Change type of language member to
10788 struct extension_language_defn *.
10789 (init_loaded_scripts_info): Initialize
10790 unsupported_script_warning_printed.
10791 (maybe_add_script): Make static. Change type of language arg to
10792 struct extension_language_defn *.
10793 (clear_section_scripts): Reset unsupported_script_warning_printed.
10794 (auto_load_objfile_script_1): Rewrite to use extension language API.
10795 (auto_load_objfile_script): Make public. Remove support-compiled-in
10796 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10797 (source_section_scripts): Rewrite to use extension language API.
10798 (load_auto_scripts_for_objfile): Rewrite to use
10799 auto_load_scripts_for_objfile.
10800 (collect_matching_scripts_data): Change type of language member to
10801 struct extension_language_defn *.
10802 (auto_load_info_scripts): Change type of language arg to
10803 struct extension_language_defn *.
10804 (unsupported_script_warning_print): New function.
10805 (script_not_found_warning_print): Make static.
10806 (_initialize_auto_load): Rewrite construction of scripts-directory
10807 help.
10808 * auto-load.h (struct objfile): Add forward decl.
10809 (struct script_language): Delete.
10810 (struct auto_load_pspace_info): Add forward decl.
10811 (struct extension_language_defn): Add forward decl.
10812 (maybe_add_script): Delete.
10813 (auto_load_objfile_script): Declare.
10814 (script_not_found_warning_print): Delete.
10815 (auto_load_info_scripts): Update prototype.
10816 (auto_load_gdb_scripts_enabled): Declare.
10817 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10818 auto_load_python_scripts_enabled and made public.
10819 (script_language_python): Delete, moved to python.c.
10820 (gdbpy_script_language_defn): Delete.
10821 (info_auto_load_python_scripts): Update to use
10822 extension_language_python.
10823
10824 * breakpoint.c (condition_command): Replace call to
10825 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10826 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10827 with call to breakpoint_ext_lang_cond_says_stop.
10828 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10829 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10830 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10831 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10832 New arg slang.
10833 (local_setattro): Print name of extension language with existing
10834 stop condition.
10835
10836 * valprint.c (val_print, value_print): Update to call
10837 apply_ext_lang_val_pretty_printer.
10838 * cp-valprint.c (cp_print_value): Update call to
10839 apply_ext_lang_val_pretty_printer.
10840 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10841 (gdbpy_apply_val_pretty_printer): Renamed from
10842 apply_val_pretty_printer. New arg extlang.
10843 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10844
10845 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10846 extension language API.
10847 * cli/cli-script.c (execute_control_command): Update to call
10848 eval_ext_lang_from_control_command.
10849
10850 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10851 enum ext_lang_bt_status values. Update call to
10852 apply_ext_lang_frame_filter.
10853 (mi_cmd_stack_list_locals): Ditto.
10854 (mi_cmd_stack_list_args): Ditto.
10855 (mi_cmd_stack_list_variables): Ditto.
10856 * mi/mi-main.c: Delete #include "python/python-internal.h".
10857 Add #include "extension.h".
10858 (mi_cmd_list_features): Replace reference to python internal variable
10859 gdb_python_initialized with call to ext_lang_initialized_p.
10860
10861 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10862 Update to use enum ext_lang_frame_args. Update to call
10863 apply_ext_lang_frame_filter.
10864 * python/py-framefilter.c (extract_sym): Update to use enum
10865 ext_lang_bt_status.
10866 (extract_value, py_print_type, py_print_value): Ditto.
10867 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10868 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10869 (py_print_frame): Ditto.
10870 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10871 New arg extlang. Update to use enum ext_lang_bt_status.
10872
10873 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10874 finish_python_initialization. Replace with call to
10875 finish_ext_lang_initialization.
10876
10877 * typeprint.c (do_free_global_table): Update to call
10878 free_ext_lang_type_printers.
10879 (create_global_typedef_table): Update to call
10880 start_ext_lang_type_printers.
10881 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10882 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10883 (type_print_options): Change type of global_printers from "void *"
10884 to "struct ext_lang_type_printers *".
10885
10886 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10887 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10888 (gdbpy_preserve_values): Renamed from preserve_python_values.
10889 New arg extlang.
10890 (!HAVE_PYTHON, preserve_python_values): Delete.
10891
10892 * utils.c (quit_flag): Delete, moved to extension.c.
10893 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10894 extension.c.
10895
10896 * eval.c: Delete #include "python/python.h".
10897 * main.c: Delete #include "python/python.h".
10898
10899 * defs.h: Update comment.
10900
10901 2014-02-06 Joel Brobecker <brobecker@adacore.com>
10902
10903 GDB 7.7 released.
10904
10905 2014-02-05 Mark Kettenis <kettenis@gnu.org>
10906
10907 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10908 defined.
10909
10910 2014-02-05 Yao Qi <yao@codesourcery.com>
10911
10912 * remote.c (remote_pass_signals): Remove local 'buf' and use
10913 rs->buf.
10914 (remote_program_signals): Likewise.
10915
10916 2014-02-05 Yao Qi <yao@codesourcery.com>
10917
10918 * ctf.c: Include "inferior.h" and "gdbthread.h".
10919 (CTF_PID): A new macro.
10920 (ctf_open): Call inferior_appeared and add_thread_silent.
10921 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10922 (ctf_thread_alive): New function.
10923 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10924
10925 2014-02-05 Yao Qi <yao@codesourcery.com>
10926
10927 Revert this patch:
10928
10929 2013-05-24 Yao Qi <yao@codesourcery.com>
10930
10931 * tracepoint.c (TFILE_PID): Remove.
10932 (tfile_open): Don't add thread and inferior.
10933 (tfile_close): Don't set 'inferior_ptid'. Don't call
10934 exit_inferior_silent.
10935 (tfile_thread_alive): Remove.
10936 (init_tfile_ops): Don't set field 'to_thread_alive' of
10937 tfile_ops.
10938
10939 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10940
10941 * remote.c (remote_start_remote): Call remote_check_symbols even
10942 if only symbol-file (not file) has been given.
10943
10944 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10945
10946 * gdbarch.sh (skip_entrypoint): New callback.
10947 * gdbarch.c, gdbarch.h: Regenerate.
10948 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10949 * infrun.c (fill_in_stop_func): Likewise.
10950 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10951 (ppc_elfv2_elf_make_msymbol_special): New function.
10952 (ppc_elfv2_skip_entrypoint): Likewise.
10953 (ppc_linux_init_abi): Install them for ELFv2.
10954
10955 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10956
10957 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10958 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10959 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10960 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10961 structures returned in GPRs.
10962
10963 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10964
10965 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10966 offset to the stack parameter list for the ELFv2 ABI.
10967
10968 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10969
10970 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10971 set_gdbarch_convert_from_func_ptr_addr and
10972 set_gdbarch_elf_make_msymbol_special for ELFv1.
10973 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10974 function descriptors on ELFv1.
10975 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10976 set up r12 at function entry.
10977
10978 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10979
10980 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10981 (struct gdbarch_tdep): New member elf_abi.
10982
10983 * rs6000-tdep.c: Include "elf/ppc64.h".
10984 (rs6000_gdbarch_init): Detect ELF ABI version.
10985
10986 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10987
10988 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10989 within a register pair holding a DFP 128-bit value on little-endian.
10990 (ppc64_sysv_abi_return_value_base): Likewise.
10991 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10992 (dfp_pseudo_register_write): Likewise.
10993
10994 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10995
10996 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10997 offset on little-endian when passing _Decimal32.
10998 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10999
11000 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11001
11002 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11003 of the overlapped FP register within the VSX register on little-
11004 endian platforms.
11005 (efpr_pseudo_register_write): Likewise.
11006
11007 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11008
11009 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11010 offset on little-endian when passing small structures.
11011
11012 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11013
11014 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11015 (struct ppc64_sysv_argpos): New data structure.
11016 (ppc64_sysv_abi_push_float): Remove.
11017 (ppc64_sysv_abi_push_val): New function.
11018 (ppc64_sysv_abi_push_integer): Likewise.
11019 (ppc64_sysv_abi_push_freg): Likewise.
11020 (ppc64_sysv_abi_push_vreg): Likewise.
11021 (ppc64_sysv_abi_push_param): Likewise.
11022 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11023 (ppc64_sysv_abi_return_value_base): New function.
11024 (ppc64_sysv_abi_return_value): Refactor to use it.
11025
11026 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11027
11028 * NEWS: Document new target powerpc64le-*-linux*.
11029
11030 2014-02-04 Mark Kettenis <kettenis@gnu.org>
11031
11032 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11033 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11034 core dumps.
11035 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11036 register set used in ELF core dumps. Add floating-point register set.
11037
11038 2014-02-03 Kevin Buettner <kevinb@redhat.com>
11039
11040 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
11041 dwarf2_to_gdb[] table using symbolic constants. Adjust
11042 penultimate entry from number representing the PC register
11043 to symbolic constant representing the MDR register. Add
11044 constant for the PC register to the end of the table.
11045
11046 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11047
11048 * bsd-kvm.c: Include <sys/param.h>
11049
11050 2014-02-03 Mark Kettenis <kettenis@gnu.org>
11051
11052 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11053
11054 2014-01-31 Joel Brobecker <brobecker@adacore.com>
11055
11056 * ada-lang.h (clear_ada_sym_cache): Delete.
11057
11058 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11059
11060 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11061
11062 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11063
11064 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11065 the sigreturn register save area only if the syscall is
11066 sigreturn.
11067
11068 2014-01-29 Joel Brobecker <brobecker@adacore.com>
11069
11070 * valops.c (value_slice): Minor reformatting.
11071
11072 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11073
11074 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11075
11076 2014-01-28 Joel Brobecker <brobecker@adacore.com>
11077
11078 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11079 New static globals.
11080 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11081 (ada_ignore_descriptive_types_p): New static global.
11082 (find_parallel_type_by_descriptive_type): Return immediately
11083 if ada_ignore_descriptive_types_p is set.
11084 (_initialize_ada_language): Register new commands "maintenance
11085 set ada", "maintenance show ada", "maintenance set ada
11086 ignore-descriptive-types" and "maintenance show ada
11087 ignore-descriptive-types".
11088 * NEWS: Add entry for new "maint ada set/show
11089 ignore-descriptive-types" commands.
11090
11091 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11092
11093 * record-btrace.c (record_btrace_close): Call btrace_teardown
11094 for all threads.
11095
11096 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11097
11098 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11099 "ui-out.h".
11100
11101 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11102
11103 * ada-typeprint (type_is_full_subrange_of_target_type):
11104 New function.
11105 (print_range): Add parameter bounds_prefered_p. If not set,
11106 try printing range types using the name of their base type.
11107 (print_range_type): Add parameter bounds_prefered_p.
11108 Use it in call to print_range.
11109 (print_array_type, ada_print_type): Update calls to print_range
11110 and print_range_type.
11111
11112 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11113
11114 * ada-typeprint.c (print_array_type, print_choices, print_range)
11115 (print_range_bound, print_dynamic_range_bound, print_range_type):
11116 Remove declaration.
11117
11118 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11119
11120 * ada-typeprint.c (print_range): Add missing empty line
11121 after local declaration.
11122
11123 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11124
11125 * ada-valprint.c (print_optional_low_bound): Get index_type's
11126 target type for as long as it is a TYPE_CODE_RANGE.
11127
11128 2014-01-27 Joel Brobecker <brobecker@adacore.com>
11129
11130 * procfs.c (procfs_make_note_section): Remove assertion and
11131 associated comment.
11132
11133 2014-01-24 Yao Qi <yao@codesourcery.com>
11134
11135 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11136 * corelow.c (get_core_siginfo): Likewise.
11137
11138 2014-01-24 Yao Qi <yao@codesourcery.com>
11139
11140 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11141 ULONGEST. Don't check 'len' is negative.
11142 (remote_write_bytes): Change type of 'len' to ULONGEST.
11143
11144 2014-01-23 Tom Tromey <tromey@redhat.com>
11145
11146 PR python/16485:
11147 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11148 Handle exception from frame.block.
11149 (FrameVars.fetch_frame_locals): Likewise.
11150
11151 2014-01-23 Tom Tromey <tromey@redhat.com>
11152
11153 PR python/16487:
11154 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11155 on a NULL pointer. Move "goto error" to correct place.
11156
11157 2014-01-23 Tom Tromey <tromey@redhat.com>
11158
11159 PR python/16491:
11160 * python/py-framefilter.c (apply_frame_filter): Call
11161 ensure_python_env after computing gdbarch.
11162
11163 2014-01-23 Yao Qi <yao@codesourcery.com>
11164
11165 * target.c (raw_memory_xfer_partial): Change argument type
11166 from void * to gdb_byte *.
11167 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11168
11169 2014-01-22 Doug Evans <dje@google.com>
11170
11171 New gdbserver option --debug-format=timestamp.
11172 * NEWS: Mention it.
11173
11174 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11175
11176 * syscalls/s390x-linux.xml: New file.
11177 * syscalls/s390-linux.xml: New file.
11178 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11179 (XML_SYSCALL_FILENAME_S390X): Likewise.
11180 (op_svc): New enum value for SVC opcode.
11181 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11182 (s390_linux_get_syscall_number): New function.
11183 (s390_gdbarch_init): Register '*get_syscall_number' and the
11184 syscall xml file name.
11185 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11186 "s390-linux.xml" and "s390x-linux.xml".
11187 * NEWS: Announce new feature.
11188
11189 2014-01-22 Baruch Siach <baruch@tkos.co.il>
11190
11191 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11192
11193 2014-01-22 Pedro Alves <palves@redhat.com>
11194
11195 * xtensa-config.c: Include defs.h.
11196
11197 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11198
11199 * common/common-utils.h: Add "ARI:" comment beside __func__
11200 reference.
11201
11202 2014-01-22 Joel Brobecker <brobecker@adacore.com>
11203
11204 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11205 documentation a bit.
11206
11207 2014-01-21 Roland McGrath <mcgrathr@google.com>
11208
11209 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11210 * configure: Regenerate.
11211 * aclocal.m4: Regenerate.
11212 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11213 New substituted variables.
11214 (install-strip): New target.
11215 (INSTALL_SCRIPT): New substituted variable.
11216 (FLAGS_TO_PASS): Add it.
11217 (install-only): Use $(INSTALL_SCRIPT) rather than
11218 $(INSTALL_PROGRAM) for gcore.
11219
11220 2014-01-20 Tom Tromey <tromey@redhat.com>
11221
11222 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11223 together.
11224
11225 2014-01-20 Tom Tromey <tromey@redhat.com>
11226
11227 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11228 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11229 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11230 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11231 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11232 (struct cmd_list_element) <flags>: Remove.
11233 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11234 doc_allocated>: New fields.
11235 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11236 bitfields.
11237 * maint.c (maintenance_do_deprecate): Update.
11238 * top.c (execute_command): Update.
11239
11240 2014-01-20 Baruch Siach <baruch@tkos.co.il>
11241
11242 * xtensa-linux-nat.c: Include asm/ptrace.h.
11243
11244 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11245
11246 * Makefile.in (SFILES): Add d-support.c.
11247 (COMMON_OBS): Add d-support.o.
11248 * d-lang.h (d_parse_symbol): Add comment, now defined in
11249 d-support.c.
11250 * d-lang.c (parse_call_convention)
11251 (parse_attributes, parse_function_types)
11252 (parse_function_args, parse_type, parse_identifier)
11253 (call_convention_p, d_parse_symbol): Move functions to ...
11254 * d-support.c: ... New file.
11255
11256 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11257
11258 * d-lang.h (d_parse_symbol): Add declaration.
11259 * d-lang.c (extract_identifiers)
11260 (extract_type_info): Remove functions.
11261 (parse_call_convention, parse_attributes)
11262 (parse_function_types, parse_function_args)
11263 (parse_type, parse_identifier, call_convention_p)
11264 (d_parse_symbol): New functions.
11265 (d_demangle): Use d_parse_symbol to demangle D symbols.
11266
11267 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11268
11269 * d-lang.h (struct builtin_d_type): New data type.
11270 (builtin_d_type): Add declaration.
11271 * d-lang.c (d_language_arch_info, build_d_types)
11272 (builtin_d_type): New functions.
11273 (enum d_primitive_types): New data type.
11274 (d_language_defn): Change c_language_arch_info to
11275 d_language_arch_info.
11276 (d_type_data): New static variable.
11277 (_initialize_d_language): Initialize d_type_data.
11278
11279 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11280
11281 * d-lang.h (d_main_name): Add declaration.
11282 * d-lang.c (d_main_name): New function.
11283 * symtab.c (find_main_name): Add call to d_main_name.
11284
11285 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11286
11287 * d-lang.c (d_language_defn): Change macro_expansion_c to
11288 macro_expansion_no.
11289
11290 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11291
11292 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11293
11294 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11295
11296 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11297 gdb_exception" declaration.
11298 * remote.c (getpkt_or_notif_sane): Likewise.
11299
11300 2014-01-17 Doug Evans <dje@google.com>
11301
11302 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11303 function, contents of dirnames_to_char_ptr_vec_append moved here.
11304 (delim_string_to_char_ptr_vec): New function.
11305 (dirnames_to_char_ptr_vec_append): Rewrite.
11306 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11307
11308 2014-01-17 Doug Evans <dje@google.com>
11309
11310 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11311 and moved here ...
11312 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11313 #include "common-utils.h".
11314 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11315 * common/vec.h (VEC_ASSERT_PASS): Update.
11316 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11317 (MACH_CHECK_ERROR): Update.
11318
11319 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11320
11321 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11322 comments.
11323 * gdbarch.h: Regenerate.
11324
11325 2014-01-16 Tom Tromey <tromey@redhat.com>
11326
11327 * value.c (struct value) <regnum>: Move earlier.
11328
11329 2014-01-16 Tom Tromey <tromey@redhat.com>
11330
11331 * remote.c (extended_remote_create_inferior): Rename from
11332 extended_remote_create_inferior_1. Add "ops" argument. Remove
11333 old implementation.
11334
11335 2014-01-16 Pedro Alves <palves@redhat.com>
11336
11337 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11338 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11339 the backchain.
11340
11341 2014-01-16 Doug Evans <dje@google.com>
11342
11343 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11344
11345 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11346
11347 * btrace.h (btrace_thread_flag): New.
11348 (struct btrace_thread_info) <flags>: New.
11349 * record-btrace.c (record_btrace_resume_thread)
11350 (record_btrace_find_thread_to_move, btrace_step_no_history)
11351 (btrace_step_stopped, record_btrace_start_replaying)
11352 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11353 (record_btrace_find_resume_thread): New.
11354 (record_btrace_resume, record_btrace_wait): Extend.
11355 (record_btrace_can_execute_reverse): New.
11356 (record_btrace_open): Fail in non-stop mode.
11357 (record_btrace_set_replay): Split into this, ...
11358 (record_btrace_stop_replaying): ... this, ...
11359 (record_btrace_clear_histories): ... and this.
11360 (init_record_btrace_ops): Init to_can_execute_reverse.
11361 * NEWS: Announce it.
11362
11363 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11364
11365 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11366 (forward_target_decr_pc_after_break)
11367 (target_decr_pc_after_break): New.
11368 * target.c (forward_target_decr_pc_after_break)
11369 (target_decr_pc_after_break): New.
11370 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11371 instead of gdbarch_decr_pc_after_break.
11372 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11373 instead of gdbarch_decr_pc_after_break.
11374 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11375 instead of gdbarch_decr_pc_after_break.
11376 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11377 instead of gdbarch_decr_pc_after_break.
11378 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11379 instead of gdbarch_decr_pc_after_break.
11380 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11381 instead of gdbarch_decr_pc_after_break.
11382
11383 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11384
11385 * btrace.c: Include regcache.h.
11386 (btrace_add_pc): New.
11387 (btrace_enable): Call btrace_add_pc.
11388 (btrace_is_empty): New.
11389 * btrace.h (btrace_is_empty): New.
11390 * record-btrace.c (require_btrace, record_btrace_info): Call
11391 btrace_is_empty.
11392
11393 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11394
11395 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11396 Support delta reads.
11397 (linux_disable_btrace): Change return type.
11398 * common/linux-btrace.h (linux_read_btrace): Change parameters
11399 and return type to allow error reporting. Update users.
11400 (linux_disable_btrace): Change return type. Update users.
11401 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11402 New.
11403 (btrace_error): New.
11404 (btrace_block) <begin>: Comment on BEGIN == 0.
11405 * btrace.c (btrace_compute_ftrace): Start from the end of
11406 the current trace.
11407 (btrace_stitch_trace, btrace_clear_history): New.
11408 (btrace_fetch): Read delta trace, return if replaying.
11409 (btrace_clear): Move clear history code to btrace_clear_history.
11410 (parse_xml_btrace): Throw an error if parsing failed.
11411 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11412 and return type to allow error reporting.
11413 (target_read_btrace): Change parameters and return type to allow
11414 error reporting.
11415 * target.c (target_read_btrace): Update.
11416 * remote.c (remote_read_btrace): Support delta reads. Pass
11417 errors on.
11418 * NEWS: Announce it.
11419
11420 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11421
11422 * record.h (record_btrace_frame_unwind)
11423 (record_btrace_tailcall_frame_unwind): New declarations.
11424 * dwarf2-frame: Include record.h
11425 (dwarf2_frame_cfa): Throw an error for btrace frames.
11426 * record-btrace.c: Include hashtab.h.
11427 (btrace_get_bfun_name): New.
11428 (btrace_call_history): Call btrace_get_bfun_name.
11429 (struct btrace_frame_cache): New.
11430 (bfcache): New.
11431 (bfcache_hash, bfcache_eq, bfcache_new): New.
11432 (btrace_get_frame_function): New.
11433 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11434 (record_btrace_frame_this_id): Compute own id.
11435 (record_btrace_frame_prev_register): Provide PC, throw_error
11436 for all other registers.
11437 (record_btrace_frame_sniffer): Detect btrace frames.
11438 (record_btrace_tailcall_frame_sniffer): New.
11439 (record_btrace_frame_dealloc_cache): New.
11440 (record_btrace_frame_unwind): Add new functions.
11441 (record_btrace_tailcall_frame_unwind): New.
11442 (_initialize_record_btrace): Allocate cache.
11443 * btrace.c (btrace_clear): Call reinit_frame_cache.
11444 * NEWS: Announce it.
11445
11446 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11447
11448 * record-btrace.c (record_btrace_set_replay)
11449 (record_btrace_goto_begin, record_btrace_goto_end)
11450 (record_btrace_goto): New.
11451 (init_record_btrace_ops): Initialize them.
11452 * NEWS: Announce it.
11453
11454 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11455
11456 * record-btrace.c (record_btrace_find_new_threads)
11457 (record_btrace_thread_alive): New.
11458 (init_record_btrace_ops): Initialize to_find_new_threads and
11459 to_thread_alive.
11460
11461 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11462
11463 * record-btrace.c (record_btrace_resume): New.
11464 (record_btrace_wait): New.
11465 (init_record_btrace_ops): Initialize to_wait and to_resume.
11466
11467 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11468
11469 * record-btrace.c (record_btrace_xfer_partial)
11470 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11471 (record_btrace_allow_memory_access): New.
11472 (init_record_btrace_ops): Initialize new methods.
11473 * target.c (raw_memory_xfer_partial): Bail out if target reports
11474 that this memory is not available.
11475
11476 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11477
11478 * target.h (target_ops) <to_insert_breakpoint>
11479 <to_remove_breakpoint>: Add target_ops parameter.
11480 (forward_target_insert_breakpoint): New.
11481 (forward_target_remove_breakpoint): New.
11482 (memory_remove_breakpoint, memory_insert_breakpoint):
11483 Add target_ops parameter.
11484 * target.c (target_insert_breakpoint): Split into this and ...
11485 (forward_target_insert_breakpoint): ... this.
11486 (target_remove_breakpoint): Split into this and ...
11487 (forward_target_remove_breakpoint): ... this.
11488 (debug_to_insert_breakpoint): Add target_ops parameter.
11489 Call forward_target_insert_breakpoint.
11490 (debug_to_remove_breakpoint): Add target_ops parameter.
11491 Call forward_target_remove_breakpoint.
11492 (update_current_target): Do not inherit or default to_insert_breakpoint
11493 and to_remove_breakpoint.
11494 * corelow.c (ignore): Add target_ops parameter.
11495 * exec.c (ignore): Add target_ops parameter.
11496 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11497 Add target_ops parameter.
11498 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11499 Add target_ops parameter.
11500 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11501 Add target_ops parameter.
11502 * record-full.c (record_full_beneath_to_insert_breakpoint)
11503 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11504 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11505 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11506 (record_full_core_remove_breakpoint): Add target_ops parameter.
11507 Update users.
11508 (record_full_beneath_to_insert_breakpoint_ops)
11509 (record_full_beneath_to_remove_breakpoint_ops)
11510 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11511 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11512 tmp_to_remove_breakpoint_ops,
11513 record_full_beneath_to_insert_breakpoint_ops, and
11514 record_full_beneath_to_remove_breakpoint_ops.
11515 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11516 (m32r_remove_breakpoint): Add target_ops parameter.
11517 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11518 Add target_ops parameter.
11519 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11520 Add target_ops parameter.
11521
11522 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11523 Markus Metzger <markus.t.metzger@intel.com>
11524
11525 * record-btrace.c: Include frame-unwind.h.
11526 (record_btrace_frame_unwind_stop_reason)
11527 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11528 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11529 New.
11530 (init_record_btrace_ops): Install it.
11531
11532 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11533
11534 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11535 get_prev_frame_1.
11536
11537 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11538
11539 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11540 earlier.
11541
11542 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11543
11544 * frame-unwind.c: Include target.h.
11545 (frame_unwind_try_unwinder): New function with code from ...
11546 (frame_unwind_find_by_frame): ... here. New variable
11547 unwinder_from_target, call also target_get_unwinder)
11548 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11549 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11550 * target.h (struct target_ops): New fields to_get_unwinder and
11551 to_get_tailcall_unwinder.
11552 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11553
11554 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11555
11556 * record-btrace.c (record_btrace_fetch_registers)
11557 (record_btrace_store_registers)
11558 (record_btrace_to_prepare_to_store): New.
11559 (init_record_btrace_ops): Add the above.
11560
11561 2014-01-16 Tom Tromey <tromey@redhat.com>
11562
11563 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11564 * target.h (struct target_ops) <to_prepare_to_store>: Add
11565 argument.
11566 (target_prepare_to_store): Add argument.
11567 * target.c (debug_to_prepare_to_store): Add argument.
11568 (update_current_target): Update.
11569 * remote.c (remote_prepare_to_store): Add 'self' argument.
11570 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11571 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11572 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11573 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11574 argument.
11575 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11576 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11577 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11578 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11579 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11580
11581 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11582
11583 * btrace.h (replay) <replay>: New.
11584 (btrace_is_replaying): New.
11585 * btrace.c (btrace_clear): Free replay iterator.
11586 (btrace_is_replaying): New.
11587 * record-btrace.c (record_btrace_is_replaying): New.
11588 (record_btrace_info): Print insn number if replaying.
11589 (record_btrace_insn_history): Start at replay position.
11590 (record_btrace_call_history): Start at replay position.
11591 (init_record_btrace_ops): Init to_record_is_replaying.
11592
11593 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11594
11595 * record-btrace.c (record_btrace_insn_history_range): Include
11596 end.
11597 (record_btrace_insn_history_from): Adjust range.
11598 (record_btrace_call_history_range): Include
11599 end.
11600 (record_btrace_call_history_from): Adjust range.
11601 * NEWS: Announce changes.
11602
11603 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11604
11605 * record.h (enum record_print_flag)
11606 <record_print_indent_calls>: New.
11607 * record.c (get_call_history_modifiers): Recognize /c modifier.
11608 (_initialize_record): Document /c modifier.
11609 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11610 Reorder fields. Optionally indent the function name. Update
11611 all users.
11612 * NEWS: Announce changes.
11613
11614 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11615
11616 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11617
11618 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11619
11620 * btrace.c (ftrace_new_function): Start counting at one.
11621 * record-btrace.c (record_btrace_info): Adjust number of calls
11622 and insns.
11623 * NEWS: Announce it.
11624
11625 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11626
11627 * record-btrace.c (btrace_call_history_insn_range): Print
11628 insn range as [begin, end].
11629
11630 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11631
11632 * btrace.h (struct btrace_func_link): New.
11633 (enum btrace_function_flag): New.
11634 (struct btrace_inst): Rename to ...
11635 (struct btrace_insn): ...this. Update all users.
11636 (struct btrace_func) <ibegin, iend>: Remove.
11637 (struct btrace_func_link): New.
11638 (struct btrace_func): Rename to ...
11639 (struct btrace_function): ...this. Update all users.
11640 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11641 (number, level, flags>: New.
11642 (struct btrace_insn_iterator): Rename to ...
11643 (struct btrace_insn_history): ...this.
11644 Update all users.
11645 (struct btrace_insn_iterator, btrace_call_iterator): New.
11646 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11647 (struct btrace_target_info) <begin, end, level>
11648 <insn_history, call_history>: New.
11649 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11650 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11651 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11652 (btrace_call_number, btrace_call_begin, btrace_call_end)
11653 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11654 (btrace_find_function_by_number, btrace_set_insn_history)
11655 (btrace_set_call_history): New.
11656 * btrace.c (btrace_init_insn_iterator)
11657 (btrace_init_func_iterator, compute_itrace): Remove.
11658 (ftrace_print_function_name, ftrace_print_filename)
11659 (ftrace_skip_file): Change
11660 parameter to const.
11661 (ftrace_init_func): Remove.
11662 (ftrace_debug): Use new btrace_function fields.
11663 (ftrace_function_switched): Also consider gaining and
11664 losing symbol information).
11665 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11666 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11667 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11668 New.
11669 (ftrace_new_function): Move. Remove debug print.
11670 (ftrace_update_lines, ftrace_update_insns): New.
11671 (ftrace_update_function): Check for call, ret, and jump.
11672 (compute_ftrace): Renamed to ...
11673 (btrace_compute_ftrace): ...this. Rewritten to compute call
11674 stack.
11675 (btrace_fetch, btrace_clear): Updated.
11676 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11677 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11678 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11679 (btrace_call_number, btrace_call_begin, btrace_call_end)
11680 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11681 (btrace_find_function_by_number, btrace_set_insn_history)
11682 (btrace_set_call_history): New.
11683 * record-btrace.c (require_btrace): Use new btrace thread
11684 info fields.
11685 (record_btrace_info, btrace_insn_history)
11686 (record_btrace_insn_history, record_btrace_insn_history_range):
11687 Use new btrace thread info fields and new iterator.
11688 (btrace_func_history_src_line): Rename to ...
11689 (btrace_call_history_src_line): ...this. Use new btrace
11690 thread info fields.
11691 (btrace_func_history): Rename to ...
11692 (btrace_call_history): ...this. Use new btrace thread info
11693 fields and new iterator.
11694 (record_btrace_call_history, record_btrace_call_history_range):
11695 Use new btrace thread info fields and new iterator.
11696
11697 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11698
11699 * frame.h (frame_id_build_unavailable_stack_special): New.
11700 * frame.c (frame_id_build_unavailable_stack_special): New.
11701
11702 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11703
11704 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11705 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11706 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11707 to gdbarch.
11708 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11709 (i386_insn_is_jump, i386_jmp_p): New.
11710 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11711 insn_is_jump to gdbarch.
11712 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11713 * gdbarch.h: Regenerated.
11714 * gdbarch.c: Regenerated.
11715 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11716 (default_insn_is_jump): New.
11717 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11718 (default_insn_is_jump): New.
11719
11720 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11721
11722 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11723 Change to ...
11724 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11725 (btrace_read_type) <btrace_read_new>: Change to ...
11726 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11727
11728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11729
11730 * common/linux-btrace.c (linux_read_btrace): Free trace from
11731 previous iteration.
11732
11733 2014-01-15 Doug Evans <dje@google.com>
11734
11735 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11736 uint32_t.
11737
11738 2014-01-15 Tom Tromey <tromey@redhat.com>
11739
11740 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11741 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11742 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11743 (set_objfile_main_name): New function.
11744 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11745 language_of_main>: New fields.
11746 (set_objfile_main_name): Declare.
11747 * symtab.c (find_main_name): Loop over objfiles to find the main
11748 name and language.
11749 (set_main_name): Now static.
11750 (get_main_info): Add comment.
11751 * symtab.h (set_main_name): Don't declare.
11752
11753 2014-01-15 Tom Tromey <tromey@redhat.com>
11754
11755 * symtab.c (main_progspace_key): New global.
11756 (struct main_info): New.
11757 (name_of_main, language_of_main): Remove.
11758 (get_main_info, main_info_cleanup): New function.
11759 (set_main_name, main_name, main_language): Use get_main_info.
11760 (_initialize_symtab): Initialize main_progspace_key.
11761
11762 2014-01-15 Tom Tromey <tromey@redhat.com>
11763
11764 * dbxread.c (process_one_symbol): Update.
11765 * dwarf2read.c (read_partial_die): Update.
11766 * symfile.c (set_initial_language): Call main_language.
11767 * symtab.c (language_of_main): Now static.
11768 (set_main_name): Add 'lang' parameter.
11769 (find_main_name): Update.
11770 (main_language): New function.
11771 (symtab_observer_executable_changed): Update.
11772 * symtab.h (set_main_name): Update.
11773 (language_of_main): Remove.
11774 (main_language): Declare.
11775
11776 2014-01-15 Tom Tromey <tromey@redhat.com>
11777
11778 * symfile.c (init_entry_point_info): Use new "initialized" field.
11779 Update.
11780 * objfiles.h (struct entry_point) <initialized>: New field.
11781 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11782 (struct objfile) <ei>: ...here. Remove.
11783 * objfiles.c (entry_point_address_query): Update.
11784
11785 2014-01-15 Tom Tromey <tromey@redhat.com>
11786
11787 * objfiles.c (entry_point_address_query): Relocate entry point
11788 address.
11789 (objfile_relocate1): Do not relocate entry point address.
11790 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11791 <the_bfd_section_index>: New field.
11792 * symfile.c (init_entry_point_info): Find the entry point's
11793 section.
11794
11795 2014-01-15 Tom Tromey <tromey@redhat.com>
11796
11797 * solib-frv.c (enable_break): Use entry_point_address_query.
11798
11799 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11800
11801 * NEWS: Add note on improved process record-replay on
11802 arm*-linux* targets.
11803
11804 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11805
11806 * arm-tdep.c (enum arm_record_result): New enum.
11807 (arm_record_unsupported_insn): New function.
11808 (arm_record_coproc_data_proc): Removed.
11809 (thumb2_record_ld_st_multiple): New function.
11810 (thumb2_record_ld_st_dual_ex_tbb): New function.
11811 (thumb2_record_data_proc_sreg_mimm): New function.
11812 (thumb2_record_ps_dest_generic): New function.
11813 (thumb2_record_branch_misc_cntrl): New function.
11814 (thumb2_record_str_single_data): New function.
11815 (thumb2_record_ld_mem_hints): New function.
11816 (thumb2_record_ld_word): New function.
11817 (thumb2_record_lmul_lmla_div): New function.
11818 (thumb2_record_decode_insn_handler): New function.
11819 (decode_insn): Add thumb32 instruction handlers.
11820
11821 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11822
11823 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11824 (struct arm_linux_record_tdep): Declare.
11825 (arm_canonicalize_syscall): New function.
11826 (arm_all_but_pc_registers_record): New function.
11827 (arm_linux_syscall_record): New function.
11828 (arm_linux_init_abi): Add syscall recording constructs.
11829 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11830 decoding. (arm_record_coproc_data_proc): Update arm syscall
11831 decoding.
11832 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11833 <arm_syscall_record>: New field.
11834 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11835 gdb_target_obs.
11836
11837 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11838
11839 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11840 register for push instruction recording.
11841
11842 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11843
11844 * arm-tdep.c (thumb_record_misc): Update to correct logical
11845 error while recording ldm, ldmia and pop instructions.
11846
11847 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
11848
11849 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11850
11851 2014-01-15 Pedro Alves <palves@redhat.com>
11852
11853 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11854 (go32_resume, go32_fetch_registers, store_register)
11855 (go32_store_registers, go32_prepare_to_store)
11856 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11857 (go32_create_inferior, go32_can_run, go32_terminal_init)
11858 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11859 declarations.
11860
11861 2014-01-15 Tom Tromey <tromey@redhat.com>
11862
11863 * target.h (async_callback_ftype): New typedef.
11864 (struct target_ops) <to_async>: Use it.
11865
11866 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11867
11868 * python/py-value.c (get_field_type): Remove unnecessary curly
11869 braces for single-statement if block.
11870
11871 2014-01-15 Joel Brobecker <brobecker@adacore.com>
11872
11873 * python/py-type.c (convert_field): Add missing empty line
11874 after declarations.
11875
11876 2014-01-14 Doug Evans <dje@google.com>
11877
11878 * symfile.h (expand_symtabs_matching): Renamed from
11879 expand_partial_symbol_names. Update prototype.
11880 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11881 * symfile.c (expand_symtabs_matching): Renamed from
11882 expand_partial_symbol_names. New args file_matcher, kind.
11883 Rename arg fun to symbol_matcher.
11884 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11885 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11886 ada_expand_partial_symbol_name.
11887 (ada_make_symbol_completion_list): Update to call
11888 expand_symtabs_matching.
11889 (ada_add_global_exceptions): Call expand_symtabs_matching.
11890 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11891 call map_symbol_filenames.
11892 * symtab.c (sources_info): Update to call map_symbol_filenames.
11893 (search_symbols): Call expand_symtabs_matching.
11894 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11895 (default_make_symbol_completion_list_break_on): Update to call
11896 expand_symtabs_matching.
11897 (make_source_files_completion_list): Update to call
11898 map_symbol_filenames.
11899
11900 2014-01-14 Doug Evans <dje@google.com>
11901
11902 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11903 (expand_symtabs_symbol_matcher_ftype): New typedef.
11904 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11905 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11906 * symfile.c (expand_partial_symbol_names): Update to use
11907 expand_symtabs_symbol_matcher_ftype.
11908 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11909 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11910 Arg name_matcher renamed to symbol_matcher.
11911 * psymtab.c (recursively_search_psymtabs): Update to use
11912 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11913 sym_matcher.
11914 (expand_symtabs_matching_via_partial): Update to use
11915 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11916 Arg name_matcher renamed to symbol_matcher.
11917
11918 2014-01-14 Doug Evans <dje@google.com>
11919
11920 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11921 (map_partial_symbol_filenames): Ditto.
11922 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11923 (map_partial_symbol_filenames): Ditto.
11924 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11925 (map_partial_symbol_filenames): Ditto.
11926 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11927 (map_partial_symbol_filenames): Ditto.
11928 * symtab.c: Delete #include "psymtab.h".
11929
11930 2014-01-14 Pedro Alves <palves@redhat.com>
11931 Tom Tromey <tromey@redhat.com>
11932
11933 * infrun.c (use_displaced_stepping): Use find_record_target
11934 instead of RECORD_IS_USED.
11935 (adjust_pc_after_break): Use record_full_is_used instead of
11936 RECORD_IS_USED.
11937 * record-btrace.c (record_btrace_open): Call record_preopen
11938 instead of checking RECORD_IS_USED.
11939 * record-full.c (record_full_shortname)
11940 (record_full_core_shortname): New globals.
11941 (record_full_is_used): New function.
11942 (find_full_open): Call record_preopen instead of checking
11943 RECORD_IS_USED.
11944 (init_record_full_ops): Set the target's shortname to
11945 record_full_shortname.
11946 (init_record_full_core_ops): Set the target's shortname to
11947 record_full_core_shortname.
11948 * record-full.h (record_full_is_used): Declare.
11949 * record.c (find_record_target): Make extern.
11950 (record_preopen): New function.
11951 * record.h (RECORD_IS_USED): Delete macro.
11952 (find_record_target, record_preopen): Declare functions.
11953
11954 2014-01-14 Yao Qi <yao@codesourcery.com>
11955
11956 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11957 'len''s type to ULONGEST.
11958 (core_xfer_shared_libraries_aix): Likewise.
11959 * gdbarch.c, gdbarch.h: Regenerated.
11960 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11961 Change type of 'len' to ULONGEST.
11962 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11963 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11964
11965 2014-01-14 Yao Qi <yao@codesourcery.com>
11966
11967 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11968 type of 'len' to ULONGEST.
11969 (linux_xfer_osdata_processgroups): Likewise.
11970 (linux_xfer_osdata_threads): Likewise.
11971 (linux_xfer_osdata_fds): Likewise.
11972 (linux_xfer_osdata_isockets): Likewise.
11973 (linux_xfer_osdata_shm): Likewise.
11974 (linux_xfer_osdata_sem): Likewise.
11975 (linux_xfer_osdata_msg): Likewise.
11976 (linux_common_xfer_osdata): Likewise.
11977 (struct osdata_type) <getter>: Likewise.
11978 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11979 the declaration.
11980
11981 2014-01-14 Yao Qi <yao@codesourcery.com>
11982
11983 * target.h (target_xfer_partial_ftype): Update.
11984 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11985 ULONGEST.
11986 * aix-thread.c (aix_thread_xfer_partial): Change type of
11987 argument 'len' to ULONGEST.
11988 * auxv.c (procfs_xfer_auxv): Likewise.
11989 (ld_so_xfer_auxv): Likewise.
11990 (memory_xfer_auxv): Likewise.
11991 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11992 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11993 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11994 * corelow.c (core_xfer_partial): Likewise.
11995 * ctf.c (ctf_xfer_partial): Likewise.
11996 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11997 '%u'.
11998 (darwin_read_dyld_info): Likewise.
11999 (darwin_xfer_partial): Likewise.
12000 * exec.c (section_table_xfer_memory_partial): Likewise.
12001 (exec_xfer_partial): Likewise.
12002 * exec.h (section_table_xfer_memory_partial): Update
12003 declaration.
12004 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12005 instead of plongest.
12006 (gnu_xfer_partial): Likewise.
12007 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12008 (ia64_hpux_xfer_solib_got): Likewise.
12009 (ia64_hpux_xfer_partial): Likewise.
12010 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12011 * inf-ptrace.c (inf_ptrace_xfer_partial):
12012 * inf-ttrace.c (inf_ttrace_xfer_partial):
12013 * linux-nat.c (linux_xfer_siginfo): Likewise.
12014 (linux_nat_xfer_partial): Likewise.
12015 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12016 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12017 * monitor.c (monitor_xfer_memory): Likewise.
12018 (monitor_xfer_partial): Likewise.
12019 * procfs.c (procfs_xfer_partial): Likewise.
12020 * record-full.c (record_full_xfer_partial): Likewise.
12021 (record_full_core_xfer_partial): Likewise.
12022 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12023 instead of plongest.
12024 (gdbsim_xfer_partial): Likewise.
12025 * remote.c (remote_xfer_partial): Likewise.
12026 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12027 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12028 declaration.
12029 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12030 (rs6000_xfer_shared_libraries): Likewise.
12031 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12032 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12033 (sparc_xfer_partial): Likewise.
12034 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12035 (spu_xfer_partial): Likewise.
12036 * spu-multiarch.c (spu_xfer_partial): Likewise.
12037 * target.c (target_read_live_memory): Likewise.
12038 (memory_xfer_live_readonly_partial): Likewise.
12039 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12040 (target_xfer_partial, default_xfer_partial): Likewise.
12041 (current_xfer_partial): Likewise.
12042 * tracepoint.c (tfile_xfer_partial): Likewise.
12043 * windows-nat.c (windows_xfer_memory): Likewise. Call
12044 pulongest instead of plongest.
12045 (windows_xfer_partial): Likewise.
12046 (windows_xfer_shared_libraries): Likewise.
12047
12048 2014-01-14 Yao Qi <yao@codesourcery.com>
12049
12050 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12051 target_xfer_partial_ftype.
12052
12053 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12054
12055 PR python/15464
12056 PR python/16113
12057 * valops.c (value_struct_elt_bitpos): New function
12058 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12059 object to 'None' if the field name is an empty string ("").
12060 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12061 attribute to look for a field when 'name' is 'None'.
12062 (get_field_type): New function
12063
12064 2014-01-13 Doug Evans <dje@google.com>
12065
12066 PR symtab/16426
12067 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12068 (try_open_dwop_file): Ditto.
12069 * gdb_bfd.c: #include "vec.h".
12070 (bfdp): New typedef.
12071 (struct gdb_bfd_data): New member included_bfds.
12072 (gdb_bfd_unref): Unref all included bfds.
12073 (gdb_bfd_record_inclusion): New function.
12074 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12075
12076 2014-01-13 Tom Tromey <tromey@redhat.com>
12077
12078 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12079
12080 2014-01-13 Tom Tromey <tromey@redhat.com>
12081
12082 * defs.h (use_windows): Remove.
12083 * gdb.c (main): Update.
12084 * main.c (captured_main, gdb_main): Update.
12085 * main.h (struct captured_main_args) <use_windows>: Remove.
12086 * top.c (use_windows): Remove.
12087
12088 2014-01-13 Tom Tromey <tromey@redhat.com>
12089
12090 * defs.h (deprecated_flush_hook): Remove.
12091
12092 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12093
12094 PR threads/16216
12095 * linux-thread-db.c (try_thread_db_load): Add parameter
12096 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12097 (try_thread_db_load_from_pdir_1): Move it there from here.
12098 (try_thread_db_load_from_sdir): Update caller.
12099 (try_thread_db_load_from_dir): Move it there from here.
12100
12101 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12102
12103 * regformats/regdat.sh: Always rewrite the register file.
12104
12105 2014-01-13 Pedro Alves <palves@redhat.com>
12106
12107 * Makefile.in (CHECK_HEADERS): New variable.
12108 (check-headers:): New rule.
12109
12110 2014-01-13 Tom Tromey <tromey@redhat.com>
12111
12112 * cli/cli-setshow.c (do_set_command): Update.
12113 * defs.h (deprecated_set_hook): Remove.
12114 * top.c (deprecated_set_hook): Remove.
12115
12116 2014-01-13 Pedro Alves <palves@redhat.com>
12117
12118 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12119 the tracepoint if the PC is a pseudo-register.
12120
12121 2014-01-13 Tom Tromey <tromey@redhat.com>
12122
12123 * defs.h (XCALLOC): Remove.
12124 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12125 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12126 * dwarf2loc.c (allocate_piece_closure): Likewise.
12127 * elfread.c (elf_symfile_segments): Likewise.
12128 (elf_symfile_segments): Likewise.
12129 * gdbtypes.c (copy_type_recursive): Likewise.
12130 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12131 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12132 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12133 XCALLOC.
12134 * mt-tdep.c (mt_gdbarch_init): Likewise.
12135 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12136 XCALLOC.
12137 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12138 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12139 * registry.c (registry_alloc_data): Likewise.
12140 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12141 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12142 * serial.c (serial_fdopen_ops): Likewise.
12143 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12144 XCALLOC.
12145 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12146 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12147 not XCALLOC.
12148
12149 2014-01-13 Tom Tromey <tromey@redhat.com>
12150
12151 * defs.h (XMALLOC): Remove.
12152 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12153 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12154 * cli-out.c (struct ui_out *): Likewise.
12155 * cli/cli-dump.c (add_dump_command): Likewise.
12156 (add_dump_command): Likewise.
12157 * complaints.c (get_complaints): Likewise.
12158 (find_complaint): Likewise.
12159 * dwarf2-frame.c (execute_cfa_program): Likewise.
12160 * dwarf2read.c (abbrev_table_read_table): Likewise.
12161 * gdbarch.sh: Likewise.
12162 * gdbarch.c: Rebuild.
12163 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12164 * interps.c (interp_new): Likewise.
12165 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12166 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12167 * mi/mi-console.c (mi_console_file_new): Likewise.
12168 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12169 * mi/mi-out.c (mi_out_new): Likewise.
12170 * mi/mi-parse.c (mi_parse): Likewise.
12171 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12172 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12173 * observer.c (xalloc_observer_list_node): Likewise.
12174 * regcache.c (regcache_xmalloc_1): Likewise.
12175 * reggroups.c (reggroup_new): Likewise.
12176 (_initialize_reggroup): Likewise.
12177 * registry.c (register_data_with_cleanup): Likewise.
12178 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12179 * ser-base.c (serial_ttystate): Likewise.
12180 * ser-mingw.c (make_pipe_state): Likewise.
12181 * ser-pipe.c (pipe_open): Likewise.
12182 * serial.c (serial_open): Likewise.
12183 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12184 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12185 (tui_alloc_win_info): Likewise.
12186 (tui_add_content_elements): Likewise.
12187 * tui/tui-file.c (tui_file_new): Likewise.
12188 * tui/tui-out.c (tui_out_new): Likewise.
12189 * ui-file.c (mem_file_new): Likewise.
12190 * ui-out.c (push_level): Likewise.
12191 (make_cleanup_ui_out_end): Likewise.
12192 (append_header_to_list): Likewise.
12193 (ui_out_new): Likewise.
12194 * user-regs.c (user_reg_add_builtin): Likewise.
12195
12196 2014-01-13 Tom Tromey <tromey@redhat.com>
12197
12198 * defs.h (XZALLOC): Remove.
12199 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12200 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12201 (get_ada_tasks_inferior_data): Likewise.
12202 * auto-load.c (get_auto_load_pspace_data): Likewise.
12203 * auxv.c (get_auxv_inferior_data): Likewise.
12204 * bfd-target.c (target_bfd_reopen): Likewise.
12205 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12206 (deprecated_insert_raw_breakpoint): Likewise.
12207 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12208 * corelow.c (core_open): Likewise.
12209 * darwin-nat.c (darwin_check_new_threads): Likewise.
12210 (darwin_attach_pid): Likewise.
12211 * dummy-frame.c (dummy_frame_push): Likewise.
12212 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12213 * dwarf2loc.c (allocate_piece_closure): Likewise.
12214 * elfread.c (elf_symfile_segments): Likewise.
12215 * eval.c (ptrmath_type_p): Likewise.
12216 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12217 * gdbtypes.c (alloc_type_arch): Likewise.
12218 (alloc_type_instance): Likewise.
12219 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12220 * inf-child.c (inf_child_can_use_agent): Likewise.
12221 * inflow.c (get_inflow_inferior_data): Likewise.
12222 * infrun.c (save_infcall_suspend_state): Likewise.
12223 * jit.c (jit_reader_load): Likewise.
12224 (get_jit_objfile_data): Likewise.
12225 (get_jit_program_space_data): Likewise.
12226 (jit_object_open_impl): Likewise.
12227 (jit_symtab_open_impl): Likewise.
12228 (jit_block_open_impl): Likewise.
12229 (jit_frame_sniffer): Likewise.
12230 * linux-fork.c (add_fork): Likewise.
12231 * maint.c (make_command_stats_cleanup): Likewise.
12232 * objfiles.c (get_objfile_pspace_data): Likewise.
12233 * opencl-lang.c (struct lval_closure): Likewise.
12234 * osdata.c (osdata_start_osdata): Likewise.
12235 * progspace.c (new_address_space): Likewise.
12236 (add_program_space): Likewise.
12237 * remote-sim.c (get_sim_inferior_data): Likewise.
12238 * sh-tdep.c (sh_gdbarch_init): Likewise.
12239 * skip.c (Ignore): Likewise.
12240 (skip_delete_command): Likewise.
12241 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12242 (library_list_start_library): Likewise.
12243 (solib_aix_current_sos): Likewise.
12244 * solib-darwin.c (get_darwin_info): Likewise.
12245 (darwin_current_sos): Likewise.
12246 * solib-dsbt.c (get_dsbt_info): Likewise.
12247 * solib-ia64-hpux.c (new_so_list): Likewise.
12248 (ia64_hpux_get_solib_linkage_addr): Likewise.
12249 * solib-spu.c (append_ocl_sos): Likewise.
12250 (spu_current_sos): Likewise.
12251 * solib-svr4.c (get_svr4_info): Likewise.
12252 (svr4_keep_data_in_core): Likewise.
12253 (library_list_start_library): Likewise.
12254 (svr4_default_sos): Likewise.
12255 (svr4_read_so_list): Likewise.
12256 * solib-target.c (library_list_start_library): Likewise.
12257 (solib_target_current_sos): Likewise.
12258 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12259 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12260 * symfile.c (default_symfile_segments): Likewise.
12261 * target-descriptions.c (tdesc_data_init): Likewise.
12262 (tdesc_create_reg): Likewise.
12263 (struct tdesc_type *): Likewise.
12264 (tdesc_create_vector): Likewise.
12265 (tdesc_set_struct_size): Likewise.
12266 (struct tdesc_type *): Likewise.
12267 (tdesc_free_feature): Likewise.
12268 (tdesc_create_feature): Likewise.
12269 * windows-nat.c (windows_add_thread): Likewise.
12270 (windows_make_so): Likewise.
12271 * xml-support.c (gdb_xml_body_text): Likewise.
12272 (gdb_xml_create_parser_and_cleanup): Likewise.
12273 (xml_process_xincludes): Likewise.
12274 * xml-syscall.c (allocate_syscalls_info): Likewise.
12275 (syscall_create_syscall_desc): Likewise.
12276
12277 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12278
12279 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12280 function, with code from i386_stap_parse_special_token.
12281 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12282 (i386_stap_parse_special_token): Move code to the two functions
12283 above; simplify it.
12284
12285 2014-01-09 Pedro Alves <palves@redhat.com>
12286 Hui Zhu <hui@codesourcery.com>
12287
12288 PR gdb/16101
12289 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12290 bp_err_string. Don't mark the location shlib_disabled if the
12291 error thrown wasn't a generic or memory error. Catch errors
12292 thrown while inserting breakpoints in overlayed code. Output
12293 error message of software breakpoints.
12294 * remote.c (remote_insert_breakpoint): If this breakpoint has
12295 target-side commands but this stub doesn't support Z0 packets,
12296 throw NOT_SUPPORTED_ERROR error.
12297 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12298 * target.h (target_insert_breakpoint): Extend comment.
12299 (target_insert_hw_breakpoint): Add comment.
12300
12301 2014-01-08 Pedro Alves <palves@redhat.com>
12302
12303 * remote.c (remote_add_thread): Add threads silently if starting
12304 up.
12305 (remote_notice_new_inferior): If in all-stop, and starting up,
12306 don't call notice_new_inferior.
12307 (get_current_thread): New function, factored out from ...
12308 (add_current_inferior_and_thread): ... this. Adjust.
12309 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12310 found any thread, then select the remote's current thread as GDB's
12311 current thread too.
12312
12313 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12314
12315 * NEWS: Create a new section for the next release branch.
12316 Rename the section of the current branch, now that it has
12317 been cut.
12318
12319 2014-01-08 Joel Brobecker <brobecker@adacore.com>
12320
12321 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12322 * version.in: Bump version to 7.7.50.DATE-cvs.
12323
12324 2014-01-08 Yao Qi <yao@codesourcery.com>
12325
12326 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12327 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12328 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12329
12330 2014-01-08 Yao Qi <yao@codesourcery.com>
12331
12332 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12333 return value of bfd_get_filename to symbol_file_add_from_bfd.
12334
12335 2014-01-08 Pierre Muller <muller@sourceware.org>
12336
12337 Fix PR16201.
12338 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12339 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12340 to prim_record_mininal_symbol_and_info.
12341 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12342 in call to prim_record_minimal_symbol_and_info.
12343 (read_pe_exported_syms): Set index field of section_data.
12344
12345 2014-01-07 Andrew Pinski <apinski@cavium.com>
12346
12347 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12348 * features/aarch64.c: Regenerate.
12349
12350 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12351
12352 * target.c (return_null): Define.
12353 (update_current_target): Use it instead of return_zero for
12354 functions that return a pointer.
12355
12356 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12357
12358 * source.c (add_path): Fix check for duplicated paths in the previously
12359 included paths.
12360
12361 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12362
12363 * ada-lang.c: Remove duplicated include statements.
12364 * alphabsd-nat.c: Ditto.
12365 * amd64-darwin-tdep.c: Ditto.
12366 * amd64fbsd-nat.c: Ditto.
12367 * auto-load.c: Ditto.
12368 * ax-gdb.c: Ditto.
12369 * breakpoint.c: Ditto.
12370 * dbxread.c: Ditto.
12371 * fork-child.c: Ditto.
12372 * gdb_usleep.c: Ditto.
12373 * i386-darwin-tdep.c: Ditto.
12374 * i386fbsd-nat.c: Ditto.
12375 * infcmd.c: Ditto.
12376 * inferior.c: Ditto.
12377 * jv-lang.c: Ditto.
12378 * linux-nat.c: Ditto.
12379 * linux-tdep.c: Ditto.
12380 * m68kbsd-nat.c: Ditto.
12381 * m68klinux-nat.c: Ditto.
12382 * microblaze-tdep.c: Ditto.
12383 * mips-linux-tdep.c: Ditto.
12384 * mn10300-tdep.c: Ditto.
12385 * nto-tdep.c: Ditto.
12386 * opencl-lang.c: Ditto.
12387 * osdata.c: Ditto.
12388 * printcmd.c: Ditto.
12389 * regcache.c: Ditto.
12390 * remote-m32r-sdi.c: Ditto.
12391 * remote.c: Ditto.
12392 * symfile.c: Ditto.
12393 * symtab.c: Ditto.
12394 * tilegx-linux-nat.c: Ditto.
12395 * tilegx-tdep.c: Ditto.
12396 * tracepoint.c: Ditto.
12397 * valops.c: Ditto.
12398 * vaxbsd-nat.c: Ditto.
12399 * windows-nat.c: Ditto.
12400 * xtensa-tdep.c: Ditto.
12401
12402 2014-01-07 Yao Qi <yao@codesourcery.com>
12403
12404 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12405
12406 2014-01-07 Yao Qi <yao@codesourcery.com>
12407 Joel Brobecker <brobecker@adacore.com>
12408
12409 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12410 (pdc_write_regs): Likewise.
12411 (fetch_regs_kernel_thread): Likewise.
12412 (store_regs_kernel_thread): Likewise.
12413
12414 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12415
12416 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12417 tagged type objects to their actual type.
12418
12419 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12420
12421 * ada-valprint.c (print_field_values): Add "language" parameter.
12422 Update calls to print_field_values and print_variant_part.
12423 Pass new parameter "language" in call to val_print instead
12424 of "current_language". Replace call to ada_val_print by call
12425 to val_print.
12426 (print_variant_part): Add "language" parameter.
12427 (ada_val_print_struct_union): Update call to print_field_values.
12428
12429 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12430
12431 * ada-valprint.c (ui_memcpy): Delete.
12432 (ada_print_floating): Update documentation. Add empty line
12433 between between function documentation and implementation.
12434 Delete variable "buffer". Use ui_file_xstrdup in place of
12435 ui_file_put. Minor adjustments following this change.
12436
12437 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12438
12439 * ada-valprint.c (ada_val_print_string): New function,
12440 extracted from ada_val_print_array.
12441 (ada_val_print_array): Replace extracted code by call
12442 to ada_val_print_string followed by a return. Move
12443 "else" branch to the function's top block.
12444
12445 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12446
12447 * ada-valprint.c (ada_val_print_array): Move implementation
12448 down. Rename parameter "offset" and "val" into "offset_aligned"
12449 and "original_value" respectively. Add parameter "offset".
12450
12451 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12452
12453 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12454 re-organizing the code. Change the "???" message printed
12455 when target type is a TYPE_CODE_UNDEF into
12456 "<ref to undefined type>".
12457
12458 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12459
12460 * ada-valprint.c (print_record): Delete, implementation inlined...
12461 (ada_val_print_struct_union): ... here. Remove call to
12462 ada_check_typedef in inlined implementation.
12463
12464 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12465
12466 * ada-valprint.c (ada_val_print_gnat_array): New function,
12467 extracted from ada_val_print_1;
12468 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12469 (ada_val_print_flt, ada_val_print_struct_union)
12470 (ada_val_print_ref): Likewise.
12471 (ada_val_print_1): Delete variables i and elttype.
12472 Replace extracted-out code by call to corresponding
12473 new functions.
12474
12475 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12476
12477 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12478
12479 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12480
12481 * ada-valprint.c (ada_val_print_1): Replace calls to
12482 ada_val_print_1 by calls to val_print.
12483
12484 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12485
12486 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12487 Update calls to self accordingly. Replace calls to c_val_print
12488 by calls to val_print.
12489
12490 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12491
12492 * ada-valprint.c (print_record): Delete declaration.
12493 (adjust_type_signedness, ada_val_print_1): Likewise.
12494 (ada_val_print): Move function implementation down.
12495 (print_variant_part, print_field_values, print_record):
12496 Move function implementation up.
12497
12498 2014-01-07 Joel Brobecker <brobecker@adacore.com>
12499
12500 * python/py-type.c (typy_get_name): New function.
12501 (type_object_getset): Add entry for attribute "name".
12502 * NEWS: Add entry mentioning this new attribute.
12503
12504 2014-01-07 Yao Qi <yao@codesourcery.com>
12505
12506 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12507 statement.
12508
12509 2014-01-07 Yao Qi <yao@codesourcery.com>
12510
12511 * gnu-nat.c (info_port_rights): Add qualifier const to
12512 argument args.
12513
12514 2014-01-07 Yao Qi <yao@codesourcery.com>
12515
12516 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12517
12518 2014-01-07 Yao Qi <yao@codesourcery.com>
12519
12520 * gnu-nat.c (make_inf) Update declaration.
12521 (make_inf): Make it static.
12522 (inf_set_traced): Likewise.
12523 (inf_port_to_thread, inf_task_died_status): Likewise.
12524
12525 2014-01-07 Yao Qi <yao@codesourcery.com>
12526
12527 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12528
12529 2014-01-07 Yao Qi <yao@codesourcery.com>
12530
12531 * gnu-nat.c (_initialize_gnu_nat): Declare.
12532
12533 2014-01-07 Yao Qi <yao@codesourcery.com>
12534
12535 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12536 'enum bfd_endian'.
12537 (struct gdbarch_info) <byte_order>: Change type to
12538 'enum bfd_endian'.
12539 <byte_order_for_code>: Likewise.
12540 * gdbarch.c, gdbarch.h: Regenerated.
12541
12542 2014-01-06 Sasha Smundak <asmundak@google.com>
12543
12544 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12545
12546 2014-01-06 Tom Tromey <tromey@redhat.com>
12547
12548 * doublest.c (convert_doublest_to_floatformat): Use const, not
12549 CONST.
12550 * somread.c (som_symtab_read): Likewise.
12551
12552 2014-01-07 Hui Zhu <hui@codesourcery.com>
12553
12554 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12555 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12556 (gdb_bfd_fopen): Ditto.
12557 (gdb_bfd_openr): Ditto.
12558 (gdb_bfd_openw): Ditto.
12559 (gdb_bfd_openr_iovec): Ditto.
12560 (gdb_bfd_fdopenr): Ditto.
12561 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12562 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12563 with xstrdup.
12564 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12565 with xstrdup.
12566 * symfile-mem.c (symbol_file_add_from_memory): Removed
12567 gdb_bfd_stash_filename.
12568
12569 2014-01-03 Doug Evans <dje@google.com>
12570
12571 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12572 output.
12573
12574 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12575
12576 Update year range in copyright notice of all files.
12577
12578 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12579
12580 * top.c (print_gdb_version): Set copyright year to 2014.
12581
12582 2014-01-01 Joel Brobecker <brobecker@adacore.com>
12583
12584 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12585
12586 For older changes see ChangeLog-2013.
12587 \f
12588 Local Variables:
12589 mode: change-log
12590 left-margin: 8
12591 fill-column: 74
12592 version-control: never
12593 coding: utf-8
12594 End:
This page took 0.267188 seconds and 5 git commands to generate.