Set print symbol off in mi-var-display.exp
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a9f116cb
GKB
12014-09-07 Gabriel Krisman Bertazi <gabriel@krisman.be>
2
3 PR gdb/17035
4 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
5 decide whether we display the command on "show user".
6 * cli/cli-script.c (show_user_1): Only verify cmdlines after
7 printing command name.
8 * cli/cli-decode.h (cli_user_command_p): Declare new function.
9 * cli/cli-decode.c (cli_user_command_p): Create helper function
10 to verify whether cmd_list_element is a user-defined command.
11
c75bd3a2
JK
122014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13
14 PR python/17355
15 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
16 Fix goto out of TRY_CATCH.
17
faa42425 182014-09-06 Doug Evans <xdje42@gmail.com>
1a52a81c 19 Tom Tromey <tromey@redhat.com>
faa42425
DE
20
21 PR 15276
22 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
23 $_any_caller_matches.
24 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
25 * python/lib/gdb/function/caller_is.py: New file.
26
0d41ba00
DE
272014-09-06 Doug Evans <xdje42@gmail.com>
28
29 * infcmd.c (program_info): Fix typo.
30
474ca4f6
SDJ
312014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
32
33 PR gdb/17235
34 * stap-probe.c (stap_parse_single_operand): Delete unused variable
35 'number'. New variable 'has_digit'. Rewrite code to deal with
36 subexpressions on SDT probes.
37
ebf13736
PA
382014-09-04 Pedro Alves <palves@redhat.com>
39
40 * c-exp.y (parse_number): Skip handling base-switching prefixes if
41 the input is only one character long.
42
eb0b0463
SDJ
432014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
44
45 PR fortran/17237
46 * f-valprint.c (f_val_print): Specify the correct print option to
47 use when printing integer values.
48
5ee44bfa
GB
492014-09-04 Gary Benson <gbenson@redhat.com>
50
51 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
52 Remove code to cope with LWPs wrapped as PIDs.
53 Add assertions to ensure no wrapped LWPs are passed.
54
4875ffdb
PA
552014-09-04 Pedro Alves <palves@redhat.com>
56
57 * value.c (value_ranges_copy_adjusted): New function, factored out
58 from ...
59 (value_contents_copy_raw): ... here.
60 (unpack_value_bits_as_long_1): Rename back to ...
61 (unpack_bits_as_long): ... this. Remove 'original_value' and
62 'result' parameters. Change return type to LONGEST.
63 (unpack_value_bits_as_long): Delete.
64 (unpack_value_field_as_long_1): Delete.
65 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
66 (unpack_value_bitfield): New function.
67 (value_field_bitfield): Reimplement using unpack_value_bitfield.
68 (value_fetch_lazy): Use unpack_value_bitfield.
69 * value.h (unpack_value_bits_as_long): Delete declaration.
70
5f3b99cf
SS
712014-09-03 Sasha Smundak <asmundak@google.com>
72
73 * python/py-frame.c (frapy_read_register): New function.
74
ac740bc7
JH
752014-09-03 James Hogan <james.hogan@imgtec.com>
76
77 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
78 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
79
7d793aa9
SDJ
802014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
81
82 PR python/16699
83 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
84 function.
85 (add_cmd): Set "completer_handle_brkchars" to NULL.
86 * cli/cli-decode.h (struct cmd_list_element)
87 <completer_handle_brkchars>: New field.
88 * command.h (completer_ftype_void): New typedef.
89 (set_cmd_completer_handle_brkchars): New prototype.
90 * completer.c (set_gdb_completion_word_break_characters): New
91 function.
92 (complete_line_internal): Call "completer_handle_brkchars"
93 callback from command.
94 * completer.h: Include "command.h".
95 (set_gdb_completion_word_break_characters): New prototype.
96 * python/py-cmd.c (cmdpy_completer_helper): New function.
97 (cmdpy_completer_handle_brkchars): New function.
98 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
99 (cmdpy_init): Set completer_handle_brkchars to
100 cmdpy_completer_handle_brkchars.
101
97ea6506
GB
1022014-09-03 Gary Benson <gbenson@redhat.com>
103
104 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
105 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
106 Loop conditions changed to equivalent form.
107 (struct x86_debug_reg_state): Updated dr_ref_count comment.
108 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
109 ALL_DEBUG_ADDRESS_REGISTERS.
110
d1437815
JB
1112014-09-03 Joel Brobecker <brobecker@adacore.com>
112
113 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
114 description fix.
115
9b94fcf1
DE
1162014-09-02 Doug Evans <dje@google.com>
117
118 * typeprint.c (find_global_typedef): Fix comment.
119
df7e5265
GB
1202014-09-02 Gary Benson <gbenson@redhat.com>
121
122 * i386-nat.h: Renamed as...
123 * x86-nat.h: New file. All type, function and variable name
124 prefixes changed from "i386_" to "x86_". All references updated.
125 * i386-nat.c: Renamed as...
126 * x86-nat.c: New file. All type, function and variable name
127 prefixes changed from "i386_" to "x86_". All references updated.
128 * common/i386-xstate.h: Renamed as...
129 * common/x86-xstate.h: New file. All type, function and variable
130 name prefixes changed from "i386_" to "x86_". All references
131 updated.
132 * nat/i386-cpuid.h: Renamed as...
133 * nat/x86-cpuid.h: New file. All type, function and variable name
134 prefixes changed from "i386_" to "x86_". All references updated.
135 * nat/i386-gcc-cpuid.h: Renamed as...
136 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
137 name prefixes changed from "i386_" to "x86_". All references
138 updated.
139 * nat/i386-dregs.h: Renamed as...
140 * nat/x86-dregs.h: New file. All type, function and variable name
141 prefixes changed from "i386_" to "x86_". All references updated.
142 * nat/i386-dregs.c: Renamed as...
143 * nat/x86-dregs.c: New file. All type, function and variable name
144 prefixes changed from "i386_" to "x86_". All references updated.
145
1c3569d4
MR
1462014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
147
148 * varobj.c (_initialize_varobj): Move to the end of file.
149
ff55e1b5
GB
1502014-08-29 Gary Benson <gbenson@redhat.com>
151
152 * common/common-exceptions.h: New file.
153 * common/common-exceptions.c: Likewise.
154 * Makefile.in (SFILES): Add common/common-exceptions.c.
155 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
156 (COMMON_OBS): Add common-exceptions.o.
157 (common-exceptions.o): New rule.
158 * exceptions.h (common-exceptions.h): Include.
159 (gdb_setjmp.h): Do not include.
160 (return_reason): Moved to common-exceptions.h.
161 (enum return_reason): Likewise.
162 (RETURN_MASK): Likewise.
163 (typedef return_mask): Likewise.
164 (enum errors): Likewise.
165 (struct gdb_exception): Likewise.
166 (exceptions_state_mc_init): Likewise.
167 (exceptions_state_mc_action_iter): Likewise.
168 (exceptions_state_mc_action_iter_1): Likewise.
169 (TRY_CATCH): Likewise.
170 (throw_exception): Likewise.
171 (throw_verror): Likewise.
172 (throw_vquit): Likewise.
173 (throw_error): Likewise.
174 (throw_quit): Likewise.
175 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
176 (enum catcher_action): Likewise.
177 (struct catcher): Likewise.
178 (current_catcher): Likewise.
179 (catcher_list_size): Likewise.
180 (exceptions_state_mc_init): Likewise.
181 (catcher_pop): Likewise.
182 (exceptions_state_mc): Likewise.
183 (exceptions_state_mc_action_iter): Likewise.
184 (exceptions_state_mc_action_iter_1): Likewise.
185 (throw_exception): Likewise.
186 (exception_messages): Likewise.
187 (exception_messages_size): Likewise.
188 (throw_it): Likewise.
189 (throw_verror): Likewise.
190 (throw_vquit): Likewise.
191 (throw_error): Likewise.
192 (throw_quit): Likewise.
193 (prepare_to_throw_exception): New function.
194
e9bcb658
GB
1952014-08-29 Gary Benson <gbenson@redhat.com>
196
197 * common/gdb_setjmp.h: New file.
198 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
199 * configure.ac: Move sigsetjmp check...
200 * common/common.m4: ...here.
201 * configure: Regenerate.
202 * cp-support.c (SIGJMP_BUF): Delete.
203 (SIGSETJMP): Likewise.
204 (SIGLONGJMP): Likewise.
205 * exceptions.h (gdb_setjmp.h): Include.
206 (setjmp.h): Do not include.
207 (EXCEPTIONS_SIGJMP_BUF): Delete.
208 (EXCEPTIONS_SIGSETJMP): Likewise.
209 (EXCEPTIONS_SIGLONGJMP): Likewise.
210 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
211 from gdb_setjmp.h.
212 * exceptions.c: Likewise.
213
e3180625
GB
2142014-08-29 Gary Benson <gbenson@redhat.com>
215
216 * cleanups.h: Moved to...
217 * common/cleanups.h: New file.
218 * cleanups.c: Moved to...
219 * common/cleanups.c: New file. Include common-defs.h and
220 cleanups.h. Do not include defs.h.
221 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
222 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
223 (cleanups.o): New rule.
224
e3d6ba5d
GB
2252014-08-29 Gary Benson <gbenson@redhat.com>
226
227 * common/errors.h (internal_warning): New declaration.
228 (internal_vwarning): Likewise.
229 * common/errors.c (internal_warning): New function.
230 * utils.h (internal_warning): Don't declare.
231 (internal_vwarning): Likewise.
232 * utils.c (internal_warning): Removed.
233
075c7033
GB
2342014-08-29 Gary Benson <gbenson@redhat.com>
235
236 * main.c (captured_main): Use warning during startup.
237 Prefix startup warning messages with command name.
238
91b35fd0
GB
2392014-08-29 Gary Benson <gbenson@redhat.com>
240
241 * main.c (captured_main): Handle usage errors with error.
242
b1ec390e
GB
2432014-08-29 Gary Benson <gbenson@redhat.com>
244
245 * go32-nat.c (go32_create_inferior): Replace a fprintf/
246 exit pair with a call to error. Wrap the message with _().
247
fd0ef3dd
GB
2482014-08-29 Gary Benson <gbenson@redhat.com>
249
250 * main.c (captured_main): Replace a fprintf/exit
251 pair with a call to error. Wrap the message with _().
252
e0e6bcab
GB
2532014-08-29 Gary Benson <gbenson@redhat.com>
254
255 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
256 pairs with calls to error. Wrap the message with _().
257
0d2f5c07
GB
2582014-08-29 Gary Benson <gbenson@redhat.com>
259
260 * utils.c (vwarning): Protect calls to target_terminal_ours
261 and wrap_here.
262
5df43998
GB
2632014-08-29 Gary Benson <gbenson@redhat.com>
264
265 * exceptions.c (print_flush): Protect calls to
266 target_terminal_ours and wrap_here.
267
2437fd32
GB
2682014-08-29 Gary Benson <gbenson@redhat.com>
269
270 * utils.h (filtered_printing_initialized): New declaration.
271 * utils.c (abort_with_message): New function.
272 (internal_vproblem): Use abort_with_message for first level
273 recursive internal problems, and if gdb_stderr is not set up.
274 Protect calls to target_terminal_ours, begin_line and query.
275
f1f58506
DE
2762014-08-28 Doug Evans <dje@google.com>
277
278 * symtab.c (in_prologue): Move definition to better spot.
279 (skip_prologue_using_sal): Ditto.
280
aab2f208
DE
2812014-08-28 Doug Evans <dje@google.com>
282
283 * symtab.c (find_function_start_sal): Move definition to better spot.
284
6b65d1b6
YQ
2852014-08-28 Yao Qi <yao@codesourcery.com>
286
287 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
288 found_stack_adjust in forward scan. Remove condition check
289 on found_stack_adjust which is always true. Indent the code.
290
a1b34d15
YQ
2912014-08-28 Yao Qi <yao@codesourcery.com>
292
293 * dwarf2read.c (dwarf_decode_lines): Update declaration.
294 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
295 (dwarf_decode_lines): Remove argument
296 want_line_info. Remove condition check on want_line_info.
297 Callers update.
298
d5962de5
DE
2992014-08-27 Doug Evans <dje@google.com>
300
301 * dwarf2read.c (dwarf_record_line): Fix typo.
302
9b139002
SDJ
3032014-08-27 Patrick Palka <patrick@parcs.ath.cx>
304
305 * target.h (struct target_ops::to_terminal_save_ours): Remove
306 declaration.
307 (target_terminal_save_ours): Remove macro.
308 * target-delegates.c: Regenerate.
309 * inf-child.c (inf_child_target): Don't set the nonexistent
310 field to_terminal_save_ours.
311 * inferior.h (child_terminal_save_ours): Remove declaration.
312 * terminal.h (gdb_save_tty_state): New declaration.
313 * inflow.c (child_terminal_save_ours): Rename to ...
314 (gdb_save_tty_state): ... this.
315 * tui/tui.c: Include terminal.h.
316 (tui_enable): Use gdb_save_tty_state instead of
317 target_terminal_save_ours.
318 (tui_disable): Likewise.
319
9debeba0
DE
3202014-08-25 Doug Evans <dje@google.com>
321
322 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
323 Pass NULL instead of 0 for context pointer.
324
428fc5fc
YQ
3252014-08-25 Yao Qi <yao@codesourcery.com>
326
327 * dwarf2read.c: Fix grammatical error.
328
cdc07690
YQ
3292014-08-24 Yao Qi <yao@codesourcery.com>
330
331 * dwarf2read.c (scan_partial_symbols): Update comments.
332 Rename argument 'need_pc' with 'set_addrmap'.
333 (add_partial_namespace): Rename argument 'need_pc' with
334 'set_addrmap'.
335 (add_partial_module): Likewise.
336 (add_partial_subprogram): Likewise. Update comments.
337 (dwarf2_name): Fix typo.
338
a05a36a5
DE
3392014-08-22 Doug Evans <dje@google.com>
340
341 PR 17276
342 * dwarf2read.c (dwarf_record_line_p): New function.
343 (dwarf_decode_lines_1): Ignore subsequent line number entries
344 for the same line if any entry had a non-zero discriminator.
345
252a6764
DE
3462014-08-22 Doug Evans <dje@google.com>
347
348 * buildsym.h (record_line_ftype): New typedef.
349 (record_line): Use it.
350 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
351 (dwarf_decode_lines_1): Call them.
352
510db052
YQ
3532014-08-22 Yao Qi <yao@codesourcery.com>
354
355 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
356 (ctf_end): Remove code.
357
22fd09ae
JK
3582014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
359
360 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
361 (linux_make_corefile_notes): call update_thread_list, protected against
362 exceptions.
363
656e8868
PA
3642014-08-21 Pedro Alves <palves@redhat.com>
365
366 * infcmd.c (attach_command): Remove comment.
367
de589d04
WN
3682014-08-21 Bin Cheng <bin.cheng@arm.com>
369
370 * aarch64-linux-nat.c (dr_changed_t): Change the type from
371 unsigned LONGEST to ULONGEST.
372
2a31c623
PA
3732014-08-20 Pedro Alves <palves@redhat.com>
374
375 * Makefile.in (check-read1): New rule.
376
d36430db
JB
3772014-08-20 Joel Brobecker <brobecker@adacore.com>
378
379 * value.c (value_from_contents_and_address): Strip resolved_type's
380 typedef layers before checking its TYPE_DATA_LOCATION.
381
000339af
PA
3822014-08-20 Pedro Alves <palves@redhat.com>
383
384 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
385
5f52445b
YQ
3862014-08-20 Yao Qi <yao@codesourcery.com>
387
388 * amd64-tdep.c (amd64_classify): Add a blank line after the
389 example. Move "*/" to a new line.
390 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
391 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
392 * dwarf2read.c (psymtab_include_file_name): Likewise.
393
9a0dc9e3
PA
3942014-08-19 Andrew Burgess <aburgess@broadcom.com>
395 Pedro Alves <palves@redhat.com>
396
397 PR symtab/14604
398 PR symtab/14605
399 * ada-lang.c (coerce_unspec_val_to_type): Use
400 value_contents_copy_raw.
401 * ada-valprint.c (val_print_packed_array_elements): Adjust.
402 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
403 * cp-valprint.c (cp_print_value_fields): Let the common printing
404 code handle optimized out values.
405 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
406 * d-valprint.c (dynamic_array_type): Use
407 value_bits_any_optimized_out.
408 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
409 check_any_valid fields.
410 (check_pieced_value_bits): Delete and inline ...
411 (check_pieced_synthetic_pointer): ... here.
412 (check_pieced_value_validity): Delete.
413 (check_pieced_value_invalid): Delete.
414 (pieced_value_funcs): Remove check_validity and check_any_valid
415 fields.
416 (read_pieced_value): Use mark_value_bits_optimized_out.
417 (write_pieced_value): Switch to use
418 mark_value_bytes_optimized_out.
419 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
420 of assuming the whole value is optimized out.
421 * findvar.c (read_frame_register_value): Remove special handling
422 of optimized out registers.
423 (value_from_register): Use mark_value_bytes_optimized_out.
424 * frame-unwind.c (frame_unwind_got_optimized): Use
425 mark_value_bytes_optimized_out.
426 * jv-valprint.c (java_value_print): Adjust.
427 (java_print_value_fields): Let the common printing code handle
428 optimized out values.
429 * mips-tdep.c (mips_print_register): Remove special handling of
430 optimized out registers.
431 * opencl-lang.c (lval_func_check_validity): Delete.
432 (lval_func_check_any_valid): Delete.
433 (opencl_value_funcs): Remove check_validity and check_any_valid
434 fields.
435 * p-valprint.c (pascal_object_print_value_fields): Let the common
436 printing code handle optimized out values.
437 * stack.c (read_frame_arg): Remove special handling of optimized
438 out values. Fetch both VAL and ENTRYVAL before comparing
439 contents. Adjust to value_available_contents_eq rename.
440 * valprint.c (valprint_check_validity)
441 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
442 (val_print_array_elements): Adjust.
443 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
444 (value_bits_any_optimized_out): New function.
445 (value_entirely_covered_by_range_vector): New function, factored
446 out from value_entirely_unavailable.
447 (value_entirely_unavailable): Reimplement.
448 (value_entirely_optimized_out): New function.
449 (insert_into_bit_range_vector): New function, factored out from
450 mark_value_bits_unavailable.
451 (mark_value_bits_unavailable): Reimplement.
452 (struct ranges_and_idx): New struct.
453 (find_first_range_overlap_and_match): New function, factored out
454 from value_available_contents_bits_eq.
455 (value_available_contents_bits_eq): Rename to ...
456 (value_contents_bits_eq): ... this. Check both unavailable
457 contents and optimized out contents.
458 (value_available_contents_eq): Rename to ...
459 (value_contents_eq): ... this.
460 (allocate_value_lazy): Remove reference to the old optimized_out
461 boolean.
462 (allocate_optimized_out_value): Use
463 mark_value_bytes_optimized_out.
464 (require_not_optimized_out): Adjust to check whether the
465 optimized_out vec is empty.
466 (ranges_copy_adjusted): New function, factored out from
467 value_contents_copy_raw.
468 (value_contents_copy_raw): Also copy the optimized out ranges.
469 Assert the destination ranges aren't optimized out.
470 (value_contents_copy): Update comment, remove call to
471 require_not_optimized_out.
472 (value_contents_equal): Adjust to check whether the optimized_out
473 vec is empty.
474 (set_value_optimized_out, value_optimized_out_const): Delete.
475 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
476 New functions.
477 (value_entirely_optimized_out, value_bits_valid): Delete.
478 (value_copy): Take a VEC copy of the 'optimized_out' field.
479 (value_primitive_field): Remove special handling of optimized out.
480 (value_fetch_lazy): Assert that lazy values have no unavailable
481 regions. Use value_bits_any_optimized_out. Remove some special
482 handling for optimized out values.
483 * value.h: Add intro comment about <optimized out> and
484 <unavailable>.
485 (struct lval_funcs): Remove check_validity and check_any_valid
486 fields.
487 (set_value_optimized_out, value_optimized_out_const): Remove.
488 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
489 New declarations.
490 (value_bits_any_optimized_out): New declaration.
491 (value_bits_valid): Delete declaration.
492 (value_available_contents_eq): Rename to ...
493 (value_contents_eq): ... this, and extend comments.
494
6694c411
JK
4952014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
496
497 Fix -fsanitize=address on unreadable inferior strings.
498 * valprint.c (val_print_string): Fix access before BUFFER.
499
89a1c21a
SM
5002014-08-19 Simon Marchi <simon.marchi@ericsson.com>
501
502 * target.c (target_struct_size): Remove.
503 (target_struct_allocsize): Remove.
504 (DEFAULT_ALLOCSIZE): Remove.
505 (target_ops_p): New typedef.
506 (DEF_VEC_P (target_ops_p)): New vector type.
507 (target_structs): Change type to VEC (target_ops_p).
508 (add_target_with_completer): Replace "push" code by VEC_safe_push.
509 (find_default_run_target): Rewrite for loop following changes to
510 target_structs.
511
cb417230
JB
5122014-08-19 Joel Brobecker <brobecker@adacore.com>
513
514 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
515 Adjust code accordingly. Adjust function description comment.
516
817e0957
YQ
5172014-08-19 Yao Qi <yao@codesourcery.com>
518
519 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
520 types.
521
2974be62
AM
5222014-08-19 Alan Modra <amodra@gmail.com>
523
524 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
525 * config.in: Regenerate.
526 * configure: Regenerate.
527
34abf635
GB
5282014-08-19 Tom Tromey <tromey@redhat.com>
529 Gary Benson <gbenson@redhat.com>
530
531 * common/common-debug.h: New file.
532 * common/common-debug.c: Likewise.
533 * debug.c: Likewise.
534 * Makefile.in (SFILES): Add common/common-debug.c.
535 (HFILES_NO_SRCDIR): Add common/common-debug.h.
536 (COMMON_OBS): Add common-debug.o and debug.o.
537 (common-debug.o): New rule.
538 * common/common-defs.h: Include common-debug.h.
539 * common/agent.c (debug_agent_printf): New function.
540 (DEBUG_AGENT): Redefine.
541 * nat/i386-dregs.c (debug_printf): Undefine.
542
f6e94d78
GB
5432014-08-19 Gary Benson <gbenson@redhat.com>
544
545 * common/common-defs.h: Include print-utils.h.
546 * utils.h: Do not include print-utils.h.
547
9239eeab
GB
5482014-08-19 Tom Tromey <tromey@redhat.com>
549 Gary Benson <gbenson@redhat.com>
550
551 * common/common-types.h: New file.
552 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
553 * common/common-defs.h: Include common-types.h.
554 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
555 (ULONGEST): Remove.
556
ef87c8bb
GB
5572014-08-19 Tom Tromey <tromey@redhat.com>
558 Gary Benson <gbenson@redhat.com>
559
560 * common/errors.h: New file.
561 * common/errors.c: Likewise.
562 * Makefile.in (SFILES): Add common/errors.c.
563 (HFILES_NO_SRCDIR): Add common/errors.h.
564 (COMMON_OBS): Add errors.o.
565 (errors.o): New rule.
566 * common/common-defs.h: Include errors.h.
567 * utils.h (perror_with_name, error, verror, warning, vwarning):
568 Don't declare.
569 * common/common-utils.h: (malloc_failure, internal_error):
570 Likewise.
571
196a707b
GB
5722014-08-19 Gary Benson <gbenson@redhat.com>
573
574 * utils.c (internal_vproblem): Always print the message.
575
ded4fc8f
DE
5762014-08-18 Doug Evans <dje@google.com>
577
578 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
579
950c97d8
JB
5802014-08-18 Joel Brobecker <brobecker@adacore.com>
581
582 * ada-typeprint.c (type_is_full_subrange_of_target_type):
583 Return 0 if TYPE is dynamic.
584 (print_range): Add handling of dynamic ranges.
585
3cdcd0ce
JB
5862014-08-18 Keven Boell <keven.boell@intel.com>
587 Joel Brobecker <brobecker@adacore.com>
588
589 * gdbtypes.h (struct main_type): Add field "data_location".
590 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
591 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
592 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
593 a dynamic data location.
594 (resolve_dynamic_type): Add DW_AT_data_location handling.
595 (copy_recursive, copy_type): Copy the data_location information
596 when present.
597 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
598 * value.c (value_from_contents_and_address): Add
599 DW_AT_data_location handling.
600
08412b07
JB
6012014-08-18 Keven Boell <keven.boell@intel.com>
602 Joel Brobecker <brobecker@adacore.com>
603
604 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
605 field "get_object_address".
606 * dwarf2expr.c (execute_stack_op): Add handling for
607 DW_OP_push_object_address.
608 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
609 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
610 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
611 (dwarf_expr_get_obj_addr): New function.
612 (dwarf_expr_ctx_funcs): Add get_object_address field.
613 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
614 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
615 (dwarf2_evaluate_property): Add parameter "address". Use it.
616 (needs_get_obj_addr): New function.
617 (needs_frame_ctx_funcs): Add get_object_address field.
618 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
619 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
620 (resolve_dynamic_array): Likewise.
621
84754697
JB
6222014-08-18 Joel Brobecker <brobecker@adacore.com>
623
624 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
625 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
626 fixed value for records and unions for which some GNAT encodings
627 are present.
628
da5c522f
JB
6292014-08-18 Joel Brobecker <brobecker@adacore.com>
630
631 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
632 rewrite to avoid "else if" and "else" constructs. Should be
633 a no-op in practice.
634
0d72a7c3
JB
6352014-08-18 Joel Brobecker <brobecker@adacore.com>
636
637 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
638 of lexical block.
639
e66d4446
SC
6402014-08-15 Siva Chandra Reddy <sivachandra@google.com>
641
642 PR c++/17132
643 * eval.c: Update all calls to find_overload_match.
644 * valarith.c: Likewise.
645 (value_user_defined_cpp_op, value_user_defined_op): New
646 argument NOSIDE. Update all callers.
647 * valops.c (find_overload_match): New argument NOSIDE.
648 * value.h (find_overload_match): Update signature.
649
940df408
SC
6502014-08-15 Siva Chandra Reddy <sivachandra@google.com>
651
652 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
653 'items' methods instead of 'iteritems' method on dictionaries.
654
699ca60a
DE
6552014-08-15 Doug Evans <dje@google.com>
656
657 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
658 closer to use.
659
37780ee5
DE
6602014-08-15 Doug Evans <dje@google.com>
661
662 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
663
0ad93d4f
DE
6642014-08-15 Doug Evans <dje@google.com>
665
666 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
667
20d8c372
DE
6682014-08-15 Doug Evans <dje@google.com>
669
670 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
671 unused.
672
cb039ba4
EZ
6732014-08-15 Eli Zaretskii <eliz@gnu.org>
674
675 * dcache.h: Include target.h, to avoid compile time warnings.
676
eb7a547a
JB
6772014-08-15 Joel Brobecker <brobecker@adacore.com>
678
679 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
680 frame_info" partial declaration.
681 * gdbarch.h: Regenerate.
682
783cecc8
YQ
6832014-08-15 Yao Qi <yao@codesourcery.com>
684
685 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
686 Add parameter 'decode_for_pst_p'. Callers update.
687
65c749e7
YQ
6882014-08-13 Yao Qi <yao@codesourcery.com>
689
690 PR build/17104
691 * configure.ac: Use local variable 'pos'.
692 * configure: Regenerated.
693
d769e349
DE
6942014-08-11 Doug Evans <dje@google.com>
695
696 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
697 message, it is redundant with "Reading symbols from ..." message.
698
24f1235e
DE
6992014-08-10 Doug Evans <xdje42@gmail.com>
700
701 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
702
dcd2e6ef
YQ
7032014-08-09 Yao Qi <yao@codesourcery.com>
704
705 PR remote/9053
706 * remote.c (remote_xfer_partial): Remove dead code.
707
070bdf0b
AA
7082014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
709
710 * ia64-linux-tdep.c: Include "regset.h".
711 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
712 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
713 (ia64_linux_supply_fpregset): New function.
714 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
715 (ia64_linux_regset_from_core_section): New function.
716 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
717 method.
718
08f9f542
AA
7192014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
720
721 * m68klinux-tdep.c: Include "regset.h".
722 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
723 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
724 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
725 (m68k_linux_regset_from_core_section): New function.
726 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
727 method.
728
8f1cee41
AA
7292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
730
731 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
732 function. Move logic to...
733 (tilegx_linux_regmap): ... this new register map.
734 (tilegx_linux_regset): Refer to register map, replace supply
735 method by regcache_supply_regset, and add collect method.
736 * tilegx-tdep.h (enum tilegx_regnum): New enum value
737 TILEGX_FIRST_EASY_REGNUM.
738
c5741217
AA
7392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
740
741 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
742 that calls regcache_supply_regset and handles the EPC register
743 separately. Move main logic to...
744 (score7_linux_gregmap): ... this new register map.
745 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
746 (score7_linux_gregset): Refer to register map. Add collect method.
747 (score7_linux_regset_from_core_section): Replace
748 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
749 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
750 (struct regset): Delete unused forward declaraction.
751 (struct pt_regs): Delete structure definition.
752 (elf_gregset_t): Delete typedef.
753
81580573
AA
7542014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
755
756 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
757 (nios2_core_regset): Add collect method.
758
ba199d7d
AA
7592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
760
761 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
762 platform-independent and don't write to read-only input buffer.
763 (m32r_linux_collect_gregset): New function.
764 (m32r_linux_gregset): Add collect method.
765
0006a9da
AA
7662014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
767
768 * hppa-linux-tdep.c (greg_map): Rename to...
769 (hppa_linux_gregmap): ... this. Also convert to
770 regcache_map_entry format.
771 (hppa_linux_supply_regset): Delete function.
772 (hppa_linux_supply_fpregset): Delete function. Move logic to...
773 (hppa_linux_fpregmap): ... this new register map.
774 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
775 register map, replace supply method by regcache_supply_regset, and
776 add collect method regcache_collect_regset.
777
901e1b23
AA
7782014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
779
780 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
781 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
782 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
783 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
784 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
785 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
786 (frv_linux_supply_gregset): Replace main logic by call to
787 regcache_supply_regset, but keep clearing gr32-gr63.
788 (frv_linux_supply_fpregset): Delete function.
789 (frv_linux_gregset): Refer to appropriate register map and add
790 regcache_collect_regset as the collect method.
791 (frv_linux_fpregset): Likewise. Also exchange the supply method
792 by regcache_supply_regset.
793
1d6e7555
AA
7942014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
795
796 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
797 by call to alpha_supply_int_regs.
798 (alpha_linux_collect_gregset): New function.
799 (alpha_linux_supply_fpregset): Replace logic by call to
800 alpha_supply_fp_regs.
801 (alpha_linux_collect_fpregset): New function.
802 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
803
d4d793bf
AA
8042014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
805
806 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
807 by call to regcache_collect_regset.
808 (supply_gregset, supply_fpregset): Call regcache_supply_regset
809 instead of aarch64_linux_supply_gregset/_fpregset.
810 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
811 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
812 header file instead.
813 (aarch64_linux_supply_gregset, supply_gregset_from_core)
814 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
815 functions. Move logic to ...
816 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
817 register maps.
818 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
819 refer to new register maps, replace *_regset_from_core by
820 regcache_supply_regset, and also use regcache_collect_regset.
821 * aarch64-linux-tdep.h: Include "regset.h".
822 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
823 Delete prototypes.
824 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
825 macros, moved from C source file.
826 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
827 variable declarations.
828
99b7da5d
AA
8292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
830
831 * s390-linux-nat.c: Include "regset.h".
832 (regmap_gregset): Delete macro.
833 (s390_64_regmap_gregset): New register map for
834 regcache_supply/_collect_regset.
835 (s390_64_gregset): New regset.
836 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
837 (regmap_fpregset): Delete macro.
838 (s390_native_supply, s390_native_collect): Delete functions.
839 (supply_gregset, fill_gregset): Replace s390-specific regmap
840 handling by a call to regcache_supply/_collect_regset.
841 (supply_fpregset, fill_fpregset): Call regcache_supply/
842 _collect_regset instead of s390_native_supply/_collect.
843 (fetch_regset, store_regset): Likewise. Also change the last
844 parameter to a regset instead of a regmap.
845 (s390_linux_fetch_inferior_registers)
846 (390_linux_store_inferior_registers): Adjust last parameter in
847 calls to fetch_regset and store_regset.
848 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
849 (s390_gregmap): ... this. Also make static const and convert to
850 regcache_map_entry format.
851 (s390x_regmap_gregset): Delete.
852 (s390_regmap_fpregset): Rename to...
853 (s390_fpregmap): ... this. Make static const and convert to
854 regcache_map_entry format.
855 (s390_regmap_upper, s390_regmap_last_break)
856 (s390x_regmap_last_break, s390_regmap_system_call)
857 (s390_regmap_tdb): Likewise.
858 (s390_supply_regset, s390_collect_regset): Remove functions.
859 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
860 s390_supply_regset.
861 (s390_gregset, s390_fpregset, s390_upper_regset)
862 (s390_last_break_regset, s390x_last_break_regset)
863 (s390_system_call_regset, s390_tdb_regset): Make global and
864 replace s390_supply/_collect_regset by regcache_supply/
865 _collect_regset.
866 (s390x_gregset): Delete.
867 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
868 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
869 (s390_regmap_fpregset, s390_regmap_last_break)
870 (s390x_regmap_last_break, s390_regmap_system_call)
871 (s390_regmap_tdb): Delete global variable declarations.
872 (s390_gregset, s390_fpregset, s390_last_break_regset)
873 (s390x_last_break_regset, s390_system_call_regset)
874 (s390_tdb_regset): New global variable declarations.
875
0b309272
AA
8762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
877
878 * regcache.c: Include "regset.h".
879 (regcache_transfer_regset): New local function.
880 (regcache_supply_regset, regcache_collect_regset): New functions.
881 * regcache.h (struct regcache_map_entry): New structure.
882 (REGCACHE_MAP_SKIP): New enum value.
883 (regcache_supply_regset, regcache_collect_regset): New prototypes.
884
7fefa8d7
AA
8852014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
886
887 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
888 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
889 (ppc_linux_collect_gregset ): Likewise.
890 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
891 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
892 (ppc_collect_vrregset): Likewise.
893 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
894 Likewise.
895
96c4f946
YQ
8962014-08-07 Yao Qi <yao@codesourcery.com>
897
898 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
899 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
900 * remote.c (remote_read_bytes): Likewise.
901
fffbe6a8
YQ
9022014-08-07 Yao Qi <yao@codesourcery.com>
903
904 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
905
5ee8a82c
YQ
9062014-08-07 Yao Qi <yao@codesourcery.com>
907
908 PR remote/17230
909 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
910 TARGET_XFER_OK instead of 0.
911
bb974a24
GB
9122014-08-07 Gary Benson <gbenson@redhat.com>
913
914 * common/common-defs.h: Include errno.h.
915 * defs.h: Do not include errno.h.
916 * ada-typeprint.c: Likewise.
917 * c-typeprint.c: Likewise.
918 * core-regset.c: Likewise.
919 * corefile.c: Likewise.
920 * corelow.c: Likewise.
921 * event-loop.c: Likewise.
922 * f-typeprint.c: Likewise.
923 * gnu-nat.c: Likewise.
924 * go32-nat.c: Likewise.
925 * i386gnu-nat.c: Likewise.
926 * m2-typeprint.c: Likewise.
927 * nat/linux-btrace.c: Likewise.
928 * p-typeprint.c: Likewise.
929 * procfs.c: Likewise.
930 * remote-sim.c: Likewise.
931 * rs6000-nat.c: Likewise.
932 * target.c: Likewise.
933 * typeprint.c: Likewise.
934 * ui-file.c: Likewise.
935 * valops.c: Likewise.
936 * valprint.c: Likewise.
937
6d3d12eb
GB
9382014-08-07 Gary Benson <gbenson@redhat.com>
939
940 * common/common-defs.h: Include string.h.
941 * aarch64-tdep.c: Do not include string.h.
942 * ada-exp.y: Likewise.
943 * ada-lang.c: Likewise.
944 * ada-lex.l: Likewise.
945 * ada-typeprint.c: Likewise.
946 * ada-valprint.c: Likewise.
947 * aix-thread.c: Likewise.
948 * alpha-linux-tdep.c: Likewise.
949 * alpha-mdebug-tdep.c: Likewise.
950 * alpha-nat.c: Likewise.
951 * alpha-osf1-tdep.c: Likewise.
952 * alpha-tdep.c: Likewise.
953 * alphanbsd-tdep.c: Likewise.
954 * amd64-dicos-tdep.c: Likewise.
955 * amd64-linux-tdep.c: Likewise.
956 * amd64-nat.c: Likewise.
957 * amd64-sol2-tdep.c: Likewise.
958 * amd64fbsd-tdep.c: Likewise.
959 * amd64obsd-tdep.c: Likewise.
960 * arch-utils.c: Likewise.
961 * arm-linux-nat.c: Likewise.
962 * arm-linux-tdep.c: Likewise.
963 * arm-tdep.c: Likewise.
964 * arm-wince-tdep.c: Likewise.
965 * armbsd-tdep.c: Likewise.
966 * armnbsd-nat.c: Likewise.
967 * armnbsd-tdep.c: Likewise.
968 * armobsd-tdep.c: Likewise.
969 * avr-tdep.c: Likewise.
970 * ax-gdb.c: Likewise.
971 * ax-general.c: Likewise.
972 * bcache.c: Likewise.
973 * bfin-tdep.c: Likewise.
974 * breakpoint.c: Likewise.
975 * build-id.c: Likewise.
976 * buildsym.c: Likewise.
977 * c-exp.y: Likewise.
978 * c-lang.c: Likewise.
979 * c-typeprint.c: Likewise.
980 * c-valprint.c: Likewise.
981 * charset.c: Likewise.
982 * cli-out.c: Likewise.
983 * cli/cli-cmds.c: Likewise.
984 * cli/cli-decode.c: Likewise.
985 * cli/cli-dump.c: Likewise.
986 * cli/cli-interp.c: Likewise.
987 * cli/cli-logging.c: Likewise.
988 * cli/cli-script.c: Likewise.
989 * cli/cli-setshow.c: Likewise.
990 * cli/cli-utils.c: Likewise.
991 * coffread.c: Likewise.
992 * common/agent.c: Likewise.
993 * common/buffer.c: Likewise.
994 * common/buffer.h: Likewise.
995 * common/common-utils.c: Likewise.
996 * common/filestuff.c: Likewise.
997 * common/filestuff.c: Likewise.
998 * common/format.c: Likewise.
999 * common/print-utils.c: Likewise.
1000 * common/rsp-low.c: Likewise.
1001 * common/signals.c: Likewise.
1002 * common/vec.h: Likewise.
1003 * common/xml-utils.c: Likewise.
1004 * core-regset.c: Likewise.
1005 * corefile.c: Likewise.
1006 * corelow.c: Likewise.
1007 * cp-abi.c: Likewise.
1008 * cp-name-parser.y: Likewise.
1009 * cp-support.c: Likewise.
1010 * cp-valprint.c: Likewise.
1011 * cris-tdep.c: Likewise.
1012 * d-exp.y: Likewise.
1013 * darwin-nat.c: Likewise.
1014 * dbxread.c: Likewise.
1015 * dcache.c: Likewise.
1016 * demangle.c: Likewise.
1017 * dicos-tdep.c: Likewise.
1018 * disasm.c: Likewise.
1019 * doublest.c: Likewise.
1020 * dsrec.c: Likewise.
1021 * dummy-frame.c: Likewise.
1022 * dwarf2-frame.c: Likewise.
1023 * dwarf2loc.c: Likewise.
1024 * dwarf2read.c: Likewise.
1025 * elfread.c: Likewise.
1026 * environ.c: Likewise.
1027 * eval.c: Likewise.
1028 * event-loop.c: Likewise.
1029 * exceptions.c: Likewise.
1030 * exec.c: Likewise.
1031 * expprint.c: Likewise.
1032 * f-exp.y: Likewise.
1033 * f-lang.c: Likewise.
1034 * f-typeprint.c: Likewise.
1035 * f-valprint.c: Likewise.
1036 * fbsd-nat.c: Likewise.
1037 * findcmd.c: Likewise.
1038 * findvar.c: Likewise.
1039 * fork-child.c: Likewise.
1040 * frame.c: Likewise.
1041 * frv-linux-tdep.c: Likewise.
1042 * frv-tdep.c: Likewise.
1043 * gdb.c: Likewise.
1044 * gdb_bfd.c: Likewise.
1045 * gdbarch.c: Likewise.
1046 * gdbarch.sh: Likewise.
1047 * gdbtypes.c: Likewise.
1048 * gnu-nat.c: Likewise.
1049 * gnu-v2-abi.c: Likewise.
1050 * gnu-v3-abi.c: Likewise.
1051 * go-exp.y: Likewise.
1052 * go-lang.c: Likewise.
1053 * go32-nat.c: Likewise.
1054 * guile/guile.c: Likewise.
1055 * guile/scm-auto-load.c: Likewise.
1056 * hppa-hpux-tdep.c: Likewise.
1057 * hppa-linux-nat.c: Likewise.
1058 * hppanbsd-tdep.c: Likewise.
1059 * hppaobsd-tdep.c: Likewise.
1060 * i386-cygwin-tdep.c: Likewise.
1061 * i386-dicos-tdep.c: Likewise.
1062 * i386-linux-tdep.c: Likewise.
1063 * i386-nto-tdep.c: Likewise.
1064 * i386-sol2-tdep.c: Likewise.
1065 * i386-tdep.c: Likewise.
1066 * i386bsd-tdep.c: Likewise.
1067 * i386gnu-nat.c: Likewise.
1068 * i386nbsd-tdep.c: Likewise.
1069 * i386obsd-tdep.c: Likewise.
1070 * i387-tdep.c: Likewise.
1071 * ia64-libunwind-tdep.c: Likewise.
1072 * ia64-linux-nat.c: Likewise.
1073 * inf-child.c: Likewise.
1074 * inf-ptrace.c: Likewise.
1075 * inf-ttrace.c: Likewise.
1076 * infcall.c: Likewise.
1077 * infcmd.c: Likewise.
1078 * inflow.c: Likewise.
1079 * infrun.c: Likewise.
1080 * interps.c: Likewise.
1081 * iq2000-tdep.c: Likewise.
1082 * irix5-nat.c: Likewise.
1083 * jv-exp.y: Likewise.
1084 * jv-lang.c: Likewise.
1085 * jv-typeprint.c: Likewise.
1086 * jv-valprint.c: Likewise.
1087 * language.c: Likewise.
1088 * linux-fork.c: Likewise.
1089 * linux-nat.c: Likewise.
1090 * lm32-tdep.c: Likewise.
1091 * m2-exp.y: Likewise.
1092 * m2-typeprint.c: Likewise.
1093 * m32c-tdep.c: Likewise.
1094 * m32r-linux-nat.c: Likewise.
1095 * m32r-linux-tdep.c: Likewise.
1096 * m32r-rom.c: Likewise.
1097 * m32r-tdep.c: Likewise.
1098 * m68hc11-tdep.c: Likewise.
1099 * m68k-tdep.c: Likewise.
1100 * m68kbsd-tdep.c: Likewise.
1101 * m68klinux-nat.c: Likewise.
1102 * m68klinux-tdep.c: Likewise.
1103 * m88k-tdep.c: Likewise.
1104 * machoread.c: Likewise.
1105 * macrocmd.c: Likewise.
1106 * main.c: Likewise.
1107 * mdebugread.c: Likewise.
1108 * mem-break.c: Likewise.
1109 * memattr.c: Likewise.
1110 * memory-map.c: Likewise.
1111 * mep-tdep.c: Likewise.
1112 * mi/mi-cmd-break.c: Likewise.
1113 * mi/mi-cmd-disas.c: Likewise.
1114 * mi/mi-cmd-env.c: Likewise.
1115 * mi/mi-cmd-stack.c: Likewise.
1116 * mi/mi-cmd-var.c: Likewise.
1117 * mi/mi-cmds.c: Likewise.
1118 * mi/mi-console.c: Likewise.
1119 * mi/mi-getopt.c: Likewise.
1120 * mi/mi-interp.c: Likewise.
1121 * mi/mi-main.c: Likewise.
1122 * mi/mi-parse.c: Likewise.
1123 * microblaze-rom.c: Likewise.
1124 * microblaze-tdep.c: Likewise.
1125 * mingw-hdep.c: Likewise.
1126 * minidebug.c: Likewise.
1127 * minsyms.c: Likewise.
1128 * mips-irix-tdep.c: Likewise.
1129 * mips-linux-tdep.c: Likewise.
1130 * mips-tdep.c: Likewise.
1131 * mips64obsd-tdep.c: Likewise.
1132 * mipsnbsd-tdep.c: Likewise.
1133 * mipsread.c: Likewise.
1134 * mn10300-linux-tdep.c: Likewise.
1135 * mn10300-tdep.c: Likewise.
1136 * monitor.c: Likewise.
1137 * moxie-tdep.c: Likewise.
1138 * mt-tdep.c: Likewise.
1139 * nat/linux-btrace.c: Likewise.
1140 * nat/linux-osdata.c: Likewise.
1141 * nat/linux-procfs.c: Likewise.
1142 * nat/linux-ptrace.c: Likewise.
1143 * nat/linux-waitpid.c: Likewise.
1144 * nbsd-tdep.c: Likewise.
1145 * nios2-linux-tdep.c: Likewise.
1146 * nto-procfs.c: Likewise.
1147 * nto-tdep.c: Likewise.
1148 * objc-lang.c: Likewise.
1149 * objfiles.c: Likewise.
1150 * opencl-lang.c: Likewise.
1151 * osabi.c: Likewise.
1152 * osdata.c: Likewise.
1153 * p-exp.y: Likewise.
1154 * p-lang.c: Likewise.
1155 * p-typeprint.c: Likewise.
1156 * parse.c: Likewise.
1157 * posix-hdep.c: Likewise.
1158 * ppc-linux-nat.c: Likewise.
1159 * ppc-sysv-tdep.c: Likewise.
1160 * ppcfbsd-tdep.c: Likewise.
1161 * ppcnbsd-tdep.c: Likewise.
1162 * ppcobsd-tdep.c: Likewise.
1163 * printcmd.c: Likewise.
1164 * procfs.c: Likewise.
1165 * prologue-value.c: Likewise.
1166 * python/py-auto-load.c: Likewise.
1167 * python/py-gdb-readline.c: Likewise.
1168 * ravenscar-thread.c: Likewise.
1169 * regcache.c: Likewise.
1170 * registry.c: Likewise.
1171 * remote-fileio.c: Likewise.
1172 * remote-m32r-sdi.c: Likewise.
1173 * remote-mips.c: Likewise.
1174 * remote-notif.c: Likewise.
1175 * remote-sim.c: Likewise.
1176 * remote.c: Likewise.
1177 * reverse.c: Likewise.
1178 * rs6000-aix-tdep.c: Likewise.
1179 * ser-base.c: Likewise.
1180 * ser-go32.c: Likewise.
1181 * ser-mingw.c: Likewise.
1182 * ser-pipe.c: Likewise.
1183 * ser-tcp.c: Likewise.
1184 * ser-unix.c: Likewise.
1185 * serial.c: Likewise.
1186 * sh-tdep.c: Likewise.
1187 * sh64-tdep.c: Likewise.
1188 * shnbsd-tdep.c: Likewise.
1189 * skip.c: Likewise.
1190 * sol-thread.c: Likewise.
1191 * solib-dsbt.c: Likewise.
1192 * solib-frv.c: Likewise.
1193 * solib-osf.c: Likewise.
1194 * solib-som.c: Likewise.
1195 * solib-spu.c: Likewise.
1196 * solib-target.c: Likewise.
1197 * solib.c: Likewise.
1198 * somread.c: Likewise.
1199 * source.c: Likewise.
1200 * sparc-nat.c: Likewise.
1201 * sparc-sol2-tdep.c: Likewise.
1202 * sparc-tdep.c: Likewise.
1203 * sparc64-tdep.c: Likewise.
1204 * sparc64fbsd-tdep.c: Likewise.
1205 * sparc64nbsd-tdep.c: Likewise.
1206 * sparcnbsd-tdep.c: Likewise.
1207 * spu-linux-nat.c: Likewise.
1208 * spu-multiarch.c: Likewise.
1209 * spu-tdep.c: Likewise.
1210 * stabsread.c: Likewise.
1211 * stack.c: Likewise.
1212 * std-regs.c: Likewise.
1213 * symfile.c: Likewise.
1214 * symmisc.c: Likewise.
1215 * symtab.c: Likewise.
1216 * target.c: Likewise.
1217 * thread.c: Likewise.
1218 * tilegx-linux-nat.c: Likewise.
1219 * tilegx-tdep.c: Likewise.
1220 * top.c: Likewise.
1221 * tracepoint.c: Likewise.
1222 * tui/tui-command.c: Likewise.
1223 * tui/tui-data.c: Likewise.
1224 * tui/tui-disasm.c: Likewise.
1225 * tui/tui-file.c: Likewise.
1226 * tui/tui-layout.c: Likewise.
1227 * tui/tui-out.c: Likewise.
1228 * tui/tui-regs.c: Likewise.
1229 * tui/tui-source.c: Likewise.
1230 * tui/tui-stack.c: Likewise.
1231 * tui/tui-win.c: Likewise.
1232 * tui/tui-windata.c: Likewise.
1233 * tui/tui-winsource.c: Likewise.
1234 * typeprint.c: Likewise.
1235 * ui-file.c: Likewise.
1236 * ui-out.c: Likewise.
1237 * user-regs.c: Likewise.
1238 * utils.c: Likewise.
1239 * v850-tdep.c: Likewise.
1240 * valarith.c: Likewise.
1241 * valops.c: Likewise.
1242 * valprint.c: Likewise.
1243 * value.c: Likewise.
1244 * varobj.c: Likewise.
1245 * vax-tdep.c: Likewise.
1246 * vaxnbsd-tdep.c: Likewise.
1247 * vaxobsd-tdep.c: Likewise.
1248 * windows-nat.c: Likewise.
1249 * xcoffread.c: Likewise.
1250 * xml-support.c: Likewise.
1251 * xstormy16-tdep.c: Likewise.
1252 * xtensa-linux-nat.c: Likewise.
1253
dccbb609
GB
12542014-08-07 Gary Benson <gbenson@redhat.com>
1255
1256 * common/common-defs.h: Include gdb_assert.h.
1257 * aarch64-tdep.c: Do not include gdb_assert.h.
1258 * addrmap.c: Likewise.
1259 * aix-thread.c: Likewise.
1260 * alpha-linux-tdep.c: Likewise.
1261 * alpha-mdebug-tdep.c: Likewise.
1262 * alphanbsd-tdep.c: Likewise.
1263 * amd64-nat.c: Likewise.
1264 * amd64-tdep.c: Likewise.
1265 * amd64bsd-nat.c: Likewise.
1266 * amd64fbsd-nat.c: Likewise.
1267 * amd64fbsd-tdep.c: Likewise.
1268 * amd64nbsd-nat.c: Likewise.
1269 * amd64nbsd-tdep.c: Likewise.
1270 * amd64obsd-nat.c: Likewise.
1271 * amd64obsd-tdep.c: Likewise.
1272 * arch-utils.c: Likewise.
1273 * arm-tdep.c: Likewise.
1274 * armbsd-tdep.c: Likewise.
1275 * auxv.c: Likewise.
1276 * bcache.c: Likewise.
1277 * bfin-tdep.c: Likewise.
1278 * blockframe.c: Likewise.
1279 * breakpoint.c: Likewise.
1280 * bsd-kvm.c: Likewise.
1281 * bsd-uthread.c: Likewise.
1282 * buildsym.c: Likewise.
1283 * c-exp.y: Likewise.
1284 * c-lang.c: Likewise.
1285 * charset.c: Likewise.
1286 * cleanups.c: Likewise.
1287 * cli-out.c: Likewise.
1288 * cli/cli-decode.c: Likewise.
1289 * cli/cli-dump.c: Likewise.
1290 * cli/cli-logging.c: Likewise.
1291 * cli/cli-script.c: Likewise.
1292 * cli/cli-utils.c: Likewise.
1293 * coffread.c: Likewise.
1294 * common/common-utils.c: Likewise.
1295 * common/queue.h: Likewise.
1296 * common/signals.c: Likewise.
1297 * common/vec.h: Likewise.
1298 * complaints.c: Likewise.
1299 * completer.c: Likewise.
1300 * corelow.c: Likewise.
1301 * cp-abi.c: Likewise.
1302 * cp-name-parser.y: Likewise.
1303 * cp-namespace.c: Likewise.
1304 * cp-support.c: Likewise.
1305 * cris-tdep.c: Likewise.
1306 * dbxread.c: Likewise.
1307 * dictionary.c: Likewise.
1308 * doublest.c: Likewise.
1309 * dsrec.c: Likewise.
1310 * dummy-frame.c: Likewise.
1311 * dwarf2-frame-tailcall.c: Likewise.
1312 * dwarf2-frame.c: Likewise.
1313 * dwarf2expr.c: Likewise.
1314 * dwarf2loc.c: Likewise.
1315 * dwarf2read.c: Likewise.
1316 * eval.c: Likewise.
1317 * event-loop.c: Likewise.
1318 * exceptions.c: Likewise.
1319 * expprint.c: Likewise.
1320 * f-valprint.c: Likewise.
1321 * fbsd-nat.c: Likewise.
1322 * findvar.c: Likewise.
1323 * frame-unwind.c: Likewise.
1324 * frame.c: Likewise.
1325 * frv-tdep.c: Likewise.
1326 * gcore.c: Likewise.
1327 * gdb-dlfcn.c: Likewise.
1328 * gdb_bfd.c: Likewise.
1329 * gdbarch.c: Likewise.
1330 * gdbarch.sh: Likewise.
1331 * gdbtypes.c: Likewise.
1332 * gnu-nat.c: Likewise.
1333 * gnu-v3-abi.c: Likewise.
1334 * go-lang.c: Likewise.
1335 * guile/scm-exception.c: Likewise.
1336 * guile/scm-gsmob.c: Likewise.
1337 * guile/scm-lazy-string.c: Likewise.
1338 * guile/scm-math.c: Likewise.
1339 * guile/scm-pretty-print.c: Likewise.
1340 * guile/scm-safe-call.c: Likewise.
1341 * guile/scm-utils.c: Likewise.
1342 * guile/scm-value.c: Likewise.
1343 * h8300-tdep.c: Likewise.
1344 * hppa-hpux-nat.c: Likewise.
1345 * hppa-tdep.c: Likewise.
1346 * hppanbsd-tdep.c: Likewise.
1347 * hppaobsd-tdep.c: Likewise.
1348 * i386-darwin-nat.c: Likewise.
1349 * i386-darwin-tdep.c: Likewise.
1350 * i386-nto-tdep.c: Likewise.
1351 * i386-tdep.c: Likewise.
1352 * i386bsd-nat.c: Likewise.
1353 * i386fbsd-tdep.c: Likewise.
1354 * i386gnu-nat.c: Likewise.
1355 * i386nbsd-tdep.c: Likewise.
1356 * i386obsd-tdep.c: Likewise.
1357 * i387-tdep.c: Likewise.
1358 * ia64-libunwind-tdep.c: Likewise.
1359 * ia64-tdep.c: Likewise.
1360 * inf-ptrace.c: Likewise.
1361 * inf-ttrace.c: Likewise.
1362 * infcall.c: Likewise.
1363 * infcmd.c: Likewise.
1364 * infrun.c: Likewise.
1365 * inline-frame.c: Likewise.
1366 * interps.c: Likewise.
1367 * jv-lang.c: Likewise.
1368 * jv-typeprint.c: Likewise.
1369 * linux-fork.c: Likewise.
1370 * linux-nat.c: Likewise.
1371 * linux-thread-db.c: Likewise.
1372 * m32c-tdep.c: Likewise.
1373 * m32r-linux-nat.c: Likewise.
1374 * m32r-tdep.c: Likewise.
1375 * m68k-tdep.c: Likewise.
1376 * m68kbsd-nat.c: Likewise.
1377 * m68kbsd-tdep.c: Likewise.
1378 * m88k-tdep.c: Likewise.
1379 * machoread.c: Likewise.
1380 * macroexp.c: Likewise.
1381 * macrotab.c: Likewise.
1382 * maint.c: Likewise.
1383 * mdebugread.c: Likewise.
1384 * memory-map.c: Likewise.
1385 * mep-tdep.c: Likewise.
1386 * mi/mi-common.c: Likewise.
1387 * microblaze-tdep.c: Likewise.
1388 * mingw-hdep.c: Likewise.
1389 * mips-linux-nat.c: Likewise.
1390 * mips-linux-tdep.c: Likewise.
1391 * mips-tdep.c: Likewise.
1392 * mips64obsd-tdep.c: Likewise.
1393 * mipsnbsd-tdep.c: Likewise.
1394 * mn10300-linux-tdep.c: Likewise.
1395 * mn10300-tdep.c: Likewise.
1396 * moxie-tdep.c: Likewise.
1397 * mt-tdep.c: Likewise.
1398 * nat/linux-btrace.c: Likewise.
1399 * nat/linux-osdata.c: Likewise.
1400 * nat/linux-ptrace.c: Likewise.
1401 * nat/mips-linux-watch.c: Likewise.
1402 * nios2-linux-tdep.c: Likewise.
1403 * nios2-tdep.c: Likewise.
1404 * objc-lang.c: Likewise.
1405 * objfiles.c: Likewise.
1406 * obsd-nat.c: Likewise.
1407 * opencl-lang.c: Likewise.
1408 * osabi.c: Likewise.
1409 * parse.c: Likewise.
1410 * ppc-linux-nat.c: Likewise.
1411 * ppc-sysv-tdep.c: Likewise.
1412 * ppcfbsd-nat.c: Likewise.
1413 * ppcfbsd-tdep.c: Likewise.
1414 * ppcnbsd-nat.c: Likewise.
1415 * ppcnbsd-tdep.c: Likewise.
1416 * ppcobsd-nat.c: Likewise.
1417 * ppcobsd-tdep.c: Likewise.
1418 * printcmd.c: Likewise.
1419 * procfs.c: Likewise.
1420 * prologue-value.c: Likewise.
1421 * psymtab.c: Likewise.
1422 * python/py-lazy-string.c: Likewise.
1423 * python/py-value.c: Likewise.
1424 * regcache.c: Likewise.
1425 * reggroups.c: Likewise.
1426 * registry.c: Likewise.
1427 * remote-sim.c: Likewise.
1428 * remote.c: Likewise.
1429 * rs6000-aix-tdep.c: Likewise.
1430 * rs6000-tdep.c: Likewise.
1431 * s390-linux-tdep.c: Likewise.
1432 * score-tdep.c: Likewise.
1433 * ser-base.c: Likewise.
1434 * ser-mingw.c: Likewise.
1435 * sh-tdep.c: Likewise.
1436 * sh64-tdep.c: Likewise.
1437 * solib-darwin.c: Likewise.
1438 * solib-spu.c: Likewise.
1439 * solib-svr4.c: Likewise.
1440 * source.c: Likewise.
1441 * sparc-nat.c: Likewise.
1442 * sparc-sol2-tdep.c: Likewise.
1443 * sparc-tdep.c: Likewise.
1444 * sparc64-sol2-tdep.c: Likewise.
1445 * sparc64-tdep.c: Likewise.
1446 * sparc64fbsd-tdep.c: Likewise.
1447 * sparc64nbsd-tdep.c: Likewise.
1448 * sparc64obsd-tdep.c: Likewise.
1449 * sparcnbsd-tdep.c: Likewise.
1450 * sparcobsd-tdep.c: Likewise.
1451 * spu-multiarch.c: Likewise.
1452 * spu-tdep.c: Likewise.
1453 * stabsread.c: Likewise.
1454 * stack.c: Likewise.
1455 * symfile.c: Likewise.
1456 * symtab.c: Likewise.
1457 * target-descriptions.c: Likewise.
1458 * target-memory.c: Likewise.
1459 * target.c: Likewise.
1460 * tic6x-linux-tdep.c: Likewise.
1461 * tic6x-tdep.c: Likewise.
1462 * tilegx-linux-nat.c: Likewise.
1463 * tilegx-tdep.c: Likewise.
1464 * top.c: Likewise.
1465 * tramp-frame.c: Likewise.
1466 * tui/tui-out.c: Likewise.
1467 * tui/tui-winsource.c: Likewise.
1468 * ui-out.c: Likewise.
1469 * user-regs.c: Likewise.
1470 * utils.c: Likewise.
1471 * v850-tdep.c: Likewise.
1472 * valops.c: Likewise.
1473 * value.c: Likewise.
1474 * varobj.c: Likewise.
1475 * vax-nat.c: Likewise.
1476 * xml-syscall.c: Likewise.
1477 * xml-tdesc.c: Likewise.
1478 * xstormy16-tdep.c: Likewise.
1479 * xtensa-linux-nat.c: Likewise.
1480 * xtensa-tdep.c: Likewise.
1481
e76df0d0
GB
14822014-08-07 Gary Benson <gbenson@redhat.com>
1483
1484 * common/common-defs.h: Include common-utils.h.
1485 * defs.h: Do not include common-utils.h.
1486 * common/gdb_assert.h: Likewise.
1487 * darwin-nat.h: Likewise.
1488 * nat/linux-btrace.c: Likewise.
1489 * target/waitstatus.h: Likewise.
1490
4cb9c816
GB
14912014-08-07 Gary Benson <gbenson@redhat.com>
1492
1493 * common/common-defs.h: Include ptid.h.
1494 * defs.h: Do not include ptid.h.
1495 * inferior.h: Likewise.
1496 * infrun.h: Likewise.
1497 * nat/linux-btrace.h: Likewise.
1498 * nat/linux-osdata.h: Likewise.
1499 * target/waitstatus.h: Likewise.
1500
3995eeee
GB
15012014-08-07 Gary Benson <gbenson@redhat.com>
1502
1503 * common/common-defs.h: Include gdb_locale.h.
1504 * defs.h: Do not include gdb_locale.h.
1505
cb9f1a9b
GB
15062014-08-07 Gary Benson <gbenson@redhat.com>
1507
1508 * common/common-defs.h: Include gdb/signals.h.
1509 * defs.h: Do not include gdb/signals.h.
1510
a5fceff8
GB
15112014-08-07 Gary Benson <gbenson@redhat.com>
1512
1513 * common/common-defs.h: Include pathmax.h.
1514 * defs.h: Do not include pathmax.h.
1515
b9391142
GB
15162014-08-07 Gary Benson <gbenson@redhat.com>
1517
1518 * common/common-defs.h: Include libiberty.h.
1519 * defs.h: Do not include libiberty.h.
1520 * common/queue.h: Likewise.
1521 * cp-name-parser.y: Likewise.
1522 * mi/mi-cmd-catch.c: Likewise.
1523 * python/python.c: Likewise.
1524
0e443c87
GB
15252014-08-07 Gary Benson <gbenson@redhat.com>
1526
1527 * common/common-defs.h: Include ansidecl.h.
1528 * defs.h: Do not include ansidecl.h.
1529 * common/buffer.h: Likewise.
1530 * common/common-utils.h: Likewise.
1531
8ebb3f56
GB
15322014-08-07 Gary Benson <gbenson@redhat.com>
1533
1534 * common/common-defs.h: Include stddef.h.
1535 * defs.h: Do not include stddef.h.
1536 * common/common-utils.h: Likewise.
1537 * amd64fbsd-nat.c: Likewise.
1538 * bcache.c: Likewise.
1539 * charset.c: Likewise.
1540 * common/buffer.h: Likewise.
1541 * common/vec.h: Likewise.
1542 * i386bsd-nat.c: Likewise.
1543 * nat/linux-btrace.h: Likewise.
1544 * ppcfbsd-nat.c: Likewise.
1545 * ppcnbsd-tdep.h: Likewise.
1546 * ppcobsd-nat.c: Likewise.
1547 * ppcobsd-tdep.h: Likewise.
1548 * python/py-gdb-readline.c: Likewise.
1549
8980bdf6
GB
15502014-08-07 Gary Benson <gbenson@redhat.com>
1551
1552 * common/common-defs.h: Include stdarg.h.
1553 * defs.h: Do not include stdarg.h.
1554 * ada-lang.c: Likewise.
1555 * common/common-utils.h: Likewise.
1556 * guile/scm-string.c: Likewise.
1557 * guile/scm-utils.c: Likewise.
1558 * m32c-tdep.c: Likewise.
1559
d7096f71
GB
15602014-08-07 Gary Benson <gbenson@redhat.com>
1561
1562 * common/common-defs.h: Include stdlib.h.
1563 * defs.h: Do not include stdlib.h.
1564 * addrmap.c: Likewise.
1565 * bcache.c: Likewise.
1566 * common/buffer.c: Likewise.
1567 * common/common-utils.c: Likewise.
1568 * cp-name-parser.y: Likewise.
1569 * go32-nat.c: Likewise.
1570 * mn10300-linux-tdep.c: Likewise.
1571 * nat/linux-osdata.c: Likewise.
1572 * tui/tui.c: Likewise.
1573 * windows-nat.c: Likewise.
1574
d02f550d
GB
15752014-08-07 Gary Benson <gbenson@redhat.com>
1576
1577 * common/common-defs.h: Include stdio.h.
1578 * defs.h: Do not include stdio.h.
1579 * ada-lang.c: Likewise.
1580 * common/buffer.c: Likewise.
1581 * common/common-utils.c: Likewise.
1582 * cp-name-parser.y: Likewise.
1583 * gnu-nat.c: Likewise.
1584 * go32-nat.c: Likewise.
1585 * i386gnu-nat.c: Likewise.
1586 * proc-api.c: Likewise.
1587 * proc-events.c: Likewise.
1588 * proc-flags.c: Likewise.
1589 * proc-why.c: Likewise.
1590 * python/python-internal.h: Likewise.
1591 * target-memory.c: Likewise.
1592 * tui/tui-io.c: Likewise.
1593 * tui/tui.c: Likewise.
1594
b6d7a4bf
SM
15952014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1596
1597 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1598 (scan_dyntag_auxv): Same.
1599
af19829b
YQ
16002014-08-06 Yao Qi <yao@codesourcery.com>
1601
1602 * amd64-linux-nat.c: Remove duplicated include
1603 "x86-linux-nat.h".
1604 * i386-linux-nat.c: Likewise.
1605
8e07a239
YQ
16062014-08-06 Yao Qi <yao@codesourcery.com>
1607
1608 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1609 operand" with "Special opcode" in comments.
1610
7bfe8241
GB
16112014-08-05 Gary Benson <gbenson@redhat.com>
1612
1613 * interps.c (initialize_interps): Remove prototype.
1614 (interpreter_initialized): Remove static global.
1615 (interp_add): Do not call initialize_interps.
1616 (initialize_interps): Remove function.
1617
d6c95504
GB
16182014-08-05 Gary Benson <gbenson@redhat.com>
1619
1620 * utils.c (vwarning): Remove spurious va_end.
1621
241fd515
AM
16222014-08-05 Alan Modra <amodra@gmail.com>
1623
1624 * charset.c (convert_between_encodings): Cast result of obstack_base.
1625 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1626 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1627 (read_unwind_info): Use size_t for some locals.
1628 * jit.c (finalize_symtab): Likewise.
1629 * utils.c (hashtab_obstack_allocate): Likewise.
1630 * symmisc.c (print_objfile_statistics): Update format strings.
1631
dc304a94
JK
16322014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1633
1634 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1635 (Changes in GDB 7.8): ... here.
1636
3cecbbbe
TT
16372014-08-04 Tom Tromey <tromey@redhat.com>
1638
1639 * target.c (set_targetdebug): New function.
1640 (initialize_targets): Pass set_targetdebug when creating "set
1641 debug target".
1642
6908c509
JB
16432014-08-01 Joel Brobecker <brobecker@adacore.com>
1644
1645 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1646 if detecting a variable-sized field that is not the last field.
1647 Fix struct type length computation.
1648
53e8f97d
JB
16492014-08-01 Joel Brobecker <brobecker@adacore.com>
1650
1651 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1652 Add debug trace.
1653
e068c55d
JB
16542014-08-01 Joel Brobecker <brobecker@adacore.com>
1655
1656 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1657 Remove "+ 8" offset in computation of CHAIN_VMA.
1658
4d4ca2a1
DE
16592014-07-31 Doug Evans <dje@google.com>
1660
1661 * inflow.c (child_terminal_inferior): Add comment.
1662 (child_terminal_ours_for_output): Add comment.
1663 (child_terminal_ours): Add comment.
1664 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1665 (linux_nat_terminal_ours): Add comment.
1666
462f517e
GB
16672014-07-31 Gary Benson <gbenson@redhat.com>
1668
1669 * common/btrace-common.h: Do not include defs.h or server.h.
1670 * nat/mips-linux-watch.h: Likewise.
1671 * gdb-dlfcn.h: Do not include defs.h.
1672 * tracefile.h: Likewise.
1673
74228e77
RM
16742014-07-30 Roland McGrath <mcgrathr@google.com>
1675
1676 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1677
014f9477
TT
16782014-07-30 Tom Tromey <tromey@redhat.com>
1679
1680 * bsd-kvm.c (bsd_kvm_open): Constify.
1681 * corelow.c (core_open): Constify.
1682 * ctf.c (ctf_open): Constify.
1683 * dbug-rom.c (dbug_open): Constify.
1684 * exec.c (exec_open): Constify.
1685 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1686 * microblaze-rom.c (picobug_open): Constify.
1687 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1688 Constify.
1689 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1690 * record-btrace.c (record_btrace_open): Constify.
1691 * record-full.c (record_full_core_open_1, record_full_open_1)
1692 (record_full_open): Constify.
1693 * remote-m32r-sdi.c (m32r_open): Constify.
1694 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1695 (rockhopper_open, lsi_open): Constify.
1696 * remote-sim.c (gdbsim_open): Constify.
1697 * remote.c (remote_open, extended_remote_open, remote_open_1):
1698 Constify.
1699 * target.h (struct target_ops) <to_open>: Make "arg" const.
1700 * tracefile-tfile.c (tfile_open): Constify.
1701
e799154c
TT
17022014-07-30 Tom Tromey <tromey@redhat.com>
1703
1704 * breakpoint.c (map_breakpoint_numbers): Update.
1705 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1706 (get_number_const): New function.
1707 (get_number): Rewrite using get_number_const.
1708 (init_number_or_range): Make "string" const.
1709 (number_is_in_list): Make "list" const.
1710 * cli/cli-utils.h (get_number_const): Declare.
1711 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1712 (init_number_or_range, number_is_in_list): Update.
1713 * printcmd.c (map_display_numbers): Update.
1714 * value.c (value_from_history_ref): Constify.
1715 * value.h (value_from_history_ref): Update.
1716
5f08566b
TT
17172014-07-30 Tom Tromey <tromey@redhat.com>
1718
1719 * corefile.c (hook_type, call_extra_exec_file_hooks)
1720 (specify_exec_file_hook): Constify.
1721 * exec.c (exec_file_attach): Make "filename" const.
1722 * gdbcore.h (deprecated_exec_file_display_hook)
1723 (specify_exec_file_hook, exec_file_attach): Constify.
1724 * main.c (captured_main): Use catch_command_errors_const.
1725
8981c758
TT
17262014-07-30 Tom Tromey <tromey@redhat.com>
1727
1728 * target.c (open_target): New function.
1729 (add_target_with_completer, add_deprecated_target_alias): Use
1730 set_cmd_sfunc, set_cmd_context.
1731 (debug_to_open): Remove.
1732 (setup_target_debug): Update.
1733
a1c7835a
YQ
17342014-07-30 Yao Qi <yao@codesourcery.com>
1735
1736 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1737 comments.
1738 * parse.c (exp_iterate): Update comments.
1739
976411d6
GB
17402014-07-30 Gary Benson <gbenson@redhat.com>
1741
1742 * common/common-defs.h: New file.
1743 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1744 * defs.h: Include common-defs.h.
1745 Do not include config.h or build-gnulib/config.h.
1746
5d4848a4
GB
17472014-07-30 Gary Benson <gbenson@redhat.com>
1748
1749 * common/common-utils.h: Do not include config.h.
1750 * nat/linux-btrace.h: Likewise.
1751
d41f6d8e
GB
17522014-07-30 Gary Benson <gbenson@redhat.com>
1753
1754 * btrace.c: Include defs.h.
1755 * common/ptid.c: Include defs.h or server.h as appropriate.
1756 * nat/mips-linux-watch.c: Likewise.
1757
84202f9c
TT
17582014-07-29 Tom Tromey <tromey@redhat.com>
1759
1760 * target.c (target_is_pushed): Simplify.
1761
2530441c
JB
17622014-07-29 Joel Brobecker <brobecker@adacore.com>
1763
1764 GDB 7.8 released.
1765
7e09a223
YQ
17662014-07-29 Yao Qi <yao@codesourcery.com>
1767
1768 PR gdb/17206
1769 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1770
7ebdbe92
DE
17712014-07-28 Doug Evans <xdje42@gmail.com>
1772
1773 PR guile/17203
1774 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1775 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1776 parameters.
1777
f347ffc9
WN
17782014-07-28 Will Newton <will.newton@linaro.org>
1779
1780 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1781 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1782 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1783 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1784 (THUMB2_EABI_SYSCALL): Likewise.
1785 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1786 struct tramp_frame.
1787 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1788 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1789
37c5f1f7
DE
17902014-07-27 Doug Evans <xdje42@gmail.com>
1791
1792 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1793
0c3abbc7
DE
17942014-07-27 Doug Evans <xdje42@gmail.com>
1795
1796 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1797
e76c5d17
DE
17982014-07-26 Ludovic Courtès <ludo@gnu.org>
1799 Doug Evans <xdje42@gmail.com>
1800
1801 PR guile/17146
1802 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1803 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1804 * configure.ac: Try to use guild to compile an scm file, if it fails
1805 then disable guile support.
1806 * configure: Regenerate.
1807 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1808 GUILE_FILE_LIST.
1809 (GUILE_COMPILED_FILES): New variable.
1810 (GUILE_FILES) Update.
1811 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1812 (stamp-guile): Compile scm files.
1813 * guile/guile.c (boot_guile_support): New function.
1814 (standard_throw_args_p): New function.
1815 (print_standard_throw_error, print_throw_error): New functions.
1816 (handle_boot_error): New function.
1817 (initialize_scheme_side): Rewrite to call boot_guile_support.
1818 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1819 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1820
186fcde0
DE
18212014-07-26 Ludovic Courtès <ludo@gnu.org>
1822 Doug Evans <xdje42@gmail.com>
1823
1824 PR guile/17146
1825 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1826 * guile/lib/gdb/support.scm: New file.
1827 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1828 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1829 All uses updated.
1830 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1831 All uses updated.
1832 (%assert-type): Ditto, and renamed to assert-type.
1833 (%exception-print-style): Delete.
1834
4df42755
DE
18352014-07-26 Doug Evans <xdje42@gmail.com>
1836
1837 PR build/17105
1838 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1839 * configure: Regenerate.
1840 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1841 PYTHON_FILES.
1842 (PYTHON_FILES): New variable.
1843 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1844 (GUILE_FILES): New variable.
1845 (stamp-python, install-python, uninstall-python): Handle empty
1846 file list.
1847 (stamp-guile, install-guile, uninstall-guile): Ditto.
1848
ee7333ae
DE
18492014-07-26 Doug Evans <xdje42@gmail.com>
1850
1851 PR guile/17177
1852 * guile/lib/gdb.scm (pretty-printers): Export.
1853 (set-pretty-printers!): Export.
1854 * guile/lib/gdb/printing.scm (gdb module): Update.
1855 (prepend-pretty-printer!, append-pretty-printer!): Update.
1856 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1857 (pretty_printer_list_var): Delete.
1858 (pretty_printer_list): New static global.
1859 (gdbscm_pretty_printers): New function.
1860 (gdbscm_set_pretty_printers_x): New function.
1861 (ppscm_find_pretty_printer_from_gdb): Update.
1862 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1863 (gdbscm_initialize_pretty_printers): Update.
1864
74edf516
DE
18652014-07-26 Doug Evans <xdje42@gmail.com>
1866
1867 PR 17185
1868 * configure.ac: Add check for header gc/gc.h.
1869 Add check for function setenv.
1870 * configure: Regenerate.
1871 * config.in: Regenerate.
1872 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1873
d54398a7
MR
18742014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1875
1876 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1877 variation in gdbarch matching.
1878
ab16fce8
TT
18792014-07-25 Tom Tromey <tromey@redhat.com>
1880
1881 * exec.c (using_exec_ops): Remove.
1882 (exec_close_1): Update. Remove extraneous block, reindent.
1883 (add_target_sections): Use target_is_pushed.
1884
88056fbb
PA
18852014-07-25 Pedro Alves <palves@redhat.com>
1886
1887 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1888 * monitor.c (monitor_create_inferior): Likewise.
1889 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1890 * remote-sim.c (gdbsim_create_inferior): Likewise.
1891 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1892 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1893 * windows-nat.c (do_initial_windows_stuff): Likewise.
1894
70509625
PA
18952014-07-25 Pedro Alves <palves@redhat.com>
1896
1897 * NEWS: Mention signal passing and "signal" command changes.
1898 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1899 comment.
1900 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1901 call.
1902 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1903 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1904 (jump_command): Adjust clear_proceed_status call.
1905 (signal_command): Warn if other thread that are resumed have
1906 signals that will be delivered. Adjust clear_proceed_status call.
1907 (until_next_command, finish_command)
1908 (proceed_after_attach_callback, attach_command_post_wait)
1909 (attach_command): Adjust clear_proceed_status call.
1910 * infrun.c (proceed_after_vfork_done): Likewise.
1911 (proceed_after_attach_callback): Adjust comment.
1912 (clear_proceed_status_thread): Clear stop_signal if not in pass
1913 state.
1914 (clear_proceed_status_callback): Delete.
1915 (clear_proceed_status): New 'step' parameter. Only clear the
1916 proceed status of threads the command being prepared is about to
1917 resume.
1918 (proceed): If passed in an explicit signal, override stop_signal
1919 with it. Don't pass the last stop signal to the thread we're
1920 resuming.
1921 (init_wait_for_inferior): Adjust clear_proceed_status call.
1922 (switch_back_to_stepped_thread): Clear the signal if it should not
1923 be passed.
1924 * infrun.h (clear_proceed_status): New 'step' parameter.
1925 (user_visible_resume_ptid): Add comment.
1926 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1927 signal is in pass state.
1928 * remote.c (append_pending_thread_resumptions): Likewise.
1929 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1930
d8be2939
TT
19312014-07-25 Tom Tromey <tromey@redhat.com>
1932
1933 * target.h (target_stopped_data_address)
1934 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1935 parentheses.
1936
7d0d9d2b
PL
19372014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1938
1939 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1940 comments.
1941 (avr_pointer_to_address): Likewise.
1942
e9e7f724
TT
19432014-07-24 Tom Tromey <tromey@redhat.com>
1944
1945 * monitor.c (compile_pattern): Update.
1946 * target.h (struct target_ops) <to_shortname, to_longname,
1947 to_doc>: Now const.
1948
1947513d
TT
19492014-07-24 Tom Tromey <tromey@redhat.com>
1950
1951 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1952 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1953 (add_info_alias, add_com): Make "doc" const.
1954 (print_doc_line): Make "str" const.
1955 (delete_cmd): Update.
1956 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1957 (print_doc_line): Update.
1958 * cli/cli-script.c (document_command): Update.
1959 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1960 (add_com, add_info, add_info_alias): Update.
1961 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1962 * python/py-cmd.c (cmdpy_destroyer): Update.
1963
64e61d29
TT
19642014-07-24 Tom Tromey <tromey@redhat.com>
1965
1966 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1967 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1968 (help_cmd_list): Constify.
1969 (lookup_cmd): Update.
1970 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1971 const.
1972 (help_cmd_list, apropos_cmd): Update.
1973 * cli/cli-script.c (show_user): Update.
1974 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1975 * cli/cli-setshow.h (cmd_show_list): Update.
1976 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1977 (cmd_show_list): Update.
1978 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1979 * python/py-cmd.c (cmdpy_destroyer): Update.
1980
429e55ea
TT
19812014-07-24 Tom Tromey <tromey@redhat.com>
1982
1983 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1984 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1985 const.
1986 * command.h (deprecate_cmd): Update.
1987 * maint.c (maintenance_do_deprecate): Add casts.
1988
64669f3b
TT
19892014-07-24 Tom Tromey <tromey@redhat.com>
1990
1991 * cli/cli-decode.c (help_cmd): Make parameter "const".
1992 * cli/cli-decode.h (help_cmd): Update.
1993
d3d3328b
TT
19942014-07-24 Tom Tromey <tromey@redhat.com>
1995
1996 * stack.c (up_silently_base, down_silently_base): Make argument
1997 const.
1998
414842dc
TT
19992014-07-24 Tom Tromey <tromey@redhat.com>
2000
2001 * solib.c (solib_add): Make "pattern" const.
2002 * solib.h (solib_add): Update.
2003
baa336ce
TT
20042014-07-24 Tom Tromey <tromey@redhat.com>
2005
2006 * remote.c (remote_serial_open, print_packet, putpkt)
2007 (putpkt_binary): Constify.
2008 * remote.h (putpkt): Update.
2009
5a19e2d0
TT
20102014-07-24 Tom Tromey <tromey@redhat.com>
2011
2012 * monitor.c (monitor_open): Make "args" const.
2013 * monitor.h (monitor_open): Update.
2014
fc4baa5e
TT
20152014-07-24 Tom Tromey <tromey@redhat.com>
2016
2017 * maint.c (match_bfd_flags): Make "string" const.
2018 (print_bfd_section_info): Remove casts.
2019 (print_objfile_section_info): Make "string" const.
2020
0d5f0dbe
TT
20212014-07-24 Tom Tromey <tromey@redhat.com>
2022
2023 * inf-child.c (inf_child_open_target): Make "arg" const.
2024 * inf-child.h (inf_child_open_target): Update.
2025
41c77899
TT
20262014-07-24 Tom Tromey <tromey@redhat.com>
2027
2028 * environ.c (unset_in_environ): Make "var" const.
2029 * environ.h (unset_in_environ): Update.
2030
93db0d79
TT
20312014-07-24 Tom Tromey <tromey@redhat.com>
2032
2033 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2034 Make "cmd" const.
2035 (scan_filename_with_cleanup): Likewise.
2036 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2037 Make arguments const.
2038 (restore_command): Update.
2039
36d6eb95
PA
20402014-07-24 Pedro Alves <palves@redhat.com>
2041
2042 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2043
8009206a
TT
20442014-07-24 Tom Tromey <tromey@redhat.com>
2045 Gary Benson <gbenson@redhat.com>
2046
2047 * nat/linux-ptrace.c (additional_flags): New global.
2048 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2049 additional_flags; don't check GDBSERVER.
2050 (linux_ptrace_set_additional_flags): New function.
2051 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2052 Declare.
2053 * linux-nat.c (_initialize_linux_nat): Call
2054 linux_ptrace_set_additional_flags.
2055
a7068b60
TT
20562014-07-24 Tom Tromey <tromey@redhat.com>
2057
2058 * make-target-delegates (munge_type, write_debugmethod): New
2059 functions.
2060 (debug_names): New global.
2061 ($TARGET_DEBUG_PRINTER): New global.
2062 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2063 name.
2064 Write debug methods. Generate init_debug_target.
2065 * target-debug.h: New file.
2066 * target-delegates.c: Rebuild.
2067 * target.c: Include target-debug.h.
2068 (debug_target): Hoist definition.
2069 (target_kill, target_get_section_table, target_memory_map)
2070 (target_flash_erase, target_flash_done, target_detach)
2071 (target_disconnect, target_wait, target_resume)
2072 (target_pass_signals, target_program_signals, target_follow_fork)
2073 (target_mourn_inferior, target_search_memory)
2074 (target_thread_address_space, target_close)
2075 (target_find_new_threads, target_core_of_thread)
2076 (target_verify_memory, target_insert_mask_watchpoint)
2077 (target_remove_mask_watchpoint): Remove targetdebug code.
2078 (debug_to_post_attach, debug_to_prepare_to_store)
2079 (debug_to_files_info, debug_to_insert_breakpoint)
2080 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2081 (debug_to_region_ok_for_hw_watchpoint)
2082 (debug_to_can_accel_watchpoint_condition)
2083 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2084 (debug_to_watchpoint_addr_within_range)
2085 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2086 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2087 (debug_to_terminal_init, debug_to_terminal_inferior)
2088 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2089 (debug_to_terminal_save_ours, debug_to_terminal_info)
2090 (debug_to_load, debug_to_post_startup_inferior)
2091 (debug_to_insert_fork_catchpoint)
2092 (debug_to_remove_fork_catchpoint)
2093 (debug_to_insert_vfork_catchpoint)
2094 (debug_to_remove_vfork_catchpoint)
2095 (debug_to_insert_exec_catchpoint)
2096 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2097 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2098 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2099 (setup_target_debug): Call init_debug_target.
2100 * target.h (TARGET_DEBUG_PRINTER): New macro.
2101 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2102 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2103
2c51604d
GB
21042014-07-24 Gary Benson <gbenson@redhat.com>
2105
2106 * exceptions.h (throw_vfatal): Renamed to...
2107 (throw_vquit): New declaration.
2108 (throw_quit): Likewise.
2109 * exceptions.c (throw_vfatal): Renamed to...
2110 (throw_vquit): New function.
2111 (throw_quit): Likewise.
2112 (throw_error): Call throw_verror rather than throw_it.
2113 * utils.h (vfatal): Removed.
2114 (fatal): Likewise.
2115 * utils.c (vfatal): Removed.
2116 (fatal): Likewise.
2117 (internal_verror): Replaced call to fatal with call to throw_quit.
2118 (quit): Replaced calls to fatal with calls to throw_quit.
2119
34211963
ME
21202014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2121
2122 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2123 target_read_code.
2124
a52b4d3e
ME
21252014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2126
2127 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2128 less than zero in conditional expression.
2129
a8bdc56b
TT
21302014-07-23 Tom Tromey <tromey@redhat.com>
2131
2132 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2133 ($INTRO_PART): Don't match whitespace.
2134 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2135 argument matching.
2136 ($METHOD): Add $METHOD_TRAILER.
2137 (trim): Rewrite.
2138 (scan_target_h): New sub.
2139 Change main loop not to collect state.
2140 * target-delegates.c: Rebuild.
2141
91b52240
GB
21422014-07-23 Gary Benson <gbenson@redhat.com>
2143
2144 * cp-support.c (gdb_demangle): Fix build on systems without
2145 sigaltstack.
2146
45326f6f
JK
21472014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2148
2149 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2150 for reference entry value target data value.
2151
e214cf6c
JK
21522014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2153
2154 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2155 value_available_contents_eq.
2156
bddbbedd
PA
21572014-07-22 Pedro Alves <palves@redhat.com>
2158
2159 * value.c (allocate_optimized_out_value): Don't mark value as
2160 non-lazy.
2161
45c71484
JW
21622014-07-22 Jiong Wang <jiong.wang@arm.com>
2163
2164 * MAINTAINERS (Write After Approval): Update my email address.
2165
9597b22a
DE
21662014-07-20 Doug Evans <dje@google.com>
2167
2168 PR server/17147
2169 * remote.c (putpkt_binary): Add text to error message.
2170
91101fe5
YQ
21712014-07-20 Yao Qi <yao@codesourcery.com>
2172
2173 * eval.c: Remove "Chill" from comments.
2174 * gdbtypes.h: Likewise.
2175 * symtab.h: Likewise.
2176
c9402c95
YQ
21772014-07-20 Yao Qi <yao@codesourcery.com>
2178
2179 * std-operator.def: Update comments to TERNOP_SLICE.
2180
ae8fddda
YQ
21812014-07-20 Yao Qi <yao@codesourcery.com>
2182
2183 * std-operator.def: Remove BINOP_RANGE.
2184 * breakpoint.c (watchpoint_exp_is_const): Update.
2185 * expprint.c (dump_subexp_body_standard): Likewise.
2186 * eval.c (init_array_element): Remove dead code.
2187 (evaluate_subexp_standard): Likewise.
2188
9c816640
YQ
21892014-07-20 Yao Qi <yao@codesourcery.com>
2190
2191 * std-operator.def: Remove BINOP_IN.
2192 * breakpoint.c (watchpoint_exp_is_const): Update.
2193 * eval.c (evaluate_subexp_standard): Likewise.
2194 * expprint.c (dump_subexp_body_standard): Likewise.
2195
164224e9
ME
21962014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2197
2198 * microblaze-tdep.c (microblaze_register_names): Add
2199 the rshr and rslr register names.
2200 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2201 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2202 Use of tdesc_numbered_register. Use of
2203 microblaze_register_g_packet_guesses. Use of
2204 tdesc_use_registers. Use of set_gdbarch_register_type.
2205 (microblaze_register_g_packet_guesses): New.
2206 * microblaze-tdep.h (microblaze_reg_num): Add
2207 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2208 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2209 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2210 * features/microblaze-core.xml: New file.
2211 * features/microblaze-stack-protect.xml: New file.
2212 * features/microblaze-with-stack-protect.c: New file.
2213 * features/microblaze-with-stack-protect.xml: New file.
2214 * features/microblaze.xml: New file.
2215 * features/microblaze.c: New file.
2216 * features/Makefile (microblaze-with-stack-protect): Add
2217 microblaze-with-stack-protect microblaze and microblaze-expedite.
2218 * regformats/microblaze-with-stack-protect.dat: New file.
2219 * regformats/microblaze.dat: New file.
2220 * doc/gdb.texinfo (MicroBlaze Features): Added.
2221
e8b2341c
TT
22222014-07-18 Tom Tromey <tromey@redhat.com>
2223
2224 * exec.c (exec_ops): Now static.
2225 * exec.h (exec_ops): Don't declare.
2226
44e89118
TT
22272014-07-18 Tom Tromey <tromey@redhat.com>
2228
2229 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2230 to find_target_beneath.
2231 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2232 find_target_beneath.
2233 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2234
b0ed115f
TT
22352014-07-18 Tom Tromey <tromey@redhat.com>
2236
2237 PR gdb/17130:
2238 * utils.c (quit): Use target_supports_terminal_ours.
2239 * target.h (target_supports_terminal_ours): Declare.
2240 * target.c (target_supports_delete_record): Don't check
2241 to_delete_record against NULL.
2242 (target_supports_terminal_ours): New function.
2243
e75fdfca
TT
22442014-07-18 Tom Tromey <tromey@redhat.com>
2245
2246 PR gdb/17130:
2247 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2248 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2249 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2250 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2251 * windows-nat.c (windows_xfer_partial): Always delegate.
2252 * record-btrace.c (record_btrace_xfer_partial): Simplify
2253 delegation.
2254 (record_btrace_fetch_registers, record_btrace_store_registers)
2255 (record_btrace_prepare_to_store, record_btrace_resume)
2256 (record_btrace_wait, record_btrace_find_new_threads)
2257 (record_btrace_thread_alive): Likewise.
2258 * procfs.c (procfs_xfer_partial): Always delegate.
2259 * corelow.c (core_xfer_partial): Always delegate.
2260 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2261
83814951
TT
22622014-07-18 Tom Tromey <tromey@redhat.com>
2263
2264 * exec.c (exec_make_note_section): Move earlier.
2265
b8b8facf
DE
22662014-07-17 Doug Evans <dje@google.com>
2267
74b49205 2268 PR gdb/17170
b8b8facf
DE
2269 * maint.c (count_symtabs_and_blocks): Handle NULL
2270 current_program_space.
2271 (report_command_stats): Check global enabled flag in addition to
2272 recorded enabled flag.
2273 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2274
69ff6be5
PA
22752014-07-16 Pedro Alves <palves@redhat.com>
2276
2277 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2278
252db1b5
TT
22792014-07-16 Tom Tromey <tromey@redhat.com>
2280
2281 * target.h (struct target_ops) <to_delete_record>: Reformat
2282 comment.
2283
a432721e
TT
22842014-07-16 Tom Tromey <tromey@redhat.com>
2285
2286 * target-delegates.c: Rebuild.
2287
487d9753
PL
22882014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2289
2290 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2291 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2292 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2293 (avr_pointer_to_address): Likewise.
2294 (avr_address_class_type_flags): New function.
2295 (avr_address_class_type_flags_to_name): Likewise.
2296 (avr_address_class_name_to_type_flags): Likewise.
2297 (avr_gdbarch_init): Set address_class_type_flags,
2298 address_class_type_flags_to_name and
2299 address_class_name_to_type_flags.
2300
57745c90
PA
23012014-07-15 Pedro Alves <palves@redhat.com>
2302
2303 * linux-nat.c (kill_callback): Save errno and work with saved
2304 copy.
2305
2d40be18
SM
23062014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2307
2308 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2309
572f6555
EBM
23102014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2311
2312 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2313 breakpoint support correctly.
2314
cc1c52ad
PA
23152014-07-14 Pedro Alves <palves@redhat.com>
2316
2317 * utils.c (prompt_for_continue): Call target_terminal_ours.
2318
1e973570
PA
23192014-07-14 Pedro Alves <palves@redhat.com>
2320
2321 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2322 catch_errors. Don't re-enable stdin or notify observers where,
2323 and rethrow error.
2324 (fetch_inferior_event_wrapper): Delete.
2325
93d6eb10
PA
23262014-07-14 Pedro Alves <palves@redhat.com>
2327
2328 PR gdb/17072
2329 * top.c: Include "inf-loop.h".
2330 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2331 field.
2332 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2333 was async before.
2334 (gdb_readline_wrapper): Store whether the target is async, and
2335 make it sync.
2336
0017922d
PA
23372014-07-14 Pedro Alves <palves@redhat.com>
2338
2339 PR gdb/17072
2340 * top.c (gdb_readline_wrapper_line): Tweak comment.
2341 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2342 the input handler callback.
2343
94696ad3
PA
23442014-07-14 Pedro Alves <palves@redhat.com>
2345
2346 PR gdb/17072
2347 * main.c: Include event-top.h.
2348 (handle_command_errors): New function.
2349 (catch_command_errors, catch_command_errors_const): Use it.
2350
9d1e69a2
PA
23512014-07-14 Pedro Alves <palves@redhat.com>
2352
2353 * exceptions.c (catch_command_errors, catch_command_errors_const):
2354 Moved to main.c.
2355 * exceptions.h (catch_command_errors_ftype)
2356 (catch_command_errors_const_ftype): Moved to main.c.
2357 (catch_command_errors, catch_command_errors_const): Delete
2358 declarations.
2359 * main.c (catch_command_errors_ftype)
2360 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2361 (catch_command_errors, catch_command_errors_const)): Moved here
2362 from exceptions.c and make static.
2363
feefc97b
PA
23642014-07-14 Pedro Alves <palves@redhat.com>
2365
2366 * exceptions.c (print_any_exception): Delete.
2367 (catch_exceptions_with_msg): Use exception_print instead of
2368 print_any_exception.
2369 (catch_errors): Use exception_fprintf instead of
2370 print_any_exception.
2371 (catch_command_errors, catch_command_errors_const): Use
2372 exception_print instead of print_any_exception.
2373
c933f875
PA
23742014-07-14 Pedro Alves <palves@redhat.com>
2375
2376 * infcall.c (run_inferior_call): Set 'sync_execution' while
2377 running the inferior call.
2378
feb6f816
PA
23792014-07-14 Pedro Alves <palves@redhat.com>
2380
2381 * value.c (value_contents_equal): Delete function.
2382 * value.h (value_contents_equal): Delete declaration.
2383
d98b7a16
TT
23842014-07-14 Tom Tromey <tromey@redhat.com>
2385
2386 PR exp/17106:
2387 * gdbtypes.c (is_dynamic_type_internal): New function, from
2388 is_dynamic_type.
2389 (is_dynamic_type): Rewrite.
2390 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2391 (resolve_dynamic_struct): Likewise.
2392 (resolve_dynamic_type_internal): New function, from
2393 resolve_dynamic_type.
2394 (resolve_dynamic_type): Rewrite.
2395
548740d6
TT
23962014-07-14 Tom Tromey <tromey@redhat.com>
2397
2398 * target.c (target_require_runnable): Also check record_stratum.
2399 Update comment.
2400
808f7ab1
YQ
24012014-07-11 Yao Qi <yao@codesourcery.com>
2402
2403 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2404 thumb_instruction_restores_sp return true.
2405
540314bd
YQ
24062014-07-11 Yao Qi <yao@codesourcery.com>
2407
2408 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2409 (thumb_in_function_epilogue_p): Call
2410 thumb_instruction_restores_sp.
2411
1db01f22
YQ
24122014-07-11 Yao Qi <yao@codesourcery.com>
2413
2414 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2415 'add sp, #imm'.
2416 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2417
3116063b
GB
24182014-07-11 Gary Benson <gbenson@redhat.com>
2419
2420 * amd64-linux-nat.c (gdbcore.h): Remove include.
2421 (regset.h): Likewise.
2422 (nat/linux-btrace.h): Likewise.
2423 (btrace.h): Likewise.
2424 (gdb_assert.h): Likewise.
2425 (string.h): Likewise.
2426 (sys/uio.h): Likewise.
2427 (sys/debugreg.h): Likewise.
2428 (sys/syscall.h): Likewise.
2429 (sys/procfs.h): Likewise.
2430 (sys/user.h): Likewise.
2431 (asm/ptrace.h): Likewise.
2432 (i386-nat.h): Likewise.
2433 * i386-linux-nat.c (i386-nat.h): Likewise.
2434 (regset.h): Likewise.
2435 (target.h): Likewise.
2436 (linux-nat.h): Likewise.
2437 (nat/linux-btrace.h): Likewise.
2438 (btrace.h): Likewise.
2439 (gdb_assert.h): Likewise.
2440 (string.h): Likewise.
2441 (sys/uio.h): Likewise.
2442 (sys/user.h): Likewise.
2443 (sys/procfs.h): Likewise.
2444 (sys/reg.h): Likewise.
2445 (sys/debugreg.h): Likewise.
2446 (ORIG_EAX): Remove definition.
2447
040baaf6
GB
24482014-07-11 Gary Benson <gbenson@redhat.com>
2449
2450 * i386-linux-nat.h: New file.
2451 * x86-linux-nat.h: Likewise.
2452 * x86-linux-nat.c: Likewise.
2453 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2454 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2455 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2456 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2457 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2458 (PTRACE_SETREGSET): Likewise.
2459 (arch_lwp_info): Now in x86-linux-nat.c.
2460 (have_ptrace_getregset): Now in x86-linux-nat.h.
2461 (x86_linux_dr_get): Now in x86-linux-nat.c.
2462 (x86_linux_dr_set): Likewise.
2463 (x86_linux_dr_get_addr): Likewise.
2464 (x86_linux_dr_get_control): Likewise.
2465 (x86_linux_dr_get_status): Likewise.
2466 (update_debug_registers_callback): Likewise.
2467 (x86_linux_dr_set_control): Likewise.
2468 (x86_linux_dr_set_addr): Likewise.
2469 (x86_linux_prepare_to_resume): Likewise.
2470 (x86_linux_new_thread): Likewise.
2471 (x86_linux_new_fork): Likewise.
2472 (x86_linux_get_thread_area): Likewise.
2473 (super_post_startup_inferior): Likewise.
2474 (x86_linux_child_post_startup_inferior): Likewise.
2475 (AMD64_LINUX_USER64_CS): Likewise.
2476 (AMD64_LINUX_X32_DS): Likewise.
2477 (x86_linux_read_description): Likewise.
2478 (x86_linux_enable_btrace): Likewise.
2479 (x86_linux_disable_btrace): Likewise.
2480 (x86_linux_teardown_btrace): Likewise.
2481 (x86_linux_read_btrace): Likewise.
2482 (x86_linux_create_target): Likewise.
2483 (x86_linux_add_target): Likewise.
2484 * i386-linux-nat.c (x86-linux-nat.h): New include.
2485 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2486 (PTRACE_SETREGSET): Likewise.
2487 (arch_lwp_info): Now in x86-linux-nat.c.
2488 (have_ptrace_getregset): Now in x86-linux-nat.h.
2489 (x86_linux_dr_get): Now in x86-linux-nat.c.
2490 (x86_linux_dr_set): Likewise.
2491 (x86_linux_dr_get_addr): Likewise.
2492 (x86_linux_dr_get_control): Likewise.
2493 (x86_linux_dr_get_status): Likewise.
2494 (update_debug_registers_callback): Likewise.
2495 (x86_linux_dr_set_control): Likewise.
2496 (x86_linux_dr_set_addr): Likewise.
2497 (x86_linux_prepare_to_resume): Likewise.
2498 (x86_linux_new_thread): Likewise.
2499 (x86_linux_new_fork): Likewise.
2500 (x86_linux_get_thread_area): Likewise.
2501 (super_post_startup_inferior): Likewise.
2502 (x86_linux_child_post_startup_inferior): Likewise.
2503 (AMD64_LINUX_USER64_CS): Likewise.
2504 (AMD64_LINUX_X32_DS): Likewise.
2505 (x86_linux_read_description): Likewise.
2506 (x86_linux_enable_btrace): Likewise.
2507 (x86_linux_disable_btrace): Likewise.
2508 (x86_linux_teardown_btrace): Likewise.
2509 (x86_linux_read_btrace): Likewise.
2510 (x86_linux_create_target): Likewise.
2511 (x86_linux_add_target): Likewise.
2512
1aa7e42c
GB
25132014-07-11 Gary Benson <gbenson@redhat.com>
2514
2515 * amd64-linux-nat.c: Comment and whitespace changes.
2516 * i386-linux-nat.c: Comment and whitespace changes.
2517
c1e246a0
GB
25182014-07-11 Gary Benson <gbenson@redhat.com>
2519
2520 * amd64-linux-nat.c (x86_linux_create_target): New function.
2521 (x86_linux_add_target): Likewise.
2522 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2523 * i386-linux-nat.c (x86_linux_create_target): New function.
2524 (x86_linux_add_target): Likewise.
2525 (_initialize_i386_linux_nat): Delegate to the above new functions.
2526
8c420b8d
GB
25272014-07-11 Gary Benson <gbenson@redhat.com>
2528
2529 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2530 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2531 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2532 (ps_get_thread_area): Delegate to the above.
2533
cb1da100
GB
25342014-07-11 Gary Benson <gbenson@redhat.com>
2535
2536 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2537 x86_linux_read_description. All uses updated. amd64-specific
2538 code conditionalized. Conditionalized i386-specific code added.
2539 Redundant cast removed.
2540 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2541 x86_linux_read_description. All uses updated. i386-specific
2542 code conditionalized. Conditionalized amd64-specific code added.
2543 One sizeof replaced with the actual type it is describing.
2544
2acf3cd0
GB
25452014-07-11 Gary Benson <gbenson@redhat.com>
2546
2547 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2548 x86_linux_dr_get. All uses updated.
2549 (amd64_linux_dr_set): Renamed to
2550 x86_linux_dr_set. All uses updated.
2551 (amd64_linux_dr_get_addr): Renamed to
2552 x86_linux_dr_get_addr. All uses updated.
2553 (amd64_linux_dr_get_control): Renamed to
2554 x86_linux_dr_get_control. All uses updated.
2555 (amd64_linux_dr_get_status): Renamed to
2556 x86_linux_dr_get_status. All uses updated.
2557 (amd64_linux_dr_set_control): Renamed to
2558 x86_linux_dr_set_control. All uses updated.
2559 (amd64_linux_dr_set_addr): Renamed to
2560 x86_linux_dr_set_addr. All uses updated.
2561 (amd64_linux_prepare_to_resume): Renamed to
2562 x86_linux_prepare_to_resume. All uses updated.
2563 (amd64_linux_new_thread): Renamed to
2564 x86_linux_new_thread. All uses updated.
2565 (amd64_linux_new_fork): Renamed to
2566 x86_linux_new_fork. All uses updated.
2567 (amd64_linux_child_post_startup_inferior): Renamed to
2568 x86_linux_child_post_startup_inferior. All uses updated.
2569 (amd64_linux_enable_btrace): Renamed to
2570 x86_linux_enable_btrace. All uses updated.
2571 (amd64_linux_disable_btrace): Renamed to
2572 x86_linux_disable_btrace. All uses updated.
2573 (amd64_linux_teardown_btrace): Renamed to
2574 x86_linux_teardown_btrace. All uses updated.
2575 (amd64_linux_read_btrace): Renamed to
2576 x86_linux_read_btrace. All uses updated.
2577 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2578 x86_linux_dr_get. All uses updated.
2579 (i386_linux_dr_set): Renamed to
2580 x86_linux_dr_set. All uses updated.
2581 (i386_linux_dr_get_addr): Renamed to
2582 x86_linux_dr_get_addr. All uses updated.
2583 (i386_linux_dr_get_control): Renamed to
2584 x86_linux_dr_get_control. All uses updated.
2585 (i386_linux_dr_get_status): Renamed to
2586 x86_linux_dr_get_status. All uses updated.
2587 (i386_linux_dr_set_control): Renamed to
2588 x86_linux_dr_set_control. All uses updated.
2589 (i386_linux_dr_set_addr): Renamed to
2590 x86_linux_dr_set_addr. All uses updated.
2591 (i386_linux_prepare_to_resume): Renamed to
2592 x86_linux_prepare_to_resume. All uses updated.
2593 (i386_linux_new_thread): Renamed to
2594 x86_linux_new_thread. All uses updated.
2595 (i386_linux_new_fork): Renamed to
2596 x86_linux_new_fork. All uses updated.
2597 (i386_linux_child_post_startup_inferior): Renamed to
2598 x86_linux_child_post_startup_inferior. All uses updated.
2599 (i386_linux_enable_btrace): Renamed to
2600 x86_linux_enable_btrace. All uses updated.
2601 (i386_linux_disable_btrace): Renamed to
2602 x86_linux_disable_btrace. All uses updated.
2603 (i386_linux_teardown_btrace): Renamed to
2604 x86_linux_teardown_btrace. All uses updated.
2605 (i386_linux_read_btrace): Renamed to
2606 x86_linux_read_btrace. All uses updated.
2607
b9c1d481
AS
26082014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2609
2610 * remote.c (extended_remote_post_attach): New function.
2611 (init_extended_remote_ops): Install it as to_post_attach method.
2612
7180e04a
PA
26132014-07-09 Pedro Alves <palves@redhat.com>
2614
2615 * infcmd.c (attach_command_post_wait): Don't call
2616 target_terminal_inferior here.
2617 (attach_command): Call it here instead.
2618
9a9a7608
AB
26192014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2620
2621 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2622 field.
2623 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2624 from varobj.c, with additional checks.
2625 (c_varobj_ops): Fill in is_path_expr_parent field.
2626 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2627 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2628 field.
2629 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2630 ops method.
2631 (varobj_default_is_path_expr_parent): New function.
2632 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2633 (varobj_default_is_path_expr_parent): Declare new function.
2634
1f267ae3
MM
26352014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2636
2637 * infcmd.c (finish_backward): Turn internal error into normal error.
2638
b2ee242b
PA
26392014-07-07 Pedro Alves <palves@redhat.com>
2640
8a869bca 2641 PR gdb/17096
b2ee242b
PA
2642 * remote.c (async_handle_remote_sigint)
2643 (async_handle_remote_sigint_twice): Call
2644 gdb_call_async_signal_handler instead of
2645 mark_async_signal_handler.
2646
38e229b2
TT
26472014-07-07 Tom Tromey <tromey@redhat.com>
2648
2649 * target-delegates.c: Rebuild.
2650 * target.c (target_info_record): Remove.
2651 * record.c (info_record_command): Unconditionally call
2652 to_info_record.
2653 * target.h (struct target_ops) <to_info_record>: Use
2654 TARGET_DEFAULT_IGNORE.
2655 (target_info_record): Remove.
2656
f0f9ff95
TT
26572014-07-07 Tom Tromey <tromey@redhat.com>
2658
2659 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2660 TARGET_DEFAULT_NORETURN.
2661 * target.c (generic_tls_error): New function.
2662 (target_translate_tls_address): Don't search target stack.
2663 * target-delegates.c: Rebuild.
2664 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2665 stack.
2666 * linux-thread-db.c (thread_db_get_thread_local_address):
2667 Unconditionally call beneath target.
2668
4a5be5ee
MK
26692014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2670
2671 * cli/cli-logging.c (pop_output_files): Assign targerr to
2672 gdb_stdtargerr.
2673
92c3b204
AB
26742014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2675
2676 * MAINTAINERS (Write After Approval): Update my email address.
2677
9b11e3a7
GB
26782014-07-02 Gary Benson <gbenson@redhat.com>
2679
2680 * proc-service.c (ps_xfer_memory): Update comment.
2681 (ps_pstop): Remove unused function.
2682 (ps_pcontinue): Likewise.
2683 (ps_lstop): Likewise.
2684 (ps_lcontinue): Likewise.
2685 (ps_lgetxregsize): Likewise.
2686 (ps_lgetxregs): Likewise.
2687 (ps_lsetxregs): Likewise.
2688 (ps_plog): Likewise.
2689 (ps_ptread): Likewise.
2690 (ps_ptwrite): Likewise.
2691
cf363f18
MW
26922014-07-01 Mark Wielaard <mjw@redhat.com>
2693
2694 * dwarf2read.c (add_array_cv_type): New function.
2695 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2696 (read_tag_volatile_type): Likewise.
2697
82ae6c8d
TT
26982014-07-01 Tom Tromey <tromey@redhat.com>
2699
2700 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2701 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2702 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2703 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2704 * command.h (cmd_cfunc_ftype): Move earlier.
2705 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2706 (add_com, add_info): Use cmd_cfunc_ftype.
2707
96142726
TT
27082014-06-30 Tom Tromey <tromey@redhat.com>
2709
2710 * symtab.c (operator_chars): Make parameters and return type
2711 const.
2712 (file_matches): Make "files" const.
2713 (struct search_symbols_data) <files>: Now const.
2714 (search_symbols): Make "regexp" and "files" parameters const.
2715 Update.
2716 (symtab_symbol_info): Remove cast.
2717 (rbreak_command): Update.
2718 * symtab.h (search_symbols): Update.
2719
b67a2c6f
YQ
27202014-06-27 Yao Qi <yao@codesourcery.com>
2721
2722 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2723 Change parameter type to 'struct thread_info *'. Caller
2724 updated.
2725 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2726 Update declaration.
2727 * dummy-frame.c (struct dummy_frame_id): New.
2728 (dummy_frame_id_eq): New function.
2729 (struct dummy_frame) <id>: Change its type to 'struct
2730 dummy_frame_id'.
2731 (dummy_frame_push): Add parameter ptid and save it in
2732 dummy_frame_id.
2733 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2734 inferior_ptid.
2735 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2736 to inferior_ptid.
2737 (lookup_dummy_frame): Change parameter type to 'struct
2738 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2739 instead of frame_id_eq.
2740 (dummy_frame_pop): Add parameter ptid. Callers updated.
2741 Update comments. Compose dummy_frame_id and pass it to
2742 lookup_dummy_frame.
2743 (dummy_frame_discard): Add parameter ptid.
2744 (dummy_frame_sniffer): Compose dummy_frame_id and call
2745 dummy_frame_id_eq instead of frame_id_eq.
2746 (fprint_dummy_frames): Print ptid.
2747 * dummy-frame.h: Remove comments.
2748 (dummy_frame_push): Add ptid in declaration.
2749 (dummy_frame_pop, dummy_frame_discard): Likewise.
2750
5b10184c
TT
27512014-06-26 Tom Tromey <tromey@redhat.com>
2752
2753 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2754 * command.h (error_no_arg): Update.
2755
06900326
TT
27562014-06-26 Tom Tromey <tromey@redhat.com>
2757
2758 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2759 (do_show_command): Make "arg" const.
2760 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2761
c2bcbb1d
TT
27622014-06-26 Tom Tromey <tromey@redhat.com>
2763
2764 * record-full.c (record_full_get_bookmark): Make "args" const.
2765 (record_full_goto_bookmark): Make "raw_bookmark" const.
2766 * record.c (record_goto): New function.
2767 (cmd_record_goto): Use it. Now static.
2768 * record.h (record_goto): Declare.
2769 (cmd_record_goto): Remove declaration.
2770 * target-delegates.c: Rebuild.
2771 * target.h (struct target_ops) <to_get_bookmark,
2772 to_goto_bookmark>: Make parameter const.
2773
9cbe5fff
TT
27742014-06-26 Tom Tromey <tromey@redhat.com>
2775
2776 * defs.h (generic_load): Update.
2777 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2778 * monitor.c (monitor_load): Make "args" const.
2779 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2780 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2781 const.
2782 (mips_load): Make "file" const.
2783 * remote-sim.c (gdbsim_load): Make "args" const.
2784 * remote.c (remote_load): Make "name" const.
2785 * symfile.c (generic_load): Make "args" const.
2786 * target-delegates.c: Rebuild.
2787 * target.c (target_load): Make "arg" const.
2788 (debug_to_load): Make "args" const.
2789 * target.h (struct target_ops) <to_load>: Make parameter const.
2790 (target_load): Update.
2791
34a68019
TT
27922014-06-26 Tom Tromey <tromey@redhat.com>
2793
2794 PR symtab/16902:
2795 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2796 (dwarf2_physname, read_partial_die)
2797 (guess_partial_die_structure_name, fixup_partial_die)
2798 (guess_full_die_structure_name, anonymous_struct_prefix)
2799 (dwarf2_name): Use per-BFD obstack.
2800
efc889c1
YQ
28012014-06-26 Yao Qi <yao@codesourcery.com>
2802
2803 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2804 dummyframe and this_id into inner block below.
2805
4395285e
YQ
28062014-06-26 Yao Qi <yao@codesourcery.com>
2807
2808 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2809 with "signal_pass[0]" in the initialization of signal_pass.
2810
aef92902
MM
28112014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2812
2813 * record-btrace.c (record_btrace_generating_corefile)
2814 (record_btrace_prepare_to_generate_core)
2815 (record_btrace_done_generating_core): New.
2816 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2817 (record_btrace_store_registers, record_btrace_prepare_to_store):
2818 Forward request when generating a core file.
2819 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2820 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2821 to_done_generating_core.
2822
5fff78c4
MM
28232014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2824
2825 * target.h (target_ops) <to_prepare_to_generate_core>
2826 <to_done_generating_core>: New.
2827 (target_prepare_to_generate_core, target_done_generating_core): New.
2828 * target.c (target_prepare_to_generate_core)
2829 (target_done_generating_core): New.
2830 * target-delegates.c: Regenerate.
2831 * gcore.c: (write_gcore_file): Rename to ...
2832 (write_gcore_file_1): ...this.
2833 (write_gcore_file): Call target_prepare_to_generate_core
2834 and target_done_generating_core.
2835
1d1f1ccb
MM
28362014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2837
2838 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2839 * gcore.c (write_gcore_file): Free memory returned from
2840 make_corefile_notes.
2841 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2842 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2843
3343ef86
YQ
28442014-06-24 Yao Qi <yao@codesourcery.com>
2845
2846 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2847 (arm_linux_init_abi): Set skip_trampoline_code with
2848 gdbarch_skip_trampoline_code instead of
2849 find_solib_trampoline_target.
2850
18d18ac8
YQ
28512014-06-24 Yao Qi <yao@codesourcery.com>
2852
2853 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2854 arm_skip_bx_reg returns non-zero.
2855
80d8d390
YQ
28562014-06-24 Yao Qi <yao@codesourcery.com>
2857
2858 * arm-tdep.c (arm_skip_bx_reg): New function.
2859 (arm_skip_stub): Call arm_skip_bx_reg.
2860
6a18a01c
DB
28612014-06-23 Don Breazeal <donb@codesourcery.com>
2862
2863 * MAINTAINERS: Add myself as write-after-approval maintainer.
2864
8e9db26e
PA
28652014-06-23 Pedro Alves <palves@redhat.com>
2866
2867 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2868 DR_CONTROL before setting DR0..DR3.
2869 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2870 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2871 bits of DR_CONTROL related to the debug register slot being
2872 disabled. If all slots are vacant, clear local slowdown as well,
2873 and assert DR_CONTROL is 0.
2874
70afc5b7
SC
28752014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2876
2877 * python/lib/gdb/command/xmethods.py
2878 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2879 current progspace only if the string "progspace" matches LOCUS_RE.
2880
840ed64d
JK
28812014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2882
2883 Fix --with-system-readline with readline-6.3 patch 5.
2884 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2885 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2886 types.
2887
26f2dc30
TT
28882014-06-20 Tom Tromey <tromey@redhat.com>
2889
2890 * dwarf2read.c (dw2_get_real_path): Use correct type in
2891 OBSTACK_CALLOC.
2892 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2893
125f8a3d
GB
28942014-06-20 Gary Benson <gbenson@redhat.com>
2895
2896 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2897 * common/glibc_thread_db.h: Likewise.
2898 * common/i386-cpuid.h: Likewise.
2899 * common/i386-gcc-cpuid.h: Likewise.
2900 * common/linux-btrace.h: Likewise.
2901 * common/linux-osdata.h: Likewise.
2902 * common/linux-procfs.h: Likewise.
2903 * common/linux-ptrace.h: Likewise.
2904 * common/mips-linux-watch.h: Likewise.
2905 * common/linux-btrace.c: Moved to nat.
2906 * common/linux-osdata.c: Likewise.
2907 * common/linux-procfs.c: Likewise.
2908 * common/linux-ptrace.c: Likewise.
2909 * common/mips-linux-watch.c: Likewise.
2910 * nat/gdb_thread_db.h: Moved from common.
2911 * nat/glibc_thread_db.h: Likewise.
2912 * nat/i386-cpuid.h: Likewise.
2913 * nat/i386-gcc-cpuid.h: Likewise.
2914 * nat/linux-btrace.c: Likewise.
2915 * nat/linux-btrace.h: Likewise.
2916 * nat/linux-osdata.c: Likewise.
2917 * nat/linux-osdata.h: Likewise.
2918 * nat/linux-procfs.c: Likewise.
2919 * nat/linux-procfs.h: Likewise.
2920 * nat/linux-ptrace.c: Likewise.
2921 * nat/linux-ptrace.h: Likewise.
2922 * nat/mips-linux-watch.c: Likewise.
2923 * nat/mips-linux-watch.h: Likewise.
2924 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2925 (object file files): Reordered.
2926 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2927 of glibc_thread_db.h.
2928
42995dbd
GB
29292014-06-20 Gary Benson <gbenson@redhat.com>
2930
2931 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2932 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2933 (i386_dr_low): Likewise.
2934 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2935 (i386_dr_low_set_addr): Likewise.
2936 (i386_dr_low_get_addr): Likewise.
2937 (i386_dr_low_can_set_control): Likewise.
2938 (i386_dr_low_set_control): Likewise.
2939 (i386_dr_low_get_control): Likewise.
2940 (i386_dr_low_get_status): Likewise.
2941 (i386_get_debug_register_length): Likewise.
2942 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2943 (i386_dr_low): Likewise.
2944 * nat/i386-dregs.c (i386-low.h): Remove include.
2945 (i386-nat.h): Likewise.
2946 (nat/i386-dregs.h): New include.
2947 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2948 (i386_dr_low_set_addr): Likewise.
2949 (i386_dr_low_get_addr): Likewise.
2950 (i386_dr_low_can_set_control): Likewise.
2951 (i386_dr_low_set_control): Likewise.
2952 (i386_dr_low_get_control): Likewise.
2953 (i386_dr_low_get_status): Likewise.
2954 (i386_get_debug_register_length): Likewise.
2955 (debug_hw_points): Likewise.
2956
3ed9baed
IB
29572014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2958
2959 * Makefile.in (SFILES): Add d-exp.y.
2960 (YYFILES): Add d-exp.c.
2961 (YYOBJ): Add d-exp.o.
2962 (local-maintainer-clean): Delete d-exp.c.
2963 * d-exp.y: New file.
2964 * d-lang.h (d_parse): New declaration.
2965 (d_error): New declaration.
2966 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2967 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2968 PREC_ORDER operators.
2969 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2970
78c164b0
YQ
29712014-06-19 Yao Qi <yao@codesourcery.com>
2972
2973 * gdbthread.h (any_running): Remove the declaration.
2974 * thread.c (any_running): Remove.
2975
f6e29b6e
YQ
29762014-06-19 Yao Qi <yao@codesourcery.com>
2977
2978 * gdbthread.h (struct thread_info) <state>: Change its type to
2979 'enum thread_state'. Update comments.
2980
034f788c
PA
29812014-06-19 Pedro Alves <palves@redhat.com>
2982
2983 * gdbthread.h (ALL_THREADS): Delete.
2984 (ALL_NON_EXITED_THREADS): New macro.
2985 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2986 instead of ALL_THREADS.
2987 * infrun.c (find_thread_needs_step_over)
2988 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2989 instead of ALL_THREADS.
2990 * record-btrace.c (record_btrace_open)
2991 (record_btrace_stop_recording, record_btrace_close)
2992 (record_btrace_is_replaying, record_btrace_resume)
2993 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2994 * remote.c (append_pending_thread_resumptions): Likewise.
2995 * thread.c (thread_apply_all_command): Likewise.
2996
46e33252
GB
29972014-06-19 Gary Benson <gbenson@redhat.com>
2998
2999 * i386-nat.c (i386_stopped_by_watchpoint):
3000 Use i386_dr_stopped_by_watchpoint.
3001 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
3002 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
3003
3a8ee006
GB
30042014-06-19 Gary Benson <gbenson@redhat.com>
3005
3006 * nat/i386-dregs.c: New file.
3007 * Makefile.in (i386-dregs.o): New rule.
3008 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
3009 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
3010 * config/i386/darwin.mh (NATDEPFILES): Likewise.
3011 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
3012 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
3013 * config/i386/go32.mh (NATDEPFILES): Likewise.
3014 * config/i386/linux.mh (NATDEPFILES): Likewise.
3015 * config/i386/linux64.mh (NATDEPFILES): Likewise.
3016 * config/i386/mingw.mh (NATDEPFILES): Likewise.
3017 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3018 * i386-nat.h (debug_hw_points): New declaration.
3019 * i386-nat.c (breakpoint.h): Remove include.
3020 (command.h): Likewise.
3021 (target.h): Likewise.
3022 (gdb_assert.h): Likewise.
3023 (debug_hw_points): Made nonstatic.
3024 (debug_printf): Now in i386-dregs.c.
3025 (TARGET_HAS_DR_LEN_8): Likewise.
3026 (DR_CONTROL_SHIFT): Likewise.
3027 (DR_CONTROL_SIZE): Likewise.
3028 (DR_RW_EXECUTE): Likewise.
3029 (DR_RW_WRITE): Likewise.
3030 (DR_RW_READ): Likewise.
3031 (DR_RW_IORW): Likewise.
3032 (DR_LEN_1): Likewise.
3033 (DR_LEN_2): Likewise.
3034 (DR_LEN_4): Likewise.
3035 (DR_LEN_8): Likewise.
3036 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3037 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3038 (DR_ENABLE_SIZE): Likewise.
3039 (DR_LOCAL_SLOWDOWN): Likewise.
3040 (DR_GLOBAL_SLOWDOWN): Likewise.
3041 (DR_CONTROL_RESERVED): Likewise.
3042 (I386_DR_CONTROL_MASK): Likewise.
3043 (I386_DR_VACANT): Likewise.
3044 (I386_DR_LOCAL_ENABLE): Likewise.
3045 (I386_DR_GLOBAL_ENABLE): Likewise.
3046 (I386_DR_DISABLE): Likewise.
3047 (I386_DR_SET_RW_LEN): Likewise.
3048 (I386_DR_GET_RW_LEN): Likewise.
3049 (I386_DR_WATCH_HIT): Likewise.
3050 (i386_wp_op_t): Likewise.
3051 (i386_show_dr): Likewise.
3052 (i386_length_and_rw_bits): Likewise.
3053 (i386_insert_aligned_watchpoint): Likewise.
3054 (i386_remove_aligned_watchpoint): Likewise.
3055 (i386_handle_nonaligned_watchpoint): Likewise.
3056 (i386_update_inferior_debug_regs): Likewise.
3057 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3058 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3059 (i386_region_ok_for_watchpoint):
3060 Use i386_dr_region_ok_for_watchpoint.
3061 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3062
322a8e06
GB
30632014-06-19 Gary Benson <gbenson@redhat.com>
3064
3065 * i386-nat.c (i386_insert_hw_breakpoint): Use
3066 i386_insert_watchpoint.
3067 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3068
8f26655c
GB
30692014-06-19 Gary Benson <gbenson@redhat.com>
3070
3071 * i386-nat.c (i386_dr_show): Renamed to
3072 i386_show_dr and made static. All uses updated.
3073 (i386_dr_length_and_rw_bits): Renamed to
3074 i386_length_and_rw_bits and made static.
3075 All uses updated.
3076 (i386_dr_insert_aligned_watchpoint): Renamed to
3077 i386_insert_aligned_watchpoint and made static.
3078 All uses updated.
3079 (i386_dr_remove_aligned_watchpoint): Renamed to
3080 i386_remove_aligned_watchpoint and made static.
3081 All uses updated.
3082 (i386_dr_update_inferior_debug_regs): Renamed to
3083 i386_update_inferior_debug_regs and made static.
3084 All uses updated.
3085 * nat/i386-dregs.h (i386_dr_show): Removed.
3086 (i386_dr_length_and_rw_bits): Likewise.
3087 (i386_dr_insert_aligned_watchpoint): Likewise.
3088 (i386_dr_remove_aligned_watchpoint): Likewise.
3089 (i386_dr_update_inferior_debug_regs): Likewise.
3090
992c7d70
GB
30912014-06-19 Gary Benson <gbenson@redhat.com>
3092
3093 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3094 * configure: Regenerate.
3095 * config.in: Likewise.
3096 * main.c (signal.h): New include.
3097 (setup_alternate_signal_stack): New function.
3098 (captured_main): Call the above.
3099 * cp-support.c (signal.h): New include.
3100 (catch_demangler_crashes): New flag.
3101 (SIGJMP_BUF): New define.
3102 (SIGSETJMP): Likewise.
3103 (SIGLONGJMP): Likewise.
3104 (gdb_demangle_jmp_buf): New static global.
3105 (gdb_demangle_attempt_core_dump): Likewise.
3106 (gdb_demangle_signal_handler): New function.
3107 (gdb_demangle): If catch_demangler_crashes is set, install the
3108 above signal handler before calling bfd_demangle, and restore
3109 the original signal handler afterwards. Display the offending
3110 symbol and call demangler_warning the first time a segmentation
3111 fault is caught.
3112 (_initialize_cp_support): New maint set/show command.
3113
eae7090b
GB
31142014-06-19 Gary Benson <gbenson@redhat.com>
3115
3116 * utils.h (resource_limit_kind): New enum.
3117 (can_dump_core): New declaration.
3118 (warn_cant_dump_core): Likewise.
3119 (dump_core): Likewise.
3120 * utils.c (dump_core): Made nonstatic. Added new
3121 parameter "limit_kind".
3122 (can_dump_core): Made nonstatic. Moved printing code to...
3123 (warn_cant_dump_core): New function.
3124 (can_dump_core_warn): Likewise.
3125 (internal_vproblem): Replace calls to can_dump_core with
3126 calls to can_dump_core_warn. Supply new argument to each.
3127
57fcfb1b
GB
31282014-06-19 Gary Benson <gbenson@redhat.com>
3129
3130 * utils.h (demangler_vwarning): New declaration.
3131 (demangler_warning): Likewise.
3132 * utils.c (struct internal_problem)
3133 <user_settable_should_quit>: New field.
3134 <user_settable_should_dump_core>: Likewise
3135 (internal_error_problem): Add values for above new fields.
3136 (internal_warning_problem): Likewise.
3137 (demangler_warning_problem): New static global.
3138 (demangler_vwarning): New function.
3139 (demangler_warning): Likewise.
3140 (add_internal_problem_command): Selectively add commands.
3141 (_initialize_utils): New internal problem command.
3142 * maint.c (maintenance_demangler_warning): New function.
3143 (_initialize_maint_cmds): New command.
3144
17a40b44
TT
31452014-06-18 Tom Tromey <tromey@redhat.com>
3146
3147 * f-valprint.c (info_common_command_for_block): Update.
3148 * symtab.h (struct general_symbol_info) <common_block>: Now
3149 const.
3150
346d1dfe
TT
31512014-06-18 Tom Tromey <tromey@redhat.com>
3152
3153 * symtab.h (struct symtab) <blockvector>: Now const.
3154 * ada-lang.c (ada_add_global_exceptions): Update.
3155 * buildsym.c (augment_type_symtab): Update.
3156 * dwarf2read.c (dw2_lookup_symbol): Update.
3157 * jit.c (finalize_symtab): Update.
3158 * jv-lang.c (add_class_symtab_symbol): Update.
3159 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3160 Update.
3161 * objfiles.c (objfile_relocate1): Update.
3162 * psymtab.c (lookup_symbol_aux_psymtabs)
3163 (maintenance_check_psymtabs): Update.
3164 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3165 Update.
3166 * spu-tdep.c (spu_catch_start): Update.
3167 * symmisc.c (dump_symtab_1): Update.
3168 * symtab.c (lookup_global_symbol_from_objfile)
3169 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3170 (basic_lookup_transparent_type_quick)
3171 (basic_lookup_transparent_type, find_pc_sect_symtab)
3172 (find_pc_sect_line, search_symbols): Update.
3173 * block.c (find_block_in_blockvector): Make "bl" const.
3174 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3175 const.
3176 (blockvector_contains_pc): Make "bv" const.
3177 (block_for_pc_sect): Update.
3178 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3179 (blockvector_contains_pc): Update.
3180 * breakpoint.c (resolve_sal_pc): Update.
3181 * inline-frame.c (block_starting_point_at): Update.
3182
1834676b
TT
31832014-06-18 Tom Tromey <tromey@redhat.com>
3184
3185 * completer.c (complete_line): Make "line_buffer" const.
3186 * completer.h (complete_line): Update.
3187
ac1a991b
TT
31882014-06-18 Tom Tromey <tromey@redhat.com>
3189
3190 * symtab.c (add_macro_name): Remove unneeded cast.
3191
5bc98e52
TT
31922014-06-18 Tom Tromey <tromey@redhat.com>
3193
3194 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3195 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3196
8236def8
TT
31972014-06-18 Tom Tromey <tromey@redhat.com>
3198
3199 * probe.c (info_probes_for_ops): Make "arg" const.
3200 * probe.h (info_probes_for_ops): Update.
3201
3977b71f
TT
32022014-06-18 Tom Tromey <tromey@redhat.com>
3203
3204 * varobj.c (varobj_create): Update.
3205 * valops.c (value_of_this): Update.
3206 * tracepoint.c (add_local_symbols, scope_info): Update.
3207 * symtab.h (struct general_symbol_info) <block>: Now const.
3208 * symtab.c (skip_prologue_sal)
3209 (default_make_symbol_completion_list_break_on)
3210 (skip_prologue_using_sal): Update.
3211 * stack.h (iterate_over_block_locals)
3212 (iterate_over_block_local_vars): Update.
3213 * stack.c (print_frame_args): Update.
3214 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3215 parameter const.
3216 (get_selected_block): Make return type const.
3217 * python/py-frame.c (frapy_block): Update.
3218 * python/py-block.c (gdbpy_block_for_pc): Update.
3219 * p-exp.y (%union) <bval>: Now const.
3220 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3221 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3222 * m2-exp.y (%union) <bval>: Now const.
3223 * linespec.c (get_current_search_block): Make return type const.
3224 (create_sals_line_offset, find_label_symbols): Update.
3225 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3226 Update.
3227 (block_starting_point_at): Make "block" const.
3228 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3229 (check_exception_resume): Update.
3230 * guile/scm-frame.c (gdbscm_frame_block): Update.
3231 * guile/scm-block.c (gdbscm_lookup_block): Update.
3232 * frame.h (get_frame_block): Update.
3233 (get_selected_block): Make return type const.
3234 * frame.c (frame_id_inner): Update.
3235 * f-valprint.c (info_common_command_for_block)
3236 (info_common_command): Update.
3237 * dwarf2loc.c (dwarf2_find_location_expression)
3238 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3239 (locexpr_describe_location_piece): Update.
3240 * c-exp.y (%union) <bval>: Now const.
3241 * breakpoint.c (resolve_sal_pc): Update.
3242 * blockframe.c (get_frame_block):Make return type const.
3243 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3244 (block_innermost_frame): Update.
3245 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3246 (block_for_pc, block_for_pc_sect): Update.
3247 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3248 'pblock' const.
3249 (block_for_pc_sect, block_for_pc): Make return type const.
3250 * ax-gdb.c (gen_expr): Update.
3251 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3252 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3253 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3254 (ada_read_var_value): Update.
3255 * ada-exp.y (struct name_info) <block>: Now const.
3256 (%union): Likewise.
3257 (block_lookup): Constify.
3258
b9228891
GB
32592014-06-18 Gary Benson <gbenson@redhat.com>
3260
3261 * nat/i386-dregs.h: New file.
3262 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3263 * i386-nat.h (i386-dregs.h): New include.
3264 (DR_FIRSTADDR): Now in i386-dregs.h.
3265 (DR_LASTADDR): Likewise.
3266 (DR_NADDR): Likewise.
3267 (DR_STATUS): Likewise.
3268 (DR_CONTROL): Likewise.
3269 (i386_debug_reg_state): Likewise.
3270 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3271
a1aa2221
LM
32722014-06-18 Don Breazeal <donb@codesourcery.com>
3273
3274 * breakpoint.c (set_longjmp_breakpoint): Call
3275 momentary_breakpoint_from_master with additional argument.
3276 (set_longjmp_breakpoint_for_call_dummy): Call
3277 momentary_breakpoint_from_master with additional argument.
3278 (set_std_terminate_breakpoint): Call
3279 momentary_breakpoint_from_master with additional argument.
3280 (momentary_breakpoint_from_master): Add argument to function
3281 definition and use it to initialize structure member flag.
74228e77 3282 (clone_momentary_breakpoint): Call
a1aa2221
LM
3283 momentary_breakpoint_from_master with additional argument.
3284 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3285 member flags set in momentary_breakpoint_from_master.
3286
4be83cc2
GB
32872014-06-18 Gary Benson <gbenson@redhat.com>
3288
3289 * i386-nat.c (i386_show_dr): Renamed to
3290 i386_dr_show and made nonstatic. All uses updated.
3291 (i386_length_and_rw_bits): Renamed to
3292 i386_dr_length_and_rw_bits and made nonstatic.
3293 All uses updated.
3294 (i386_insert_aligned_watchpoint): Renamed to
3295 i386_dr_insert_aligned_watchpoint and made nonstatic.
3296 All uses updated.
3297 (i386_remove_aligned_watchpoint): Renamed to
3298 i386_dr_remove_aligned_watchpoint and made nonstatic.
3299 All uses updated.
3300 (i386_update_inferior_debug_regs): Renamed to
3301 i386_dr_update_inferior_debug_regs and made nonstatic.
3302 All uses updated.
3303
131aa0d4
GB
33042014-06-18 Gary Benson <gbenson@redhat.com>
3305
3306 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3307 (i386_dr_low_can_set_control): Likewise.
3308 (i386_dr_low_set_addr): Likewise.
3309 (i386_dr_low_set_control): Likewise.
3310 (i386_dr_low_get_addr): Likewise.
3311 (i386_dr_low_get_status): Likewise.
3312 (i386_dr_low_get_control): Likewise.
3313 (i386_insert_aligned_watchpoint): Use new macros.
3314 (i386_update_inferior_debug_regs): Likewise.
3315 (i386_stopped_data_address): Likewise.
3316
d9305f7f
GB
33172014-06-18 Gary Benson <gbenson@redhat.com>
3318
3319 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3320 New parameter. All uses updated.
3321
ea008da4
GB
33222014-06-18 Gary Benson <gbenson@redhat.com>
3323
3324 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3325 All uses updated.
3326
1b6d4134
GB
33272014-06-18 Gary Benson <gbenson@redhat.com>
3328
3329 * i386-nat.c (debug_printf): New macro.
3330 (i386_get_debug_register_length): Likewise.
3331 (TARGET_HAS_DR_LEN_8): Use above macro.
3332 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3333 and printf_unfiltered. Use phex to format values.
3334
9b4550ef
GB
33352014-06-18 Gary Benson <gbenson@redhat.com>
3336
3337 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3338 Make const.
3339
6e62758f
GB
33402014-06-18 Gary Benson <gbenson@redhat.com>
3341
3342 * i386-nat.c: Comment changes.
3343
51c79e94
GB
33442014-06-18 Gary Benson <gbenson@redhat.com>
3345
3346 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3347
3e11889a
GB
33482014-06-18 Gary Benson <gbenson@redhat.com>
3349
3350 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3351 (i386_insert_aligned_watchpoint): Likewise.
3352 (i386_remove_aligned_watchpoint): Likewise.
3353 (i386_handle_nonaligned_watchpoint): Likewise.
3354
fc6e2f03
GB
33552014-06-18 Gary Benson <gbenson@redhat.com>
3356
3357 * i386-nat.c: Whitespace changes.
3358
2afe7d50
SB
33592014-06-17 Samuel Bronson <naesten@gmail.com>
3360
3361 * MAINTAINERS: Update Roland McGrath's email address.
3362 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3363 Red Hat a while ago, and giving me a current address.
2afe7d50 3364
3bca49ee
TT
33652014-06-17 Tom Tromey <tromey@redhat.com>
3366
3367 * utils.h (savestring): Remove declaration.
3368
6e366df1
TT
33692014-06-17 Tom Tromey <tromey@redhat.com>
3370
3371 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3372
6be47f0c
KS
33732014-06-16 Keith Seitz <keiths@redhat.com>
3374
3375 PR mi/15863
3376 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3377 to update the varobj if inferior_ptid is null_ptid.
3378
7bc112c1
TT
33792014-06-16 Tom Tromey <tromey@redhat.com>
3380
3381 * target.h (struct target_ops) <to_info_proc>: Make parameter
3382 const.
3383 (target_info_proc): Update.
3384 * target.c (target_info_proc): Make "args" const.
3385 * procfs.c (procfs_info_proc): Update.
3386 * linux-tdep.c (linux_info_proc): Update.
3387 (linux_core_info_proc_mappings): Make "args" const.
3388 (linux_core_info_proc): Update.
3389 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3390 * gdbarch.c: Rebuild.
3391 * gdbarch.h: Rebuild.
3392 * corelow.c (core_info_proc): Update.
3393
fee354ee
TT
33942014-06-16 Tom Tromey <tromey@redhat.com>
3395
3396 * target.h (struct target_ops) <to_disconnect>: Make parameter
3397 const.
3398 (target_disconnect): Update.
3399 * target.c (target_disconnect): Make "args" const.
3400 * target-delegates.c: Rebuild.
3401 * remote.c (remote_disconnect): Update.
3402 * record.h (record_disconnect): Update.
3403 * record.c (record_disconnect): Update.
3404 * inf-child.c (inf_child_disconnect): Update.
3405
a30bf1f1
TT
34062014-06-16 Tom Tromey <tromey@redhat.com>
3407
3408 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3409 * target.c (debug_to_rcmd, default_rcmd): Update.
3410 * target-delegates.c: Rebuild.
3411 * remote.c (remote_rcmd): Update.
3412 * monitor.c (monitor_rcmd): Update.
3413
d03de421
PA
34142014-06-16 Pedro Alves <palves@redhat.com>
3415
3416 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3417 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3418 have OBJF_SHARED set.
3419 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3420 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3421 instead of OBJF_USERLOADED.
3422 * objfiles.h (OBJF_SHARED): Update comment.
3423 (userloaded_objfile_contains_address_p): Rename to ...
3424 (shared_objfile_contains_address_p): ... this, and update
3425 comments.
3426 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3427 new objfile.
3428 (remove_symbol_file_command): Skip objfiles that don't have
3429 OBJF_SHARED set.
3430
99f4262f
TT
34312014-06-16 Tom Tromey <tromey@redhat.com>
3432
3433 * minsyms.h (prim_record_minimal_symbol)
3434 (prim_record_minimal_symbol_and_info): Update comments.
3435
97d66cc6
EZ
34362014-06-14 Eli Zaretskii <eliz@gnu.org>
3437
3438 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3439 or --without-guile, according to how GDB was built.
3440
635c7e8a
TT
34412014-06-13 Tom Tromey <tromey@redhat.com>
3442
3443 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3444 to help_list.
3445 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3446 to help_list.
3447 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3448 help_list.
3449 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3450 help_list.Pass all_commands, not -1, to help_list.
3451 * cli/cli-dump.c (dump_command, append_command)
3452 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3453 (binary_dump_command, binary_append_command): Pass all_commands,
3454 not -1, to help_list.
3455 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3456 -1, to help_list.
3457 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3458 -1, to help_list.
3459 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3460 help_list.
3461 * top.c (set_history): Pass all_commands, not -1, to help_list.
3462 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3463 all_commands, not -1, to help_list.
3464 * symfile.c (overlay_command): Pass all_commands, not -1, to
3465 help_list.
3466 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3467 help_list.
3468 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3469 help_list.
3470 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3471 -1, to help_list.
3472 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3473 not -1, to help_list.
3474 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3475 not -1, to help_list.
3476 * maint.c (maintenance_command, maintenance_info_command)
3477 (maintenance_print_command, maintenance_set_cmd): Pass
3478 all_commands, not -1, to help_list.
3479 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3480 help_list.
3481 * language.c (set_check): Pass all_commands, not -1, to help_list.
3482 * infcmd.c (unset_command): Pass all_commands, not -1, to
3483 help_list.
3484 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3485 help_list.
3486 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3487 help_list.
3488 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3489 help_list.
3490 * breakpoint.c (save_command): Pass all_commands, not -1, to
3491 help_list.
3492 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3493 all_commands, not -1, to help_list.
3494
b94ade42
PL
34952014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3496
3497 * regcache.c (struct register_to_invalidate): New structure.
3498 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3499 functions.
3500 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3501
31f628ae
YQ
35022014-06-12 Yao Qi <yao@codesourcery.com>
3503
3504 * varobj.c (varobj_get_num_children): Call
3505 varobj_is_dynamic_p.
3506 (varobj_list_children): Likewise.
3507 (varobj_update): Likewise. Update comments.
3508
cde5ef40
YQ
35092014-06-12 Yao Qi <yao@codesourcery.com>
3510
3511 * varobj.c (varobj_pretty_printed_p): Rename to ...
3512 (varobj_is_dynamic_p): ... this. New function.
3513 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3514 (varobj_is_dynamic_p): Declare.
3515 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3516 (mi_print_value_p, varobj_update_one): Likewise.
3517
576ea091
YQ
35182014-06-12 Pedro Alves <pedro@codesourcery.com>
3519 Yao Qi <yao@codesourcery.com>
3520
3521 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3522 (varobj_get_iterator): Wrap up code for pretty-printer by
3523 "#if HAVE_PYTHON" and "#endif".
3524 (update_dynamic_varobj_children): Likewise.
3525
827f100c
YQ
35262014-06-12 Pedro Alves <pedro@codesourcery.com>
3527 Yao Qi <yao@codesourcery.com>
3528
3529 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3530 gdb_python_initialized is false. Move some code from varobj.c.
3531 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3532 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3533 (struct varobj_item): Moved to varobj-iter.h".
3534 (varobj_clear_saved_item): New function.
3535 (update_dynamic_varobj_children): Move python-related code to
3536 py-varobj.c.
3537 (free_variable): Call varobj_clear_saved_item and
3538 varobj_iter_delete.
3539
e5250216
YQ
35402014-06-12 Pedro Alves <pedro@codesourcery.com>
3541 Yao Qi <yao@codesourcery.com>
3542
3543 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3544 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3545 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3546 (py-varobj.o): New rule.
3547 * python/py-varobj.c: New file.
3548 * python/python-internal.h (py_varobj_get_iterator): Declare.
3549 * varobj-iter.h: New file.
3550 * varobj.c: Include "varobj-iter.h"
3551 (struct varobj) <child_iter>: Change its type from "PyObject *"
3552 to "struct varobj_iter *".
3553 <saved_item>: Likewise.
3554 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3555 [HAVE_PYTHON] (varobj_get_iterator): New function.
3556 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3557 python-specific code to python/py-varobj.c.
3558 (install_visualizer): Call varobj_iter_delete instead of
3559 Py_XDECREF.
3560 * varobj.h (varobj_ensure_python_env): Declare.
3561
5a2e0d6e
YQ
35622014-06-12 Yao Qi <yao@codesourcery.com>
3563
3564 * varobj.c (struct varobj_item): New structure.
3565 (create_child_with_value): Update declaration.
3566 (varobj_add_child): Replace arguments 'name' and 'value' with
3567 'item'. All callers updated.
3568 (install_dynamic_child): Likewise.
3569 (update_dynamic_varobj_children): Likewise.
3570 (varobj_add_child): Likewise.
3571 (create_child_with_value): Likewise.
3572
919b9a93
JB
35732014-06-11 Joel Brobecker <brobecker@adacore.com>
3574
3575 * NEWS: Create a new section for the next release branch.
3576 Rename the section of the current branch, now that it has
3577 been cut.
3578
71a55bdf
JB
35792014-06-11 Joel Brobecker <brobecker@adacore.com>
3580
3581 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3582 * version.in: Bump version to 7.8.50.DATE-cvs.
3583
364fe1f7
PA
35842014-06-11 Pedro Alves <palves@redhat.com>
3585
3586 PR remote/17028
3587 * ser-mingw.c (net_windows_socket_check_pending): New function.
3588 (net_windows_select_thread): Ignore spurious wakeups. Use
3589 net_windows_socket_check_pending.
3590 (net_windows_wait_handle): Check for pending events with
3591 ioctlsocket, through net_windows_socket_check_pending, instead of
3592 checking the socket's event.
3593
5a6c7709
SC
35942014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3595
3596 * python/python-internal.h (gdb_PyObject_GetAttrString)
3597 (gdb_PyObject_HasAttrString): New inline function definitions.
3598 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3599 char * of the second argument to PyObject_GetAttrString.
74228e77 3600
0e58ee40
JB
36012014-06-10 Joel Brobecker <brobecker@adacore.com>
3602
3603 * serial.c (serial_write): Fix index of character to be printed
3604 in call to serial_logchar when serial debug traces are enabled.
3605
d190df30
JB
36062014-06-10 Joel Brobecker <brobecker@adacore.com>
3607
3608 * gdbtypes (resolve_dynamic_range): Add function description.
3609
b4b01d36
PA
36102014-06-09 Pedro Alves <palves@redhat.com>
3611
3612 * linux-nat.c (linux_child_follow_fork): Initialize status with
3613 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3614 inner block. Only pass the signal to PTRACE_DETACH if in pass
3615 state.
3616
3657956b
GB
36172014-06-09 Gary Benson <gbenson@redhat.com>
3618
3619 * common/signals.c (gdb_signal_from_host): Reorder to separate
3620 the always-available ANSI-standard signals from the signals that
3621 require checking.
3622 (do_gdb_signal_to_host): Likewise.
3623 * proc-events.c (signal_table): Likewise.
3624
c077881a
HZ
36252014-06-08 Hui Zhu <hui@codesourcery.com>
3626
3627 * common/linux-ptrace.c (linux_disable_event_reporting): New
3628 function.
3629 * common/linux-ptrace.h (linux_disable_event_reporting): New
3630 declaration.
3631 * linux-nat.c (linux_child_follow_fork): Do a single step before
3632 detach.
3633
4186eb54
KS
36342014-06-07 Keith Seitz <keiths@redhat.com>
3635
3636 Revert:
3637 PR c++/16253
3638 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3639 from symbol_matches_domain in symtab.c. All local callers
3640 of symbol_matches_domain updated.
3641 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3642 search STRUCT_DOMAIN.
3643 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3644 independently. standard_lookup will do that automatically.
3645 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3646 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3647 (cp_lookup_symbol_in_namespace): Likewise.
3648 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3649 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3650 may return a STRUCT_DOMAIN match.
3651 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3652 * cp-support.c: Include language.h.
3653 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3654 VAR_DOMAIN.
3655 * psymtab.c (match_partial_symbol): Compare the requested
3656 domain with the symbol's domain directly.
3657 (lookup_partial_symbol): Likewise.
3658 * symtab.c (lookup_symbol_in_language): Explain when/why
3659 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3660 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3661 appropriate languages.
3662 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3663 and moved to ada-lang.c
3664 (lookup_block_symbol): Explain that this function only returns
3665 symbol matching the requested DOMAIN.
3666 Compare the requested domain with the symbol's domain directly.
3667 (iterate_over_symbols): Compare the requested domain with the
3668 symbol's domain directly.
3669 * symtab.h (symbol_matches_domain): Remove.
3670
25326a28 36712014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3672
3673 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3674 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3675 (gdbscm_guile_version_is_at_least): Declare.
3676 (gdbscm_scm_string_to_int): Declare.
3677 * guile/guile.c (gdbscm_guile_major_version): New global.
3678 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3679 (guile_datadir): New static global.
3680 (gdbscm_guile_data_directory): New function.
3681 (initialize_scheme_side): Update.
3682 (misc_guile_functions): Add guile-data-directory.
3683 (initialize_gdb_module): Fetch guile version number.
3684 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3685 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3686 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3687 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3688 comments.
3689 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3690 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3691 * guile/scm-value.c (gdbscm_value_to_string): Only call
3692 scm_port_conversion_strategy if Guile version >= 2.0.6.
3693
0a770bb2 36942014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3695
3696 * main.c (print_gdb_help): Add -q and --silent.
3697
73ba372c
GB
36982014-06-06 Gary Benson <gbenson@redhat.com>
3699
3700 * common/signals.c: Remove preprocessor conditionals for
3701 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3702 SIGSEGV and SIGTERM.
3703 * proc-events.c: Likewise.
3704
c33b2f12
MM
37052014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3706
3707 * symfile.c (symfile_free_objfile): Remove restriction to
3708 OBJF_USERLOADED.
3709 * symfile-mem.c (symbol_file_add_from_memory): Call
3710 add_target_sections_of_objfile.
3711
fb934770
LC
37122014-06-05 Ludovic Courtès <ludo@gnu.org>
3713
3714 * guile/scm-value.c (gdbscm_history_append_x): Use
3715 'vlscm_get_value_smob_arg_unsafe' instead of
3716 'vlscm_scm_to_value'.
3717
6ef284bd
SM
37182014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3719
3720 PR mi/15806
3721 * utils.c (printchar): Don't escape at all if quoter is NUL.
3722 Update function documentation to clarify effect of parameter
3723 QUOTER.
3724 * remote.c (escape_buffer): Pass '\\' as the quoter to
3725 fputstrn_unfiltered.
3726 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3727 generate the output.
3728 (mi_solib_unloaded): Same.
3729
270c9937
JB
37302014-06-05 Joel Brobecker <brobecker@adacore.com>
3731
3732 * development.sh: Delete.
3733 * Makefile.in (config.status): Adjust dependency on development.sh.
3734 * configure.ac: Adjust development.sh source call.
3735 * configure: Regenerate.
3736
16f691fb
DE
37372014-06-04 Doug Evans <xdje42@gmail.com>
3738
3739 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3740 is_scheme_bkpt, spec.
3741 (bpscm_make_breakpoint_smob): Initialize new members.
3742 (gdbscm_create_breakpoint_x): Split into two ...
3743 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3744 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3745 (scheme_function breakpoint_functions): Update.
3746 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3747 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3748 register-breakpoint!.
3749
ef7cab6b
JB
37502014-06-04 Joel Brobecker <brobecker@adacorer.com>
3751
3752 PR server/17023
3753 * mem-break.c (z_type_supported): Return zero if
3754 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3755
012370f6
TT
37562014-06-04 Tom Tromey <tromey@redhat.com>
3757
3758 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3759 value_from_contents_and_address_unresolved.
3760 (ada_template_to_fixed_record_type_1): Likewise.
3761 (ada_which_variant_applies): Likewise.
3762 * value.h (value_from_contents_and_address_unresolved): Declare.
3763 * value.c (value_from_contents_and_address_unresolved): New
3764 function.
3765 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3766 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3767 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3768
92e2a17f
TT
37692014-06-04 Tom Tromey <tromey@redhat.com>
3770
3771 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3772
c0939df1
TT
37732014-06-04 Tom Tromey <tromey@redhat.com>
3774
3775 * procfs.c (procfs_attach): Make "args" const.
3776 * windows-nat.c (windows_attach): Make "args" const.
3777 * nto-procfs.c (procfs_attach): Make "args" const.
3778 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3779 * go32-nat.c (go32_attach): Make "args" const.
3780 * gnu-nat.c (gnu_attach): Make "args" const.
3781 * darwin-nat.c (darwin_attach): Make "args" const.
3782 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3783 * linux-nat.c (linux_nat_attach): Make "args" const.
3784 * remote.c (extended_remote_attach_1, extended_remote_attach):
3785 Make "args" const.
3786 * target.h (struct target_ops) <to_attach>: Make "args" const.
3787 (find_default_attach): Likewise.
3788 * utils.c (parse_pid_to_attach): Make "args" const.
3789 * utils.h (parse_pid_to_attach): Update.
3790
8eaff7cd
TT
37912014-06-04 Tom Tromey <tromey@redhat.com>
3792
3793 * target-delegates.c: Rebuild.
3794 * target.c (default_thread_address_space): New function.
3795 (target_thread_address_space): Simplify.
3796 * target.h (struct target_ops) <to_thread_address_space>: Add
3797 TARGET_DEFAULT_FUNC.
3798
1913f160
DE
37992014-06-04 Doug Evans <xdje42@gmail.com>
3800
3801 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3802
70ad5bff
MM
38032014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3804
3805 * record-btrace.c: Include event-loop.h and inf-loop.h.
3806 (record_btrace_resume_exec_dir)
3807 (record_btrace_async_inferior_event_handler)
3808 (record_btrace_handle_async_inferior_event): New.
3809 (record_btrace_open): Create async event handler.
3810 (record_btrace_close): Delete async event handler.
3811 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3812 Mark async event handler.
3813 (record_btrace_execution_direction): New.
3814 (init_record_btrace_ops): Initialize to_execution_direction.
3815
b6210538
DE
38162014-06-03 Doug Evans <xdje42@gmail.com>
3817
3818 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3819 (gdbscm_make_parameter): Ditto.
3820
a5b1fd27
DE
38212014-06-03 Doug Evans <dje@google.com>
3822
3823 * exec.c (exec_close_1): Call clear_section_table instead of
3824 resize_section_table.
3825 (clear_section_table): New function.
3826 (resize_section_table): Make static. Rename arg num_added to
3827 adjustment.
3828 * exec.h (clear_section_table): Declare.
3829 (resize_section_table): Delete.
3830 * progspace.c (release_program_space): Call clear_section_table
3831 instead of resize_section_table.
3832
0c6e92a5
SC
38332014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3834
3835 * NEWS (Python Scripting): Add entry about the new xmethods
3836 feature.
3837
883964a7
SC
38382014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3839
3840 * python/py-xmethods.c: New file.
3841 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3842 (objfpy_dealloc): XDECREF on the new xmethods field.
3843 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3844 field.
3845 (objfpy_get_xmethods): New function.
3846 (objfile_getset): New entry 'xmethods'.
3847 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3848 (pspy_dealloc): XDECREF on the new xmethods field.
3849 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3850 field.
3851 (pspy_get_xmethods): New function.
3852 (pspace_getset): New entry 'xmethods'.
3853 * python/python-internal.h: Add declarations for new functions.
3854 * python/python.c (_initialize_python): Invoke
3855 gdbpy_initialize_xmethods.
3856 * python/lib/gdb/__init__.py (xmethods): New
3857 attribute.
3858 * python/lib/gdb/xmethod.py: New file.
3859 * python/lib/gdb/command/xmethods.py: New file.
3860
58992dc5
SC
38612014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3862
3863 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3864 best match method returned by find_overload_match is an xmethod.
3865 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3866 the best matching operator returned by find_overload_match is an
3867 xmethod.
3868 * valops.c: #include "extension.h".
3869 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3870 Return void. The list of matching source methods is returned in
3871 "fn_list" and a vector of matching debug method workers is
3872 returned in "xm_worker_vec". Update all callers.
3873 (value_find_oload_method_list): Likewise.
3874 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3875 non-NULL, then the index of the best matching method in this
3876 vector is returned. Update all callers.
3877 (find_overload_match): Include xmethods while performing overload
3878 resolution.
3879
e81e7f5e
SC
38802014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3881
3882 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3883 * extension-priv.h (struct extension_language_ops): Add the
3884 xmethod interface.
3885 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3886 get_matching_xmethod_workers, get_xmethod_argtypes,
3887 invoke_xmethod, free_xmethod_worker,
3888 free_xmethod_worker_vec): New functions.
3889 * extension.h: #include "common/vec.h".
3890 New function declarations.
3891 (struct xmethod_worker): New struct.
3892 (VEC (xmethod_worker_ptr)): New vector type.
3893 (xmethod_worker_ptr): New typedef.
3894 (xmethod_worker_vec): Likewise.
3895 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3896 builtin_type.
3897 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3898 (struct builtin_type): New field "xmethod".
3899 * valarith.c (value_ptradd): Assert that the value argument is not
3900 lval_xcallable.
3901 * valops.c (value_must_coerce_to_target): Return 0 for
3902 lval_xcallable values.
3903 * value.c (struct value): New field XM_WORKER in the field
3904 LOCATION.
3905 (value_address, value_raw_address): Return 0 for lval_xcallable
3906 values.
3907 (set_value_address): Assert that the value is not an
3908 lval_xcallable.
3909 (value_free): Free the associated xmethod worker when freeing
3910 lval_xcallable values.
3911 (set_value_component_location): Assert that the WHOLE value is not
3912 lval_xcallable.
3913 (value_of_xmethod, call_xmethod): New functions.
3914 * value.h: Declare "struct xmethod_worker".
3915 Declare new functions value_of_xmethod, call_xmethod.
3916
ef370185
JB
39172014-06-03 Joel Brobecker <brobecker@adacore.com>
3918 Pedro Alves <palves@redhat.com>
3919
3920 PR breakpoints/17000
3921 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3922 New function, extracted from software_breakpoint_inserted_here_p.
3923 (software_breakpoint_inserted_here_p): Replace factored out code
3924 by call to find_non_raw_software_breakpoint_inserted_here.
3925 (bp_target_info_copy_insertion_state): New function.
3926 (bkpt_insert_location): Handle the case of a single-step
3927 breakpoint already inserted at the same address.
3928 (bkpt_remove_location): Handle the case of a single-step
3929 breakpoint still inserted at the same address.
3930 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3931 breakpoint already inserted at the same address.
3932 (deprecated_remove_raw_breakpoint): Handle the case of a
3933 non-raw breakpoint still inserted at the same address.
3934 (find_single_step_breakpoint): New function, extracted from
3935 single_step_breakpoint_inserted_here_p.
3936 (find_single_step_breakpoint): New function,
3937 factored out from single_step_breakpoint_inserted_here_p.
3938 (single_step_breakpoint_inserted_here_p): Reimplement.
3939
1e2ccb61
BM
39402014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3941
3942 Pushed by Joel Brobecker <brobecker@adacore.com>
3943 * source.c (show_substitute_path_command): Fix display of matching
3944 substitution rules.
3945
d3448d85
GB
39462014-06-03 Gary Benson <gbenson@redhat.com>
3947
3948 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3949
06eb1586
DE
39502014-06-02 Doug Evans <xdje42@gmail.com>
3951
3952 Add parameter support for Guile.
3953 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3954 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3955 (scm-param.o): New rule.
3956 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3957 (gdbscm_misc_error): Declare.
3958 (gdbscm_canonicalize_command_name): Declare.
3959 (gdbscm_scm_to_host_string): Declare.
3960 (gdbscm_scm_from_host_string): Declare.
3961 (gdbscm_initialize_parameters): Declare.
3962 * guile/guile.c (initialize_gdb_module): Call
3963 gdbscm_initialize_parameters.
3964 * guile/lib/gdb.scm: Export parameter symbols.
3965 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3966 cmdscm_canonicalize_name and made public. All callers updated.
3967 * guile/scm-exception.c (gdbscm_misc_error): New function.
3968 * guile/scm-param.c: New file.
3969 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3970 (gdbscm_scm_to_host_string): New function.
3971 (gdbscm_scm_from_host_string): New function.
3972 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3973
e698b8c4
DE
39742014-06-02 Doug Evans <xdje42@gmail.com>
3975
3976 Add command support for Guile.
3977 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3978 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3979 (scm-cmd.o): New rule.
3980 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3981 (gdbscm_user_error_p): Declare.
3982 (gdbscm_parse_command_name): Declare.
3983 (gdbscm_valid_command_class_p): Declare.
3984 (gdbscm_initialize_commands): Declare.
3985 * guile/guile.c (initialize_gdb_module): Call
3986 gdbscm_initialize_commands.
3987 * guile/lib/gdb.scm: Export command symbols.
3988 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3989 (throw-user-error): New function.
3990 * guile/scm-cmd.c: New file.
3991 * guile/scm-exception.c (user_error_symbol): New static global.
3992 (gdbscm_user_error_p): New function.
3993 (gdbscm_initialize_exceptions): Set user_error_symbol.
3994 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3995
fb1f94b0
PM
39962014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3997
3998 * top.c (command_loop): Handle comments here...
3999 (command_line_input): ... not here.
4000
ded03782
DE
40012014-06-02 Doug Evans <xdje42@gmail.com>
4002
4003 Add progspace support for Guile.
4004 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
4005 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
4006 (scm-progspace.o): New rule.
4007 * guile/guile-internal.h (pspace_smob): New typedef.
4008 (psscm_pspace_smob_pretty_printers): Declare.
4009 (psscm_pspace_smob_from_pspace): Declare.
4010 (psscm_scm_from_pspace): Declare.
4011 * guile/guile.c (initialize_gdb_module): Call
4012 gdbscm_initialize_pspaces.
4013 * guile/lib/gdb.scm: Export progspace symbols.
4014 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
4015 support.
4016 (append-pretty-printer!): Ditto.
4017 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4018 Implement.
4019 * guile/scm-progspace.c: New file.
4020
397998fc
AM
40212014-06-03 Alan Modra <amodra@gmail.com>
4022
4023 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4024 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4025
6aa5f3a6
DE
40262014-06-02 Doug Evans <dje@google.com>
4027
4028 Add support for skeletonless type units.
4029 * dwarf2read.c (struct dwarf2_per_objfile): New member
4030 n_allocated_type_units.
4031 (struct dwarf2_per_objfile) <tu_stats>: New member
4032 nr_all_type_units_reallocs.
4033 (create_signatured_type_table_from_index): Initialize
4034 n_allocated_type_units
4035 (create_all_type_units): Ditto.
4036 (add_type_unit): Move up in file. New arg slot.
4037 All callers updated. Increase space for all_type_units more
4038 efficiently.
4039 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4040 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4041 (lookup_dwp_signatured_type): Ditto.
4042 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4043 All callers updated.
4044 (build_type_psymtabs_1): Leave type_unit_groups as
4045 NULL if no TUs present.
4046 (print_tu_stats): New function.
4047 (process_skeletonless_type_unit): New function.
4048 (process_dwo_file_for_skeletonless_type_units): New
4049 function.
4050 (process_skeletonless_type_units): New function.
4051 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4052 Call print tu_stats if debugging enabled.
4053
41fac0cf
PA
40542014-06-02 Pedro Alves <palves@redhat.com>
4055
4056 * breakpoint.c (build_target_command_list): Don't build a command
4057 list if we have any duplicate location that isn't a dprintf.
4058
cd1608cc
PA
40592014-06-02 Pedro Alves <palves@redhat.com>
4060
4061 * breakpoint.c (dprintf_breakpoint_hit): New function.
4062 (initialize_breakpoint_ops): Install it as dprintf's
4063 breakpoint_hit method.
4064
486ef3b9
JB
40652014-06-02 Joel Brobecker <brobecker@adacore.com>
4066
4067 * source.c (substitute_path_rule_matches): Simplify using
4068 filename_ncmp instead of FILENAME_CMP.
4069
230cd560
JB
40702014-06-02 Joel Brobecker <brobecker@adacore.com>
4071
4072 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4073
16954d5d
LC
40742014-06-01 Ludovic Courtès <ludo@gnu.org>
4075
4076 * configure.ac: When Guile is available, check for the
4077 availability of 'scm_new_smob'.
4078 * configure, config.h.in: Regenerate.
4079 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4080 function.
4081
53e8a631
AB
40822014-05-30 Andrew Burgess <aburgess@broadcom.com>
4083
4084 * frame.c (struct frame_info): Add stop_string field.
4085 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4086 (get_prev_frame_always): Old content moved into
4087 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4088 TRY_CATCH, handle MEMORY_ERROR exceptions.
4089 (frame_stop_reason_string): New function definition.
4090 * frame.h (unwind_stop_reason_to_string): Extend comment to
4091 mention frame_stop_reason_string.
4092 (frame_stop_reason_string): New function declaration.
4093 * stack.c (frame_info): Switch to frame_stop_reason_string.
4094 (backtrace_command_1): Switch to frame_stop_reason_string.
4095 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4096 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4097 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4098
70e38b8e
AB
40992014-05-30 Andrew Burgess <aburgess@broadcom.com>
4100
4101 * frame.c (frame_stop_reason_string): Rename to ...
4102 (unwind_stop_reason_to_string): this.
4103 * frame.h (frame_stop_reason_string): Rename to ...
4104 (unwind_stop_reason_to_string): this.
4105 * stack.c (frame_info): Update call to frame_stop_reason_string.
4106 (backtrace_command_1): Likewise.
4107 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4108 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4109
938f0e2f
AB
41102014-05-30 Andrew Burgess <aburgess@broadcom.com>
4111
4112 * frame.c (remove_prev_frame): New function.
4113 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4114 remove_prev_frame.
4115
a09dd441
PA
41162014-05-29 Pedro Alves <palves@redhat.com>
4117
4118 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4119 and make it const. When a single-step decays to a continue,
4120 clear 'step', not 'hw_step'. Pass whether the caller wanted
4121 to step to user_visible_resume_ptid, not what we ask the
4122 target to do.
4123
bdc36728
PA
41242014-05-29 Pedro Alves <palves@redhat.com>
4125
4126 * infrun.c (process_event_stop_test, handle_step_into_function)
4127 (handle_step_into_function_backward): Adjust.
4128 Don't set the even thread's stop_step and call stop_waiting before
4129 calling end_stepping_range. Instead do that ...
4130 (end_stepping_range): ... here. Take an ecs pointer parameter.
4131
22bcd14b
PA
41322014-05-29 Pedro Alves <palves@redhat.com>
4133
4134 * infrun.c (stop_stepping): Rename to ...
4135 (stop_waiting): ... this.
4136 (proceed): Update comment.
4137 (process_event_stop_test, handle_inferior_event)
4138 (handle_signal_stop, handle_step_into_function)
4139 (handle_step_into_function_backward): Update.
4140
4ae57c05
PA
41412014-05-29 Pedro Alves <palves@redhat.com>
4142
4143 * infcall.c (run_inferior_call): Don't check whether the current
4144 thread is running after the proceed call.
4145
329ea579
PA
41462014-05-29 Pedro Alves <palves@redhat.com>
4147 Tom Tromey <tromey@redhat.com>
4148
4149 * NEWS: Mention "maint set target-async", "set mi-async", and that
4150 background execution commands are now always available.
4151 * target.h (target_async_permitted): Update comment.
4152 * target.c (target_async_permitted, target_async_permitted_1):
4153 Default to 1.
4154 (set_target_async_command): Rename to ...
4155 (maint_set_target_async_command): ... this.
4156 (show_target_async_command): Rename to ...
4157 (maint_show_target_async_command): ... this.
4158 (_initialize_target): Adjust.
4159 * infcmd.c (prepare_execution_command): Make extern.
4160 * inferior.h (prepare_execution_command): Declare.
4161 * infrun.c (set_observer_mode): Leave target async alone.
4162 * mi/mi-interp.c (mi_interpreter_init): Install
4163 mi_on_sync_execution_done as sync_execution_done observer.
4164 (mi_on_sync_execution_done): New function.
4165 (mi_execute_command_input_handler): Don't print the prompt if we
4166 just started a synchronous command with an async target.
4167 (mi_on_resume): Check sync_execution before printing prompt.
4168 * mi/mi-main.h (mi_async_p): Declare.
4169 * mi/mi-main.c: Include gdbcmd.h.
4170 (mi_async_p): New function.
4171 (mi_async, mi_async_1): New globals.
4172 (set_mi_async_command, show_mi_async_command, mi_async): New
4173 functions.
4174 (exec_continue): Call prepare_execution_command.
4175 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4176 (mi_execute_async_cli_command): Use mi_async_p.
4177 (_initialize_mi_main): Install "set mi-async". Make
4178 "target-async" a deprecated alias.
4179
92bcb5f9
PA
41802014-05-29 Pedro Alves <palves@redhat.com>
4181
4182 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4183 (_initialize_cli_interp): Adjust.
4184 * event-loop.c: Include "observer.h".
4185 (start_event_loop): Notify 'command_error' observers instead of
4186 calling display_gdb_prompt. Remove FIXME comment.
4187 * event-top.c (display_gdb_prompt): Remove call into the
4188 interpreters.
4189 * inf-loop.c: Include "observer.h".
4190 (inferior_event_handler): Notify 'command_error' observers instead
4191 of calling display_gdb_prompt.
4192 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4193 observers instead of calling display_gdb_prompt.
4194 * interps.c (interp_set): Don't call display_gdb_prompt.
4195 (current_interp_display_prompt_p): Delete.
4196 * interps.h (interp_prompt_p): Delete declaration.
4197 (interp_prompt_p_ftype): Delete.
4198 (struct interp_procs) <prompt_proc_p>: Delete field.
4199 (current_interp_display_prompt_p): Delete declaration.
4200 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4201 (_initialize_mi_interp): Adjust.
4202 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4203 'command_error' observers.
4204 (tui_on_sync_execution_done, tui_on_command_error): New
4205 functions.
4206 (tui_display_prompt_p): Delete.
4207 (_initialize_tui_interp): Adjust.
4208
fd664c91
PA
42092014-05-29 Pedro Alves <palves@redhat.com>
4210
4211 PR gdb/13860
4212 * cli/cli-interp.c: Include infrun.h and observer.h.
4213 (cli_uiout, cli_interp): New globals.
4214 (cli_on_signal_received, cli_on_end_stepping_range)
4215 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4216 functions.
4217 (cli_interpreter_init): Install them as 'end_stepping_range',
4218 'signal_received' 'signal_exited', 'exited' and 'no_history'
4219 observers.
4220 (_initialize_cli_interp): Remove cli_interp local.
4221 * infrun.c (handle_inferior_event): Call the several stop reason
4222 observers instead of printing the stop reason directly.
4223 (end_stepping_range): New function.
4224 (print_end_stepping_range_reason, print_signal_exited_reason)
4225 (print_exited_reason, print_signal_received_reason)
4226 (print_no_history_reason): Make static, and add an uiout
4227 parameter. Print to that instead of to CURRENT_UIOUT.
4228 * infrun.h (print_end_stepping_range_reason)
4229 (print_signal_exited_reason, print_exited_reason)
4230 (print_signal_received_reason print_no_history_reason): New
4231 declarations.
4232 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4233 'mi_uiout'.
4234 <cli_uiout>: New field.
4235 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4236 uiout for CLI output. Install 'signal_received',
4237 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4238 observers.
4239 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4240 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4241 (mi_on_no_history): New functions.
4242 (ui_out_free_cleanup): Delete function.
4243 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4244 instead use the one already stored in the MI interpreter data.
4245 (mi_ui_out): Adjust.
4246 * tui/tui-interp.c: Include infrun.h and observer.h.
4247 (tui_interp): New global.
4248 (tui_on_signal_received, tui_on_end_stepping_range)
4249 (tui_on_signal_exited, tui_on_exited)
4250 (tui_on_no_history): New functions.
4251 (tui_init): Install them as 'end_stepping_range',
4252 'signal_received' 'signal_exited', 'exited' and 'no_history'
4253 observers.
4254 (_initialize_tui_interp): Delete tui_interp local.
4255
8817a6f2
PA
42562014-05-29 Pedro Alves <palves@redhat.com>
4257
4258 PR gdb/15713
4259 * linux-nat.c (linux_nat_resume_callback): Rename the second
4260 parameter to 'except'. Skip LP if it points to EXCEPT.
4261 (linux_nat_resume): Don't mark the event lwp as not stopped
4262 before resuming sibling lwps. Instead ask
4263 linux_nat_resume_callback to skip the event lwp. Mark it as not
4264 stopped after actually resuming it.
4265 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4266 resuming it.
4267 (wait_lwp): Mark the lwp as stopped here.
4268 (stop_wait_callback): Mark the lwp as not stopped right after
4269 resuming it. Don't mark lwps as stopped here.
4270 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4271 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4272
251bde03
PA
42732014-05-29 Pedro Alves <palves@redhat.com>
4274
4275 PR PR15693
4276 * infrun.c (resume): Determine how much to resume depending on
4277 whether the caller wanted a step, not whether we can hardware step
4278 the target. Mark all threads that we intend to run as running,
4279 unless we're calling an inferior function.
4280 (normal_stop): If the thread is running an infcall, don't finish
4281 thread state.
4282 * target.c (target_resume): Don't mark threads as running here.
4283
7f3c0343
JB
42842014-05-28 Joel Brobecker <brobecker@adacore.com>
4285
4286 * serial.c (_initialize_serial): Remove support for
4287 the "set remotebaud" and "show remotebaud" commands.
4288 * NEWS: Add entry documenting the removal of that command.
4289
ee34b3f9
YQ
42902014-05-28 Yao Qi <yao@codesourcery.com>
4291
4292 * charset.c: Fix typo in comments.
4293
add6c04d
GB
42942014-05-27 Gary Benson <gbenson@redhat.com>
4295
4296 * utils.c (internal_vproblem): Prompt for a bug report.
4297
92c48fc5
AW
42982014-05-26 Andy Wingo <wingo@igalia.com>
4299
4300 * guile/scm-arch.c (arscm_mark_arch_smob):
4301 * guile/scm-block.c (bkscm_mark_block_smob)
4302 (bkscm_mark_block_syms_progress_smob):
4303 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4304 * guile/scm-exception.c (exscm_mark_exception_smob):
4305 * guile/scm-frame.c (frscm_mark_frame_smob):
4306 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4307 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4308 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4309 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4310 (ppscm_mark_pretty_printer_worker_smob):
4311 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4312 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4313 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4314 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4315 mark functions.
4316 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4317 function.
4318
b2715b27
AW
43192014-05-26 Andy Wingo <wingo@igalia.com>
4320 Doug Evans <xdje42@gmail.com>
4321
4322 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4323 empty_base_class. All uses updated.
4324 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4325 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4326 Adapt all callers.
4327 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4328 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4329 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4330 (gdbscm_gsmob_has_property_p, add_property_name)
4331 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4332 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4333 (gdb-object-has-property?, gdb-object-properties): Remove.
4334 (gdb-object-kind): Renamed from gsmob-kind.
4335
214ab2da
AW
43362014-05-26 Andy Wingo <wingo@igalia.com>
4337
4338 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4339 * configure: Regenerate.
4340
589fdceb
MM
43412014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4342
4343 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4344
67b5c0c1
MM
43452014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4346
4347 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4348 (replay_memory_access_read_only, replay_memory_access_read_write)
4349 (replay_memory_access_types, replay_memory_access)
4350 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4351 (cmd_set_record_btrace, cmd_show_record_btrace)
4352 (cmd_show_replay_memory_access): New.
4353 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4354 (record_btrace_remove_breakpoint): Replace
4355 record_btrace_allow_memory_access with replay_memory_access.
4356 (_initialize_record_btrace): Add commands.
4357 * NEWS: Announce it.
4358
036cd381
RR
43592014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4360
4361 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4362
c77c1e42
RR
43632014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4364
4365 * MAINTAINERS (Write After Approval): Move self back from
4366 paper trail.
4367
45741a9c
PA
43682014-05-22 Pedro Alves <palves@redhat.com>
4369
4370 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4371 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4372 (disable_randomization, enum exec_direction_kind)
4373 (execution_direction, stop_registers, start_remote)
4374 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4375 (wait_for_inferior, normal_stop, get_last_target_status)
4376 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4377 (insert_step_resume_breakpoint_at_sal)
4378 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4379 (set_step_info, print_stop_event, signal_stop_state)
4380 (signal_print_state, signal_pass_state, signal_stop_update)
4381 (signal_print_update, signal_pass_update)
4382 (update_signals_program_target, clear_exit_convenience_vars)
4383 (displaced_step_dump_bytes, update_observer_mode)
4384 (signal_catch_update, gdb_signal_from_command): Move
4385 declarations ...
4386 * infrun.h: ... to this new file.
4387 * amd64-tdep.c: Include infrun.h.
4388 * annotate.c: Include infrun.h.
4389 * arch-utils.c: Include infrun.h.
4390 * arm-linux-tdep.c: Include infrun.h.
4391 * arm-tdep.c: Include infrun.h.
4392 * break-catch-sig.c: Include infrun.h.
4393 * breakpoint.c: Include infrun.h.
4394 * common/agent.c: Include infrun.h instead of inferior.h.
4395 * corelow.c: Include infrun.h.
4396 * event-top.c: Include infrun.h.
4397 * go32-nat.c: Include infrun.h.
4398 * i386-tdep.c: Include infrun.h.
4399 * inf-loop.c: Include infrun.h.
4400 * infcall.c: Include infrun.h.
4401 * infcmd.c: Include infrun.h.
4402 * infrun.c: Include infrun.h.
4403 * linux-fork.c: Include infrun.h.
4404 * linux-nat.c: Include infrun.h.
4405 * linux-thread-db.c: Include infrun.h.
4406 * monitor.c: Include infrun.h.
4407 * nto-tdep.c: Include infrun.h.
4408 * procfs.c: Include infrun.h.
4409 * record-btrace.c: Include infrun.h.
4410 * record-full.c: Include infrun.h.
4411 * remote-m32r-sdi.c: Include infrun.h.
4412 * remote-mips.c: Include infrun.h.
4413 * remote-notif.c: Include infrun.h.
4414 * remote-sim.c: Include infrun.h.
4415 * remote.c: Include infrun.h.
4416 * reverse.c: Include infrun.h.
4417 * rs6000-tdep.c: Include infrun.h.
4418 * s390-linux-tdep.c: Include infrun.h.
4419 * solib-irix.c: Include infrun.h.
4420 * solib-osf.c: Include infrun.h.
4421 * solib-svr4.c: Include infrun.h.
4422 * target.c: Include infrun.h.
4423 * top.c: Include infrun.h.
4424 * windows-nat.c: Include infrun.h.
4425 * mi/mi-interp.c: Include infrun.h.
4426 * mi/mi-main.c: Include infrun.h.
4427 * python/py-threadevent.c: Include infrun.h.
4428
98eb56a4
PA
44292014-05-22 Pedro Alves <palves@redhat.com>
4430
4431 * infrun.c (handle_inferior_event): Store the exit code for
4432 --return-child-result here, instead of ...
4433 (print_exited_reason): ... here.
4434
17b2616c
PA
44352014-05-21 Pedro Alves <palves@redhat.com>
4436
4437 PR gdb/13860
4438 * gdbthread.h (struct thread_control_state): New field
4439 `command_interp'.
4440 * infrun.c (follow_fork): Copy the new thread control field to the
4441 child fork thread.
4442 (clear_proceed_status_thread): Clear the new thread control field.
4443 (proceed): Set the new thread control field.
4444 * interps.h (command_interp): Declare.
4445 * interps.c (command_interpreter): New global.
4446 (command_interp): New function.
4447 (interp_exec): Set `command_interpreter' while here.
4448 * cli-out.c (cli_uiout_dtor): New function.
4449 (cli_ui_out_impl): Install it.
4450 * mi/mi-interp.c: Include cli-out.h.
4451 (mi_cmd_interpreter_exec): Add comment.
4452 (restore_current_uiout_cleanup): New function.
4453 (ui_out_free_cleanup): New function.
4454 (mi_on_normal_stop): If finishing an execution command started by
4455 a CLI command, or any kind of breakpoint-like event triggered,
4456 print the stop event to the output (CLI) stream.
4457 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4458
5166082f
PA
44592014-05-21 Pedro Alves <palves@redhat.com>
4460
4461 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4462 current source line having changed.
4463 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4464 * infrun.c (normal_stop): Adjust call to
4465 set_current_sal_from_frame.
4466 * source.c (clear_lines_listed_range): New function.
4467 (set_current_source_symtab_and_line, identify_source_line): Clear
4468 the lines listed range.
4469 (line_info): Handle the first "info line" after the current source
4470 line having changed.
4471 * stack.c (print_stack_frame): Remove center handling.
4472 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4473 center sal.line.
4474
c1ee2fb3
PA
44752014-05-21 Pedro Alves <palves@redhat.com>
4476
4477 * inf-child.c (inf_child_mourn_inferior): New function.
4478 * inf-child.h (inf_child_mourn_inferior): New declaration.
4479 * darwin-nat.c (darwin_mourn_inferior): Use
4480 inf_child_mourn_inferior.
4481 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4482 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4483 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4484 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4485 * windows-nat.c (windows_mourn_inferior): Likewise.
4486
5c6d4fb2
DE
44872014-05-21 Doug Evans <xdje42@gmail.com>
4488
250748cb 4489 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4490
4a2722c5
DE
44912014-05-21 Doug Evans <xdje42@gmail.com>
4492
17292b30 4493 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4494 (gdbscm_out_of_range_error): Ditto.
4495 (gdbscm_memory_error): Ditto.
250748cb
DE
4496 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4497 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4498 (gdbscm_out_of_range_error): Update.
4499 (gdbscm_memory_error): Update.
4500 (gdbscm_scm_to_target_string_unsafe): Delete.
4501
6a3cb8e8
PA
45022014-05-21 Pedro Alves <palves@redhat.com>
4503
4504 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4505 globals.
4506 (inf_child_open_target): New function.
4507 (inf_child_open): Use inf_child_open_target to push the target
4508 instead of erroring out.
4509 (inf_child_disconnect, inf_child_close)
4510 (inf_child_maybe_unpush_target): New functions.
4511 (inf_child_target): Install inf_child_disconnect and
4512 inf_child_close. Store a pointer to the returned object.
4513 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4514 declarations.
4515 * target.c (auto_connect_native_target): New global.
4516 (show_default_run_target): New function.
4517 (find_default_run_target): Return NULL if automatically connecting
4518 to the native target is disabled.
4519 (_initialize_target): Install set/show auto-connect-native-target.
4520 * NEWS: Mention "set auto-connect-native-target", and "target
4521 native".
4522 * linux-nat.c (super_close): New global.
4523 (linux_nat_close): Call super_close.
4524 (linux_nat_add_target): Store a pointer to the base class's
4525 to_close method.
4526 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4527 inf_child_maybe_unpush.
4528 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4529 already pushed.
4530 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4531 the inferior. Use inf_child_maybe_unpush_target.
4532 (inf_ttrace_attach): Don't push the target if it is already
4533 pushed.
4534 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4535 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4536 after mourning the inferior. Use inf_child_maybe_unpush_target.
4537 (darwin_attach_pid): Don't push the target if it is already
4538 pushed.
4539 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4540 mourning the inferior. Use inf_child_maybe_unpush_target.
4541 (gnu_detach): Use inf_child_maybe_unpush_target.
4542 * go32-nat.c (go32_create_inferior): Don't push the target if it
4543 is already pushed.
4544 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4545 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4546 (procfs_open): Rename to ...
4547 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4548 comments. Can target_preopen before changing node. Call
4549 inf_child_open_target to push the target explicitly.
4550 (procfs_attach): Don't push the target if it is already pushed.
4551 (procfs_detach): Use inf_child_maybe_unpush_target.
4552 (procfs_create_inferior): Don't push the target if it is already
4553 pushed.
4554 (nto_native_ops): New global.
4555 (procfs_open): Reimplement.
4556 (procfs_native_open): New function.
4557 (init_procfs_targets): Install procfs_native_open as to_open of
4558 "target native". Store a pointer to the "native" target in
4559 nto_native_ops.
4560 * procfs.c (procfs_attach): Don't push the target if it is already
4561 pushed.
4562 (procfs_detach): Use inf_child_maybe_unpush_target.
4563 (procfs_mourn_inferior): Only unpush the target after mourning the
4564 inferior. Use inf_child_maybe_unpush_target.
4565 (procfs_init_inferior): Don't push the target if it is already
4566 pushed.
4567 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4568 if it is already pushed.
4569
930ee1b1
PA
45702014-05-21 Pedro Alves <palves@redhat.com>
4571
4572 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4573 and "procfs" targets are now called "native" instead.
4574
1f5d1b13
PA
45752014-05-21 Pedro Alves <palves@redhat.com>
4576
4577 * go32-nat.c (go32_open): Delete.
4578 (go32_target): Don't override the to_open method.
4579
132f8e03
PA
45802014-05-21 Pedro Alves <palves@redhat.com>
4581
4582 * nto-procfs.c (procfs_can_run): New function.
4583 (nto_procfs_ops): New global.
4584 (init_procfs_targets): New, based on procfs_target. Install
4585 "target native" in addition to "target procfs".
4586 (_initialize_procfs): Call init_procfs_targets instead of adding
4587 the target here.
4588
03c136c3
PA
45892014-05-21 Pedro Alves <palves@redhat.com>
4590
4591 * windows-nat.c (windows_target): Don't override to_shortname,
4592 to_longname or to_doc.
4593
a635d0f3
PA
45942014-05-21 Pedro Alves <palves@redhat.com>
4595
4596 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4597 to_doc.
4598
4f9b5133
PA
45992014-05-21 Pedro Alves <palves@redhat.com>
4600
4601 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4602 to_shortname, to_longname or to_doc.
4603
bc85afde
PA
46042014-05-21 Pedro Alves <palves@redhat.com>
4605
4606 * go32-nat.c (go32_target): Don't override to_shortname,
4607 to_longname or to_doc.
4608
4ebfc96e
PA
46092014-05-21 Pedro Alves <palves@redhat.com>
4610
4611 * inf-child.c (inf_child_open): Remove mention of "child".
4612 (inf_child_target): Rename target to "native" instead of "child".
4613
2648dfed
AA
46142014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4615
4616 * Makefile.in (SFILES): Delete "regset.c".
4617 (COMMON_OBS): Delete "regset.o".
4618 * regset.c: Remove.
4619 * regset.h (regset_alloc): Delete prototype.
4620
b13feb94
AA
46212014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4622
4623 * sparc-linux-tdep.c (sparc32_linux_gregset)
4624 (sparc32_linux_fpregset): New static regset structures.
4625 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4626 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4627 'fpregset' fields.
4628 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4629 (sparc64_linux_fpregset): New static regset structures.
4630 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4631 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4632 New static regset structures.
4633 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4634 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4635 New static regset structures.
4636 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4637 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4638 New static regset structures.
4639 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4640 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4641 New static regset structures.
4642 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4643
b4fd25c9
AA
46442014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4645
4646 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4647 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4648 register maps ("regmaps") from "*regset" to "*regmap". Do this
4649 for all regmap types and variables.
4650 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4651 (sparc32_linux_supply_core_gregset)
4652 (sparc32_linux_collect_core_gregset)
4653 (sparc32_linux_supply_core_fpregset)
4654 (sparc32_linux_collect_core_fpregset): Likewise.
4655 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4656 (sparc_gregmap, sparc_fpregmap): ... these.
4657 (sparc_supply_gregset, sparc_collect_gregset)
4658 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4659 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4660 (_initialize_sparc_nat): Rename regmaps.
4661 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4662 (sparc_gregmap, sparc_fpregmap): ... these.
4663 (sparc_supply_gregset, sparc_collect_gregset)
4664 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4665 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4666 Rename macros to...
4667 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4668 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4669 Likewise.
4670 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4671 Rename to...
4672 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4673 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4674 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4675 regmaps.
4676 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4677 (sparc32_bsd_fpregset): Rename to...
4678 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4679 (sparc32_bsd_fpregmap): ... these.
4680 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4681 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4682 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4683 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4684 (struct sparc_gregmap, struct sparc_fpregmap)
4685 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4686 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4687 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4688 (sparc32_supply_regset, sparc32_collect_gregset)
4689 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4690 prototypes.
4691 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4692 (sparc64_linux_ptrace_gregmap): ... this.
4693 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4694 (_initialize_sparc64_linux_nat): Rename regmaps.
4695 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4696 (sparc64_linux_core_gregmap): ... this.
4697 (sparc64_linux_supply_core_gregset)
4698 (sparc64_linux_collect_core_gregset)
4699 (sparc64_linux_supply_core_fpregset)
4700 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4701 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4702 (sparc64_sol2_fpregset): Rename to...
4703 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4704 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4705 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4706 regmaps.
4707 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4708 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4709 (sparc64_bsd_fpregset): Rename to...
4710 (struct sparc_gregmap, sparc64_sol2_gregmap)
4711 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4712 (sparc64_bsd_fpregmap): ... these.
4713 (sparc64_supply_gregset, sparc64_collect_gregset)
4714 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4715 prototypes.
4716 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4717 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4718 (sparc64fbsd_gregmap): ... this.
4719 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4720 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4721 Rename regmaps.
4722 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4723 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4724 (sparc64nbsd_collect_fpregset): Likewise.
4725 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4726 (sparc64nbsd_gregmap): ... this.
4727 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4728 regmaps.
4729 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4730 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4731 (sparc64obsd_gregmap): ... this.
4732 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4733 regmaps.
4734 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4735 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4736 (sparc32nbsd_gregmap): ... this.
4737 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4738 regmaps.
4739
8fea3224
AA
47402014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4741
4742 * score-tdep.c (score7_linux_gregset): New static regset
4743 structure.
4744 (score7_linux_regset_from_core_section): Remove dynamic regset
4745 allocation.
4746 (score_gdbarch_init): Drop allocation of tdep structure.
4747 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4748
24534243
AA
47492014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4750
4751 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4752 regset structures.
4753 (am33_regset_from_core_section): Remove dynamic regset
4754 allocations.
4755
b7195f27
AA
47562014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4757
4758 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4759 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4760 structures.
4761 (mips_linux_regset_from_core_section): Remove dynamic regset
4762 allocations.
4763 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4764 'gregset64', 'fpregset', and 'fpregset64'.
4765 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4766 deleted tdep fields.
4767
ecc37a5a
AA
47682014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4769
4770 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4771 regset structures.
4772 (amd64_regset_from_core_section): Remove dynamic regset
4773 allocations.
4774 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4775 structure.
4776 (amd64obsd_regset_from_core_section): Remove dynamic regset
4777 allocation.
4778 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4779 Likewise.
4780 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4781 x86-common regset supply function.
4782 * i386-tdep.c (i386_collect_gregset): Make static.
4783 (i386_gregset): New global regset structure.
4784 (i386_fpregset, i386_xstateregset): New static regset structures.
4785 (i386_regset_from_core_section): Remove dynamic regset
4786 allocations.
4787 (i386_gdbarch_init): Remove initialization of tdep fields
4788 'gregset', 'fpregset', and 'xstateregset'.
4789 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4790 'fpregset', and 'xstateregset'.
4791 (i386_collect_gregset): Remove prototype.
4792 (i386_gregset): New declaration.
4793 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4794 structure.
4795 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4796 allocation.
4797
b7611c43
AA
47982014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4799
4800 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4801 (arm_linux_vfpregset): New static regset structures.
4802 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4803 regset structures.
4804 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4805 and 'vfpregset' fields.
4806
a069a2bd
AA
48072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4808
4809 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4810 (aarch64_linux_fpregset): New static regset structures.
4811 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4812 of regset structures.
4813 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4814 'fpregset' fields.
4815
09424cff
AA
48162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4817
4818 * regset.h (struct regset): Remove gdbarch field.
4819 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4820 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4821 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4822 Likewise.
4823 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4824 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4825 (ppc32_linux_vsxregset): Likewise.
4826 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4827 via the regcache instead of the regset.
4828 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4829 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4830 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4831 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4832 Likewise.
4833
3ca7dae4
AA
48342014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4835
4836 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4837 Constify structures.
4838 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4839 (alphanbsd_aout_gregset): Likewise.
4840 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4841 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4842 Likewise.
4843 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4844 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4845 Likewise.
4846 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4847 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4848 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4849 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4850 * m88k-tdep.c (m88k_gregset): Likewise.
4851 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4852 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4853 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4854 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4855 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4856 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4857 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4858 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4859 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4860 Likewise.
4861 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4862 * sh-tdep.h (sh_corefile_gregset): Likewise.
4863 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4864 * vax-tdep.c (vax_gregset): Likewise.
4865
5876f503
JK
48662014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4867
4868 Fix TLS access for -static -pthread.
4869 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4870 (try_thread_db_load_1): Initialize it.
4871 (thread_db_get_thread_local_address): Call it if LM is zero.
4872 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4873 * target.h (struct target_ops) (to_get_thread_local_address): Add
4874 load_module_addr comment.
4875
0256a6ac
PA
48762014-05-21 Pedro Alves <palves@redhat.com>
4877
4878 * dcache.c (dcache_read_memory_partial): If reading the cache line
4879 fails, fallback to reading just the memory the caller wanted.
4880
227533ac
DE
48812014-05-20 Doug Evans <dje@google.com>
4882
4883 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4884 instead of get_current_arch.
4885
936d2992
PA
48862014-05-20 Pedro Alves <palves@redhat.com>
4887
4888 * NEWS: Mention that compare-sections now works with all targets.
4889
4890 * remote.c (PACKET_qCRC): New enum value.
4891 (remote_verify_memory): Don't send qCRC if the target has no
4892 execution. Use packet_support/packet_ok. If the target doesn't
4893 support the qCRC packet, fallback to a deep memory copy.
4894 (compare_sections_command): Say "target image" instead of "remote
4895 executable".
4896 (_initialize_remote): Add PACKET_qCRC to the list of config
4897 packets that have no associated command. Extend comment.
4898 * target.c (simple_verify_memory, default_verify_memory): New
4899 function.
4900 * target.h (struct target_ops) <to_verify_memory>: Default to
4901 default_verify_memory.
4902 (simple_verify_memory): New declaration.
4903 * target-delegates.c: Regenerate.
4904
e59fa00f
MM
49052014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4906
4907 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4908
f2205de0
HZ
49092014-05-20 Hui Zhu <hui@codesourcery.com>
4910 Yao Qi <yao@codesourcery.com>
4911
4912 PR backtrace/16558
4913 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4914 and change address of sp and pc.
4915
c4e54771
TT
49162014-05-19 Tom Tromey <tromey@redhat.com>
4917
4918 * gdbtypes.c (rank_function): Use XNEWVEC.
4919 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4920
73051182
DE
49212014-05-19 Doug Evans <dje@google.com>
4922
4923 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4924 build_type_unit_groups and moved closer to only caller. Remove
4925 arguments. All references updated. Remove outdated .gdb_index
4926 comment.
4927 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4928 build_type_psymtabs_1.
4929
8832e7e3
DE
49302014-05-19 Doug Evans <dje@google.com>
4931
4932 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4933 n_type_unit_groups, all_type_unit_groups. All uses removed.
4934 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4935 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4936 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4937 (add_type_unit_group_to_table): Delete.
4938
cd8ae15e
DE
49392014-05-19 Doug Evans <dje@google.com>
4940
4941 * eval.c (evaluate_subexp_standard): Add some comments.
4942
08f4850b
DE
49432014-05-17 Doug Evans <xdje42@gmail.com>
4944
4945 * progspace.c (remove_program_space): Delete, unused.
4946 * progspace.h (remove_program_space): Ditto.
4947
bed8455c
DE
49482014-05-17 Doug Evans <xdje42@gmail.com>
4949
4950 * inferior.c (prune_inferiors): Fix comment.
4951 (remove_inferior_command): Call prune_program_spaces.
4952
8d551b02
DE
49532014-05-16 Doug Evans <dje@google.com>
4954
4955 New command line option -D.
4956 * NEWS: Mention it.
4957 * main.c (set_gdb_data_directory): New function.
4958 (captured_main): Recognize -D. Flag error for --data-directory "".
4959 Call set_gdb_data_directory.
4960 (print_gdb_help): Print --data-directory, -D.
4961 * main.h (set_gdb_data_directory): Declare.
4962 * top.c (staged_gdb_datadir): New static global.
4963 (set_gdb_datadir): Call set_gdb_data_directory
4964 (show_gdb_datadir): New function.
4965 (init_main): Update init of data-directory parameter.
4966
18848e28
GF
49672014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4968
4969 Import the "dirfd" gnulib module.
4970 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4971 * gnulib/aclocal.m4: Update.
4972 * gnulib/config.in: Update.
4973 * gnulib/configure: Update.
4974 * gnulib/import/Makefile.am: Update.
4975 * gnulib/import/Makefile.in: Update.
4976 * gnulib/import/dirfd.c: New.
4977 * gnulib/import/m4/dirfd.m4: New.
4978 * gnulib/import/m4/gnulib-cache.m4: Update.
4979 * gnulib/import/m4/gnulib-comp.m4: Update.
4980
95c64f92
YQ
49812014-05-16 Pierre Muller <muller@sourceware.org>
4982 Yao Qi <yao@codesourcery.com>
4983
4984 * valprint.c (print_wchar): Move the code on checking whether
4985 W is a printable wide char to the default branch of switch
4986 statement below. Call wchar_printable instead of gdb_iswprint.
4987
cac395ea
TM
49882014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4989
19679eca 4990 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4991 ldr.w and ldrd instructions.
4992
83655187
DE
49932014-05-15 Doug Evans <dje@google.com>
4994
4995 * dwarf2read.c (read_structure_type): Delete outdated comments.
4996
dd756689
TT
49972014-05-14 Tom Tromey <tromey@redhat.com>
4998
4999 * macrocmd.c (print_macro_definition): Reindent.
5000
75ddda77
DE
50012014-05-13 Doug Evans <xdje42@gmail.com>
5002
5003 * python/py-cmd.c (cmdpy_completer): Add comment.
5004 (completers): Make const.
5005
b0f16a3e
SM
50062014-05-13 Simon Marchi <simon.marchi@ericsson.com>
5007
5008 * infrun.c (resume): Remove should_resume (unused). Move up
5009 declaration of resume_ptid.
5010
033c3379
TT
50112014-05-13 Tom Tromey <tromey@redhat.com>
5012
5013 * language.h (unop_type_check): Remove.
5014 (binop_type_check): Don't declare.
5015
9b44a3a5
AA
50162014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
5017
5018 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5019 call to regcache_raw_collect.
5020
303a33fa
SM
50212014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5022
5023 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5024 mi_console->quote as the quoting character.
5025
196100a0
SM
50262014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5027
5028 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5029
f989a1c8
TT
50302014-04-29 Tom Tromey <tromey@redhat.com>
5031
5032 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5033 "show debug varobj".
5034
9404b58f
KM
50352014-05-07 Kyle McMartin <kyle@redhat.com>
5036
5037 Pushed by Joel Brobecker <brobecker@adacore.com>.
5038 * aarch64-tdep.c (aarch64_software_single_step): New function.
5039 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5040 with aarch64_software_single_step.
5041
5e49ba57
JB
50422014-05-05 Joel Brobecker <brobecker@adacore.com>
5043
5044 GDB 7.7.1 released.
5045
c888a17d
KS
50462014-05-05 Keith Seitz <keiths@redhat.com>
5047
5048 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5049 variable or history value is successfully parsed.
5050
290a839c
YQ
50512014-05-05 Yao Qi <yao@codesourcery.com>
5052 Pedro Alves <palves@redhat.com>
5053
5054 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5055 address of blocks that intersects the requested range. Trim
5056 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5057 sections.
5058 * ctf.c (ctf_xfer_partial): Likewise.
5059
91256dc2
YQ
50602014-05-05 Yao Qi <yao@codesourcery.com>
5061
5062 * printcmd.c (display_command): Remove the check to
5063 target_has_execution.
5064
07284463
MK
50652014-05-03 Mark Kettenis <kettenis@gnu.org>
5066
5067 * ppcobsd-nat.c: Include "obsd-nat.h".
5068 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5069 add_target.
5070 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5071
30a1e6cc
SDJ
50722014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5073
5074 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5075 and 16-bit signed and unsigned arguments. Update comment.
5076 (stap_parse_probe_arguments): Extend code to handle such
5077 arguments. Use warning instead of complaint to notify about
5078 unrecognized bitness.
5079
f33da99a
SDJ
50802014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5081
5082 PR breakpoints/16889
5083 * stap-probe.c (stap_parse_probe_arguments): Simplify
5084 check for non-prefixed probes (i.e., probes whose
5085 arguments do not start with "N@"). Always set the
5086 argument type to a sane value.
5087
95cf3b38
DT
50882014-05-01 David Taylor <dtaylor@emc.com>
5089
5090 * remote.c (compare_sections_command): Add -r option to compare
5091 all loadable read-only sections.
5092
1cfdf534
SC
50932014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5094
5095 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5096 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5097 Update all callers.
5098 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5099 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5100 Remove unused CORE_ADDR argument. Update all callers.
5101
ca4f7f8b
PA
51022014-04-29 Pedro Alves <palves@redhat.com>
5103
5104 * remote.c (struct packet_config) <detect>: Extend comment.
5105 (add_packet_config_cmd): Don't set the config's detect or support
5106 fields here.
5107 (init_all_packet_configs): Also initialize the config's 'detect'
5108 field.
5109 (reset_all_packet_configs_support): New function.
5110 (remote_open_1): Call reset_all_packet_configs_support instead of
5111 init_all_packet_configs.
5112 (_initialize_remote): Initialize all packet configs. Assert that
5113 all packets have an associated command, except a few known
5114 outliers.
5115
11c1ba78
JB
51162014-04-28 Joel Brobecker <brobecker@adacore.com>
5117
5118 * dwarf2read.c (read_subrange_type): Handle dynamic
5119 DW_AT_lower_bound attributes.
5120
8739bc53
JB
51212014-04-28 Joel Brobecker <brobecker@adacore.com>
5122
5123 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5124 dynamic bounds before computing its upper bound.
5125 (ada_discrete_type_low_bound): Same as above with the lower bound.
5126
6f8a3220
JB
51272014-04-28 Joel Brobecker <brobecker@adacore.com>
5128
5129 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5130 range types. Adjust the array handling implementation to
5131 take advantage of this change.
5132 (resolve_dynamic_range): New function, mostly extracted from
5133 resolve_dynamic_bounds.
5134 (resolve_dynamic_array): New function, mostly extracted from
5135 resolve_dynamic_bounds.
5136 (resolve_dynamic_bounds): Delete.
5137 (resolve_dynamic_type): Reimplement. Add handling of
5138 TYPE_CODE_RANGE types.
5139
4d072ce4
JB
51402014-04-28 Joel Brobecker <brobecker@adacore.com>
5141
5142 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5143 handling of parallel ___XA types.
5144
52865325
JB
51452014-04-28 Joel Brobecker <brobecker@adacore.com>
5146
5147 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5148 unnecessary second call to static_unwrap_type.
5149
433e77fa
HZ
51502014-04-27 Hui Zhu <hui@codesourcery.com>
5151
5152 * stack.c (print_frame_info): Call do_gdb_disassembly with
5153 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5154
b51a69ee
DE
51552014-04-26 Doug Evans <xdje42@gmail.com>
5156
5157 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5158
7ae1a6a6
PA
51592014-04-25 Pedro Alves <palves@redhat.com>
5160
5161 PR server/16255
5162 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5163 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5164 and newline from built string.
5165 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5166 (linux_ptrace_attach_fail_reason): ... this.
5167 * linux-nat.c (linux_nat_attach): Adjust to use
5168 linux_ptrace_attach_fail_reason.
5169
4082afcc
PA
51702014-04-25 Pedro Alves <palves@redhat.com>
5171
5172 * remote.c (struct remote_state): Remove multi_process_aware,
5173 non_stop_aware, cond_tracepoints, cond_breakpoints,
5174 breakpoint_commands, fast_tracepoints, static_tracepoints,
5175 install_in_trace, disconnected_tracing,
5176 enable_disable_tracepoints, string_tracing, and
5177 augmented_libraries_svr4_read fields.
5178 (remote_multi_process_p): Move further below in the file.
5179 (struct packet_config): Add comments.
5180 (update_packet_config): Delete function.
5181 (show_packet_config_cmd): Use packet_config_support.
5182 (add_packet_config_cmd): Use NULL as set callback.
5183 (packet_ok): "set remote foo-packet"-style commands no longer
5184 change config->supported -- adjust.
5185 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5186 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5187 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5188 (PACKET_QNonStop, PACKET_multiprocess_feature)
5189 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5190 (PACKET_DisconnectedTracing_feature)
5191 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5192 (set_remote_protocol_packet_cmd): Delete function.
5193 (packet_config_support, packet_support): New functions.
5194 (set_remote_protocol_Z_packet_cmd): Don't call
5195 update_packet_config.
5196 (remote_query_attached, remote_pass_signals)
5197 (remote_program_signals, remote_threads_info)
5198 (remote_threads_extra_info, remote_start_remote): Use
5199 packet_support.
5200 (remote_start_remote): Use packet_config_support and
5201 packet_support.
5202 (init_all_packet_configs): Set all packets to unknown support,
5203 instead of calling update_packet_config.
5204 (remote_check_symbols): Use packet_support.
5205 (remote_supported_packet): Unconditionally set the packet config's
5206 support status.
5207 (remote_multi_process_feature, remote_non_stop_feature)
5208 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5209 (remote_breakpoint_commands_feature)
5210 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5211 (remote_install_in_trace_feature)
5212 (remote_disconnected_tracing_feature)
5213 (remote_enable_disable_tracepoint_feature)
5214 (remote_string_tracing_feature)
5215 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5216 (remote_protocol_features): Adjust to use remote_supported_packet
5217 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5218 "ConditionalTracepoints", "ConditionalBreakpoints",
5219 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5220 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5221 "EnableDisableTracepoints", and "tracenz".
5222 (remote_query_supported): Use packet_support.
5223 (remote_open_1): Adjust.
5224 (extended_remote_attach_1): Use packet_support. Switch on the
5225 result of packet_ok instead of checking whether the packet ended
5226 up disabled.
5227 (remote_vcont_resume): Use packet_support.
5228 (remote_resume, remote_stop_ns, fetch_register_using_p)
5229 (remote_prepare_to_store, store_register_using_P)
5230 (check_binary_download, remote_write_bytes): Use packet_support.
5231 (remote_vkill): Use packet_support. Switch on the result of
5232 packet_ok instead of checking whether the packet ended up
5233 disabled.
5234 (extended_remote_supports_disable_randomization): Use
5235 packet_support.
5236 (extended_remote_run): Switch on the result of packet_ok instead
5237 of checking whether the packet ended up disabled.
5238 (remote_insert_breakpoint, remote_remove_breakpoint)
5239 (remote_insert_watchpoint, remote_remove_watchpoint)
5240 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5241 packet_support.
5242 (remote_search_memory): Use packet_config_support.
5243 (remote_get_thread_local_address, remote_get_tib_address)
5244 (remote_hostio_send_command, remote_can_execute_reverse): Use
5245 packet_support.
5246 (remote_supports_cond_tracepoints)
5247 (remote_supports_cond_breakpoints)
5248 (remote_supports_fast_tracepoints)
5249 (remote_supports_static_tracepoints)
5250 (remote_supports_install_in_trace)
5251 (remote_supports_enable_disable_tracepoint)
5252 (remote_supports_string_tracing)
5253 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5254 the packet config says the feature is enabled or disabled.
5255 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5256 (remote_get_trace_status): Use packet_support.
5257 (remote_set_disconnected_tracing): Adjust to check whether the
5258 feature is enabled with packet_support.
5259 (remote_set_trace_buffer_size, remote_use_agent)
5260 (remote_can_use_agent, remote_supports_btrace): Use
5261 packet_support.
5262 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5263 Use packet_config_support.
5264 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5265 the packet config says the feature is enabled or disabled.
5266 (set_range_stepping): Use packet_support.
5267
bdb52a22
TT
52682014-04-25 Tom Tromey <tromey@redhat.com>
5269
5270 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5271 argument.
5272
e9475ead
SA
52732014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5274
5275 * NEWS: Mention support for C99 variable length arrays.
5276
82eacd52
JB
52772014-04-24 Joel Brobecker <brobecker@adacore.com>
5278
5279 * ada-lang.c (standard_exc): Expand introductory comment.
5280
01f9f808
MS
52812014-04-24 Michael Sturm <michael.sturm@mintel.com>
5282 Walfred Tedeschi <walfred.tedeschi@intel.com>
5283
5284 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5285 AVX512 registers.
5286 (amd64_linux_read_description): Add code to handle AVX512 xstate
5287 mask and return respective tdesc.
5288 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5289 and features/i386/x32-avx512-linux.c.
5290 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5291 (amd64_linux_core_read_description): Add code to handle AVX512
5292 xstate mask and return respective tdesc.
5293 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5294 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5295 calculation.
5296 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5297 (tdesc_amd64_avx512_linux): New prototype.
5298 (tdesc_x32_avx512_linux): Likewise.
5299 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5300 features/i386/x32-avx512.c.
5301 (amd64_ymm_avx512_names): New register names for pseudo
5302 registers YMM16-31.
5303 (amd64_ymmh_avx512_names): New register names for raw registers
5304 YMMH16-31.
5305 (amd64_k_names): New register names for K registers.
5306 (amd64_zmmh_names): New register names for ZMM raw registers.
5307 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5308 (amd64_xmm_avx512_names): New register names for XMM16-31
5309 registers.
5310 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5311 registers.
5312 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5313 if feature is present.
5314 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5315 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5316 (AMD64_NUM_REGS): Adjust to new number of registers.
5317 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5318 registers supplied via XSTATE by AVX512 registers.
5319 (i386_linux_read_description): Add case for AVX512.
5320 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5321 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5322 (i386_linux_core_read_description): Add case for AVX512.
5323 (i386_linux_init_abi): Install supported register note section
5324 for AVX512.
5325 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5326 AVX512.
5327 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5328 registers to be number of zmm7h + 1.
5329 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5330 * i386-tdep.c: Include features/i386/i386-avx512.c.
5331 (i386_zmm_names): Add ZMM pseudo register names array.
5332 (i386_zmmh_names): Add ZMM raw register names array.
5333 (i386_k_names): Add K raw register names array.
5334 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5335 registers. AVX512 has 16 more ZMM registers than there are YMM
5336 registers.
5337 (i386_zmmh_regnum_p): Add function to look up register number of
5338 ZMM raw registers.
5339 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5340 (i386_k_regnum_p): Likewise for K raw registers.
5341 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5342 registers added by AVX512.
5343 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5344 registers added by AVX512.
5345 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5346 added by AVX512.
5347 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5348 (i386_pseudo_register_name): Add ZMM pseudo registers.
5349 (i386_zmm_type): Construct and return vector registers type for ZMM
5350 registers.
5351 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5352 ZMM0-31 pseudo registers and K registers.
5353 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5354 and YMM16-31 registers from register cache.
5355 (i386_pseudo_register_write): Add code to write K, ZMM and
5356 YMM16-31 registers.
5357 (i386_register_reggroup_p): Add code to include/exclude AVX512
5358 registers in/from respective register groups.
5359 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5360 registers if feature is present in xcr0.
5361 (i386_gdbarch_init): Add code to initialize AVX512 feature
5362 variables in tdep structure, wire in pseudo registers and call
5363 initialize_tdesc_i386_avx512.
5364 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5365 variables.
5366 (i386_regnum): Add AVX512 registers.
5367 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5368 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5369 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5370 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5371 512 bits wide.
5372 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5373 (i386_ymm_avx512_regnum_p): Likewise.
5374 (i386_k_regnum_p): Likewise.
5375 (i386_zmm_regnum_p): Likewise.
5376 (i386_zmmh_regnum_p): Likewise.
5377 * i387-tdep.c : Update year in copyright notice.
5378 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5379 XSAVE buffer.
5380 (XSAVE_YMM_AVX512_ADDR): New macro.
5381 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5382 XSAVE buffer.
5383 (XSAVE_XMM_AVX512_ADDR): New macro.
5384 (xsave_avx512_k_offset): New table for K register offsets in
5385 XSAVE buffer.
5386 (XSAVE_AVX512_K_ADDR): New macro.
5387 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5388 in XSAVE buffer.
5389 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5390 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5391 buffer.
5392 (i387_collect_xsave): Add code to collect AVX512 registers from
5393 XSAVE buffer.
5394 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5395 of XMM16-31 registers.
5396 (I387_NUM_K_REGS): New define for number of K registers.
5397 (I387_K0_REGNUM): New define for K0 register number.
5398 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5399 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5400 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5401 registers.
5402 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5403 (I387_XMM16_REGNUM): New define for XMM16 register number.
5404 (I387_YMM0_REGNUM): New define for YMM0 register number.
5405 (I387_KEND_REGNUM): New define for last K register number.
5406 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5407 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5408 number.
5409 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5410 number.
5411 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5412 size.
5413 * features/Makefile: Add AVX512 related files.
5414 * features/i386/32bit-avx512.xml: New file.
5415 * features/i386/64bit-avx512.xml: Likewise.
5416 * features/i386/amd64-avx512-linux.c: Likewise.
5417 * features/i386/amd64-avx512-linux.xml: Likewise.
5418 * features/i386/amd64-avx512.c: Likewise.
5419 * features/i386/amd64-avx512.xml: Likewise.
5420 * features/i386/i386-avx512-linux.c: Likewise.
5421 * features/i386/i386-avx512-linux.xml: Likewise.
5422 * features/i386/i386-avx512.c: Likewise.
5423 * features/i386/i386-avx512.xml: Likewise.
5424 * features/i386/x32-avx512-linux.c: Likewise.
5425 * features/i386/x32-avx512-linux.xml: Likewise.
5426 * features/i386/x32-avx512.c: Likewise.
5427 * features/i386/x32-avx512.xml: Likewise.
5428 * regformats/i386/amd64-avx512-linux.dat: New file.
5429 * regformats/i386/amd64-avx512.dat: Likewise.
5430 * regformats/i386/i386-avx512-linux.dat: Likewise.
5431 * regformats/i386/i386-avx512.dat: Likewise.
5432 * regformats/i386/x32-avx512-linux.dat: Likewise.
5433 * regformats/i386/x32-avx512.dat: Likewise.
5434 * NEWS: Add note about new support for AVX512.
5435
5436
08351840
PA
54372014-04-23 Pedro Alves <palves@redhat.com>
5438
5439 * breakpoint.c (insert_bp_location): Tolerate errors if the
5440 breakpoint is set in a user-loaded objfile.
5441 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5442 location is marked shlib_disabled. If the breakpoint is set in a
5443 user-loaded objfile is a GDB-side memory breakpoint, validate it
5444 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5445 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5446 flag.
5447 * mem-break.c (memory_validate_breakpoint): New function.
5448 * objfiles.c (userloaded_objfile_contains_address_p): New
5449 function.
5450 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5451 * target.h (memory_validate_breakpoint): New declaration.
5452
076855f9
PA
54532014-04-23 Pedro Alves <palves@redhat.com>
5454
5455 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5456 the breakpoint is set in a shared library, only suppress
5457 errors for software breakpoints, not hardware breakpoints.
5458
483805cf
PA
54592014-04-22 Pedro Alves <palves@redhat.com>
5460
5461 * infrun.c (schedlock_applies): New function, factored out from
5462 find_thread_needs_step_over.
5463 (find_thread_needs_step_over): Use it.
5464 (switch_back_to_stepped_thread): Always clear trap_expected if the
5465 step over is finished. Return early if scheduler locking applies.
5466 Look for the stepping thread and a potential step-over thread with
5467 a single loop.
5468 (currently_stepping_or_nexting_callback): Delete.
5469
a75fef0e
NC
54702014-04-22 Nick Clifton <nickc@redhat.com>
5471
5472 * NEWS: Mention that ARM sim now supports tracing.
5473
48b6e87e
YQ
54742014-04-22 Yao Qi <yao@codesourcery.com>
5475
5476 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5477 to ...
5478 * tracefile.c (tracefile_fetch_registers): ... it. New
5479 function.
5480 * tracefile.h (tracefile_fetch_registers): Declare.
5481 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5482 tracefile_fetch_registers.
5483
17617f2d
EZ
54842014-04-19 Eli Zaretskii <eliz@gnu.org>
5485
5486 PR gdb/14018
5487 * windows-nat.c (thread_rec): Don't display a warning when
5488 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5489 fails for any reason, set th->suspended to -1, so that we don't
5490 try to resume such a thread. Also, don't return NULL in these
5491 cases, to avoid completely ruin the session due to "PC register is
5492 not available" error.
5493 (do_windows_fetch_inferior_registers): Check errors in
5494 GetThreadContext call.
5495 (windows_continue): Accept an additional argument KILLED; if not
5496 zero, ignore errors in the SetThreadContext call, since the
5497 inferior was killed and is shutting down.
5498 (windows_resume, get_windows_debug_event)
5499 (windows_create_inferior, windows_mourn_inferior)
5500 (windows_kill_inferior): All callers of windows_continue changed
5501 to adjust to its new calling sequence.
5502
5723a6fd
YQ
55032014-04-19 Yao Qi <yao@codesourcery.com>
5504
5505 * ctf.c (ctf_open): Call post_create_inferior.
5506
614d5099
YQ
55072014-04-19 Yao Qi <yao@codesourcery.com>
5508
5509 * ctf.c (handle_id): New static variable.
5510 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5511 value. Get the declaration of event "register" and get length
5512 of field "contents".
5513
dac3e710
YQ
55142014-04-19 Yao Qi <yao@codesourcery.com>
5515
5516 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5517
2bca57ba
SC
55182014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5519
5520 * valops.c (oload_method_static): Remove unnecessary argument
5521 METHOD. Update all callers.
5522
51d48146
PA
55232014-04-18 Pedro alves <palves@redhat.com>
5524 Tom Tromey <tromey@redhat.com>
5525
5526 PR backtrace/15558
5527 * frame.c (get_prev_frame_1): Rename to ...
5528 (get_prev_frame_always): ... this, and make extern. Adjust.
5529 (skip_artificial_frames): Use get_prev_frame_always.
5530 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5531 (get_frame_unwind_stop_reason): Adjust to rename.
5532 * frame.h (get_prev_frame_always): Declare.
5533 * inline-frame.c: Include frame.h.
5534 (inline_frame_this_id): Use get_prev_frame_always.
5535
1bdad2e0
TG
55362014-04-18 Tristan Gingold <gingold@adacore.com>
5537
5538 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5539 code by using bfd_mach_o_get_base_address.
5540
7ce16bd4
UW
55412014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5542
5543 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5544 (spu_ax_pseudo_register_collect): New function.
5545 (spu_ax_pseudo_register_push_stack): Likewise.
5546 (spu_dwarf_reg_to_regnum): Likewise.
5547 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5548
2ed3c037
UW
55492014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5550
5551 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5552 Replace FRAME argument with FRAME_ID.
5553 * gdbarch.c, gdbarch.h: Regenerate.
5554 * findvar.c (default_value_from_register): Add GDBARCH argument;
5555 replace FRAME by FRAME_ID. No longer call get_frame_id.
5556 (value_from_register): Update call to gdbarch_value_from_register.
5557 * value.h (default_value_from_register): Update prototype.
5558 * s390-linux-tdep.c (s390_value_from_register): Update interface
5559 and call to default_value_from_register.
5560 * spu-tdep.c (spu_value_from_register): Likewise.
5561
5562 * findvar.c (address_from_register): Remove TYPE argument.
5563 Do not call value_from_register; use gdbarch_value_from_register
5564 with null_frame_id instead.
5565 * value.h (address_from_register): Update prototype.
5566 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5567 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5568 address_from_register interface change.
5569
71e50e83
YQ
55702014-04-17 Yao Qi <yao@codesourcery.com>
5571
5572 * gdbtypes.h: Update comments to link to types and macros'
5573 definitions.
5574
7a23c549
SC
55752014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5576
5577 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5578
22869d73
KS
55792014-04-16 Keith Seitz <keiths@redhat.com>
5580
5581 PR gdb/15827
5582 * dwarf2read.c (skip_one_die): Check that all relative-offset
5583 sibling DIEs fall within range of the current reader's buffer.
5584 (read_partial_die): Likewise.
5585
c4f87ca6
KS
55862014-04-16 Keith Seitz <keiths@redhat.com>
5587
5588 PR c++/16597
5589 * cp-namespace.c (lookup_symbol_file): If the type name of
5590 `this' is NULL, return immediately.
5591
b50c8614
KS
55922014-04-14 Keith Seitz <keiths@redhat.com>
5593
5594 PR c++/16253
5595 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5596 from symbol_matches_domain in symtab.c. All local callers
5597 of symbol_matches_domain updated.
5598 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5599 search STRUCT_DOMAIN.
5600 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5601 independently. standard_lookup will do that automatically.
5602 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5603 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5604 (cp_lookup_symbol_in_namespace): Likewise.
5605 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5606 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5607 may return a STRUCT_DOMAIN match.
5608 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5609 * cp-support.c: Include language.h.
5610 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5611 VAR_DOMAIN.
5612 * psymtab.c (match_partial_symbol): Compare the requested
5613 domain with the symbol's domain directly.
5614 (lookup_partial_symbol): Likewise.
5615 * symtab.c (lookup_symbol_in_language): Explain when/why
5616 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5617 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5618 appropriate languages.
5619 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5620 and moved to ada-lang.c
5621 (lookup_block_symbol): Explain that this function only returns
5622 symbol matching the requested DOMAIN.
5623 Compare the requested domain with the symbol's domain directly.
5624 (iterate_over_symbols): Compare the requested domain with the
5625 symbol's domain directly.
5626 * symtab.h (symbol_matches_domain): Remove.
5627
3d567982
TT
56282014-04-14 Tom Tromey <tromey@redhat.com>
5629
5630 PR c++/15246:
5631 * c-exp.y (type_aggregate_p): New function.
5632 (qualified_name, classify_inner_name): Use it.
5633 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5634 and TYPE_TARGET_TYPE of an enum type.
5635 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5636 an enum type.
5637 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5638 handle TYPE_DECLARED_CLASS.
5639 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5640 types.
5641 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5642 * valops.c (enum_constant_from_type): New function.
5643 (value_aggregate_elt): Use it.
5644 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5645 TYPE_CODE_ENUM.
5646
c848d642
TT
56472014-04-14 Tom Tromey <tromey@redhat.com>
5648
5649 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5650 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5651 const.
5652 * value.h (value_aggregate_elt): Update.
5653
0626fc76
TT
56542014-04-14 Tom Tromey <tromey@redhat.com>
5655
5656 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5657
5ecaaa66
SA
56582014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5659
5660 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5661 (evaluate_subexp_standard): Pass noside argument.
5662 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5663 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5664 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5665 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5666 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5667
1612e0c0
SA
56682014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5669
5670 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5671 points to a constant blob.
5672
c451ebe5
SA
56732014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5674
5675 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5676 property and store it as the high bound and flag the range accordingly.
5677 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5678 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5679 * gdbtypes.h (enum range_flags): New enum.
5680 (struct range_bounds): Add flags member.
5681
1d42e4c4
SA
56822014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5683
5684 * c-typeprint.c (c_type_print_varspec_suffix): Added
5685 check for not yet resolved high bound. If unresolved, print
5686 "variable length" string to the console instead of random
5687 length.
5688
9f1f738a
SA
56892014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5690
5691 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5692 value.
5693 (ada_template_to_fixed_record_type_1): Likewise.
5694 (ada_to_fixed_type_1): Likewise.
5695 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5696 (cp_print_value): Likewise.
5697 * d-valprint.c (dynamic_array_type): Likewise.
5698 * findvar.c (address_of_variable): Likewise.
5699 * jv-valprint.c (java_value_print): Likewise.
5700 * valops.c (value_ind): Likewise.
5701 * value.c (coerce_ref): Likewise.
5702
3c8452d4
SA
57032014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5704
5705 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5706 value and retrieve the dynamic type size.
5707
4ad88275
SA
57082014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5709
5710 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5711 passed to sizeof is dynamic evaluate the argument to compute the length.
5712
80180f79
SA
57132014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5714 Joel Brobecker <brobecker@adacore.com>
5715
5716 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5717 (dwarf2_evaluate_property): New function.
5718 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5719 * dwarf2read.c (attr_to_dynamic_prop): New function.
5720 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5721 attribute.
5722 * gdbtypes.c: Include dwarf2loc.h.
5723 (is_dynamic_type): New function.
5724 (resolve_dynamic_type): New function.
5725 (resolve_dynamic_bounds): New function.
5726 (get_type_length): New function.
5727 (check_typedef): Use get_type_length to compute type length.
5728 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5729 (TYPE_LOW_BOUND_KIND): New macro.
5730 (is_dynamic_type): New function prototype.
5731 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5732 to resolve dynamic properties of the type. Update comment.
5733 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5734
a1556843
RH
57352014-04-14 Richard Henderson <rth@redhat.com>
5736
5737 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5738
0be03e84
DE
57392014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5740 Doug Evans <xdje42@gmail.com>
5741
5742 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5743 dereference TYPE_CODE_REF values.
5744
6b662e19
JB
57452014-04-11 Joel Brobecker <brobecker@adacore.com>
5746
5747 Revert the following changes due to regressions:
5748
5749 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5750 (dwarf2_evaluate_property): New function.
5751 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5752 * dwarf2read.c (attr_to_dynamic_prop): New function.
5753 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5754 attribute.
5755 * gdbtypes.c: Include dwarf2loc.h.
5756 (is_dynamic_type): New function.
5757 (resolve_dynamic_type): New function.
5758 (resolve_dynamic_bounds): New function.
5759 (get_type_length): New function.
5760 (check_typedef): Use get_type_length to compute type length.
5761 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5762 (TYPE_LOW_BOUND_KIND): New macro.
5763 (is_dynamic_type): New function prototype.
5764 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5765 to resolve dynamic properties of the type. Update comment.
5766 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5767
5768 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5769 passed to sizeof is dynamic evaluate the argument to compute the length.
5770
5771 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5772 value and retrieve the dynamic type size.
5773
5774 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5775 (ada_template_to_fixed_record_type_1): Likewise.
5776 (ada_to_fixed_type_1): Likewise.
5777 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5778 (cp_print_value): Likewise.
5779 * d-valprint.c (dynamic_array_type): Likewise.
5780 * eval.c (evaluate_subexp_with_coercion): Likewise.
5781 * findvar.c (address_of_variable): Likewise.
5782 * jv-valprint.c (java_value_print): Likewise.
5783 * valops.c (value_ind): Likewise.
5784 * value.c (coerce_ref): Likewise.
5785
5786 * c-typeprint.c (c_type_print_varspec_suffix): Added
5787 check for not yet resolved high bound. If unresolved, print
5788 "variable length" string to the console instead of random
5789 length.
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 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5799 points to a constant blob.
5800
5801 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5802 (evaluate_subexp_standard): Pass noside argument.
5803 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5804 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5805 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5806 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5807 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5808
245a5f0b
KS
58092014-04-11 Keith Seitz <keiths@redhat.com>
5810
5811 PR c++/16675
5812 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5813 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5814 reference types.
5815
3bce8237
SA
58162014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5817
5818 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5819 (evaluate_subexp_standard): Pass noside argument.
5820 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5821 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5822 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5823 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5824 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5825
92b09522
SA
58262014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5827
5828 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5829 points to a constant blob.
5830
e1969afb
SA
58312014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5832
5833 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5834 property and store it as the high bound and flag the range accordingly.
5835 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5836 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5837 * gdbtypes.h (enum range_flags): New enum.
5838 (struct range_bounds): Add flags member.
5839
b86138fb
SA
58402014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5841
5842 * c-typeprint.c (c_type_print_varspec_suffix): Added
5843 check for not yet resolved high bound. If unresolved, print
5844 "variable length" string to the console instead of random
5845 length.
5846
bcd629a4
SA
58472014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5848
5849 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5850 (ada_template_to_fixed_record_type_1): Likewise.
5851 (ada_to_fixed_type_1): Likewise.
5852 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5853 (cp_print_value): Likewise.
5854 * d-valprint.c (dynamic_array_type): Likewise.
5855 * eval.c (evaluate_subexp_with_coercion): Likewise.
5856 * findvar.c (address_of_variable): Likewise.
5857 * jv-valprint.c (java_value_print): Likewise.
5858 * valops.c (value_ind): Likewise.
5859 * value.c (coerce_ref): Likewise.
5860
04b19544
SA
58612014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5862
5863 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5864 value and retrieve the dynamic type size.
5865
26cb189f
SA
58662014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5867
5868 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5869 passed to sizeof is dynamic evaluate the argument to compute the length.
5870
37c1ab67
SA
58712014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5872
5873 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5874 (dwarf2_evaluate_property): New function.
5875 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5876 * dwarf2read.c (attr_to_dynamic_prop): New function.
5877 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5878 attribute.
5879 * gdbtypes.c: Include dwarf2loc.h.
5880 (is_dynamic_type): New function.
5881 (resolve_dynamic_type): New function.
5882 (resolve_dynamic_bounds): New function.
5883 (get_type_length): New function.
5884 (check_typedef): Use get_type_length to compute type length.
5885 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5886 (TYPE_LOW_BOUND_KIND): New macro.
5887 (is_dynamic_type): New function prototype.
5888 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5889 to resolve dynamic properties of the type. Update comment.
5890 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5891
729efb13
SA
58922014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5893
5894 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5895 declaring high/low bounds and change uses accordingly. Call
5896 create_range_type instead of create_static_range_type.
5897 * gdbtypes.c (create_range_type): New function.
5898 (create_range_type): Convert bounds into struct bound_prop and pass
5899 them to create_range_type.
5900 * gdbtypes.h (struct bound_prop): New struct.
5901 (create_range_type): New function prototype.
5902 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5903 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5904 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5905 part of the bound.
5906 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5907
0c9c3474
SA
59082014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5909
5910 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5911 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5912 * ada-lang.c: All uses of create_range_type updated.
5913 * coffread.c: All uses of create_range_type updated.
5914 * dwarf2read.c: All uses of create_range_type updated.
5915 * f-exp.y: All uses of create_range_type updated.
5916 * m2-valprint.c: All uses of create_range_type updated.
5917 * mdebugread.c: All uses of create_range_type updated.
5918 * stabsread.c: All uses of create_range_type updated.
5919 * valops.c: All uses of create_range_type updated.
5920 * valprint.c: All uses of create_range_type updated.
5921
9d497a19
PA
59222014-04-10 Pedro Alves <palves@redhat.com>
5923
5924 * breakpoint.c (single_step_breakpoints)
5925 (single_step_gdbarch): Move up in the file.
5926 (one_breakpoint_xfer_memory): New function, factored out from ...
5927 (breakpoint_xfer_memory): ... here. Also process single-step
5928 breakpoints.
5929
15a9128a
TG
59302014-04-09 Tristan Gingold <gingold@adacore.com>
5931
5932 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5933 comments.
5934 (darwin_decode_exception_message): Free port only after use.
5935
9c97a070
PL
59362014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5937
5938 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5939 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5940 when setting the size of call_length.
5941
7af389b8
SC
59422014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5943
5944 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5945 dereference TYPE_CODE_REF values.
5946
86ad98c3
JB
59472014-04-07 Joel Brobecker <brobecker@adacore.com>
5948
5949 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5950 end of warning message.
5951
b0aeadb3
DE
59522014-04-03 Doug Evans <dje@google.com>
5953
5954 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5955 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5956
5979d6b6
AM
59572014-04-02 Alan Modra <amodra@gmail.com>
5958
5959 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5960 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5961 (struct symbol_file_add_from_memory_args): Add size field.
5962 (find_vdso_size): New function.
5963 (add_vsyscall_page): Attempt to find vdso size.
5964
0d60c288
DE
59652014-04-01 Doug Evans <dje@google.com>
5966
5967 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5968
a41f2563
TG
59692014-04-01 Tristan Gingold <gingold@adacore.com>
5970
5971 * darwin-nat.c (darwin_encode_reply): Add prototype.
5972 (darwin_decode_exception_message): Reply to unknown inferiors.
5973 (darwin_decode_message): Handle message by id. Ignore message
5974 to unknown inferior.
5975 (darwin_wait): Discard unknown messages, add debug trace.
5976
11a865c8
DE
59772014-03-31 Doug Evans <dje@google.com>
5978
5979 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5980 comp_dir_string.
5981
770e7fc7
DE
59822014-03-31 Doug Evans <dje@google.com>
5983
5984 New option "set print symbol-loading".
5985 * NEWS: Mention it.
5986 * solib.c (solib_read_symbols): Only print symbol loading messages
5987 if requested.
5988 (solib_add): If symbol loading is in "brief" mode, notify user
5989 symbols are being loaded.
5990 (reload_shared_libraries_1): Ditto.
5991 * symfile.c (print_symbol_loading_off): New static global.
5992 (print_symbol_loading_brief): New static global.
5993 (print_symbol_loading_full): New static global.
5994 (print_symbol_loading_enums): New static global.
5995 (print_symbol_loading): New static global.
5996 (print_symbol_loading_p): New function.
5997 (symbol_file_add_with_addrs): Only print symbol loading messages
5998 if requested.
5999 (_initialize_symfile): Register "print symbol-loading" set/show
6000 command.
6001 * symfile.h (print_symbol_loading_p): Declare.
6002
c32c64b7
DE
60032014-03-30 Doug Evans <xdje42@gmail.com>
6004
6005 * infrun.c (set_last_target_status): New function.
6006 (handle_inferior_event): Call it.
6007
7c0bc051
DE
60082014-03-30 Doug Evans <xdje42@gmail.com>
6009
6010 * inferior.h (enum stop_kind): Improve comment.
6011
8776cfe9
JB
60122014-03-28 Joel Brobecker <brobecker@adacore.com>
6013
6014 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
6015 a reference, strip the reference layer before calling
6016 the lang_ops value_has_mutated callback.
6017
410a0ff2
SDJ
60182014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6019
6020 Remove some globals from our parser.
6021 * language.c (unk_lang_parser): Add "struct parser_state"
6022 argument.
6023 * language.h (struct language_defn) <la_parser>: Likewise.
6024 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6025 (initialize_expout): Add "struct parser_state" argument.
6026 Rewrite function to use the parser state.
6027 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6028 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6029 write_exp_elt_longcst, write_exp_elt_dblcst,
6030 write_exp_elt_decfloatcst, write_exp_elt_type,
6031 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6032 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6033 write_dollar_variable): Likewise.
6034 (parse_exp_in_context_1): Use parser state.
6035 (insert_type_address_space): Add "struct parser_state" argument.
6036 Use parser state.
6037 (increase_expout_size): New function.
6038 * parser-defs.h: Forward declare "struct language_defn" and
6039 "struct parser_state".
6040 (expout, expout_size, expout_ptr): Remove extern declarations.
6041 (parse_gdbarch, parse_language): Rewrite macro declarations to
6042 accept the parser state.
6043 (struct parser_state): New struct.
6044 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6045 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6046 write_exp_elt_decfloatcst, write_exp_elt_type,
6047 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6048 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6049 write_exp_msymbol, write_dollar_variable,
6050 mark_struct_expression, insert_type_address_space): Add "struct
6051 parser_state" argument.
6052 (increase_expout_size): New function.
6053 * utils.c (do_clear_parser_state): New function.
6054 (make_cleanup_clear_parser_state): Likewise.
6055 * utils.h (make_cleanup_clear_parser_state): New function
6056 prototype.
6057 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6058 Update calls to write_exp* in order to pass the parser state.
6059 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6060 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6061 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6062 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6063 * stap-probe.c (stap_parse_register_operand): Likewise.
6064 (stap_parse_single_operand): Likewise.
6065 (stap_parse_argument_1): Likewise.
6066 (stap_parse_argument): Use parser state.
6067 * stap-probe.h: Include "parser-defs.h".
6068 (struct stap_parse_info) <pstate>: New field.
6069 * c-exp.y (parse_type): Rewrite to use parser state.
6070 (yyparse): Redefine to c_parse_internal.
6071 (pstate): New global variable.
6072 (parse_number): Add "struct parser_state" argument.
6073 (write_destructor_name): Likewise.
6074 (type_exp): Update calls to write_exp* and similars in order to
6075 use parser state.
6076 (exp1, exp, variable, qualified_name, space_identifier,
6077 typename, typebase): Likewise.
6078 (write_destructor_name, parse_number, lex_one_token,
6079 classify_name, classify_inner_name, c_parse): Add "struct
6080 parser_state" argument. Update function to use parser state.
6081 * c-lang.h: Forward declare "struct parser_state".
6082 (c_parse): Add "struct parser_state" argument.
6083 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6084 (yyparse): Redefine macro to ada_parse_internal.
6085 (pstate): New variable.
6086 (write_int, write_object_renaming, write_var_or_type,
6087 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6088 type_int, type_long, type_long_long, type_float, type_double,
6089 type_long_double, type_char, type_boolean, type_system_address):
6090 Add "struct parser_state" argument.
6091 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6092 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6093 var_or_type, aggregate, aggregate_component_list,
6094 positional_list, others, component_group,
6095 component_associations): Update calls to write_exp* and similar
6096 functions in order to use parser state.
6097 (ada_parse, write_var_from_sym, write_int,
6098 write_exp_op_with_string, write_object_renaming,
6099 find_primitive_type, write_selectors, write_ambiguous_var,
6100 write_var_or_type, write_name_assoc, type_int, type_long,
6101 type_long_long, type_float, type_double, type_long_double,
6102 type_char, type_boolean, type_system_address): Add "struct
6103 parser_state" argument. Adjust function to use parser state.
6104 * ada-lang.c (parse): Likewise.
6105 * ada-lang.h: Forward declare "struct parser_state".
6106 (ada_parse): Add "struct parser_state" argument.
6107 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6108 calls to both functions.
6109 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6110 parser state.
6111 (yyparse): Redefine macro to f_parse_internal.
6112 (pstate): New variable.
6113 (parse_number): Add "struct parser_state" argument.
6114 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6115 and similars in order to use parser state.
6116 (parse_number): Adjust code to use parser state.
6117 (yylex): Likewise.
6118 (f_parse): New function.
6119 * f-lang.h: Forward declare "struct parser_state".
6120 (f_parse): Add "struct parser_state" argument.
6121 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6122 parser state.
6123 (yyparse): Redefine macro for java_parse_internal.
6124 (pstate): New variable.
6125 (push_expression_name, push_expression_name, insert_exp): Add
6126 "struct parser_state" argument.
6127 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6128 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6129 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6130 PostIncrementExpression, PostDecrementExpression,
6131 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6132 UnaryExpressionNotPlusMinus, CastExpression,
6133 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6134 RelationalExpression, EqualityExpression, AndExpression,
6135 ExclusiveOrExpression, InclusiveOrExpression,
6136 ConditionalAndExpression, ConditionalOrExpression,
6137 ConditionalExpression, Assignment, LeftHandSide): Update
6138 calls to write_exp* and similars in order to use parser state.
6139 (parse_number): Ajust code to use parser state.
6140 (yylex): Likewise.
6141 (java_parse): New function.
6142 (push_variable): Add "struct parser_state" argument. Adjust
6143 code to user parser state.
6144 (push_fieldnames, push_qualified_expression_name,
6145 push_expression_name, insert_exp): Likewise.
6146 * jv-lang.h: Forward declare "struct parser_state".
6147 (java_parse): Add "struct parser_state" argument.
6148 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6149 parser state.
6150 (yyparse): Redefine macro to m2_parse_internal.
6151 (pstate): New variable.
6152 (type_exp, exp, fblock, variable, type): Update calls to
6153 write_exp* and similars to use parser state.
6154 (yylex): Likewise.
6155 (m2_parse): New function.
6156 * m2-lang.h: Forward declare "struct parser_state".
6157 (m2_parse): Add "struct parser_state" argument.
6158 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6159 * objc-lang.h: Forward declare "struct parser_state".
6160 (end_msglist): Add "struct parser_state" argument.
6161 * p-exp.y (parse_type): Rewrite macro to use parser state.
6162 (yyparse): Redefine macro to pascal_parse_internal.
6163 (pstate): New variable.
6164 (parse_number): Add "struct parser_state" argument.
6165 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6166 write_exp* and similars in order to use parser state.
6167 (parse_number, yylex): Adjust code to use parser state.
6168 (pascal_parse): New function.
6169 * p-lang.h: Forward declare "struct parser_state".
6170 (pascal_parse): Add "struct parser_state" argument.
6171 * go-exp.y (parse_type): Rewrite macro to use parser state.
6172 (yyparse): Redefine macro to go_parse_internal.
6173 (pstate): New variable.
6174 (parse_number): Add "struct parser_state" argument.
6175 (type_exp, exp1, exp, variable, type): Update calls to
6176 write_exp* and similars in order to use parser state.
6177 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6178 to use parser state.
6179 (go_parse): Likewise.
6180 * go-lang.h: Forward declare "struct parser_state".
6181 (go_parse): Add "struct parser_state" argument.
6182
342587c4
DE
61832014-03-27 Doug Evans <dje@google.com>
6184
6185 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6186
33e80786
DE
61872014-03-27 Doug Evans <dje@google.com>
6188
6189 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6190 Remove argument abbrev_section. All callers updated.
6191
1dbab08b
DE
61922014-03-27 Doug Evans <dje@google.com>
6193
6194 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6195 addr_base, ranges_base.
6196
318d3177
KS
61972014-03-26 Keith Seitz <keiths@redhat.com>
6198
6199 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6200 types, not VAR_DOMAIN.
6201
1e54db15
SL
62022014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6203
6204 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6205 "ra" registers.
6206 * features/nios2-linux.c: Regenerated.
6207 * features/nios2.c: Regenerated.
6208
d3839ede
PA
62092014-03-25 Pedro Alves <palves@redhat.com>
6210
6211 * cli/cli-script.c (script_from_file): Force the interpreter to
6212 sync mode.
6213
7588d2ec
PL
62142014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6215
6216 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6217 small stack allocation.
6218
a6290449
TG
62192014-03-24 Tristan Gingold <gingold@adacore.com>
6220
6221 * darwin-nat.c (exc_server): Remove unused prototype.
6222 (darwin_dump_message): Correctly display data on x86_64.
6223 (darwin_encode_reply): Fix style.
6224 Add comments and fix indentation.
6225
31ae9d24 62262014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6227
6228 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6229
6339bfc4
DE
62302014-03-22 Doug Evans <xdje42@gmail.com>
6231
6232 * infcmd.c: Whitespace fixes.
6233 (interrupt_command): Merge two function comments into one.
6234
0a07590b
DE
62352014-03-22 Doug Evans <xdje42@gmail.com>
6236
6237 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6238 All uses updated.
6239
b55fbac4
YQ
62402014-03-22 Yao Qi <yao@codesourcery.com>
6241
6242 * remote.c (target_read_live_memory): Remove.
6243 (memory_xfer_live_readonly_partial): Rename it to
6244 remote_xfer_live_readonly_partial. Remove argument 'object'.
6245 All callers updated. Call remote_read_bytes_1
6246 instead of target_read_live_memory.
6247 * tracepoint.c (set_traceframe_number): Remove.
6248 (make_cleanup_restore_traceframe_number): Likewise .
6249 * tracepoint.h (set_traceframe_number): Remove declaration.
6250 (make_cleanup_restore_traceframe_number): Likewise.
6251
9217e74e
YQ
62522014-03-22 Yao Qi <yao@codesourcery.com>
6253
6254 * remote.c (remote_read_bytes): Move code on reading from the
6255 remote stub to ...
6256 (remote_read_bytes_1): ... here. New function.
6257
8acf9577
YQ
62582014-03-22 Yao Qi <yao@codesourcery.com>
6259
6260 * ctf.c (ctf_xfer_partial): Check the return value of
6261 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6262 return TARGET_XFER_UNAVAILABLE.
6263 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6264 * target.c (target_read_live_memory): Move it to remote.c.
6265 (memory_xfer_live_readonly_partial): Likewise.
6266 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6267 * remote.c (target_read_live_memory): Moved from target.c.
6268 (memory_xfer_live_readonly_partial): Likewise.
6269 (remote_read_bytes): Factored out from
6270 memory_xfer_partial_1.
6271
feef67ab
DE
62722014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6273
6274 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6275 NULL pointer.
6276
b65dc60b
PA
62772014-03-21 Pedro Alves <palves@redhat.com>
6278
6279 * infrun.c (normal_stop): Extend comment.
6280
b4ab256d
HZ
62812014-03-21 Hui Zhu <hui@codesourcery.com>
6282 Pedro Alves <palves@redhat.com>
6283
6284 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6285 static buffer.
6286 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6287 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6288 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6289
deba7593
MR
62902014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6291
6292 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6293 `z' formatted output modifier.
6294
1bff71c3
SDJ
62952014-03-20 Tom Tromey <tromey@redhat.com>
6296 Sergio Durigan Junior <sergiodj@redhat.com>
6297
6298 * probe.c (parse_probes): Turn assert into an ordinary error.
6299 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6300 exceptions when parsing probes. Rearrange the code for clarity.
6301
90e28950
TT
63022014-03-20 Tom Tromey <tromey@redhat.com>
6303
6304 PR gdb/14135
6305 * top.c (execute_command): Only dispatch events if the command
6306 started the target.
6307
beb460e8
PA
63082014-03-20 Tom Tromey <tromey@redhat.com>
6309
6310 PR cli/15718
6311 * infcall.c: Include event-top.h.
6312 (run_inferior_call): Call async_disable_stdin if needed.
6313
99619bea
PA
63142014-03-20 Pedro Alves <palves@redhat.com>
6315
6316 * infrun.c (prepare_to_proceed): Delete.
6317 (thread_still_needs_step_over): New function.
6318 (find_thread_needs_step_over): New function.
6319 (proceed): If the current thread needs a step-over, set its
6320 steping_over_breakpoint flag. Adjust to use
6321 find_thread_needs_step_over instead of prepare_to_proceed.
6322 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6323 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6324 breakpoint.
6325 (switch_back_to_stepped_thread): Step over breakpoints of all
6326 threads not the stepping thread, before switching back to the
6327 stepping thread.
6328
2adfaa28
PA
63292014-03-20 Pedro Alves <palves@redhat.com>
6330
6331 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6332 extern.
6333 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6334 * infrun.c (saved_singlestep_ptid)
6335 (stepping_past_singlestep_breakpoint): Delete.
6336 (resume): Remove stepping_past_singlestep_breakpoint handling.
6337 (proceed): Store the prev_pc of the stepping thread too.
6338 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6339 singlestep_pc.
6340 (enum infwait_states): Delete infwait_thread_hop_state.
6341 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6342 field.
6343 (handle_inferior_event): Adjust.
6344 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6345 handling and the thread-hop code. Before removing single-step
6346 breakpoints, check whether the thread hit a single-step breakpoint
6347 of another thread. If it did, the trap is not a random signal.
6348 (switch_back_to_stepped_thread): If the event thread hit a
6349 single-step breakpoint, unblock it before switching to the
6350 stepping thread. Handle the case of the stepped thread having
6351 advanced already.
6352 (keep_going): Handle the case of the current thread moving past a
6353 single-step breakpoint.
6354
31e77af2
PA
63552014-03-20 Pedro Alves <palves@redhat.com>
6356
6357 PR breakpoints/7143
6358 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6359 are being stepped over.
6360 (breakpoint_address_match): Make extern.
6361 * breakpoint.h (breakpoint_address_match): New declaration.
6362 * inferior.h (stepping_past_instruction_at): New declaration.
6363 * infrun.c (struct step_over_info): New type.
6364 (step_over_info): New global.
6365 (set_step_over_info, clear_step_over_info)
6366 (stepping_past_instruction_at): New functions.
6367 (handle_inferior_event): Clear the step-over info when
6368 trap_expected is cleared.
6369 (resume): Remove now stale comment.
6370 (clear_proceed_status): Clear step-over info.
6371 (proceed): Adjust step-over handling to set or clear the step-over
6372 info instead of removing all breakpoints.
6373 (handle_signal_stop): When setting up a thread-hop, don't remove
6374 breakpoints here.
6375 (stop_stepping): Clear step-over info.
6376 (keep_going): Adjust step-over handling to set or clear step-over
6377 info and then always inserting breakpoints, instead of removing
6378 all breakpoints when stepping over one.
6379
b9f437de
PA
63802014-03-20 Pedro Alves <palves@redhat.com>
6381
6382 * infrun.c (previous_inferior_ptid): Adjust comment.
6383 (deferred_step_ptid): Delete.
6384 (infrun_thread_ptid_changed, prepare_to_proceed)
6385 (init_wait_for_inferior): Adjust.
6386 (handle_signal_stop): Delete deferred_step_ptid handling.
6387
06c868a8
JK
63882014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6389
6390 PR gdb/15358
6391 * defs.h (sync_quit_force_run): New declaration.
6392 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6393 * event-top.c (async_sigterm_handler): New declaration.
6394 (async_sigterm_token): New variable.
6395 (async_init_signals): Create also async_sigterm_token.
6396 (async_sigterm_handler): New function.
6397 (sync_quit_force_run): New variable.
6398 (handle_sigterm): Replace quit_force call by other calls.
6399 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6400
dea80df0
MR
64012014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6402
6403 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6404 offset into SPE pseudo registers.
6405
0c7e1a46
PA
64062014-03-18 Pedro Alves <palves@redhat.com>
6407
6408 PR gdb/13860
6409 * inferior.h (print_stop_event): Declare.
6410 * infrun.c (print_stop_event): New, factored out from ...
6411 (normal_stop): ... this.
6412 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6413 of bpstat_print/print_stack_frame.
6414
9c1fcd01
TT
64152014-03-17 Tom Tromey <tromey@redhat.com>
6416
6417 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6418
11aa919a
PMR
64192014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6420
6421 * ada-lang.c (decode_constrained_packed_array): Perform a
6422 minimal coercion for reference with coerce_ref instead of
6423 ada_coerce_ref.
6424
d4ccb5e0
TG
64252014-03-17 Tristan Gingold <gingold@adacore.com>
6426
6427 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6428 (darwin_solib_create_inferior_hook): Emit a warning if version
6429 is unhandled.
6430
49840f2a
UW
64312014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6432
6433 * python/py-value.c (get_field_flag): Cast flag_name argument to
6434 PyObject_GetAttrString to support Python 2.4.
6435
ed4123e5
JK
64362014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6437
6438 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6439 (Global Maintainers): Remove Jan Kratochvil.
6440
d6b64346
PA
64412014-03-14 Pedro Alves <palves@redhat.com>
6442
6443 * inferior.h (terminal_ours_for_output): Rename to ...
6444 (child_terminal_ours_for_output): ... this.
6445 (terminal_save_ours): Rename to ...
6446 (child_terminal_save_ours): ... this.
6447 (terminal_ours): Rename to ...
6448 (child_terminal_ours): ... this.
6449 (terminal_inferior): Rename to ...
6450 (child_terminal_inferior): ... this.
6451 (terminal_init_inferior): Rename to ...
6452 (child_terminal_init_inferior): ... this.
6453 (terminal_init_inferior_with_pgrp): Rename to ...
6454 (child_terminal_init_inferior_with_pgrp): ... this.
6455 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6456 (child_terminal_init_with_pgrp): ... this.
6457 (terminal_save_ours): Rename to ...
6458 (child_terminal_save_ours): ... this.
6459 (terminal_init_inferior): Rename to ...
6460 (child_terminal_init): ... this. Adjust.
6461 (terminal_inferior): Rename to ...
6462 (child_terminal_inferior): ... this.
6463 (terminal_ours_for_output): Rename to ...
6464 (child_terminal_ours_for_output): ... this. Adjust.
6465 (terminal_ours): Rename to ...
6466 (child_terminal_ours): ... this.
6467 (terminal_ours_1): Rename to ...
6468 (child_terminal_ours_1): ... this. Adjust.
6469 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6470 * windows-nat.c (do_initial_windows_stuff): Adjust.
6471 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6472 (gnu_terminal_init): ... this. Adjust.
6473 (gnu_target): Adjust.
6474 * inf-child.c (inf_child_target): Adjust.
6475
5a1e8c7a
DE
64762014-03-13 Doug Evans <xdje42@gmail.com>
6477
6478 PR guile/16612
6479 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6480 new eq?-hashtab.
6481
350e1a76
DE
64822014-03-13 Doug Evans <xdje42@gmail.com>
6483
6484 * value.c (record_latest_value): Call release_value_or_incref
6485 instead of release_value.
6486
a69900ae
PA
64872014-03-13 Pedro Alves <palves@redhat.com>
6488
6489 * procfs.c (procfs_target): Don't override to_shortname,
6490 to_longname or to_doc.
6491
5db9f0bd
PA
64922014-03-13 Pedro Alves <palves@redhat.com>
6493
6494 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6495 Unix in user visible strings.
6496
5e3a2c38
SS
64972014-03-12 Stan Shebs <stan@codesourcery.com>
6498
6499 * gdbtypes.h: Annotate comments for Doxygen, add a page
6500 block comment with some general info.
6501
8bc2fe48
PA
65022014-03-12 Pedro Alves <palves@redhat.com>
6503
6504 * infcmd.c (prepare_execution_command): New function, factored out
6505 from several execution commands.
6506 (run_command_1, continue_command, step_1, jump_command)
6507 (signal_command, until_command, advance_command, finish_command)
6508 (attach_command): Use prepare_execution_command.
6509
638c5f49
OJ
65102014-03-12 Omair Javaid <omair.javaid@linaro.org>
6511
6512 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6513 (MAX_BPTS): Define.
6514 (MAX_WPTS): Define.
6515 (struct arm_linux_thread_points): Removed.
6516 (struct arm_linux_process_info): New.
6517 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6518 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6519 (arm_linux_find_breakpoints_by_tid): Removed.
6520 (struct arch_lwp_info): New.
6521 (arm_linux_find_process_pid): New functions.
6522 (arm_linux_add_process): New functions.
6523 (arm_linux_process_info_get): New functions.
6524 (arm_linux_forget_process): New function.
6525 (arm_linux_get_debug_reg_state): New function.
6526 (struct update_registers_data): New.
6527 (update_registers_callback): New function.
6528 (arm_linux_insert_hw_breakpoint1): Updated.
6529 (arm_linux_remove_hw_breakpoint1): Updated.
6530 (arm_linux_insert_hw_breakpoint): Updated.
6531 (arm_linux_remove_hw_breakpoint): Updated.
6532 (arm_linux_insert_watchpoint): Updated.
6533 (arm_linux_remove_watchpoint): Updated.
6534 (arm_linux_new_thread): Updated.
6535 (arm_linux_prepare_to_resume): New function.
6536 (arm_linux_new_fork): New function.
6537 (_initialize_arm_linux_nat): Updated.
6538
6d03af93
PA
65392014-03-12 Pedro Alves <palves@redhat.com>
6540
6541 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6542
b3ccfe11
TT
65432014-03-12 Tom Tromey <tromey@redhat.com>
6544
6545 * inf-child.c (return_zero): New function.
6546 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6547 * aix-thread.c (aix_thread_inferior_created): New function.
6548 (aix_thread_attach): Remove.
6549 (init_aix_thread_ops): Don't set to_attach.
6550 (_initialize_aix_thread): Register inferior_created observer.
6551 * corelow.c (init_core_ops): Don't set to_attach or
6552 to_create_inferior.
6553 * exec.c (init_exec_ops): Don't set to_attach or
6554 to_create_inferior.
6555 * infcmd.c (run_command_1): Use find_run_target. Make direct
6556 target calls.
6557 (attach_command): Use find_attach_target. Make direct target
6558 calls.
6559 * record-btrace.c (init_record_btrace_ops): Don't set
6560 to_create_inferior.
6561 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6562 Remove.
6563 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6564 set to_create_inferior.
6565 * target.c (complete_target_initialization): Add assertion.
6566 (target_create_inferior): Remove.
6567 (find_default_attach, find_default_create_inferior): Remove.
6568 (find_attach_target, find_run_target): New functions.
6569 (find_default_is_async_p, find_default_can_async_p)
6570 (target_supports_non_stop, target_attach): Remove.
6571 (init_dummy_target): Don't set to_create_inferior or
6572 to_supports_non_stop.
6573 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6574 TARGET_DEFAULT_FUNC.
6575 <to_create_inferior>: Add comment.
6576 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6577 TARGET_DEFAULT_RETURN.
6578 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6579 (find_attach_target, find_run_target): Declare.
6580 (target_create_inferior): Remove.
6581 (target_has_execution_1): Update comment.
6582 (target_supports_non_stop): Remove.
6583 * target-delegates.c: Rebuild.
6584
91f83b02
PA
65852014-03-12 Pedro Alves <palves@redhat.com>
6586
6587 * inf-child.h: Update comment to not mention Unix.
6588
f1aea813
PA
65892014-03-12 Pedro Alves <palves@redhat.com>
6590
6591 * inf-child.c: Update top comment to not mention Unix. Add
6592 generic comment describing how this target is meant to be used.
6593 (inf_child_post_attach, inf_child_post_startup_inferior)
6594 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6595 Unix in comment.
6596
ee8e9165
PA
65972014-03-12 Pedro Alves <palves@redhat.com>
6598
6599 * nto-procfs.c: Include inf-child.h.
6600 (procfs_ops): Delete global.
6601 (procfs_can_run): Delete method.
6602 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6603 target pointer instead of referencing procfs_ops.
6604 (procfs_prepare_to_store): Delete.
6605 (init_procfs_ops): Delete function.
6606 (procfs_target): New function, based on init_procfs_ops, but
6607 inherit inf_child_target.
6608 (_initialize_procfs): Use procfs_target.
6609
51a9c8c5
PA
66102014-03-12 Pedro Alves <palves@redhat.com>
6611
6612 * windows-nat.c: Include inf-child.h.
6613 (windows_ops): Delete global.
6614 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6615 methods.
6616 (init_windows_ops): Delete function.
6617 (windows_target): New function, based on init_windows_ops, but
6618 inherit inf_child_target.
6619 (_initialize_windows_nat): Use windows_target. Install x86
6620 specific target methods here.
6621
c1966e26
DE
66222014-03-10 Doug Evans <xdje42@gmail.com>
6623
6624 * guile/guile.c (call_initialize_gdb_module): New function.
6625 (initialize_guile): Replace call to scm_init_guile with call to
6626 scm_with_guile.
6627
023db19c
JB
66282014-03-10 Joel Brobecker <brobecker@adacore.com>
6629
6630 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6631 in call to TYPE_CODE macro.
6632
5ec18f2b
JG
66332014-03-10 Jerome Guitton <guitton@adacore.com>
6634
8668be63
JB
6635 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6636 Resolve tagged types to full view.
5ec18f2b 6637
7d03f2eb
HZ
66382014-03-10 Hui Zhu <hui@codesourcery.com>
6639
6640 * target.h (target_insert_breakpoint): Remove "hardware" from its
6641 comments.
6642
c5164cbc
DE
66432014-03-07 Doug Evans <dje@google.com>
6644
6645 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6646
c4a3fee2
DE
66472014-03-07 Doug Evans <dje@google.com>
6648
6649 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6650 Remove unused local comp_dir_attr. Assert exactly one of
6651 stub_comp_unit_die, stub_comp_dir is non-NULL.
6652
3156469c
JB
66532014-03-07 Joel Brobecker <brobecker@adacore.com>
6654
6655 * target.h (complete_target_initialization, add_target):
6656 Add comment.
6657
c1a7b7c6
PA
66582014-03-07 Pedro Alves <palves@redhat.com>
6659
6660 * go32-nat.c: Include inf-child.h.
6661 (go32_ops): Delete global.
6662 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6663 Delete methods.
6664 (go32_create_inferior): Push the passed in target pointer instead
6665 of referencing go32_ops.
6666 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6667 (go32_target): New function, based on init_go32_ops, but inherit
6668 inf_child_target.
6669 (_initialize_go32_nat): Use go32_target. Move parts of
6670 init_go32_ops here.
6671
d3c1a85f
JB
66722014-03-06 Joel Brobecker <brobecker@adacore.com>
6673
6674 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6675 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6676 SYMBOL_VALUE_ADDRESS.
6677 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6678
5fa1d40e
YQ
66792014-03-06 Yao Qi <yao@codesourcery.com>
6680
6681 * breakpoint.c (get_tracepoint_by_number): Remove argument
6682 optional_p. All callers updated. Adjust comments. Update
6683 output message.
6684 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6685
0c13193f
YQ
66862014-03-06 Yao Qi <yao@codesourcery.com>
6687
6688 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6689 early if get_number returns zero. Use 'p' instead of 'args'.
6690
2217da06
YQ
66912014-03-06 Yao Qi <yao@codesourcery.com>
6692
6693 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6694 message.
6695
cc3da688
YQ
66962014-03-06 Yao Qi <yao@codesourcery.com>
6697
6698 PR breakpoints/16508
6699 * tracepoint.c (check_trace_running): New function.
6700 (trace_find_command): Move code to check_trace_running and
6701 call check_trace_running.
6702 (trace_find_pc_command): Likewise.
6703 (trace_find_tracepoint_command): Likewise.
6704 (trace_find_line_command): Likewise.
6705 (trace_find_range_command): Likewise.
6706 * tracepoint.h (check_trace_running): Likewise.
6707 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6708
6a5f844b
YQ
67092014-03-06 Yao Qi <yao@codesourcery.com>
6710
6711 * target.h (struct target_ops) <to_traceframe_info>: Use
6712 TARGET_DEFAULT_NORETURN (tcomplain ()).
6713 * target-delegates.c: Regenerated.
6714
0f26cec1
PA
67152014-03-05 Pedro Alves <palves@redhat.com>
6716
6717 PR gdb/16575
6718 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6719 void. Update comment.
6720 (dcache_xfer_memory): Delete.
6721 (dcache_read_memory_partial): New, based on the read bits of
6722 dcache_xfer_memory.
6723 (dcache_update): Add status parameter. Use ULONGEST for len, and
6724 adjust. Discard cache lines if the reason for the update was
6725 error.
6726 * dcache.h (dcache_xfer_memory): Delete declaration.
6727 (dcache_read_memory_partial): New declaration.
6728 (dcache_update): Update prototype.
6729 * target.c (raw_memory_xfer_partial): Update the dcache here.
6730 (memory_xfer_partial_1): Don't handle dcache writes here.
6731
b2b255bd
MF
67322014-03-05 Mike Frysinger <vapier@gentoo.org>
6733
6734 * remote-sim.c (gdbsim_load): Add const to prog.
6735
5d9cf8a4
TT
67362014-03-03 Tom Tromey <tromey@redhat.com>
6737
6738 * elfread.c (probe_key): Change to bfd_data.
6739 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6740 now per-BFD, not per-objfile.
6741 * stap-probe.c (stap_probe_destroy): Update comment.
6742 (handle_stap_probe): Allocate on the per-BFD obstack.
6743
729662a5
TT
67442014-03-03 Tom Tromey <tromey@redhat.com>
6745
6746 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6747 * breakpoint.c (create_longjmp_master_breakpoint): Use
6748 get_probe_address.
6749 (add_location_to_breakpoint, bkpt_probe_insert_location)
6750 (bkpt_probe_remove_location): Update.
6751 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6752 * elfread.c (elf_symfile_relocate_probe): Remove.
6753 (elf_probe_fns): Update.
6754 (insert_exception_resume_breakpoint): Change type of "probe"
6755 parameter to bound_probe.
6756 (check_exception_resume): Update.
6757 * objfiles.c (objfile_relocate1): Don't relocate probes.
6758 * probe.c (bound_probe_s): New typedef.
6759 (parse_probes): Use get_probe_address. Set sal's objfile.
6760 (find_probe_by_pc): Return a bound_probe.
6761 (collect_probes): Return a VEC(bound_probe_s).
6762 (compare_probes): Update.
6763 (gen_ui_out_table_header_info): Change type of "probes"
6764 parameter. Update.
6765 (info_probes_for_ops): Update.
6766 (get_probe_address): New function.
6767 (probe_safe_evaluate_at_pc): Update.
6768 * probe.h (struct probe_ops) <get_probe_address>: New field.
6769 <set_semaphore, clear_semaphore>: Add objfile parameter.
6770 (struct probe) <objfile>: Remove field.
6771 <arch>: New field.
6772 <address>: Update comment.
6773 (struct bound_probe): New.
6774 (find_probe_by_pc): Return a bound_probe.
6775 (get_probe_address): Declare.
6776 * solib-svr4.c (struct probe_and_action) <address>: New field.
6777 (hash_probe_and_action, equal_probe_and_action): Update.
6778 (register_solib_event_probe): Add address parameter.
6779 (solib_event_probe_at): Update.
6780 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6781 get_probe_address.
6782 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6783 (stap_get_probe_address): New function.
6784 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6785 (compile_probe_arg): Update.
6786 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6787 address.
6788 (handle_stap_probe): Don't relocate the probe.
6789 (stap_relocate): Remove.
6790 (stap_gen_info_probes_table_values): Update.
6791 (stap_probe_ops): Remove stap_relocate.
6792 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6793 (debug_sym_probe_fns): Update.
6794 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6795 * symtab.c (init_sal): Use memset.
6796 * symtab.h (struct symtab_and_line) <objfile>: New field.
6797 * tracepoint.c (start_tracing, stop_tracing): Update.
6798
ff887920
TT
67992014-03-03 Tom Tromey <tromey@redhat.com>
6800
6801 * probe.h (parse_probes, find_probe_by_pc)
6802 (find_probes_in_objfile): Fix comments.
6803
f0407826
DE
68042014-03-02 Doug Evans <xdje42@gmail.com>
6805
6806 * infrun.c (handle_signal_stop): Replace test for
6807 TARGET_WAITKIND_STOPPED with an assert.
6808
35e6a711
DE
68092014-03-02 Doug Evans <xdje42@gmail.com>
6810
6811 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6812
667f9d0b
DE
68132014-03-02 Doug Evans <xdje42@gmail.com>
6814
6815 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6816
dc92ace0
MK
68172014-03-01 Mark Kettenis <kettenis@gnu.org>
6818
6819 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6820
a900370f
MK
68212014-03-01 Mark Kettenis <kettenis@gnu.org>
6822
6823 * i386obsd-nat.c: Include "obsd-nat.h".
6824 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6825 add_target.
6826 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6827
b72a7981
MK
68282014-03-01 Mark Kettenis <kettenis@gnu.org>
6829
6830 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6831
96c70aba
MK
68322014-03-01 Mark Kettenis <kettenis@gnu.org>
6833
6834 * mips64obsd-nat.c: Include "obsd-nath".
6835 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6836 add_target
6837 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6838
874a80af
MK
68392014-03-01 Mark Kettenis <kettenis@gnu.org>
6840
8fd408f1
MK
6841 * amd64obsd-nat.c: Include "obsd-nat,h.
6842 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6843 add_target.
874a80af
MK
6844 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6845
9cf95373
SC
68462014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6847
6848 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6849 (find_overload_match): Update call to find_oload_champ.
6850 (find_oload_champ_namespace_loop): Likewise
6851
863e4da4
MK
68522014-02-28 Mark Kettenis <kettenis@gnu.org>
6853
025cac40
MK
6854 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6855
1ed586ce
MK
6856 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6857 * config/sparc/obsd64.mh: New file.
6858 * sparc64obsd-nat.c: New file.
6859
863e4da4
MK
6860 * obsd-nat.h: New file.
6861 * obsd-nat.c: New file.
6862 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6863 (ALLDEPFILES): Add obsd-nat.c.
6864
89de4da4
TT
68652014-02-28 Tom Tromey <tromey@redhat.com>
6866
6867 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6868 * cli-out.h (cli_ui_out_impl): Now const.
6869 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6870 * ui-out.c (struct ui_out) <impl>: Now const.
6871 (default_ui_out_impl): Now const.
6872 (ui_out_new): Make 'impl' parameter const.
6873 * ui-out.h (ui_out_new): Update.
6874
c725e7b6
MK
68752014-02-27 Mark Kettenis <kettenis@gnu.org>
6876
6877 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6878
670b46b3
MK
68792014-02-27 Mark Kettenis <kettenis@gnu.org>
6880
6881 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6882
c91550fc
JK
68832014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6884
6885 Additional PR 8882 fix.
6886 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6887
2fa0369e
PA
68882014-02-27 Pedro Alves <palves@redhat.com>
6889
6890 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6891 isn't set.
6892
d632a097
PA
68932014-02-27 Pedro Alves <palves@redhat.com>
6894
6895 PR 12702
6896 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6897 * nat/linux-waitpid.c: Include string.h.
6898 (status_to_str): Moved here and made extern.
6899 * nat/linux-waitpid.h (status_to_str): New declaration.
6900
2ebd5a35
HZ
69012014-02-27 Hui Zhu <hui@codesourcery.com>
6902
6903 PR 12702
6904 * infrun.c (ptid_match): Move ...
6905 * common/ptid.c (ptid_match): ... here.
6906 * inferior.h (ptid_match): Move ...
6907 * common/ptid.h (ptid_match): ... here.
6908
3cdd631f
MK
69092014-02-27 Mark Kettenis <kettenis@gnu.org>
6910
6911 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6912 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6913 gdb_target_obs.
6914
bee30a64
MK
69152014-02-27 Mark Kettenis <kettenis@gnu.org>
6916
6917 * obsd-tdep.c (obsd_auxv_parse): New function.
6918 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6919
6920 * gdbarch.sh (auxv_parse): New.
6921 * gdbarch.h: Regenerated.
6922 * gdbarch.c: Regenerated.
6923 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6924
7a5a839f
LC
69252014-02-26 Ludovic Courtès <ludo@gnu.org>
6926
6927 * guile/scm-value.c (gdbscm_history_append_x): New function.
6928 (value_functions): Add it.
6929
31aa7e4e
JB
69302014-02-27 Joel Brobecker <brobecker@adacore.com>
6931
6932 * dwarf2read.c (attr_value_as_address): New function.
6933 (dwarf2_find_base_address, read_call_site_scope): Use
6934 attr_value_as_address in place of DW_ADDR.
6935 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6936 the low and high addresses. Slight rework of the handling
6937 of the high pc being a constant form, and limit it to
6938 DWARF verson 4 or higher.
6939 (dwarf2_record_block_ranges): Likewise.
6940 (read_partial_die): Likewise.
6941 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6942
9b333ba3
TT
69432014-02-26 Tom Tromey <tromey@redhat.com>
6944
6945 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6946
5f6cac40
TT
69472014-02-26 Tom Tromey <tromey@redhat.com>
6948
6949 * elfread.c (elf_read_minimal_symbols): Return early if
6950 minimal symbols have already been read. Add "ei" parameter.
6951 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6952 * minsyms.c (prim_record_minimal_symbol_full): Update.
6953 * objfiles.h (struct objstats) <n_minsyms>: Move...
6954 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6955 * symmisc.c (print_objfile_statistics): Update.
6956
2750ef27
TT
69572014-02-26 Tom Tromey <tromey@redhat.com>
6958
6959 * elfread.c (elf_read_minimal_symbols): New function, from
6960 elf_symfile_read.
6961 (elf_symfile_read): Call it.
6962
34643a32
TT
69632014-02-26 Tom Tromey <tromey@redhat.com>
6964
6965 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6966 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6967 (lookup_minimal_symbol_solib_trampoline)
6968 (lookup_minimal_symbol_by_pc_section_1)
6969 (lookup_minimal_symbol_and_objfile): Update.
6970 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6971 Don't allocate a minimal symbol if minsyms have already been read.
6972 (build_minimal_symbol_hash_tables): Update.
6973 (install_minimal_symbols): Do nothing if minsyms already read.
6974 Use the per-BFD obstack.
6975 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6976 * objfiles.c (allocate_objfile): Call
6977 terminate_minimal_symbol_table later.
6978 (have_minimal_symbols): Update.
6979 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6980 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6981 Move from struct objfile.
6982 <minsyms_read>: New field.
6983 (struct objfile) <msymbols, minimal_symbol_count,
6984 msymbol_hash, msymbol_demangled_hash>: Move.
6985 (ALL_OBJFILE_MSYMBOLS): Update.
6986 * symfile.c (read_symbols): Set minsyms_read.
6987 (reread_symbols): Update.
6988 * symmisc.c (dump_objfile, dump_msymbols): Update.
6989
2273f0ac
TT
69902014-02-26 Tom Tromey <tromey@redhat.com>
6991
6992 * minsyms.c (msymbols_sort): Remove.
6993 * minsyms.h (msymbols_sort): Remove.
6994 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6995 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6996 * elfread.c (elf_symtab_read): Don't add section offsets.
6997 * xcoffread.c (record_minimal_symbol): Don't add section offset
6998 to minimal symbol address.
6999 * somread.c (text_offset, data_offset): Remove.
7000 (som_symtab_read): Don't add section offsets to minimal symbol
7001 addresses.
7002 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
7003 Don't add section offsets to minimal symbols.
7004 * coffread.c (coff_symtab_read): Don't add section offsets
7005 to minimal symbol addresses.
7006 * machoread.c (macho_symtab_add_minsym): Don't add section offset
7007 to minimal symbol addresses.
7008 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
7009 section offset to minimal symbol addresses.
7010 * mdebugread.c (parse_partial_symbols): Don't add section
7011 offset to minimal symbol addresses.
7012 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
7013 offset to minimal symbol addresses.
7014
77e371c0
TT
70152014-02-26 Tom Tromey <tromey@redhat.com>
7016
7017 * ada-lang.c (ada_main_name): Update.
7018 (ada_add_standard_exceptions): Update.
7019 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7020 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7021 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7022 * auxv.c (ld_so_xfer_auxv): Update.
7023 * avr-tdep.c (avr_scan_prologue): Update.
7024 * ax-gdb.c (gen_var_ref): Update.
7025 * blockframe.c (get_pc_function_start)
7026 (find_pc_partial_function_gnu_ifunc): Update.
7027 * breakpoint.c (create_overlay_event_breakpoint)
7028 (create_longjmp_master_breakpoint)
7029 (create_std_terminate_master_breakpoint)
7030 (create_exception_master_breakpoint): Update.
7031 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7032 * c-valprint.c (c_val_print): Update.
7033 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7034 * common/agent.c (agent_look_up_symbols): Update.
7035 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7036 * dwarf2loc.c (call_site_to_target_addr): Update.
7037 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7038 * elfread.c (elf_gnu_ifunc_record_cache)
7039 (elf_gnu_ifunc_resolve_by_got): Update.
7040 * findvar.c (default_read_var_value): Update.
7041 * frame.c (inside_main_func): Update.
7042 * frv-tdep.c (frv_frame_this_id): Update.
7043 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7044 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7045 Update.
7046 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7047 (hppa_hpux_find_dummy_bpaddr): Update.
7048 * hppa-tdep.c (hppa_symbol_address): Update.
7049 * infcmd.c (until_next_command): Update.
7050 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7051 Update.
7052 * linespec.c (minsym_found, add_minsym): Update.
7053 * linux-nat.c (get_signo): Update.
7054 * linux-thread-db.c (inferior_has_bug): Update.
7055 * m32c-tdep.c (m32c_return_value)
7056 (m32c_m16c_address_to_pointer): Update.
7057 * m32r-tdep.c (m32r_frame_this_id): Update.
7058 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7059 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7060 * maint.c (maintenance_translate_address): Update.
7061 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7062 (frob_address): New function.
7063 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7064 frob_address. Rename parameter to "pc_in".
7065 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7066 addresses.
7067 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7068 Update.
7069 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7070 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7071 * objc-lang.c (find_objc_msgsend): Update.
7072 * objfiles.c (objfile_relocate1): Update.
7073 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7074 * p-valprint.c (pascal_val_print): Update.
7075 * parse.c (write_exp_msymbol): Update.
7076 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7077 (ppc_elfv2_skip_entrypoint): Update.
7078 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7079 * printcmd.c (build_address_symbolic, msym_info)
7080 (address_info): Update.
7081 * proc-service.c (ps_pglobal_lookup): Update.
7082 * psymtab.c (find_pc_sect_psymtab_closer)
7083 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7084 Change msymbol parameter to bound_minimal_symbol.
7085 * ravenscar-thread.c (get_running_thread_id): Update.
7086 * remote.c (remote_check_symbols): Update.
7087 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7088 address.
7089 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7090 * solib-dsbt.c (lm_base): Update.
7091 * solib-frv.c (lm_base, main_got): Update.
7092 * solib-irix.c (locate_base): Update.
7093 * solib-som.c (som_solib_create_inferior_hook)
7094 (link_map_start): Update.
7095 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7096 * solib-svr4.c (elf_locate_base, enable_break): Update.
7097 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7098 (flush_ea_cache): Update.
7099 * stabsread.c (define_symbol, scan_file_globals): Update.
7100 * stack.c (find_frame_funname): Update.
7101 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7102 (debug_qf_find_pc_sect_symtab): Update.
7103 * symfile.c (simple_read_overlay_table)
7104 (simple_overlay_update): Update.
7105 * symfile.h (struct quick_symbol_functions)
7106 <find_pc_sect_symtab>: Change type of msymbol to
7107 bound_minimal_symbol.
7108 * symmisc.c (dump_msymbols): Update.
7109 * symtab.c (find_pc_sect_symtab_via_partial)
7110 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7111 (search_symbols, print_msymbol_info): Update.
7112 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7113 (MSYMBOL_VALUE_ADDRESS): Redefine.
7114 (BMSYMBOL_VALUE_ADDRESS): New macro.
7115 * tracepoint.c (scope_info): Update.
7116 * tui/tui-disasm.c (tui_find_disassembly_address)
7117 (tui_get_begin_asm_address): Update.
7118 * valops.c (find_function_in_inferior): Update.
7119 * value.c (value_static_field, value_fn_field): Update.
7120
3b7344d5
TT
71212014-02-26 Tom Tromey <tromey@redhat.com>
7122
7123 * ada-lang.c (ada_update_initial_language): Update.
7124 (ada_main_name, ada_has_this_exception_support): Update.
7125 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7126 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7127 * arm-tdep.c (arm_skip_stub): Update.
7128 * auxv.c (ld_so_xfer_auxv): Update.
7129 * avr-tdep.c (avr_scan_prologue): Update.
7130 * ax-gdb.c (gen_var_ref): Update.
7131 * breakpoint.c (struct breakpoint_objfile_data)
7132 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7133 type to bound_minimal_symbol.
7134 (create_overlay_event_breakpoint)
7135 (create_longjmp_master_breakpoint)
7136 (create_std_terminate_master_breakpoint)
7137 (create_exception_master_breakpoint): Update.
7138 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7139 * c-exp.y (classify_name): Update.
7140 * coffread.c (coff_symfile_read): Update.
7141 * common/agent.c (agent_look_up_symbols): Update.
7142 * d-lang.c (d_main_name): Update.
7143 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7144 * dec-thread.c (enable_dec_thread): Update.
7145 * dwarf2loc.c (call_site_to_target_addr): Update.
7146 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7147 * eval.c (evaluate_subexp_standard): Update.
7148 * findvar.c (struct minsym_lookup_data) <result>: Change type
7149 to bound_minimal_symbol.
7150 <objfile>: Remove.
7151 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7152 * frame.c (inside_main_func): Update.
7153 * frv-tdep.c (frv_frame_this_id): Update.
7154 * gcore.c (call_target_sbrk): Update.
7155 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7156 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7157 Update.
7158 * go-lang.c (go_main_name): Update.
7159 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7160 (hppa_hpux_find_import_stub_for_addr): Update.
7161 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7162 Update. Change return type.
7163 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7164 type.
7165 * jit.c (jit_breakpoint_re_set_internal): Update.
7166 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7167 Update.
7168 * linux-nat.c (get_signo): Update.
7169 * linux-thread-db.c (inferior_has_bug): Update
7170 * m32c-tdep.c (m32c_return_value)
7171 (m32c_m16c_address_to_pointer): Update.
7172 * m32r-tdep.c (m32r_frame_this_id): Update.
7173 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7174 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7175 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7176 lookup_minimal_symbol. Change return type.
7177 (lookup_minimal_symbol): Remove.
7178 (lookup_bound_minimal_symbol): Update.
7179 (lookup_minimal_symbol_text): Change return type.
7180 (lookup_minimal_symbol_solib_trampoline): Change return type.
7181 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7182 (lookup_minimal_symbol_solib_trampoline): Change return type.
7183 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7184 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7185 (value_nsstring, find_imps): Update.
7186 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7187 * p-lang.c (pascal_main_name): Update.
7188 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7189 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7190 * proc-service.c (ps_pglobal_lookup): Update.
7191 * ravenscar-thread.c (get_running_thread_msymbol): Change
7192 return type.
7193 (has_ravenscar_runtime, get_running_thread_id): Update.
7194 * remote.c (remote_check_symbols): Update.
7195 * sol-thread.c (ps_pglobal_lookup): Update.
7196 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7197 * solib-dsbt.c (lm_base): Update.
7198 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7199 Update.
7200 * solib-irix.c (locate_base): Update.
7201 * solib-som.c (som_solib_create_inferior_hook)
7202 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7203 Update.
7204 * solib-spu.c (spu_enable_break): Update.
7205 * solib-svr4.c (elf_locate_base, enable_break): Update.
7206 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7207 (flush_ea_cache): Update.
7208 * stabsread.c (define_symbol): Update.
7209 * symfile.c (simple_read_overlay_table): Update.
7210 * symtab.c (find_pc_sect_line): Update.
7211 * tracepoint.c (scope_info): Update.
7212 * tui-disasm.c (tui_get_begin_asm_address): Update.
7213 * value.c (value_static_field): Update.
7214
40c1a007
TT
72152014-02-26 Tom Tromey <tromey@redhat.com>
7216
7217 * minsyms.c (prim_record_minimal_symbol_full): Use
7218 SET_MSYMBOL_VALUE_ADDRESS.
7219 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7220 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7221 SET_MSYMBOL_VALUE_ADDRESS.
7222 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7223 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7224
efd66ac6
TT
72252014-02-26 Tom Tromey <tromey@redhat.com>
7226
7227 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7228 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7229 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7230 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7231 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7232 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7233 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7234 * ada-lang.c (ada_main_name): Update.
7235 (ada_lookup_simple_minsym): Update.
7236 (ada_make_symbol_completion_list): Update.
7237 (ada_add_standard_exceptions): Update.
7238 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7239 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7240 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7241 * arm-tdep.c (skip_prologue_function): Update.
7242 (arm_skip_stack_protector, arm_skip_stub): Update.
7243 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7244 (arm_wince_skip_main_prologue): Update.
7245 * auxv.c (ld_so_xfer_auxv): Update.
7246 * avr-tdep.c (avr_scan_prologue): Update.
7247 * ax-gdb.c (gen_var_ref): Update.
7248 * block.c (call_site_for_pc): Update.
7249 * blockframe.c (get_pc_function_start): Update.
7250 (find_pc_partial_function_gnu_ifunc): Update.
7251 * breakpoint.c (create_overlay_event_breakpoint): Update.
7252 (create_longjmp_master_breakpoint): Update.
7253 (create_std_terminate_master_breakpoint): Update.
7254 (create_exception_master_breakpoint): Update.
7255 (resolve_sal_pc): Update.
7256 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7257 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7258 Update.
7259 * c-valprint.c (c_val_print): Update.
7260 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7261 * coffread.c (coff_symfile_read): Update.
7262 * common/agent.c (agent_look_up_symbols): Update.
7263 * dbxread.c (find_stab_function_addr): Update.
7264 (end_psymtab): Update.
7265 * dwarf2loc.c (call_site_to_target_addr): Update.
7266 (func_verify_no_selftailcall): Update.
7267 (tailcall_dump): Update.
7268 (call_site_find_chain_1): Update.
7269 (dwarf_expr_reg_to_entry_parameter): Update.
7270 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7271 (elf_gnu_ifunc_resolve_by_got): Update.
7272 * f-valprint.c (info_common_command): Update.
7273 * findvar.c (read_var_value): Update.
7274 * frame.c (get_prev_frame_1): Update.
7275 (inside_main_func): Update.
7276 * frv-tdep.c (frv_skip_main_prologue): Update.
7277 (frv_frame_this_id): Update.
7278 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7279 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7280 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7281 (gnuv3_skip_trampoline): Update.
7282 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7283 (hppa64_hpux_in_solib_call_trampoline): Update.
7284 (hppa_hpux_skip_trampoline_code): Update.
7285 (hppa64_hpux_search_dummy_call_sequence): Update.
7286 (hppa_hpux_find_import_stub_for_addr): Update.
7287 (hppa_hpux_find_dummy_bpaddr): Update.
7288 * hppa-tdep.c (hppa_symbol_address)
7289 (hppa_lookup_stub_minimal_symbol): Update.
7290 * i386-tdep.c (i386_skip_main_prologue): Update.
7291 (i386_pe_skip_trampoline_code): Update.
7292 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7293 * infcall.c (get_function_name): Update.
7294 * infcmd.c (until_next_command): Update.
7295 * jit.c (jit_breakpoint_re_set_internal): Update.
7296 (jit_inferior_init): Update.
7297 * linespec.c (minsym_found): Update.
7298 (add_minsym): Update.
7299 * linux-fork.c (info_checkpoints_command): Update.
7300 * linux-nat.c (get_signo): Update.
7301 * linux-thread-db.c (inferior_has_bug): Update.
7302 * m32c-tdep.c (m32c_return_value): Update.
7303 (m32c_m16c_address_to_pointer): Update.
7304 (m32c_m16c_pointer_to_address): Update.
7305 * m32r-tdep.c (m32r_frame_this_id): Update.
7306 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7307 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7308 * maint.c (maintenance_translate_address): Update.
7309 * minsyms.c (add_minsym_to_hash_table): Update.
7310 (add_minsym_to_demangled_hash_table): Update.
7311 (msymbol_objfile): Update.
7312 (lookup_minimal_symbol): Update.
7313 (iterate_over_minimal_symbols): Update.
7314 (lookup_minimal_symbol_text): Update.
7315 (lookup_minimal_symbol_by_pc_name): Update.
7316 (lookup_minimal_symbol_solib_trampoline): Update.
7317 (lookup_minimal_symbol_by_pc_section_1): Update.
7318 (lookup_minimal_symbol_and_objfile): Update.
7319 (prim_record_minimal_symbol_full): Update.
7320 (compare_minimal_symbols): Update.
7321 (compact_minimal_symbols): Update.
7322 (build_minimal_symbol_hash_tables): Update.
7323 (install_minimal_symbols): Update.
7324 (terminate_minimal_symbol_table): Update.
7325 (find_solib_trampoline_target): Update.
7326 (minimal_symbol_upper_bound): Update.
7327 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7328 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7329 (mips_skip_pic_trampoline_code): Update.
7330 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7331 * objc-lang.c (selectors_info): Update.
7332 (classes_info): Update.
7333 (find_methods): Update.
7334 (find_imps): Update.
7335 (find_objc_msgsend): Update.
7336 * objfiles.c (objfile_relocate1): Update.
7337 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7338 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7339 * p-valprint.c (pascal_val_print): Update.
7340 * parse.c (write_exp_msymbol): Update.
7341 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7342 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7343 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7344 * printcmd.c (build_address_symbolic): Update.
7345 (sym_info): Update.
7346 (address_info): Update.
7347 * proc-service.c (ps_pglobal_lookup): Update.
7348 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7349 (find_pc_sect_psymtab): Update.
7350 * python/py-framefilter.c (py_print_frame): Update.
7351 * ravenscar-thread.c (get_running_thread_id): Update.
7352 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7353 Update.
7354 * remote.c (remote_check_symbols): Update.
7355 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7356 (rs6000_skip_trampoline_code): Update.
7357 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7358 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7359 * solib-dsbt.c (lm_base): Update.
7360 * solib-frv.c (lm_base): Update.
7361 (main_got): Update.
7362 * solib-irix.c (locate_base): Update.
7363 * solib-som.c (som_solib_create_inferior_hook): Update.
7364 (som_solib_desire_dynamic_linker_symbols): Update.
7365 (link_map_start): Update.
7366 * solib-spu.c (spu_enable_break): Update.
7367 (ocl_enable_break): Update.
7368 * solib-svr4.c (elf_locate_base): Update.
7369 (enable_break): Update.
7370 * spu-tdep.c (spu_get_overlay_table): Update.
7371 (spu_catch_start): Update.
7372 (flush_ea_cache): Update.
7373 * stabsread.c (define_symbol): Update.
7374 (scan_file_globals): Update.
7375 * stack.c (find_frame_funname): Update.
7376 (frame_info): Update.
7377 * symfile.c (simple_read_overlay_table): Update.
7378 (simple_overlay_update): Update.
7379 * symmisc.c (dump_msymbols): Update.
7380 * symtab.c (fixup_section): Update.
7381 (find_pc_sect_line): Update.
7382 (skip_prologue_sal): Update.
7383 (search_symbols): Update.
7384 (print_msymbol_info): Update.
7385 (rbreak_command): Update.
7386 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7387 (completion_list_objc_symbol): Update.
7388 (default_make_symbol_completion_list_break_on): Update.
7389 * tracepoint.c (scope_info): Update.
7390 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7391 (tui_get_begin_asm_address): Update.
7392 * valops.c (find_function_in_inferior): Update.
7393 * value.c (value_static_field): Update.
7394 (value_fn_field): Update.
7395
50e65b17
TT
73962014-02-26 Tom Tromey <tromey@redhat.com>
7397
7398 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7399 bound minimal symbols. Move code that knows about minsym
7400 table layout...
7401 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7402 function.
7403 * minsyms.h (minimal_symbol_upper_bound): Declare.
7404 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7405 minimal_symbol_upper_bound.
7406
1b588015
JB
74072014-02-27 Joel Brobecker <brobecker@adacore.com>
7408
7409 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7410 Use the type's name if its basic type does not have a tag.
7411
dbb9c2b1
JB
74122014-02-27 Joel Brobecker <brobecker@adacore.com>
7413
7414 * dwarf2read.c (read_subrange_type): Add comment.
7415
55426c9d
JB
74162014-02-27 Joel Brobecker <brobecker@adacore.com>
7417
7418 * dwarf2read.c (update_enumeration_type_from_children): New
7419 function, mostly extracted from process_structure_scope.
7420 (read_enumeration_type): Call update_enumeration_type_from_children.
7421 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7422 and flag_flag_enum fields.
7423
f2fce0ca
PA
74242014-02-26 Pedro Alves <palves@redhat.com>
7425
7426 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7427 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7428 to_xfer_partial method.
7429
7a44e40e
PA
74302014-02-26 Pedro Alves <palves@redhat.com>
7431
7432 * target.c (complete_target_initialization): Don't install
7433 default_xfer_partial as to_xfer_partial hook.
7434 (nomemory): Delete.
7435 (update_current_target): Don't INHERIT nor de_fault
7436 deprecated_xfer_memory. Delete de_fault macro.
7437 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7438 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7439 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7440 field.
7441
bd265cd0
PA
74422014-02-26 Pedro Alves <palves@redhat.com>
7443
7444 * go32-nat.c (my_write_child): New function.
7445 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7446 (go32_xfer_partial): New function.
7447 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7448 Instead install a to_xfer_partial hook.
7449
9d46c4e5
PA
74502014-02-26 Pedro Alves <palves@redhat.com>
7451
7452 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7453 to_xfer_partial helper. Rewrite.
7454 (procfs_xfer_partial): New function.
7455 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7456 Install a to_xfer_partial hook.
7457
a1583b1f
PA
74582014-02-26 Pedro Alves <palves@redhat.com>
7459
7460 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7461 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7462 (m32r_xfer_partial): New function.
7463 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7464 Install a to_xfer_partial hook.
7465
6df1b29f
PA
74662014-02-26 Pedro Alves <palves@redhat.com>
7467
7468 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7469 helper.
7470 (mips_xfer_partial): New function.
7471 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7472 hook. Install a to_xfer_partial hook.
7473
dc53a7ad
JB
74742014-02-26 Joel Brobecker <brobecker@adacore.com>
7475
7476 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7477 * gdbtypes.c (create_array_type_with_stride): New function,
7478 renaming create_array_type, but with an added parameter
7479 called "bit_stride".
7480 (create_array_type): Re-implement using
7481 create_array_type_with_stride.
7482 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7483 and DW_AT_bit_stride attributes.
7484
12ab52e9
PA
74852014-02-26 Pedro Alves <palves@redhat.com>
7486
7487 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7488 task-specific breakpoints.
7489
d16461ae
PA
74902014-02-25 Pedro Alves <palves@redhat.com>
7491
7492 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7493 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7494
a8b16220
SS
74952014-02-25 Stan Shebs <stan@codesourcery.com>
7496
7497 * defs.h: Annotate comments for Doxygen.
7498
b9e795ee
TT
74992014-02-25 Tom Tromey <tromey@redhat.com>
7500
7501 * target.h (target_ignore): Don't declare.
7502 * target.c (target_ignore): Remove.
7503
849c862e
JK
75042014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7505
7506 PR gdb/16626
7507 * auto-load.c (auto_load_objfile_script_1): Change filename to
7508 debugfile.
7509
475109d8
JB
75102014-02-25 Joel Brobecker <brobecker@adacore.com>
7511
7512 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7513 documentation. Adjust prototype to match the target_ops
7514 to_xfer_partial method. Adjust implementation accordingly.
7515
e186c3bd
HZ
75162014-02-25 Hui Zhu <hui@codesourcery.com>
7517
7518 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7519 to_traceframe_info.
7520
6d451942
KB
75212014-02-25 Kevin Buettner <kevinb@redhat.com>
7522
041ab8b4 7523 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7524 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7525 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7526 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7527 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7528 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7529 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7530 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7531 New constants.
7532 (rl78_register_type): Use a data pointer type for SP and
7533 new pseudo registers mentioned above. Use a 16 bit integer
7534 type for all other register pairs.
7535 (rl78_register_name, rl78_g10_register_name): Update for
7536 new pseudo registers.
7537 (rl78_pseudo_register_read): Likewise.
7538 (rl78_pseudo_register_write): Likewise.
7539 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7540 to the newly added pseudo registers.
7541
eddf0bae
DE
75422014-02-24 Doug Evans <dje@google.com>
7543
7544 * value.c (record_latest_value): Fix comment.
7545 * printcmd.c (print_command_1): Remove code to handle -1 return from
7546 record_latest_value.
7547
e96027e0
PA
75482014-02-24 Pedro Alves <palves@redhat.com>
7549
7550 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7551 deprecated_xfer_memory hook.
7552 (procfs_xfer_partial): Call procfs_xfer_memory instead
7553 of the deprecated_xfer_memory target hook.
7554 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7555 helper.
7556
0837c976
YZ
75572014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7558
7559 * windows-nat.c (windows_xfer_shared_libraries): Return
7560 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7561 requested object is TARGET_OBJECT_LIBRARIES.
7562
bc113b4e
YQ
75632014-02-24 Yao Qi <yao@codesourcery.com>
7564
7565 * target.h (enum target_xfer_status)
7566 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7567 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7568 explicitly. New.
7569 * corefile.c (memory_error_message): User updated.
7570 * exec.c (section_table_read_available_memory): Likewise.
7571 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7572 * target.c (target_xfer_status_to_string): Likewise.
7573 (raw_memory_xfer_partial): Likewise.
7574 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7575 * valops.c (read_value_memory): Likewise.
7576 * exec.h: Update comments.
7577
01cb8804
YQ
75782014-02-24 Yao Qi <yao@codesourcery.com>
7579
7580 * target.c (target_xfer_status_to_string): Rename argument err
7581 to status.
7582 * target.h (target_xfer_status_to_string): Update declaration.
7583 Replace target_xfer_error_to_string with
7584 target_xfer_status_to_string in comment.
7585
93063aa6
YQ
75862014-02-24 Yao Qi <yao@codesourcery.com>
7587
7588 * mips-linux-nat.c (super_close): Update its type.
7589 (mips_linux_close): Pass 'self' to super_close.
7590
5c328c05
YQ
75912014-02-24 Yao Qi <yao@codesourcery.com>
7592
7593 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7594 * corefile.c (read_memory): Adjusted.
7595 * target.c (target_write_with_progress): Adjusted.
7596
f73023dd
YQ
75972014-02-23 Yao Qi <yao@codesourcery.com>
7598
7599 Revert two patches:
7600
7601 2013-10-25 Yao Qi <yao@codesourcery.com>
7602
7603 * remote.c (remote_traceframe_info): Return early if
7604 traceframe is not selected.
7605
7606 2013-07-19 Yao Qi <yao@codesourcery.com>
7607
7608 * target.c (update_current_target): Change the default action
7609 of 'to_traceframe_info' from tcomplain to return_zero.
7610 * target.h (struct target_ops) <to_traceframe_info>: Add more
7611 comments.
7612
5a2eb0ef
YQ
76132014-02-23 Yao Qi <yao@codesourcery.com>
7614
7615 * valops.c (read_value_memory): Rewrite it. Call
7616 target_xfer_partial in a loop.
7617 * exec.h (section_table_available_memory): Remove declaration.
7618 Move comments to ...
7619 * exec.c (section_table_available_memory): ... here. Make it
7620 static.
7621
1ee79381
YQ
76222014-02-23 Yao Qi <yao@codesourcery.com>
7623
7624 * exec.c (section_table_read_available_memory): New function.
7625 * exec.h (section_table_read_available_memory): Declare.
7626 * ctf.c (ctf_xfer_partial): Call
7627 section_table_read_available_memory.
7628 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7629
1ca49d37
YQ
76302014-02-23 Yao Qi <yao@codesourcery.com>
7631
7632 * ctf.c (ctf_xfer_partial): Move code to ...
7633 * exec.c (exec_read_partial_read_only): ... it. New function.
7634 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7635 * tracefile.c: Include "exec.h".
7636 * exec.h (exec_read_partial_read_only): Declare.
7637
a283690e
YQ
76382014-02-23 Yao Qi <yao@codesourcery.com>
7639
7640 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7641 (tfile_has_memory): Remove.
7642 (init_tfile_ops): Don't set fields to_has_all_memory and
7643 to_has_memory of tfile_ops.
7644 * tracefile.c (tracefile_has_all_memory): New function.
7645 (tracefile_has_memory): New function.
7646 (init_tracefile_ops): Initialize fields to_has_all_memory and
7647 to_has_memory of 'ops'.
7648
12e03cd0
YQ
76492014-02-23 Yao Qi <yao@codesourcery.com>
7650
7651 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7652 (ctf_thread_alive, ctf_get_trace_status): Remove.
7653 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7654 init_tracefile_ops.
7655 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7656 (tfile_has_stack, tfile_has_registers): Remove.
7657 (tfile_thread_alive): Remove.
7658 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7659 init_tracefile_ops.
7660 * tracefile.c (tracefile_has_stack): New function.
7661 (tracefile_has_registers): New function.
7662 (tracefile_thread_alive): New function.
7663 (tracefile_get_trace_status): New function.
7664 (init_tracefile_ops): New function.
7665 * tracefile.h (init_tracefile_ops): Declare.
7666
11395323
YQ
76672014-02-23 Yao Qi <yao@codesourcery.com>
7668
7669 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7670 (O_LARGEFILE): Likewise.
7671 (tfile_ops): Likewise.
7672 (TRACE_HEADER_SIZE): Likewise.
7673 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7674 (cur_data_size): Likewise.
7675 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7676 (tfile_close, tfile_files_info): Likewise.
7677 (tfile_get_trace_status): Likewise.
7678 (tfile_get_tracepoint_status): Likewise.
7679 (tfile_get_traceframe_address): Likewise.
7680 (tfile_trace_find, match_blocktype): Likewise.
7681 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7682 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7683 (tfile_get_trace_state_variable_value): Likewise.
7684 (tfile_has_all_memory, tfile_has_memory): Likewise.
7685 (tfile_has_stack, tfile_has_registers): Likewise.
7686 (tfile_thread_alive, build_traceframe_info): Likewise.
7687 (tfile_traceframe_info, init_tfile_ops): Likewise.
7688 (_initialize_tracepoint): Don't call init_tfile_ops
7689 and add_target_with_completer.
7690 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7691 exec.h, completer.h and filenames.h.
7692 (_initialize_tracefile_tfile): New function.
7693
7951c4eb
YQ
76942014-02-23 Yao Qi <yao@codesourcery.com>
7695
7696 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7697 tracefile-tfile.o.
7698 (HFILES_NO_SRCDIR): Add tracefile.h.
7699 * ctf.c: Include "tracefile.h".
7700 * tracefile.h: New file.
7701 * tracefile.c: New file
7702 * tracefile-tfile.c: New file.
7703 * tracepoint.c: Include "tracefile.h".
7704 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7705 (stop_reason_names): Add const.
7706 (trace_file_writer_xfree): Move it to tracefile.c.
7707 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7708 (trace_save_ctf): Likewise.
7709 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7710 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7711 (tfile_write_header, tfile_write_regblock_type): Likewise.
7712 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7713 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7714 (tfile_write_raw_data, tfile_end): Likewise.
7715 (tfile_trace_file_writer_new): Likewise.
7716 (free_uploaded_tp): Make it extern.
7717 (free_uploaded_tsv): Make it extern.
7718 (_initialize_tracepoint): Move code to register command 'tsave'
7719 to tracefile.c.
7720 * tracepoint.h (stop_reason_names): Declare.
7721 (struct trace_frame_write_ops): Move it to tracefile.h.
7722 (struct trace_file_write_ops): Likewise.
7723 (struct trace_file_writer): Likewise.
7724 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7725
184cd072
JK
77262014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7727
7728 PR gdb/16594
7729 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7730 process name.
7731 (get_cores_used_by_process): New parameter num_cores, use it.
7732 (linux_xfer_osdata_processes): Pass num_cores to it.
7733 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7734 process name.
7735
c63528fc
AK
77362014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7737
7738 * target.c (memory_xfer_partial): Fix length arg in call to
7739 breakpoint_xfer_memory.
7740
d7b30f67
SDJ
77412014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7742
7743 PR tdep/16397
7744 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7745 number comes after the + or - signs. Adjust length of register
7746 name to be extracted.
7747
8838afaf
TT
77482014-02-20 Tom Tromey <tromey@redhat.com>
7749
7750 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7751 (ada_varobj_ops): Mark "extern".
7752
05227d14
TT
77532014-02-20 Tom Tromey <tromey@redhat.com>
7754
7755 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7756
1254eefc
DE
77572014-02-20 Doug Evans <xdje42@gmail.com>
7758
7759 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7760 All callers updated.
7761 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7762 All callers updated.
7763 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7764 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7765
adde2bff
DE
77662014-02-20 lin zuojian <manjian2006@gmail.com>
7767 Joel Brobecker <brobecker@adacore.com>
7768 Doug Evans <xdje42@gmail.com>
7769
7770 PR symtab/16581
7771 * dwarf2read.c (struct die_info): New member in_process.
7772 (reset_die_in_process): New function.
7773 (process_die): Set it at the start, reset when returning.
7774 (inherit_abstract_dies): Only call process_die if origin_child_die
7775 not already being processed.
7776
3be75f87
JB
77772014-02-20 Joel Brobecker <brobecker@adacore.com>
7778
7779 * windows-nat.c (handle_unload_dll): Add function documentation.
7780 (do_initial_windows_stuff): Add comment explaining why we wait
7781 until after inferior initialization has finished before
7782 processing all DLLs.
7783
47f7ffdb
JB
77842014-02-20 Joel Brobecker <brobecker@adacore.com>
7785
7786 * windows-nat.c (get_module_name): Delete.
7787 (windows_get_exec_module_filename): New function, mostly
7788 inspired from get_module_name.
7789 (windows_pid_to_exec_file): Replace call to get_module_name
7790 by call to windows_get_exec_module_filename.
7791
1cd9feab
JB
77922014-02-20 Joel Brobecker <brobecker@adacore.com>
7793
7794 * windows-nat.c (handle_load_dll): Rewrite this function's
7795 introductory comment. Remove code using get_module_name
7796 to get the DLL's name.
7797
ea39ad35
JB
77982014-02-20 Joel Brobecker <brobecker@adacore.com>
7799
7800 * windows-nat.c (get_windows_debug_event): Ignore
7801 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7802 if windows_initialization_done == 0.
7803 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7804 Adjust implementation to always load all DLLs.
7805 (do_initial_windows_stuff): Replace call to
7806 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7807
95060284
JB
78082014-02-20 Joel Brobecker <brobecker@adacore.com>
7809
7810 * windows-nat.c (_initialize_windows_nat): Deprecate the
7811 "dll-symbols" command. Turn the "add-shared-symbol-files"
7812 and "assf" aliases into commands, and deprecate them as well.
7813 * NEWS: Add entry explaining that "dll-symbols" and its two
7814 aliases are now deprecated.
7815
8d4fdb12
JB
78162014-02-20 Joel Brobecker <brobecker@adacore.com>
7817
7818 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7819 new-line in debug string. Remove trailing spaces.
7820
1b281443
SS
78212014-02-19 Stan Shebs <stan@codesourcery.com>
7822
7823 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7824
f7bd0f78
SC
78252014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7826
7827 * NEWS: Add entry for the new feature
7828 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7829 and class values.
7830
399ebc3d
SS
78312014-02-19 Stan Shebs <stan@codesourcery.com>
7832
7833 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7834
c658158d
PA
78352014-02-19 Pedro Alves <palves@redhat.com>
7836
7837 * common/ptid.h (struct ptid): Mention that process_stratum
7838 targets should prefer ptid.lwp.
7839
ba348170
PA
78402014-02-19 Pedro Alves <palves@redhat.com>
7841
7842 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7843 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7844 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7845 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7846 store remote thread ids rather than ptid.tid.
7847 (_initialize_remote): Adjust.
7848
ac01945b
TT
78492014-02-19 Tom Tromey <tromey@redhat.com>
7850
7851 * target.c (target_get_unwinder): Rewrite.
7852 (target_get_tailcall_unwinder): Rewrite.
7853 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7854 (record_btrace_to_get_tailcall_unwinder): New function.
7855 (init_record_btrace_ops): Update.
7856 * target.h (struct target_ops) <to_get_unwinder,
7857 to_get_tailcall_unwinder>: Now function pointers. Use
7858 TARGET_DEFAULT_RETURN.
7859
8476dc92
TT
78602014-02-19 Tom Tromey <tromey@redhat.com>
7861
7862 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7863 argument.
7864 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7865
c0eca49f
TT
78662014-02-19 Tom Tromey <tromey@redhat.com>
7867
7868 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7869 directly.
7870 * target-delegates.c: Rebuild.
7871 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7872 TARGET_DEFAULT_FUNC.
7873 * target.c (default_target_decr_pc_after_break): Rename from
7874 forward_target_decr_pc_after_break. Simplify.
7875 (target_decr_pc_after_break): Rely on delegation.
7876
596b6b39
TT
78772014-02-19 Tom Tromey <tromey@redhat.com>
7878
7879 * target.c (update_current_target): Do not INHERIT to_doc or
7880 to_magic. Do not de_fault to_open or to_close.
7881
b427c1bc
TT
78822014-02-19 Tom Tromey <tromey@redhat.com>
7883
7884 * gcore.h (objfile_find_memory_regions): Declare.
7885 * gcore.c (objfile_find_memory_regions): No longer static. Add
7886 "self" argument.
7887 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7888 * exec.c: Include gcore.h.
7889 (exec_set_find_memory_regions): Remove.
7890 (exec_find_memory_regions): Remove.
7891 (exec_do_find_memory_regions): Remove.
7892 (init_exec_ops): Update.
7893 * defs.h (exec_set_find_memory_regions): Remove.
7894
9b144037
TT
78952014-02-19 Tom Tromey <tromey@redhat.com>
7896
7897 * target-delegates.c: Rebuild.
7898 * target.h (struct target_ops) <to_extra_thread_info,
7899 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7900 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7901 not 0, in TARGET_DEFAULT_RETURN.
7902
555bbdeb
TT
79032014-02-19 Tom Tromey <tromey@redhat.com>
7904
7905 * target.c (complete_target_initialization): Remove casts. Use
7906 return_zero_has_execution.
7907 (return_zero): Add "ignore" argument.
7908 (return_zero_has_execution): New function.
7909 (init_dummy_target): Remove casts. Use
7910 return_zero_has_execution.
7911
be4ddd36
TT
79122014-02-19 Tom Tromey <tromey@redhat.com>
7913
7914 * target.c (update_current_target): Update comments. Do not
7915 INHERIT to_stratum.
7916
2117c711
TT
79172014-02-19 Tom Tromey <tromey@redhat.com>
7918
7919 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7920 needed.
7921 * corelow.c (core_read_description): Delegate when needed.
7922 * remote.c (remote_read_description): Delegate when needed.
7923 * target-delegates.c: Rebuild.
7924 * target.c (target_read_description): Rewrite.
7925 * target.h (struct target_ops) <to_read_description>: Update
7926 comment. Use TARGET_DEFAULT_RETURN.
7927
e88ef65c
TT
79282014-02-19 Tom Tromey <tromey@redhat.com>
7929
7930 * target-delegates.c: Rebuild.
7931 * target.c (update_current_target): Don't inherit or default
7932 to_can_run.
7933 (find_default_run_target): Check against delegate_can_run.
7934 * target.h (struct target_ops) <to_can_run>: Use
7935 TARGET_DEFAULT_RETURN.
7936
86a0854a
TT
79372014-02-19 Tom Tromey <tromey@redhat.com>
7938
7939 * target-delegates.c: Rebuild.
7940 * target.c (target_disconnect): Unconditionally delegate.
7941 * target.h (struct target_ops) <to_disconnect>: Use
7942 TARGET_DEFAULT_NORETURN.
7943
ee97f592
TT
79442014-02-19 Tom Tromey <tromey@redhat.com>
7945
7946 * record.c (record_stop): Unconditionally delegate.
7947 * target-delegates.c: Rebuild.
7948 * target.c (target_stop_recording): Unconditionally delegate.
7949 * target.h (struct target_ops) <to_stop_recording>: Use
7950 TARGET_DEFAULT_IGNORE.
7951
6dc7fcf4
TT
79522014-02-19 Tom Tromey <tromey@redhat.com>
7953
7954 * target-delegates.c: Rebuild.
7955 * target.c (target_enable_btrace): Unconditionally delegate.
7956 * target.h (struct target_ops) <to_enable_btrace>: Use
7957 TARGET_DEFAULT_NORETURN.
7958
eb5b20d4
TT
79592014-02-19 Tom Tromey <tromey@redhat.com>
7960
7961 * target-delegates.c: Rebuild.
7962 * target.c (target_read_btrace): Unconditionally delegate.
7963 * target.h (struct target_ops) <to_read_btrace>: Use
7964 TARGET_DEFAULT_NORETURN.
7965
9ace480d
TT
79662014-02-19 Tom Tromey <tromey@redhat.com>
7967
7968 * target-delegates.c: Rebuild.
7969 * target.c (target_teardown_btrace): Unconditionally delegate.
7970 * target.h (struct target_ops) <to_teardown_btrace>: Use
7971 TARGET_DEFAULT_NORETURN.
7972
8dc292d3
TT
79732014-02-19 Tom Tromey <tromey@redhat.com>
7974
7975 * target-delegates.c: Rebuild.
7976 * target.c (target_disable_btrace): Unconditionally delegate.
7977 * target.h (struct target_ops) <to_disable_btrace>: Use
7978 TARGET_DEFAULT_NORETURN.
7979
58a5184e
TT
79802014-02-19 Tom Tromey <tromey@redhat.com>
7981
7982 * target-delegates.c: Rebuild.
7983 * target.c (default_search_memory): New function.
7984 (simple_search_memory): Update comment.
7985 (target_search_memory): Unconditionally delegate.
7986 * target.h (struct target_ops) <to_search_memory>: Use
7987 TARGET_DEFAULT_FUNC.
7988
8de71aab
TT
79892014-02-19 Tom Tromey <tromey@redhat.com>
7990
7991 * auxv.c (default_auxv_parse): No longer static.
7992 (target_auxv_parse): Unconditionally delegate.
7993 * auxv.h (default_auxv_parse): Declare.
7994 * target-delegates.c: Rebuild.
7995 * target.c: Include auxv.h.
7996 * target.h (struct target_ops) <to_auxv_parse>: Use
7997 TARGET_DEFAULT_FUNC.
7998
6b2c5a57
TT
79992014-02-19 Tom Tromey <tromey@redhat.com>
8000
8001 * target-delegates.c: Rebuild.
8002 * target.c (target_memory_map): Unconditionally delegate.
8003 * target.h (struct target_ops) <to_memory_map>: Use
8004 TARGET_DEFAULT_RETURN.
8005
cbffc065
TT
80062014-02-19 Tom Tromey <tromey@redhat.com>
8007
8008 * target-delegates.c: Rebuild.
8009 * target.c (target_thread_alive): Unconditionally delegate.
8010 * target.h (struct target_ops) <to_thread_alive>: Use
8011 TARGET_DEFAULT_RETURN.
8012
f09e2107
TT
80132014-02-19 Tom Tromey <tromey@redhat.com>
8014
8015 * target-delegates.c: Rebuild.
8016 * target.c (target_save_record): Unconditionally delegate.
8017 * target.h (struct target_ops) <to_save_record>: Use
8018 TARGET_DEFAULT_NORETURN.
8019
07366925
TT
80202014-02-19 Tom Tromey <tromey@redhat.com>
8021
8022 * target-delegates.c: Rebuild.
8023 * target.c (target_delete_record): Unconditionally delegate.
8024 * target.h (struct target_ops) <to_delete_record>: Use
8025 TARGET_DEFAULT_NORETURN.
8026
dd2e9d25
TT
80272014-02-19 Tom Tromey <tromey@redhat.com>
8028
8029 * target-delegates.c: Rebuild.
8030 * target.c (target_record_is_replaying): Unconditionally
8031 delegate.
8032 * target.h (struct target_ops) <to_record_is_replaying>: Use
8033 TARGET_DEFAULT_RETURN.
8034
671e76cc
TT
80352014-02-19 Tom Tromey <tromey@redhat.com>
8036
8037 * target-delegates.c: Rebuild.
8038 * target.c (target_goto_record_begin): Unconditionally delegate.
8039 * target.h (struct target_ops) <to_goto_record_begin>: Use
8040 TARGET_DEFAULT_NORETURN.
8041
e9179bb3
TT
80422014-02-19 Tom Tromey <tromey@redhat.com>
8043
8044 * target-delegates.c: Rebuild.
8045 * target.c (target_goto_record_end): Unconditionally delegate.
8046 * target.h (struct target_ops) <to_goto_record_end>: Use
8047 TARGET_DEFAULT_NORETURN.
8048
05969c84
TT
80492014-02-19 Tom Tromey <tromey@redhat.com>
8050
8051 * target-delegates.c: Rebuild.
8052 * target.c (target_goto_record): Unconditionally delegate.
8053 * target.h (struct target_ops) <to_goto_record>: Use
8054 TARGET_DEFAULT_NORETURN.
8055
3679abfa
TT
80562014-02-19 Tom Tromey <tromey@redhat.com>
8057
8058 * target-delegates.c: Rebuild.
8059 * target.c (target_insn_history): Unconditionally delegate.
8060 * target.h (struct target_ops) <to_insn_history>: Use
8061 TARGET_DEFAULT_NORETURN.
8062
8444ab58
TT
80632014-02-19 Tom Tromey <tromey@redhat.com>
8064
8065 * target-delegates.c: Rebuild.
8066 * target.c (target_insn_history_from): Unconditionally delegate.
8067 * target.h (struct target_ops) <to_insn_history_from>: Use
8068 TARGET_DEFAULT_NORETURN.
8069
c29302cc
TT
80702014-02-19 Tom Tromey <tromey@redhat.com>
8071
8072 * target-delegates.c: Rebuild.
8073 * target.c (target_insn_history_range): Unconditionally delegate.
8074 * target.h (struct target_ops) <to_insn_history_range>: Use
8075 TARGET_DEFAULT_NORETURN.
8076
170049d4
TT
80772014-02-19 Tom Tromey <tromey@redhat.com>
8078
8079 * target-delegates.c: Rebuild.
8080 * target.c (target_call_history): Unconditionally delegate.
8081 * target.h (struct target_ops) <to_call_history>: Use
8082 TARGET_DEFAULT_NORETURN.
8083
16fc27d6
TT
80842014-02-19 Tom Tromey <tromey@redhat.com>
8085
8086 * target-delegates.c: Rebuild.
8087 * target.c (target_call_history_from): Unconditionally delegate.
8088 * target.h (struct target_ops) <to_call_history_from>: Use
8089 TARGET_DEFAULT_NORETURN.
8090
115d9817
TT
80912014-02-19 Tom Tromey <tromey@redhat.com>
8092
8093 * target-delegates.c: Rebuild.
8094 * target.c (target_call_history_range): Unconditionally delegate.
8095 * target.h (struct target_ops) <to_call_history_range>: Use
8096 TARGET_DEFAULT_NORETURN.
8097
eb276a6b
TT
80982014-02-19 Tom Tromey <tromey@redhat.com>
8099
8100 * target-delegates.c: Rebuild.
8101 * target.c (target_verify_memory): Unconditionally delegate.
8102 * target.h (struct target_ops) <to_verify_memory>: Use
8103 TARGET_DEFAULT_NORETURN.
8104
9e538d0d
TT
81052014-02-19 Tom Tromey <tromey@redhat.com>
8106
8107 * target-delegates.c: Rebuild.
8108 * target.c (target_core_of_thread): Unconditionally delegate.
8109 * target.h (struct target_ops) <to_core_of_thread>: Use
8110 TARGET_DEFAULT_RETURN.
8111
f6fb2925
TT
81122014-02-19 Tom Tromey <tromey@redhat.com>
8113
8114 * target-delegates.c: Rebuild.
8115 * target.c (target_flash_done): Unconditionally delegate.
8116 * target.h (struct target_ops) <to_flash_done>: Use
8117 TARGET_DEFAULT_NORETURN.
8118
e8a6c6ac
TT
81192014-02-19 Tom Tromey <tromey@redhat.com>
8120
8121 * target-delegates.c: Rebuild.
8122 * target.c (target_flash_erase): Unconditionally delegate.
8123 * target.h (struct target_ops) <to_flash_erase>: Use
8124 TARGET_DEFAULT_NORETURN.
8125
7e35c012
TT
81262014-02-19 Tom Tromey <tromey@redhat.com>
8127
8128 * target-delegates.c: Rebuild.
8129 * target.c (target_get_section_table): Unconditionally delegate.
8130 * target.h (struct target_ops) <to_get_section_table>: Use
8131 TARGET_DEFAULT_RETURN.
8132
770234d3
TT
81332014-02-19 Tom Tromey <tromey@redhat.com>
8134
8135 * target-delegates.c: Rebuild.
8136 * target.c (target_pid_to_str): Unconditionally delegate.
8137 (init_dummy_target): Don't initialize to_pid_to_str.
8138 (default_pid_to_str): Rename from dummy_pid_to_str.
8139 * target.h (struct target_ops) <to_pid_to_str>: Use
8140 TARGET_DEFAULT_FUNC.
8141
09b0dc2b
TT
81422014-02-19 Tom Tromey <tromey@redhat.com>
8143
8144 * target-delegates.c: Rebuild.
8145 * target.c (target_find_new_threads): Unconditionally delegate.
8146 * target.h (struct target_ops) <to_find_new_threads>: Use
8147 TARGET_DEFAULT_RETURN.
8148
7d4f8efa
TT
81492014-02-19 Tom Tromey <tromey@redhat.com>
8150
8151 * target-delegates.c: Rebuild.
8152 * target.c (target_program_signals): Unconditionally delegate.
8153 * target.h (struct target_ops) <to_program_signals>: Use
8154 TARGET_DEFAULT_IGNORE.
8155
035cad7f
TT
81562014-02-19 Tom Tromey <tromey@redhat.com>
8157
8158 * target-delegates.c: Rebuild.
8159 * target.c (target_pass_signals): Unconditionally delegate.
8160 * target.h (struct target_ops) <to_pass_signals>: Use
8161 TARGET_DEFAULT_IGNORE.
8162
8d657035
TT
81632014-02-19 Tom Tromey <tromey@redhat.com>
8164
8165 * target-delegates.c: Rebuild.
8166 * target.c (default_mourn_inferior): New function.
8167 (target_mourn_inferior): Unconditionally delegate.
8168 * target.h (struct target_ops) <to_mourn_inferior>: Use
8169 TARGET_DEFAULT_FUNC.
8170
098dba18
TT
81712014-02-19 Tom Tromey <tromey@redhat.com>
8172
8173 * target-delegates.c: Rebuild.
8174 * target.c (default_follow_fork): New function.
8175 (target_follow_fork): Unconditionally delegate.
8176 * target.h (struct target_ops) <to_follow_fork>: Use
8177 TARGET_DEFAULT_FUNC.
8178
423a4807
TT
81792014-02-19 Tom Tromey <tromey@redhat.com>
8180
8181 * target-delegates.c: Rebuild.
8182 * target.c (target_kill): Unconditionally delegate.
8183 * target.h (struct target_ops) <to_kill>: Use
8184 TARGET_DEFAULT_NORETURN.
8185
6c7e5e5c
TT
81862014-02-19 Tom Tromey <tromey@redhat.com>
8187
8188 * target-delegates.c: Rebuild.
8189 * target.c (target_masked_watch_num_registers): Unconditionally
8190 delegate.
8191 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8192 Use TARGET_DEFAULT_RETURN.
8193
8b1c364c
TT
81942014-02-19 Tom Tromey <tromey@redhat.com>
8195
8196 * target-delegates.c: Rebuild.
8197 * target.c (target_remove_mask_watchpoint): Unconditionally
8198 delegate.
8199 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8200 TARGET_DEFAULT_RETURN.
8201
cd4ae029
TT
82022014-02-19 Tom Tromey <tromey@redhat.com>
8203
8204 * target-delegates.c: Rebuild.
8205 * target.c (target_insert_mask_watchpoint): Unconditionally
8206 delegate.
8207 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8208 TARGET_DEFAULT_RETURN.
8209
a134316b
TT
82102014-02-19 Tom Tromey <tromey@redhat.com>
8211
8212 * target-delegates.c: Rebuild.
8213 * target.c (target_ranged_break_num_registers): Unconditionally
8214 delegate.
8215 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8216 Use TARGET_DEFAULT_RETURN.
8217
ad5989bd
TT
82182014-02-19 Tom Tromey <tromey@redhat.com>
8219
8220 * target-delegates.c: Rebuild.
8221 * target.c (target_fetch_registers): Unconditionally delegate.
8222 * target.h (struct target_ops) <to_fetch_registers>: Use
8223 TARGET_DEFAULT_NORETURN.
8224
46ee7e8d
TT
82252014-02-19 Tom Tromey <tromey@redhat.com>
8226
8227 * target-delegates.c: Rebuild.
8228 * target.c (update_current_target): Don't inherit or default
8229 to_stop.
8230 * target.h (struct target_ops) <to_stop>: Use
8231 TARGET_DEFAULT_IGNORE.
8232
843f59ed
TT
82332014-02-19 Tom Tromey <tromey@redhat.com>
8234
8235 * target-delegates.c: Rebuild.
8236 * target.c (update_current_target): Don't inherit or default
8237 to_can_run_breakpoint_commands.
8238 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8239 Use TARGET_DEFAULT_RETURN.
8240
ccfde2a0
TT
82412014-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_supports_evaluation_of_breakpoint_conditions.
8246 * target.h (struct target_ops)
8247 <to_supports_evaluation_of_breakpoint_conditions>: Use
8248 TARGET_DEFAULT_RETURN.
8249
0de91722
TT
82502014-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_augmented_libraries_svr4_read.
8255 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8256 Use TARGET_DEFAULT_RETURN.
8257
9a7d8b48
TT
82582014-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_can_use_agent.
8263 * target.h (struct target_ops) <to_can_use_agent>: Use
8264 TARGET_DEFAULT_RETURN.
8265
d9db5b21
TT
82662014-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_use_agent.
8271 * target.h (struct target_ops) <to_use_agent>: Use
8272 TARGET_DEFAULT_NORETURN.
8273
92155eeb
TT
82742014-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_traceframe_info.
8279 (return_null): Remove.
8280 * target.h (struct target_ops) <to_traceframe_info>: Use
8281 TARGET_DEFAULT_RETURN.
8282
d6522a22
TT
82832014-02-19 Tom Tromey <tromey@redhat.com>
8284
8285 * target-delegates.c: Rebuild.
8286 * target.c (update_current_target): Don't inherit or default
8287 to_static_tracepoint_markers_by_strid.
8288 * target.h (struct target_ops)
8289 <to_static_tracepoint_markers_by_strid>: Use
8290 TARGET_DEFAULT_NORETURN.
8291
4c3e4425
TT
82922014-02-19 Tom Tromey <tromey@redhat.com>
8293
8294 * target-delegates.c: Rebuild.
8295 * target.c (update_current_target): Don't inherit or default
8296 to_static_tracepoint_marker_at.
8297 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8298 Use TARGET_DEFAULT_RETURN.
8299
dcd6917f
TT
83002014-02-19 Tom Tromey <tromey@redhat.com>
8301
8302 * target-delegates.c: Rebuild.
8303 * target.c (update_current_target): Don't inherit or default
8304 to_set_permissions.
8305 * target.h (struct target_ops) <to_set_permissions>: Use
8306 TARGET_DEFAULT_IGNORE.
8307
22bcceee
TT
83082014-02-19 Tom Tromey <tromey@redhat.com>
8309
8310 * target-delegates.c: Rebuild.
8311 * target.c (update_current_target): Don't inherit or default
8312 to_get_tib_address.
8313 * target.h (struct target_ops) <to_get_tib_address>: Use
8314 TARGET_DEFAULT_NORETURN.
8315
8586ccaa
TT
83162014-02-19 Tom Tromey <tromey@redhat.com>
8317
8318 * target-delegates.c: Rebuild.
8319 * target.c (update_current_target): Don't inherit or default
8320 to_set_trace_notes.
8321 * target.h (struct target_ops) <to_set_trace_notes>: Use
8322 TARGET_DEFAULT_RETURN.
8323
91df8d1d
TT
83242014-02-19 Tom Tromey <tromey@redhat.com>
8325
8326 * target-delegates.c: Rebuild.
8327 * target.c (update_current_target): Don't initialize
8328 to_set_trace_buffer_size.
8329 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8330 TARGET_DEFAULT_IGNORE.
8331
8d526939
TT
83322014-02-19 Tom Tromey <tromey@redhat.com>
8333
8334 * target-delegates.c: Rebuild.
8335 * target.c (update_current_target): Don't inherit or default
8336 to_set_circular_trace_buffer.
8337 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8338 TARGET_DEFAULT_IGNORE.
8339
0bcfeddf
TT
83402014-02-19 Tom Tromey <tromey@redhat.com>
8341
8342 * target-delegates.c: Rebuild.
8343 * target.c (update_current_target): Don't inherit or default
8344 to_set_disconnected_tracing.
8345 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8346 TARGET_DEFAULT_IGNORE.
8347
9249843f
TT
83482014-02-19 Tom Tromey <tromey@redhat.com>
8349
8350 * target-delegates.c: Rebuild.
8351 * target.c (update_current_target): Don't inherit or default
8352 to_get_min_fast_tracepoint_insn_len.
8353 (return_minus_one): Remove.
8354 * target.h (struct target_ops)
8355 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8356
ace92e7d
TT
83572014-02-19 Tom Tromey <tromey@redhat.com>
8358
8359 * target-delegates.c: Rebuild.
8360 * target.c (update_current_target): Don't inherit or default
8361 to_get_raw_trace_data.
8362 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8363 TARGET_DEFAULT_NORETURN.
8364
08120467
TT
83652014-02-19 Tom Tromey <tromey@redhat.com>
8366
8367 * target-delegates.c: Rebuild.
8368 * target.c (update_current_target): Don't inherit or default
8369 to_upload_trace_state_variables.
8370 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8371 Use TARGET_DEFAULT_RETURN.
8372
1e949b00
TT
83732014-02-19 Tom Tromey <tromey@redhat.com>
8374
8375 * target-delegates.c: Rebuild.
8376 * target.c (update_current_target): Don't inherit or default
8377 to_upload_tracepoints.
8378 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8379 TARGET_DEFAULT_RETURN.
8380
a2e6c147
TT
83812014-02-19 Tom Tromey <tromey@redhat.com>
8382
8383 * target-delegates.c: Rebuild.
8384 * target.c (update_current_target): Don't inherit or default
8385 to_save_trace_data.
8386 * target.h (struct target_ops) <to_save_trace_data>: Use
8387 TARGET_DEFAULT_NORETURN.
8388
959bcd0b
TT
83892014-02-19 Tom Tromey <tromey@redhat.com>
8390
8391 * target-delegates.c: Rebuild.
8392 * target.c (update_current_target): Don't inherit or default
8393 to_get_trace_state_variable_value.
8394 * target.h (struct target_ops)
8395 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8396
afc94e66
TT
83972014-02-19 Tom Tromey <tromey@redhat.com>
8398
8399 * target-delegates.c: Rebuild.
8400 * target.c (update_current_target): Don't inherit or default
8401 to_trace_find.
8402 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8403
e51c07ea
TT
84042014-02-19 Tom Tromey <tromey@redhat.com>
8405
8406 * target-delegates.c: Rebuild.
8407 * target.c (update_current_target): Don't inherit or default
8408 to_trace_stop.
8409 * target.h (struct target_ops) <to_trace_stop>: Use
8410 TARGET_DEFAULT_NORETURN.
8411
6fea14cd
TT
84122014-02-19 Tom Tromey <tromey@redhat.com>
8413
8414 * target-delegates.c: Rebuild.
8415 * target.c (update_current_target): Don't inherit or default
8416 to_get_tracepoint_status.
8417 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8418 TARGET_DEFAULT_NORETURN.
8419
4072d4ff
TT
84202014-02-19 Tom Tromey <tromey@redhat.com>
8421
8422 * target-delegates.c: Rebuild.
8423 * target.c (update_current_target): Don't inherit or default
8424 to_get_trace_status.
8425 * target.h (struct target_ops) <to_get_trace_status>: Use
8426 TARGET_DEFAULT_RETURN.
8427
25da2e80
TT
84282014-02-19 Tom Tromey <tromey@redhat.com>
8429
8430 * target-delegates.c: Rebuild.
8431 * target.c (update_current_target): Don't inherit or default
8432 to_trace_start.
8433 * target.h (struct target_ops) <to_trace_start>: Use
8434 TARGET_DEFAULT_NORETURN.
8435
86dd181d
TT
84362014-02-19 Tom Tromey <tromey@redhat.com>
8437
8438 * target-delegates.c: Rebuild.
8439 * target.c (update_current_target): Don't inherit or default
8440 to_trace_set_readonly_regions.
8441 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8442 Use TARGET_DEFAULT_NORETURN.
8443
05c41993
TT
84442014-02-19 Tom Tromey <tromey@redhat.com>
8445
8446 * target-delegates.c: Rebuild.
8447 * target.c (update_current_target): Don't inherit or default
8448 to_disable_tracepoint.
8449 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8450 TARGET_DEFAULT_NORETURN.
8451
151f70f1
TT
84522014-02-19 Tom Tromey <tromey@redhat.com>
8453
8454 * target-delegates.c: Rebuild.
8455 * target.c (update_current_target): Don't inherit or default
8456 to_enable_tracepoint.
8457 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8458 TARGET_DEFAULT_NORETURN.
8459
94eb98b9
TT
84602014-02-19 Tom Tromey <tromey@redhat.com>
8461
8462 * target-delegates.c: Rebuild.
8463 * target.c (update_current_target): Don't inherit or default
8464 to_download_trace_state_variable.
8465 * target.h (struct target_ops) <to_download_trace_state_variable>:
8466 Use TARGET_DEFAULT_NORETURN.
8467
719acc4a
TT
84682014-02-19 Tom Tromey <tromey@redhat.com>
8469
8470 * target-delegates.c: Rebuild.
8471 * target.c (update_current_target): Don't inherit or default
8472 to_can_download_tracepoint.
8473 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8474 TARGET_DEFAULT_RETURN.
8475
9a980a22
TT
84762014-02-19 Tom Tromey <tromey@redhat.com>
8477
8478 * target-delegates.c: Rebuild.
8479 * target.c (update_current_target): Don't inherit or default
8480 to_download_tracepoint.
8481 * target.h (struct target_ops) <to_download_tracepoint>: Use
8482 TARGET_DEFAULT_NORETURN.
8483
5536135b
TT
84842014-02-19 Tom Tromey <tromey@redhat.com>
8485
8486 * target-delegates.c: Rebuild.
8487 * target.c (update_current_target): Don't inherit or default
8488 to_trace_init.
8489 * target.h (struct target_ops) <to_trace_init>: Use
8490 TARGET_DEFAULT_RETURN.
8491
9409d39e
TT
84922014-02-19 Tom Tromey <tromey@redhat.com>
8493
8494 * target-delegates.c: Rebuild.
8495 * target.c (update_current_target): Don't inherit or default
8496 to_supports_string_tracing.
8497 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8498 TARGET_DEFAULT_RETURN.
8499
aab1b22d
TT
85002014-02-19 Tom Tromey <tromey@redhat.com>
8501
8502 * target-delegates.c: Rebuild.
8503 * target.c (update_current_target): Don't inherit or default
8504 to_supports_enable_disable_tracepoint.
8505 * target.h (struct target_ops)
8506 <to_supports_enable_disable_tracepoint>: Use
8507 TARGET_DEFAULT_RETURN.
8508
a7304748
TT
85092014-02-19 Tom Tromey <tromey@redhat.com>
8510
8511 * target-delegates.c: Rebuild.
8512 * target.c (update_current_target): Don't inherit or default
8513 to_supports_multi_process.
8514 * target.h (struct target_ops) <to_supports_multi_process>: Use
8515 TARGET_DEFAULT_RETURN.
8516
4229b31d
TT
85172014-02-19 Tom Tromey <tromey@redhat.com>
8518
8519 * target-delegates.c: Rebuild.
8520 * target.c (update_current_target): Don't inherit or default
8521 to_get_ada_task_ptid.
8522 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8523 TARGET_DEFAULT_FUNC.
8524
43eba180
TT
85252014-02-19 Tom Tromey <tromey@redhat.com>
8526
8527 * target-delegates.c: Rebuild.
8528 * target.c (update_current_target): Don't inherit or default
8529 to_thread_architecture.
8530 * target.h (struct target_ops) <to_thread_architecture>: Use
8531 TARGET_DEFAULT_FUNC.
8532
fe31bf5b
TT
85332014-02-19 Tom Tromey <tromey@redhat.com>
8534
8535 * target-delegates.c: Rebuild.
8536 * target.c (update_current_target): Don't inherit or default
8537 to_execution_direction.
8538 * target.h (struct target_ops) <to_execution_direction>: Use
8539 TARGET_DEFAULT_FUNC.
8540
53e1cfc7
TT
85412014-02-19 Tom Tromey <tromey@redhat.com>
8542
8543 * target-delegates.c: Rebuild.
8544 * target.c (update_current_target): Don't inherit or default
8545 to_can_execute_reverse.
8546 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8547 TARGET_DEFAULT_RETURN.
8548 (target_can_execute_reverse): Unconditionally delegate.
8549
9bb9d61d
TT
85502014-02-19 Tom Tromey <tromey@redhat.com>
8551
8552 * target-delegates.c: Rebuild.
8553 * target.c (update_current_target): Don't inherit or default
8554 to_goto_bookmark.
8555 (dummy_goto_bookmark): Remove.
8556 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8557 * target.h (struct target_ops) <to_goto_bookmark>: Use
8558 TARGET_DEFAULT_NORETURN.
8559
3dbafbbb
TT
85602014-02-19 Tom Tromey <tromey@redhat.com>
8561
8562 * target-delegates.c: Rebuild.
8563 * target.c (update_current_target): Don't inherit or default
8564 to_get_bookmark.
8565 (dummy_get_bookmark): Remove.
8566 (init_dummy_target): Don't inherit or default to_get_bookmark.
8567 * target.h (struct target_ops) <to_get_bookmark>: Use
8568 TARGET_DEFAULT_NORETURN
8569
16f796b1
TT
85702014-02-19 Tom Tromey <tromey@redhat.com>
8571
8572 * target-delegates.c: Rebuild.
8573 * target.c (update_current_target): Don't inherit or default
8574 to_make_corefile_notes.
8575 (init_dummy_target): Don't initialize to_make_corefile_notes.
8576 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8577 TARGET_DEFAULT_FUNC.
8578
0b5a2719
TT
85792014-02-19 Tom Tromey <tromey@redhat.com>
8580
8581 * target-delegates.c: Rebuild.
8582 * target.c (update_current_target): Don't inherit or default
8583 to_find_memory_regions.
8584 (init_dummy_target): Don't initialize to_find_memory_regions.
8585 * target.h (struct target_ops) <to_find_memory_regions>: Use
8586 TARGET_DEFAULT_FUNC.
8587
d9cb0195
TT
85882014-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_log_command.
8593 * target.h (struct target_ops) <to_log_command>: Use
8594 TARGET_DEFAULT_IGNORE.
8595 (target_log_command): Unconditionally delegate.
8596
830ca330
TT
85972014-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_pid_to_exec_file.
8602 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8603 TARGET_DEFAULT_RETURN.
8604
825828fc
TT
86052014-02-19 Tom Tromey <tromey@redhat.com>
8606
8607 * target-delegates.c: Rebuild.
8608 * target.c (update_current_target): Don't inherit or default
8609 to_thread_name.
8610 (target_thread_name): Unconditionally delegate.
8611 * target.h (struct target_ops) <to_thread_name>: Use
8612 TARGET_DEFAULT_RETURN.
8613
4a7e6dda
TT
86142014-02-19 Tom Tromey <tromey@redhat.com>
8615
8616 * target-delegates.c: Rebuild.
8617 * target.c (update_current_target): Don't inherit or default
8618 to_extra_thread_info.
8619 * target.h (struct target_ops) <to_extra_thread_info>: Use
8620 TARGET_DEFAULT_RETURN.
8621
0db88c1d
TT
86222014-02-19 Tom Tromey <tromey@redhat.com>
8623
8624 * target-delegates.c: Rebuild.
8625 * target.c (update_current_target): Don't inherit or default
8626 to_has_exited.
8627 * target.h (struct target_ops) <to_has_exited>: Use
8628 TARGET_DEFAULT_RETURN..
8629
6a9fa051
TT
86302014-02-19 Tom Tromey <tromey@redhat.com>
8631
8632 * target-delegates.c: Rebuild.
8633 * target.c (update_current_target): Don't inherit or default
8634 to_set_syscall_catchpoint.
8635 (return_one): Remove.
8636 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8637 TARGET_DEFAULT_RETURN.
8638
62f64d7a
TT
86392014-02-19 Tom Tromey <tromey@redhat.com>
8640
8641 * target-delegates.c: Rebuild.
8642 * target.c (update_current_target): Don't inherit or default
8643 to_insert_exec_catchpoint.
8644 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8645 TARGET_DEFAULT_RETURN.
8646
cda0f38c
TT
86472014-01-08 Tom Tromey <tromey@redhat.com>
8648
8649 * target-delegates.c: Rebuild.
8650 * target.c (update_current_target): Don't inherit or default
8651 to_insert_exec_catchpoint.
8652 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8653 TARGET_DEFAULT_RETURN.
8654
95c3375e
TT
86552014-02-19 Tom Tromey <tromey@redhat.com>
8656
8657 * target-delegates.c: Rebuild.
8658 * target.c (update_current_target): Don't inherit or default
8659 to_remove_vfork_catchpoint.
8660 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8661 TARGET_DEFAULT_RETURN.
8662
7e18a8dc
TT
86632014-02-19 Tom Tromey <tromey@redhat.com>
8664
8665 * target-delegates.c: Rebuild.
8666 * target.c (update_current_target): Don't inherit or default
8667 to_insert_vfork_catchpoint.
8668 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8669 TARGET_DEFAULT_RETURN.
8670
e1a21fb7
TT
86712014-02-19 Tom Tromey <tromey@redhat.com>
8672
8673 * target-delegates.c: Rebuild.
8674 * target.c (update_current_target): Don't inherit or default
8675 to_remove_fork_catchpoint.
8676 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8677 TARGET_DEFAULT_RETURN.
8678
5958ebeb
TT
86792014-02-19 Tom Tromey <tromey@redhat.com>
8680
8681 * target-delegates.c: Rebuild.
8682 * target.c (update_current_target): Don't inherit or default
8683 to_insert_fork_catchpoint.
8684 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8685 TARGET_DEFAULT_RETURN.
8686
340ba4bf
TT
86872014-02-19 Tom Tromey <tromey@redhat.com>
8688
8689 * target-delegates.c: Rebuild.
8690 * target.c (update_current_target): Don't inherit or default
8691 to_post_startup_inferior.
8692 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8693 TARGET_DEFAULT_IGNORE.
8694
7634da87
TT
86952014-02-19 Tom Tromey <tromey@redhat.com>
8696
8697 * target-delegates.c: Rebuild.
8698 * target.c (update_current_target): Don't inherit or default
8699 to_load.
8700 * target.h (struct target_ops) <to_load>: Use
8701 TARGET_DEFAULT_NORETURN.
8702
e19e919f
TT
87032014-02-19 Tom Tromey <tromey@redhat.com>
8704
8705 * target-delegates.c: Rebuild.
8706 * target.c (update_current_target): Don't inherit or default
8707 to_terminal_info.
8708 * target.h (struct target_ops) <to_terminal_info>: Use
8709 TARGET_DEFAULT_FUNC.
8710
c6ea8f79
TT
87112014-02-19 Tom Tromey <tromey@redhat.com>
8712
8713 * target-delegates.c: Rebuild.
8714 * target.c (update_current_target): Don't inherit or default
8715 to_terminal_save_ours.
8716 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8717 TARGET_DEFAULT_IGNORE.
8718
e4a733f1
TT
87192014-02-19 Tom Tromey <tromey@redhat.com>
8720
8721 * target-delegates.c: Rebuild.
8722 * target.c (update_current_target): Don't inherit or default
8723 to_terminal_ours.
8724 * target.h (struct target_ops) <to_terminal_ours>: Use
8725 TARGET_DEFAULT_IGNORE.
8726
74fcbef9
TT
87272014-02-19 Tom Tromey <tromey@redhat.com>
8728
8729 * target-delegates.c: Rebuild.
8730 * target.c (update_current_target): Don't inherit or default
8731 to_terminal_ours_for_output.
8732 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8733 TARGET_DEFAULT_IGNORE.
8734
ddeaacc9
TT
87352014-02-19 Tom Tromey <tromey@redhat.com>
8736
8737 * target-delegates.c: Rebuild.
8738 * target.c (update_current_target): Don't inherit or default
8739 to_terminal_inferior.
8740 * target.h (struct target_ops) <to_terminal_inferior>: Use
8741 TARGET_DEFAULT_IGNORE.
8742
0343661d
TT
87432014-02-19 Tom Tromey <tromey@redhat.com>
8744
8745 * target-delegates.c: Rebuild.
8746 * target.c (update_current_target): Don't inherit or default
8747 to_terminal_init.
8748 * target.h (struct target_ops) <to_terminal_init>: Use
8749 TARGET_DEFAULT_IGNORE.
8750
77cdffe9
TT
87512014-02-19 Tom Tromey <tromey@redhat.com>
8752
8753 * target-delegates.c: Rebuild.
8754 * target.c (update_current_target): Don't inherit or default
8755 to_can_accel_watchpoint_condition.
8756 * target.h (struct target_ops)
8757 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8758
d03655e4
TT
87592014-02-19 Tom Tromey <tromey@redhat.com>
8760
8761 * target-delegates.c: Rebuild.
8762 * target.c (update_current_target): Don't inherit or default
8763 to_region_ok_for_hw_watchpoint.
8764 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8765 Use TARGET_DEFAULT_FUNC.
8766
65f160a9
TT
87672014-02-19 Tom Tromey <tromey@redhat.com>
8768
8769 * target-delegates.c: Rebuild.
8770 * target.c (update_current_target): Don't inherit or default
8771 to_watchpoint_addr_within_range.
8772 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8773 Use TARGET_DEFAULT_FUNC.
8774
61dd109f
TT
87752014-02-19 Tom Tromey <tromey@redhat.com>
8776
8777 * target-delegates.c: Rebuild.
8778 * target.c (update_current_target): Don't inherit or default
8779 to_remove_watchpoint.
8780 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8781 TARGET_DEFAULT_NORETURN.
8782
016facd4
TT
87832014-02-19 Tom Tromey <tromey@redhat.com>
8784
8785 * target-delegates.c: Rebuild.
8786 * target.c (update_current_target): Don't inherit or default
8787 to_insert_watchpoint.
8788 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8789 TARGET_DEFAULT_RETURN.
8790
418dabac
TT
87912014-02-19 Tom Tromey <tromey@redhat.com>
8792
8793 * target-delegates.c: Rebuild.
8794 * target.c (update_current_target): Don't inherit or default
8795 to_remove_hw_breakpoint.
8796 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8797 TARGET_DEFAULT_RETURN.
8798
61b371f9
TT
87992014-02-19 Tom Tromey <tromey@redhat.com>
8800
8801 * target-delegates.c: Rebuild.
8802 * target.c (update_current_target): Don't inherit or default
8803 to_insert_hw_breakpoint.
8804 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8805 TARGET_DEFAULT_RETURN.
8806
52b51d06
TT
88072014-02-19 Tom Tromey <tromey@redhat.com>
8808
8809 * target-delegates.c: Rebuild.
8810 * target.c (update_current_target): Don't inherit or default
8811 to_can_use_hw_breakpoint.
8812 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8813 TARGET_DEFAULT_RETURN.
8814
f86e59b2
TT
88152014-02-19 Tom Tromey <tromey@redhat.com>
8816
8817 * target-delegates.c: Rebuild.
8818 * target.c (update_current_target): Don't inherit or default
8819 to_files_info.
8820 * target.h (struct target_ops) <to_files_info>: Use
8821 TARGET_DEFAULT_IGNORE.
8822
6c628163
TT
88232014-02-19 Tom Tromey <tromey@redhat.com>
8824
8825 * target-delegates.c: Rebuild.
8826 * target.c (update_current_target): Don't inherit or default
8827 to_store.
8828 * target.h (struct target_ops) <to_store>: Use
8829 TARGET_DEFAULT_NORETURN.
8830
bebd3233
TT
88312014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * target-delegates.c: Rebuild.
8834 * target.c (update_current_target): Don't inherit or default
8835 to_post_attach.
8836 * target.h (struct target_ops) <to_post_attach>: Use
8837 TARGET_DEFAULT_IGNORE.
8838
a53f3625
TT
88392014-02-19 Tom Tromey <tromey@redhat.com>
8840
8841 * target-delegates.c: Rebuild.
8842 * target.c (update_current_target): Don't inherit or default
8843 to_rcmd.
8844 (default_rcmd): New function.
8845 (do_monitor_command): Unconditionally delegate.
8846 * target.h (struct target_ops) <to_rmcd>: Use
8847 TARGET_DEFAULT_FUNC.
8848
e9a29200
TT
88492014-02-19 Tom Tromey <tromey@redhat.com>
8850
8851 * target-delegates.c: Rebuild.
8852 * target.c (init_dummy_target): Don't initialize to_attach.
8853 (target_attach): Unconditionally delegate.
8854 * target.h (struct target_ops) <to_attach>: Use
8855 TARGET_DEFAULT_FUNC.
8856
09da0d0a
TT
88572014-02-19 Tom Tromey <tromey@redhat.com>
8858
8859 * target-delegates.c: Rebuild.
8860 * target.c (target_detach): Unconditionally delegate.
8861 (init_dummy_target): Don't initialize to_detach.
8862 * target.h (struct target_ops) <to_detach>: Use
8863 TARGET_DEFAULT_IGNORE.
8864
5436ff03
TT
88652014-02-19 Tom Tromey <tromey@redhat.com>
8866
8867 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8868 Add argument.
8869 (target_augmented_libraries_svr4_read): Add argument.
8870 * target.c (update_current_target): Update.
8871 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8872 argument.
8873
f0d960ea
TT
88742014-02-19 Tom Tromey <tromey@redhat.com>
8875
8876 * target.h (struct target_ops) <to_call_history_range>: Add
8877 argument.
8878 * target.c (target_call_history_range): Add argument.
8879 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8880 argument.
8881 (record_btrace_call_history_from): Update.
8882
ec0aea04
TT
88832014-02-19 Tom Tromey <tromey@redhat.com>
8884
8885 * target.h (struct target_ops) <to_call_history_from>: Add
8886 argument.
8887 * target.c (target_call_history_from): Add argument.
8888 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8889 argument.
8890
5df2fcba
TT
88912014-02-19 Tom Tromey <tromey@redhat.com>
8892
8893 * target.h (struct target_ops) <to_call_history>: Add argument.
8894 * target.c (target_call_history): Add argument.
8895 * record-btrace.c (record_btrace_call_history): Add 'self'
8896 argument.
8897
4e99c6b7
TT
88982014-02-19 Tom Tromey <tromey@redhat.com>
8899
8900 * target.h (struct target_ops) <to_insn_history_range>: Add
8901 argument.
8902 * target.c (target_insn_history_range): Add argument.
8903 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8904 argument.
8905 (record_btrace_insn_history_from): Update.
8906
9abc3ff3
TT
89072014-02-19 Tom Tromey <tromey@redhat.com>
8908
8909 * target.h (struct target_ops) <to_insn_history_from>: Add
8910 argument.
8911 * target.c (target_insn_history_from): Add argument.
8912 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8913 argument.
8914
7a6c5609
TT
89152014-02-19 Tom Tromey <tromey@redhat.com>
8916
8917 * target.h (struct target_ops) <to_insn_history>: Add argument.
8918 * target.c (target_insn_history): Add argument.
8919 * record-btrace.c (record_btrace_insn_history): Add 'self'
8920 argument.
8921
606183ac
TT
89222014-02-19 Tom Tromey <tromey@redhat.com>
8923
8924 * target.h (struct target_ops) <to_goto_record>: Add argument.
8925 * target.c (target_goto_record): Add argument.
8926 * record-full.c (record_full_goto): Add 'self' argument.
8927 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8928
307a1b91
TT
89292014-02-19 Tom Tromey <tromey@redhat.com>
8930
8931 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8932 * target.c (target_goto_record_end): Add argument.
8933 * record-full.c (record_full_goto_end): Add 'self' argument.
8934 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8935
08475817
TT
89362014-02-19 Tom Tromey <tromey@redhat.com>
8937
8938 * target.h (struct target_ops) <to_goto_record_begin>: Add
8939 argument.
8940 * target.c (target_goto_record_begin): Add argument.
8941 * record-full.c (record_full_goto_begin): Add 'self' argument.
8942 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8943 argument.
8944
1c63c994
TT
89452014-02-19 Tom Tromey <tromey@redhat.com>
8946
8947 * target.h (struct target_ops) <to_record_is_replaying>: Add
8948 argument.
8949 * target.c (target_record_is_replaying): Add argument.
8950 * record-full.c (record_full_is_replaying): Add 'self' argument.
8951 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8952 argument.
8953 (record_btrace_xfer_partial, record_btrace_store_registers)
8954 (record_btrace_prepare_to_store, record_btrace_resume)
8955 (record_btrace_wait, record_btrace_decr_pc_after_break)
8956 (record_btrace_find_new_threads, record_btrace_thread_alive):
8957 Update.
8958
d1b55219
TT
89592014-02-19 Tom Tromey <tromey@redhat.com>
8960
8961 * target.h (struct target_ops) <to_delete_record>: Add argument.
8962 * target.c (target_delete_record): Add argument.
8963 * record-full.c (record_full_delete): Add 'self' argument.
8964
1390f529
TT
89652014-02-19 Tom Tromey <tromey@redhat.com>
8966
8967 * target.h (struct target_ops) <to_save_record>: Add argument.
8968 * target.c (target_save_record): Add argument.
8969 * record-full.c (record_full_save): Add 'self' argument.
8970 (record_full_save): Add 'self' argument.
8971
630d6a4a
TT
89722014-02-19 Tom Tromey <tromey@redhat.com>
8973
8974 * target.h (struct target_ops) <to_info_record>: Add argument.
8975 * target.c (target_info_record): Add argument.
8976 * record.c (info_record_command): Add argument.
8977 * record-full.c (record_full_info): Add 'self' argument.
8978 * record-btrace.c (record_btrace_info): Add 'self' argument.
8979
c6cd7c02
TT
89802014-02-19 Tom Tromey <tromey@redhat.com>
8981
8982 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8983 * target.c (target_stop_recording): Add argument.
8984 * record.c (record_stop): Add argument.
8985 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8986 argument.
8987
39c49f83
TT
89882014-02-19 Tom Tromey <tromey@redhat.com>
8989
8990 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8991 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8992 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8993 argument.
8994 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8995 (_initialize_amd64_linux_nat): Use it.
8996 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8997 (_initialize_i386_linux_nat): Use it.
8998
1777056d
TT
89992014-02-19 Tom Tromey <tromey@redhat.com>
9000
9001 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
9002 * target.c (target_teardown_btrace): Add argument.
9003 * remote.c (remote_teardown_btrace): Add 'self' argument.
9004 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
9005 argument.
9006 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
9007 argument.
9008
25e95349
TT
90092014-02-19 Tom Tromey <tromey@redhat.com>
9010
9011 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
9012 * target.c (target_disable_btrace): Add argument.
9013 * remote.c (remote_disable_btrace): Add 'self' argument.
9014 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
9015 argument.
9016 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
9017 argument.
9018
e3c49f88
TT
90192014-02-19 Tom Tromey <tromey@redhat.com>
9020
9021 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9022 * target.c (target_enable_btrace): Add argument.
9023 * remote.c (remote_enable_btrace): Add 'self' argument.
9024 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9025 argument.
9026 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9027 argument.
9028
fe38f897
TT
90292014-02-19 Tom Tromey <tromey@redhat.com>
9030
9031 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9032 (target_can_use_agent): Add argument.
9033 * target.c (update_current_target): Update.
9034 * remote.c (remote_can_use_agent): Add 'self' argument.
9035 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9036
2c152180
TT
90372014-02-19 Tom Tromey <tromey@redhat.com>
9038
9039 * target.h (struct target_ops) <to_use_agent>: Add argument.
9040 (target_use_agent): Add argument.
9041 * target.c (update_current_target): Update.
9042 * remote.c (remote_use_agent): Add 'self' argument.
9043 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9044
a893e81f
TT
90452014-02-19 Tom Tromey <tromey@redhat.com>
9046
9047 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9048 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9049 (target_traceframe_info): Add argument.
9050 * target.c (update_current_target): Update.
9051 * remote.c (remote_traceframe_info): Add 'self' argument.
9052 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9053
c686c57f
TT
90542014-02-19 Tom Tromey <tromey@redhat.com>
9055
9056 * target.h (target_static_tracepoint_markers_by_strid): Add
9057 argument.
9058 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9059 'self' argument.
9060 * target.c (update_current_target): Update.
9061 * remote.c (struct target_ops)
9062 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9063 * linux-nat.c (struct target_ops)
9064 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9065
61fc905d
TT
90662014-02-19 Tom Tromey <tromey@redhat.com>
9067
9068 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9069 Add argument.
9070 (target_static_tracepoint_marker_at): Add argument.
9071 * target.c (update_current_target): Update.
9072 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9073 argument.
9074
c378d69d
TT
90752014-02-19 Tom Tromey <tromey@redhat.com>
9076
9077 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9078 (target_set_permissions): Add argument.
9079 * target.c (update_current_target): Update.
9080 * remote.c (remote_set_permissions): Add 'self' argument.
9081 (remote_start_remote): Update.
9082
bd7ae0f5
TT
90832014-02-19 Tom Tromey <tromey@redhat.com>
9084
9085 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9086 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9087 (target_get_tib_address): Add argument.
9088 * target.c (update_current_target): Update.
9089 * remote.c (remote_get_tib_address): Add 'self' argument.
9090
d9e68a2c
TT
90912014-02-19 Tom Tromey <tromey@redhat.com>
9092
9093 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9094 (target_set_trace_notes): Add argument.
9095 * target.c (update_current_target): Update.
9096 * remote.c (remote_set_trace_notes): Add 'self' argument.
9097
4da384be
TT
90982014-02-19 Tom Tromey <tromey@redhat.com>
9099
9100 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9101 argument.
9102 (target_set_trace_buffer_size): Add argument.
9103 * target.c (update_current_target): Update.
9104 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9105
736d5b1f
TT
91062014-02-19 Tom Tromey <tromey@redhat.com>
9107
9108 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9109 argument.
9110 (target_set_circular_trace_buffer): Add argument.
9111 * target.c (update_current_target): Update.
9112 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9113 argument.
9114
37b25738
TT
91152014-02-19 Tom Tromey <tromey@redhat.com>
9116
9117 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9118 argument.
9119 (target_set_disconnected_tracing): Add argument.
9120 * target.c (update_current_target): Update.
9121 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9122
0e67620a
TT
91232014-02-19 Tom Tromey <tromey@redhat.com>
9124
9125 * target.h (struct target_ops)
9126 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9127 (target_get_min_fast_tracepoint_insn_len): Add argument.
9128 * target.c (update_current_target): Update.
9129 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9130 argument.
9131
88ee6f45
TT
91322014-02-19 Tom Tromey <tromey@redhat.com>
9133
9134 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9135 argument.
9136 (target_get_raw_trace_data): Add argument.
9137 * target.c (update_current_target): Update.
9138 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9139
181e3713
TT
91402014-02-19 Tom Tromey <tromey@redhat.com>
9141
9142 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9143 Add argument.
9144 (target_upload_trace_state_variables): Add argument.
9145 * target.c (update_current_target): Update.
9146 * remote.c (remote_upload_trace_state_variables): Add 'self'
9147 argument.
9148 (remote_start_remote): Update.
9149
ab6617cc
TT
91502014-02-19 Tom Tromey <tromey@redhat.com>
9151
9152 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9153 argument.
9154 (target_upload_tracepoints): Add argument.
9155 * target.c (update_current_target): Update.
9156 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9157 (remote_start_remote): Update.
9158
dc3decaf
TT
91592014-02-19 Tom Tromey <tromey@redhat.com>
9160
9161 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9162 (target_save_trace_data): Add argument.
9163 * target.c (update_current_target): Update.
9164 * remote.c (remote_save_trace_data): Add 'self' argument.
9165
4011015b
TT
91662014-02-19 Tom Tromey <tromey@redhat.com>
9167
9168 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9169 argument.
9170 * target.h (struct target_ops)
9171 <to_get_trace_state_variable_value>: Add argument.
9172 (target_get_trace_state_variable_value): Add argument.
9173 * target.c (update_current_target): Update.
9174 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9175 argument.
9176 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9177
bd4c6793
TT
91782014-02-19 Tom Tromey <tromey@redhat.com>
9179
9180 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9181 * target.h (struct target_ops) <to_trace_find>: Add argument.
9182 (target_trace_find): Add argument.
9183 * target.c (update_current_target): Update.
9184 * remote.c (remote_trace_find): Add 'self' argument.
9185 * ctf.c (ctf_trace_find): Add 'self' argument.
9186
74499f1b
TT
91872014-02-19 Tom Tromey <tromey@redhat.com>
9188
9189 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9190 (target_trace_stop): Add argument.
9191 * target.c (update_current_target): Update.
9192 * remote.c (remote_trace_stop): Add 'self' argument.
9193
db90e85c
TT
91942014-02-19 Tom Tromey <tromey@redhat.com>
9195
9196 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9197 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9198 argument.
9199 (target_get_tracepoint_status): Add argument.
9200 * target.c (update_current_target): Update.
9201 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9202
8bd200f1
TT
92032014-02-19 Tom Tromey <tromey@redhat.com>
9204
9205 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9206 * target.h (struct target_ops) <to_get_trace_status>: Add
9207 argument.
9208 (target_get_trace_status): Add argument.
9209 * target.c (update_current_target): Update.
9210 * remote.c (remote_get_trace_status): Add 'self' argument.
9211 (remote_start_remote, remote_can_download_tracepoint): Update.
9212 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9213
e2d1aae3
TT
92142014-02-19 Tom Tromey <tromey@redhat.com>
9215
9216 * target.h (struct target_ops) <to_trace_start>: Add argument.
9217 (target_trace_start): Add argument.
9218 * target.c (update_current_target): Update.
9219 * remote.c (remote_trace_start): Add 'self' argument.
9220
583f9a86
TT
92212014-02-19 Tom Tromey <tromey@redhat.com>
9222
9223 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9224 Add argument.
9225 (target_trace_set_readonly_regions): Add argument.
9226 * target.c (update_current_target): Update.
9227 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9228 argument.
9229
780b049c
TT
92302014-02-19 Tom Tromey <tromey@redhat.com>
9231
9232 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9233 argument.
9234 (target_disable_tracepoint): Add argument.
9235 * target.c (update_current_target): Update.
9236 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9237
46670d57
TT
92382014-02-19 Tom Tromey <tromey@redhat.com>
9239
9240 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9241 argument.
9242 (target_enable_tracepoint): Add argument.
9243 * target.c (update_current_target): Update.
9244 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9245
559d2b81
TT
92462014-02-19 Tom Tromey <tromey@redhat.com>
9247
9248 * target.h (struct target_ops) <to_download_trace_state_variable>:
9249 Add argument.
9250 (target_download_trace_state_variable): Add argument.
9251 * target.c (update_current_target): Update.
9252 * remote.c (remote_download_trace_state_variable): Add 'self'
9253 argument.
9254
a52a8357
TT
92552014-02-19 Tom Tromey <tromey@redhat.com>
9256
9257 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9258 argument.
9259 (target_can_download_tracepoint): Add argument.
9260 * target.c (update_current_target): Update.
9261 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9262
548f7808
TT
92632014-02-19 Tom Tromey <tromey@redhat.com>
9264
9265 * target.h (struct target_ops) <to_download_tracepoint>: Add
9266 argument.
9267 (target_download_tracepoint): Add argument.
9268 * target.c (update_current_target): Update.
9269 * remote.c (remote_download_tracepoint): Add 'self' argument.
9270
ecae04e1
TT
92712014-02-19 Tom Tromey <tromey@redhat.com>
9272
9273 * target.h (struct target_ops) <to_trace_init>: Add argument.
9274 (target_trace_init): Add argument.
9275 * target.c (update_current_target): Update.
9276 * remote.c (remote_trace_init): Add 'self' argument.
9277
fab5aa7c
TT
92782014-02-19 Tom Tromey <tromey@redhat.com>
9279
9280 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9281 * target.c (target_fileio_readlink): Add argument.
9282 * remote.c (remote_hostio_readlink): Add 'self' argument.
9283 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9284
dbbca37d
TT
92852014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9288 * target.c (target_fileio_unlink): Add argument.
9289 * remote.c (remote_hostio_unlink): Add 'self' argument.
9290 (remote_file_delete): Update.
9291 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9292
df39ea25
TT
92932014-02-19 Tom Tromey <tromey@redhat.com>
9294
9295 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9296 * target.c (target_fileio_close): Add argument.
9297 * remote.c (remote_hostio_close): Add 'self' argument.
9298 (remote_hostio_close_cleanup): Update.
9299 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9300 Update.
9301 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9302
a3be983c
TT
93032014-02-19 Tom Tromey <tromey@redhat.com>
9304
9305 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9306 * target.c (target_fileio_pread): Add argument.
9307 * remote.c (remote_hostio_pread): Add 'self' argument.
9308 (remote_bfd_iovec_pread, remote_file_get): Update.
9309 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9310
0d866f62
TT
93112014-02-19 Tom Tromey <tromey@redhat.com>
9312
9313 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9314 * target.c (target_fileio_pwrite): Add argument.
9315 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9316 (remote_file_put): Update.
9317 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9318
cd897586
TT
93192014-02-19 Tom Tromey <tromey@redhat.com>
9320
9321 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9322 * target.c (target_fileio_open): Add argument.
9323 * remote.c (remote_hostio_open): Add 'self' argument.
9324 (remote_bfd_iovec_open): Add 'self' argument.
9325 (remote_file_put): Add 'self' argument.
9326 (remote_file_get): Add 'self' argument.
9327 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9328
78eff0ec
TT
93292014-02-19 Tom Tromey <tromey@redhat.com>
9330
9331 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9332 Add argument.
9333 (target_can_run_breakpoint_commands): Add argument.
9334 * target.c (update_current_target): Update.
9335 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9336 argument.
9337 (remote_insert_breakpoint): Add 'self' argument.
9338 (remote_insert_hw_breakpoint): Add 'self' argument.
9339 (remote_can_run_breakpoint_commands): Add 'self' argument.
9340
efcc2da7
TT
93412014-02-19 Tom Tromey <tromey@redhat.com>
9342
9343 * target.h (struct target_ops)
9344 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9345 (target_supports_evaluation_of_breakpoint_conditions): Add
9346 argument.
9347 * target.c (update_current_target): Update.
9348 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9349 argument.
9350 (remote_insert_breakpoint): Add 'self' argument.
9351 (remote_insert_hw_breakpoint): Add 'self' argument.
9352 (remote_supports_cond_breakpoints): Add 'self' argument.
9353
6de37a3a
TT
93542014-02-19 Tom Tromey <tromey@redhat.com>
9355
9356 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9357 argument.
9358 (target_supports_string_tracing): Add argument.
9359 * target.c (update_current_target): Update.
9360 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9361
2bfc0540
TT
93622014-02-19 Tom Tromey <tromey@redhat.com>
9363
9364 * target.h (struct target_ops)
9365 <to_supports_disable_randomization>: Add argument.
9366 * target.c (find_default_supports_disable_randomization): Add
9367 argument.
9368 (target_supports_disable_randomization): Add argument.
9369 (find_default_supports_disable_randomization): Add 'self'
9370 argument.
9371 * remote.c (extended_remote_supports_disable_randomization): Add
9372 'self' argument.
9373 (remote_supports_disable_randomization): Add 'self' argument.
9374 (extended_remote_create_inferior): Update.
9375 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9376 'self' argument.
9377
7d178d6a
TT
93782014-02-19 Tom Tromey <tromey@redhat.com>
9379
9380 * target.h (struct target_ops)
9381 <to_supports_enable_disable_tracepoint>: Add argument.
9382 (target_supports_enable_disable_tracepoint): Add argument.
9383 * target.c (update_current_target): Update.
9384 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9385 argument.
9386
86ce2668
TT
93872014-02-19 Tom Tromey <tromey@redhat.com>
9388
9389 * target.h (struct target_ops) <to_supports_multi_process>: Add
9390 argument.
9391 (target_supports_multi_process): Add argument.
9392 * target.c (update_current_target): Update.
9393 * remote.c (remote_supports_multi_process): Add 'self' argument.
9394 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9395 argument.
9396 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9397 argument.
9398
4c612759
TT
93992014-02-19 Tom Tromey <tromey@redhat.com>
9400
9401 * target.h (struct target_ops) <to_execution_direction>: Add
9402 argument.
9403 (target_execution_direction): Add argument.
9404 * target.c (default_execution_direction): Add 'self' argument.
9405 * record-full.c (record_full_execution_direction): Add 'self'
9406 argument.
9407
19db3e69
TT
94082014-02-19 Tom Tromey <tromey@redhat.com>
9409
9410 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9411 argument.
9412 (target_can_execute_reverse): Add argument.
9413 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9414 * record-full.c (record_full_can_execute_reverse): Add 'self'
9415 argument.
9416 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9417 argument.
9418
1e6b91a4
TT
94192014-02-19 Tom Tromey <tromey@redhat.com>
9420
9421 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9422 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9423 argument.
9424 (target_get_ada_task_ptid): Add argument.
9425 * target.c (update_current_target): Update.
9426 (default_get_ada_task_ptid): Add 'self' argument.
9427 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9428 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9429 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9430 argument.
9431 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9432 argument.
9433 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9434 argument.
9435 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9436 argument.
9437 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9438 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9439 argument.
9440
3c80fb48
TT
94412014-02-19 Tom Tromey <tromey@redhat.com>
9442
9443 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9444 (target_goto_bookmark): Add argument.
9445 * target.c (dummy_goto_bookmark): Add 'self' argument.
9446 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9447
dd0e2830
TT
94482014-02-19 Tom Tromey <tromey@redhat.com>
9449
9450 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9451 (target_get_bookmark): Add argument.
9452 * target.c (dummy_get_bookmark): Add 'self' argument.
9453 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9454
fc6691b2
TT
94552014-02-19 Tom Tromey <tromey@redhat.com>
9456
9457 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9458 argument.
9459 (target_make_corefile_notes): Add argument.
9460 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9461 * procfs.c (procfs_make_note_section): Add 'self' argument.
9462 (procfs_make_note_section): Add 'self' argument.
9463 (procfs_make_note_section): Add 'self' argument.
9464 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9465 argument.
9466 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9467 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9468 * exec.c (exec_make_note_section): Add 'self' argument.
9469 (exec_make_note_section): Add 'self' argument.
9470
2e73927c
TT
94712014-02-19 Tom Tromey <tromey@redhat.com>
9472
9473 * target.h (struct target_ops) <to_find_memory_regions>: Add
9474 argument.
9475 (target_find_memory_regions): Add argument.
9476 * target.c (dummy_find_memory_regions): Add 'self' argument.
9477 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9478 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9479 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9480 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9481 * exec. (exec_do_find_memory_regions): New global.
9482 (exec_set_find_memory_regions): Rewrite.
9483 (exec_find_memory_regions): New function.
9484 (init_exec_ops): Use exec_find_memory_regions.
9485
2a9a2795
TT
94862014-02-19 Tom Tromey <tromey@redhat.com>
9487
9488 * target.h (struct target_ops) <to_supports_non_stop>: Add
9489 argument.
9490 * target.c (find_default_supports_non_stop): Add argument.
9491 (target_supports_non_stop): Add argument.
9492 (find_default_supports_non_stop): Add 'self' argument.
9493 * remote.c (remote_supports_non_stop): Add 'self' argument.
9494 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9495
4ab76ea3
TT
94962014-02-19 Tom Tromey <tromey@redhat.com>
9497
9498 * target.h (struct target_ops) <to_log_command>: Add argument.
9499 (target_log_command): Add argument.
9500 * serial.h (serial_log_command): Add 'self' argument.
9501 * serial.c (serial_log_command): Add 'self' argument.
9502
8dd27370
TT
95032014-02-19 Tom Tromey <tromey@redhat.com>
9504
9505 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9506 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9507 argument.
9508 (target_pid_to_exec_file): Add argument.
9509 * target.c (debug_to_pid_to_exec_file): Add argument.
9510 (update_current_target): Update.
9511 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9512 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9513 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9514 (linux_handle_extended_wait): Update.
9515 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9516 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9517 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9518 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9519
1aac633b
TT
95202014-02-19 Tom Tromey <tromey@redhat.com>
9521
9522 * target.h (struct target_ops) <to_rcmd>: Add argument.
9523 (target_rcmd): Add argument.
9524 * target.c (debug_to_rcmd): Add argument.
9525 (update_current_target, do_monitor_command): Update.
9526 * remote.c (remote_rcmd): Add 'self' argument.
9527 * monitor.c (monitor_rcmd): Add 'self' argument.
9528
1eab8a48
TT
95292014-02-19 Tom Tromey <tromey@redhat.com>
9530
9531 * windows-nat.c (windows_stop): Add 'self' argument.
9532 * target.h (struct target_ops) <to_stop>: Add argument.
9533 * target.c (target_stop): Add argument.
9534 (debug_to_stop): Add argument.
9535 (update_current_target): Update.
9536 * remote.c (remote_stop): Add 'self' argument.
9537 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9538 (gdbsim_cntrl_c): Update.
9539 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9540 * procfs.c (procfs_stop): Add 'self' argument.
9541 * nto-procfs.c (procfs_stop): Add 'self' argument.
9542 * monitor.c (monitor_stop): Add 'self' argument.
9543 (monitor_open): Update.
9544 * linux-nat.c (linux_nat_stop): Add argument.
9545 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9546 * gnu-nat.c (gnu_stop): Add 'self' argument.
9547 * darwin-nat.c (darwin_stop): Add 'self' argument.
9548
503a628d
TT
95492014-02-19 Tom Tromey <tromey@redhat.com>
9550
9551 * target.h (struct target_ops) <to_thread_name>: Add argument.
9552 * target.c (target_thread_name): Add argument.
9553 (update_current_target): Update.
9554 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9555
c15906d8
TT
95562014-02-19 Tom Tromey <tromey@redhat.com>
9557
9558 * target.h (struct target_ops) <to_extra_thread_info>: Add
9559 argument.
9560 (target_extra_thread_info): Add argument.
9561 * target.c (update_current_target): Update.
9562 * remote.c (remote_threads_extra_info): Add 'self' argument.
9563 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9564 argument.
9565 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9566 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9567 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9568 argument.
9569 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9570 argument.
9571 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9572 argument.
9573 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9574 argument.
9575
daf5e9b6
TT
95762014-02-19 Tom Tromey <tromey@redhat.com>
9577
9578 * target.h (struct target_ops) <to_program_signals>: Add argument.
9579 * target.c (target_program_signals): Add argument.
9580 * remote.c (remote_program_signals): Add 'self' argument.
9581
94bedb42
TT
95822014-02-19 Tom Tromey <tromey@redhat.com>
9583
9584 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9585 * target.c (target_pass_signals): Add argument.
9586 * remote.c (remote_pass_signals): Add 'self' argument.
9587 (remote_start_remote): Update.
9588 * procfs.c (procfs_pass_signals): Add 'self' argument.
9589 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9590 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9591 (linux_nat_create_inferior, linux_nat_attach): Update.
9592
da82bd6b
TT
95932014-02-19 Tom Tromey <tromey@redhat.com>
9594
9595 * windows-nat.c (windows_can_run): Add 'self' argument.
9596 * target.h (struct target_ops) <to_can_run>: Add argument.
9597 (target_can_run): Add argument.
9598 * target.c (debug_to_can_run): Add argument.
9599 (update_current_target): Update.
9600 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9601 * inf-child.c (inf_child_can_run): Add 'self' argument.
9602 * go32-nat.c (go32_can_run): Add 'self' argument.
9603
d796e1d6
TT
96042014-02-19 Tom Tromey <tromey@redhat.com>
9605
9606 * target.h (struct target_ops) <to_has_exited>: Add argument.
9607 (target_has_exited): Add argument.
9608 * target.c (debug_to_has_exited): Add argument.
9609 (update_current_target): Update.
9610
ff214e67
TT
96112014-02-19 Tom Tromey <tromey@redhat.com>
9612
9613 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9614 argument.
9615 (target_set_syscall_catchpoint): Add argument.
9616 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9617 argument.
9618 * target.c (update_current_target): Update.
9619
758e29d2
TT
96202014-02-19 Tom Tromey <tromey@redhat.com>
9621
9622 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9623 argument.
9624 (target_remove_exec_catchpoint): Add argument.
9625 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9626 (update_current_target): Update.
9627 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9628 argument.
9629
ba025e51
TT
96302014-02-19 Tom Tromey <tromey@redhat.com>
9631
9632 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9633 argument.
9634 (target_insert_exec_catchpoint): Add argument.
9635 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9636 (update_current_target): Update.
9637 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9638 argument.
9639
e98cf0cd
TT
96402014-02-19 Tom Tromey <tromey@redhat.com>
9641
9642 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9643 argument.
9644 (target_remove_vfork_catchpoint): Add argument.
9645 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9646 (update_current_target): Update.
9647 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9648 argument.
9649
3ecc7da0
TT
96502014-02-19 Tom Tromey <tromey@redhat.com>
9651
9652 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9653 argument.
9654 (target_insert_vfork_catchpoint): Add argument.
9655 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9656 (update_current_target): Update.
9657 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9658 argument.
9659
973fc227
TT
96602014-02-19 Tom Tromey <tromey@redhat.com>
9661
9662 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9663 argument.
9664 (target_remove_fork_catchpoint): Add argument.
9665 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9666 (update_current_target): Update.
9667 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9668 argument.
9669
a863b201
TT
96702014-02-19 Tom Tromey <tromey@redhat.com>
9671
9672 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9673 argument.
9674 (target_insert_fork_catchpoint): Add argument.
9675 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9676 (update_current_target): Update.
9677 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9678 argument.
9679
2e97a79e
TT
96802014-02-19 Tom Tromey <tromey@redhat.com>
9681
9682 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9683 argument.
9684 (target_post_startup_inferior): Add argument.
9685 * target.c (debug_to_post_startup_inferior): Add argument.
9686 (update_current_target): Update.
9687 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9688 argument.
9689 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9690 argument.
9691 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9692 argument.
9693 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9694 argument.
9695 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9696 'self' argument.
9697 (super_post_startup_inferior): Likewise.
9698 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9699 'self' argument.
9700 (super_post_startup_inferior): Likewise.
9701 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9702 Add 'self' argument.
9703 (super_post_startup_inferior): Likewise.
9704
71a9f134
TT
97052014-02-19 Tom Tromey <tromey@redhat.com>
9706
9707 * target.h (struct target_ops) <to_load>: Add argument.
9708 * target.c (target_load): Add argument.
9709 (debug_to_load): Add argument.
9710 (update_current_target): Update.
9711 * remote.c (remote_load): Add 'self' argument.
9712 * remote-sim.c (gdbsim_load): Add 'self' argument.
9713 * remote-mips.c (mips_load): Add 'self' argument.
9714 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9715 * monitor.c (monitor_load): Add 'self' argument.
9716 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9717
0a4f40a2
TT
97182014-02-19 Tom Tromey <tromey@redhat.com>
9719
9720 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9721 (target_terminal_info): Add argument.
9722 * target.c (debug_to_terminal_info): Add argument.
9723 (default_terminal_info): Likewise.
9724 * inflow.c (child_terminal_info): Add 'self' argument.
9725 * inferior.h (child_terminal_info): Add 'self' argument.
9726 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9727
ae3bd431
TT
97282014-02-19 Tom Tromey <tromey@redhat.com>
9729
9730 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9731 argument.
9732 (target_terminal_save_ours): Add argument.
9733 * target.c (debug_to_terminal_save_ours): Add argument.
9734 (update_current_target): Update.
9735 * inflow.c (terminal_save_ours): Add 'self' argument.
9736 * inferior.h (terminal_save_ours): Add 'self' argument.
9737
e3594fd1
TT
97382014-02-19 Tom Tromey <tromey@redhat.com>
9739
9740 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9741 (target_terminal_ours): Add argument.
9742 * target.c (debug_to_terminal_ours): Add argument.
9743 (update_current_target): Update.
9744 * remote.c (remote_terminal_ours): Add 'self' argument.
9745 (remote_close): Update.
9746 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9747 * inflow.c (terminal_ours): Add 'self' argument.
9748 * inferior.h (terminal_ours): Add 'self' argument.
9749 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9750
2e1e1a19
TT
97512014-02-19 Pedro Alves <palves@redhat.com>
9752 Tom Tromey <tromey@redhat.com>
9753
9754 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9755 argument.
9756 (target_terminal_ours_for_output): Add argument.
9757 * target.c (debug_to_terminal_ours_for_output): Add argument.
9758 (update_current_target): Update.
9759 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9760 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9761 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9762
d2f640d4
TT
97632014-02-19 Tom Tromey <tromey@redhat.com>
9764
9765 * target.h (struct target_ops) <to_terminal_inferior>: Add
9766 argument.
9767 * target.c (target_terminal_inferior): Add argument.
9768 (update_current_target): Update.
9769 * remote.c (remote_terminal_inferior): Add 'self' argument.
9770 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9771 * inflow.c (terminal_inferior): Add 'self' argument.
9772 * inferior.h (terminal_inferior): Add 'self' argument.
9773 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9774 (go32_terminal_inferior): Add 'self' argument.
9775
c42bf286
TT
97762014-02-19 Tom Tromey <tromey@redhat.com>
9777
9778 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9779 (target_terminal_init): Add argument.
9780 * target.c (debug_to_terminal_init): Add argument.
9781 (update_current_target): Update.
9782 * inflow.c (terminal_init_inferior): Add 'self' argument.
9783 * inferior.h (terminal_init_inferior): Add 'self' argument.
9784 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9785 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9786
c3a5ff89
TT
97872014-02-19 Tom Tromey <tromey@redhat.com>
9788
9789 * target.h (struct target_ops)
9790 <to_can_accel_watchpoint_condition>: Add argument.
9791 (target_can_accel_watchpoint_condition): Add argument.
9792 * target.c (debug_to_can_accel_watchpoint_condition): Add
9793 argument.
9794 (update_current_target): Update.
9795 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9796 'self' argument.
9797
31568a15
TT
97982014-02-19 Tom Tromey <tromey@redhat.com>
9799
9800 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9801 Add argument.
9802 (target_region_ok_for_hw_watchpoint): Add argument.
9803 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9804 (default_region_ok_for_hw_watchpoint): Add argument.
9805 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9806 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9807 argument.
9808 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9809 argument.
9810 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9811 argument.
9812 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9813 'self' argument.
9814 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9815 'self' argument.
9816 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9817 'self' argument.
9818 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9819 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9820 'self' argument.
9821 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9822 Add 'self' argument.
9823
7bb99c53
TT
98242014-02-19 Tom Tromey <tromey@redhat.com>
9825
9826 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9827 argument.
9828 (target_insert_watchpoint): Add argument.
9829 * target.c (debug_to_insert_watchpoint): Add argument.
9830 (update_current_target): Update.
9831 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9832 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9833 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9834 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9835 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9836 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9837 argument.
9838 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9839 (procfs_insert_hw_watchpoint): Add 'self' argument.
9840 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9841 argument.
9842 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9843 argument.
9844 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9845 argument.
9846 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9847 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9848 argument.
9849 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9850 'self' argument.
9851
11b5219a
TT
98522014-02-19 Tom Tromey <tromey@redhat.com>
9853
9854 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9855 argument.
9856 (target_remove_watchpoint): Add argument.
9857 * target.c (debug_to_remove_watchpoint): Add argument.
9858 (update_current_target): Update.
9859 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9860 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9861 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9862 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9863 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9864 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9865 argument.
9866 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9867 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9868 argument.
9869 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9870 argument.
9871 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9872 argument.
9873 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9874 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9875 argument.
9876 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9877 'self' argument.
9878
a64dc96c
TT
98792014-02-19 Tom Tromey <tromey@redhat.com>
9880
9881 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9882 argument.
9883 (target_remove_hw_breakpoint): Add argument.
9884 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9885 (update_current_target): Update.
9886 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9887 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9888 argument.
9889 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9890 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9891 argument.
9892 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9893 'self' argument.
9894
23a26771
TT
98952014-02-19 Tom Tromey <tromey@redhat.com>
9896
9897 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9898 argument.
9899 (target_insert_hw_breakpoint): Add argument.
9900 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9901 (update_current_target): Update.
9902 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9903 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9904 argument.
9905 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9906 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9907 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9908 argument.
9909 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9910 'self' argument.
9911
5461485a
TT
99122014-02-19 Tom Tromey <tromey@redhat.com>
9913
9914 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9915 argument.
9916 (target_can_use_hardware_watchpoint): Add argument.
9917 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9918 (update_current_target): Update.
9919 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9920 argument.
9921 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9922 argument.
9923 * remote.c (remote_check_watch_resources): Add 'self' argument.
9924 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9925 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9926 argument.
9927 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9928 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9929 argument.
9930 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9931 argument.
9932 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9933 argument.
9934 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9935 argument.
9936 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9937 argument.
9938 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9939 argument.
9940 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9941 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9942 argument.
9943 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9944 'self' argument.
9945
f045800c
TT
99462014-02-19 Tom Tromey <tromey@redhat.com>
9947
9948 * target.h (struct target_ops) <to_post_attach>: Add argument.
9949 (target_post_attach): Add argument.
9950 * target.c (debug_to_post_attach): Add argument.
9951 (update_current_target): Update.
9952 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9953 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9954 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9955 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9956 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9957
de90e03d
TT
99582014-02-19 Tom Tromey <tromey@redhat.com>
9959
9960 * windows-nat.c (windows_close): Add 'self' argument.
9961 * tracepoint.c (tfile_close): Add 'self' argument.
9962 * target.h (struct target_ops) <to_close>: Add argument.
9963 * target.c (target_close): Add argument.
9964 (update_current_target): Update.
9965 * remote.c (remote_close): Add 'self' argument.
9966 * remote-sim.c (gdbsim_close): Add 'self' argument.
9967 * remote-mips.c (mips_close): Add 'self' argument.
9968 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9969 * record-full.c (record_full_close): Add 'self' argument.
9970 * record-btrace.c (record_btrace_close): Add 'self' argument.
9971 * monitor.h (monitor_close): Add 'self' argument.
9972 * monitor.c (monitor_close): Add 'self' argument.
9973 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9974 * linux-nat.c (linux_nat_close): Add argument.
9975 * go32-nat.c (go32_close): Add 'self' argument.
9976 * exec.c (exec_close_1): Add 'self' argument.
9977 * ctf.c (ctf_close): Add 'self' argument.
9978 * corelow.c (core_close): Add 'self' argument.
9979 (core_close_cleanup): Update.
9980 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9981 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9982
9dd130a0
TT
99832014-02-19 Tom Tromey <tromey@redhat.com>
9984
9985 * remote.c (remote_load): New function.
9986 (init_remote_ops): Use it.
9987
46917d26
TT
99882014-02-19 Tom Tromey <tromey@redhat.com>
9989
9990 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9991 argument.
9992 * common/linux-btrace.h (linux_supports_btrace): Update.
9993 * remote.c (remote_supports_btrace): Add "self" argument.
9994 * target-delegates.c: Rebuild.
9995 * target.c (target_supports_btrace): Remove.
9996 * target.h (struct target_ops) <to_supports_btrace>: Add
9997 target_ops argument.
9998 (target_supports_btrace): New define.
9999
6b84065d
TT
100002014-02-19 Tom Tromey <tromey@redhat.com>
10001
10002 * record-full.c (record_full_beneath_to_resume_ops)
10003 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
10004 (record_full_beneath_to_wait)
10005 (record_full_beneath_to_store_registers_ops)
10006 (record_full_beneath_to_store_registers)
10007 (record_full_beneath_to_xfer_partial_ops)
10008 (record_full_beneath_to_xfer_partial)
10009 (record_full_beneath_to_insert_breakpoint_ops)
10010 (record_full_beneath_to_insert_breakpoint)
10011 (record_full_beneath_to_remove_breakpoint_ops)
10012 (record_full_beneath_to_remove_breakpoint)
10013 (record_full_beneath_to_stopped_by_watchpoint)
10014 (record_full_beneath_to_stopped_data_address)
10015 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
10016 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
10017 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10018 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10019 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10020 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10021 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10022 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10023 (record_full_resume, record_full_wait_1)
10024 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10025 (record_full_store_registers, record_full_xfer_partial)
10026 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10027 (record_full_async, record_full_core_xfer_partial): Use target
10028 delegation.
10029 * target-delegates.c: Rebuild.
10030 * target.c (current_xfer_partial): Remove.
10031 (update_current_target): Do not INHERIT or de_fault
10032 to_insert_breakpoint, to_remove_breakpoint,
10033 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10034 to_is_async_p, to_async. Do not set to_xfer_partial field.
10035 (default_xfer_partial): Simplify.
10036 (current_xfer_partial): Remove.
10037 (target_wait, target_resume): Simplify.
10038 (find_default_can_async_p, find_default_is_async_p): Update.
10039 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10040 to_xfer_partial, to_stopped_by_watchpoint,
10041 to_stopped_data_address.
10042 (target_store_registers): Simplify.
10043 (forward_target_remove_breakpoint)
10044 (forward_target_insert_breakpoint): Remove.
10045 (target_remove_breakpoint, target_insert_breakpoint)
10046 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10047 * target.h (struct target_ops) <to_resume, to_wait,
10048 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10049 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10050 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10051 markup.
10052 (forward_target_remove_breakpoint)
10053 (forward_target_insert_breakpoint): Remove.
10054 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10055 directly.
10056 (record_btrace_insert_breakpoint): Delegate directly.
10057
1101cb7b
TT
100582014-02-19 Tom Tromey <tromey@redhat.com>
10059
10060 PR build/7701:
10061 * target-delegates.c: New file.
10062 * target.c: Include target-delegates.c.
10063 (init_dummy_target): Call install_dummy_methods.
10064 (complete_target_initialization): Call install_delegators.
10065 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10066 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10067 * make-target-delegates: New file.
10068
8b06beed
TT
100692014-02-19 Tom Tromey <tromey@redhat.com>
10070
10071 * record.c (find_record_target): Use find_target_at.
10072 * target.c (find_target_at): New function.
10073 * target.h (find_target_at): Declare.
10074
6a109b6b
TT
100752014-02-19 Tom Tromey <tromey@redhat.com>
10076
10077 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10078 Add 'ops' argument.
10079 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10080 'ops' argument.
10081 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10082 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10083 'ops' argument.
10084 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10085 argument.
10086 * linux-nat.c (save_sigtrap): Update.
10087 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10088 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10089 (linux_nat_close): Update.
10090 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10091 argument.
10092 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10093 argument.
10094 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10095 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10096 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10097 (tmp_to_async): Add 'ops' argument.
10098 (record_full_stopped_by_watchpoint, record_full_async)
10099 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10100 argument.
10101 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10102 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10103 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10104 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10105 (remote_is_async_p, remote_async): Add 'ops' argument.
10106 (remote_stopped_data_address): Update.
10107 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10108 * target.c (update_current_target)
10109 (find_default_can_async_p, find_default_is_async_p): Update.
10110 (init_dummy_target): Update.
10111 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10112 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10113 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10114 (target_can_async_p, target_is_async_p, target_async)
10115 (target_stopped_by_watchpoint): Update.
10116
e095146b
YQ
101172014-02-19 Yao Qi <yao@codesourcery.com>
10118
10119 PR gdb/16220
10120 * gdbarch.sh: Remove startup_gdbarch.
10121 * gdbarch.c: Regenerated.
10122 * gdbarch.h: Likewise.
10123
bc3c6b36
KB
101242014-02-17 Kevin Buettner <kevinb@redhat.com>
10125
10126 * rl78-tdep.c (rl78_g10_register_name): New function.
10127 (rl78_return_value): Add g10 support.
10128 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10129 g10.
10130
98dc0167 101312014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10132
10133 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10134 (SUBDIR_GUILE_SRCS): Ditto.
10135 (scm-gsmob.o): Ditto.
10136
842c05cd
YQ
101372014-02-17 Yao Qi <yao@codesourcery.com>
10138
10139 * gnu-nat.c (ILL_RPC): Declare defined function.
10140
25c0bd04
YQ
101412014-02-17 Yao Qi <yao@codesourcery.com>
10142
10143 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10144 mach_msg_type_number_t.
10145 (gnu_write_inferior): Likewise.
10146
a9a758e3
YQ
101472014-02-17 Yao Qi <yao@codesourcery.com>
10148
10149 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10150 in format string.
10151 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10152 (inf_validate_procs, inf_signal): Likewise.
10153 (S_exception_raise_request): Likewise.
10154 (do_mach_notify_dead_name): Likewise.
10155 (steal_exc_port): Likewise.
10156 (gnu_read_inferior): Change 'copy_count''s type to
10157 mach_msg_type_number_t.
10158 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10159 format string.
10160
bae8023e
TS
101612014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10162
c82f56d9
TS
10163 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10164 flag. Adjust all users; in particular...
10165 (gnu_wait): ..., don't decrement its value in here...
10166 (gnu_create_inferior): ..., and instead set the flag in here,
10167 around the startup_inferior call, and call that one with
10168 START_INFERIOR_TRAPS_EXPECTED.
10169
3398af6a
TS
10170 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10171 (ILL_RPC): ... new macro.
10172 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10173 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10174 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10175 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10176 functions with ILL_RPC macro.
10177 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10178 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10179 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10180 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10181 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10182 (S_proc_getlogin_reply, S_proc_getsid_reply)
10183 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10184 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10185 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10186 (S_proc_getnports_reply, S_proc_is_important_reply)
10187 (S_proc_get_code_reply): New stub functions, generated with
10188 ILL_RPC macro.
10189
d47642c9
TS
10190 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10191 collected the type check structures.
10192
bae8023e
TS
10193 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10194
8a55ffb0
DE
101952014-02-14 Doug Evans <dje@google.com>
10196
10197 * target.c (target_write_partial): Fix result type.
10198
c2853f3d
JM
101992014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10200
10201 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10202 the proper offsets to access fpregset_t.
10203
ac61d2db
SA
102042014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10205
10206 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10207 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10208 * h8300-tdep.c (setmachinelist): Remove global.
10209 * hppa-tdep.c (hppa_sigtramp): Remove global.
10210 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10211 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10212 * ravenscar-thread.c (update_target_observer): Remove global.
10213 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10214
9d2d0b8b
TT
102152014-02-12 Tom Tromey <tromey@redhat.com>
10216
10217 * common/rsp-low.c: Update comments.
10218 * common/rsp-low.h: Update comments.
10219
a7191e8b
TT
102202014-02-12 Tom Tromey <tromey@redhat.com>
10221
10222 * common/rsp-low.c (convert_ascii_to_int): Remove.
10223 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10224
ff0e980e
TT
102252014-02-12 Tom Tromey <tromey@redhat.com>
10226
10227 * common/rsp-low.h (unhexify): Don't declare.
10228 * common/rsp-low.c (unhexify): Remove.
10229
e9371aff
TT
102302014-02-12 Tom Tromey <tromey@redhat.com>
10231
10232 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10233 * common/rsp-low.c (convert_int_to_ascii): Remove.
10234
971dc0b8
TT
102352014-02-12 Tom Tromey <tromey@redhat.com>
10236
10237 * common/rsp-low.h (hexify): Don't declare.
10238 * common/rsp-low.c (hexify): Remove.
10239
0a822afb
TT
102402014-02-12 Tom Tromey <tromey@redhat.com>
10241
10242 * common/rsp-low.c (hexify): Never take strlen of argument.
10243
9f1b45b0
TT
102442014-02-12 Tom Tromey <tromey@redhat.com>
10245
10246 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10247 * remote.c (extended_remote_run, remote_rcmd)
10248 (remote_download_trace_state_variable, remote_save_trace_data)
10249 (remote_set_trace_notes): Update.
10250 * tracepoint.c (encode_source_string, tfile_write_status)
10251 (tfile_write_uploaded_tsv): Update.
10252
9c3d6531
TT
102532014-02-12 Tom Tromey <tromey@redhat.com>
10254
10255 * tracepoint.c: Include rsp-low.h.
10256 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10257 * remote.c: Include rsp-low.h.
10258 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10259 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10260 (remote_unescape_input): Move to common/rsp-low.c.
10261 * common/rsp-low.h: New file.
10262 * common/rsp-low.c: New file.
10263 * Makefile.in (SFILES): Add common/rsp-low.c.
10264 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10265 (COMMON_OBS): Add rsp-low.o.
10266 (rsp-low.o): New target.
10267
01fd3ea5
TT
102682014-02-12 Tom Tromey <tromey@redhat.com>
10269
10270 * utils.h: Include print-utils.h.
10271 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10272 (int_string, core_addr_to_string, core_addr_to_string_nz)
10273 (hex_string, hex_string_custom): Don't declare.
10274 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10275 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10276 (hex_string_custom, int_string, core_addr_to_string)
10277 (core_addr_to_string_nz, host_address_to_string): Move to
10278 common/print-utils.c.
10279 * common/print-utils.h: New file.
10280 * common/print-utils.c: New file
10281 * Makefile.in (SFILES): Add common/print-utils.c.
10282 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10283 (COMMON_OBS): Add print-utils.o.
10284 (print-utils.o): New target.
10285
9fb50108
TT
102862014-02-12 Tom Tromey <tromey@redhat.com>
10287
10288 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10289
0548b5db
MK
102902014-02-12 Mark Kettenis <kettenis@gnu.org>
10291
10292 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10293
493443a4
MK
102942014-02-12 Mark Kettenis <kettenis@gnu.org>
10295
10296 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10297 if a PT_IO ptrace request returns sucessfully but indicates that 0
10298 bytes were transferred.
10299
706d0883
PA
103002014-02-12 Pedro Alves <palves@redhat.com>
10301 Kevin Buettner <kevinb@redhat.com>
10302
10303 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10304 TYPE_INSTANCE_FLAG_CODE_SPACE.
10305
5caa2f0b
PA
103062014-02-12 Pedro Alves <palves@redhat.com>
10307
10308 * h8300-tdep.c (pseudo_from_raw_register)
10309 (raw_from_pseudo_register): New functions.
10310 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10311 them.
10312
76fd5f74
PA
103132014-02-12 Pedro Alves <palves@redhat.com>
10314
10315 * h8300-tdep.c (h8300_register_sim_regno): New function.
10316 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10317 gdbarch_register_sim_regno hook.
10318
8f008406
SA
103192014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10320
10321 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10322
195abc10
SA
103232014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10324
10325 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10326
93ffa5b9
MK
103272014-02-12 Mark Kettenis <kettenis@gnu.org>
10328
10329 * obsd-tdep.h (obsd_init_abi): New prototype.
10330 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10331 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10332 (obsd_init_abi): New functions.
10333 * i386obsd-tdep.c: Include "obsd-tdep.h".
10334 (i386obsd_init_abi): Call obsd_init_abi.
10335 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10336 (amd64obsd_init_abi): Call obsd_init_abi.
10337 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10338 obsd-tdep.c to gdb_target_obs.
10339
49caec94
JM
103402014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10341
10342 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10343 double float arguments to 16-byte in the argument slots.
10344
e1402065
DE
103452014-02-11 Doug Evans <xdje42@gmail.com>
10346
10347 * configure.ac: Don't crash if pkg-config is not found and guile
10348 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10349 in guile checks.
10350 * configure: Regenerate.
10351
edcc890f
YQ
103522014-02-11 Yao Qi <yao@codesourcery.com>
10353
10354 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10355 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10356 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10357 * gnu-nat.c (gnu_xfer_memory): Likewise.
10358 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10359 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10360 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10361 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10362
9b409511
YQ
103632014-02-11 Yao Qi <yao@codesourcery.com>
10364
10365 * target.h (enum target_xfer_error): Rename to ...
10366 (enum target_xfer_status): ... it. New. All users updated.
10367 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10368 New.
10369 (TARGET_XFER_STATUS_ERROR_P): New macro.
10370 (target_xfer_error_to_string): Remove declaration.
10371 (target_xfer_status_to_string): Declare.
10372 (target_xfer_partial_ftype): Adjust it.
10373 (struct target_ops) <to_xfer_partial>: Return
10374 target_xfer_status. Add argument xfered_len. Update
10375 comments.
10376 * target.c (target_xfer_error_to_string): Rename to ...
10377 (target_xfer_status_to_string): ... it. New. All callers
10378 updated.
10379 (target_read_live_memory): Likewise. Call target_xfer_partial
10380 instead of target_read.
10381 (memory_xfer_live_readonly_partial): Return
10382 target_xfer_status. Add argument xfered_len.
10383 (raw_memory_xfer_partial): Likewise.
10384 (memory_xfer_partial_1): Likewise.
10385 (memory_xfer_partial): Likewise.
10386 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10387 properly. Update debug message.
10388 (default_xfer_partial, current_xfer_partial): Likewise.
10389 (target_write_partial): Likewise.
10390 (target_read_partial): Likewise. All callers updated.
10391 (read_whatever_is_readable): Likewise.
10392 (target_write_with_progress): Likewise.
10393 (target_read_alloc_1): Likewise.
10394
10395 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10396 * auxv.c (procfs_xfer_auxv): Likewise.
10397 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10398 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10399 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10400 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10401 * corefile.c (read_memory): Adjust.
10402 * corelow.c (core_xfer_partial): Likewise.
10403 * ctf.c (ctf_xfer_partial): Likewise.
10404 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10405 updated.
10406 (darwin_xfer_partial): Likewise.
10407 * exec.c (section_table_xfer_memory_partial): Likewise. All
10408 callers updated.
10409 (exec_xfer_partial): Likewise.
10410 * exec.h (section_table_xfer_memory_partial): Update
10411 declaration.
10412 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10413 negative.
10414 (gnu_xfer_partial): Likewise.
10415 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10416 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10417 (ia64_hpux_xfer_solib_got): Likewise.
10418 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10419 type of 'partial_len' to ULONGEST.
10420 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10421 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10422 (linux_nat_xfer_partial): Likewise.
10423 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10424 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10425 * monitor.c (monitor_xfer_memory): Likewise.
10426 (monitor_xfer_partial): Likewise.
10427 * procfs.c (procfs_xfer_partial): Likewise.
10428 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10429 * record-full.c (record_full_xfer_partial): Likewise.
10430 (record_full_core_xfer_partial): Likewise.
10431 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10432 (gdbsim_xfer_partial): Likewise.
10433 * remote.c (remote_write_bytes_aux): Likewise. All callers
10434 updated.
10435 (remote_write_bytes, remote_read_bytes): Likewise. All
10436 callers updated.
10437 (remote_flash_erase): Likewise. All callers updated.
10438 (remote_write_qxfer): Likewise. All callers updated.
10439 (remote_read_qxfer): Likewise. All callers updated.
10440 (remote_xfer_partial): Likewise.
10441 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10442 (rs6000_xfer_shared_libraries): Likewise.
10443 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10444 (sol_thread_xfer_partial): Likewise.
10445 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10446 (sparc_xfer_partial): Likewise.
10447 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10448 updated.
10449 (spu_xfer_partial): Likewise.
10450 * spu-multiarch.c (spu_xfer_partial): Likewise.
10451 * tracepoint.c (tfile_xfer_partial): Likewise.
10452 * windows-nat.c (windows_xfer_memory): Likewise.
10453 (windows_xfer_shared_libraries): Likewise.
10454 (windows_xfer_partial): Likewise.
10455 * valprint.c: Replace 'target_xfer_error' with
10456 'target_xfer_status' in comments.
10457
a8e63083
JB
104582014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10459
10460 Checked in by Joel Brobecker <brobecker@adacore.com>.
10461 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10462
e86b67d3
JB
104632014-02-11 Joel Brobecker <brobecker@adacore.com>
10464
10465 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10466 function parameters.
10467
4b7d1f7f
WN
104682014-02-10 Will Newton <will.newton@linaro.org>
10469
10470 * elfread.c (elf_rel_plt_read): Look for a .got section if
10471 looking up .got.plt fails.
10472 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10473 on address passed to elf_gnu_ifunc_record_cache.
10474 (elf_gnu_ifunc_resolve_addr): Likewise.
10475 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10476
961842b2
JM
104772014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10478
10479 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10480 (X_RETTURN): New macro.
10481 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10482
10483 * sparc64-tdep.c (sparc64_init_abi): Hook
10484 sparc_in_function_epilogue_p.
10485
3f03e7b1
GB
104862014-02-10 Gary Benson <gbenson@redhat.com>
10487
10488 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10489 Rename name_matcher to symbol_matcher.
10490
96f861ef
GB
104912014-02-10 Gary Benson <gbenson@redhat.com>
10492
10493 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10494 Use expand_symtabs_file_matcher_ftype and
10495 expand_symtabs_symbol_matcher_ftype.
10496
ee01b665
JB
104972014-02-10 Joel Brobecker <brobecker@adacore.com>
10498
10499 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10500 (struct ada_symbol_cache): New.
10501 (ada_free_symbol_cache): Forward declare.
10502 (struct ada_pspace_data): New.
10503 (ada_pspace_data_handle): New static global.
10504 (get_ada_pspace_data, ada_pspace_data_cleanup)
10505 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10506 (cache_space, cache): Delete, now folded inside struct
10507 ada_pspace_data.
10508 (ada_get_symbol_cache): New function.
10509 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10510 implementation.
10511 (_initialize_ada_language): Remove initialization of cache_space.
10512 Move call to observer_attach_inferior_exit up, grouping it
10513 with the other observer registrations inside this function.
10514 Rename command to be more general. Add call to
10515 register_program_space_data_with_cleanup.
10516
143adbbf
JB
105172014-02-10 Joel Brobecker <brobecker@adacore.com>
10518
10519 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10520 ada_new_objfile_observer.
10521 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10522 (_initialize_tasks): Update uses of ada_new_objfile_observer
10523 and ada_tasks_normal_stop_observer.
10524
aa4fb036
JB
105252014-02-10 Joel Brobecker <brobecker@adacore.com>
10526
10527 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10528 returned by the 'Length attribute to integer.
10529
9dee8cc6
JB
105302014-02-10 Joel Brobecker <brobecker@adacore.com>
10531
10532 * ada-lang.c (_initialize_ada_language): Initialize
10533 cache_space obstack.
10534
3d9434b5
JB
105352014-02-10 Joel Brobecker <brobecker@adacore.com>
10536
10537 * ada-lang.c (HASH_SIZE): New macro.
10538 (struct cache_entry): New type.
10539 (cache_space, cache): New static globals.
10540 (ada_clear_symbol_cache, find_entry): New functions.
10541 (lookup_cached_symbol, cache_symbol): Implement.
10542 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10543 (_initialize_ada_language): Attach ada_new_objfile_observer
10544 and ada_free_objfile_observer.
10545
f0c5f9b2
JB
105462014-02-10 Joel Brobecker <brobecker@adacore.com>
10547
10548 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10549 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10550 struct block * parameter.
10551 (ada_lookup_symbol_list_worker): Constify local variable "block".
10552 Remove cast which is no longer necessary.
10553
ed3ef339
DE
105542014-02-10 Doug Evans <xdje42@gmail.com>
10555
10556 Add Guile as an extension language.
10557 * NEWS: Mention Guile scripting.
10558 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10559 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10560 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10561 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10562 (CLIBS): Add GUILE_LIBS.
10563 (install-guile): New rule.
10564 (guile.o): New rule.
10565 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10566 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10567 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10568 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10569 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10570 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10571 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10572 * configure.ac: New option --with-guile.
10573 * configure: Regenerate.
10574 * config.in: Regenerate.
10575 * auto-load.c: Remove #include "python/python.h". Add #include
10576 "gdb/section-scripts.h".
10577 (source_section_scripts): Handle Guile scripts.
10578 (_initialize_auto_load): Add name of Guile objfile script to
10579 scripts-directory help text.
10580 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10581 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10582 (struct breakpoint): New member scm_bp_object.
10583 * defs.h (enum command_control_type): New value guile_control.
10584 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10585 "extension.h".
10586 (show_user): Update comment.
10587 (_initialize_cli_cmds): Update help text for "show user". Update help
10588 text for max-user-call-depth.
10589 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10590 "extension.h".
10591 (multi_line_command_p): Add guile_control.
10592 (print_command_lines): Handle guile_control.
10593 (execute_control_command, recurse_read_control_structure): Ditto.
10594 (process_next_line): Recognize "guile" commands.
10595 * disasm.c (gdb_disassemble_info): Make non-static.
10596 * disasm.h: #include "dis-asm.h".
10597 (struct gdbarch): Add forward decl.
10598 (gdb_disassemble_info): Declare.
10599 * extension.c: #include "guile/guile.h".
10600 (extension_languages): Add guile.
10601 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10602 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10603 * gdbtypes.c (get_unsigned_type_max): New function.
10604 (get_signed_type_minmax): New function.
10605 * gdbtypes.h (get_unsigned_type_max): Declare.
10606 (get_signed_type_minmax): Declare.
10607 * guile/README: New file.
10608 * guile/guile-internal.h: New file.
10609 * guile/guile.c: New file.
10610 * guile/guile.h: New file.
10611 * guile/scm-arch.c: New file.
10612 * guile/scm-auto-load.c: New file.
10613 * guile/scm-block.c: New file.
10614 * guile/scm-breakpoint.c: New file.
10615 * guile/scm-disasm.c: New file.
10616 * guile/scm-exception.c: New file.
10617 * guile/scm-frame.c: New file.
10618 * guile/scm-gsmob.c: New file.
10619 * guile/scm-iterator.c: New file.
10620 * guile/scm-lazy-string.c: New file.
10621 * guile/scm-math.c: New file.
10622 * guile/scm-objfile.c: New file.
10623 * guile/scm-ports.c: New file.
10624 * guile/scm-pretty-print.c: New file.
10625 * guile/scm-safe-call.c: New file.
10626 * guile/scm-string.c: New file.
10627 * guile/scm-symbol.c: New file.
10628 * guile/scm-symtab.c: New file.
10629 * guile/scm-type.c: New file.
10630 * guile/scm-utils.c: New file.
10631 * guile/scm-value.c: New file.
10632 * guile/lib/gdb.scm: New file.
10633 * guile/lib/gdb/boot.scm: New file.
10634 * guile/lib/gdb/experimental.scm: New file.
10635 * guile/lib/gdb/init.scm: New file.
10636 * guile/lib/gdb/iterator.scm: New file.
10637 * guile/lib/gdb/printing.scm: New file.
10638 * guile/lib/gdb/types.scm: New file.
10639 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10640 (VPATH): Add $(GUILE_SRCDIR).
10641 (GUILE_DIR): New variable.
10642 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10643 (all): Add stamp-guile dependency.
10644 (stamp-guile): New rule.
10645 (clean-guile, install-guile, uninstall-guile): New rules.
10646 (install-only): Add install-guile dependency.
10647 (uninstall): Add uninstall-guile dependency.
10648 (clean): Add clean-guile dependency.
10649
ac020ec5
DE
106502014-02-09 Doug Evans <xdje42@gmail.com>
10651
10652 Revert this patch (which I approved, mea culpa).
10653
10654 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10655
10656 * Makefile.in (all-lib): Remove.
10657 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10658
2a081c59
JK
106592014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10660
10661 Fix Python stack corruption.
10662 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10663 gdb_py_longest.
10664
0a6bd22d
MK
106652014-02-08 Mark Kettenis <kettenis@gnu.org>
10666
10667 * Makefile.in (all-lib): Remove.
10668 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10669
1a860409
DE
106702014-02-07 Doug Evans <dje@google.com>
10671
10672 * extension-priv.h (extension_language_script_ops): Add comment.
10673 (extension_language_ops): Add comment.
caf5a491 10674 (active_ext_lang_state): Fix typo in comment.
1a860409 10675
d137e6dc
PA
106762014-02-07 Pedro Alves <palves@redhat.com>
10677
0dcb32c3 10678 PR breakpoints/16292
d137e6dc
PA
10679 * infrun.c (handle_signal_stop) <signal arrives while stepping
10680 over a breakpoint>: Switch back to the stepping thread.
10681
ce6d0892
YQ
106822014-02-07 Yao Qi <yao@codesourcery.com>
10683
10684 * target.c (target_xfer_partial): Return zero if LEN is zero.
10685
2ed4b548
YQ
106862014-02-07 Yao Qi <yao@codesourcery.com>
10687
10688 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10689 (ld_so_xfer_auxv): Likewise.
10690 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10691 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10692 * corelow.c (core_xfer_partial): Likewise.
10693 * ctf.c (ctf_xfer_partial): Likewise.
10694 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10695 (darwin_xfer_partial): Likewise.
10696 * exec.c (exec_xfer_partial): Likewise.
10697 * gnu-nat.c (gnu_xfer_partial): Likewise.
10698 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10699 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10700 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10701 * linux-nat.c (linux_xfer_siginfo): Likewise.
10702 (linux_proc_xfer_spu): Likewise.
10703 * procfs.c (procfs_xfer_partial): Likewise.
10704 * record-full.c (record_full_xfer_partial): Likewise.
10705 (record_full_core_xfer_partial): Likewise.
10706 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10707 * remote.c (remote_write_qxfer): Likewise.
10708 (remote_write_qxfer, remote_read_qxfer): Likewise.
10709 (remote_xfer_partial): Likewise.
10710 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10711 (rs6000_xfer_shared_libraries): Likewise.
10712 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10713 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10714 (spu_xfer_partial): Likewise.
10715 * target.c (memory_xfer_partial_1): Likewise.
10716 * tracepoint.c (tfile_xfer_partial): Likewise.
10717 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10718 (windows_xfer_partial): Likewise.
10719
c09f20e4
YQ
107202014-02-07 Yao Qi <yao@codesourcery.com>
10721
10722 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10723 comments.
10724 (core_xfer_shared_libraries_aix): Likewise.
10725 * gdbarch.c, gdbarch.h: Regenerated.
10726 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10727 ULONGEST. Change 'len_avail' type to ULONGEST.
10728 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10729 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10730 declaration.
10731 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10732
8635b3bf
YQ
107332014-02-07 Yao Qi <yao@codesourcery.com>
10734
10735 * corefile.c (memory_error): Get 'exception' from ERR and pass
10736 'exception' to throw_error.
10737
6dddc817
DE
107382014-02-06 Doug Evans <xdje42@gmail.com>
10739
10740 * configure.ac (libpython checking): Remove all but python.o from
10741 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10742 * configure: Regenerate.
10743
10744 * Makefile.in (SFILES): Add extension.c.
10745 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10746 (COMMON_OBS): Add extension.o.
10747 * extension.h: New file.
10748 * extension-priv.h: New file.
10749 * extension.c: New file.
10750
10751 * python/python-internal.h: #include "extension.h".
10752 (gdbpy_auto_load_enabled): Declare.
10753 (gdbpy_apply_val_pretty_printer): Declare.
10754 (gdbpy_apply_frame_filter): Declare.
10755 (gdbpy_preserve_values): Declare.
10756 (gdbpy_breakpoint_cond_says_stop): Declare.
10757 (gdbpy_breakpoint_has_cond): Declare.
10758 (void source_python_script_for_objfile): Delete.
10759 * python/python.c: #include "extension-priv.h".
10760 Delete inclusion of "observer.h".
10761 (extension_language_python): Moved here and renamed from
10762 script_language_python in py-auto-load.c.
10763 Redefined to be of type extension_language_defn.
10764 (python_extension_script_ops): New global.
10765 (python_extension_ops): New global.
10766 (struct python_env): New member previous_active.
10767 (restore_python_env): Call restore_active_ext_lang.
10768 (ensure_python_env): Call set_active_ext_lang.
10769 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10770 New arg extlang.
10771 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10772 New arg extlang.
10773 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10774 New arg extlang.
10775 (gdbpy_eval_from_control_command): Renamed from
10776 eval_python_from_control_command, made static. New arg extlang.
10777 (gdbpy_source_script) Renamed from source_python_script, made static.
10778 New arg extlang.
10779 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10780 result to int. New arg extlang.
10781 (gdbpy_source_objfile_script): Renamed from
10782 source_python_script_for_objfile, made static. New arg extlang.
10783 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10784 static. New args extlang, extlang_printers. Change result type to
10785 "void".
10786 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10787 static. New arg extlang. Rename arg printers to extlang_printers
10788 and change type to ext_lang_type_printers *.
10789 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10790 static. Replace argument arg with extlang, extlang_printers.
10791 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10792 (!HAVE_PYTHON, source_python_script): Delete.
10793 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10794 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10795 (!HAVE_PYTHON, start_type_printers): Delete.
10796 (!HAVE_PYTHON, apply_type_printers): Delete.
10797 (!HAVE_PYTHON, free_type_printers): Delete.
10798 (_initialize_python): Delete call to observer_attach_before_prompt.
10799 (finalize_python): Set/restore active extension language.
10800 (gdbpy_finish_initialization) Renamed from
10801 finish_python_initialization, made static. New arg extlang.
10802 (gdbpy_initialized): New function.
10803 * python/python.h: #include "extension.h". Delete #include
10804 "value.h", "mi/mi-cmds.h".
10805 (extension_language_python): Declare.
10806 (GDBPY_AUTO_FILE_NAME): Delete.
10807 (enum py_bt_status): Moved to extension.h and renamed to
10808 ext_lang_bt_status.
10809 (enum frame_filter_flags): Moved to extension.h.
10810 (enum py_frame_args): Moved to extension.h and renamed to
10811 ext_lang_frame_args.
10812 (finish_python_initialization): Delete.
10813 (eval_python_from_control_command): Delete.
10814 (source_python_script): Delete.
10815 (apply_val_pretty_printer): Delete.
10816 (apply_frame_filter): Delete.
10817 (preserve_python_values): Delete.
10818 (gdbpy_script_language_defn): Delete.
10819 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10820 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10821
10822 * auto-load.c: #include "extension.h".
10823 (GDB_AUTO_FILE_NAME): Delete.
10824 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10825 (script_language_gdb): Delete, moved to extension.c and renamed to
10826 extension_language_gdb.
10827 (source_gdb_script_for_objfile): Delete.
10828 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10829 (loaded_script): Change type of language member to
10830 struct extension_language_defn *.
10831 (init_loaded_scripts_info): Initialize
10832 unsupported_script_warning_printed.
10833 (maybe_add_script): Make static. Change type of language arg to
10834 struct extension_language_defn *.
10835 (clear_section_scripts): Reset unsupported_script_warning_printed.
10836 (auto_load_objfile_script_1): Rewrite to use extension language API.
10837 (auto_load_objfile_script): Make public. Remove support-compiled-in
10838 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10839 (source_section_scripts): Rewrite to use extension language API.
10840 (load_auto_scripts_for_objfile): Rewrite to use
10841 auto_load_scripts_for_objfile.
10842 (collect_matching_scripts_data): Change type of language member to
10843 struct extension_language_defn *.
10844 (auto_load_info_scripts): Change type of language arg to
10845 struct extension_language_defn *.
10846 (unsupported_script_warning_print): New function.
10847 (script_not_found_warning_print): Make static.
10848 (_initialize_auto_load): Rewrite construction of scripts-directory
10849 help.
10850 * auto-load.h (struct objfile): Add forward decl.
10851 (struct script_language): Delete.
10852 (struct auto_load_pspace_info): Add forward decl.
10853 (struct extension_language_defn): Add forward decl.
10854 (maybe_add_script): Delete.
10855 (auto_load_objfile_script): Declare.
10856 (script_not_found_warning_print): Delete.
10857 (auto_load_info_scripts): Update prototype.
10858 (auto_load_gdb_scripts_enabled): Declare.
10859 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10860 auto_load_python_scripts_enabled and made public.
10861 (script_language_python): Delete, moved to python.c.
10862 (gdbpy_script_language_defn): Delete.
10863 (info_auto_load_python_scripts): Update to use
10864 extension_language_python.
10865
10866 * breakpoint.c (condition_command): Replace call to
10867 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10868 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10869 with call to breakpoint_ext_lang_cond_says_stop.
10870 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10871 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10872 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10873 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10874 New arg slang.
10875 (local_setattro): Print name of extension language with existing
10876 stop condition.
10877
10878 * valprint.c (val_print, value_print): Update to call
10879 apply_ext_lang_val_pretty_printer.
10880 * cp-valprint.c (cp_print_value): Update call to
10881 apply_ext_lang_val_pretty_printer.
10882 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10883 (gdbpy_apply_val_pretty_printer): Renamed from
10884 apply_val_pretty_printer. New arg extlang.
10885 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10886
10887 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10888 extension language API.
10889 * cli/cli-script.c (execute_control_command): Update to call
10890 eval_ext_lang_from_control_command.
10891
10892 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10893 enum ext_lang_bt_status values. Update call to
10894 apply_ext_lang_frame_filter.
10895 (mi_cmd_stack_list_locals): Ditto.
10896 (mi_cmd_stack_list_args): Ditto.
10897 (mi_cmd_stack_list_variables): Ditto.
10898 * mi/mi-main.c: Delete #include "python/python-internal.h".
10899 Add #include "extension.h".
10900 (mi_cmd_list_features): Replace reference to python internal variable
10901 gdb_python_initialized with call to ext_lang_initialized_p.
10902
10903 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10904 Update to use enum ext_lang_frame_args. Update to call
10905 apply_ext_lang_frame_filter.
10906 * python/py-framefilter.c (extract_sym): Update to use enum
10907 ext_lang_bt_status.
10908 (extract_value, py_print_type, py_print_value): Ditto.
10909 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10910 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10911 (py_print_frame): Ditto.
10912 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10913 New arg extlang. Update to use enum ext_lang_bt_status.
10914
10915 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10916 finish_python_initialization. Replace with call to
10917 finish_ext_lang_initialization.
10918
10919 * typeprint.c (do_free_global_table): Update to call
10920 free_ext_lang_type_printers.
10921 (create_global_typedef_table): Update to call
10922 start_ext_lang_type_printers.
10923 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10924 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10925 (type_print_options): Change type of global_printers from "void *"
10926 to "struct ext_lang_type_printers *".
10927
10928 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10929 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10930 (gdbpy_preserve_values): Renamed from preserve_python_values.
10931 New arg extlang.
10932 (!HAVE_PYTHON, preserve_python_values): Delete.
10933
10934 * utils.c (quit_flag): Delete, moved to extension.c.
10935 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10936 extension.c.
10937
10938 * eval.c: Delete #include "python/python.h".
10939 * main.c: Delete #include "python/python.h".
10940
10941 * defs.h: Update comment.
10942
6af79985
JB
109432014-02-06 Joel Brobecker <brobecker@adacore.com>
10944
10945 GDB 7.7 released.
10946
12c5175d
MK
109472014-02-05 Mark Kettenis <kettenis@gnu.org>
10948
10949 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10950 defined.
10951
8dc5b319
YQ
109522014-02-05 Yao Qi <yao@codesourcery.com>
10953
10954 * remote.c (remote_pass_signals): Remove local 'buf' and use
10955 rs->buf.
10956 (remote_program_signals): Likewise.
10957
de7b2893
YQ
109582014-02-05 Yao Qi <yao@codesourcery.com>
10959
10960 * ctf.c: Include "inferior.h" and "gdbthread.h".
10961 (CTF_PID): A new macro.
10962 (ctf_open): Call inferior_appeared and add_thread_silent.
10963 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10964 (ctf_thread_alive): New function.
10965 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10966
66d032ac
YQ
109672014-02-05 Yao Qi <yao@codesourcery.com>
10968
10969 Revert this patch:
10970
10971 2013-05-24 Yao Qi <yao@codesourcery.com>
10972
10973 * tracepoint.c (TFILE_PID): Remove.
10974 (tfile_open): Don't add thread and inferior.
10975 (tfile_close): Don't set 'inferior_ptid'. Don't call
10976 exit_inferior_silent.
10977 (tfile_thread_alive): Remove.
10978 (init_tfile_ops): Don't set field 'to_thread_alive' of
10979 tfile_ops.
10980
f4ccffad
CE
109812014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10982
10983 * remote.c (remote_start_remote): Call remote_check_symbols even
10984 if only symbol-file (not file) has been given.
10985
591a12a1
UW
109862014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10987
10988 * gdbarch.sh (skip_entrypoint): New callback.
10989 * gdbarch.c, gdbarch.h: Regenerate.
10990 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10991 * infrun.c (fill_in_stop_func): Likewise.
10992 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10993 (ppc_elfv2_elf_make_msymbol_special): New function.
10994 (ppc_elfv2_skip_entrypoint): Likewise.
10995 (ppc_linux_init_abi): Install them for ELFv2.
10996
cc0e89c5
UW
109972014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10998
10999 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
11000 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
11001 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
11002 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
11003 structures returned in GPRs.
11004
52f548e4
UW
110052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11006
11007 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
11008 offset to the stack parameter list for the ELFv2 ABI.
11009
d4094b6a
UW
110102014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11011
11012 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
11013 set_gdbarch_convert_from_func_ptr_addr and
11014 set_gdbarch_elf_make_msymbol_special for ELFv1.
11015 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
11016 function descriptors on ELFv1.
11017 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11018 set up r12 at function entry.
11019
cd453cd0
UW
110202014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11021
11022 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11023 (struct gdbarch_tdep): New member elf_abi.
11024
11025 * rs6000-tdep.c: Include "elf/ppc64.h".
11026 (rs6000_gdbarch_init): Detect ELF ABI version.
11027
0ff3e01f
UW
110282014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11029
11030 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11031 within a register pair holding a DFP 128-bit value on little-endian.
11032 (ppc64_sysv_abi_return_value_base): Likewise.
11033 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11034 (dfp_pseudo_register_write): Likewise.
11035
5b757e5d
UW
110362014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11037
11038 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11039 offset on little-endian when passing _Decimal32.
11040 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11041
084ee545
UW
110422014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11043
11044 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11045 of the overlapped FP register within the VSX register on little-
11046 endian platforms.
11047 (efpr_pseudo_register_write): Likewise.
11048
d63167af
UW
110492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11050
11051 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11052 offset on little-endian when passing small structures.
11053
e765b44c
UW
110542014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11055
11056 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11057 (struct ppc64_sysv_argpos): New data structure.
11058 (ppc64_sysv_abi_push_float): Remove.
11059 (ppc64_sysv_abi_push_val): New function.
11060 (ppc64_sysv_abi_push_integer): Likewise.
11061 (ppc64_sysv_abi_push_freg): Likewise.
11062 (ppc64_sysv_abi_push_vreg): Likewise.
11063 (ppc64_sysv_abi_push_param): Likewise.
11064 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11065 (ppc64_sysv_abi_return_value_base): New function.
11066 (ppc64_sysv_abi_return_value): Refactor to use it.
11067
36c24d95
UW
110682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11069
11070 * NEWS: Document new target powerpc64le-*-linux*.
11071
26fd9228
MK
110722014-02-04 Mark Kettenis <kettenis@gnu.org>
11073
11074 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11075 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11076 core dumps.
11077 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11078 register set used in ELF core dumps. Add floating-point register set.
11079
c5bb7362
KB
110802014-02-03 Kevin Buettner <kevinb@redhat.com>
11081
74228e77 11082 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11083 dwarf2_to_gdb[] table using symbolic constants. Adjust
11084 penultimate entry from number representing the PC register
11085 to symbolic constant representing the MDR register. Add
11086 constant for the PC register to the end of the table.
11087
af09351e
MK
110882014-02-03 Mark Kettenis <kettenis@gnu.org>
11089
11090 * bsd-kvm.c: Include <sys/param.h>
11091
8507e05d
MK
110922014-02-03 Mark Kettenis <kettenis@gnu.org>
11093
11094 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11095
ae56bfb8
JB
110962014-01-31 Joel Brobecker <brobecker@adacore.com>
11097
11098 * ada-lang.h (clear_ada_sym_cache): Delete.
11099
718ee4dc
UW
111002014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11101
11102 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11103
401e27fd
JM
111042014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11105
11106 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11107 the sigreturn register save area only if the syscall is
11108 sigreturn.
11109
a7c88acd
JB
111102014-01-29 Joel Brobecker <brobecker@adacore.com>
11111
11112 * valops.c (value_slice): Minor reformatting.
11113
fa0079ea
UW
111142014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11115
11116 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11117
c6044dd1
JB
111182014-01-28 Joel Brobecker <brobecker@adacore.com>
11119
11120 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11121 New static globals.
11122 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11123 (ada_ignore_descriptive_types_p): New static global.
11124 (find_parallel_type_by_descriptive_type): Return immediately
11125 if ada_ignore_descriptive_types_p is set.
11126 (_initialize_ada_language): Register new commands "maintenance
11127 set ada", "maintenance show ada", "maintenance set ada
11128 ignore-descriptive-types" and "maintenance show ada
11129 ignore-descriptive-types".
11130 * NEWS: Add entry for new "maint ada set/show
11131 ignore-descriptive-types" commands.
11132
568e808b
MM
111332014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11134
11135 * record-btrace.c (record_btrace_close): Call btrace_teardown
11136 for all threads.
11137
467d141b
JB
111382014-01-27 Joel Brobecker <brobecker@adacore.com>
11139
11140 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11141 "ui-out.h".
11142
fb151210
JB
111432014-01-27 Joel Brobecker <brobecker@adacore.com>
11144
11145 * ada-typeprint (type_is_full_subrange_of_target_type):
11146 New function.
11147 (print_range): Add parameter bounds_prefered_p. If not set,
11148 try printing range types using the name of their base type.
11149 (print_range_type): Add parameter bounds_prefered_p.
11150 Use it in call to print_range.
11151 (print_array_type, ada_print_type): Update calls to print_range
11152 and print_range_type.
11153
aba02109
JB
111542014-01-27 Joel Brobecker <brobecker@adacore.com>
11155
11156 * ada-typeprint.c (print_array_type, print_choices, print_range)
11157 (print_range_bound, print_dynamic_range_bound, print_range_type):
11158 Remove declaration.
11159
e62e21fd
JB
111602014-01-27 Joel Brobecker <brobecker@adacore.com>
11161
11162 * ada-typeprint.c (print_range): Add missing empty line
11163 after local declaration.
11164
859cf5d1
JB
111652014-01-27 Joel Brobecker <brobecker@adacore.com>
11166
11167 * ada-valprint.c (print_optional_low_bound): Get index_type's
11168 target type for as long as it is a TYPE_CODE_RANGE.
11169
25790f6f
JB
111702014-01-27 Joel Brobecker <brobecker@adacore.com>
11171
11172 * procfs.c (procfs_make_note_section): Remove assertion and
11173 associated comment.
11174
6b6aa828
YQ
111752014-01-24 Yao Qi <yao@codesourcery.com>
11176
11177 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11178 * corelow.c (get_core_siginfo): Likewise.
11179
5d6df423
YQ
111802014-01-24 Yao Qi <yao@codesourcery.com>
11181
11182 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11183 ULONGEST. Don't check 'len' is negative.
11184 (remote_write_bytes): Change type of 'len' to ULONGEST.
11185
83b645b8
TT
111862014-01-23 Tom Tromey <tromey@redhat.com>
11187
11188 PR python/16485:
11189 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11190 Handle exception from frame.block.
11191 (FrameVars.fetch_frame_locals): Likewise.
11192
0740f8d8
TT
111932014-01-23 Tom Tromey <tromey@redhat.com>
11194
11195 PR python/16487:
11196 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11197 on a NULL pointer. Move "goto error" to correct place.
11198
21909fa1
TT
111992014-01-23 Tom Tromey <tromey@redhat.com>
11200
11201 PR python/16491:
11202 * python/py-framefilter.c (apply_frame_filter): Call
11203 ensure_python_env after computing gdbarch.
11204
17fde6d0
YQ
112052014-01-23 Yao Qi <yao@codesourcery.com>
11206
11207 * target.c (raw_memory_xfer_partial): Change argument type
11208 from void * to gdb_byte *.
11209 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11210
87ce2a04
DE
112112014-01-22 Doug Evans <dje@google.com>
11212
11213 New gdbserver option --debug-format=timestamp.
11214 * NEWS: Mention it.
11215
237b092b
AA
112162014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11217
11218 * syscalls/s390x-linux.xml: New file.
11219 * syscalls/s390-linux.xml: New file.
11220 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11221 (XML_SYSCALL_FILENAME_S390X): Likewise.
11222 (op_svc): New enum value for SVC opcode.
11223 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11224 (s390_linux_get_syscall_number): New function.
11225 (s390_gdbarch_init): Register '*get_syscall_number' and the
11226 syscall xml file name.
11227 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11228 "s390-linux.xml" and "s390x-linux.xml".
11229 * NEWS: Announce new feature.
11230
54bff650
BS
112312014-01-22 Baruch Siach <baruch@tkos.co.il>
11232
11233 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11234
14e361d7
PA
112352014-01-22 Pedro Alves <palves@redhat.com>
11236
11237 * xtensa-config.c: Include defs.h.
11238
46bbb3ed
JB
112392014-01-22 Joel Brobecker <brobecker@adacore.com>
11240
11241 * common/common-utils.h: Add "ARI:" comment beside __func__
11242 reference.
11243
3a80edfc
JB
112442014-01-22 Joel Brobecker <brobecker@adacore.com>
11245
11246 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11247 documentation a bit.
11248
4869db5e
RM
112492014-01-21 Roland McGrath <mcgrathr@google.com>
11250
11251 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11252 * configure: Regenerate.
11253 * aclocal.m4: Regenerate.
11254 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11255 New substituted variables.
11256 (install-strip): New target.
11257 (INSTALL_SCRIPT): New substituted variable.
11258 (FLAGS_TO_PASS): Add it.
11259 (install-only): Use $(INSTALL_SCRIPT) rather than
11260 $(INSTALL_PROGRAM) for gcore.
11261
9ea4267d
TT
112622014-01-20 Tom Tromey <tromey@redhat.com>
11263
11264 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11265 together.
11266
1f2bdf09
TT
112672014-01-20 Tom Tromey <tromey@redhat.com>
11268
11269 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11270 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11271 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11272 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11273 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11274 (struct cmd_list_element) <flags>: Remove.
11275 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11276 doc_allocated>: New fields.
11277 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11278 bitfields.
11279 * maint.c (maintenance_do_deprecate): Update.
11280 * top.c (execute_command): Update.
11281
e671835b
BS
112822014-01-20 Baruch Siach <baruch@tkos.co.il>
11283
11284 * xtensa-linux-nat.c: Include asm/ptrace.h.
11285
50367cd2
IB
112862014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11287
11288 * Makefile.in (SFILES): Add d-support.c.
11289 (COMMON_OBS): Add d-support.o.
11290 * d-lang.h (d_parse_symbol): Add comment, now defined in
11291 d-support.c.
11292 * d-lang.c (parse_call_convention)
11293 (parse_attributes, parse_function_types)
11294 (parse_function_args, parse_type, parse_identifier)
11295 (call_convention_p, d_parse_symbol): Move functions to ...
11296 * d-support.c: ... New file.
11297
ec9f644a
IB
112982014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11299
11300 * d-lang.h (d_parse_symbol): Add declaration.
11301 * d-lang.c (extract_identifiers)
11302 (extract_type_info): Remove functions.
11303 (parse_call_convention, parse_attributes)
11304 (parse_function_types, parse_function_args)
11305 (parse_type, parse_identifier, call_convention_p)
11306 (d_parse_symbol): New functions.
11307 (d_demangle): Use d_parse_symbol to demangle D symbols.
11308
94b1b47e
IB
113092014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11310
11311 * d-lang.h (struct builtin_d_type): New data type.
11312 (builtin_d_type): Add declaration.
11313 * d-lang.c (d_language_arch_info, build_d_types)
11314 (builtin_d_type): New functions.
11315 (enum d_primitive_types): New data type.
11316 (d_language_defn): Change c_language_arch_info to
11317 d_language_arch_info.
11318 (d_type_data): New static variable.
11319 (_initialize_d_language): Initialize d_type_data.
11320
63778547
IB
113212014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11322
11323 * d-lang.h (d_main_name): Add declaration.
11324 * d-lang.c (d_main_name): New function.
11325 * symtab.c (find_main_name): Add call to d_main_name.
11326
3271ba66
IB
113272014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11328
11329 * d-lang.c (d_language_defn): Change macro_expansion_c to
11330 macro_expansion_no.
11331
d36b3012
IB
113322014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11333
11334 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11335
c90a6fb7
SDJ
113362014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11337
11338 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11339 gdb_exception" declaration.
11340 * remote.c (getpkt_or_notif_sane): Likewise.
11341
749234e5
DE
113422014-01-17 Doug Evans <dje@google.com>
11343
11344 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11345 function, contents of dirnames_to_char_ptr_vec_append moved here.
11346 (delim_string_to_char_ptr_vec): New function.
11347 (dirnames_to_char_ptr_vec_append): Rewrite.
11348 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11349
df049a58
DE
113502014-01-17 Doug Evans <dje@google.com>
11351
11352 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11353 and moved here ...
11354 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11355 #include "common-utils.h".
11356 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11357 * common/vec.h (VEC_ASSERT_PASS): Update.
11358 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11359 (MACH_CHECK_ERROR): Update.
11360
69f97648
SM
113612014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11362
11363 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11364 comments.
11365 * gdbarch.h: Regenerate.
11366
98b1cfdc
TT
113672014-01-16 Tom Tromey <tromey@redhat.com>
11368
11369 * value.c (struct value) <regnum>: Move earlier.
11370
77a19445
TT
113712014-01-16 Tom Tromey <tromey@redhat.com>
11372
11373 * remote.c (extended_remote_create_inferior): Rename from
11374 extended_remote_create_inferior_1. Add "ops" argument. Remove
11375 old implementation.
11376
62261490
PA
113772014-01-16 Pedro Alves <palves@redhat.com>
11378
11379 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11380 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11381 the backchain.
11382
4d65956b
DE
113832014-01-16 Doug Evans <dje@google.com>
11384
11385 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11386
52834460
MM
113872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11388
11389 * btrace.h (btrace_thread_flag): New.
11390 (struct btrace_thread_info) <flags>: New.
11391 * record-btrace.c (record_btrace_resume_thread)
11392 (record_btrace_find_thread_to_move, btrace_step_no_history)
11393 (btrace_step_stopped, record_btrace_start_replaying)
11394 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11395 (record_btrace_find_resume_thread): New.
11396 (record_btrace_resume, record_btrace_wait): Extend.
11397 (record_btrace_can_execute_reverse): New.
11398 (record_btrace_open): Fail in non-stop mode.
11399 (record_btrace_set_replay): Split into this, ...
11400 (record_btrace_stop_replaying): ... this, ...
11401 (record_btrace_clear_histories): ... and this.
11402 (init_record_btrace_ops): Init to_can_execute_reverse.
11403 * NEWS: Announce it.
11404
118e6252
MM
114052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11406
11407 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11408 (forward_target_decr_pc_after_break)
11409 (target_decr_pc_after_break): New.
11410 * target.c (forward_target_decr_pc_after_break)
11411 (target_decr_pc_after_break): New.
11412 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11413 instead of gdbarch_decr_pc_after_break.
11414 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11415 instead of gdbarch_decr_pc_after_break.
11416 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11417 instead of gdbarch_decr_pc_after_break.
11418 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11419 instead of gdbarch_decr_pc_after_break.
11420 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11421 instead of gdbarch_decr_pc_after_break.
11422 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11423 instead of gdbarch_decr_pc_after_break.
11424
6e07b1d2
MM
114252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11426
11427 * btrace.c: Include regcache.h.
11428 (btrace_add_pc): New.
11429 (btrace_enable): Call btrace_add_pc.
11430 (btrace_is_empty): New.
11431 * btrace.h (btrace_is_empty): New.
11432 * record-btrace.c (require_btrace, record_btrace_info): Call
11433 btrace_is_empty.
11434
969c39fb
MM
114352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11436
11437 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11438 Support delta reads.
11439 (linux_disable_btrace): Change return type.
11440 * common/linux-btrace.h (linux_read_btrace): Change parameters
11441 and return type to allow error reporting. Update users.
11442 (linux_disable_btrace): Change return type. Update users.
11443 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11444 New.
11445 (btrace_error): New.
11446 (btrace_block) <begin>: Comment on BEGIN == 0.
11447 * btrace.c (btrace_compute_ftrace): Start from the end of
11448 the current trace.
11449 (btrace_stitch_trace, btrace_clear_history): New.
11450 (btrace_fetch): Read delta trace, return if replaying.
11451 (btrace_clear): Move clear history code to btrace_clear_history.
11452 (parse_xml_btrace): Throw an error if parsing failed.
11453 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11454 and return type to allow error reporting.
11455 (target_read_btrace): Change parameters and return type to allow
11456 error reporting.
11457 * target.c (target_read_btrace): Update.
11458 * remote.c (remote_read_btrace): Support delta reads. Pass
11459 errors on.
11460 * NEWS: Announce it.
11461
0b722aec
MM
114622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11463
11464 * record.h (record_btrace_frame_unwind)
11465 (record_btrace_tailcall_frame_unwind): New declarations.
11466 * dwarf2-frame: Include record.h
11467 (dwarf2_frame_cfa): Throw an error for btrace frames.
11468 * record-btrace.c: Include hashtab.h.
11469 (btrace_get_bfun_name): New.
11470 (btrace_call_history): Call btrace_get_bfun_name.
11471 (struct btrace_frame_cache): New.
11472 (bfcache): New.
11473 (bfcache_hash, bfcache_eq, bfcache_new): New.
11474 (btrace_get_frame_function): New.
11475 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11476 (record_btrace_frame_this_id): Compute own id.
11477 (record_btrace_frame_prev_register): Provide PC, throw_error
11478 for all other registers.
11479 (record_btrace_frame_sniffer): Detect btrace frames.
11480 (record_btrace_tailcall_frame_sniffer): New.
11481 (record_btrace_frame_dealloc_cache): New.
11482 (record_btrace_frame_unwind): Add new functions.
11483 (record_btrace_tailcall_frame_unwind): New.
11484 (_initialize_record_btrace): Allocate cache.
11485 * btrace.c (btrace_clear): Call reinit_frame_cache.
11486 * NEWS: Announce it.
11487
066ce621
MM
114882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11489
11490 * record-btrace.c (record_btrace_set_replay)
11491 (record_btrace_goto_begin, record_btrace_goto_end)
11492 (record_btrace_goto): New.
11493 (init_record_btrace_ops): Initialize them.
11494 * NEWS: Announce it.
11495
e2887aa3
MM
114962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11497
11498 * record-btrace.c (record_btrace_find_new_threads)
11499 (record_btrace_thread_alive): New.
11500 (init_record_btrace_ops): Initialize to_find_new_threads and
11501 to_thread_alive.
11502
b2f4cfde
MM
115032014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11504
11505 * record-btrace.c (record_btrace_resume): New.
11506 (record_btrace_wait): New.
11507 (init_record_btrace_ops): Initialize to_wait and to_resume.
11508
633785ff
MM
115092014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11510
11511 * record-btrace.c (record_btrace_xfer_partial)
11512 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11513 (record_btrace_allow_memory_access): New.
11514 (init_record_btrace_ops): Initialize new methods.
11515 * target.c (raw_memory_xfer_partial): Bail out if target reports
11516 that this memory is not available.
11517
3db08215
MM
115182014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11519
11520 * target.h (target_ops) <to_insert_breakpoint>
11521 <to_remove_breakpoint>: Add target_ops parameter.
11522 (forward_target_insert_breakpoint): New.
11523 (forward_target_remove_breakpoint): New.
11524 (memory_remove_breakpoint, memory_insert_breakpoint):
11525 Add target_ops parameter.
11526 * target.c (target_insert_breakpoint): Split into this and ...
11527 (forward_target_insert_breakpoint): ... this.
11528 (target_remove_breakpoint): Split into this and ...
11529 (forward_target_remove_breakpoint): ... this.
11530 (debug_to_insert_breakpoint): Add target_ops parameter.
11531 Call forward_target_insert_breakpoint.
11532 (debug_to_remove_breakpoint): Add target_ops parameter.
11533 Call forward_target_remove_breakpoint.
11534 (update_current_target): Do not inherit or default to_insert_breakpoint
11535 and to_remove_breakpoint.
11536 * corelow.c (ignore): Add target_ops parameter.
11537 * exec.c (ignore): Add target_ops parameter.
11538 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11539 Add target_ops parameter.
11540 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11541 Add target_ops parameter.
11542 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11543 Add target_ops parameter.
11544 * record-full.c (record_full_beneath_to_insert_breakpoint)
11545 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11546 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11547 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11548 (record_full_core_remove_breakpoint): Add target_ops parameter.
11549 Update users.
11550 (record_full_beneath_to_insert_breakpoint_ops)
11551 (record_full_beneath_to_remove_breakpoint_ops)
11552 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11553 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11554 tmp_to_remove_breakpoint_ops,
11555 record_full_beneath_to_insert_breakpoint_ops, and
11556 record_full_beneath_to_remove_breakpoint_ops.
11557 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11558 (m32r_remove_breakpoint): Add target_ops parameter.
11559 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11560 Add target_ops parameter.
11561 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11562 Add target_ops parameter.
11563
cecac1ab
MM
115642014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11565 Markus Metzger <markus.t.metzger@intel.com>
11566
11567 * record-btrace.c: Include frame-unwind.h.
11568 (record_btrace_frame_unwind_stop_reason)
11569 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11570 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11571 New.
11572 (init_record_btrace_ops): Install it.
11573
824344ca
MM
115742014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11575
11576 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11577 get_prev_frame_1.
11578
32261e52
MM
115792014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11580
11581 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11582 earlier.
11583
ea001bdc
MM
115842014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11585
11586 * frame-unwind.c: Include target.h.
11587 (frame_unwind_try_unwinder): New function with code from ...
11588 (frame_unwind_find_by_frame): ... here. New variable
11589 unwinder_from_target, call also target_get_unwinder)
11590 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11591 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11592 * target.h (struct target_ops): New fields to_get_unwinder and
11593 to_get_tailcall_unwinder.
11594 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11595
1f3ef581
MM
115962014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11597
11598 * record-btrace.c (record_btrace_fetch_registers)
11599 (record_btrace_store_registers)
11600 (record_btrace_to_prepare_to_store): New.
11601 (init_record_btrace_ops): Add the above.
11602
f32dbf8c
MM
116032014-01-16 Tom Tromey <tromey@redhat.com>
11604
11605 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11606 * target.h (struct target_ops) <to_prepare_to_store>: Add
11607 argument.
11608 (target_prepare_to_store): Add argument.
11609 * target.c (debug_to_prepare_to_store): Add argument.
11610 (update_current_target): Update.
11611 * remote.c (remote_prepare_to_store): Add 'self' argument.
11612 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11613 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11614 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11615 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11616 argument.
11617 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11618 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11619 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11620 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11621 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11622
07bbe694
MM
116232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11624
11625 * btrace.h (replay) <replay>: New.
11626 (btrace_is_replaying): New.
11627 * btrace.c (btrace_clear): Free replay iterator.
11628 (btrace_is_replaying): New.
11629 * record-btrace.c (record_btrace_is_replaying): New.
11630 (record_btrace_info): Print insn number if replaying.
11631 (record_btrace_insn_history): Start at replay position.
11632 (record_btrace_call_history): Start at replay position.
11633 (init_record_btrace_ops): Init to_record_is_replaying.
11634
0688d04e
MM
116352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11636
11637 * record-btrace.c (record_btrace_insn_history_range): Include
11638 end.
11639 (record_btrace_insn_history_from): Adjust range.
11640 (record_btrace_call_history_range): Include
11641 end.
11642 (record_btrace_call_history_from): Adjust range.
11643 * NEWS: Announce changes.
11644
8710b709
MM
116452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11646
11647 * record.h (enum record_print_flag)
11648 <record_print_indent_calls>: New.
11649 * record.c (get_call_history_modifiers): Recognize /c modifier.
11650 (_initialize_record): Document /c modifier.
11651 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11652 Reorder fields. Optionally indent the function name. Update
11653 all users.
11654 * NEWS: Announce changes.
11655
d0fa7535
MM
116562014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11657
11658 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11659
5de9129b
MM
116602014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11661
11662 * btrace.c (ftrace_new_function): Start counting at one.
11663 * record-btrace.c (record_btrace_info): Adjust number of calls
11664 and insns.
11665 * NEWS: Announce it.
11666
7acbe133
MM
116672014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11668
11669 * record-btrace.c (btrace_call_history_insn_range): Print
11670 insn range as [begin, end].
11671
23a7fe75
MM
116722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11673
11674 * btrace.h (struct btrace_func_link): New.
11675 (enum btrace_function_flag): New.
11676 (struct btrace_inst): Rename to ...
11677 (struct btrace_insn): ...this. Update all users.
11678 (struct btrace_func) <ibegin, iend>: Remove.
11679 (struct btrace_func_link): New.
11680 (struct btrace_func): Rename to ...
11681 (struct btrace_function): ...this. Update all users.
11682 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11683 (number, level, flags>: New.
11684 (struct btrace_insn_iterator): Rename to ...
11685 (struct btrace_insn_history): ...this.
11686 Update all users.
11687 (struct btrace_insn_iterator, btrace_call_iterator): New.
11688 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11689 (struct btrace_target_info) <begin, end, level>
11690 <insn_history, call_history>: New.
11691 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11692 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11693 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11694 (btrace_call_number, btrace_call_begin, btrace_call_end)
11695 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11696 (btrace_find_function_by_number, btrace_set_insn_history)
11697 (btrace_set_call_history): New.
11698 * btrace.c (btrace_init_insn_iterator)
11699 (btrace_init_func_iterator, compute_itrace): Remove.
11700 (ftrace_print_function_name, ftrace_print_filename)
11701 (ftrace_skip_file): Change
11702 parameter to const.
11703 (ftrace_init_func): Remove.
11704 (ftrace_debug): Use new btrace_function fields.
11705 (ftrace_function_switched): Also consider gaining and
11706 losing symbol information).
11707 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11708 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11709 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11710 New.
11711 (ftrace_new_function): Move. Remove debug print.
11712 (ftrace_update_lines, ftrace_update_insns): New.
11713 (ftrace_update_function): Check for call, ret, and jump.
11714 (compute_ftrace): Renamed to ...
11715 (btrace_compute_ftrace): ...this. Rewritten to compute call
11716 stack.
11717 (btrace_fetch, btrace_clear): Updated.
11718 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11719 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11720 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11721 (btrace_call_number, btrace_call_begin, btrace_call_end)
11722 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11723 (btrace_find_function_by_number, btrace_set_insn_history)
11724 (btrace_set_call_history): New.
11725 * record-btrace.c (require_btrace): Use new btrace thread
11726 info fields.
11727 (record_btrace_info, btrace_insn_history)
11728 (record_btrace_insn_history, record_btrace_insn_history_range):
11729 Use new btrace thread info fields and new iterator.
11730 (btrace_func_history_src_line): Rename to ...
11731 (btrace_call_history_src_line): ...this. Use new btrace
11732 thread info fields.
11733 (btrace_func_history): Rename to ...
11734 (btrace_call_history): ...this. Use new btrace thread info
11735 fields and new iterator.
11736 (record_btrace_call_history, record_btrace_call_history_range):
11737 Use new btrace thread info fields and new iterator.
11738
8372a7cb
MM
117392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11740
11741 * frame.h (frame_id_build_unavailable_stack_special): New.
11742 * frame.c (frame_id_build_unavailable_stack_special): New.
11743
c2170eef
MM
117442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11745
11746 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11747 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11748 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11749 to gdbarch.
11750 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11751 (i386_insn_is_jump, i386_jmp_p): New.
11752 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11753 insn_is_jump to gdbarch.
11754 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11755 * gdbarch.h: Regenerated.
11756 * gdbarch.c: Regenerated.
11757 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11758 (default_insn_is_jump): New.
11759 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11760 (default_insn_is_jump): New.
11761
864089d2
MM
117622014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11763
11764 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11765 Change to ...
11766 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11767 (btrace_read_type) <btrace_read_new>: Change to ...
11768 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11769
ed9edfb5
MM
117702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11771
11772 * common/linux-btrace.c (linux_read_btrace): Free trace from
11773 previous iteration.
11774
fbcbc3fd
DE
117752014-01-15 Doug Evans <dje@google.com>
11776
11777 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11778 uint32_t.
11779
3d548a53
TT
117802014-01-15 Tom Tromey <tromey@redhat.com>
11781
11782 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11783 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11784 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11785 (set_objfile_main_name): New function.
11786 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11787 language_of_main>: New fields.
11788 (set_objfile_main_name): Declare.
11789 * symtab.c (find_main_name): Loop over objfiles to find the main
11790 name and language.
11791 (set_main_name): Now static.
11792 (get_main_info): Add comment.
11793 * symtab.h (set_main_name): Don't declare.
11794
32ac0d11
TT
117952014-01-15 Tom Tromey <tromey@redhat.com>
11796
11797 * symtab.c (main_progspace_key): New global.
11798 (struct main_info): New.
11799 (name_of_main, language_of_main): Remove.
11800 (get_main_info, main_info_cleanup): New function.
11801 (set_main_name, main_name, main_language): Use get_main_info.
11802 (_initialize_symtab): Initialize main_progspace_key.
11803
9e6c82ad
TT
118042014-01-15 Tom Tromey <tromey@redhat.com>
11805
11806 * dbxread.c (process_one_symbol): Update.
11807 * dwarf2read.c (read_partial_die): Update.
11808 * symfile.c (set_initial_language): Call main_language.
11809 * symtab.c (language_of_main): Now static.
11810 (set_main_name): Add 'lang' parameter.
11811 (find_main_name): Update.
11812 (main_language): New function.
11813 (symtab_observer_executable_changed): Update.
11814 * symtab.h (set_main_name): Update.
11815 (language_of_main): Remove.
11816 (main_language): Declare.
11817
6ef55de7
TT
118182014-01-15 Tom Tromey <tromey@redhat.com>
11819
11820 * symfile.c (init_entry_point_info): Use new "initialized" field.
11821 Update.
11822 * objfiles.h (struct entry_point) <initialized>: New field.
11823 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11824 (struct objfile) <ei>: ...here. Remove.
11825 * objfiles.c (entry_point_address_query): Update.
11826
53eddfa6
TT
118272014-01-15 Tom Tromey <tromey@redhat.com>
11828
11829 * objfiles.c (entry_point_address_query): Relocate entry point
11830 address.
11831 (objfile_relocate1): Do not relocate entry point address.
11832 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11833 <the_bfd_section_index>: New field.
11834 * symfile.c (init_entry_point_info): Find the entry point's
11835 section.
11836
d56e56aa
TT
118372014-01-15 Tom Tromey <tromey@redhat.com>
11838
11839 * solib-frv.c (enable_break): Use entry_point_address_query.
11840
33a97bbe
OJ
118412014-01-15 Omair Javaid <omair.javaid@linaro.org>
11842
11843 * NEWS: Add note on improved process record-replay on
11844 arm*-linux* targets.
11845
c6ec2b30
OJ
118462014-01-15 Omair Javaid <omair.javaid@linaro.org>
11847
11848 * arm-tdep.c (enum arm_record_result): New enum.
11849 (arm_record_unsupported_insn): New function.
11850 (arm_record_coproc_data_proc): Removed.
11851 (thumb2_record_ld_st_multiple): New function.
11852 (thumb2_record_ld_st_dual_ex_tbb): New function.
11853 (thumb2_record_data_proc_sreg_mimm): New function.
11854 (thumb2_record_ps_dest_generic): New function.
11855 (thumb2_record_branch_misc_cntrl): New function.
11856 (thumb2_record_str_single_data): New function.
11857 (thumb2_record_ld_mem_hints): New function.
11858 (thumb2_record_ld_word): New function.
11859 (thumb2_record_lmul_lmla_div): New function.
11860 (thumb2_record_decode_insn_handler): New function.
11861 (decode_insn): Add thumb32 instruction handlers.
11862
97dfe206
OJ
118632014-01-15 Omair Javaid <omair.javaid@linaro.org>
11864
11865 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11866 (struct arm_linux_record_tdep): Declare.
11867 (arm_canonicalize_syscall): New function.
11868 (arm_all_but_pc_registers_record): New function.
11869 (arm_linux_syscall_record): New function.
11870 (arm_linux_init_abi): Add syscall recording constructs.
11871 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11872 decoding. (arm_record_coproc_data_proc): Update arm syscall
11873 decoding.
11874 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11875 <arm_syscall_record>: New field.
11876 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11877 gdb_target_obs.
11878
9904a494
OJ
118792014-01-15 Omair Javaid <omair.javaid@linaro.org>
11880
11881 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11882 register for push instruction recording.
11883
f969241e
OJ
118842014-01-15 Omair Javaid <omair.javaid@linaro.org>
11885
11886 * arm-tdep.c (thumb_record_misc): Update to correct logical
11887 error while recording ldm, ldmia and pop instructions.
11888
bfbbec00
OJ
118892014-01-15 Omair Javaid <omair.javaid@linaro.org>
11890
11891 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11892
e40adcc9
PA
118932014-01-15 Pedro Alves <palves@redhat.com>
11894
11895 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11896 (go32_resume, go32_fetch_registers, store_register)
11897 (go32_store_registers, go32_prepare_to_store)
11898 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11899 (go32_create_inferior, go32_can_run, go32_terminal_init)
11900 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11901 declarations.
11902
b0a16e66
TT
119032014-01-15 Tom Tromey <tromey@redhat.com>
11904
11905 * target.h (async_callback_ftype): New typedef.
11906 (struct target_ops) <to_async>: Use it.
11907
bf7105a4
JB
119082014-01-15 Joel Brobecker <brobecker@adacore.com>
11909
11910 * python/py-value.c (get_field_type): Remove unnecessary curly
11911 braces for single-statement if block.
11912
a8f35c2e
JB
119132014-01-15 Joel Brobecker <brobecker@adacore.com>
11914
11915 * python/py-type.c (convert_field): Add missing empty line
11916 after declarations.
11917
bb4142cf
DE
119182014-01-14 Doug Evans <dje@google.com>
11919
11920 * symfile.h (expand_symtabs_matching): Renamed from
11921 expand_partial_symbol_names. Update prototype.
11922 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11923 * symfile.c (expand_symtabs_matching): Renamed from
11924 expand_partial_symbol_names. New args file_matcher, kind.
11925 Rename arg fun to symbol_matcher.
11926 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11927 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11928 ada_expand_partial_symbol_name.
11929 (ada_make_symbol_completion_list): Update to call
11930 expand_symtabs_matching.
11931 (ada_add_global_exceptions): Call expand_symtabs_matching.
11932 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11933 call map_symbol_filenames.
11934 * symtab.c (sources_info): Update to call map_symbol_filenames.
11935 (search_symbols): Call expand_symtabs_matching.
11936 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11937 (default_make_symbol_completion_list_break_on): Update to call
11938 expand_symtabs_matching.
11939 (make_source_files_completion_list): Update to call
11940 map_symbol_filenames.
11941
206f2a57
DE
119422014-01-14 Doug Evans <dje@google.com>
11943
11944 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11945 (expand_symtabs_symbol_matcher_ftype): New typedef.
11946 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11947 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11948 * symfile.c (expand_partial_symbol_names): Update to use
11949 expand_symtabs_symbol_matcher_ftype.
11950 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11951 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11952 Arg name_matcher renamed to symbol_matcher.
11953 * psymtab.c (recursively_search_psymtabs): Update to use
11954 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11955 sym_matcher.
11956 (expand_symtabs_matching_via_partial): Update to use
11957 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11958 Arg name_matcher renamed to symbol_matcher.
11959
540c2971
DE
119602014-01-14 Doug Evans <dje@google.com>
11961
11962 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11963 (map_partial_symbol_filenames): Ditto.
11964 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11965 (map_partial_symbol_filenames): Ditto.
11966 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11967 (map_partial_symbol_filenames): Ditto.
11968 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11969 (map_partial_symbol_filenames): Ditto.
11970 * symtab.c: Delete #include "psymtab.h".
11971
8213266a
PA
119722014-01-14 Pedro Alves <palves@redhat.com>
11973 Tom Tromey <tromey@redhat.com>
11974
11975 * infrun.c (use_displaced_stepping): Use find_record_target
11976 instead of RECORD_IS_USED.
11977 (adjust_pc_after_break): Use record_full_is_used instead of
11978 RECORD_IS_USED.
11979 * record-btrace.c (record_btrace_open): Call record_preopen
11980 instead of checking RECORD_IS_USED.
11981 * record-full.c (record_full_shortname)
11982 (record_full_core_shortname): New globals.
11983 (record_full_is_used): New function.
11984 (find_full_open): Call record_preopen instead of checking
11985 RECORD_IS_USED.
11986 (init_record_full_ops): Set the target's shortname to
11987 record_full_shortname.
11988 (init_record_full_core_ops): Set the target's shortname to
11989 record_full_core_shortname.
11990 * record-full.h (record_full_is_used): Declare.
11991 * record.c (find_record_target): Make extern.
11992 (record_preopen): New function.
11993 * record.h (RECORD_IS_USED): Delete macro.
11994 (find_record_target, record_preopen): Declare functions.
11995
7ec1862d
YQ
119962014-01-14 Yao Qi <yao@codesourcery.com>
11997
11998 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11999 'len''s type to ULONGEST.
12000 (core_xfer_shared_libraries_aix): Likewise.
12001 * gdbarch.c, gdbarch.h: Regenerated.
12002 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
12003 Change type of 'len' to ULONGEST.
12004 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12005 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
12006
dea80a27
YQ
120072014-01-14 Yao Qi <yao@codesourcery.com>
12008
12009 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
12010 type of 'len' to ULONGEST.
12011 (linux_xfer_osdata_processgroups): Likewise.
12012 (linux_xfer_osdata_threads): Likewise.
12013 (linux_xfer_osdata_fds): Likewise.
12014 (linux_xfer_osdata_isockets): Likewise.
12015 (linux_xfer_osdata_shm): Likewise.
12016 (linux_xfer_osdata_sem): Likewise.
12017 (linux_xfer_osdata_msg): Likewise.
12018 (linux_common_xfer_osdata): Likewise.
12019 (struct osdata_type) <getter>: Likewise.
12020 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12021 the declaration.
12022
b55e14c7
YQ
120232014-01-14 Yao Qi <yao@codesourcery.com>
12024
12025 * target.h (target_xfer_partial_ftype): Update.
12026 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12027 ULONGEST.
12028 * aix-thread.c (aix_thread_xfer_partial): Change type of
12029 argument 'len' to ULONGEST.
12030 * auxv.c (procfs_xfer_auxv): Likewise.
12031 (ld_so_xfer_auxv): Likewise.
12032 (memory_xfer_auxv): Likewise.
12033 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12034 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12035 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12036 * corelow.c (core_xfer_partial): Likewise.
12037 * ctf.c (ctf_xfer_partial): Likewise.
12038 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12039 '%u'.
12040 (darwin_read_dyld_info): Likewise.
12041 (darwin_xfer_partial): Likewise.
12042 * exec.c (section_table_xfer_memory_partial): Likewise.
12043 (exec_xfer_partial): Likewise.
12044 * exec.h (section_table_xfer_memory_partial): Update
12045 declaration.
12046 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12047 instead of plongest.
12048 (gnu_xfer_partial): Likewise.
12049 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12050 (ia64_hpux_xfer_solib_got): Likewise.
12051 (ia64_hpux_xfer_partial): Likewise.
12052 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12053 * inf-ptrace.c (inf_ptrace_xfer_partial):
12054 * inf-ttrace.c (inf_ttrace_xfer_partial):
12055 * linux-nat.c (linux_xfer_siginfo): Likewise.
12056 (linux_nat_xfer_partial): Likewise.
12057 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12058 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12059 * monitor.c (monitor_xfer_memory): Likewise.
12060 (monitor_xfer_partial): Likewise.
12061 * procfs.c (procfs_xfer_partial): Likewise.
12062 * record-full.c (record_full_xfer_partial): Likewise.
12063 (record_full_core_xfer_partial): Likewise.
12064 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12065 instead of plongest.
12066 (gdbsim_xfer_partial): Likewise.
12067 * remote.c (remote_xfer_partial): Likewise.
12068 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12069 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12070 declaration.
12071 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12072 (rs6000_xfer_shared_libraries): Likewise.
12073 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12074 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12075 (sparc_xfer_partial): Likewise.
12076 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12077 (spu_xfer_partial): Likewise.
12078 * spu-multiarch.c (spu_xfer_partial): Likewise.
12079 * target.c (target_read_live_memory): Likewise.
12080 (memory_xfer_live_readonly_partial): Likewise.
12081 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12082 (target_xfer_partial, default_xfer_partial): Likewise.
12083 (current_xfer_partial): Likewise.
12084 * tracepoint.c (tfile_xfer_partial): Likewise.
12085 * windows-nat.c (windows_xfer_memory): Likewise. Call
12086 pulongest instead of plongest.
12087 (windows_xfer_partial): Likewise.
12088 (windows_xfer_shared_libraries): Likewise.
12089
05804640
YQ
120902014-01-14 Yao Qi <yao@codesourcery.com>
12091
12092 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12093 target_xfer_partial_ftype.
12094
b5b08fb4
SC
120952014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12096
12097 PR python/15464
12098 PR python/16113
12099 * valops.c (value_struct_elt_bitpos): New function
12100 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12101 object to 'None' if the field name is an empty string ("").
12102 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12103 attribute to look for a field when 'name' is 'None'.
12104 (get_field_type): New function
12105
13aaf454
DE
121062014-01-13 Doug Evans <dje@google.com>
12107
12108 PR symtab/16426
12109 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12110 (try_open_dwop_file): Ditto.
12111 * gdb_bfd.c: #include "vec.h".
12112 (bfdp): New typedef.
12113 (struct gdb_bfd_data): New member included_bfds.
12114 (gdb_bfd_unref): Unref all included bfds.
12115 (gdb_bfd_record_inclusion): New function.
12116 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12117
c2cec97c
TT
121182014-01-13 Tom Tromey <tromey@redhat.com>
12119
12120 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12121
78e5999d
TT
121222014-01-13 Tom Tromey <tromey@redhat.com>
12123
12124 * defs.h (use_windows): Remove.
12125 * gdb.c (main): Update.
12126 * main.c (captured_main, gdb_main): Update.
12127 * main.h (struct captured_main_args) <use_windows>: Remove.
12128 * top.c (use_windows): Remove.
12129
f2052bbe
TT
121302014-01-13 Tom Tromey <tromey@redhat.com>
12131
12132 * defs.h (deprecated_flush_hook): Remove.
12133
fde4f8ed
JK
121342014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12135
12136 PR threads/16216
12137 * linux-thread-db.c (try_thread_db_load): Add parameter
12138 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12139 (try_thread_db_load_from_pdir_1): Move it there from here.
12140 (try_thread_db_load_from_sdir): Update caller.
12141 (try_thread_db_load_from_dir): Move it there from here.
12142
bdf61915
PP
121432014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12144
12145 * regformats/regdat.sh: Always rewrite the register file.
12146
f71e1a8d
PA
121472014-01-13 Pedro Alves <palves@redhat.com>
12148
12149 * Makefile.in (CHECK_HEADERS): New variable.
12150 (check-headers:): New rule.
12151
42c85435
TT
121522014-01-13 Tom Tromey <tromey@redhat.com>
12153
12154 * cli/cli-setshow.c (do_set_command): Update.
12155 * defs.h (deprecated_set_hook): Remove.
12156 * top.c (deprecated_set_hook): Remove.
12157
f8de5129
PA
121582014-01-13 Pedro Alves <palves@redhat.com>
12159
12160 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12161 the tracepoint if the PC is a pseudo-register.
12162
fc270c35
TT
121632014-01-13 Tom Tromey <tromey@redhat.com>
12164
12165 * defs.h (XCALLOC): Remove.
12166 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12167 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12168 * dwarf2loc.c (allocate_piece_closure): Likewise.
12169 * elfread.c (elf_symfile_segments): Likewise.
12170 (elf_symfile_segments): Likewise.
12171 * gdbtypes.c (copy_type_recursive): Likewise.
12172 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12173 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12174 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12175 XCALLOC.
12176 * mt-tdep.c (mt_gdbarch_init): Likewise.
12177 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12178 XCALLOC.
12179 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12180 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12181 * registry.c (registry_alloc_data): Likewise.
12182 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12183 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12184 * serial.c (serial_fdopen_ops): Likewise.
12185 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12186 XCALLOC.
12187 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12188 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12189 not XCALLOC.
12190
70ba0933
TT
121912014-01-13 Tom Tromey <tromey@redhat.com>
12192
12193 * defs.h (XMALLOC): Remove.
12194 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12195 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12196 * cli-out.c (struct ui_out *): Likewise.
12197 * cli/cli-dump.c (add_dump_command): Likewise.
12198 (add_dump_command): Likewise.
12199 * complaints.c (get_complaints): Likewise.
12200 (find_complaint): Likewise.
12201 * dwarf2-frame.c (execute_cfa_program): Likewise.
12202 * dwarf2read.c (abbrev_table_read_table): Likewise.
12203 * gdbarch.sh: Likewise.
12204 * gdbarch.c: Rebuild.
12205 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12206 * interps.c (interp_new): Likewise.
12207 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12208 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12209 * mi/mi-console.c (mi_console_file_new): Likewise.
12210 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12211 * mi/mi-out.c (mi_out_new): Likewise.
12212 * mi/mi-parse.c (mi_parse): Likewise.
12213 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12214 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12215 * observer.c (xalloc_observer_list_node): Likewise.
12216 * regcache.c (regcache_xmalloc_1): Likewise.
12217 * reggroups.c (reggroup_new): Likewise.
12218 (_initialize_reggroup): Likewise.
12219 * registry.c (register_data_with_cleanup): Likewise.
12220 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12221 * ser-base.c (serial_ttystate): Likewise.
12222 * ser-mingw.c (make_pipe_state): Likewise.
12223 * ser-pipe.c (pipe_open): Likewise.
12224 * serial.c (serial_open): Likewise.
12225 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12226 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12227 (tui_alloc_win_info): Likewise.
12228 (tui_add_content_elements): Likewise.
12229 * tui/tui-file.c (tui_file_new): Likewise.
12230 * tui/tui-out.c (tui_out_new): Likewise.
12231 * ui-file.c (mem_file_new): Likewise.
12232 * ui-out.c (push_level): Likewise.
12233 (make_cleanup_ui_out_end): Likewise.
12234 (append_header_to_list): Likewise.
12235 (ui_out_new): Likewise.
12236 * user-regs.c (user_reg_add_builtin): Likewise.
12237
41bf6aca
TT
122382014-01-13 Tom Tromey <tromey@redhat.com>
12239
12240 * defs.h (XZALLOC): Remove.
12241 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12242 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12243 (get_ada_tasks_inferior_data): Likewise.
12244 * auto-load.c (get_auto_load_pspace_data): Likewise.
12245 * auxv.c (get_auxv_inferior_data): Likewise.
12246 * bfd-target.c (target_bfd_reopen): Likewise.
12247 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12248 (deprecated_insert_raw_breakpoint): Likewise.
12249 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12250 * corelow.c (core_open): Likewise.
12251 * darwin-nat.c (darwin_check_new_threads): Likewise.
12252 (darwin_attach_pid): Likewise.
12253 * dummy-frame.c (dummy_frame_push): Likewise.
12254 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12255 * dwarf2loc.c (allocate_piece_closure): Likewise.
12256 * elfread.c (elf_symfile_segments): Likewise.
12257 * eval.c (ptrmath_type_p): Likewise.
12258 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12259 * gdbtypes.c (alloc_type_arch): Likewise.
12260 (alloc_type_instance): Likewise.
12261 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12262 * inf-child.c (inf_child_can_use_agent): Likewise.
12263 * inflow.c (get_inflow_inferior_data): Likewise.
12264 * infrun.c (save_infcall_suspend_state): Likewise.
12265 * jit.c (jit_reader_load): Likewise.
12266 (get_jit_objfile_data): Likewise.
12267 (get_jit_program_space_data): Likewise.
12268 (jit_object_open_impl): Likewise.
12269 (jit_symtab_open_impl): Likewise.
12270 (jit_block_open_impl): Likewise.
12271 (jit_frame_sniffer): Likewise.
12272 * linux-fork.c (add_fork): Likewise.
12273 * maint.c (make_command_stats_cleanup): Likewise.
12274 * objfiles.c (get_objfile_pspace_data): Likewise.
12275 * opencl-lang.c (struct lval_closure): Likewise.
12276 * osdata.c (osdata_start_osdata): Likewise.
12277 * progspace.c (new_address_space): Likewise.
12278 (add_program_space): Likewise.
12279 * remote-sim.c (get_sim_inferior_data): Likewise.
12280 * sh-tdep.c (sh_gdbarch_init): Likewise.
12281 * skip.c (Ignore): Likewise.
12282 (skip_delete_command): Likewise.
12283 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12284 (library_list_start_library): Likewise.
12285 (solib_aix_current_sos): Likewise.
12286 * solib-darwin.c (get_darwin_info): Likewise.
12287 (darwin_current_sos): Likewise.
12288 * solib-dsbt.c (get_dsbt_info): Likewise.
12289 * solib-ia64-hpux.c (new_so_list): Likewise.
12290 (ia64_hpux_get_solib_linkage_addr): Likewise.
12291 * solib-spu.c (append_ocl_sos): Likewise.
12292 (spu_current_sos): Likewise.
12293 * solib-svr4.c (get_svr4_info): Likewise.
12294 (svr4_keep_data_in_core): Likewise.
12295 (library_list_start_library): Likewise.
12296 (svr4_default_sos): Likewise.
12297 (svr4_read_so_list): Likewise.
12298 * solib-target.c (library_list_start_library): Likewise.
12299 (solib_target_current_sos): Likewise.
12300 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12301 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12302 * symfile.c (default_symfile_segments): Likewise.
12303 * target-descriptions.c (tdesc_data_init): Likewise.
12304 (tdesc_create_reg): Likewise.
12305 (struct tdesc_type *): Likewise.
12306 (tdesc_create_vector): Likewise.
12307 (tdesc_set_struct_size): Likewise.
12308 (struct tdesc_type *): Likewise.
12309 (tdesc_free_feature): Likewise.
12310 (tdesc_create_feature): Likewise.
12311 * windows-nat.c (windows_add_thread): Likewise.
12312 (windows_make_so): Likewise.
12313 * xml-support.c (gdb_xml_body_text): Likewise.
12314 (gdb_xml_create_parser_and_cleanup): Likewise.
12315 (xml_process_xincludes): Likewise.
12316 * xml-syscall.c (allocate_syscalls_info): Likewise.
12317 (syscall_create_syscall_desc): Likewise.
12318
5acfdbae
SDJ
123192014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12320
12321 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12322 function, with code from i386_stap_parse_special_token.
12323 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12324 (i386_stap_parse_special_token): Move code to the two functions
12325 above; simplify it.
12326
0000e5cc
PA
123272014-01-09 Pedro Alves <palves@redhat.com>
12328 Hui Zhu <hui@codesourcery.com>
12329
12330 PR gdb/16101
12331 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12332 bp_err_string. Don't mark the location shlib_disabled if the
12333 error thrown wasn't a generic or memory error. Catch errors
12334 thrown while inserting breakpoints in overlayed code. Output
12335 error message of software breakpoints.
12336 * remote.c (remote_insert_breakpoint): If this breakpoint has
12337 target-side commands but this stub doesn't support Z0 packets,
12338 throw NOT_SUPPORTED_ERROR error.
12339 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12340 * target.h (target_insert_breakpoint): Extend comment.
12341 (target_insert_hw_breakpoint): Add comment.
12342
b7ea362b
PA
123432014-01-08 Pedro Alves <palves@redhat.com>
12344
12345 * remote.c (remote_add_thread): Add threads silently if starting
12346 up.
12347 (remote_notice_new_inferior): If in all-stop, and starting up,
12348 don't call notice_new_inferior.
12349 (get_current_thread): New function, factored out from ...
12350 (add_current_inferior_and_thread): ... this. Adjust.
12351 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12352 found any thread, then select the remote's current thread as GDB's
12353 current thread too.
12354
b7bba001
JB
123552014-01-08 Joel Brobecker <brobecker@adacore.com>
12356
12357 * NEWS: Create a new section for the next release branch.
12358 Rename the section of the current branch, now that it has
12359 been cut.
12360
16dfbded
JB
123612014-01-08 Joel Brobecker <brobecker@adacore.com>
12362
12363 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12364 * version.in: Bump version to 7.7.50.DATE-cvs.
12365
22c90ac1
YQ
123662014-01-08 Yao Qi <yao@codesourcery.com>
12367
12368 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12369 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12370 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12371
d64ad97c
YQ
123722014-01-08 Yao Qi <yao@codesourcery.com>
12373
12374 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12375 return value of bfd_get_filename to symbol_file_add_from_bfd.
12376
f93ba80c
PM
123772014-01-08 Pierre Muller <muller@sourceware.org>
12378
12379 Fix PR16201.
12380 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12381 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12382 to prim_record_mininal_symbol_and_info.
12383 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12384 in call to prim_record_minimal_symbol_and_info.
12385 (read_pe_exported_syms): Set index field of section_data.
12386
a4d9ba85
AP
123872014-01-07 Andrew Pinski <apinski@cavium.com>
12388
12389 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12390 * features/aarch64.c: Regenerate.
12391
1b67eb02
AS
123922014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12393
12394 * target.c (return_null): Define.
12395 (update_current_target): Use it instead of return_zero for
12396 functions that return a pointer.
12397
5e3f4fab
EBM
123982014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12399
12400 * source.c (add_path): Fix check for duplicated paths in the previously
12401 included paths.
12402
e2616788
HK
124032014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12404
12405 * ada-lang.c: Remove duplicated include statements.
12406 * alphabsd-nat.c: Ditto.
12407 * amd64-darwin-tdep.c: Ditto.
12408 * amd64fbsd-nat.c: Ditto.
12409 * auto-load.c: Ditto.
12410 * ax-gdb.c: Ditto.
12411 * breakpoint.c: Ditto.
12412 * dbxread.c: Ditto.
12413 * fork-child.c: Ditto.
12414 * gdb_usleep.c: Ditto.
12415 * i386-darwin-tdep.c: Ditto.
12416 * i386fbsd-nat.c: Ditto.
12417 * infcmd.c: Ditto.
12418 * inferior.c: Ditto.
12419 * jv-lang.c: Ditto.
12420 * linux-nat.c: Ditto.
12421 * linux-tdep.c: Ditto.
12422 * m68kbsd-nat.c: Ditto.
12423 * m68klinux-nat.c: Ditto.
12424 * microblaze-tdep.c: Ditto.
12425 * mips-linux-tdep.c: Ditto.
12426 * mn10300-tdep.c: Ditto.
12427 * nto-tdep.c: Ditto.
12428 * opencl-lang.c: Ditto.
12429 * osdata.c: Ditto.
12430 * printcmd.c: Ditto.
12431 * regcache.c: Ditto.
12432 * remote-m32r-sdi.c: Ditto.
12433 * remote.c: Ditto.
12434 * symfile.c: Ditto.
12435 * symtab.c: Ditto.
12436 * tilegx-linux-nat.c: Ditto.
12437 * tilegx-tdep.c: Ditto.
12438 * tracepoint.c: Ditto.
12439 * valops.c: Ditto.
12440 * vaxbsd-nat.c: Ditto.
12441 * windows-nat.c: Ditto.
12442 * xtensa-tdep.c: Ditto.
12443
bd1f7788
YQ
124442014-01-07 Yao Qi <yao@codesourcery.com>
12445
12446 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12447
79301218
JB
124482014-01-07 Yao Qi <yao@codesourcery.com>
12449 Joel Brobecker <brobecker@adacore.com>
12450
12451 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12452 (pdc_write_regs): Likewise.
12453 (fetch_regs_kernel_thread): Likewise.
12454 (store_regs_kernel_thread): Likewise.
12455
124562014-01-07 Joel Brobecker <brobecker@adacore.com>
12457
12458 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12459 tagged type objects to their actual type.
12460
8e355c5d
JB
124612014-01-07 Joel Brobecker <brobecker@adacore.com>
12462
12463 * ada-valprint.c (print_field_values): Add "language" parameter.
12464 Update calls to print_field_values and print_variant_part.
12465 Pass new parameter "language" in call to val_print instead
12466 of "current_language". Replace call to ada_val_print by call
12467 to val_print.
12468 (print_variant_part): Add "language" parameter.
12469 (ada_val_print_struct_union): Update call to print_field_values.
12470
4fbf5aa5
JB
124712014-01-07 Joel Brobecker <brobecker@adacore.com>
12472
12473 * ada-valprint.c (ui_memcpy): Delete.
12474 (ada_print_floating): Update documentation. Add empty line
12475 between between function documentation and implementation.
12476 Delete variable "buffer". Use ui_file_xstrdup in place of
12477 ui_file_put. Minor adjustments following this change.
12478
71855601
JB
124792014-01-07 Joel Brobecker <brobecker@adacore.com>
12480
12481 * ada-valprint.c (ada_val_print_string): New function,
12482 extracted from ada_val_print_array.
12483 (ada_val_print_array): Replace extracted code by call
12484 to ada_val_print_string followed by a return. Move
12485 "else" branch to the function's top block.
12486
4eb27a30
JB
124872014-01-07 Joel Brobecker <brobecker@adacore.com>
12488
12489 * ada-valprint.c (ada_val_print_array): Move implementation
12490 down. Rename parameter "offset" and "val" into "offset_aligned"
12491 and "original_value" respectively. Add parameter "offset".
12492
34b27950
JB
124932014-01-07 Joel Brobecker <brobecker@adacore.com>
12494
12495 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12496 re-organizing the code. Change the "???" message printed
12497 when target type is a TYPE_CODE_UNDEF into
12498 "<ref to undefined type>".
12499
079e4591
JB
125002014-01-07 Joel Brobecker <brobecker@adacore.com>
12501
12502 * ada-valprint.c (print_record): Delete, implementation inlined...
12503 (ada_val_print_struct_union): ... here. Remove call to
12504 ada_check_typedef in inlined implementation.
12505
8004dfd1
JB
125062014-01-07 Joel Brobecker <brobecker@adacore.com>
12507
12508 * ada-valprint.c (ada_val_print_gnat_array): New function,
12509 extracted from ada_val_print_1;
12510 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12511 (ada_val_print_flt, ada_val_print_struct_union)
12512 (ada_val_print_ref): Likewise.
12513 (ada_val_print_1): Delete variables i and elttype.
12514 Replace extracted-out code by call to corresponding
12515 new functions.
12516
760a2db0
JB
125172014-01-07 Joel Brobecker <brobecker@adacore.com>
12518
12519 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12520
3a92c861
JB
125212014-01-07 Joel Brobecker <brobecker@adacore.com>
12522
12523 * ada-valprint.c (ada_val_print_1): Replace calls to
12524 ada_val_print_1 by calls to val_print.
12525
cd1630f9
JB
125262014-01-07 Joel Brobecker <brobecker@adacore.com>
12527
12528 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12529 Update calls to self accordingly. Replace calls to c_val_print
12530 by calls to val_print.
12531
bdf779a0
JB
125322014-01-07 Joel Brobecker <brobecker@adacore.com>
12533
12534 * ada-valprint.c (print_record): Delete declaration.
12535 (adjust_type_signedness, ada_val_print_1): Likewise.
12536 (ada_val_print): Move function implementation down.
12537 (print_variant_part, print_field_values, print_record):
12538 Move function implementation up.
12539
c0d48811
JB
125402014-01-07 Joel Brobecker <brobecker@adacore.com>
12541
12542 * python/py-type.c (typy_get_name): New function.
12543 (type_object_getset): Add entry for attribute "name".
12544 * NEWS: Add entry mentioning this new attribute.
12545
c26e9cbb
YQ
125462014-01-07 Yao Qi <yao@codesourcery.com>
12547
12548 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12549 statement.
12550
0cc6f43d
YQ
125512014-01-07 Yao Qi <yao@codesourcery.com>
12552
12553 * gnu-nat.c (info_port_rights): Add qualifier const to
12554 argument args.
12555
eec03155
YQ
125562014-01-07 Yao Qi <yao@codesourcery.com>
12557
12558 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12559
f04a82ef
YQ
125602014-01-07 Yao Qi <yao@codesourcery.com>
12561
12562 * gnu-nat.c (make_inf) Update declaration.
12563 (make_inf): Make it static.
12564 (inf_set_traced): Likewise.
12565 (inf_port_to_thread, inf_task_died_status): Likewise.
12566
d57dda0a
YQ
125672014-01-07 Yao Qi <yao@codesourcery.com>
12568
12569 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12570
3aa8c969
YQ
125712014-01-07 Yao Qi <yao@codesourcery.com>
12572
12573 * gnu-nat.c (_initialize_gnu_nat): Declare.
12574
94123b4f
YQ
125752014-01-07 Yao Qi <yao@codesourcery.com>
12576
12577 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12578 'enum bfd_endian'.
12579 (struct gdbarch_info) <byte_order>: Change type to
12580 'enum bfd_endian'.
12581 <byte_order_for_code>: Likewise.
12582 * gdbarch.c, gdbarch.h: Regenerated.
12583
dc81d70a
TT
125842014-01-06 Sasha Smundak <asmundak@google.com>
12585
12586 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12587
cc2f3c35
TT
125882014-01-06 Tom Tromey <tromey@redhat.com>
12589
12590 * doublest.c (convert_doublest_to_floatformat): Use const, not
12591 CONST.
12592 * somread.c (som_symtab_read): Likewise.
12593
adcf2eed
HZ
125942014-01-07 Hui Zhu <hui@codesourcery.com>
12595
12596 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12597 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12598 (gdb_bfd_fopen): Ditto.
12599 (gdb_bfd_openr): Ditto.
12600 (gdb_bfd_openw): Ditto.
12601 (gdb_bfd_openr_iovec): Ditto.
12602 (gdb_bfd_fdopenr): Ditto.
12603 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12604 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12605 with xstrdup.
12606 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12607 with xstrdup.
12608 * symfile-mem.c (symbol_file_add_from_memory): Removed
12609 gdb_bfd_stash_filename.
12610
50722198
DE
126112014-01-03 Doug Evans <dje@google.com>
12612
12613 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12614 output.
12615
2fa4b862
JB
126162014-01-01 Joel Brobecker <brobecker@adacore.com>
12617
12618 Update year range in copyright notice of all files.
12619
28498c42
JB
126202014-01-01 Joel Brobecker <brobecker@adacore.com>
12621
12622 * top.c (print_gdb_version): Set copyright year to 2014.
12623
7b6e1046
JB
126242014-01-01 Joel Brobecker <brobecker@adacore.com>
12625
12626 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12627
df96af55 12628For older changes see ChangeLog-2013.
c906108c
SS
12629\f
12630Local Variables:
12631mode: change-log
12632left-margin: 8
12633fill-column: 74
12634version-control: never
57da7796 12635coding: utf-8
c906108c 12636End:
This page took 2.348905 seconds and 4 git commands to generate.