PR 15276: Add $_caller_is, $_caller_matches, $_any_caller_is, $_any_caller_matches
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
faa42425
DE
12014-09-06 Doug Evans <xdje42@gmail.com>
2
3 PR 15276
4 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
5 $_any_caller_matches.
6 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
7 * python/lib/gdb/function/caller_is.py: New file.
8
0d41ba00
DE
92014-09-06 Doug Evans <xdje42@gmail.com>
10
11 * infcmd.c (program_info): Fix typo.
12
474ca4f6
SDJ
132014-09-05 Sergio Durigan Junior <sergiodj@redhat.com>
14
15 PR gdb/17235
16 * stap-probe.c (stap_parse_single_operand): Delete unused variable
17 'number'. New variable 'has_digit'. Rewrite code to deal with
18 subexpressions on SDT probes.
19
ebf13736
PA
202014-09-04 Pedro Alves <palves@redhat.com>
21
22 * c-exp.y (parse_number): Skip handling base-switching prefixes if
23 the input is only one character long.
24
eb0b0463
SDJ
252014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
26
27 PR fortran/17237
28 * f-valprint.c (f_val_print): Specify the correct print option to
29 use when printing integer values.
30
5ee44bfa
GB
312014-09-04 Gary Benson <gbenson@redhat.com>
32
33 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
34 Remove code to cope with LWPs wrapped as PIDs.
35 Add assertions to ensure no wrapped LWPs are passed.
36
4875ffdb
PA
372014-09-04 Pedro Alves <palves@redhat.com>
38
39 * value.c (value_ranges_copy_adjusted): New function, factored out
40 from ...
41 (value_contents_copy_raw): ... here.
42 (unpack_value_bits_as_long_1): Rename back to ...
43 (unpack_bits_as_long): ... this. Remove 'original_value' and
44 'result' parameters. Change return type to LONGEST.
45 (unpack_value_bits_as_long): Delete.
46 (unpack_value_field_as_long_1): Delete.
47 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
48 (unpack_value_bitfield): New function.
49 (value_field_bitfield): Reimplement using unpack_value_bitfield.
50 (value_fetch_lazy): Use unpack_value_bitfield.
51 * value.h (unpack_value_bits_as_long): Delete declaration.
52
5f3b99cf
SS
532014-09-03 Sasha Smundak <asmundak@google.com>
54
55 * python/py-frame.c (frapy_read_register): New function.
56
ac740bc7
JH
572014-09-03 James Hogan <james.hogan@imgtec.com>
58
59 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
60 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
61
7d793aa9
SDJ
622014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
63
64 PR python/16699
65 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
66 function.
67 (add_cmd): Set "completer_handle_brkchars" to NULL.
68 * cli/cli-decode.h (struct cmd_list_element)
69 <completer_handle_brkchars>: New field.
70 * command.h (completer_ftype_void): New typedef.
71 (set_cmd_completer_handle_brkchars): New prototype.
72 * completer.c (set_gdb_completion_word_break_characters): New
73 function.
74 (complete_line_internal): Call "completer_handle_brkchars"
75 callback from command.
76 * completer.h: Include "command.h".
77 (set_gdb_completion_word_break_characters): New prototype.
78 * python/py-cmd.c (cmdpy_completer_helper): New function.
79 (cmdpy_completer_handle_brkchars): New function.
80 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
81 (cmdpy_init): Set completer_handle_brkchars to
82 cmdpy_completer_handle_brkchars.
83
97ea6506
GB
842014-09-03 Gary Benson <gbenson@redhat.com>
85
86 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
87 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
88 Loop conditions changed to equivalent form.
89 (struct x86_debug_reg_state): Updated dr_ref_count comment.
90 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
91 ALL_DEBUG_ADDRESS_REGISTERS.
92
d1437815
JB
932014-09-03 Joel Brobecker <brobecker@adacore.com>
94
95 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
96 description fix.
97
9b94fcf1
DE
982014-09-02 Doug Evans <dje@google.com>
99
100 * typeprint.c (find_global_typedef): Fix comment.
101
df7e5265
GB
1022014-09-02 Gary Benson <gbenson@redhat.com>
103
104 * i386-nat.h: Renamed as...
105 * x86-nat.h: New file. All type, function and variable name
106 prefixes changed from "i386_" to "x86_". All references updated.
107 * i386-nat.c: Renamed as...
108 * x86-nat.c: New file. All type, function and variable name
109 prefixes changed from "i386_" to "x86_". All references updated.
110 * common/i386-xstate.h: Renamed as...
111 * common/x86-xstate.h: New file. All type, function and variable
112 name prefixes changed from "i386_" to "x86_". All references
113 updated.
114 * nat/i386-cpuid.h: Renamed as...
115 * nat/x86-cpuid.h: New file. All type, function and variable name
116 prefixes changed from "i386_" to "x86_". All references updated.
117 * nat/i386-gcc-cpuid.h: Renamed as...
118 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
119 name prefixes changed from "i386_" to "x86_". All references
120 updated.
121 * nat/i386-dregs.h: Renamed as...
122 * nat/x86-dregs.h: New file. All type, function and variable name
123 prefixes changed from "i386_" to "x86_". All references updated.
124 * nat/i386-dregs.c: Renamed as...
125 * nat/x86-dregs.c: New file. All type, function and variable name
126 prefixes changed from "i386_" to "x86_". All references updated.
127
1c3569d4
MR
1282014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
129
130 * varobj.c (_initialize_varobj): Move to the end of file.
131
ff55e1b5
GB
1322014-08-29 Gary Benson <gbenson@redhat.com>
133
134 * common/common-exceptions.h: New file.
135 * common/common-exceptions.c: Likewise.
136 * Makefile.in (SFILES): Add common/common-exceptions.c.
137 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
138 (COMMON_OBS): Add common-exceptions.o.
139 (common-exceptions.o): New rule.
140 * exceptions.h (common-exceptions.h): Include.
141 (gdb_setjmp.h): Do not include.
142 (return_reason): Moved to common-exceptions.h.
143 (enum return_reason): Likewise.
144 (RETURN_MASK): Likewise.
145 (typedef return_mask): Likewise.
146 (enum errors): Likewise.
147 (struct gdb_exception): Likewise.
148 (exceptions_state_mc_init): Likewise.
149 (exceptions_state_mc_action_iter): Likewise.
150 (exceptions_state_mc_action_iter_1): Likewise.
151 (TRY_CATCH): Likewise.
152 (throw_exception): Likewise.
153 (throw_verror): Likewise.
154 (throw_vquit): Likewise.
155 (throw_error): Likewise.
156 (throw_quit): Likewise.
157 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
158 (enum catcher_action): Likewise.
159 (struct catcher): Likewise.
160 (current_catcher): Likewise.
161 (catcher_list_size): Likewise.
162 (exceptions_state_mc_init): Likewise.
163 (catcher_pop): Likewise.
164 (exceptions_state_mc): Likewise.
165 (exceptions_state_mc_action_iter): Likewise.
166 (exceptions_state_mc_action_iter_1): Likewise.
167 (throw_exception): Likewise.
168 (exception_messages): Likewise.
169 (exception_messages_size): Likewise.
170 (throw_it): Likewise.
171 (throw_verror): Likewise.
172 (throw_vquit): Likewise.
173 (throw_error): Likewise.
174 (throw_quit): Likewise.
175 (prepare_to_throw_exception): New function.
176
e9bcb658
GB
1772014-08-29 Gary Benson <gbenson@redhat.com>
178
179 * common/gdb_setjmp.h: New file.
180 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
181 * configure.ac: Move sigsetjmp check...
182 * common/common.m4: ...here.
183 * configure: Regenerate.
184 * cp-support.c (SIGJMP_BUF): Delete.
185 (SIGSETJMP): Likewise.
186 (SIGLONGJMP): Likewise.
187 * exceptions.h (gdb_setjmp.h): Include.
188 (setjmp.h): Do not include.
189 (EXCEPTIONS_SIGJMP_BUF): Delete.
190 (EXCEPTIONS_SIGSETJMP): Likewise.
191 (EXCEPTIONS_SIGLONGJMP): Likewise.
192 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
193 from gdb_setjmp.h.
194 * exceptions.c: Likewise.
195
e3180625
GB
1962014-08-29 Gary Benson <gbenson@redhat.com>
197
198 * cleanups.h: Moved to...
199 * common/cleanups.h: New file.
200 * cleanups.c: Moved to...
201 * common/cleanups.c: New file. Include common-defs.h and
202 cleanups.h. Do not include defs.h.
203 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
204 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
205 (cleanups.o): New rule.
206
e3d6ba5d
GB
2072014-08-29 Gary Benson <gbenson@redhat.com>
208
209 * common/errors.h (internal_warning): New declaration.
210 (internal_vwarning): Likewise.
211 * common/errors.c (internal_warning): New function.
212 * utils.h (internal_warning): Don't declare.
213 (internal_vwarning): Likewise.
214 * utils.c (internal_warning): Removed.
215
075c7033
GB
2162014-08-29 Gary Benson <gbenson@redhat.com>
217
218 * main.c (captured_main): Use warning during startup.
219 Prefix startup warning messages with command name.
220
91b35fd0
GB
2212014-08-29 Gary Benson <gbenson@redhat.com>
222
223 * main.c (captured_main): Handle usage errors with error.
224
b1ec390e
GB
2252014-08-29 Gary Benson <gbenson@redhat.com>
226
227 * go32-nat.c (go32_create_inferior): Replace a fprintf/
228 exit pair with a call to error. Wrap the message with _().
229
fd0ef3dd
GB
2302014-08-29 Gary Benson <gbenson@redhat.com>
231
232 * main.c (captured_main): Replace a fprintf/exit
233 pair with a call to error. Wrap the message with _().
234
e0e6bcab
GB
2352014-08-29 Gary Benson <gbenson@redhat.com>
236
237 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
238 pairs with calls to error. Wrap the message with _().
239
0d2f5c07
GB
2402014-08-29 Gary Benson <gbenson@redhat.com>
241
242 * utils.c (vwarning): Protect calls to target_terminal_ours
243 and wrap_here.
244
5df43998
GB
2452014-08-29 Gary Benson <gbenson@redhat.com>
246
247 * exceptions.c (print_flush): Protect calls to
248 target_terminal_ours and wrap_here.
249
2437fd32
GB
2502014-08-29 Gary Benson <gbenson@redhat.com>
251
252 * utils.h (filtered_printing_initialized): New declaration.
253 * utils.c (abort_with_message): New function.
254 (internal_vproblem): Use abort_with_message for first level
255 recursive internal problems, and if gdb_stderr is not set up.
256 Protect calls to target_terminal_ours, begin_line and query.
257
f1f58506
DE
2582014-08-28 Doug Evans <dje@google.com>
259
260 * symtab.c (in_prologue): Move definition to better spot.
261 (skip_prologue_using_sal): Ditto.
262
aab2f208
DE
2632014-08-28 Doug Evans <dje@google.com>
264
265 * symtab.c (find_function_start_sal): Move definition to better spot.
266
6b65d1b6
YQ
2672014-08-28 Yao Qi <yao@codesourcery.com>
268
269 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
270 found_stack_adjust in forward scan. Remove condition check
271 on found_stack_adjust which is always true. Indent the code.
272
a1b34d15
YQ
2732014-08-28 Yao Qi <yao@codesourcery.com>
274
275 * dwarf2read.c (dwarf_decode_lines): Update declaration.
276 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
277 (dwarf_decode_lines): Remove argument
278 want_line_info. Remove condition check on want_line_info.
279 Callers update.
280
d5962de5
DE
2812014-08-27 Doug Evans <dje@google.com>
282
283 * dwarf2read.c (dwarf_record_line): Fix typo.
284
9b139002
SDJ
2852014-08-27 Patrick Palka <patrick@parcs.ath.cx>
286
287 * target.h (struct target_ops::to_terminal_save_ours): Remove
288 declaration.
289 (target_terminal_save_ours): Remove macro.
290 * target-delegates.c: Regenerate.
291 * inf-child.c (inf_child_target): Don't set the nonexistent
292 field to_terminal_save_ours.
293 * inferior.h (child_terminal_save_ours): Remove declaration.
294 * terminal.h (gdb_save_tty_state): New declaration.
295 * inflow.c (child_terminal_save_ours): Rename to ...
296 (gdb_save_tty_state): ... this.
297 * tui/tui.c: Include terminal.h.
298 (tui_enable): Use gdb_save_tty_state instead of
299 target_terminal_save_ours.
300 (tui_disable): Likewise.
301
9debeba0
DE
3022014-08-25 Doug Evans <dje@google.com>
303
304 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
305 Pass NULL instead of 0 for context pointer.
306
428fc5fc
YQ
3072014-08-25 Yao Qi <yao@codesourcery.com>
308
309 * dwarf2read.c: Fix grammatical error.
310
cdc07690
YQ
3112014-08-24 Yao Qi <yao@codesourcery.com>
312
313 * dwarf2read.c (scan_partial_symbols): Update comments.
314 Rename argument 'need_pc' with 'set_addrmap'.
315 (add_partial_namespace): Rename argument 'need_pc' with
316 'set_addrmap'.
317 (add_partial_module): Likewise.
318 (add_partial_subprogram): Likewise. Update comments.
319 (dwarf2_name): Fix typo.
320
a05a36a5
DE
3212014-08-22 Doug Evans <dje@google.com>
322
323 PR 17276
324 * dwarf2read.c (dwarf_record_line_p): New function.
325 (dwarf_decode_lines_1): Ignore subsequent line number entries
326 for the same line if any entry had a non-zero discriminator.
327
252a6764
DE
3282014-08-22 Doug Evans <dje@google.com>
329
330 * buildsym.h (record_line_ftype): New typedef.
331 (record_line): Use it.
332 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
333 (dwarf_decode_lines_1): Call them.
334
510db052
YQ
3352014-08-22 Yao Qi <yao@codesourcery.com>
336
337 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
338 (ctf_end): Remove code.
339
22fd09ae
JK
3402014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
341
342 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
343 (linux_make_corefile_notes): call update_thread_list, protected against
344 exceptions.
345
656e8868
PA
3462014-08-21 Pedro Alves <palves@redhat.com>
347
348 * infcmd.c (attach_command): Remove comment.
349
de589d04
WN
3502014-08-21 Bin Cheng <bin.cheng@arm.com>
351
352 * aarch64-linux-nat.c (dr_changed_t): Change the type from
353 unsigned LONGEST to ULONGEST.
354
2a31c623
PA
3552014-08-20 Pedro Alves <palves@redhat.com>
356
357 * Makefile.in (check-read1): New rule.
358
d36430db
JB
3592014-08-20 Joel Brobecker <brobecker@adacore.com>
360
361 * value.c (value_from_contents_and_address): Strip resolved_type's
362 typedef layers before checking its TYPE_DATA_LOCATION.
363
000339af
PA
3642014-08-20 Pedro Alves <palves@redhat.com>
365
366 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
367
5f52445b
YQ
3682014-08-20 Yao Qi <yao@codesourcery.com>
369
370 * amd64-tdep.c (amd64_classify): Add a blank line after the
371 example. Move "*/" to a new line.
372 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
373 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
374 * dwarf2read.c (psymtab_include_file_name): Likewise.
375
9a0dc9e3
PA
3762014-08-19 Andrew Burgess <aburgess@broadcom.com>
377 Pedro Alves <palves@redhat.com>
378
379 PR symtab/14604
380 PR symtab/14605
381 * ada-lang.c (coerce_unspec_val_to_type): Use
382 value_contents_copy_raw.
383 * ada-valprint.c (val_print_packed_array_elements): Adjust.
384 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
385 * cp-valprint.c (cp_print_value_fields): Let the common printing
386 code handle optimized out values.
387 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
388 * d-valprint.c (dynamic_array_type): Use
389 value_bits_any_optimized_out.
390 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
391 check_any_valid fields.
392 (check_pieced_value_bits): Delete and inline ...
393 (check_pieced_synthetic_pointer): ... here.
394 (check_pieced_value_validity): Delete.
395 (check_pieced_value_invalid): Delete.
396 (pieced_value_funcs): Remove check_validity and check_any_valid
397 fields.
398 (read_pieced_value): Use mark_value_bits_optimized_out.
399 (write_pieced_value): Switch to use
400 mark_value_bytes_optimized_out.
401 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
402 of assuming the whole value is optimized out.
403 * findvar.c (read_frame_register_value): Remove special handling
404 of optimized out registers.
405 (value_from_register): Use mark_value_bytes_optimized_out.
406 * frame-unwind.c (frame_unwind_got_optimized): Use
407 mark_value_bytes_optimized_out.
408 * jv-valprint.c (java_value_print): Adjust.
409 (java_print_value_fields): Let the common printing code handle
410 optimized out values.
411 * mips-tdep.c (mips_print_register): Remove special handling of
412 optimized out registers.
413 * opencl-lang.c (lval_func_check_validity): Delete.
414 (lval_func_check_any_valid): Delete.
415 (opencl_value_funcs): Remove check_validity and check_any_valid
416 fields.
417 * p-valprint.c (pascal_object_print_value_fields): Let the common
418 printing code handle optimized out values.
419 * stack.c (read_frame_arg): Remove special handling of optimized
420 out values. Fetch both VAL and ENTRYVAL before comparing
421 contents. Adjust to value_available_contents_eq rename.
422 * valprint.c (valprint_check_validity)
423 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
424 (val_print_array_elements): Adjust.
425 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
426 (value_bits_any_optimized_out): New function.
427 (value_entirely_covered_by_range_vector): New function, factored
428 out from value_entirely_unavailable.
429 (value_entirely_unavailable): Reimplement.
430 (value_entirely_optimized_out): New function.
431 (insert_into_bit_range_vector): New function, factored out from
432 mark_value_bits_unavailable.
433 (mark_value_bits_unavailable): Reimplement.
434 (struct ranges_and_idx): New struct.
435 (find_first_range_overlap_and_match): New function, factored out
436 from value_available_contents_bits_eq.
437 (value_available_contents_bits_eq): Rename to ...
438 (value_contents_bits_eq): ... this. Check both unavailable
439 contents and optimized out contents.
440 (value_available_contents_eq): Rename to ...
441 (value_contents_eq): ... this.
442 (allocate_value_lazy): Remove reference to the old optimized_out
443 boolean.
444 (allocate_optimized_out_value): Use
445 mark_value_bytes_optimized_out.
446 (require_not_optimized_out): Adjust to check whether the
447 optimized_out vec is empty.
448 (ranges_copy_adjusted): New function, factored out from
449 value_contents_copy_raw.
450 (value_contents_copy_raw): Also copy the optimized out ranges.
451 Assert the destination ranges aren't optimized out.
452 (value_contents_copy): Update comment, remove call to
453 require_not_optimized_out.
454 (value_contents_equal): Adjust to check whether the optimized_out
455 vec is empty.
456 (set_value_optimized_out, value_optimized_out_const): Delete.
457 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
458 New functions.
459 (value_entirely_optimized_out, value_bits_valid): Delete.
460 (value_copy): Take a VEC copy of the 'optimized_out' field.
461 (value_primitive_field): Remove special handling of optimized out.
462 (value_fetch_lazy): Assert that lazy values have no unavailable
463 regions. Use value_bits_any_optimized_out. Remove some special
464 handling for optimized out values.
465 * value.h: Add intro comment about <optimized out> and
466 <unavailable>.
467 (struct lval_funcs): Remove check_validity and check_any_valid
468 fields.
469 (set_value_optimized_out, value_optimized_out_const): Remove.
470 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
471 New declarations.
472 (value_bits_any_optimized_out): New declaration.
473 (value_bits_valid): Delete declaration.
474 (value_available_contents_eq): Rename to ...
475 (value_contents_eq): ... this, and extend comments.
476
6694c411
JK
4772014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
478
479 Fix -fsanitize=address on unreadable inferior strings.
480 * valprint.c (val_print_string): Fix access before BUFFER.
481
89a1c21a
SM
4822014-08-19 Simon Marchi <simon.marchi@ericsson.com>
483
484 * target.c (target_struct_size): Remove.
485 (target_struct_allocsize): Remove.
486 (DEFAULT_ALLOCSIZE): Remove.
487 (target_ops_p): New typedef.
488 (DEF_VEC_P (target_ops_p)): New vector type.
489 (target_structs): Change type to VEC (target_ops_p).
490 (add_target_with_completer): Replace "push" code by VEC_safe_push.
491 (find_default_run_target): Rewrite for loop following changes to
492 target_structs.
493
cb417230
JB
4942014-08-19 Joel Brobecker <brobecker@adacore.com>
495
496 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
497 Adjust code accordingly. Adjust function description comment.
498
817e0957
YQ
4992014-08-19 Yao Qi <yao@codesourcery.com>
500
501 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
502 types.
503
2974be62
AM
5042014-08-19 Alan Modra <amodra@gmail.com>
505
506 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
507 * config.in: Regenerate.
508 * configure: Regenerate.
509
34abf635
GB
5102014-08-19 Tom Tromey <tromey@redhat.com>
511 Gary Benson <gbenson@redhat.com>
512
513 * common/common-debug.h: New file.
514 * common/common-debug.c: Likewise.
515 * debug.c: Likewise.
516 * Makefile.in (SFILES): Add common/common-debug.c.
517 (HFILES_NO_SRCDIR): Add common/common-debug.h.
518 (COMMON_OBS): Add common-debug.o and debug.o.
519 (common-debug.o): New rule.
520 * common/common-defs.h: Include common-debug.h.
521 * common/agent.c (debug_agent_printf): New function.
522 (DEBUG_AGENT): Redefine.
523 * nat/i386-dregs.c (debug_printf): Undefine.
524
f6e94d78
GB
5252014-08-19 Gary Benson <gbenson@redhat.com>
526
527 * common/common-defs.h: Include print-utils.h.
528 * utils.h: Do not include print-utils.h.
529
9239eeab
GB
5302014-08-19 Tom Tromey <tromey@redhat.com>
531 Gary Benson <gbenson@redhat.com>
532
533 * common/common-types.h: New file.
534 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
535 * common/common-defs.h: Include common-types.h.
536 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
537 (ULONGEST): Remove.
538
ef87c8bb
GB
5392014-08-19 Tom Tromey <tromey@redhat.com>
540 Gary Benson <gbenson@redhat.com>
541
542 * common/errors.h: New file.
543 * common/errors.c: Likewise.
544 * Makefile.in (SFILES): Add common/errors.c.
545 (HFILES_NO_SRCDIR): Add common/errors.h.
546 (COMMON_OBS): Add errors.o.
547 (errors.o): New rule.
548 * common/common-defs.h: Include errors.h.
549 * utils.h (perror_with_name, error, verror, warning, vwarning):
550 Don't declare.
551 * common/common-utils.h: (malloc_failure, internal_error):
552 Likewise.
553
196a707b
GB
5542014-08-19 Gary Benson <gbenson@redhat.com>
555
556 * utils.c (internal_vproblem): Always print the message.
557
ded4fc8f
DE
5582014-08-18 Doug Evans <dje@google.com>
559
560 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
561
950c97d8
JB
5622014-08-18 Joel Brobecker <brobecker@adacore.com>
563
564 * ada-typeprint.c (type_is_full_subrange_of_target_type):
565 Return 0 if TYPE is dynamic.
566 (print_range): Add handling of dynamic ranges.
567
3cdcd0ce
JB
5682014-08-18 Keven Boell <keven.boell@intel.com>
569 Joel Brobecker <brobecker@adacore.com>
570
571 * gdbtypes.h (struct main_type): Add field "data_location".
572 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
573 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
574 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
575 a dynamic data location.
576 (resolve_dynamic_type): Add DW_AT_data_location handling.
577 (copy_recursive, copy_type): Copy the data_location information
578 when present.
579 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
580 * value.c (value_from_contents_and_address): Add
581 DW_AT_data_location handling.
582
08412b07
JB
5832014-08-18 Keven Boell <keven.boell@intel.com>
584 Joel Brobecker <brobecker@adacore.com>
585
586 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
587 field "get_object_address".
588 * dwarf2expr.c (execute_stack_op): Add handling for
589 DW_OP_push_object_address.
590 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
591 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
592 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
593 (dwarf_expr_get_obj_addr): New function.
594 (dwarf_expr_ctx_funcs): Add get_object_address field.
595 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
596 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
597 (dwarf2_evaluate_property): Add parameter "address". Use it.
598 (needs_get_obj_addr): New function.
599 (needs_frame_ctx_funcs): Add get_object_address field.
600 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
601 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
602 (resolve_dynamic_array): Likewise.
603
84754697
JB
6042014-08-18 Joel Brobecker <brobecker@adacore.com>
605
606 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
607 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
608 fixed value for records and unions for which some GNAT encodings
609 are present.
610
da5c522f
JB
6112014-08-18 Joel Brobecker <brobecker@adacore.com>
612
613 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
614 rewrite to avoid "else if" and "else" constructs. Should be
615 a no-op in practice.
616
0d72a7c3
JB
6172014-08-18 Joel Brobecker <brobecker@adacore.com>
618
619 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
620 of lexical block.
621
e66d4446
SC
6222014-08-15 Siva Chandra Reddy <sivachandra@google.com>
623
624 PR c++/17132
625 * eval.c: Update all calls to find_overload_match.
626 * valarith.c: Likewise.
627 (value_user_defined_cpp_op, value_user_defined_op): New
628 argument NOSIDE. Update all callers.
629 * valops.c (find_overload_match): New argument NOSIDE.
630 * value.h (find_overload_match): Update signature.
631
940df408
SC
6322014-08-15 Siva Chandra Reddy <sivachandra@google.com>
633
634 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
635 'items' methods instead of 'iteritems' method on dictionaries.
636
699ca60a
DE
6372014-08-15 Doug Evans <dje@google.com>
638
639 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
640 closer to use.
641
37780ee5
DE
6422014-08-15 Doug Evans <dje@google.com>
643
644 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
645
0ad93d4f
DE
6462014-08-15 Doug Evans <dje@google.com>
647
648 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
649
20d8c372
DE
6502014-08-15 Doug Evans <dje@google.com>
651
652 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
653 unused.
654
cb039ba4
EZ
6552014-08-15 Eli Zaretskii <eliz@gnu.org>
656
657 * dcache.h: Include target.h, to avoid compile time warnings.
658
eb7a547a
JB
6592014-08-15 Joel Brobecker <brobecker@adacore.com>
660
661 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
662 frame_info" partial declaration.
663 * gdbarch.h: Regenerate.
664
783cecc8
YQ
6652014-08-15 Yao Qi <yao@codesourcery.com>
666
667 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
668 Add parameter 'decode_for_pst_p'. Callers update.
669
65c749e7
YQ
6702014-08-13 Yao Qi <yao@codesourcery.com>
671
672 PR build/17104
673 * configure.ac: Use local variable 'pos'.
674 * configure: Regenerated.
675
d769e349
DE
6762014-08-11 Doug Evans <dje@google.com>
677
678 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
679 message, it is redundant with "Reading symbols from ..." message.
680
24f1235e
DE
6812014-08-10 Doug Evans <xdje42@gmail.com>
682
683 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
684
dcd2e6ef
YQ
6852014-08-09 Yao Qi <yao@codesourcery.com>
686
687 PR remote/9053
688 * remote.c (remote_xfer_partial): Remove dead code.
689
070bdf0b
AA
6902014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
691
692 * ia64-linux-tdep.c: Include "regset.h".
693 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
694 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
695 (ia64_linux_supply_fpregset): New function.
696 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
697 (ia64_linux_regset_from_core_section): New function.
698 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
699 method.
700
08f9f542
AA
7012014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
702
703 * m68klinux-tdep.c: Include "regset.h".
704 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
705 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
706 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
707 (m68k_linux_regset_from_core_section): New function.
708 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
709 method.
710
8f1cee41
AA
7112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
712
713 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
714 function. Move logic to...
715 (tilegx_linux_regmap): ... this new register map.
716 (tilegx_linux_regset): Refer to register map, replace supply
717 method by regcache_supply_regset, and add collect method.
718 * tilegx-tdep.h (enum tilegx_regnum): New enum value
719 TILEGX_FIRST_EASY_REGNUM.
720
c5741217
AA
7212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
722
723 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
724 that calls regcache_supply_regset and handles the EPC register
725 separately. Move main logic to...
726 (score7_linux_gregmap): ... this new register map.
727 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
728 (score7_linux_gregset): Refer to register map. Add collect method.
729 (score7_linux_regset_from_core_section): Replace
730 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
731 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
732 (struct regset): Delete unused forward declaraction.
733 (struct pt_regs): Delete structure definition.
734 (elf_gregset_t): Delete typedef.
735
81580573
AA
7362014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
737
738 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
739 (nios2_core_regset): Add collect method.
740
ba199d7d
AA
7412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
742
743 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
744 platform-independent and don't write to read-only input buffer.
745 (m32r_linux_collect_gregset): New function.
746 (m32r_linux_gregset): Add collect method.
747
0006a9da
AA
7482014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
749
750 * hppa-linux-tdep.c (greg_map): Rename to...
751 (hppa_linux_gregmap): ... this. Also convert to
752 regcache_map_entry format.
753 (hppa_linux_supply_regset): Delete function.
754 (hppa_linux_supply_fpregset): Delete function. Move logic to...
755 (hppa_linux_fpregmap): ... this new register map.
756 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
757 register map, replace supply method by regcache_supply_regset, and
758 add collect method regcache_collect_regset.
759
901e1b23
AA
7602014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
761
762 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
763 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
764 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
765 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
766 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
767 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
768 (frv_linux_supply_gregset): Replace main logic by call to
769 regcache_supply_regset, but keep clearing gr32-gr63.
770 (frv_linux_supply_fpregset): Delete function.
771 (frv_linux_gregset): Refer to appropriate register map and add
772 regcache_collect_regset as the collect method.
773 (frv_linux_fpregset): Likewise. Also exchange the supply method
774 by regcache_supply_regset.
775
1d6e7555
AA
7762014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
777
778 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
779 by call to alpha_supply_int_regs.
780 (alpha_linux_collect_gregset): New function.
781 (alpha_linux_supply_fpregset): Replace logic by call to
782 alpha_supply_fp_regs.
783 (alpha_linux_collect_fpregset): New function.
784 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
785
d4d793bf
AA
7862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
787
788 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
789 by call to regcache_collect_regset.
790 (supply_gregset, supply_fpregset): Call regcache_supply_regset
791 instead of aarch64_linux_supply_gregset/_fpregset.
792 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
793 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
794 header file instead.
795 (aarch64_linux_supply_gregset, supply_gregset_from_core)
796 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
797 functions. Move logic to ...
798 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
799 register maps.
800 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
801 refer to new register maps, replace *_regset_from_core by
802 regcache_supply_regset, and also use regcache_collect_regset.
803 * aarch64-linux-tdep.h: Include "regset.h".
804 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
805 Delete prototypes.
806 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
807 macros, moved from C source file.
808 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
809 variable declarations.
810
99b7da5d
AA
8112014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
812
813 * s390-linux-nat.c: Include "regset.h".
814 (regmap_gregset): Delete macro.
815 (s390_64_regmap_gregset): New register map for
816 regcache_supply/_collect_regset.
817 (s390_64_gregset): New regset.
818 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
819 (regmap_fpregset): Delete macro.
820 (s390_native_supply, s390_native_collect): Delete functions.
821 (supply_gregset, fill_gregset): Replace s390-specific regmap
822 handling by a call to regcache_supply/_collect_regset.
823 (supply_fpregset, fill_fpregset): Call regcache_supply/
824 _collect_regset instead of s390_native_supply/_collect.
825 (fetch_regset, store_regset): Likewise. Also change the last
826 parameter to a regset instead of a regmap.
827 (s390_linux_fetch_inferior_registers)
828 (390_linux_store_inferior_registers): Adjust last parameter in
829 calls to fetch_regset and store_regset.
830 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
831 (s390_gregmap): ... this. Also make static const and convert to
832 regcache_map_entry format.
833 (s390x_regmap_gregset): Delete.
834 (s390_regmap_fpregset): Rename to...
835 (s390_fpregmap): ... this. Make static const and convert to
836 regcache_map_entry format.
837 (s390_regmap_upper, s390_regmap_last_break)
838 (s390x_regmap_last_break, s390_regmap_system_call)
839 (s390_regmap_tdb): Likewise.
840 (s390_supply_regset, s390_collect_regset): Remove functions.
841 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
842 s390_supply_regset.
843 (s390_gregset, s390_fpregset, s390_upper_regset)
844 (s390_last_break_regset, s390x_last_break_regset)
845 (s390_system_call_regset, s390_tdb_regset): Make global and
846 replace s390_supply/_collect_regset by regcache_supply/
847 _collect_regset.
848 (s390x_gregset): Delete.
849 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
850 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
851 (s390_regmap_fpregset, s390_regmap_last_break)
852 (s390x_regmap_last_break, s390_regmap_system_call)
853 (s390_regmap_tdb): Delete global variable declarations.
854 (s390_gregset, s390_fpregset, s390_last_break_regset)
855 (s390x_last_break_regset, s390_system_call_regset)
856 (s390_tdb_regset): New global variable declarations.
857
0b309272
AA
8582014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
859
860 * regcache.c: Include "regset.h".
861 (regcache_transfer_regset): New local function.
862 (regcache_supply_regset, regcache_collect_regset): New functions.
863 * regcache.h (struct regcache_map_entry): New structure.
864 (REGCACHE_MAP_SKIP): New enum value.
865 (regcache_supply_regset, regcache_collect_regset): New prototypes.
866
7fefa8d7
AA
8672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
868
869 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
870 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
871 (ppc_linux_collect_gregset ): Likewise.
872 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
873 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
874 (ppc_collect_vrregset): Likewise.
875 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
876 Likewise.
877
96c4f946
YQ
8782014-08-07 Yao Qi <yao@codesourcery.com>
879
880 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
881 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
882 * remote.c (remote_read_bytes): Likewise.
883
fffbe6a8
YQ
8842014-08-07 Yao Qi <yao@codesourcery.com>
885
886 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
887
5ee8a82c
YQ
8882014-08-07 Yao Qi <yao@codesourcery.com>
889
890 PR remote/17230
891 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
892 TARGET_XFER_OK instead of 0.
893
bb974a24
GB
8942014-08-07 Gary Benson <gbenson@redhat.com>
895
896 * common/common-defs.h: Include errno.h.
897 * defs.h: Do not include errno.h.
898 * ada-typeprint.c: Likewise.
899 * c-typeprint.c: Likewise.
900 * core-regset.c: Likewise.
901 * corefile.c: Likewise.
902 * corelow.c: Likewise.
903 * event-loop.c: Likewise.
904 * f-typeprint.c: Likewise.
905 * gnu-nat.c: Likewise.
906 * go32-nat.c: Likewise.
907 * i386gnu-nat.c: Likewise.
908 * m2-typeprint.c: Likewise.
909 * nat/linux-btrace.c: Likewise.
910 * p-typeprint.c: Likewise.
911 * procfs.c: Likewise.
912 * remote-sim.c: Likewise.
913 * rs6000-nat.c: Likewise.
914 * target.c: Likewise.
915 * typeprint.c: Likewise.
916 * ui-file.c: Likewise.
917 * valops.c: Likewise.
918 * valprint.c: Likewise.
919
6d3d12eb
GB
9202014-08-07 Gary Benson <gbenson@redhat.com>
921
922 * common/common-defs.h: Include string.h.
923 * aarch64-tdep.c: Do not include string.h.
924 * ada-exp.y: Likewise.
925 * ada-lang.c: Likewise.
926 * ada-lex.l: Likewise.
927 * ada-typeprint.c: Likewise.
928 * ada-valprint.c: Likewise.
929 * aix-thread.c: Likewise.
930 * alpha-linux-tdep.c: Likewise.
931 * alpha-mdebug-tdep.c: Likewise.
932 * alpha-nat.c: Likewise.
933 * alpha-osf1-tdep.c: Likewise.
934 * alpha-tdep.c: Likewise.
935 * alphanbsd-tdep.c: Likewise.
936 * amd64-dicos-tdep.c: Likewise.
937 * amd64-linux-tdep.c: Likewise.
938 * amd64-nat.c: Likewise.
939 * amd64-sol2-tdep.c: Likewise.
940 * amd64fbsd-tdep.c: Likewise.
941 * amd64obsd-tdep.c: Likewise.
942 * arch-utils.c: Likewise.
943 * arm-linux-nat.c: Likewise.
944 * arm-linux-tdep.c: Likewise.
945 * arm-tdep.c: Likewise.
946 * arm-wince-tdep.c: Likewise.
947 * armbsd-tdep.c: Likewise.
948 * armnbsd-nat.c: Likewise.
949 * armnbsd-tdep.c: Likewise.
950 * armobsd-tdep.c: Likewise.
951 * avr-tdep.c: Likewise.
952 * ax-gdb.c: Likewise.
953 * ax-general.c: Likewise.
954 * bcache.c: Likewise.
955 * bfin-tdep.c: Likewise.
956 * breakpoint.c: Likewise.
957 * build-id.c: Likewise.
958 * buildsym.c: Likewise.
959 * c-exp.y: Likewise.
960 * c-lang.c: Likewise.
961 * c-typeprint.c: Likewise.
962 * c-valprint.c: Likewise.
963 * charset.c: Likewise.
964 * cli-out.c: Likewise.
965 * cli/cli-cmds.c: Likewise.
966 * cli/cli-decode.c: Likewise.
967 * cli/cli-dump.c: Likewise.
968 * cli/cli-interp.c: Likewise.
969 * cli/cli-logging.c: Likewise.
970 * cli/cli-script.c: Likewise.
971 * cli/cli-setshow.c: Likewise.
972 * cli/cli-utils.c: Likewise.
973 * coffread.c: Likewise.
974 * common/agent.c: Likewise.
975 * common/buffer.c: Likewise.
976 * common/buffer.h: Likewise.
977 * common/common-utils.c: Likewise.
978 * common/filestuff.c: Likewise.
979 * common/filestuff.c: Likewise.
980 * common/format.c: Likewise.
981 * common/print-utils.c: Likewise.
982 * common/rsp-low.c: Likewise.
983 * common/signals.c: Likewise.
984 * common/vec.h: Likewise.
985 * common/xml-utils.c: Likewise.
986 * core-regset.c: Likewise.
987 * corefile.c: Likewise.
988 * corelow.c: Likewise.
989 * cp-abi.c: Likewise.
990 * cp-name-parser.y: Likewise.
991 * cp-support.c: Likewise.
992 * cp-valprint.c: Likewise.
993 * cris-tdep.c: Likewise.
994 * d-exp.y: Likewise.
995 * darwin-nat.c: Likewise.
996 * dbxread.c: Likewise.
997 * dcache.c: Likewise.
998 * demangle.c: Likewise.
999 * dicos-tdep.c: Likewise.
1000 * disasm.c: Likewise.
1001 * doublest.c: Likewise.
1002 * dsrec.c: Likewise.
1003 * dummy-frame.c: Likewise.
1004 * dwarf2-frame.c: Likewise.
1005 * dwarf2loc.c: Likewise.
1006 * dwarf2read.c: Likewise.
1007 * elfread.c: Likewise.
1008 * environ.c: Likewise.
1009 * eval.c: Likewise.
1010 * event-loop.c: Likewise.
1011 * exceptions.c: Likewise.
1012 * exec.c: Likewise.
1013 * expprint.c: Likewise.
1014 * f-exp.y: Likewise.
1015 * f-lang.c: Likewise.
1016 * f-typeprint.c: Likewise.
1017 * f-valprint.c: Likewise.
1018 * fbsd-nat.c: Likewise.
1019 * findcmd.c: Likewise.
1020 * findvar.c: Likewise.
1021 * fork-child.c: Likewise.
1022 * frame.c: Likewise.
1023 * frv-linux-tdep.c: Likewise.
1024 * frv-tdep.c: Likewise.
1025 * gdb.c: Likewise.
1026 * gdb_bfd.c: Likewise.
1027 * gdbarch.c: Likewise.
1028 * gdbarch.sh: Likewise.
1029 * gdbtypes.c: Likewise.
1030 * gnu-nat.c: Likewise.
1031 * gnu-v2-abi.c: Likewise.
1032 * gnu-v3-abi.c: Likewise.
1033 * go-exp.y: Likewise.
1034 * go-lang.c: Likewise.
1035 * go32-nat.c: Likewise.
1036 * guile/guile.c: Likewise.
1037 * guile/scm-auto-load.c: Likewise.
1038 * hppa-hpux-tdep.c: Likewise.
1039 * hppa-linux-nat.c: Likewise.
1040 * hppanbsd-tdep.c: Likewise.
1041 * hppaobsd-tdep.c: Likewise.
1042 * i386-cygwin-tdep.c: Likewise.
1043 * i386-dicos-tdep.c: Likewise.
1044 * i386-linux-tdep.c: Likewise.
1045 * i386-nto-tdep.c: Likewise.
1046 * i386-sol2-tdep.c: Likewise.
1047 * i386-tdep.c: Likewise.
1048 * i386bsd-tdep.c: Likewise.
1049 * i386gnu-nat.c: Likewise.
1050 * i386nbsd-tdep.c: Likewise.
1051 * i386obsd-tdep.c: Likewise.
1052 * i387-tdep.c: Likewise.
1053 * ia64-libunwind-tdep.c: Likewise.
1054 * ia64-linux-nat.c: Likewise.
1055 * inf-child.c: Likewise.
1056 * inf-ptrace.c: Likewise.
1057 * inf-ttrace.c: Likewise.
1058 * infcall.c: Likewise.
1059 * infcmd.c: Likewise.
1060 * inflow.c: Likewise.
1061 * infrun.c: Likewise.
1062 * interps.c: Likewise.
1063 * iq2000-tdep.c: Likewise.
1064 * irix5-nat.c: Likewise.
1065 * jv-exp.y: Likewise.
1066 * jv-lang.c: Likewise.
1067 * jv-typeprint.c: Likewise.
1068 * jv-valprint.c: Likewise.
1069 * language.c: Likewise.
1070 * linux-fork.c: Likewise.
1071 * linux-nat.c: Likewise.
1072 * lm32-tdep.c: Likewise.
1073 * m2-exp.y: Likewise.
1074 * m2-typeprint.c: Likewise.
1075 * m32c-tdep.c: Likewise.
1076 * m32r-linux-nat.c: Likewise.
1077 * m32r-linux-tdep.c: Likewise.
1078 * m32r-rom.c: Likewise.
1079 * m32r-tdep.c: Likewise.
1080 * m68hc11-tdep.c: Likewise.
1081 * m68k-tdep.c: Likewise.
1082 * m68kbsd-tdep.c: Likewise.
1083 * m68klinux-nat.c: Likewise.
1084 * m68klinux-tdep.c: Likewise.
1085 * m88k-tdep.c: Likewise.
1086 * machoread.c: Likewise.
1087 * macrocmd.c: Likewise.
1088 * main.c: Likewise.
1089 * mdebugread.c: Likewise.
1090 * mem-break.c: Likewise.
1091 * memattr.c: Likewise.
1092 * memory-map.c: Likewise.
1093 * mep-tdep.c: Likewise.
1094 * mi/mi-cmd-break.c: Likewise.
1095 * mi/mi-cmd-disas.c: Likewise.
1096 * mi/mi-cmd-env.c: Likewise.
1097 * mi/mi-cmd-stack.c: Likewise.
1098 * mi/mi-cmd-var.c: Likewise.
1099 * mi/mi-cmds.c: Likewise.
1100 * mi/mi-console.c: Likewise.
1101 * mi/mi-getopt.c: Likewise.
1102 * mi/mi-interp.c: Likewise.
1103 * mi/mi-main.c: Likewise.
1104 * mi/mi-parse.c: Likewise.
1105 * microblaze-rom.c: Likewise.
1106 * microblaze-tdep.c: Likewise.
1107 * mingw-hdep.c: Likewise.
1108 * minidebug.c: Likewise.
1109 * minsyms.c: Likewise.
1110 * mips-irix-tdep.c: Likewise.
1111 * mips-linux-tdep.c: Likewise.
1112 * mips-tdep.c: Likewise.
1113 * mips64obsd-tdep.c: Likewise.
1114 * mipsnbsd-tdep.c: Likewise.
1115 * mipsread.c: Likewise.
1116 * mn10300-linux-tdep.c: Likewise.
1117 * mn10300-tdep.c: Likewise.
1118 * monitor.c: Likewise.
1119 * moxie-tdep.c: Likewise.
1120 * mt-tdep.c: Likewise.
1121 * nat/linux-btrace.c: Likewise.
1122 * nat/linux-osdata.c: Likewise.
1123 * nat/linux-procfs.c: Likewise.
1124 * nat/linux-ptrace.c: Likewise.
1125 * nat/linux-waitpid.c: Likewise.
1126 * nbsd-tdep.c: Likewise.
1127 * nios2-linux-tdep.c: Likewise.
1128 * nto-procfs.c: Likewise.
1129 * nto-tdep.c: Likewise.
1130 * objc-lang.c: Likewise.
1131 * objfiles.c: Likewise.
1132 * opencl-lang.c: Likewise.
1133 * osabi.c: Likewise.
1134 * osdata.c: Likewise.
1135 * p-exp.y: Likewise.
1136 * p-lang.c: Likewise.
1137 * p-typeprint.c: Likewise.
1138 * parse.c: Likewise.
1139 * posix-hdep.c: Likewise.
1140 * ppc-linux-nat.c: Likewise.
1141 * ppc-sysv-tdep.c: Likewise.
1142 * ppcfbsd-tdep.c: Likewise.
1143 * ppcnbsd-tdep.c: Likewise.
1144 * ppcobsd-tdep.c: Likewise.
1145 * printcmd.c: Likewise.
1146 * procfs.c: Likewise.
1147 * prologue-value.c: Likewise.
1148 * python/py-auto-load.c: Likewise.
1149 * python/py-gdb-readline.c: Likewise.
1150 * ravenscar-thread.c: Likewise.
1151 * regcache.c: Likewise.
1152 * registry.c: Likewise.
1153 * remote-fileio.c: Likewise.
1154 * remote-m32r-sdi.c: Likewise.
1155 * remote-mips.c: Likewise.
1156 * remote-notif.c: Likewise.
1157 * remote-sim.c: Likewise.
1158 * remote.c: Likewise.
1159 * reverse.c: Likewise.
1160 * rs6000-aix-tdep.c: Likewise.
1161 * ser-base.c: Likewise.
1162 * ser-go32.c: Likewise.
1163 * ser-mingw.c: Likewise.
1164 * ser-pipe.c: Likewise.
1165 * ser-tcp.c: Likewise.
1166 * ser-unix.c: Likewise.
1167 * serial.c: Likewise.
1168 * sh-tdep.c: Likewise.
1169 * sh64-tdep.c: Likewise.
1170 * shnbsd-tdep.c: Likewise.
1171 * skip.c: Likewise.
1172 * sol-thread.c: Likewise.
1173 * solib-dsbt.c: Likewise.
1174 * solib-frv.c: Likewise.
1175 * solib-osf.c: Likewise.
1176 * solib-som.c: Likewise.
1177 * solib-spu.c: Likewise.
1178 * solib-target.c: Likewise.
1179 * solib.c: Likewise.
1180 * somread.c: Likewise.
1181 * source.c: Likewise.
1182 * sparc-nat.c: Likewise.
1183 * sparc-sol2-tdep.c: Likewise.
1184 * sparc-tdep.c: Likewise.
1185 * sparc64-tdep.c: Likewise.
1186 * sparc64fbsd-tdep.c: Likewise.
1187 * sparc64nbsd-tdep.c: Likewise.
1188 * sparcnbsd-tdep.c: Likewise.
1189 * spu-linux-nat.c: Likewise.
1190 * spu-multiarch.c: Likewise.
1191 * spu-tdep.c: Likewise.
1192 * stabsread.c: Likewise.
1193 * stack.c: Likewise.
1194 * std-regs.c: Likewise.
1195 * symfile.c: Likewise.
1196 * symmisc.c: Likewise.
1197 * symtab.c: Likewise.
1198 * target.c: Likewise.
1199 * thread.c: Likewise.
1200 * tilegx-linux-nat.c: Likewise.
1201 * tilegx-tdep.c: Likewise.
1202 * top.c: Likewise.
1203 * tracepoint.c: Likewise.
1204 * tui/tui-command.c: Likewise.
1205 * tui/tui-data.c: Likewise.
1206 * tui/tui-disasm.c: Likewise.
1207 * tui/tui-file.c: Likewise.
1208 * tui/tui-layout.c: Likewise.
1209 * tui/tui-out.c: Likewise.
1210 * tui/tui-regs.c: Likewise.
1211 * tui/tui-source.c: Likewise.
1212 * tui/tui-stack.c: Likewise.
1213 * tui/tui-win.c: Likewise.
1214 * tui/tui-windata.c: Likewise.
1215 * tui/tui-winsource.c: Likewise.
1216 * typeprint.c: Likewise.
1217 * ui-file.c: Likewise.
1218 * ui-out.c: Likewise.
1219 * user-regs.c: Likewise.
1220 * utils.c: Likewise.
1221 * v850-tdep.c: Likewise.
1222 * valarith.c: Likewise.
1223 * valops.c: Likewise.
1224 * valprint.c: Likewise.
1225 * value.c: Likewise.
1226 * varobj.c: Likewise.
1227 * vax-tdep.c: Likewise.
1228 * vaxnbsd-tdep.c: Likewise.
1229 * vaxobsd-tdep.c: Likewise.
1230 * windows-nat.c: Likewise.
1231 * xcoffread.c: Likewise.
1232 * xml-support.c: Likewise.
1233 * xstormy16-tdep.c: Likewise.
1234 * xtensa-linux-nat.c: Likewise.
1235
dccbb609
GB
12362014-08-07 Gary Benson <gbenson@redhat.com>
1237
1238 * common/common-defs.h: Include gdb_assert.h.
1239 * aarch64-tdep.c: Do not include gdb_assert.h.
1240 * addrmap.c: Likewise.
1241 * aix-thread.c: Likewise.
1242 * alpha-linux-tdep.c: Likewise.
1243 * alpha-mdebug-tdep.c: Likewise.
1244 * alphanbsd-tdep.c: Likewise.
1245 * amd64-nat.c: Likewise.
1246 * amd64-tdep.c: Likewise.
1247 * amd64bsd-nat.c: Likewise.
1248 * amd64fbsd-nat.c: Likewise.
1249 * amd64fbsd-tdep.c: Likewise.
1250 * amd64nbsd-nat.c: Likewise.
1251 * amd64nbsd-tdep.c: Likewise.
1252 * amd64obsd-nat.c: Likewise.
1253 * amd64obsd-tdep.c: Likewise.
1254 * arch-utils.c: Likewise.
1255 * arm-tdep.c: Likewise.
1256 * armbsd-tdep.c: Likewise.
1257 * auxv.c: Likewise.
1258 * bcache.c: Likewise.
1259 * bfin-tdep.c: Likewise.
1260 * blockframe.c: Likewise.
1261 * breakpoint.c: Likewise.
1262 * bsd-kvm.c: Likewise.
1263 * bsd-uthread.c: Likewise.
1264 * buildsym.c: Likewise.
1265 * c-exp.y: Likewise.
1266 * c-lang.c: Likewise.
1267 * charset.c: Likewise.
1268 * cleanups.c: Likewise.
1269 * cli-out.c: Likewise.
1270 * cli/cli-decode.c: Likewise.
1271 * cli/cli-dump.c: Likewise.
1272 * cli/cli-logging.c: Likewise.
1273 * cli/cli-script.c: Likewise.
1274 * cli/cli-utils.c: Likewise.
1275 * coffread.c: Likewise.
1276 * common/common-utils.c: Likewise.
1277 * common/queue.h: Likewise.
1278 * common/signals.c: Likewise.
1279 * common/vec.h: Likewise.
1280 * complaints.c: Likewise.
1281 * completer.c: Likewise.
1282 * corelow.c: Likewise.
1283 * cp-abi.c: Likewise.
1284 * cp-name-parser.y: Likewise.
1285 * cp-namespace.c: Likewise.
1286 * cp-support.c: Likewise.
1287 * cris-tdep.c: Likewise.
1288 * dbxread.c: Likewise.
1289 * dictionary.c: Likewise.
1290 * doublest.c: Likewise.
1291 * dsrec.c: Likewise.
1292 * dummy-frame.c: Likewise.
1293 * dwarf2-frame-tailcall.c: Likewise.
1294 * dwarf2-frame.c: Likewise.
1295 * dwarf2expr.c: Likewise.
1296 * dwarf2loc.c: Likewise.
1297 * dwarf2read.c: Likewise.
1298 * eval.c: Likewise.
1299 * event-loop.c: Likewise.
1300 * exceptions.c: Likewise.
1301 * expprint.c: Likewise.
1302 * f-valprint.c: Likewise.
1303 * fbsd-nat.c: Likewise.
1304 * findvar.c: Likewise.
1305 * frame-unwind.c: Likewise.
1306 * frame.c: Likewise.
1307 * frv-tdep.c: Likewise.
1308 * gcore.c: Likewise.
1309 * gdb-dlfcn.c: Likewise.
1310 * gdb_bfd.c: Likewise.
1311 * gdbarch.c: Likewise.
1312 * gdbarch.sh: Likewise.
1313 * gdbtypes.c: Likewise.
1314 * gnu-nat.c: Likewise.
1315 * gnu-v3-abi.c: Likewise.
1316 * go-lang.c: Likewise.
1317 * guile/scm-exception.c: Likewise.
1318 * guile/scm-gsmob.c: Likewise.
1319 * guile/scm-lazy-string.c: Likewise.
1320 * guile/scm-math.c: Likewise.
1321 * guile/scm-pretty-print.c: Likewise.
1322 * guile/scm-safe-call.c: Likewise.
1323 * guile/scm-utils.c: Likewise.
1324 * guile/scm-value.c: Likewise.
1325 * h8300-tdep.c: Likewise.
1326 * hppa-hpux-nat.c: Likewise.
1327 * hppa-tdep.c: Likewise.
1328 * hppanbsd-tdep.c: Likewise.
1329 * hppaobsd-tdep.c: Likewise.
1330 * i386-darwin-nat.c: Likewise.
1331 * i386-darwin-tdep.c: Likewise.
1332 * i386-nto-tdep.c: Likewise.
1333 * i386-tdep.c: Likewise.
1334 * i386bsd-nat.c: Likewise.
1335 * i386fbsd-tdep.c: Likewise.
1336 * i386gnu-nat.c: Likewise.
1337 * i386nbsd-tdep.c: Likewise.
1338 * i386obsd-tdep.c: Likewise.
1339 * i387-tdep.c: Likewise.
1340 * ia64-libunwind-tdep.c: Likewise.
1341 * ia64-tdep.c: Likewise.
1342 * inf-ptrace.c: Likewise.
1343 * inf-ttrace.c: Likewise.
1344 * infcall.c: Likewise.
1345 * infcmd.c: Likewise.
1346 * infrun.c: Likewise.
1347 * inline-frame.c: Likewise.
1348 * interps.c: Likewise.
1349 * jv-lang.c: Likewise.
1350 * jv-typeprint.c: Likewise.
1351 * linux-fork.c: Likewise.
1352 * linux-nat.c: Likewise.
1353 * linux-thread-db.c: Likewise.
1354 * m32c-tdep.c: Likewise.
1355 * m32r-linux-nat.c: Likewise.
1356 * m32r-tdep.c: Likewise.
1357 * m68k-tdep.c: Likewise.
1358 * m68kbsd-nat.c: Likewise.
1359 * m68kbsd-tdep.c: Likewise.
1360 * m88k-tdep.c: Likewise.
1361 * machoread.c: Likewise.
1362 * macroexp.c: Likewise.
1363 * macrotab.c: Likewise.
1364 * maint.c: Likewise.
1365 * mdebugread.c: Likewise.
1366 * memory-map.c: Likewise.
1367 * mep-tdep.c: Likewise.
1368 * mi/mi-common.c: Likewise.
1369 * microblaze-tdep.c: Likewise.
1370 * mingw-hdep.c: Likewise.
1371 * mips-linux-nat.c: Likewise.
1372 * mips-linux-tdep.c: Likewise.
1373 * mips-tdep.c: Likewise.
1374 * mips64obsd-tdep.c: Likewise.
1375 * mipsnbsd-tdep.c: Likewise.
1376 * mn10300-linux-tdep.c: Likewise.
1377 * mn10300-tdep.c: Likewise.
1378 * moxie-tdep.c: Likewise.
1379 * mt-tdep.c: Likewise.
1380 * nat/linux-btrace.c: Likewise.
1381 * nat/linux-osdata.c: Likewise.
1382 * nat/linux-ptrace.c: Likewise.
1383 * nat/mips-linux-watch.c: Likewise.
1384 * nios2-linux-tdep.c: Likewise.
1385 * nios2-tdep.c: Likewise.
1386 * objc-lang.c: Likewise.
1387 * objfiles.c: Likewise.
1388 * obsd-nat.c: Likewise.
1389 * opencl-lang.c: Likewise.
1390 * osabi.c: Likewise.
1391 * parse.c: Likewise.
1392 * ppc-linux-nat.c: Likewise.
1393 * ppc-sysv-tdep.c: Likewise.
1394 * ppcfbsd-nat.c: Likewise.
1395 * ppcfbsd-tdep.c: Likewise.
1396 * ppcnbsd-nat.c: Likewise.
1397 * ppcnbsd-tdep.c: Likewise.
1398 * ppcobsd-nat.c: Likewise.
1399 * ppcobsd-tdep.c: Likewise.
1400 * printcmd.c: Likewise.
1401 * procfs.c: Likewise.
1402 * prologue-value.c: Likewise.
1403 * psymtab.c: Likewise.
1404 * python/py-lazy-string.c: Likewise.
1405 * python/py-value.c: Likewise.
1406 * regcache.c: Likewise.
1407 * reggroups.c: Likewise.
1408 * registry.c: Likewise.
1409 * remote-sim.c: Likewise.
1410 * remote.c: Likewise.
1411 * rs6000-aix-tdep.c: Likewise.
1412 * rs6000-tdep.c: Likewise.
1413 * s390-linux-tdep.c: Likewise.
1414 * score-tdep.c: Likewise.
1415 * ser-base.c: Likewise.
1416 * ser-mingw.c: Likewise.
1417 * sh-tdep.c: Likewise.
1418 * sh64-tdep.c: Likewise.
1419 * solib-darwin.c: Likewise.
1420 * solib-spu.c: Likewise.
1421 * solib-svr4.c: Likewise.
1422 * source.c: Likewise.
1423 * sparc-nat.c: Likewise.
1424 * sparc-sol2-tdep.c: Likewise.
1425 * sparc-tdep.c: Likewise.
1426 * sparc64-sol2-tdep.c: Likewise.
1427 * sparc64-tdep.c: Likewise.
1428 * sparc64fbsd-tdep.c: Likewise.
1429 * sparc64nbsd-tdep.c: Likewise.
1430 * sparc64obsd-tdep.c: Likewise.
1431 * sparcnbsd-tdep.c: Likewise.
1432 * sparcobsd-tdep.c: Likewise.
1433 * spu-multiarch.c: Likewise.
1434 * spu-tdep.c: Likewise.
1435 * stabsread.c: Likewise.
1436 * stack.c: Likewise.
1437 * symfile.c: Likewise.
1438 * symtab.c: Likewise.
1439 * target-descriptions.c: Likewise.
1440 * target-memory.c: Likewise.
1441 * target.c: Likewise.
1442 * tic6x-linux-tdep.c: Likewise.
1443 * tic6x-tdep.c: Likewise.
1444 * tilegx-linux-nat.c: Likewise.
1445 * tilegx-tdep.c: Likewise.
1446 * top.c: Likewise.
1447 * tramp-frame.c: Likewise.
1448 * tui/tui-out.c: Likewise.
1449 * tui/tui-winsource.c: Likewise.
1450 * ui-out.c: Likewise.
1451 * user-regs.c: Likewise.
1452 * utils.c: Likewise.
1453 * v850-tdep.c: Likewise.
1454 * valops.c: Likewise.
1455 * value.c: Likewise.
1456 * varobj.c: Likewise.
1457 * vax-nat.c: Likewise.
1458 * xml-syscall.c: Likewise.
1459 * xml-tdesc.c: Likewise.
1460 * xstormy16-tdep.c: Likewise.
1461 * xtensa-linux-nat.c: Likewise.
1462 * xtensa-tdep.c: Likewise.
1463
e76df0d0
GB
14642014-08-07 Gary Benson <gbenson@redhat.com>
1465
1466 * common/common-defs.h: Include common-utils.h.
1467 * defs.h: Do not include common-utils.h.
1468 * common/gdb_assert.h: Likewise.
1469 * darwin-nat.h: Likewise.
1470 * nat/linux-btrace.c: Likewise.
1471 * target/waitstatus.h: Likewise.
1472
4cb9c816
GB
14732014-08-07 Gary Benson <gbenson@redhat.com>
1474
1475 * common/common-defs.h: Include ptid.h.
1476 * defs.h: Do not include ptid.h.
1477 * inferior.h: Likewise.
1478 * infrun.h: Likewise.
1479 * nat/linux-btrace.h: Likewise.
1480 * nat/linux-osdata.h: Likewise.
1481 * target/waitstatus.h: Likewise.
1482
3995eeee
GB
14832014-08-07 Gary Benson <gbenson@redhat.com>
1484
1485 * common/common-defs.h: Include gdb_locale.h.
1486 * defs.h: Do not include gdb_locale.h.
1487
cb9f1a9b
GB
14882014-08-07 Gary Benson <gbenson@redhat.com>
1489
1490 * common/common-defs.h: Include gdb/signals.h.
1491 * defs.h: Do not include gdb/signals.h.
1492
a5fceff8
GB
14932014-08-07 Gary Benson <gbenson@redhat.com>
1494
1495 * common/common-defs.h: Include pathmax.h.
1496 * defs.h: Do not include pathmax.h.
1497
b9391142
GB
14982014-08-07 Gary Benson <gbenson@redhat.com>
1499
1500 * common/common-defs.h: Include libiberty.h.
1501 * defs.h: Do not include libiberty.h.
1502 * common/queue.h: Likewise.
1503 * cp-name-parser.y: Likewise.
1504 * mi/mi-cmd-catch.c: Likewise.
1505 * python/python.c: Likewise.
1506
0e443c87
GB
15072014-08-07 Gary Benson <gbenson@redhat.com>
1508
1509 * common/common-defs.h: Include ansidecl.h.
1510 * defs.h: Do not include ansidecl.h.
1511 * common/buffer.h: Likewise.
1512 * common/common-utils.h: Likewise.
1513
8ebb3f56
GB
15142014-08-07 Gary Benson <gbenson@redhat.com>
1515
1516 * common/common-defs.h: Include stddef.h.
1517 * defs.h: Do not include stddef.h.
1518 * common/common-utils.h: Likewise.
1519 * amd64fbsd-nat.c: Likewise.
1520 * bcache.c: Likewise.
1521 * charset.c: Likewise.
1522 * common/buffer.h: Likewise.
1523 * common/vec.h: Likewise.
1524 * i386bsd-nat.c: Likewise.
1525 * nat/linux-btrace.h: Likewise.
1526 * ppcfbsd-nat.c: Likewise.
1527 * ppcnbsd-tdep.h: Likewise.
1528 * ppcobsd-nat.c: Likewise.
1529 * ppcobsd-tdep.h: Likewise.
1530 * python/py-gdb-readline.c: Likewise.
1531
8980bdf6
GB
15322014-08-07 Gary Benson <gbenson@redhat.com>
1533
1534 * common/common-defs.h: Include stdarg.h.
1535 * defs.h: Do not include stdarg.h.
1536 * ada-lang.c: Likewise.
1537 * common/common-utils.h: Likewise.
1538 * guile/scm-string.c: Likewise.
1539 * guile/scm-utils.c: Likewise.
1540 * m32c-tdep.c: Likewise.
1541
d7096f71
GB
15422014-08-07 Gary Benson <gbenson@redhat.com>
1543
1544 * common/common-defs.h: Include stdlib.h.
1545 * defs.h: Do not include stdlib.h.
1546 * addrmap.c: Likewise.
1547 * bcache.c: Likewise.
1548 * common/buffer.c: Likewise.
1549 * common/common-utils.c: Likewise.
1550 * cp-name-parser.y: Likewise.
1551 * go32-nat.c: Likewise.
1552 * mn10300-linux-tdep.c: Likewise.
1553 * nat/linux-osdata.c: Likewise.
1554 * tui/tui.c: Likewise.
1555 * windows-nat.c: Likewise.
1556
d02f550d
GB
15572014-08-07 Gary Benson <gbenson@redhat.com>
1558
1559 * common/common-defs.h: Include stdio.h.
1560 * defs.h: Do not include stdio.h.
1561 * ada-lang.c: Likewise.
1562 * common/buffer.c: Likewise.
1563 * common/common-utils.c: Likewise.
1564 * cp-name-parser.y: Likewise.
1565 * gnu-nat.c: Likewise.
1566 * go32-nat.c: Likewise.
1567 * i386gnu-nat.c: Likewise.
1568 * proc-api.c: Likewise.
1569 * proc-events.c: Likewise.
1570 * proc-flags.c: Likewise.
1571 * proc-why.c: Likewise.
1572 * python/python-internal.h: Likewise.
1573 * target-memory.c: Likewise.
1574 * tui/tui-io.c: Likewise.
1575 * tui/tui.c: Likewise.
1576
b6d7a4bf
SM
15772014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1578
1579 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1580 (scan_dyntag_auxv): Same.
1581
af19829b
YQ
15822014-08-06 Yao Qi <yao@codesourcery.com>
1583
1584 * amd64-linux-nat.c: Remove duplicated include
1585 "x86-linux-nat.h".
1586 * i386-linux-nat.c: Likewise.
1587
8e07a239
YQ
15882014-08-06 Yao Qi <yao@codesourcery.com>
1589
1590 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1591 operand" with "Special opcode" in comments.
1592
7bfe8241
GB
15932014-08-05 Gary Benson <gbenson@redhat.com>
1594
1595 * interps.c (initialize_interps): Remove prototype.
1596 (interpreter_initialized): Remove static global.
1597 (interp_add): Do not call initialize_interps.
1598 (initialize_interps): Remove function.
1599
d6c95504
GB
16002014-08-05 Gary Benson <gbenson@redhat.com>
1601
1602 * utils.c (vwarning): Remove spurious va_end.
1603
241fd515
AM
16042014-08-05 Alan Modra <amodra@gmail.com>
1605
1606 * charset.c (convert_between_encodings): Cast result of obstack_base.
1607 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1608 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1609 (read_unwind_info): Use size_t for some locals.
1610 * jit.c (finalize_symtab): Likewise.
1611 * utils.c (hashtab_obstack_allocate): Likewise.
1612 * symmisc.c (print_objfile_statistics): Update format strings.
1613
dc304a94
JK
16142014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1615
1616 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1617 (Changes in GDB 7.8): ... here.
1618
3cecbbbe
TT
16192014-08-04 Tom Tromey <tromey@redhat.com>
1620
1621 * target.c (set_targetdebug): New function.
1622 (initialize_targets): Pass set_targetdebug when creating "set
1623 debug target".
1624
6908c509
JB
16252014-08-01 Joel Brobecker <brobecker@adacore.com>
1626
1627 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1628 if detecting a variable-sized field that is not the last field.
1629 Fix struct type length computation.
1630
53e8f97d
JB
16312014-08-01 Joel Brobecker <brobecker@adacore.com>
1632
1633 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1634 Add debug trace.
1635
e068c55d
JB
16362014-08-01 Joel Brobecker <brobecker@adacore.com>
1637
1638 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1639 Remove "+ 8" offset in computation of CHAIN_VMA.
1640
4d4ca2a1
DE
16412014-07-31 Doug Evans <dje@google.com>
1642
1643 * inflow.c (child_terminal_inferior): Add comment.
1644 (child_terminal_ours_for_output): Add comment.
1645 (child_terminal_ours): Add comment.
1646 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1647 (linux_nat_terminal_ours): Add comment.
1648
462f517e
GB
16492014-07-31 Gary Benson <gbenson@redhat.com>
1650
1651 * common/btrace-common.h: Do not include defs.h or server.h.
1652 * nat/mips-linux-watch.h: Likewise.
1653 * gdb-dlfcn.h: Do not include defs.h.
1654 * tracefile.h: Likewise.
1655
74228e77
RM
16562014-07-30 Roland McGrath <mcgrathr@google.com>
1657
1658 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1659
014f9477
TT
16602014-07-30 Tom Tromey <tromey@redhat.com>
1661
1662 * bsd-kvm.c (bsd_kvm_open): Constify.
1663 * corelow.c (core_open): Constify.
1664 * ctf.c (ctf_open): Constify.
1665 * dbug-rom.c (dbug_open): Constify.
1666 * exec.c (exec_open): Constify.
1667 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1668 * microblaze-rom.c (picobug_open): Constify.
1669 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1670 Constify.
1671 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1672 * record-btrace.c (record_btrace_open): Constify.
1673 * record-full.c (record_full_core_open_1, record_full_open_1)
1674 (record_full_open): Constify.
1675 * remote-m32r-sdi.c (m32r_open): Constify.
1676 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1677 (rockhopper_open, lsi_open): Constify.
1678 * remote-sim.c (gdbsim_open): Constify.
1679 * remote.c (remote_open, extended_remote_open, remote_open_1):
1680 Constify.
1681 * target.h (struct target_ops) <to_open>: Make "arg" const.
1682 * tracefile-tfile.c (tfile_open): Constify.
1683
e799154c
TT
16842014-07-30 Tom Tromey <tromey@redhat.com>
1685
1686 * breakpoint.c (map_breakpoint_numbers): Update.
1687 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1688 (get_number_const): New function.
1689 (get_number): Rewrite using get_number_const.
1690 (init_number_or_range): Make "string" const.
1691 (number_is_in_list): Make "list" const.
1692 * cli/cli-utils.h (get_number_const): Declare.
1693 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1694 (init_number_or_range, number_is_in_list): Update.
1695 * printcmd.c (map_display_numbers): Update.
1696 * value.c (value_from_history_ref): Constify.
1697 * value.h (value_from_history_ref): Update.
1698
5f08566b
TT
16992014-07-30 Tom Tromey <tromey@redhat.com>
1700
1701 * corefile.c (hook_type, call_extra_exec_file_hooks)
1702 (specify_exec_file_hook): Constify.
1703 * exec.c (exec_file_attach): Make "filename" const.
1704 * gdbcore.h (deprecated_exec_file_display_hook)
1705 (specify_exec_file_hook, exec_file_attach): Constify.
1706 * main.c (captured_main): Use catch_command_errors_const.
1707
8981c758
TT
17082014-07-30 Tom Tromey <tromey@redhat.com>
1709
1710 * target.c (open_target): New function.
1711 (add_target_with_completer, add_deprecated_target_alias): Use
1712 set_cmd_sfunc, set_cmd_context.
1713 (debug_to_open): Remove.
1714 (setup_target_debug): Update.
1715
a1c7835a
YQ
17162014-07-30 Yao Qi <yao@codesourcery.com>
1717
1718 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1719 comments.
1720 * parse.c (exp_iterate): Update comments.
1721
976411d6
GB
17222014-07-30 Gary Benson <gbenson@redhat.com>
1723
1724 * common/common-defs.h: New file.
1725 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1726 * defs.h: Include common-defs.h.
1727 Do not include config.h or build-gnulib/config.h.
1728
5d4848a4
GB
17292014-07-30 Gary Benson <gbenson@redhat.com>
1730
1731 * common/common-utils.h: Do not include config.h.
1732 * nat/linux-btrace.h: Likewise.
1733
d41f6d8e
GB
17342014-07-30 Gary Benson <gbenson@redhat.com>
1735
1736 * btrace.c: Include defs.h.
1737 * common/ptid.c: Include defs.h or server.h as appropriate.
1738 * nat/mips-linux-watch.c: Likewise.
1739
84202f9c
TT
17402014-07-29 Tom Tromey <tromey@redhat.com>
1741
1742 * target.c (target_is_pushed): Simplify.
1743
2530441c
JB
17442014-07-29 Joel Brobecker <brobecker@adacore.com>
1745
1746 GDB 7.8 released.
1747
7e09a223
YQ
17482014-07-29 Yao Qi <yao@codesourcery.com>
1749
1750 PR gdb/17206
1751 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1752
7ebdbe92
DE
17532014-07-28 Doug Evans <xdje42@gmail.com>
1754
1755 PR guile/17203
1756 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1757 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1758 parameters.
1759
f347ffc9
WN
17602014-07-28 Will Newton <will.newton@linaro.org>
1761
1762 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1763 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1764 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1765 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1766 (THUMB2_EABI_SYSCALL): Likewise.
1767 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1768 struct tramp_frame.
1769 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1770 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1771
37c5f1f7
DE
17722014-07-27 Doug Evans <xdje42@gmail.com>
1773
1774 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1775
0c3abbc7
DE
17762014-07-27 Doug Evans <xdje42@gmail.com>
1777
1778 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1779
e76c5d17
DE
17802014-07-26 Ludovic Courtès <ludo@gnu.org>
1781 Doug Evans <xdje42@gmail.com>
1782
1783 PR guile/17146
1784 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1785 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1786 * configure.ac: Try to use guild to compile an scm file, if it fails
1787 then disable guile support.
1788 * configure: Regenerate.
1789 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1790 GUILE_FILE_LIST.
1791 (GUILE_COMPILED_FILES): New variable.
1792 (GUILE_FILES) Update.
1793 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1794 (stamp-guile): Compile scm files.
1795 * guile/guile.c (boot_guile_support): New function.
1796 (standard_throw_args_p): New function.
1797 (print_standard_throw_error, print_throw_error): New functions.
1798 (handle_boot_error): New function.
1799 (initialize_scheme_side): Rewrite to call boot_guile_support.
1800 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1801 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1802
186fcde0
DE
18032014-07-26 Ludovic Courtès <ludo@gnu.org>
1804 Doug Evans <xdje42@gmail.com>
1805
1806 PR guile/17146
1807 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1808 * guile/lib/gdb/support.scm: New file.
1809 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1810 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1811 All uses updated.
1812 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1813 All uses updated.
1814 (%assert-type): Ditto, and renamed to assert-type.
1815 (%exception-print-style): Delete.
1816
4df42755
DE
18172014-07-26 Doug Evans <xdje42@gmail.com>
1818
1819 PR build/17105
1820 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1821 * configure: Regenerate.
1822 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1823 PYTHON_FILES.
1824 (PYTHON_FILES): New variable.
1825 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1826 (GUILE_FILES): New variable.
1827 (stamp-python, install-python, uninstall-python): Handle empty
1828 file list.
1829 (stamp-guile, install-guile, uninstall-guile): Ditto.
1830
ee7333ae
DE
18312014-07-26 Doug Evans <xdje42@gmail.com>
1832
1833 PR guile/17177
1834 * guile/lib/gdb.scm (pretty-printers): Export.
1835 (set-pretty-printers!): Export.
1836 * guile/lib/gdb/printing.scm (gdb module): Update.
1837 (prepend-pretty-printer!, append-pretty-printer!): Update.
1838 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1839 (pretty_printer_list_var): Delete.
1840 (pretty_printer_list): New static global.
1841 (gdbscm_pretty_printers): New function.
1842 (gdbscm_set_pretty_printers_x): New function.
1843 (ppscm_find_pretty_printer_from_gdb): Update.
1844 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1845 (gdbscm_initialize_pretty_printers): Update.
1846
74edf516
DE
18472014-07-26 Doug Evans <xdje42@gmail.com>
1848
1849 PR 17185
1850 * configure.ac: Add check for header gc/gc.h.
1851 Add check for function setenv.
1852 * configure: Regenerate.
1853 * config.in: Regenerate.
1854 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1855
d54398a7
MR
18562014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1857
1858 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1859 variation in gdbarch matching.
1860
ab16fce8
TT
18612014-07-25 Tom Tromey <tromey@redhat.com>
1862
1863 * exec.c (using_exec_ops): Remove.
1864 (exec_close_1): Update. Remove extraneous block, reindent.
1865 (add_target_sections): Use target_is_pushed.
1866
88056fbb
PA
18672014-07-25 Pedro Alves <palves@redhat.com>
1868
1869 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1870 * monitor.c (monitor_create_inferior): Likewise.
1871 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1872 * remote-sim.c (gdbsim_create_inferior): Likewise.
1873 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1874 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1875 * windows-nat.c (do_initial_windows_stuff): Likewise.
1876
70509625
PA
18772014-07-25 Pedro Alves <palves@redhat.com>
1878
1879 * NEWS: Mention signal passing and "signal" command changes.
1880 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1881 comment.
1882 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1883 call.
1884 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1885 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1886 (jump_command): Adjust clear_proceed_status call.
1887 (signal_command): Warn if other thread that are resumed have
1888 signals that will be delivered. Adjust clear_proceed_status call.
1889 (until_next_command, finish_command)
1890 (proceed_after_attach_callback, attach_command_post_wait)
1891 (attach_command): Adjust clear_proceed_status call.
1892 * infrun.c (proceed_after_vfork_done): Likewise.
1893 (proceed_after_attach_callback): Adjust comment.
1894 (clear_proceed_status_thread): Clear stop_signal if not in pass
1895 state.
1896 (clear_proceed_status_callback): Delete.
1897 (clear_proceed_status): New 'step' parameter. Only clear the
1898 proceed status of threads the command being prepared is about to
1899 resume.
1900 (proceed): If passed in an explicit signal, override stop_signal
1901 with it. Don't pass the last stop signal to the thread we're
1902 resuming.
1903 (init_wait_for_inferior): Adjust clear_proceed_status call.
1904 (switch_back_to_stepped_thread): Clear the signal if it should not
1905 be passed.
1906 * infrun.h (clear_proceed_status): New 'step' parameter.
1907 (user_visible_resume_ptid): Add comment.
1908 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1909 signal is in pass state.
1910 * remote.c (append_pending_thread_resumptions): Likewise.
1911 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1912
d8be2939
TT
19132014-07-25 Tom Tromey <tromey@redhat.com>
1914
1915 * target.h (target_stopped_data_address)
1916 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1917 parentheses.
1918
7d0d9d2b
PL
19192014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1920
1921 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1922 comments.
1923 (avr_pointer_to_address): Likewise.
1924
e9e7f724
TT
19252014-07-24 Tom Tromey <tromey@redhat.com>
1926
1927 * monitor.c (compile_pattern): Update.
1928 * target.h (struct target_ops) <to_shortname, to_longname,
1929 to_doc>: Now const.
1930
1947513d
TT
19312014-07-24 Tom Tromey <tromey@redhat.com>
1932
1933 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1934 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1935 (add_info_alias, add_com): Make "doc" const.
1936 (print_doc_line): Make "str" const.
1937 (delete_cmd): Update.
1938 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1939 (print_doc_line): Update.
1940 * cli/cli-script.c (document_command): Update.
1941 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1942 (add_com, add_info, add_info_alias): Update.
1943 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1944 * python/py-cmd.c (cmdpy_destroyer): Update.
1945
64e61d29
TT
19462014-07-24 Tom Tromey <tromey@redhat.com>
1947
1948 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1949 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1950 (help_cmd_list): Constify.
1951 (lookup_cmd): Update.
1952 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1953 const.
1954 (help_cmd_list, apropos_cmd): Update.
1955 * cli/cli-script.c (show_user): Update.
1956 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1957 * cli/cli-setshow.h (cmd_show_list): Update.
1958 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1959 (cmd_show_list): Update.
1960 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1961 * python/py-cmd.c (cmdpy_destroyer): Update.
1962
429e55ea
TT
19632014-07-24 Tom Tromey <tromey@redhat.com>
1964
1965 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1966 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1967 const.
1968 * command.h (deprecate_cmd): Update.
1969 * maint.c (maintenance_do_deprecate): Add casts.
1970
64669f3b
TT
19712014-07-24 Tom Tromey <tromey@redhat.com>
1972
1973 * cli/cli-decode.c (help_cmd): Make parameter "const".
1974 * cli/cli-decode.h (help_cmd): Update.
1975
d3d3328b
TT
19762014-07-24 Tom Tromey <tromey@redhat.com>
1977
1978 * stack.c (up_silently_base, down_silently_base): Make argument
1979 const.
1980
414842dc
TT
19812014-07-24 Tom Tromey <tromey@redhat.com>
1982
1983 * solib.c (solib_add): Make "pattern" const.
1984 * solib.h (solib_add): Update.
1985
baa336ce
TT
19862014-07-24 Tom Tromey <tromey@redhat.com>
1987
1988 * remote.c (remote_serial_open, print_packet, putpkt)
1989 (putpkt_binary): Constify.
1990 * remote.h (putpkt): Update.
1991
5a19e2d0
TT
19922014-07-24 Tom Tromey <tromey@redhat.com>
1993
1994 * monitor.c (monitor_open): Make "args" const.
1995 * monitor.h (monitor_open): Update.
1996
fc4baa5e
TT
19972014-07-24 Tom Tromey <tromey@redhat.com>
1998
1999 * maint.c (match_bfd_flags): Make "string" const.
2000 (print_bfd_section_info): Remove casts.
2001 (print_objfile_section_info): Make "string" const.
2002
0d5f0dbe
TT
20032014-07-24 Tom Tromey <tromey@redhat.com>
2004
2005 * inf-child.c (inf_child_open_target): Make "arg" const.
2006 * inf-child.h (inf_child_open_target): Update.
2007
41c77899
TT
20082014-07-24 Tom Tromey <tromey@redhat.com>
2009
2010 * environ.c (unset_in_environ): Make "var" const.
2011 * environ.h (unset_in_environ): Update.
2012
93db0d79
TT
20132014-07-24 Tom Tromey <tromey@redhat.com>
2014
2015 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
2016 Make "cmd" const.
2017 (scan_filename_with_cleanup): Likewise.
2018 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2019 Make arguments const.
2020 (restore_command): Update.
2021
36d6eb95
PA
20222014-07-24 Pedro Alves <palves@redhat.com>
2023
2024 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2025
8009206a
TT
20262014-07-24 Tom Tromey <tromey@redhat.com>
2027 Gary Benson <gbenson@redhat.com>
2028
2029 * nat/linux-ptrace.c (additional_flags): New global.
2030 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2031 additional_flags; don't check GDBSERVER.
2032 (linux_ptrace_set_additional_flags): New function.
2033 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2034 Declare.
2035 * linux-nat.c (_initialize_linux_nat): Call
2036 linux_ptrace_set_additional_flags.
2037
a7068b60
TT
20382014-07-24 Tom Tromey <tromey@redhat.com>
2039
2040 * make-target-delegates (munge_type, write_debugmethod): New
2041 functions.
2042 (debug_names): New global.
2043 ($TARGET_DEBUG_PRINTER): New global.
2044 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2045 name.
2046 Write debug methods. Generate init_debug_target.
2047 * target-debug.h: New file.
2048 * target-delegates.c: Rebuild.
2049 * target.c: Include target-debug.h.
2050 (debug_target): Hoist definition.
2051 (target_kill, target_get_section_table, target_memory_map)
2052 (target_flash_erase, target_flash_done, target_detach)
2053 (target_disconnect, target_wait, target_resume)
2054 (target_pass_signals, target_program_signals, target_follow_fork)
2055 (target_mourn_inferior, target_search_memory)
2056 (target_thread_address_space, target_close)
2057 (target_find_new_threads, target_core_of_thread)
2058 (target_verify_memory, target_insert_mask_watchpoint)
2059 (target_remove_mask_watchpoint): Remove targetdebug code.
2060 (debug_to_post_attach, debug_to_prepare_to_store)
2061 (debug_to_files_info, debug_to_insert_breakpoint)
2062 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2063 (debug_to_region_ok_for_hw_watchpoint)
2064 (debug_to_can_accel_watchpoint_condition)
2065 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2066 (debug_to_watchpoint_addr_within_range)
2067 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2068 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2069 (debug_to_terminal_init, debug_to_terminal_inferior)
2070 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2071 (debug_to_terminal_save_ours, debug_to_terminal_info)
2072 (debug_to_load, debug_to_post_startup_inferior)
2073 (debug_to_insert_fork_catchpoint)
2074 (debug_to_remove_fork_catchpoint)
2075 (debug_to_insert_vfork_catchpoint)
2076 (debug_to_remove_vfork_catchpoint)
2077 (debug_to_insert_exec_catchpoint)
2078 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2079 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2080 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2081 (setup_target_debug): Call init_debug_target.
2082 * target.h (TARGET_DEBUG_PRINTER): New macro.
2083 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2084 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2085
2c51604d
GB
20862014-07-24 Gary Benson <gbenson@redhat.com>
2087
2088 * exceptions.h (throw_vfatal): Renamed to...
2089 (throw_vquit): New declaration.
2090 (throw_quit): Likewise.
2091 * exceptions.c (throw_vfatal): Renamed to...
2092 (throw_vquit): New function.
2093 (throw_quit): Likewise.
2094 (throw_error): Call throw_verror rather than throw_it.
2095 * utils.h (vfatal): Removed.
2096 (fatal): Likewise.
2097 * utils.c (vfatal): Removed.
2098 (fatal): Likewise.
2099 (internal_verror): Replaced call to fatal with call to throw_quit.
2100 (quit): Replaced calls to fatal with calls to throw_quit.
2101
34211963
ME
21022014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2103
2104 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2105 target_read_code.
2106
a52b4d3e
ME
21072014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2108
2109 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2110 less than zero in conditional expression.
2111
a8bdc56b
TT
21122014-07-23 Tom Tromey <tromey@redhat.com>
2113
2114 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2115 ($INTRO_PART): Don't match whitespace.
2116 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2117 argument matching.
2118 ($METHOD): Add $METHOD_TRAILER.
2119 (trim): Rewrite.
2120 (scan_target_h): New sub.
2121 Change main loop not to collect state.
2122 * target-delegates.c: Rebuild.
2123
91b52240
GB
21242014-07-23 Gary Benson <gbenson@redhat.com>
2125
2126 * cp-support.c (gdb_demangle): Fix build on systems without
2127 sigaltstack.
2128
45326f6f
JK
21292014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2130
2131 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2132 for reference entry value target data value.
2133
e214cf6c
JK
21342014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2135
2136 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2137 value_available_contents_eq.
2138
bddbbedd
PA
21392014-07-22 Pedro Alves <palves@redhat.com>
2140
2141 * value.c (allocate_optimized_out_value): Don't mark value as
2142 non-lazy.
2143
45c71484
JW
21442014-07-22 Jiong Wang <jiong.wang@arm.com>
2145
2146 * MAINTAINERS (Write After Approval): Update my email address.
2147
9597b22a
DE
21482014-07-20 Doug Evans <dje@google.com>
2149
2150 PR server/17147
2151 * remote.c (putpkt_binary): Add text to error message.
2152
91101fe5
YQ
21532014-07-20 Yao Qi <yao@codesourcery.com>
2154
2155 * eval.c: Remove "Chill" from comments.
2156 * gdbtypes.h: Likewise.
2157 * symtab.h: Likewise.
2158
c9402c95
YQ
21592014-07-20 Yao Qi <yao@codesourcery.com>
2160
2161 * std-operator.def: Update comments to TERNOP_SLICE.
2162
ae8fddda
YQ
21632014-07-20 Yao Qi <yao@codesourcery.com>
2164
2165 * std-operator.def: Remove BINOP_RANGE.
2166 * breakpoint.c (watchpoint_exp_is_const): Update.
2167 * expprint.c (dump_subexp_body_standard): Likewise.
2168 * eval.c (init_array_element): Remove dead code.
2169 (evaluate_subexp_standard): Likewise.
2170
9c816640
YQ
21712014-07-20 Yao Qi <yao@codesourcery.com>
2172
2173 * std-operator.def: Remove BINOP_IN.
2174 * breakpoint.c (watchpoint_exp_is_const): Update.
2175 * eval.c (evaluate_subexp_standard): Likewise.
2176 * expprint.c (dump_subexp_body_standard): Likewise.
2177
164224e9
ME
21782014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2179
2180 * microblaze-tdep.c (microblaze_register_names): Add
2181 the rshr and rslr register names.
2182 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2183 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2184 Use of tdesc_numbered_register. Use of
2185 microblaze_register_g_packet_guesses. Use of
2186 tdesc_use_registers. Use of set_gdbarch_register_type.
2187 (microblaze_register_g_packet_guesses): New.
2188 * microblaze-tdep.h (microblaze_reg_num): Add
2189 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2190 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2191 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2192 * features/microblaze-core.xml: New file.
2193 * features/microblaze-stack-protect.xml: New file.
2194 * features/microblaze-with-stack-protect.c: New file.
2195 * features/microblaze-with-stack-protect.xml: New file.
2196 * features/microblaze.xml: New file.
2197 * features/microblaze.c: New file.
2198 * features/Makefile (microblaze-with-stack-protect): Add
2199 microblaze-with-stack-protect microblaze and microblaze-expedite.
2200 * regformats/microblaze-with-stack-protect.dat: New file.
2201 * regformats/microblaze.dat: New file.
2202 * doc/gdb.texinfo (MicroBlaze Features): Added.
2203
e8b2341c
TT
22042014-07-18 Tom Tromey <tromey@redhat.com>
2205
2206 * exec.c (exec_ops): Now static.
2207 * exec.h (exec_ops): Don't declare.
2208
44e89118
TT
22092014-07-18 Tom Tromey <tromey@redhat.com>
2210
2211 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2212 to find_target_beneath.
2213 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2214 find_target_beneath.
2215 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2216
b0ed115f
TT
22172014-07-18 Tom Tromey <tromey@redhat.com>
2218
2219 PR gdb/17130:
2220 * utils.c (quit): Use target_supports_terminal_ours.
2221 * target.h (target_supports_terminal_ours): Declare.
2222 * target.c (target_supports_delete_record): Don't check
2223 to_delete_record against NULL.
2224 (target_supports_terminal_ours): New function.
2225
e75fdfca
TT
22262014-07-18 Tom Tromey <tromey@redhat.com>
2227
2228 PR gdb/17130:
2229 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2230 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2231 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2232 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2233 * windows-nat.c (windows_xfer_partial): Always delegate.
2234 * record-btrace.c (record_btrace_xfer_partial): Simplify
2235 delegation.
2236 (record_btrace_fetch_registers, record_btrace_store_registers)
2237 (record_btrace_prepare_to_store, record_btrace_resume)
2238 (record_btrace_wait, record_btrace_find_new_threads)
2239 (record_btrace_thread_alive): Likewise.
2240 * procfs.c (procfs_xfer_partial): Always delegate.
2241 * corelow.c (core_xfer_partial): Always delegate.
2242 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2243
83814951
TT
22442014-07-18 Tom Tromey <tromey@redhat.com>
2245
2246 * exec.c (exec_make_note_section): Move earlier.
2247
b8b8facf
DE
22482014-07-17 Doug Evans <dje@google.com>
2249
74b49205 2250 PR gdb/17170
b8b8facf
DE
2251 * maint.c (count_symtabs_and_blocks): Handle NULL
2252 current_program_space.
2253 (report_command_stats): Check global enabled flag in addition to
2254 recorded enabled flag.
2255 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2256
69ff6be5
PA
22572014-07-16 Pedro Alves <palves@redhat.com>
2258
2259 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2260
252db1b5
TT
22612014-07-16 Tom Tromey <tromey@redhat.com>
2262
2263 * target.h (struct target_ops) <to_delete_record>: Reformat
2264 comment.
2265
a432721e
TT
22662014-07-16 Tom Tromey <tromey@redhat.com>
2267
2268 * target-delegates.c: Rebuild.
2269
487d9753
PL
22702014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2271
2272 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2273 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2274 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2275 (avr_pointer_to_address): Likewise.
2276 (avr_address_class_type_flags): New function.
2277 (avr_address_class_type_flags_to_name): Likewise.
2278 (avr_address_class_name_to_type_flags): Likewise.
2279 (avr_gdbarch_init): Set address_class_type_flags,
2280 address_class_type_flags_to_name and
2281 address_class_name_to_type_flags.
2282
57745c90
PA
22832014-07-15 Pedro Alves <palves@redhat.com>
2284
2285 * linux-nat.c (kill_callback): Save errno and work with saved
2286 copy.
2287
2d40be18
SM
22882014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2289
2290 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2291
572f6555
EBM
22922014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2293
2294 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2295 breakpoint support correctly.
2296
cc1c52ad
PA
22972014-07-14 Pedro Alves <palves@redhat.com>
2298
2299 * utils.c (prompt_for_continue): Call target_terminal_ours.
2300
1e973570
PA
23012014-07-14 Pedro Alves <palves@redhat.com>
2302
2303 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2304 catch_errors. Don't re-enable stdin or notify observers where,
2305 and rethrow error.
2306 (fetch_inferior_event_wrapper): Delete.
2307
93d6eb10
PA
23082014-07-14 Pedro Alves <palves@redhat.com>
2309
2310 PR gdb/17072
2311 * top.c: Include "inf-loop.h".
2312 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2313 field.
2314 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2315 was async before.
2316 (gdb_readline_wrapper): Store whether the target is async, and
2317 make it sync.
2318
0017922d
PA
23192014-07-14 Pedro Alves <palves@redhat.com>
2320
2321 PR gdb/17072
2322 * top.c (gdb_readline_wrapper_line): Tweak comment.
2323 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2324 the input handler callback.
2325
94696ad3
PA
23262014-07-14 Pedro Alves <palves@redhat.com>
2327
2328 PR gdb/17072
2329 * main.c: Include event-top.h.
2330 (handle_command_errors): New function.
2331 (catch_command_errors, catch_command_errors_const): Use it.
2332
9d1e69a2
PA
23332014-07-14 Pedro Alves <palves@redhat.com>
2334
2335 * exceptions.c (catch_command_errors, catch_command_errors_const):
2336 Moved to main.c.
2337 * exceptions.h (catch_command_errors_ftype)
2338 (catch_command_errors_const_ftype): Moved to main.c.
2339 (catch_command_errors, catch_command_errors_const): Delete
2340 declarations.
2341 * main.c (catch_command_errors_ftype)
2342 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2343 (catch_command_errors, catch_command_errors_const)): Moved here
2344 from exceptions.c and make static.
2345
feefc97b
PA
23462014-07-14 Pedro Alves <palves@redhat.com>
2347
2348 * exceptions.c (print_any_exception): Delete.
2349 (catch_exceptions_with_msg): Use exception_print instead of
2350 print_any_exception.
2351 (catch_errors): Use exception_fprintf instead of
2352 print_any_exception.
2353 (catch_command_errors, catch_command_errors_const): Use
2354 exception_print instead of print_any_exception.
2355
c933f875
PA
23562014-07-14 Pedro Alves <palves@redhat.com>
2357
2358 * infcall.c (run_inferior_call): Set 'sync_execution' while
2359 running the inferior call.
2360
feb6f816
PA
23612014-07-14 Pedro Alves <palves@redhat.com>
2362
2363 * value.c (value_contents_equal): Delete function.
2364 * value.h (value_contents_equal): Delete declaration.
2365
d98b7a16
TT
23662014-07-14 Tom Tromey <tromey@redhat.com>
2367
2368 PR exp/17106:
2369 * gdbtypes.c (is_dynamic_type_internal): New function, from
2370 is_dynamic_type.
2371 (is_dynamic_type): Rewrite.
2372 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2373 (resolve_dynamic_struct): Likewise.
2374 (resolve_dynamic_type_internal): New function, from
2375 resolve_dynamic_type.
2376 (resolve_dynamic_type): Rewrite.
2377
548740d6
TT
23782014-07-14 Tom Tromey <tromey@redhat.com>
2379
2380 * target.c (target_require_runnable): Also check record_stratum.
2381 Update comment.
2382
808f7ab1
YQ
23832014-07-11 Yao Qi <yao@codesourcery.com>
2384
2385 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2386 thumb_instruction_restores_sp return true.
2387
540314bd
YQ
23882014-07-11 Yao Qi <yao@codesourcery.com>
2389
2390 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2391 (thumb_in_function_epilogue_p): Call
2392 thumb_instruction_restores_sp.
2393
1db01f22
YQ
23942014-07-11 Yao Qi <yao@codesourcery.com>
2395
2396 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2397 'add sp, #imm'.
2398 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2399
3116063b
GB
24002014-07-11 Gary Benson <gbenson@redhat.com>
2401
2402 * amd64-linux-nat.c (gdbcore.h): Remove include.
2403 (regset.h): Likewise.
2404 (nat/linux-btrace.h): Likewise.
2405 (btrace.h): Likewise.
2406 (gdb_assert.h): Likewise.
2407 (string.h): Likewise.
2408 (sys/uio.h): Likewise.
2409 (sys/debugreg.h): Likewise.
2410 (sys/syscall.h): Likewise.
2411 (sys/procfs.h): Likewise.
2412 (sys/user.h): Likewise.
2413 (asm/ptrace.h): Likewise.
2414 (i386-nat.h): Likewise.
2415 * i386-linux-nat.c (i386-nat.h): Likewise.
2416 (regset.h): Likewise.
2417 (target.h): Likewise.
2418 (linux-nat.h): Likewise.
2419 (nat/linux-btrace.h): Likewise.
2420 (btrace.h): Likewise.
2421 (gdb_assert.h): Likewise.
2422 (string.h): Likewise.
2423 (sys/uio.h): Likewise.
2424 (sys/user.h): Likewise.
2425 (sys/procfs.h): Likewise.
2426 (sys/reg.h): Likewise.
2427 (sys/debugreg.h): Likewise.
2428 (ORIG_EAX): Remove definition.
2429
040baaf6
GB
24302014-07-11 Gary Benson <gbenson@redhat.com>
2431
2432 * i386-linux-nat.h: New file.
2433 * x86-linux-nat.h: Likewise.
2434 * x86-linux-nat.c: Likewise.
2435 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2436 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2437 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2438 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2439 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2440 (PTRACE_SETREGSET): Likewise.
2441 (arch_lwp_info): Now in x86-linux-nat.c.
2442 (have_ptrace_getregset): Now in x86-linux-nat.h.
2443 (x86_linux_dr_get): Now in x86-linux-nat.c.
2444 (x86_linux_dr_set): Likewise.
2445 (x86_linux_dr_get_addr): Likewise.
2446 (x86_linux_dr_get_control): Likewise.
2447 (x86_linux_dr_get_status): Likewise.
2448 (update_debug_registers_callback): Likewise.
2449 (x86_linux_dr_set_control): Likewise.
2450 (x86_linux_dr_set_addr): Likewise.
2451 (x86_linux_prepare_to_resume): Likewise.
2452 (x86_linux_new_thread): Likewise.
2453 (x86_linux_new_fork): Likewise.
2454 (x86_linux_get_thread_area): Likewise.
2455 (super_post_startup_inferior): Likewise.
2456 (x86_linux_child_post_startup_inferior): Likewise.
2457 (AMD64_LINUX_USER64_CS): Likewise.
2458 (AMD64_LINUX_X32_DS): Likewise.
2459 (x86_linux_read_description): Likewise.
2460 (x86_linux_enable_btrace): Likewise.
2461 (x86_linux_disable_btrace): Likewise.
2462 (x86_linux_teardown_btrace): Likewise.
2463 (x86_linux_read_btrace): Likewise.
2464 (x86_linux_create_target): Likewise.
2465 (x86_linux_add_target): Likewise.
2466 * i386-linux-nat.c (x86-linux-nat.h): New include.
2467 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2468 (PTRACE_SETREGSET): Likewise.
2469 (arch_lwp_info): Now in x86-linux-nat.c.
2470 (have_ptrace_getregset): Now in x86-linux-nat.h.
2471 (x86_linux_dr_get): Now in x86-linux-nat.c.
2472 (x86_linux_dr_set): Likewise.
2473 (x86_linux_dr_get_addr): Likewise.
2474 (x86_linux_dr_get_control): Likewise.
2475 (x86_linux_dr_get_status): Likewise.
2476 (update_debug_registers_callback): Likewise.
2477 (x86_linux_dr_set_control): Likewise.
2478 (x86_linux_dr_set_addr): Likewise.
2479 (x86_linux_prepare_to_resume): Likewise.
2480 (x86_linux_new_thread): Likewise.
2481 (x86_linux_new_fork): Likewise.
2482 (x86_linux_get_thread_area): Likewise.
2483 (super_post_startup_inferior): Likewise.
2484 (x86_linux_child_post_startup_inferior): Likewise.
2485 (AMD64_LINUX_USER64_CS): Likewise.
2486 (AMD64_LINUX_X32_DS): Likewise.
2487 (x86_linux_read_description): Likewise.
2488 (x86_linux_enable_btrace): Likewise.
2489 (x86_linux_disable_btrace): Likewise.
2490 (x86_linux_teardown_btrace): Likewise.
2491 (x86_linux_read_btrace): Likewise.
2492 (x86_linux_create_target): Likewise.
2493 (x86_linux_add_target): Likewise.
2494
1aa7e42c
GB
24952014-07-11 Gary Benson <gbenson@redhat.com>
2496
2497 * amd64-linux-nat.c: Comment and whitespace changes.
2498 * i386-linux-nat.c: Comment and whitespace changes.
2499
c1e246a0
GB
25002014-07-11 Gary Benson <gbenson@redhat.com>
2501
2502 * amd64-linux-nat.c (x86_linux_create_target): New function.
2503 (x86_linux_add_target): Likewise.
2504 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2505 * i386-linux-nat.c (x86_linux_create_target): New function.
2506 (x86_linux_add_target): Likewise.
2507 (_initialize_i386_linux_nat): Delegate to the above new functions.
2508
8c420b8d
GB
25092014-07-11 Gary Benson <gbenson@redhat.com>
2510
2511 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2512 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2513 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2514 (ps_get_thread_area): Delegate to the above.
2515
cb1da100
GB
25162014-07-11 Gary Benson <gbenson@redhat.com>
2517
2518 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2519 x86_linux_read_description. All uses updated. amd64-specific
2520 code conditionalized. Conditionalized i386-specific code added.
2521 Redundant cast removed.
2522 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2523 x86_linux_read_description. All uses updated. i386-specific
2524 code conditionalized. Conditionalized amd64-specific code added.
2525 One sizeof replaced with the actual type it is describing.
2526
2acf3cd0
GB
25272014-07-11 Gary Benson <gbenson@redhat.com>
2528
2529 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2530 x86_linux_dr_get. All uses updated.
2531 (amd64_linux_dr_set): Renamed to
2532 x86_linux_dr_set. All uses updated.
2533 (amd64_linux_dr_get_addr): Renamed to
2534 x86_linux_dr_get_addr. All uses updated.
2535 (amd64_linux_dr_get_control): Renamed to
2536 x86_linux_dr_get_control. All uses updated.
2537 (amd64_linux_dr_get_status): Renamed to
2538 x86_linux_dr_get_status. All uses updated.
2539 (amd64_linux_dr_set_control): Renamed to
2540 x86_linux_dr_set_control. All uses updated.
2541 (amd64_linux_dr_set_addr): Renamed to
2542 x86_linux_dr_set_addr. All uses updated.
2543 (amd64_linux_prepare_to_resume): Renamed to
2544 x86_linux_prepare_to_resume. All uses updated.
2545 (amd64_linux_new_thread): Renamed to
2546 x86_linux_new_thread. All uses updated.
2547 (amd64_linux_new_fork): Renamed to
2548 x86_linux_new_fork. All uses updated.
2549 (amd64_linux_child_post_startup_inferior): Renamed to
2550 x86_linux_child_post_startup_inferior. All uses updated.
2551 (amd64_linux_enable_btrace): Renamed to
2552 x86_linux_enable_btrace. All uses updated.
2553 (amd64_linux_disable_btrace): Renamed to
2554 x86_linux_disable_btrace. All uses updated.
2555 (amd64_linux_teardown_btrace): Renamed to
2556 x86_linux_teardown_btrace. All uses updated.
2557 (amd64_linux_read_btrace): Renamed to
2558 x86_linux_read_btrace. All uses updated.
2559 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2560 x86_linux_dr_get. All uses updated.
2561 (i386_linux_dr_set): Renamed to
2562 x86_linux_dr_set. All uses updated.
2563 (i386_linux_dr_get_addr): Renamed to
2564 x86_linux_dr_get_addr. All uses updated.
2565 (i386_linux_dr_get_control): Renamed to
2566 x86_linux_dr_get_control. All uses updated.
2567 (i386_linux_dr_get_status): Renamed to
2568 x86_linux_dr_get_status. All uses updated.
2569 (i386_linux_dr_set_control): Renamed to
2570 x86_linux_dr_set_control. All uses updated.
2571 (i386_linux_dr_set_addr): Renamed to
2572 x86_linux_dr_set_addr. All uses updated.
2573 (i386_linux_prepare_to_resume): Renamed to
2574 x86_linux_prepare_to_resume. All uses updated.
2575 (i386_linux_new_thread): Renamed to
2576 x86_linux_new_thread. All uses updated.
2577 (i386_linux_new_fork): Renamed to
2578 x86_linux_new_fork. All uses updated.
2579 (i386_linux_child_post_startup_inferior): Renamed to
2580 x86_linux_child_post_startup_inferior. All uses updated.
2581 (i386_linux_enable_btrace): Renamed to
2582 x86_linux_enable_btrace. All uses updated.
2583 (i386_linux_disable_btrace): Renamed to
2584 x86_linux_disable_btrace. All uses updated.
2585 (i386_linux_teardown_btrace): Renamed to
2586 x86_linux_teardown_btrace. All uses updated.
2587 (i386_linux_read_btrace): Renamed to
2588 x86_linux_read_btrace. All uses updated.
2589
b9c1d481
AS
25902014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2591
2592 * remote.c (extended_remote_post_attach): New function.
2593 (init_extended_remote_ops): Install it as to_post_attach method.
2594
7180e04a
PA
25952014-07-09 Pedro Alves <palves@redhat.com>
2596
2597 * infcmd.c (attach_command_post_wait): Don't call
2598 target_terminal_inferior here.
2599 (attach_command): Call it here instead.
2600
9a9a7608
AB
26012014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2602
2603 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2604 field.
2605 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2606 from varobj.c, with additional checks.
2607 (c_varobj_ops): Fill in is_path_expr_parent field.
2608 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2609 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2610 field.
2611 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2612 ops method.
2613 (varobj_default_is_path_expr_parent): New function.
2614 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2615 (varobj_default_is_path_expr_parent): Declare new function.
2616
1f267ae3
MM
26172014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2618
2619 * infcmd.c (finish_backward): Turn internal error into normal error.
2620
b2ee242b
PA
26212014-07-07 Pedro Alves <palves@redhat.com>
2622
8a869bca 2623 PR gdb/17096
b2ee242b
PA
2624 * remote.c (async_handle_remote_sigint)
2625 (async_handle_remote_sigint_twice): Call
2626 gdb_call_async_signal_handler instead of
2627 mark_async_signal_handler.
2628
38e229b2
TT
26292014-07-07 Tom Tromey <tromey@redhat.com>
2630
2631 * target-delegates.c: Rebuild.
2632 * target.c (target_info_record): Remove.
2633 * record.c (info_record_command): Unconditionally call
2634 to_info_record.
2635 * target.h (struct target_ops) <to_info_record>: Use
2636 TARGET_DEFAULT_IGNORE.
2637 (target_info_record): Remove.
2638
f0f9ff95
TT
26392014-07-07 Tom Tromey <tromey@redhat.com>
2640
2641 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2642 TARGET_DEFAULT_NORETURN.
2643 * target.c (generic_tls_error): New function.
2644 (target_translate_tls_address): Don't search target stack.
2645 * target-delegates.c: Rebuild.
2646 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2647 stack.
2648 * linux-thread-db.c (thread_db_get_thread_local_address):
2649 Unconditionally call beneath target.
2650
4a5be5ee
MK
26512014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2652
2653 * cli/cli-logging.c (pop_output_files): Assign targerr to
2654 gdb_stdtargerr.
2655
92c3b204
AB
26562014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2657
2658 * MAINTAINERS (Write After Approval): Update my email address.
2659
9b11e3a7
GB
26602014-07-02 Gary Benson <gbenson@redhat.com>
2661
2662 * proc-service.c (ps_xfer_memory): Update comment.
2663 (ps_pstop): Remove unused function.
2664 (ps_pcontinue): Likewise.
2665 (ps_lstop): Likewise.
2666 (ps_lcontinue): Likewise.
2667 (ps_lgetxregsize): Likewise.
2668 (ps_lgetxregs): Likewise.
2669 (ps_lsetxregs): Likewise.
2670 (ps_plog): Likewise.
2671 (ps_ptread): Likewise.
2672 (ps_ptwrite): Likewise.
2673
cf363f18
MW
26742014-07-01 Mark Wielaard <mjw@redhat.com>
2675
2676 * dwarf2read.c (add_array_cv_type): New function.
2677 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2678 (read_tag_volatile_type): Likewise.
2679
82ae6c8d
TT
26802014-07-01 Tom Tromey <tromey@redhat.com>
2681
2682 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2683 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2684 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2685 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2686 * command.h (cmd_cfunc_ftype): Move earlier.
2687 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2688 (add_com, add_info): Use cmd_cfunc_ftype.
2689
96142726
TT
26902014-06-30 Tom Tromey <tromey@redhat.com>
2691
2692 * symtab.c (operator_chars): Make parameters and return type
2693 const.
2694 (file_matches): Make "files" const.
2695 (struct search_symbols_data) <files>: Now const.
2696 (search_symbols): Make "regexp" and "files" parameters const.
2697 Update.
2698 (symtab_symbol_info): Remove cast.
2699 (rbreak_command): Update.
2700 * symtab.h (search_symbols): Update.
2701
b67a2c6f
YQ
27022014-06-27 Yao Qi <yao@codesourcery.com>
2703
2704 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2705 Change parameter type to 'struct thread_info *'. Caller
2706 updated.
2707 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2708 Update declaration.
2709 * dummy-frame.c (struct dummy_frame_id): New.
2710 (dummy_frame_id_eq): New function.
2711 (struct dummy_frame) <id>: Change its type to 'struct
2712 dummy_frame_id'.
2713 (dummy_frame_push): Add parameter ptid and save it in
2714 dummy_frame_id.
2715 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2716 inferior_ptid.
2717 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2718 to inferior_ptid.
2719 (lookup_dummy_frame): Change parameter type to 'struct
2720 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2721 instead of frame_id_eq.
2722 (dummy_frame_pop): Add parameter ptid. Callers updated.
2723 Update comments. Compose dummy_frame_id and pass it to
2724 lookup_dummy_frame.
2725 (dummy_frame_discard): Add parameter ptid.
2726 (dummy_frame_sniffer): Compose dummy_frame_id and call
2727 dummy_frame_id_eq instead of frame_id_eq.
2728 (fprint_dummy_frames): Print ptid.
2729 * dummy-frame.h: Remove comments.
2730 (dummy_frame_push): Add ptid in declaration.
2731 (dummy_frame_pop, dummy_frame_discard): Likewise.
2732
5b10184c
TT
27332014-06-26 Tom Tromey <tromey@redhat.com>
2734
2735 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2736 * command.h (error_no_arg): Update.
2737
06900326
TT
27382014-06-26 Tom Tromey <tromey@redhat.com>
2739
2740 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2741 (do_show_command): Make "arg" const.
2742 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2743
c2bcbb1d
TT
27442014-06-26 Tom Tromey <tromey@redhat.com>
2745
2746 * record-full.c (record_full_get_bookmark): Make "args" const.
2747 (record_full_goto_bookmark): Make "raw_bookmark" const.
2748 * record.c (record_goto): New function.
2749 (cmd_record_goto): Use it. Now static.
2750 * record.h (record_goto): Declare.
2751 (cmd_record_goto): Remove declaration.
2752 * target-delegates.c: Rebuild.
2753 * target.h (struct target_ops) <to_get_bookmark,
2754 to_goto_bookmark>: Make parameter const.
2755
9cbe5fff
TT
27562014-06-26 Tom Tromey <tromey@redhat.com>
2757
2758 * defs.h (generic_load): Update.
2759 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2760 * monitor.c (monitor_load): Make "args" const.
2761 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2762 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2763 const.
2764 (mips_load): Make "file" const.
2765 * remote-sim.c (gdbsim_load): Make "args" const.
2766 * remote.c (remote_load): Make "name" const.
2767 * symfile.c (generic_load): Make "args" const.
2768 * target-delegates.c: Rebuild.
2769 * target.c (target_load): Make "arg" const.
2770 (debug_to_load): Make "args" const.
2771 * target.h (struct target_ops) <to_load>: Make parameter const.
2772 (target_load): Update.
2773
34a68019
TT
27742014-06-26 Tom Tromey <tromey@redhat.com>
2775
2776 PR symtab/16902:
2777 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2778 (dwarf2_physname, read_partial_die)
2779 (guess_partial_die_structure_name, fixup_partial_die)
2780 (guess_full_die_structure_name, anonymous_struct_prefix)
2781 (dwarf2_name): Use per-BFD obstack.
2782
efc889c1
YQ
27832014-06-26 Yao Qi <yao@codesourcery.com>
2784
2785 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2786 dummyframe and this_id into inner block below.
2787
4395285e
YQ
27882014-06-26 Yao Qi <yao@codesourcery.com>
2789
2790 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2791 with "signal_pass[0]" in the initialization of signal_pass.
2792
aef92902
MM
27932014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2794
2795 * record-btrace.c (record_btrace_generating_corefile)
2796 (record_btrace_prepare_to_generate_core)
2797 (record_btrace_done_generating_core): New.
2798 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2799 (record_btrace_store_registers, record_btrace_prepare_to_store):
2800 Forward request when generating a core file.
2801 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2802 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2803 to_done_generating_core.
2804
5fff78c4
MM
28052014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2806
2807 * target.h (target_ops) <to_prepare_to_generate_core>
2808 <to_done_generating_core>: New.
2809 (target_prepare_to_generate_core, target_done_generating_core): New.
2810 * target.c (target_prepare_to_generate_core)
2811 (target_done_generating_core): New.
2812 * target-delegates.c: Regenerate.
2813 * gcore.c: (write_gcore_file): Rename to ...
2814 (write_gcore_file_1): ...this.
2815 (write_gcore_file): Call target_prepare_to_generate_core
2816 and target_done_generating_core.
2817
1d1f1ccb
MM
28182014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2819
2820 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2821 * gcore.c (write_gcore_file): Free memory returned from
2822 make_corefile_notes.
2823 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2824 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2825
3343ef86
YQ
28262014-06-24 Yao Qi <yao@codesourcery.com>
2827
2828 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2829 (arm_linux_init_abi): Set skip_trampoline_code with
2830 gdbarch_skip_trampoline_code instead of
2831 find_solib_trampoline_target.
2832
18d18ac8
YQ
28332014-06-24 Yao Qi <yao@codesourcery.com>
2834
2835 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2836 arm_skip_bx_reg returns non-zero.
2837
80d8d390
YQ
28382014-06-24 Yao Qi <yao@codesourcery.com>
2839
2840 * arm-tdep.c (arm_skip_bx_reg): New function.
2841 (arm_skip_stub): Call arm_skip_bx_reg.
2842
6a18a01c
DB
28432014-06-23 Don Breazeal <donb@codesourcery.com>
2844
2845 * MAINTAINERS: Add myself as write-after-approval maintainer.
2846
8e9db26e
PA
28472014-06-23 Pedro Alves <palves@redhat.com>
2848
2849 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2850 DR_CONTROL before setting DR0..DR3.
2851 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2852 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2853 bits of DR_CONTROL related to the debug register slot being
2854 disabled. If all slots are vacant, clear local slowdown as well,
2855 and assert DR_CONTROL is 0.
2856
70afc5b7
SC
28572014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2858
2859 * python/lib/gdb/command/xmethods.py
2860 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2861 current progspace only if the string "progspace" matches LOCUS_RE.
2862
840ed64d
JK
28632014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2864
2865 Fix --with-system-readline with readline-6.3 patch 5.
2866 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2867 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2868 types.
2869
26f2dc30
TT
28702014-06-20 Tom Tromey <tromey@redhat.com>
2871
2872 * dwarf2read.c (dw2_get_real_path): Use correct type in
2873 OBSTACK_CALLOC.
2874 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2875
125f8a3d
GB
28762014-06-20 Gary Benson <gbenson@redhat.com>
2877
2878 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2879 * common/glibc_thread_db.h: Likewise.
2880 * common/i386-cpuid.h: Likewise.
2881 * common/i386-gcc-cpuid.h: Likewise.
2882 * common/linux-btrace.h: Likewise.
2883 * common/linux-osdata.h: Likewise.
2884 * common/linux-procfs.h: Likewise.
2885 * common/linux-ptrace.h: Likewise.
2886 * common/mips-linux-watch.h: Likewise.
2887 * common/linux-btrace.c: Moved to nat.
2888 * common/linux-osdata.c: Likewise.
2889 * common/linux-procfs.c: Likewise.
2890 * common/linux-ptrace.c: Likewise.
2891 * common/mips-linux-watch.c: Likewise.
2892 * nat/gdb_thread_db.h: Moved from common.
2893 * nat/glibc_thread_db.h: Likewise.
2894 * nat/i386-cpuid.h: Likewise.
2895 * nat/i386-gcc-cpuid.h: Likewise.
2896 * nat/linux-btrace.c: Likewise.
2897 * nat/linux-btrace.h: Likewise.
2898 * nat/linux-osdata.c: Likewise.
2899 * nat/linux-osdata.h: Likewise.
2900 * nat/linux-procfs.c: Likewise.
2901 * nat/linux-procfs.h: Likewise.
2902 * nat/linux-ptrace.c: Likewise.
2903 * nat/linux-ptrace.h: Likewise.
2904 * nat/mips-linux-watch.c: Likewise.
2905 * nat/mips-linux-watch.h: Likewise.
2906 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2907 (object file files): Reordered.
2908 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2909 of glibc_thread_db.h.
2910
42995dbd
GB
29112014-06-20 Gary Benson <gbenson@redhat.com>
2912
2913 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2914 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2915 (i386_dr_low): Likewise.
2916 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2917 (i386_dr_low_set_addr): Likewise.
2918 (i386_dr_low_get_addr): Likewise.
2919 (i386_dr_low_can_set_control): Likewise.
2920 (i386_dr_low_set_control): Likewise.
2921 (i386_dr_low_get_control): Likewise.
2922 (i386_dr_low_get_status): Likewise.
2923 (i386_get_debug_register_length): Likewise.
2924 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2925 (i386_dr_low): Likewise.
2926 * nat/i386-dregs.c (i386-low.h): Remove include.
2927 (i386-nat.h): Likewise.
2928 (nat/i386-dregs.h): New include.
2929 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2930 (i386_dr_low_set_addr): Likewise.
2931 (i386_dr_low_get_addr): Likewise.
2932 (i386_dr_low_can_set_control): Likewise.
2933 (i386_dr_low_set_control): Likewise.
2934 (i386_dr_low_get_control): Likewise.
2935 (i386_dr_low_get_status): Likewise.
2936 (i386_get_debug_register_length): Likewise.
2937 (debug_hw_points): Likewise.
2938
3ed9baed
IB
29392014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2940
2941 * Makefile.in (SFILES): Add d-exp.y.
2942 (YYFILES): Add d-exp.c.
2943 (YYOBJ): Add d-exp.o.
2944 (local-maintainer-clean): Delete d-exp.c.
2945 * d-exp.y: New file.
2946 * d-lang.h (d_parse): New declaration.
2947 (d_error): New declaration.
2948 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2949 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2950 PREC_ORDER operators.
2951 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2952
78c164b0
YQ
29532014-06-19 Yao Qi <yao@codesourcery.com>
2954
2955 * gdbthread.h (any_running): Remove the declaration.
2956 * thread.c (any_running): Remove.
2957
f6e29b6e
YQ
29582014-06-19 Yao Qi <yao@codesourcery.com>
2959
2960 * gdbthread.h (struct thread_info) <state>: Change its type to
2961 'enum thread_state'. Update comments.
2962
034f788c
PA
29632014-06-19 Pedro Alves <palves@redhat.com>
2964
2965 * gdbthread.h (ALL_THREADS): Delete.
2966 (ALL_NON_EXITED_THREADS): New macro.
2967 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2968 instead of ALL_THREADS.
2969 * infrun.c (find_thread_needs_step_over)
2970 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2971 instead of ALL_THREADS.
2972 * record-btrace.c (record_btrace_open)
2973 (record_btrace_stop_recording, record_btrace_close)
2974 (record_btrace_is_replaying, record_btrace_resume)
2975 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2976 * remote.c (append_pending_thread_resumptions): Likewise.
2977 * thread.c (thread_apply_all_command): Likewise.
2978
46e33252
GB
29792014-06-19 Gary Benson <gbenson@redhat.com>
2980
2981 * i386-nat.c (i386_stopped_by_watchpoint):
2982 Use i386_dr_stopped_by_watchpoint.
2983 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2984 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2985
3a8ee006
GB
29862014-06-19 Gary Benson <gbenson@redhat.com>
2987
2988 * nat/i386-dregs.c: New file.
2989 * Makefile.in (i386-dregs.o): New rule.
2990 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2991 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2992 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2993 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2994 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2995 * config/i386/go32.mh (NATDEPFILES): Likewise.
2996 * config/i386/linux.mh (NATDEPFILES): Likewise.
2997 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2998 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2999 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
3000 * i386-nat.h (debug_hw_points): New declaration.
3001 * i386-nat.c (breakpoint.h): Remove include.
3002 (command.h): Likewise.
3003 (target.h): Likewise.
3004 (gdb_assert.h): Likewise.
3005 (debug_hw_points): Made nonstatic.
3006 (debug_printf): Now in i386-dregs.c.
3007 (TARGET_HAS_DR_LEN_8): Likewise.
3008 (DR_CONTROL_SHIFT): Likewise.
3009 (DR_CONTROL_SIZE): Likewise.
3010 (DR_RW_EXECUTE): Likewise.
3011 (DR_RW_WRITE): Likewise.
3012 (DR_RW_READ): Likewise.
3013 (DR_RW_IORW): Likewise.
3014 (DR_LEN_1): Likewise.
3015 (DR_LEN_2): Likewise.
3016 (DR_LEN_4): Likewise.
3017 (DR_LEN_8): Likewise.
3018 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3019 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3020 (DR_ENABLE_SIZE): Likewise.
3021 (DR_LOCAL_SLOWDOWN): Likewise.
3022 (DR_GLOBAL_SLOWDOWN): Likewise.
3023 (DR_CONTROL_RESERVED): Likewise.
3024 (I386_DR_CONTROL_MASK): Likewise.
3025 (I386_DR_VACANT): Likewise.
3026 (I386_DR_LOCAL_ENABLE): Likewise.
3027 (I386_DR_GLOBAL_ENABLE): Likewise.
3028 (I386_DR_DISABLE): Likewise.
3029 (I386_DR_SET_RW_LEN): Likewise.
3030 (I386_DR_GET_RW_LEN): Likewise.
3031 (I386_DR_WATCH_HIT): Likewise.
3032 (i386_wp_op_t): Likewise.
3033 (i386_show_dr): Likewise.
3034 (i386_length_and_rw_bits): Likewise.
3035 (i386_insert_aligned_watchpoint): Likewise.
3036 (i386_remove_aligned_watchpoint): Likewise.
3037 (i386_handle_nonaligned_watchpoint): Likewise.
3038 (i386_update_inferior_debug_regs): Likewise.
3039 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3040 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3041 (i386_region_ok_for_watchpoint):
3042 Use i386_dr_region_ok_for_watchpoint.
3043 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3044
322a8e06
GB
30452014-06-19 Gary Benson <gbenson@redhat.com>
3046
3047 * i386-nat.c (i386_insert_hw_breakpoint): Use
3048 i386_insert_watchpoint.
3049 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3050
8f26655c
GB
30512014-06-19 Gary Benson <gbenson@redhat.com>
3052
3053 * i386-nat.c (i386_dr_show): Renamed to
3054 i386_show_dr and made static. All uses updated.
3055 (i386_dr_length_and_rw_bits): Renamed to
3056 i386_length_and_rw_bits and made static.
3057 All uses updated.
3058 (i386_dr_insert_aligned_watchpoint): Renamed to
3059 i386_insert_aligned_watchpoint and made static.
3060 All uses updated.
3061 (i386_dr_remove_aligned_watchpoint): Renamed to
3062 i386_remove_aligned_watchpoint and made static.
3063 All uses updated.
3064 (i386_dr_update_inferior_debug_regs): Renamed to
3065 i386_update_inferior_debug_regs and made static.
3066 All uses updated.
3067 * nat/i386-dregs.h (i386_dr_show): Removed.
3068 (i386_dr_length_and_rw_bits): Likewise.
3069 (i386_dr_insert_aligned_watchpoint): Likewise.
3070 (i386_dr_remove_aligned_watchpoint): Likewise.
3071 (i386_dr_update_inferior_debug_regs): Likewise.
3072
992c7d70
GB
30732014-06-19 Gary Benson <gbenson@redhat.com>
3074
3075 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3076 * configure: Regenerate.
3077 * config.in: Likewise.
3078 * main.c (signal.h): New include.
3079 (setup_alternate_signal_stack): New function.
3080 (captured_main): Call the above.
3081 * cp-support.c (signal.h): New include.
3082 (catch_demangler_crashes): New flag.
3083 (SIGJMP_BUF): New define.
3084 (SIGSETJMP): Likewise.
3085 (SIGLONGJMP): Likewise.
3086 (gdb_demangle_jmp_buf): New static global.
3087 (gdb_demangle_attempt_core_dump): Likewise.
3088 (gdb_demangle_signal_handler): New function.
3089 (gdb_demangle): If catch_demangler_crashes is set, install the
3090 above signal handler before calling bfd_demangle, and restore
3091 the original signal handler afterwards. Display the offending
3092 symbol and call demangler_warning the first time a segmentation
3093 fault is caught.
3094 (_initialize_cp_support): New maint set/show command.
3095
eae7090b
GB
30962014-06-19 Gary Benson <gbenson@redhat.com>
3097
3098 * utils.h (resource_limit_kind): New enum.
3099 (can_dump_core): New declaration.
3100 (warn_cant_dump_core): Likewise.
3101 (dump_core): Likewise.
3102 * utils.c (dump_core): Made nonstatic. Added new
3103 parameter "limit_kind".
3104 (can_dump_core): Made nonstatic. Moved printing code to...
3105 (warn_cant_dump_core): New function.
3106 (can_dump_core_warn): Likewise.
3107 (internal_vproblem): Replace calls to can_dump_core with
3108 calls to can_dump_core_warn. Supply new argument to each.
3109
57fcfb1b
GB
31102014-06-19 Gary Benson <gbenson@redhat.com>
3111
3112 * utils.h (demangler_vwarning): New declaration.
3113 (demangler_warning): Likewise.
3114 * utils.c (struct internal_problem)
3115 <user_settable_should_quit>: New field.
3116 <user_settable_should_dump_core>: Likewise
3117 (internal_error_problem): Add values for above new fields.
3118 (internal_warning_problem): Likewise.
3119 (demangler_warning_problem): New static global.
3120 (demangler_vwarning): New function.
3121 (demangler_warning): Likewise.
3122 (add_internal_problem_command): Selectively add commands.
3123 (_initialize_utils): New internal problem command.
3124 * maint.c (maintenance_demangler_warning): New function.
3125 (_initialize_maint_cmds): New command.
3126
17a40b44
TT
31272014-06-18 Tom Tromey <tromey@redhat.com>
3128
3129 * f-valprint.c (info_common_command_for_block): Update.
3130 * symtab.h (struct general_symbol_info) <common_block>: Now
3131 const.
3132
346d1dfe
TT
31332014-06-18 Tom Tromey <tromey@redhat.com>
3134
3135 * symtab.h (struct symtab) <blockvector>: Now const.
3136 * ada-lang.c (ada_add_global_exceptions): Update.
3137 * buildsym.c (augment_type_symtab): Update.
3138 * dwarf2read.c (dw2_lookup_symbol): Update.
3139 * jit.c (finalize_symtab): Update.
3140 * jv-lang.c (add_class_symtab_symbol): Update.
3141 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3142 Update.
3143 * objfiles.c (objfile_relocate1): Update.
3144 * psymtab.c (lookup_symbol_aux_psymtabs)
3145 (maintenance_check_psymtabs): Update.
3146 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3147 Update.
3148 * spu-tdep.c (spu_catch_start): Update.
3149 * symmisc.c (dump_symtab_1): Update.
3150 * symtab.c (lookup_global_symbol_from_objfile)
3151 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3152 (basic_lookup_transparent_type_quick)
3153 (basic_lookup_transparent_type, find_pc_sect_symtab)
3154 (find_pc_sect_line, search_symbols): Update.
3155 * block.c (find_block_in_blockvector): Make "bl" const.
3156 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3157 const.
3158 (blockvector_contains_pc): Make "bv" const.
3159 (block_for_pc_sect): Update.
3160 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3161 (blockvector_contains_pc): Update.
3162 * breakpoint.c (resolve_sal_pc): Update.
3163 * inline-frame.c (block_starting_point_at): Update.
3164
1834676b
TT
31652014-06-18 Tom Tromey <tromey@redhat.com>
3166
3167 * completer.c (complete_line): Make "line_buffer" const.
3168 * completer.h (complete_line): Update.
3169
ac1a991b
TT
31702014-06-18 Tom Tromey <tromey@redhat.com>
3171
3172 * symtab.c (add_macro_name): Remove unneeded cast.
3173
5bc98e52
TT
31742014-06-18 Tom Tromey <tromey@redhat.com>
3175
3176 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3177 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3178
8236def8
TT
31792014-06-18 Tom Tromey <tromey@redhat.com>
3180
3181 * probe.c (info_probes_for_ops): Make "arg" const.
3182 * probe.h (info_probes_for_ops): Update.
3183
3977b71f
TT
31842014-06-18 Tom Tromey <tromey@redhat.com>
3185
3186 * varobj.c (varobj_create): Update.
3187 * valops.c (value_of_this): Update.
3188 * tracepoint.c (add_local_symbols, scope_info): Update.
3189 * symtab.h (struct general_symbol_info) <block>: Now const.
3190 * symtab.c (skip_prologue_sal)
3191 (default_make_symbol_completion_list_break_on)
3192 (skip_prologue_using_sal): Update.
3193 * stack.h (iterate_over_block_locals)
3194 (iterate_over_block_local_vars): Update.
3195 * stack.c (print_frame_args): Update.
3196 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3197 parameter const.
3198 (get_selected_block): Make return type const.
3199 * python/py-frame.c (frapy_block): Update.
3200 * python/py-block.c (gdbpy_block_for_pc): Update.
3201 * p-exp.y (%union) <bval>: Now const.
3202 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3203 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3204 * m2-exp.y (%union) <bval>: Now const.
3205 * linespec.c (get_current_search_block): Make return type const.
3206 (create_sals_line_offset, find_label_symbols): Update.
3207 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3208 Update.
3209 (block_starting_point_at): Make "block" const.
3210 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3211 (check_exception_resume): Update.
3212 * guile/scm-frame.c (gdbscm_frame_block): Update.
3213 * guile/scm-block.c (gdbscm_lookup_block): Update.
3214 * frame.h (get_frame_block): Update.
3215 (get_selected_block): Make return type const.
3216 * frame.c (frame_id_inner): Update.
3217 * f-valprint.c (info_common_command_for_block)
3218 (info_common_command): Update.
3219 * dwarf2loc.c (dwarf2_find_location_expression)
3220 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3221 (locexpr_describe_location_piece): Update.
3222 * c-exp.y (%union) <bval>: Now const.
3223 * breakpoint.c (resolve_sal_pc): Update.
3224 * blockframe.c (get_frame_block):Make return type const.
3225 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3226 (block_innermost_frame): Update.
3227 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3228 (block_for_pc, block_for_pc_sect): Update.
3229 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3230 'pblock' const.
3231 (block_for_pc_sect, block_for_pc): Make return type const.
3232 * ax-gdb.c (gen_expr): Update.
3233 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3234 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3235 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3236 (ada_read_var_value): Update.
3237 * ada-exp.y (struct name_info) <block>: Now const.
3238 (%union): Likewise.
3239 (block_lookup): Constify.
3240
b9228891
GB
32412014-06-18 Gary Benson <gbenson@redhat.com>
3242
3243 * nat/i386-dregs.h: New file.
3244 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3245 * i386-nat.h (i386-dregs.h): New include.
3246 (DR_FIRSTADDR): Now in i386-dregs.h.
3247 (DR_LASTADDR): Likewise.
3248 (DR_NADDR): Likewise.
3249 (DR_STATUS): Likewise.
3250 (DR_CONTROL): Likewise.
3251 (i386_debug_reg_state): Likewise.
3252 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3253
a1aa2221
LM
32542014-06-18 Don Breazeal <donb@codesourcery.com>
3255
3256 * breakpoint.c (set_longjmp_breakpoint): Call
3257 momentary_breakpoint_from_master with additional argument.
3258 (set_longjmp_breakpoint_for_call_dummy): Call
3259 momentary_breakpoint_from_master with additional argument.
3260 (set_std_terminate_breakpoint): Call
3261 momentary_breakpoint_from_master with additional argument.
3262 (momentary_breakpoint_from_master): Add argument to function
3263 definition and use it to initialize structure member flag.
74228e77 3264 (clone_momentary_breakpoint): Call
a1aa2221
LM
3265 momentary_breakpoint_from_master with additional argument.
3266 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3267 member flags set in momentary_breakpoint_from_master.
3268
4be83cc2
GB
32692014-06-18 Gary Benson <gbenson@redhat.com>
3270
3271 * i386-nat.c (i386_show_dr): Renamed to
3272 i386_dr_show and made nonstatic. All uses updated.
3273 (i386_length_and_rw_bits): Renamed to
3274 i386_dr_length_and_rw_bits and made nonstatic.
3275 All uses updated.
3276 (i386_insert_aligned_watchpoint): Renamed to
3277 i386_dr_insert_aligned_watchpoint and made nonstatic.
3278 All uses updated.
3279 (i386_remove_aligned_watchpoint): Renamed to
3280 i386_dr_remove_aligned_watchpoint and made nonstatic.
3281 All uses updated.
3282 (i386_update_inferior_debug_regs): Renamed to
3283 i386_dr_update_inferior_debug_regs and made nonstatic.
3284 All uses updated.
3285
131aa0d4
GB
32862014-06-18 Gary Benson <gbenson@redhat.com>
3287
3288 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3289 (i386_dr_low_can_set_control): Likewise.
3290 (i386_dr_low_set_addr): Likewise.
3291 (i386_dr_low_set_control): Likewise.
3292 (i386_dr_low_get_addr): Likewise.
3293 (i386_dr_low_get_status): Likewise.
3294 (i386_dr_low_get_control): Likewise.
3295 (i386_insert_aligned_watchpoint): Use new macros.
3296 (i386_update_inferior_debug_regs): Likewise.
3297 (i386_stopped_data_address): Likewise.
3298
d9305f7f
GB
32992014-06-18 Gary Benson <gbenson@redhat.com>
3300
3301 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3302 New parameter. All uses updated.
3303
ea008da4
GB
33042014-06-18 Gary Benson <gbenson@redhat.com>
3305
3306 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3307 All uses updated.
3308
1b6d4134
GB
33092014-06-18 Gary Benson <gbenson@redhat.com>
3310
3311 * i386-nat.c (debug_printf): New macro.
3312 (i386_get_debug_register_length): Likewise.
3313 (TARGET_HAS_DR_LEN_8): Use above macro.
3314 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3315 and printf_unfiltered. Use phex to format values.
3316
9b4550ef
GB
33172014-06-18 Gary Benson <gbenson@redhat.com>
3318
3319 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3320 Make const.
3321
6e62758f
GB
33222014-06-18 Gary Benson <gbenson@redhat.com>
3323
3324 * i386-nat.c: Comment changes.
3325
51c79e94
GB
33262014-06-18 Gary Benson <gbenson@redhat.com>
3327
3328 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3329
3e11889a
GB
33302014-06-18 Gary Benson <gbenson@redhat.com>
3331
3332 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3333 (i386_insert_aligned_watchpoint): Likewise.
3334 (i386_remove_aligned_watchpoint): Likewise.
3335 (i386_handle_nonaligned_watchpoint): Likewise.
3336
fc6e2f03
GB
33372014-06-18 Gary Benson <gbenson@redhat.com>
3338
3339 * i386-nat.c: Whitespace changes.
3340
2afe7d50
SB
33412014-06-17 Samuel Bronson <naesten@gmail.com>
3342
3343 * MAINTAINERS: Update Roland McGrath's email address.
3344 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3345 Red Hat a while ago, and giving me a current address.
2afe7d50 3346
3bca49ee
TT
33472014-06-17 Tom Tromey <tromey@redhat.com>
3348
3349 * utils.h (savestring): Remove declaration.
3350
6e366df1
TT
33512014-06-17 Tom Tromey <tromey@redhat.com>
3352
3353 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3354
6be47f0c
KS
33552014-06-16 Keith Seitz <keiths@redhat.com>
3356
3357 PR mi/15863
3358 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3359 to update the varobj if inferior_ptid is null_ptid.
3360
7bc112c1
TT
33612014-06-16 Tom Tromey <tromey@redhat.com>
3362
3363 * target.h (struct target_ops) <to_info_proc>: Make parameter
3364 const.
3365 (target_info_proc): Update.
3366 * target.c (target_info_proc): Make "args" const.
3367 * procfs.c (procfs_info_proc): Update.
3368 * linux-tdep.c (linux_info_proc): Update.
3369 (linux_core_info_proc_mappings): Make "args" const.
3370 (linux_core_info_proc): Update.
3371 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3372 * gdbarch.c: Rebuild.
3373 * gdbarch.h: Rebuild.
3374 * corelow.c (core_info_proc): Update.
3375
fee354ee
TT
33762014-06-16 Tom Tromey <tromey@redhat.com>
3377
3378 * target.h (struct target_ops) <to_disconnect>: Make parameter
3379 const.
3380 (target_disconnect): Update.
3381 * target.c (target_disconnect): Make "args" const.
3382 * target-delegates.c: Rebuild.
3383 * remote.c (remote_disconnect): Update.
3384 * record.h (record_disconnect): Update.
3385 * record.c (record_disconnect): Update.
3386 * inf-child.c (inf_child_disconnect): Update.
3387
a30bf1f1
TT
33882014-06-16 Tom Tromey <tromey@redhat.com>
3389
3390 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3391 * target.c (debug_to_rcmd, default_rcmd): Update.
3392 * target-delegates.c: Rebuild.
3393 * remote.c (remote_rcmd): Update.
3394 * monitor.c (monitor_rcmd): Update.
3395
d03de421
PA
33962014-06-16 Pedro Alves <palves@redhat.com>
3397
3398 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3399 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3400 have OBJF_SHARED set.
3401 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3402 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3403 instead of OBJF_USERLOADED.
3404 * objfiles.h (OBJF_SHARED): Update comment.
3405 (userloaded_objfile_contains_address_p): Rename to ...
3406 (shared_objfile_contains_address_p): ... this, and update
3407 comments.
3408 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3409 new objfile.
3410 (remove_symbol_file_command): Skip objfiles that don't have
3411 OBJF_SHARED set.
3412
99f4262f
TT
34132014-06-16 Tom Tromey <tromey@redhat.com>
3414
3415 * minsyms.h (prim_record_minimal_symbol)
3416 (prim_record_minimal_symbol_and_info): Update comments.
3417
97d66cc6
EZ
34182014-06-14 Eli Zaretskii <eliz@gnu.org>
3419
3420 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3421 or --without-guile, according to how GDB was built.
3422
635c7e8a
TT
34232014-06-13 Tom Tromey <tromey@redhat.com>
3424
3425 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3426 to help_list.
3427 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3428 to help_list.
3429 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3430 help_list.
3431 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3432 help_list.Pass all_commands, not -1, to help_list.
3433 * cli/cli-dump.c (dump_command, append_command)
3434 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3435 (binary_dump_command, binary_append_command): Pass all_commands,
3436 not -1, to help_list.
3437 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3438 -1, to help_list.
3439 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3440 -1, to help_list.
3441 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3442 help_list.
3443 * top.c (set_history): Pass all_commands, not -1, to help_list.
3444 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3445 all_commands, not -1, to help_list.
3446 * symfile.c (overlay_command): Pass all_commands, not -1, to
3447 help_list.
3448 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3449 help_list.
3450 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3451 help_list.
3452 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3453 -1, to help_list.
3454 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3455 not -1, to help_list.
3456 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3457 not -1, to help_list.
3458 * maint.c (maintenance_command, maintenance_info_command)
3459 (maintenance_print_command, maintenance_set_cmd): Pass
3460 all_commands, not -1, to help_list.
3461 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3462 help_list.
3463 * language.c (set_check): Pass all_commands, not -1, to help_list.
3464 * infcmd.c (unset_command): Pass all_commands, not -1, to
3465 help_list.
3466 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3467 help_list.
3468 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3469 help_list.
3470 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3471 help_list.
3472 * breakpoint.c (save_command): Pass all_commands, not -1, to
3473 help_list.
3474 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3475 all_commands, not -1, to help_list.
3476
b94ade42
PL
34772014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3478
3479 * regcache.c (struct register_to_invalidate): New structure.
3480 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3481 functions.
3482 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3483
31f628ae
YQ
34842014-06-12 Yao Qi <yao@codesourcery.com>
3485
3486 * varobj.c (varobj_get_num_children): Call
3487 varobj_is_dynamic_p.
3488 (varobj_list_children): Likewise.
3489 (varobj_update): Likewise. Update comments.
3490
cde5ef40
YQ
34912014-06-12 Yao Qi <yao@codesourcery.com>
3492
3493 * varobj.c (varobj_pretty_printed_p): Rename to ...
3494 (varobj_is_dynamic_p): ... this. New function.
3495 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3496 (varobj_is_dynamic_p): Declare.
3497 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3498 (mi_print_value_p, varobj_update_one): Likewise.
3499
576ea091
YQ
35002014-06-12 Pedro Alves <pedro@codesourcery.com>
3501 Yao Qi <yao@codesourcery.com>
3502
3503 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3504 (varobj_get_iterator): Wrap up code for pretty-printer by
3505 "#if HAVE_PYTHON" and "#endif".
3506 (update_dynamic_varobj_children): Likewise.
3507
827f100c
YQ
35082014-06-12 Pedro Alves <pedro@codesourcery.com>
3509 Yao Qi <yao@codesourcery.com>
3510
3511 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3512 gdb_python_initialized is false. Move some code from varobj.c.
3513 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3514 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3515 (struct varobj_item): Moved to varobj-iter.h".
3516 (varobj_clear_saved_item): New function.
3517 (update_dynamic_varobj_children): Move python-related code to
3518 py-varobj.c.
3519 (free_variable): Call varobj_clear_saved_item and
3520 varobj_iter_delete.
3521
e5250216
YQ
35222014-06-12 Pedro Alves <pedro@codesourcery.com>
3523 Yao Qi <yao@codesourcery.com>
3524
3525 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3526 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3527 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3528 (py-varobj.o): New rule.
3529 * python/py-varobj.c: New file.
3530 * python/python-internal.h (py_varobj_get_iterator): Declare.
3531 * varobj-iter.h: New file.
3532 * varobj.c: Include "varobj-iter.h"
3533 (struct varobj) <child_iter>: Change its type from "PyObject *"
3534 to "struct varobj_iter *".
3535 <saved_item>: Likewise.
3536 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3537 [HAVE_PYTHON] (varobj_get_iterator): New function.
3538 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3539 python-specific code to python/py-varobj.c.
3540 (install_visualizer): Call varobj_iter_delete instead of
3541 Py_XDECREF.
3542 * varobj.h (varobj_ensure_python_env): Declare.
3543
5a2e0d6e
YQ
35442014-06-12 Yao Qi <yao@codesourcery.com>
3545
3546 * varobj.c (struct varobj_item): New structure.
3547 (create_child_with_value): Update declaration.
3548 (varobj_add_child): Replace arguments 'name' and 'value' with
3549 'item'. All callers updated.
3550 (install_dynamic_child): Likewise.
3551 (update_dynamic_varobj_children): Likewise.
3552 (varobj_add_child): Likewise.
3553 (create_child_with_value): Likewise.
3554
919b9a93
JB
35552014-06-11 Joel Brobecker <brobecker@adacore.com>
3556
3557 * NEWS: Create a new section for the next release branch.
3558 Rename the section of the current branch, now that it has
3559 been cut.
3560
71a55bdf
JB
35612014-06-11 Joel Brobecker <brobecker@adacore.com>
3562
3563 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3564 * version.in: Bump version to 7.8.50.DATE-cvs.
3565
364fe1f7
PA
35662014-06-11 Pedro Alves <palves@redhat.com>
3567
3568 PR remote/17028
3569 * ser-mingw.c (net_windows_socket_check_pending): New function.
3570 (net_windows_select_thread): Ignore spurious wakeups. Use
3571 net_windows_socket_check_pending.
3572 (net_windows_wait_handle): Check for pending events with
3573 ioctlsocket, through net_windows_socket_check_pending, instead of
3574 checking the socket's event.
3575
5a6c7709
SC
35762014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3577
3578 * python/python-internal.h (gdb_PyObject_GetAttrString)
3579 (gdb_PyObject_HasAttrString): New inline function definitions.
3580 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3581 char * of the second argument to PyObject_GetAttrString.
74228e77 3582
0e58ee40
JB
35832014-06-10 Joel Brobecker <brobecker@adacore.com>
3584
3585 * serial.c (serial_write): Fix index of character to be printed
3586 in call to serial_logchar when serial debug traces are enabled.
3587
d190df30
JB
35882014-06-10 Joel Brobecker <brobecker@adacore.com>
3589
3590 * gdbtypes (resolve_dynamic_range): Add function description.
3591
b4b01d36
PA
35922014-06-09 Pedro Alves <palves@redhat.com>
3593
3594 * linux-nat.c (linux_child_follow_fork): Initialize status with
3595 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3596 inner block. Only pass the signal to PTRACE_DETACH if in pass
3597 state.
3598
3657956b
GB
35992014-06-09 Gary Benson <gbenson@redhat.com>
3600
3601 * common/signals.c (gdb_signal_from_host): Reorder to separate
3602 the always-available ANSI-standard signals from the signals that
3603 require checking.
3604 (do_gdb_signal_to_host): Likewise.
3605 * proc-events.c (signal_table): Likewise.
3606
c077881a
HZ
36072014-06-08 Hui Zhu <hui@codesourcery.com>
3608
3609 * common/linux-ptrace.c (linux_disable_event_reporting): New
3610 function.
3611 * common/linux-ptrace.h (linux_disable_event_reporting): New
3612 declaration.
3613 * linux-nat.c (linux_child_follow_fork): Do a single step before
3614 detach.
3615
4186eb54
KS
36162014-06-07 Keith Seitz <keiths@redhat.com>
3617
3618 Revert:
3619 PR c++/16253
3620 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3621 from symbol_matches_domain in symtab.c. All local callers
3622 of symbol_matches_domain updated.
3623 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3624 search STRUCT_DOMAIN.
3625 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3626 independently. standard_lookup will do that automatically.
3627 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3628 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3629 (cp_lookup_symbol_in_namespace): Likewise.
3630 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3631 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3632 may return a STRUCT_DOMAIN match.
3633 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3634 * cp-support.c: Include language.h.
3635 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3636 VAR_DOMAIN.
3637 * psymtab.c (match_partial_symbol): Compare the requested
3638 domain with the symbol's domain directly.
3639 (lookup_partial_symbol): Likewise.
3640 * symtab.c (lookup_symbol_in_language): Explain when/why
3641 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3642 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3643 appropriate languages.
3644 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3645 and moved to ada-lang.c
3646 (lookup_block_symbol): Explain that this function only returns
3647 symbol matching the requested DOMAIN.
3648 Compare the requested domain with the symbol's domain directly.
3649 (iterate_over_symbols): Compare the requested domain with the
3650 symbol's domain directly.
3651 * symtab.h (symbol_matches_domain): Remove.
3652
25326a28 36532014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3654
3655 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3656 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3657 (gdbscm_guile_version_is_at_least): Declare.
3658 (gdbscm_scm_string_to_int): Declare.
3659 * guile/guile.c (gdbscm_guile_major_version): New global.
3660 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3661 (guile_datadir): New static global.
3662 (gdbscm_guile_data_directory): New function.
3663 (initialize_scheme_side): Update.
3664 (misc_guile_functions): Add guile-data-directory.
3665 (initialize_gdb_module): Fetch guile version number.
3666 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3667 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3668 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3669 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3670 comments.
3671 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3672 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3673 * guile/scm-value.c (gdbscm_value_to_string): Only call
3674 scm_port_conversion_strategy if Guile version >= 2.0.6.
3675
0a770bb2 36762014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3677
3678 * main.c (print_gdb_help): Add -q and --silent.
3679
73ba372c
GB
36802014-06-06 Gary Benson <gbenson@redhat.com>
3681
3682 * common/signals.c: Remove preprocessor conditionals for
3683 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3684 SIGSEGV and SIGTERM.
3685 * proc-events.c: Likewise.
3686
c33b2f12
MM
36872014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3688
3689 * symfile.c (symfile_free_objfile): Remove restriction to
3690 OBJF_USERLOADED.
3691 * symfile-mem.c (symbol_file_add_from_memory): Call
3692 add_target_sections_of_objfile.
3693
fb934770
LC
36942014-06-05 Ludovic Courtès <ludo@gnu.org>
3695
3696 * guile/scm-value.c (gdbscm_history_append_x): Use
3697 'vlscm_get_value_smob_arg_unsafe' instead of
3698 'vlscm_scm_to_value'.
3699
6ef284bd
SM
37002014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3701
3702 PR mi/15806
3703 * utils.c (printchar): Don't escape at all if quoter is NUL.
3704 Update function documentation to clarify effect of parameter
3705 QUOTER.
3706 * remote.c (escape_buffer): Pass '\\' as the quoter to
3707 fputstrn_unfiltered.
3708 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3709 generate the output.
3710 (mi_solib_unloaded): Same.
3711
270c9937
JB
37122014-06-05 Joel Brobecker <brobecker@adacore.com>
3713
3714 * development.sh: Delete.
3715 * Makefile.in (config.status): Adjust dependency on development.sh.
3716 * configure.ac: Adjust development.sh source call.
3717 * configure: Regenerate.
3718
16f691fb
DE
37192014-06-04 Doug Evans <xdje42@gmail.com>
3720
3721 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3722 is_scheme_bkpt, spec.
3723 (bpscm_make_breakpoint_smob): Initialize new members.
3724 (gdbscm_create_breakpoint_x): Split into two ...
3725 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3726 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3727 (scheme_function breakpoint_functions): Update.
3728 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3729 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3730 register-breakpoint!.
3731
ef7cab6b
JB
37322014-06-04 Joel Brobecker <brobecker@adacorer.com>
3733
3734 PR server/17023
3735 * mem-break.c (z_type_supported): Return zero if
3736 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3737
012370f6
TT
37382014-06-04 Tom Tromey <tromey@redhat.com>
3739
3740 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3741 value_from_contents_and_address_unresolved.
3742 (ada_template_to_fixed_record_type_1): Likewise.
3743 (ada_which_variant_applies): Likewise.
3744 * value.h (value_from_contents_and_address_unresolved): Declare.
3745 * value.c (value_from_contents_and_address_unresolved): New
3746 function.
3747 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3748 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3749 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3750
92e2a17f
TT
37512014-06-04 Tom Tromey <tromey@redhat.com>
3752
3753 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3754
c0939df1
TT
37552014-06-04 Tom Tromey <tromey@redhat.com>
3756
3757 * procfs.c (procfs_attach): Make "args" const.
3758 * windows-nat.c (windows_attach): Make "args" const.
3759 * nto-procfs.c (procfs_attach): Make "args" const.
3760 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3761 * go32-nat.c (go32_attach): Make "args" const.
3762 * gnu-nat.c (gnu_attach): Make "args" const.
3763 * darwin-nat.c (darwin_attach): Make "args" const.
3764 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3765 * linux-nat.c (linux_nat_attach): Make "args" const.
3766 * remote.c (extended_remote_attach_1, extended_remote_attach):
3767 Make "args" const.
3768 * target.h (struct target_ops) <to_attach>: Make "args" const.
3769 (find_default_attach): Likewise.
3770 * utils.c (parse_pid_to_attach): Make "args" const.
3771 * utils.h (parse_pid_to_attach): Update.
3772
8eaff7cd
TT
37732014-06-04 Tom Tromey <tromey@redhat.com>
3774
3775 * target-delegates.c: Rebuild.
3776 * target.c (default_thread_address_space): New function.
3777 (target_thread_address_space): Simplify.
3778 * target.h (struct target_ops) <to_thread_address_space>: Add
3779 TARGET_DEFAULT_FUNC.
3780
1913f160
DE
37812014-06-04 Doug Evans <xdje42@gmail.com>
3782
3783 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3784
70ad5bff
MM
37852014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3786
3787 * record-btrace.c: Include event-loop.h and inf-loop.h.
3788 (record_btrace_resume_exec_dir)
3789 (record_btrace_async_inferior_event_handler)
3790 (record_btrace_handle_async_inferior_event): New.
3791 (record_btrace_open): Create async event handler.
3792 (record_btrace_close): Delete async event handler.
3793 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3794 Mark async event handler.
3795 (record_btrace_execution_direction): New.
3796 (init_record_btrace_ops): Initialize to_execution_direction.
3797
b6210538
DE
37982014-06-03 Doug Evans <xdje42@gmail.com>
3799
3800 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3801 (gdbscm_make_parameter): Ditto.
3802
a5b1fd27
DE
38032014-06-03 Doug Evans <dje@google.com>
3804
3805 * exec.c (exec_close_1): Call clear_section_table instead of
3806 resize_section_table.
3807 (clear_section_table): New function.
3808 (resize_section_table): Make static. Rename arg num_added to
3809 adjustment.
3810 * exec.h (clear_section_table): Declare.
3811 (resize_section_table): Delete.
3812 * progspace.c (release_program_space): Call clear_section_table
3813 instead of resize_section_table.
3814
0c6e92a5
SC
38152014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3816
3817 * NEWS (Python Scripting): Add entry about the new xmethods
3818 feature.
3819
883964a7
SC
38202014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3821
3822 * python/py-xmethods.c: New file.
3823 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3824 (objfpy_dealloc): XDECREF on the new xmethods field.
3825 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3826 field.
3827 (objfpy_get_xmethods): New function.
3828 (objfile_getset): New entry 'xmethods'.
3829 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3830 (pspy_dealloc): XDECREF on the new xmethods field.
3831 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3832 field.
3833 (pspy_get_xmethods): New function.
3834 (pspace_getset): New entry 'xmethods'.
3835 * python/python-internal.h: Add declarations for new functions.
3836 * python/python.c (_initialize_python): Invoke
3837 gdbpy_initialize_xmethods.
3838 * python/lib/gdb/__init__.py (xmethods): New
3839 attribute.
3840 * python/lib/gdb/xmethod.py: New file.
3841 * python/lib/gdb/command/xmethods.py: New file.
3842
58992dc5
SC
38432014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3844
3845 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3846 best match method returned by find_overload_match is an xmethod.
3847 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3848 the best matching operator returned by find_overload_match is an
3849 xmethod.
3850 * valops.c: #include "extension.h".
3851 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3852 Return void. The list of matching source methods is returned in
3853 "fn_list" and a vector of matching debug method workers is
3854 returned in "xm_worker_vec". Update all callers.
3855 (value_find_oload_method_list): Likewise.
3856 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3857 non-NULL, then the index of the best matching method in this
3858 vector is returned. Update all callers.
3859 (find_overload_match): Include xmethods while performing overload
3860 resolution.
3861
e81e7f5e
SC
38622014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3863
3864 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3865 * extension-priv.h (struct extension_language_ops): Add the
3866 xmethod interface.
3867 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3868 get_matching_xmethod_workers, get_xmethod_argtypes,
3869 invoke_xmethod, free_xmethod_worker,
3870 free_xmethod_worker_vec): New functions.
3871 * extension.h: #include "common/vec.h".
3872 New function declarations.
3873 (struct xmethod_worker): New struct.
3874 (VEC (xmethod_worker_ptr)): New vector type.
3875 (xmethod_worker_ptr): New typedef.
3876 (xmethod_worker_vec): Likewise.
3877 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3878 builtin_type.
3879 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3880 (struct builtin_type): New field "xmethod".
3881 * valarith.c (value_ptradd): Assert that the value argument is not
3882 lval_xcallable.
3883 * valops.c (value_must_coerce_to_target): Return 0 for
3884 lval_xcallable values.
3885 * value.c (struct value): New field XM_WORKER in the field
3886 LOCATION.
3887 (value_address, value_raw_address): Return 0 for lval_xcallable
3888 values.
3889 (set_value_address): Assert that the value is not an
3890 lval_xcallable.
3891 (value_free): Free the associated xmethod worker when freeing
3892 lval_xcallable values.
3893 (set_value_component_location): Assert that the WHOLE value is not
3894 lval_xcallable.
3895 (value_of_xmethod, call_xmethod): New functions.
3896 * value.h: Declare "struct xmethod_worker".
3897 Declare new functions value_of_xmethod, call_xmethod.
3898
ef370185
JB
38992014-06-03 Joel Brobecker <brobecker@adacore.com>
3900 Pedro Alves <palves@redhat.com>
3901
3902 PR breakpoints/17000
3903 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3904 New function, extracted from software_breakpoint_inserted_here_p.
3905 (software_breakpoint_inserted_here_p): Replace factored out code
3906 by call to find_non_raw_software_breakpoint_inserted_here.
3907 (bp_target_info_copy_insertion_state): New function.
3908 (bkpt_insert_location): Handle the case of a single-step
3909 breakpoint already inserted at the same address.
3910 (bkpt_remove_location): Handle the case of a single-step
3911 breakpoint still inserted at the same address.
3912 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3913 breakpoint already inserted at the same address.
3914 (deprecated_remove_raw_breakpoint): Handle the case of a
3915 non-raw breakpoint still inserted at the same address.
3916 (find_single_step_breakpoint): New function, extracted from
3917 single_step_breakpoint_inserted_here_p.
3918 (find_single_step_breakpoint): New function,
3919 factored out from single_step_breakpoint_inserted_here_p.
3920 (single_step_breakpoint_inserted_here_p): Reimplement.
3921
1e2ccb61
BM
39222014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3923
3924 Pushed by Joel Brobecker <brobecker@adacore.com>
3925 * source.c (show_substitute_path_command): Fix display of matching
3926 substitution rules.
3927
d3448d85
GB
39282014-06-03 Gary Benson <gbenson@redhat.com>
3929
3930 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3931
06eb1586
DE
39322014-06-02 Doug Evans <xdje42@gmail.com>
3933
3934 Add parameter support for Guile.
3935 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3936 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3937 (scm-param.o): New rule.
3938 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3939 (gdbscm_misc_error): Declare.
3940 (gdbscm_canonicalize_command_name): Declare.
3941 (gdbscm_scm_to_host_string): Declare.
3942 (gdbscm_scm_from_host_string): Declare.
3943 (gdbscm_initialize_parameters): Declare.
3944 * guile/guile.c (initialize_gdb_module): Call
3945 gdbscm_initialize_parameters.
3946 * guile/lib/gdb.scm: Export parameter symbols.
3947 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3948 cmdscm_canonicalize_name and made public. All callers updated.
3949 * guile/scm-exception.c (gdbscm_misc_error): New function.
3950 * guile/scm-param.c: New file.
3951 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3952 (gdbscm_scm_to_host_string): New function.
3953 (gdbscm_scm_from_host_string): New function.
3954 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3955
e698b8c4
DE
39562014-06-02 Doug Evans <xdje42@gmail.com>
3957
3958 Add command support for Guile.
3959 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3960 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3961 (scm-cmd.o): New rule.
3962 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3963 (gdbscm_user_error_p): Declare.
3964 (gdbscm_parse_command_name): Declare.
3965 (gdbscm_valid_command_class_p): Declare.
3966 (gdbscm_initialize_commands): Declare.
3967 * guile/guile.c (initialize_gdb_module): Call
3968 gdbscm_initialize_commands.
3969 * guile/lib/gdb.scm: Export command symbols.
3970 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3971 (throw-user-error): New function.
3972 * guile/scm-cmd.c: New file.
3973 * guile/scm-exception.c (user_error_symbol): New static global.
3974 (gdbscm_user_error_p): New function.
3975 (gdbscm_initialize_exceptions): Set user_error_symbol.
3976 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3977
fb1f94b0
PM
39782014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3979
3980 * top.c (command_loop): Handle comments here...
3981 (command_line_input): ... not here.
3982
ded03782
DE
39832014-06-02 Doug Evans <xdje42@gmail.com>
3984
3985 Add progspace support for Guile.
3986 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3987 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3988 (scm-progspace.o): New rule.
3989 * guile/guile-internal.h (pspace_smob): New typedef.
3990 (psscm_pspace_smob_pretty_printers): Declare.
3991 (psscm_pspace_smob_from_pspace): Declare.
3992 (psscm_scm_from_pspace): Declare.
3993 * guile/guile.c (initialize_gdb_module): Call
3994 gdbscm_initialize_pspaces.
3995 * guile/lib/gdb.scm: Export progspace symbols.
3996 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3997 support.
3998 (append-pretty-printer!): Ditto.
3999 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
4000 Implement.
4001 * guile/scm-progspace.c: New file.
4002
397998fc
AM
40032014-06-03 Alan Modra <amodra@gmail.com>
4004
4005 * ppc64-tdep.c (ppc64_standard_linkage8): New.
4006 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
4007
6aa5f3a6
DE
40082014-06-02 Doug Evans <dje@google.com>
4009
4010 Add support for skeletonless type units.
4011 * dwarf2read.c (struct dwarf2_per_objfile): New member
4012 n_allocated_type_units.
4013 (struct dwarf2_per_objfile) <tu_stats>: New member
4014 nr_all_type_units_reallocs.
4015 (create_signatured_type_table_from_index): Initialize
4016 n_allocated_type_units
4017 (create_all_type_units): Ditto.
4018 (add_type_unit): Move up in file. New arg slot.
4019 All callers updated. Increase space for all_type_units more
4020 efficiently.
4021 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4022 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4023 (lookup_dwp_signatured_type): Ditto.
4024 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4025 All callers updated.
4026 (build_type_psymtabs_1): Leave type_unit_groups as
4027 NULL if no TUs present.
4028 (print_tu_stats): New function.
4029 (process_skeletonless_type_unit): New function.
4030 (process_dwo_file_for_skeletonless_type_units): New
4031 function.
4032 (process_skeletonless_type_units): New function.
4033 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4034 Call print tu_stats if debugging enabled.
4035
41fac0cf
PA
40362014-06-02 Pedro Alves <palves@redhat.com>
4037
4038 * breakpoint.c (build_target_command_list): Don't build a command
4039 list if we have any duplicate location that isn't a dprintf.
4040
cd1608cc
PA
40412014-06-02 Pedro Alves <palves@redhat.com>
4042
4043 * breakpoint.c (dprintf_breakpoint_hit): New function.
4044 (initialize_breakpoint_ops): Install it as dprintf's
4045 breakpoint_hit method.
4046
486ef3b9
JB
40472014-06-02 Joel Brobecker <brobecker@adacore.com>
4048
4049 * source.c (substitute_path_rule_matches): Simplify using
4050 filename_ncmp instead of FILENAME_CMP.
4051
230cd560
JB
40522014-06-02 Joel Brobecker <brobecker@adacore.com>
4053
4054 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4055
16954d5d
LC
40562014-06-01 Ludovic Courtès <ludo@gnu.org>
4057
4058 * configure.ac: When Guile is available, check for the
4059 availability of 'scm_new_smob'.
4060 * configure, config.h.in: Regenerate.
4061 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4062 function.
4063
53e8a631
AB
40642014-05-30 Andrew Burgess <aburgess@broadcom.com>
4065
4066 * frame.c (struct frame_info): Add stop_string field.
4067 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4068 (get_prev_frame_always): Old content moved into
4069 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4070 TRY_CATCH, handle MEMORY_ERROR exceptions.
4071 (frame_stop_reason_string): New function definition.
4072 * frame.h (unwind_stop_reason_to_string): Extend comment to
4073 mention frame_stop_reason_string.
4074 (frame_stop_reason_string): New function declaration.
4075 * stack.c (frame_info): Switch to frame_stop_reason_string.
4076 (backtrace_command_1): Switch to frame_stop_reason_string.
4077 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4078 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4079 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4080
70e38b8e
AB
40812014-05-30 Andrew Burgess <aburgess@broadcom.com>
4082
4083 * frame.c (frame_stop_reason_string): Rename to ...
4084 (unwind_stop_reason_to_string): this.
4085 * frame.h (frame_stop_reason_string): Rename to ...
4086 (unwind_stop_reason_to_string): this.
4087 * stack.c (frame_info): Update call to frame_stop_reason_string.
4088 (backtrace_command_1): Likewise.
4089 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4090 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4091
938f0e2f
AB
40922014-05-30 Andrew Burgess <aburgess@broadcom.com>
4093
4094 * frame.c (remove_prev_frame): New function.
4095 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4096 remove_prev_frame.
4097
a09dd441
PA
40982014-05-29 Pedro Alves <palves@redhat.com>
4099
4100 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4101 and make it const. When a single-step decays to a continue,
4102 clear 'step', not 'hw_step'. Pass whether the caller wanted
4103 to step to user_visible_resume_ptid, not what we ask the
4104 target to do.
4105
bdc36728
PA
41062014-05-29 Pedro Alves <palves@redhat.com>
4107
4108 * infrun.c (process_event_stop_test, handle_step_into_function)
4109 (handle_step_into_function_backward): Adjust.
4110 Don't set the even thread's stop_step and call stop_waiting before
4111 calling end_stepping_range. Instead do that ...
4112 (end_stepping_range): ... here. Take an ecs pointer parameter.
4113
22bcd14b
PA
41142014-05-29 Pedro Alves <palves@redhat.com>
4115
4116 * infrun.c (stop_stepping): Rename to ...
4117 (stop_waiting): ... this.
4118 (proceed): Update comment.
4119 (process_event_stop_test, handle_inferior_event)
4120 (handle_signal_stop, handle_step_into_function)
4121 (handle_step_into_function_backward): Update.
4122
4ae57c05
PA
41232014-05-29 Pedro Alves <palves@redhat.com>
4124
4125 * infcall.c (run_inferior_call): Don't check whether the current
4126 thread is running after the proceed call.
4127
329ea579
PA
41282014-05-29 Pedro Alves <palves@redhat.com>
4129 Tom Tromey <tromey@redhat.com>
4130
4131 * NEWS: Mention "maint set target-async", "set mi-async", and that
4132 background execution commands are now always available.
4133 * target.h (target_async_permitted): Update comment.
4134 * target.c (target_async_permitted, target_async_permitted_1):
4135 Default to 1.
4136 (set_target_async_command): Rename to ...
4137 (maint_set_target_async_command): ... this.
4138 (show_target_async_command): Rename to ...
4139 (maint_show_target_async_command): ... this.
4140 (_initialize_target): Adjust.
4141 * infcmd.c (prepare_execution_command): Make extern.
4142 * inferior.h (prepare_execution_command): Declare.
4143 * infrun.c (set_observer_mode): Leave target async alone.
4144 * mi/mi-interp.c (mi_interpreter_init): Install
4145 mi_on_sync_execution_done as sync_execution_done observer.
4146 (mi_on_sync_execution_done): New function.
4147 (mi_execute_command_input_handler): Don't print the prompt if we
4148 just started a synchronous command with an async target.
4149 (mi_on_resume): Check sync_execution before printing prompt.
4150 * mi/mi-main.h (mi_async_p): Declare.
4151 * mi/mi-main.c: Include gdbcmd.h.
4152 (mi_async_p): New function.
4153 (mi_async, mi_async_1): New globals.
4154 (set_mi_async_command, show_mi_async_command, mi_async): New
4155 functions.
4156 (exec_continue): Call prepare_execution_command.
4157 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4158 (mi_execute_async_cli_command): Use mi_async_p.
4159 (_initialize_mi_main): Install "set mi-async". Make
4160 "target-async" a deprecated alias.
4161
92bcb5f9
PA
41622014-05-29 Pedro Alves <palves@redhat.com>
4163
4164 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4165 (_initialize_cli_interp): Adjust.
4166 * event-loop.c: Include "observer.h".
4167 (start_event_loop): Notify 'command_error' observers instead of
4168 calling display_gdb_prompt. Remove FIXME comment.
4169 * event-top.c (display_gdb_prompt): Remove call into the
4170 interpreters.
4171 * inf-loop.c: Include "observer.h".
4172 (inferior_event_handler): Notify 'command_error' observers instead
4173 of calling display_gdb_prompt.
4174 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4175 observers instead of calling display_gdb_prompt.
4176 * interps.c (interp_set): Don't call display_gdb_prompt.
4177 (current_interp_display_prompt_p): Delete.
4178 * interps.h (interp_prompt_p): Delete declaration.
4179 (interp_prompt_p_ftype): Delete.
4180 (struct interp_procs) <prompt_proc_p>: Delete field.
4181 (current_interp_display_prompt_p): Delete declaration.
4182 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4183 (_initialize_mi_interp): Adjust.
4184 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4185 'command_error' observers.
4186 (tui_on_sync_execution_done, tui_on_command_error): New
4187 functions.
4188 (tui_display_prompt_p): Delete.
4189 (_initialize_tui_interp): Adjust.
4190
fd664c91
PA
41912014-05-29 Pedro Alves <palves@redhat.com>
4192
4193 PR gdb/13860
4194 * cli/cli-interp.c: Include infrun.h and observer.h.
4195 (cli_uiout, cli_interp): New globals.
4196 (cli_on_signal_received, cli_on_end_stepping_range)
4197 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4198 functions.
4199 (cli_interpreter_init): Install them as 'end_stepping_range',
4200 'signal_received' 'signal_exited', 'exited' and 'no_history'
4201 observers.
4202 (_initialize_cli_interp): Remove cli_interp local.
4203 * infrun.c (handle_inferior_event): Call the several stop reason
4204 observers instead of printing the stop reason directly.
4205 (end_stepping_range): New function.
4206 (print_end_stepping_range_reason, print_signal_exited_reason)
4207 (print_exited_reason, print_signal_received_reason)
4208 (print_no_history_reason): Make static, and add an uiout
4209 parameter. Print to that instead of to CURRENT_UIOUT.
4210 * infrun.h (print_end_stepping_range_reason)
4211 (print_signal_exited_reason, print_exited_reason)
4212 (print_signal_received_reason print_no_history_reason): New
4213 declarations.
4214 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4215 'mi_uiout'.
4216 <cli_uiout>: New field.
4217 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4218 uiout for CLI output. Install 'signal_received',
4219 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4220 observers.
4221 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4222 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4223 (mi_on_no_history): New functions.
4224 (ui_out_free_cleanup): Delete function.
4225 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4226 instead use the one already stored in the MI interpreter data.
4227 (mi_ui_out): Adjust.
4228 * tui/tui-interp.c: Include infrun.h and observer.h.
4229 (tui_interp): New global.
4230 (tui_on_signal_received, tui_on_end_stepping_range)
4231 (tui_on_signal_exited, tui_on_exited)
4232 (tui_on_no_history): New functions.
4233 (tui_init): Install them as 'end_stepping_range',
4234 'signal_received' 'signal_exited', 'exited' and 'no_history'
4235 observers.
4236 (_initialize_tui_interp): Delete tui_interp local.
4237
8817a6f2
PA
42382014-05-29 Pedro Alves <palves@redhat.com>
4239
4240 PR gdb/15713
4241 * linux-nat.c (linux_nat_resume_callback): Rename the second
4242 parameter to 'except'. Skip LP if it points to EXCEPT.
4243 (linux_nat_resume): Don't mark the event lwp as not stopped
4244 before resuming sibling lwps. Instead ask
4245 linux_nat_resume_callback to skip the event lwp. Mark it as not
4246 stopped after actually resuming it.
4247 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4248 resuming it.
4249 (wait_lwp): Mark the lwp as stopped here.
4250 (stop_wait_callback): Mark the lwp as not stopped right after
4251 resuming it. Don't mark lwps as stopped here.
4252 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4253 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4254
251bde03
PA
42552014-05-29 Pedro Alves <palves@redhat.com>
4256
4257 PR PR15693
4258 * infrun.c (resume): Determine how much to resume depending on
4259 whether the caller wanted a step, not whether we can hardware step
4260 the target. Mark all threads that we intend to run as running,
4261 unless we're calling an inferior function.
4262 (normal_stop): If the thread is running an infcall, don't finish
4263 thread state.
4264 * target.c (target_resume): Don't mark threads as running here.
4265
7f3c0343
JB
42662014-05-28 Joel Brobecker <brobecker@adacore.com>
4267
4268 * serial.c (_initialize_serial): Remove support for
4269 the "set remotebaud" and "show remotebaud" commands.
4270 * NEWS: Add entry documenting the removal of that command.
4271
ee34b3f9
YQ
42722014-05-28 Yao Qi <yao@codesourcery.com>
4273
4274 * charset.c: Fix typo in comments.
4275
add6c04d
GB
42762014-05-27 Gary Benson <gbenson@redhat.com>
4277
4278 * utils.c (internal_vproblem): Prompt for a bug report.
4279
92c48fc5
AW
42802014-05-26 Andy Wingo <wingo@igalia.com>
4281
4282 * guile/scm-arch.c (arscm_mark_arch_smob):
4283 * guile/scm-block.c (bkscm_mark_block_smob)
4284 (bkscm_mark_block_syms_progress_smob):
4285 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4286 * guile/scm-exception.c (exscm_mark_exception_smob):
4287 * guile/scm-frame.c (frscm_mark_frame_smob):
4288 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4289 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4290 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4291 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4292 (ppscm_mark_pretty_printer_worker_smob):
4293 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4294 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4295 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4296 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4297 mark functions.
4298 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4299 function.
4300
b2715b27
AW
43012014-05-26 Andy Wingo <wingo@igalia.com>
4302 Doug Evans <xdje42@gmail.com>
4303
4304 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4305 empty_base_class. All uses updated.
4306 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4307 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4308 Adapt all callers.
4309 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4310 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4311 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4312 (gdbscm_gsmob_has_property_p, add_property_name)
4313 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4314 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4315 (gdb-object-has-property?, gdb-object-properties): Remove.
4316 (gdb-object-kind): Renamed from gsmob-kind.
4317
214ab2da
AW
43182014-05-26 Andy Wingo <wingo@igalia.com>
4319
4320 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4321 * configure: Regenerate.
4322
589fdceb
MM
43232014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4324
4325 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4326
67b5c0c1
MM
43272014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4328
4329 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4330 (replay_memory_access_read_only, replay_memory_access_read_write)
4331 (replay_memory_access_types, replay_memory_access)
4332 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4333 (cmd_set_record_btrace, cmd_show_record_btrace)
4334 (cmd_show_replay_memory_access): New.
4335 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4336 (record_btrace_remove_breakpoint): Replace
4337 record_btrace_allow_memory_access with replay_memory_access.
4338 (_initialize_record_btrace): Add commands.
4339 * NEWS: Announce it.
4340
036cd381
RR
43412014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4342
4343 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4344
c77c1e42
RR
43452014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4346
4347 * MAINTAINERS (Write After Approval): Move self back from
4348 paper trail.
4349
45741a9c
PA
43502014-05-22 Pedro Alves <palves@redhat.com>
4351
4352 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4353 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4354 (disable_randomization, enum exec_direction_kind)
4355 (execution_direction, stop_registers, start_remote)
4356 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4357 (wait_for_inferior, normal_stop, get_last_target_status)
4358 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4359 (insert_step_resume_breakpoint_at_sal)
4360 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4361 (set_step_info, print_stop_event, signal_stop_state)
4362 (signal_print_state, signal_pass_state, signal_stop_update)
4363 (signal_print_update, signal_pass_update)
4364 (update_signals_program_target, clear_exit_convenience_vars)
4365 (displaced_step_dump_bytes, update_observer_mode)
4366 (signal_catch_update, gdb_signal_from_command): Move
4367 declarations ...
4368 * infrun.h: ... to this new file.
4369 * amd64-tdep.c: Include infrun.h.
4370 * annotate.c: Include infrun.h.
4371 * arch-utils.c: Include infrun.h.
4372 * arm-linux-tdep.c: Include infrun.h.
4373 * arm-tdep.c: Include infrun.h.
4374 * break-catch-sig.c: Include infrun.h.
4375 * breakpoint.c: Include infrun.h.
4376 * common/agent.c: Include infrun.h instead of inferior.h.
4377 * corelow.c: Include infrun.h.
4378 * event-top.c: Include infrun.h.
4379 * go32-nat.c: Include infrun.h.
4380 * i386-tdep.c: Include infrun.h.
4381 * inf-loop.c: Include infrun.h.
4382 * infcall.c: Include infrun.h.
4383 * infcmd.c: Include infrun.h.
4384 * infrun.c: Include infrun.h.
4385 * linux-fork.c: Include infrun.h.
4386 * linux-nat.c: Include infrun.h.
4387 * linux-thread-db.c: Include infrun.h.
4388 * monitor.c: Include infrun.h.
4389 * nto-tdep.c: Include infrun.h.
4390 * procfs.c: Include infrun.h.
4391 * record-btrace.c: Include infrun.h.
4392 * record-full.c: Include infrun.h.
4393 * remote-m32r-sdi.c: Include infrun.h.
4394 * remote-mips.c: Include infrun.h.
4395 * remote-notif.c: Include infrun.h.
4396 * remote-sim.c: Include infrun.h.
4397 * remote.c: Include infrun.h.
4398 * reverse.c: Include infrun.h.
4399 * rs6000-tdep.c: Include infrun.h.
4400 * s390-linux-tdep.c: Include infrun.h.
4401 * solib-irix.c: Include infrun.h.
4402 * solib-osf.c: Include infrun.h.
4403 * solib-svr4.c: Include infrun.h.
4404 * target.c: Include infrun.h.
4405 * top.c: Include infrun.h.
4406 * windows-nat.c: Include infrun.h.
4407 * mi/mi-interp.c: Include infrun.h.
4408 * mi/mi-main.c: Include infrun.h.
4409 * python/py-threadevent.c: Include infrun.h.
4410
98eb56a4
PA
44112014-05-22 Pedro Alves <palves@redhat.com>
4412
4413 * infrun.c (handle_inferior_event): Store the exit code for
4414 --return-child-result here, instead of ...
4415 (print_exited_reason): ... here.
4416
17b2616c
PA
44172014-05-21 Pedro Alves <palves@redhat.com>
4418
4419 PR gdb/13860
4420 * gdbthread.h (struct thread_control_state): New field
4421 `command_interp'.
4422 * infrun.c (follow_fork): Copy the new thread control field to the
4423 child fork thread.
4424 (clear_proceed_status_thread): Clear the new thread control field.
4425 (proceed): Set the new thread control field.
4426 * interps.h (command_interp): Declare.
4427 * interps.c (command_interpreter): New global.
4428 (command_interp): New function.
4429 (interp_exec): Set `command_interpreter' while here.
4430 * cli-out.c (cli_uiout_dtor): New function.
4431 (cli_ui_out_impl): Install it.
4432 * mi/mi-interp.c: Include cli-out.h.
4433 (mi_cmd_interpreter_exec): Add comment.
4434 (restore_current_uiout_cleanup): New function.
4435 (ui_out_free_cleanup): New function.
4436 (mi_on_normal_stop): If finishing an execution command started by
4437 a CLI command, or any kind of breakpoint-like event triggered,
4438 print the stop event to the output (CLI) stream.
4439 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4440
5166082f
PA
44412014-05-21 Pedro Alves <palves@redhat.com>
4442
4443 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4444 current source line having changed.
4445 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4446 * infrun.c (normal_stop): Adjust call to
4447 set_current_sal_from_frame.
4448 * source.c (clear_lines_listed_range): New function.
4449 (set_current_source_symtab_and_line, identify_source_line): Clear
4450 the lines listed range.
4451 (line_info): Handle the first "info line" after the current source
4452 line having changed.
4453 * stack.c (print_stack_frame): Remove center handling.
4454 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4455 center sal.line.
4456
c1ee2fb3
PA
44572014-05-21 Pedro Alves <palves@redhat.com>
4458
4459 * inf-child.c (inf_child_mourn_inferior): New function.
4460 * inf-child.h (inf_child_mourn_inferior): New declaration.
4461 * darwin-nat.c (darwin_mourn_inferior): Use
4462 inf_child_mourn_inferior.
4463 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4464 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4465 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4466 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4467 * windows-nat.c (windows_mourn_inferior): Likewise.
4468
5c6d4fb2
DE
44692014-05-21 Doug Evans <xdje42@gmail.com>
4470
250748cb 4471 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4472
4a2722c5
DE
44732014-05-21 Doug Evans <xdje42@gmail.com>
4474
17292b30 4475 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4476 (gdbscm_out_of_range_error): Ditto.
4477 (gdbscm_memory_error): Ditto.
250748cb
DE
4478 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4479 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4480 (gdbscm_out_of_range_error): Update.
4481 (gdbscm_memory_error): Update.
4482 (gdbscm_scm_to_target_string_unsafe): Delete.
4483
6a3cb8e8
PA
44842014-05-21 Pedro Alves <palves@redhat.com>
4485
4486 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4487 globals.
4488 (inf_child_open_target): New function.
4489 (inf_child_open): Use inf_child_open_target to push the target
4490 instead of erroring out.
4491 (inf_child_disconnect, inf_child_close)
4492 (inf_child_maybe_unpush_target): New functions.
4493 (inf_child_target): Install inf_child_disconnect and
4494 inf_child_close. Store a pointer to the returned object.
4495 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4496 declarations.
4497 * target.c (auto_connect_native_target): New global.
4498 (show_default_run_target): New function.
4499 (find_default_run_target): Return NULL if automatically connecting
4500 to the native target is disabled.
4501 (_initialize_target): Install set/show auto-connect-native-target.
4502 * NEWS: Mention "set auto-connect-native-target", and "target
4503 native".
4504 * linux-nat.c (super_close): New global.
4505 (linux_nat_close): Call super_close.
4506 (linux_nat_add_target): Store a pointer to the base class's
4507 to_close method.
4508 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4509 inf_child_maybe_unpush.
4510 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4511 already pushed.
4512 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4513 the inferior. Use inf_child_maybe_unpush_target.
4514 (inf_ttrace_attach): Don't push the target if it is already
4515 pushed.
4516 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4517 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4518 after mourning the inferior. Use inf_child_maybe_unpush_target.
4519 (darwin_attach_pid): Don't push the target if it is already
4520 pushed.
4521 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4522 mourning the inferior. Use inf_child_maybe_unpush_target.
4523 (gnu_detach): Use inf_child_maybe_unpush_target.
4524 * go32-nat.c (go32_create_inferior): Don't push the target if it
4525 is already pushed.
4526 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4527 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4528 (procfs_open): Rename to ...
4529 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4530 comments. Can target_preopen before changing node. Call
4531 inf_child_open_target to push the target explicitly.
4532 (procfs_attach): Don't push the target if it is already pushed.
4533 (procfs_detach): Use inf_child_maybe_unpush_target.
4534 (procfs_create_inferior): Don't push the target if it is already
4535 pushed.
4536 (nto_native_ops): New global.
4537 (procfs_open): Reimplement.
4538 (procfs_native_open): New function.
4539 (init_procfs_targets): Install procfs_native_open as to_open of
4540 "target native". Store a pointer to the "native" target in
4541 nto_native_ops.
4542 * procfs.c (procfs_attach): Don't push the target if it is already
4543 pushed.
4544 (procfs_detach): Use inf_child_maybe_unpush_target.
4545 (procfs_mourn_inferior): Only unpush the target after mourning the
4546 inferior. Use inf_child_maybe_unpush_target.
4547 (procfs_init_inferior): Don't push the target if it is already
4548 pushed.
4549 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4550 if it is already pushed.
4551
930ee1b1
PA
45522014-05-21 Pedro Alves <palves@redhat.com>
4553
4554 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4555 and "procfs" targets are now called "native" instead.
4556
1f5d1b13
PA
45572014-05-21 Pedro Alves <palves@redhat.com>
4558
4559 * go32-nat.c (go32_open): Delete.
4560 (go32_target): Don't override the to_open method.
4561
132f8e03
PA
45622014-05-21 Pedro Alves <palves@redhat.com>
4563
4564 * nto-procfs.c (procfs_can_run): New function.
4565 (nto_procfs_ops): New global.
4566 (init_procfs_targets): New, based on procfs_target. Install
4567 "target native" in addition to "target procfs".
4568 (_initialize_procfs): Call init_procfs_targets instead of adding
4569 the target here.
4570
03c136c3
PA
45712014-05-21 Pedro Alves <palves@redhat.com>
4572
4573 * windows-nat.c (windows_target): Don't override to_shortname,
4574 to_longname or to_doc.
4575
a635d0f3
PA
45762014-05-21 Pedro Alves <palves@redhat.com>
4577
4578 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4579 to_doc.
4580
4f9b5133
PA
45812014-05-21 Pedro Alves <palves@redhat.com>
4582
4583 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4584 to_shortname, to_longname or to_doc.
4585
bc85afde
PA
45862014-05-21 Pedro Alves <palves@redhat.com>
4587
4588 * go32-nat.c (go32_target): Don't override to_shortname,
4589 to_longname or to_doc.
4590
4ebfc96e
PA
45912014-05-21 Pedro Alves <palves@redhat.com>
4592
4593 * inf-child.c (inf_child_open): Remove mention of "child".
4594 (inf_child_target): Rename target to "native" instead of "child".
4595
2648dfed
AA
45962014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4597
4598 * Makefile.in (SFILES): Delete "regset.c".
4599 (COMMON_OBS): Delete "regset.o".
4600 * regset.c: Remove.
4601 * regset.h (regset_alloc): Delete prototype.
4602
b13feb94
AA
46032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4604
4605 * sparc-linux-tdep.c (sparc32_linux_gregset)
4606 (sparc32_linux_fpregset): New static regset structures.
4607 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4608 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4609 'fpregset' fields.
4610 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4611 (sparc64_linux_fpregset): New static regset structures.
4612 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4613 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4614 New static regset structures.
4615 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4616 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4617 New static regset structures.
4618 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4619 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4620 New static regset structures.
4621 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4622 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4623 New static regset structures.
4624 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4625
b4fd25c9
AA
46262014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4627
4628 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4629 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4630 register maps ("regmaps") from "*regset" to "*regmap". Do this
4631 for all regmap types and variables.
4632 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4633 (sparc32_linux_supply_core_gregset)
4634 (sparc32_linux_collect_core_gregset)
4635 (sparc32_linux_supply_core_fpregset)
4636 (sparc32_linux_collect_core_fpregset): Likewise.
4637 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4638 (sparc_gregmap, sparc_fpregmap): ... these.
4639 (sparc_supply_gregset, sparc_collect_gregset)
4640 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4641 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4642 (_initialize_sparc_nat): Rename regmaps.
4643 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4644 (sparc_gregmap, sparc_fpregmap): ... these.
4645 (sparc_supply_gregset, sparc_collect_gregset)
4646 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4647 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4648 Rename macros to...
4649 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4650 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4651 Likewise.
4652 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4653 Rename to...
4654 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4655 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4656 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4657 regmaps.
4658 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4659 (sparc32_bsd_fpregset): Rename to...
4660 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4661 (sparc32_bsd_fpregmap): ... these.
4662 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4663 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4664 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4665 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4666 (struct sparc_gregmap, struct sparc_fpregmap)
4667 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4668 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4669 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4670 (sparc32_supply_regset, sparc32_collect_gregset)
4671 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4672 prototypes.
4673 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4674 (sparc64_linux_ptrace_gregmap): ... this.
4675 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4676 (_initialize_sparc64_linux_nat): Rename regmaps.
4677 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4678 (sparc64_linux_core_gregmap): ... this.
4679 (sparc64_linux_supply_core_gregset)
4680 (sparc64_linux_collect_core_gregset)
4681 (sparc64_linux_supply_core_fpregset)
4682 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4683 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4684 (sparc64_sol2_fpregset): Rename to...
4685 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4686 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4687 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4688 regmaps.
4689 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4690 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4691 (sparc64_bsd_fpregset): Rename to...
4692 (struct sparc_gregmap, sparc64_sol2_gregmap)
4693 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4694 (sparc64_bsd_fpregmap): ... these.
4695 (sparc64_supply_gregset, sparc64_collect_gregset)
4696 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4697 prototypes.
4698 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4699 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4700 (sparc64fbsd_gregmap): ... this.
4701 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4702 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4703 Rename regmaps.
4704 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4705 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4706 (sparc64nbsd_collect_fpregset): Likewise.
4707 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4708 (sparc64nbsd_gregmap): ... this.
4709 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4710 regmaps.
4711 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4712 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4713 (sparc64obsd_gregmap): ... this.
4714 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4715 regmaps.
4716 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4717 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4718 (sparc32nbsd_gregmap): ... this.
4719 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4720 regmaps.
4721
8fea3224
AA
47222014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4723
4724 * score-tdep.c (score7_linux_gregset): New static regset
4725 structure.
4726 (score7_linux_regset_from_core_section): Remove dynamic regset
4727 allocation.
4728 (score_gdbarch_init): Drop allocation of tdep structure.
4729 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4730
24534243
AA
47312014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4732
4733 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4734 regset structures.
4735 (am33_regset_from_core_section): Remove dynamic regset
4736 allocations.
4737
b7195f27
AA
47382014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4739
4740 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4741 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4742 structures.
4743 (mips_linux_regset_from_core_section): Remove dynamic regset
4744 allocations.
4745 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4746 'gregset64', 'fpregset', and 'fpregset64'.
4747 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4748 deleted tdep fields.
4749
ecc37a5a
AA
47502014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4751
4752 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4753 regset structures.
4754 (amd64_regset_from_core_section): Remove dynamic regset
4755 allocations.
4756 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4757 structure.
4758 (amd64obsd_regset_from_core_section): Remove dynamic regset
4759 allocation.
4760 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4761 Likewise.
4762 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4763 x86-common regset supply function.
4764 * i386-tdep.c (i386_collect_gregset): Make static.
4765 (i386_gregset): New global regset structure.
4766 (i386_fpregset, i386_xstateregset): New static regset structures.
4767 (i386_regset_from_core_section): Remove dynamic regset
4768 allocations.
4769 (i386_gdbarch_init): Remove initialization of tdep fields
4770 'gregset', 'fpregset', and 'xstateregset'.
4771 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4772 'fpregset', and 'xstateregset'.
4773 (i386_collect_gregset): Remove prototype.
4774 (i386_gregset): New declaration.
4775 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4776 structure.
4777 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4778 allocation.
4779
b7611c43
AA
47802014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4781
4782 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4783 (arm_linux_vfpregset): New static regset structures.
4784 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4785 regset structures.
4786 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4787 and 'vfpregset' fields.
4788
a069a2bd
AA
47892014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4790
4791 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4792 (aarch64_linux_fpregset): New static regset structures.
4793 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4794 of regset structures.
4795 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4796 'fpregset' fields.
4797
09424cff
AA
47982014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4799
4800 * regset.h (struct regset): Remove gdbarch field.
4801 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4802 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4803 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4804 Likewise.
4805 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4806 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4807 (ppc32_linux_vsxregset): Likewise.
4808 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4809 via the regcache instead of the regset.
4810 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4811 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4812 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4813 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4814 Likewise.
4815
3ca7dae4
AA
48162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4817
4818 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4819 Constify structures.
4820 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4821 (alphanbsd_aout_gregset): Likewise.
4822 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4823 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4824 Likewise.
4825 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4826 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4827 Likewise.
4828 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4829 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4830 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4831 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4832 * m88k-tdep.c (m88k_gregset): Likewise.
4833 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4834 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4835 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4836 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4837 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4838 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4839 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4840 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4841 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4842 Likewise.
4843 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4844 * sh-tdep.h (sh_corefile_gregset): Likewise.
4845 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4846 * vax-tdep.c (vax_gregset): Likewise.
4847
5876f503
JK
48482014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4849
4850 Fix TLS access for -static -pthread.
4851 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4852 (try_thread_db_load_1): Initialize it.
4853 (thread_db_get_thread_local_address): Call it if LM is zero.
4854 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4855 * target.h (struct target_ops) (to_get_thread_local_address): Add
4856 load_module_addr comment.
4857
0256a6ac
PA
48582014-05-21 Pedro Alves <palves@redhat.com>
4859
4860 * dcache.c (dcache_read_memory_partial): If reading the cache line
4861 fails, fallback to reading just the memory the caller wanted.
4862
227533ac
DE
48632014-05-20 Doug Evans <dje@google.com>
4864
4865 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4866 instead of get_current_arch.
4867
936d2992
PA
48682014-05-20 Pedro Alves <palves@redhat.com>
4869
4870 * NEWS: Mention that compare-sections now works with all targets.
4871
4872 * remote.c (PACKET_qCRC): New enum value.
4873 (remote_verify_memory): Don't send qCRC if the target has no
4874 execution. Use packet_support/packet_ok. If the target doesn't
4875 support the qCRC packet, fallback to a deep memory copy.
4876 (compare_sections_command): Say "target image" instead of "remote
4877 executable".
4878 (_initialize_remote): Add PACKET_qCRC to the list of config
4879 packets that have no associated command. Extend comment.
4880 * target.c (simple_verify_memory, default_verify_memory): New
4881 function.
4882 * target.h (struct target_ops) <to_verify_memory>: Default to
4883 default_verify_memory.
4884 (simple_verify_memory): New declaration.
4885 * target-delegates.c: Regenerate.
4886
e59fa00f
MM
48872014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4888
4889 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4890
f2205de0
HZ
48912014-05-20 Hui Zhu <hui@codesourcery.com>
4892 Yao Qi <yao@codesourcery.com>
4893
4894 PR backtrace/16558
4895 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4896 and change address of sp and pc.
4897
c4e54771
TT
48982014-05-19 Tom Tromey <tromey@redhat.com>
4899
4900 * gdbtypes.c (rank_function): Use XNEWVEC.
4901 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4902
73051182
DE
49032014-05-19 Doug Evans <dje@google.com>
4904
4905 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4906 build_type_unit_groups and moved closer to only caller. Remove
4907 arguments. All references updated. Remove outdated .gdb_index
4908 comment.
4909 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4910 build_type_psymtabs_1.
4911
8832e7e3
DE
49122014-05-19 Doug Evans <dje@google.com>
4913
4914 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4915 n_type_unit_groups, all_type_unit_groups. All uses removed.
4916 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4917 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4918 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4919 (add_type_unit_group_to_table): Delete.
4920
cd8ae15e
DE
49212014-05-19 Doug Evans <dje@google.com>
4922
4923 * eval.c (evaluate_subexp_standard): Add some comments.
4924
08f4850b
DE
49252014-05-17 Doug Evans <xdje42@gmail.com>
4926
4927 * progspace.c (remove_program_space): Delete, unused.
4928 * progspace.h (remove_program_space): Ditto.
4929
bed8455c
DE
49302014-05-17 Doug Evans <xdje42@gmail.com>
4931
4932 * inferior.c (prune_inferiors): Fix comment.
4933 (remove_inferior_command): Call prune_program_spaces.
4934
8d551b02
DE
49352014-05-16 Doug Evans <dje@google.com>
4936
4937 New command line option -D.
4938 * NEWS: Mention it.
4939 * main.c (set_gdb_data_directory): New function.
4940 (captured_main): Recognize -D. Flag error for --data-directory "".
4941 Call set_gdb_data_directory.
4942 (print_gdb_help): Print --data-directory, -D.
4943 * main.h (set_gdb_data_directory): Declare.
4944 * top.c (staged_gdb_datadir): New static global.
4945 (set_gdb_datadir): Call set_gdb_data_directory
4946 (show_gdb_datadir): New function.
4947 (init_main): Update init of data-directory parameter.
4948
18848e28
GF
49492014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4950
4951 Import the "dirfd" gnulib module.
4952 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4953 * gnulib/aclocal.m4: Update.
4954 * gnulib/config.in: Update.
4955 * gnulib/configure: Update.
4956 * gnulib/import/Makefile.am: Update.
4957 * gnulib/import/Makefile.in: Update.
4958 * gnulib/import/dirfd.c: New.
4959 * gnulib/import/m4/dirfd.m4: New.
4960 * gnulib/import/m4/gnulib-cache.m4: Update.
4961 * gnulib/import/m4/gnulib-comp.m4: Update.
4962
95c64f92
YQ
49632014-05-16 Pierre Muller <muller@sourceware.org>
4964 Yao Qi <yao@codesourcery.com>
4965
4966 * valprint.c (print_wchar): Move the code on checking whether
4967 W is a printable wide char to the default branch of switch
4968 statement below. Call wchar_printable instead of gdb_iswprint.
4969
cac395ea
TM
49702014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4971
19679eca 4972 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4973 ldr.w and ldrd instructions.
4974
83655187
DE
49752014-05-15 Doug Evans <dje@google.com>
4976
4977 * dwarf2read.c (read_structure_type): Delete outdated comments.
4978
dd756689
TT
49792014-05-14 Tom Tromey <tromey@redhat.com>
4980
4981 * macrocmd.c (print_macro_definition): Reindent.
4982
75ddda77
DE
49832014-05-13 Doug Evans <xdje42@gmail.com>
4984
4985 * python/py-cmd.c (cmdpy_completer): Add comment.
4986 (completers): Make const.
4987
b0f16a3e
SM
49882014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4989
4990 * infrun.c (resume): Remove should_resume (unused). Move up
4991 declaration of resume_ptid.
4992
033c3379
TT
49932014-05-13 Tom Tromey <tromey@redhat.com>
4994
4995 * language.h (unop_type_check): Remove.
4996 (binop_type_check): Don't declare.
4997
9b44a3a5
AA
49982014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4999
5000 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
5001 call to regcache_raw_collect.
5002
303a33fa
SM
50032014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5004
5005 * mi/mi-console.c (mi_console_raw_packet): Use the value from
5006 mi_console->quote as the quoting character.
5007
196100a0
SM
50082014-05-12 Simon Marchi <simon.marchi@ericsson.com>
5009
5010 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
5011
f989a1c8
TT
50122014-04-29 Tom Tromey <tromey@redhat.com>
5013
5014 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
5015 "show debug varobj".
5016
9404b58f
KM
50172014-05-07 Kyle McMartin <kyle@redhat.com>
5018
5019 Pushed by Joel Brobecker <brobecker@adacore.com>.
5020 * aarch64-tdep.c (aarch64_software_single_step): New function.
5021 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5022 with aarch64_software_single_step.
5023
5e49ba57
JB
50242014-05-05 Joel Brobecker <brobecker@adacore.com>
5025
5026 GDB 7.7.1 released.
5027
c888a17d
KS
50282014-05-05 Keith Seitz <keiths@redhat.com>
5029
5030 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5031 variable or history value is successfully parsed.
5032
290a839c
YQ
50332014-05-05 Yao Qi <yao@codesourcery.com>
5034 Pedro Alves <palves@redhat.com>
5035
5036 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5037 address of blocks that intersects the requested range. Trim
5038 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5039 sections.
5040 * ctf.c (ctf_xfer_partial): Likewise.
5041
91256dc2
YQ
50422014-05-05 Yao Qi <yao@codesourcery.com>
5043
5044 * printcmd.c (display_command): Remove the check to
5045 target_has_execution.
5046
07284463
MK
50472014-05-03 Mark Kettenis <kettenis@gnu.org>
5048
5049 * ppcobsd-nat.c: Include "obsd-nat.h".
5050 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5051 add_target.
5052 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5053
30a1e6cc
SDJ
50542014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5055
5056 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5057 and 16-bit signed and unsigned arguments. Update comment.
5058 (stap_parse_probe_arguments): Extend code to handle such
5059 arguments. Use warning instead of complaint to notify about
5060 unrecognized bitness.
5061
f33da99a
SDJ
50622014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5063
5064 PR breakpoints/16889
5065 * stap-probe.c (stap_parse_probe_arguments): Simplify
5066 check for non-prefixed probes (i.e., probes whose
5067 arguments do not start with "N@"). Always set the
5068 argument type to a sane value.
5069
95cf3b38
DT
50702014-05-01 David Taylor <dtaylor@emc.com>
5071
5072 * remote.c (compare_sections_command): Add -r option to compare
5073 all loadable read-only sections.
5074
1cfdf534
SC
50752014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5076
5077 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5078 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5079 Update all callers.
5080 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5081 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5082 Remove unused CORE_ADDR argument. Update all callers.
5083
ca4f7f8b
PA
50842014-04-29 Pedro Alves <palves@redhat.com>
5085
5086 * remote.c (struct packet_config) <detect>: Extend comment.
5087 (add_packet_config_cmd): Don't set the config's detect or support
5088 fields here.
5089 (init_all_packet_configs): Also initialize the config's 'detect'
5090 field.
5091 (reset_all_packet_configs_support): New function.
5092 (remote_open_1): Call reset_all_packet_configs_support instead of
5093 init_all_packet_configs.
5094 (_initialize_remote): Initialize all packet configs. Assert that
5095 all packets have an associated command, except a few known
5096 outliers.
5097
11c1ba78
JB
50982014-04-28 Joel Brobecker <brobecker@adacore.com>
5099
5100 * dwarf2read.c (read_subrange_type): Handle dynamic
5101 DW_AT_lower_bound attributes.
5102
8739bc53
JB
51032014-04-28 Joel Brobecker <brobecker@adacore.com>
5104
5105 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5106 dynamic bounds before computing its upper bound.
5107 (ada_discrete_type_low_bound): Same as above with the lower bound.
5108
6f8a3220
JB
51092014-04-28 Joel Brobecker <brobecker@adacore.com>
5110
5111 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5112 range types. Adjust the array handling implementation to
5113 take advantage of this change.
5114 (resolve_dynamic_range): New function, mostly extracted from
5115 resolve_dynamic_bounds.
5116 (resolve_dynamic_array): New function, mostly extracted from
5117 resolve_dynamic_bounds.
5118 (resolve_dynamic_bounds): Delete.
5119 (resolve_dynamic_type): Reimplement. Add handling of
5120 TYPE_CODE_RANGE types.
5121
4d072ce4
JB
51222014-04-28 Joel Brobecker <brobecker@adacore.com>
5123
5124 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5125 handling of parallel ___XA types.
5126
52865325
JB
51272014-04-28 Joel Brobecker <brobecker@adacore.com>
5128
5129 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5130 unnecessary second call to static_unwrap_type.
5131
433e77fa
HZ
51322014-04-27 Hui Zhu <hui@codesourcery.com>
5133
5134 * stack.c (print_frame_info): Call do_gdb_disassembly with
5135 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5136
b51a69ee
DE
51372014-04-26 Doug Evans <xdje42@gmail.com>
5138
5139 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5140
7ae1a6a6
PA
51412014-04-25 Pedro Alves <palves@redhat.com>
5142
5143 PR server/16255
5144 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5145 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5146 and newline from built string.
5147 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5148 (linux_ptrace_attach_fail_reason): ... this.
5149 * linux-nat.c (linux_nat_attach): Adjust to use
5150 linux_ptrace_attach_fail_reason.
5151
4082afcc
PA
51522014-04-25 Pedro Alves <palves@redhat.com>
5153
5154 * remote.c (struct remote_state): Remove multi_process_aware,
5155 non_stop_aware, cond_tracepoints, cond_breakpoints,
5156 breakpoint_commands, fast_tracepoints, static_tracepoints,
5157 install_in_trace, disconnected_tracing,
5158 enable_disable_tracepoints, string_tracing, and
5159 augmented_libraries_svr4_read fields.
5160 (remote_multi_process_p): Move further below in the file.
5161 (struct packet_config): Add comments.
5162 (update_packet_config): Delete function.
5163 (show_packet_config_cmd): Use packet_config_support.
5164 (add_packet_config_cmd): Use NULL as set callback.
5165 (packet_ok): "set remote foo-packet"-style commands no longer
5166 change config->supported -- adjust.
5167 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5168 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5169 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5170 (PACKET_QNonStop, PACKET_multiprocess_feature)
5171 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5172 (PACKET_DisconnectedTracing_feature)
5173 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5174 (set_remote_protocol_packet_cmd): Delete function.
5175 (packet_config_support, packet_support): New functions.
5176 (set_remote_protocol_Z_packet_cmd): Don't call
5177 update_packet_config.
5178 (remote_query_attached, remote_pass_signals)
5179 (remote_program_signals, remote_threads_info)
5180 (remote_threads_extra_info, remote_start_remote): Use
5181 packet_support.
5182 (remote_start_remote): Use packet_config_support and
5183 packet_support.
5184 (init_all_packet_configs): Set all packets to unknown support,
5185 instead of calling update_packet_config.
5186 (remote_check_symbols): Use packet_support.
5187 (remote_supported_packet): Unconditionally set the packet config's
5188 support status.
5189 (remote_multi_process_feature, remote_non_stop_feature)
5190 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5191 (remote_breakpoint_commands_feature)
5192 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5193 (remote_install_in_trace_feature)
5194 (remote_disconnected_tracing_feature)
5195 (remote_enable_disable_tracepoint_feature)
5196 (remote_string_tracing_feature)
5197 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5198 (remote_protocol_features): Adjust to use remote_supported_packet
5199 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5200 "ConditionalTracepoints", "ConditionalBreakpoints",
5201 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5202 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5203 "EnableDisableTracepoints", and "tracenz".
5204 (remote_query_supported): Use packet_support.
5205 (remote_open_1): Adjust.
5206 (extended_remote_attach_1): Use packet_support. Switch on the
5207 result of packet_ok instead of checking whether the packet ended
5208 up disabled.
5209 (remote_vcont_resume): Use packet_support.
5210 (remote_resume, remote_stop_ns, fetch_register_using_p)
5211 (remote_prepare_to_store, store_register_using_P)
5212 (check_binary_download, remote_write_bytes): Use packet_support.
5213 (remote_vkill): Use packet_support. Switch on the result of
5214 packet_ok instead of checking whether the packet ended up
5215 disabled.
5216 (extended_remote_supports_disable_randomization): Use
5217 packet_support.
5218 (extended_remote_run): Switch on the result of packet_ok instead
5219 of checking whether the packet ended up disabled.
5220 (remote_insert_breakpoint, remote_remove_breakpoint)
5221 (remote_insert_watchpoint, remote_remove_watchpoint)
5222 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5223 packet_support.
5224 (remote_search_memory): Use packet_config_support.
5225 (remote_get_thread_local_address, remote_get_tib_address)
5226 (remote_hostio_send_command, remote_can_execute_reverse): Use
5227 packet_support.
5228 (remote_supports_cond_tracepoints)
5229 (remote_supports_cond_breakpoints)
5230 (remote_supports_fast_tracepoints)
5231 (remote_supports_static_tracepoints)
5232 (remote_supports_install_in_trace)
5233 (remote_supports_enable_disable_tracepoint)
5234 (remote_supports_string_tracing)
5235 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5236 the packet config says the feature is enabled or disabled.
5237 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5238 (remote_get_trace_status): Use packet_support.
5239 (remote_set_disconnected_tracing): Adjust to check whether the
5240 feature is enabled with packet_support.
5241 (remote_set_trace_buffer_size, remote_use_agent)
5242 (remote_can_use_agent, remote_supports_btrace): Use
5243 packet_support.
5244 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5245 Use packet_config_support.
5246 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5247 the packet config says the feature is enabled or disabled.
5248 (set_range_stepping): Use packet_support.
5249
bdb52a22
TT
52502014-04-25 Tom Tromey <tromey@redhat.com>
5251
5252 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5253 argument.
5254
e9475ead
SA
52552014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5256
5257 * NEWS: Mention support for C99 variable length arrays.
5258
82eacd52
JB
52592014-04-24 Joel Brobecker <brobecker@adacore.com>
5260
5261 * ada-lang.c (standard_exc): Expand introductory comment.
5262
01f9f808
MS
52632014-04-24 Michael Sturm <michael.sturm@mintel.com>
5264 Walfred Tedeschi <walfred.tedeschi@intel.com>
5265
5266 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5267 AVX512 registers.
5268 (amd64_linux_read_description): Add code to handle AVX512 xstate
5269 mask and return respective tdesc.
5270 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5271 and features/i386/x32-avx512-linux.c.
5272 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5273 (amd64_linux_core_read_description): Add code to handle AVX512
5274 xstate mask and return respective tdesc.
5275 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5276 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5277 calculation.
5278 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5279 (tdesc_amd64_avx512_linux): New prototype.
5280 (tdesc_x32_avx512_linux): Likewise.
5281 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5282 features/i386/x32-avx512.c.
5283 (amd64_ymm_avx512_names): New register names for pseudo
5284 registers YMM16-31.
5285 (amd64_ymmh_avx512_names): New register names for raw registers
5286 YMMH16-31.
5287 (amd64_k_names): New register names for K registers.
5288 (amd64_zmmh_names): New register names for ZMM raw registers.
5289 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5290 (amd64_xmm_avx512_names): New register names for XMM16-31
5291 registers.
5292 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5293 registers.
5294 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5295 if feature is present.
5296 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5297 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5298 (AMD64_NUM_REGS): Adjust to new number of registers.
5299 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5300 registers supplied via XSTATE by AVX512 registers.
5301 (i386_linux_read_description): Add case for AVX512.
5302 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5303 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5304 (i386_linux_core_read_description): Add case for AVX512.
5305 (i386_linux_init_abi): Install supported register note section
5306 for AVX512.
5307 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5308 AVX512.
5309 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5310 registers to be number of zmm7h + 1.
5311 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5312 * i386-tdep.c: Include features/i386/i386-avx512.c.
5313 (i386_zmm_names): Add ZMM pseudo register names array.
5314 (i386_zmmh_names): Add ZMM raw register names array.
5315 (i386_k_names): Add K raw register names array.
5316 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5317 registers. AVX512 has 16 more ZMM registers than there are YMM
5318 registers.
5319 (i386_zmmh_regnum_p): Add function to look up register number of
5320 ZMM raw registers.
5321 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5322 (i386_k_regnum_p): Likewise for K raw registers.
5323 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5324 registers added by AVX512.
5325 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5326 registers added by AVX512.
5327 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5328 added by AVX512.
5329 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5330 (i386_pseudo_register_name): Add ZMM pseudo registers.
5331 (i386_zmm_type): Construct and return vector registers type for ZMM
5332 registers.
5333 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5334 ZMM0-31 pseudo registers and K registers.
5335 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5336 and YMM16-31 registers from register cache.
5337 (i386_pseudo_register_write): Add code to write K, ZMM and
5338 YMM16-31 registers.
5339 (i386_register_reggroup_p): Add code to include/exclude AVX512
5340 registers in/from respective register groups.
5341 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5342 registers if feature is present in xcr0.
5343 (i386_gdbarch_init): Add code to initialize AVX512 feature
5344 variables in tdep structure, wire in pseudo registers and call
5345 initialize_tdesc_i386_avx512.
5346 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5347 variables.
5348 (i386_regnum): Add AVX512 registers.
5349 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5350 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5351 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5352 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5353 512 bits wide.
5354 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5355 (i386_ymm_avx512_regnum_p): Likewise.
5356 (i386_k_regnum_p): Likewise.
5357 (i386_zmm_regnum_p): Likewise.
5358 (i386_zmmh_regnum_p): Likewise.
5359 * i387-tdep.c : Update year in copyright notice.
5360 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5361 XSAVE buffer.
5362 (XSAVE_YMM_AVX512_ADDR): New macro.
5363 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5364 XSAVE buffer.
5365 (XSAVE_XMM_AVX512_ADDR): New macro.
5366 (xsave_avx512_k_offset): New table for K register offsets in
5367 XSAVE buffer.
5368 (XSAVE_AVX512_K_ADDR): New macro.
5369 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5370 in XSAVE buffer.
5371 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5372 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5373 buffer.
5374 (i387_collect_xsave): Add code to collect AVX512 registers from
5375 XSAVE buffer.
5376 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5377 of XMM16-31 registers.
5378 (I387_NUM_K_REGS): New define for number of K registers.
5379 (I387_K0_REGNUM): New define for K0 register number.
5380 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5381 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5382 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5383 registers.
5384 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5385 (I387_XMM16_REGNUM): New define for XMM16 register number.
5386 (I387_YMM0_REGNUM): New define for YMM0 register number.
5387 (I387_KEND_REGNUM): New define for last K register number.
5388 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5389 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5390 number.
5391 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5392 number.
5393 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5394 size.
5395 * features/Makefile: Add AVX512 related files.
5396 * features/i386/32bit-avx512.xml: New file.
5397 * features/i386/64bit-avx512.xml: Likewise.
5398 * features/i386/amd64-avx512-linux.c: Likewise.
5399 * features/i386/amd64-avx512-linux.xml: Likewise.
5400 * features/i386/amd64-avx512.c: Likewise.
5401 * features/i386/amd64-avx512.xml: Likewise.
5402 * features/i386/i386-avx512-linux.c: Likewise.
5403 * features/i386/i386-avx512-linux.xml: Likewise.
5404 * features/i386/i386-avx512.c: Likewise.
5405 * features/i386/i386-avx512.xml: Likewise.
5406 * features/i386/x32-avx512-linux.c: Likewise.
5407 * features/i386/x32-avx512-linux.xml: Likewise.
5408 * features/i386/x32-avx512.c: Likewise.
5409 * features/i386/x32-avx512.xml: Likewise.
5410 * regformats/i386/amd64-avx512-linux.dat: New file.
5411 * regformats/i386/amd64-avx512.dat: Likewise.
5412 * regformats/i386/i386-avx512-linux.dat: Likewise.
5413 * regformats/i386/i386-avx512.dat: Likewise.
5414 * regformats/i386/x32-avx512-linux.dat: Likewise.
5415 * regformats/i386/x32-avx512.dat: Likewise.
5416 * NEWS: Add note about new support for AVX512.
5417
5418
08351840
PA
54192014-04-23 Pedro Alves <palves@redhat.com>
5420
5421 * breakpoint.c (insert_bp_location): Tolerate errors if the
5422 breakpoint is set in a user-loaded objfile.
5423 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5424 location is marked shlib_disabled. If the breakpoint is set in a
5425 user-loaded objfile is a GDB-side memory breakpoint, validate it
5426 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5427 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5428 flag.
5429 * mem-break.c (memory_validate_breakpoint): New function.
5430 * objfiles.c (userloaded_objfile_contains_address_p): New
5431 function.
5432 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5433 * target.h (memory_validate_breakpoint): New declaration.
5434
076855f9
PA
54352014-04-23 Pedro Alves <palves@redhat.com>
5436
5437 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5438 the breakpoint is set in a shared library, only suppress
5439 errors for software breakpoints, not hardware breakpoints.
5440
483805cf
PA
54412014-04-22 Pedro Alves <palves@redhat.com>
5442
5443 * infrun.c (schedlock_applies): New function, factored out from
5444 find_thread_needs_step_over.
5445 (find_thread_needs_step_over): Use it.
5446 (switch_back_to_stepped_thread): Always clear trap_expected if the
5447 step over is finished. Return early if scheduler locking applies.
5448 Look for the stepping thread and a potential step-over thread with
5449 a single loop.
5450 (currently_stepping_or_nexting_callback): Delete.
5451
a75fef0e
NC
54522014-04-22 Nick Clifton <nickc@redhat.com>
5453
5454 * NEWS: Mention that ARM sim now supports tracing.
5455
48b6e87e
YQ
54562014-04-22 Yao Qi <yao@codesourcery.com>
5457
5458 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5459 to ...
5460 * tracefile.c (tracefile_fetch_registers): ... it. New
5461 function.
5462 * tracefile.h (tracefile_fetch_registers): Declare.
5463 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5464 tracefile_fetch_registers.
5465
17617f2d
EZ
54662014-04-19 Eli Zaretskii <eliz@gnu.org>
5467
5468 PR gdb/14018
5469 * windows-nat.c (thread_rec): Don't display a warning when
5470 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5471 fails for any reason, set th->suspended to -1, so that we don't
5472 try to resume such a thread. Also, don't return NULL in these
5473 cases, to avoid completely ruin the session due to "PC register is
5474 not available" error.
5475 (do_windows_fetch_inferior_registers): Check errors in
5476 GetThreadContext call.
5477 (windows_continue): Accept an additional argument KILLED; if not
5478 zero, ignore errors in the SetThreadContext call, since the
5479 inferior was killed and is shutting down.
5480 (windows_resume, get_windows_debug_event)
5481 (windows_create_inferior, windows_mourn_inferior)
5482 (windows_kill_inferior): All callers of windows_continue changed
5483 to adjust to its new calling sequence.
5484
5723a6fd
YQ
54852014-04-19 Yao Qi <yao@codesourcery.com>
5486
5487 * ctf.c (ctf_open): Call post_create_inferior.
5488
614d5099
YQ
54892014-04-19 Yao Qi <yao@codesourcery.com>
5490
5491 * ctf.c (handle_id): New static variable.
5492 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5493 value. Get the declaration of event "register" and get length
5494 of field "contents".
5495
dac3e710
YQ
54962014-04-19 Yao Qi <yao@codesourcery.com>
5497
5498 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5499
2bca57ba
SC
55002014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5501
5502 * valops.c (oload_method_static): Remove unnecessary argument
5503 METHOD. Update all callers.
5504
51d48146
PA
55052014-04-18 Pedro alves <palves@redhat.com>
5506 Tom Tromey <tromey@redhat.com>
5507
5508 PR backtrace/15558
5509 * frame.c (get_prev_frame_1): Rename to ...
5510 (get_prev_frame_always): ... this, and make extern. Adjust.
5511 (skip_artificial_frames): Use get_prev_frame_always.
5512 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5513 (get_frame_unwind_stop_reason): Adjust to rename.
5514 * frame.h (get_prev_frame_always): Declare.
5515 * inline-frame.c: Include frame.h.
5516 (inline_frame_this_id): Use get_prev_frame_always.
5517
1bdad2e0
TG
55182014-04-18 Tristan Gingold <gingold@adacore.com>
5519
5520 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5521 code by using bfd_mach_o_get_base_address.
5522
7ce16bd4
UW
55232014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5524
5525 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5526 (spu_ax_pseudo_register_collect): New function.
5527 (spu_ax_pseudo_register_push_stack): Likewise.
5528 (spu_dwarf_reg_to_regnum): Likewise.
5529 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5530
2ed3c037
UW
55312014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5532
5533 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5534 Replace FRAME argument with FRAME_ID.
5535 * gdbarch.c, gdbarch.h: Regenerate.
5536 * findvar.c (default_value_from_register): Add GDBARCH argument;
5537 replace FRAME by FRAME_ID. No longer call get_frame_id.
5538 (value_from_register): Update call to gdbarch_value_from_register.
5539 * value.h (default_value_from_register): Update prototype.
5540 * s390-linux-tdep.c (s390_value_from_register): Update interface
5541 and call to default_value_from_register.
5542 * spu-tdep.c (spu_value_from_register): Likewise.
5543
5544 * findvar.c (address_from_register): Remove TYPE argument.
5545 Do not call value_from_register; use gdbarch_value_from_register
5546 with null_frame_id instead.
5547 * value.h (address_from_register): Update prototype.
5548 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5549 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5550 address_from_register interface change.
5551
71e50e83
YQ
55522014-04-17 Yao Qi <yao@codesourcery.com>
5553
5554 * gdbtypes.h: Update comments to link to types and macros'
5555 definitions.
5556
7a23c549
SC
55572014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5558
5559 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5560
22869d73
KS
55612014-04-16 Keith Seitz <keiths@redhat.com>
5562
5563 PR gdb/15827
5564 * dwarf2read.c (skip_one_die): Check that all relative-offset
5565 sibling DIEs fall within range of the current reader's buffer.
5566 (read_partial_die): Likewise.
5567
c4f87ca6
KS
55682014-04-16 Keith Seitz <keiths@redhat.com>
5569
5570 PR c++/16597
5571 * cp-namespace.c (lookup_symbol_file): If the type name of
5572 `this' is NULL, return immediately.
5573
b50c8614
KS
55742014-04-14 Keith Seitz <keiths@redhat.com>
5575
5576 PR c++/16253
5577 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5578 from symbol_matches_domain in symtab.c. All local callers
5579 of symbol_matches_domain updated.
5580 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5581 search STRUCT_DOMAIN.
5582 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5583 independently. standard_lookup will do that automatically.
5584 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5585 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5586 (cp_lookup_symbol_in_namespace): Likewise.
5587 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5588 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5589 may return a STRUCT_DOMAIN match.
5590 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5591 * cp-support.c: Include language.h.
5592 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5593 VAR_DOMAIN.
5594 * psymtab.c (match_partial_symbol): Compare the requested
5595 domain with the symbol's domain directly.
5596 (lookup_partial_symbol): Likewise.
5597 * symtab.c (lookup_symbol_in_language): Explain when/why
5598 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5599 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5600 appropriate languages.
5601 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5602 and moved to ada-lang.c
5603 (lookup_block_symbol): Explain that this function only returns
5604 symbol matching the requested DOMAIN.
5605 Compare the requested domain with the symbol's domain directly.
5606 (iterate_over_symbols): Compare the requested domain with the
5607 symbol's domain directly.
5608 * symtab.h (symbol_matches_domain): Remove.
5609
3d567982
TT
56102014-04-14 Tom Tromey <tromey@redhat.com>
5611
5612 PR c++/15246:
5613 * c-exp.y (type_aggregate_p): New function.
5614 (qualified_name, classify_inner_name): Use it.
5615 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5616 and TYPE_TARGET_TYPE of an enum type.
5617 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5618 an enum type.
5619 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5620 handle TYPE_DECLARED_CLASS.
5621 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5622 types.
5623 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5624 * valops.c (enum_constant_from_type): New function.
5625 (value_aggregate_elt): Use it.
5626 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5627 TYPE_CODE_ENUM.
5628
c848d642
TT
56292014-04-14 Tom Tromey <tromey@redhat.com>
5630
5631 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5632 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5633 const.
5634 * value.h (value_aggregate_elt): Update.
5635
0626fc76
TT
56362014-04-14 Tom Tromey <tromey@redhat.com>
5637
5638 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5639
5ecaaa66
SA
56402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5641
5642 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5643 (evaluate_subexp_standard): Pass noside argument.
5644 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5645 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5646 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5647 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5648 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5649
1612e0c0
SA
56502014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5651
5652 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5653 points to a constant blob.
5654
c451ebe5
SA
56552014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5656
5657 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5658 property and store it as the high bound and flag the range accordingly.
5659 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5660 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5661 * gdbtypes.h (enum range_flags): New enum.
5662 (struct range_bounds): Add flags member.
5663
1d42e4c4
SA
56642014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5665
5666 * c-typeprint.c (c_type_print_varspec_suffix): Added
5667 check for not yet resolved high bound. If unresolved, print
5668 "variable length" string to the console instead of random
5669 length.
5670
9f1f738a
SA
56712014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5672
5673 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5674 value.
5675 (ada_template_to_fixed_record_type_1): Likewise.
5676 (ada_to_fixed_type_1): Likewise.
5677 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5678 (cp_print_value): Likewise.
5679 * d-valprint.c (dynamic_array_type): Likewise.
5680 * findvar.c (address_of_variable): Likewise.
5681 * jv-valprint.c (java_value_print): Likewise.
5682 * valops.c (value_ind): Likewise.
5683 * value.c (coerce_ref): Likewise.
5684
3c8452d4
SA
56852014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5686
5687 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5688 value and retrieve the dynamic type size.
5689
4ad88275
SA
56902014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5691
5692 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5693 passed to sizeof is dynamic evaluate the argument to compute the length.
5694
80180f79
SA
56952014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5696 Joel Brobecker <brobecker@adacore.com>
5697
5698 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5699 (dwarf2_evaluate_property): New function.
5700 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5701 * dwarf2read.c (attr_to_dynamic_prop): New function.
5702 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5703 attribute.
5704 * gdbtypes.c: Include dwarf2loc.h.
5705 (is_dynamic_type): New function.
5706 (resolve_dynamic_type): New function.
5707 (resolve_dynamic_bounds): New function.
5708 (get_type_length): New function.
5709 (check_typedef): Use get_type_length to compute type length.
5710 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5711 (TYPE_LOW_BOUND_KIND): New macro.
5712 (is_dynamic_type): New function prototype.
5713 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5714 to resolve dynamic properties of the type. Update comment.
5715 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5716
a1556843
RH
57172014-04-14 Richard Henderson <rth@redhat.com>
5718
5719 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5720
0be03e84
DE
57212014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5722 Doug Evans <xdje42@gmail.com>
5723
5724 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5725 dereference TYPE_CODE_REF values.
5726
6b662e19
JB
57272014-04-11 Joel Brobecker <brobecker@adacore.com>
5728
5729 Revert the following changes due to regressions:
5730
5731 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5732 (dwarf2_evaluate_property): New function.
5733 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5734 * dwarf2read.c (attr_to_dynamic_prop): New function.
5735 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5736 attribute.
5737 * gdbtypes.c: Include dwarf2loc.h.
5738 (is_dynamic_type): New function.
5739 (resolve_dynamic_type): New function.
5740 (resolve_dynamic_bounds): New function.
5741 (get_type_length): New function.
5742 (check_typedef): Use get_type_length to compute type length.
5743 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5744 (TYPE_LOW_BOUND_KIND): New macro.
5745 (is_dynamic_type): New function prototype.
5746 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5747 to resolve dynamic properties of the type. Update comment.
5748 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5749
5750 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5751 passed to sizeof is dynamic evaluate the argument to compute the length.
5752
5753 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5754 value and retrieve the dynamic type size.
5755
5756 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5757 (ada_template_to_fixed_record_type_1): Likewise.
5758 (ada_to_fixed_type_1): Likewise.
5759 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5760 (cp_print_value): Likewise.
5761 * d-valprint.c (dynamic_array_type): Likewise.
5762 * eval.c (evaluate_subexp_with_coercion): Likewise.
5763 * findvar.c (address_of_variable): Likewise.
5764 * jv-valprint.c (java_value_print): Likewise.
5765 * valops.c (value_ind): Likewise.
5766 * value.c (coerce_ref): Likewise.
5767
5768 * c-typeprint.c (c_type_print_varspec_suffix): Added
5769 check for not yet resolved high bound. If unresolved, print
5770 "variable length" string to the console instead of random
5771 length.
5772
5773 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5774 property and store it as the high bound and flag the range accordingly.
5775 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5776 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5777 * gdbtypes.h (enum range_flags): New enum.
5778 (struct range_bounds): Add flags member.
5779
5780 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5781 points to a constant blob.
5782
5783 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5784 (evaluate_subexp_standard): Pass noside argument.
5785 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5786 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5787 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5788 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5789 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5790
245a5f0b
KS
57912014-04-11 Keith Seitz <keiths@redhat.com>
5792
5793 PR c++/16675
5794 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5795 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5796 reference types.
5797
3bce8237
SA
57982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5799
5800 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5801 (evaluate_subexp_standard): Pass noside argument.
5802 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5803 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5804 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5805 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5806 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5807
92b09522
SA
58082014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5809
5810 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5811 points to a constant blob.
5812
e1969afb
SA
58132014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5814
5815 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5816 property and store it as the high bound and flag the range accordingly.
5817 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5818 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5819 * gdbtypes.h (enum range_flags): New enum.
5820 (struct range_bounds): Add flags member.
5821
b86138fb
SA
58222014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5823
5824 * c-typeprint.c (c_type_print_varspec_suffix): Added
5825 check for not yet resolved high bound. If unresolved, print
5826 "variable length" string to the console instead of random
5827 length.
5828
bcd629a4
SA
58292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5830
5831 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5832 (ada_template_to_fixed_record_type_1): Likewise.
5833 (ada_to_fixed_type_1): Likewise.
5834 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5835 (cp_print_value): Likewise.
5836 * d-valprint.c (dynamic_array_type): Likewise.
5837 * eval.c (evaluate_subexp_with_coercion): Likewise.
5838 * findvar.c (address_of_variable): Likewise.
5839 * jv-valprint.c (java_value_print): Likewise.
5840 * valops.c (value_ind): Likewise.
5841 * value.c (coerce_ref): Likewise.
5842
04b19544
SA
58432014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5844
5845 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5846 value and retrieve the dynamic type size.
5847
26cb189f
SA
58482014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5849
5850 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5851 passed to sizeof is dynamic evaluate the argument to compute the length.
5852
37c1ab67
SA
58532014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5854
5855 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5856 (dwarf2_evaluate_property): New function.
5857 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5858 * dwarf2read.c (attr_to_dynamic_prop): New function.
5859 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5860 attribute.
5861 * gdbtypes.c: Include dwarf2loc.h.
5862 (is_dynamic_type): New function.
5863 (resolve_dynamic_type): New function.
5864 (resolve_dynamic_bounds): New function.
5865 (get_type_length): New function.
5866 (check_typedef): Use get_type_length to compute type length.
5867 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5868 (TYPE_LOW_BOUND_KIND): New macro.
5869 (is_dynamic_type): New function prototype.
5870 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5871 to resolve dynamic properties of the type. Update comment.
5872 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5873
729efb13
SA
58742014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5875
5876 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5877 declaring high/low bounds and change uses accordingly. Call
5878 create_range_type instead of create_static_range_type.
5879 * gdbtypes.c (create_range_type): New function.
5880 (create_range_type): Convert bounds into struct bound_prop and pass
5881 them to create_range_type.
5882 * gdbtypes.h (struct bound_prop): New struct.
5883 (create_range_type): New function prototype.
5884 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5885 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5886 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5887 part of the bound.
5888 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5889
0c9c3474
SA
58902014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5891
5892 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5893 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5894 * ada-lang.c: All uses of create_range_type updated.
5895 * coffread.c: All uses of create_range_type updated.
5896 * dwarf2read.c: All uses of create_range_type updated.
5897 * f-exp.y: All uses of create_range_type updated.
5898 * m2-valprint.c: All uses of create_range_type updated.
5899 * mdebugread.c: All uses of create_range_type updated.
5900 * stabsread.c: All uses of create_range_type updated.
5901 * valops.c: All uses of create_range_type updated.
5902 * valprint.c: All uses of create_range_type updated.
5903
9d497a19
PA
59042014-04-10 Pedro Alves <palves@redhat.com>
5905
5906 * breakpoint.c (single_step_breakpoints)
5907 (single_step_gdbarch): Move up in the file.
5908 (one_breakpoint_xfer_memory): New function, factored out from ...
5909 (breakpoint_xfer_memory): ... here. Also process single-step
5910 breakpoints.
5911
15a9128a
TG
59122014-04-09 Tristan Gingold <gingold@adacore.com>
5913
5914 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5915 comments.
5916 (darwin_decode_exception_message): Free port only after use.
5917
9c97a070
PL
59182014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5919
5920 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5921 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5922 when setting the size of call_length.
5923
7af389b8
SC
59242014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5925
5926 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5927 dereference TYPE_CODE_REF values.
5928
86ad98c3
JB
59292014-04-07 Joel Brobecker <brobecker@adacore.com>
5930
5931 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5932 end of warning message.
5933
b0aeadb3
DE
59342014-04-03 Doug Evans <dje@google.com>
5935
5936 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5937 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5938
5979d6b6
AM
59392014-04-02 Alan Modra <amodra@gmail.com>
5940
5941 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5942 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5943 (struct symbol_file_add_from_memory_args): Add size field.
5944 (find_vdso_size): New function.
5945 (add_vsyscall_page): Attempt to find vdso size.
5946
0d60c288
DE
59472014-04-01 Doug Evans <dje@google.com>
5948
5949 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5950
a41f2563
TG
59512014-04-01 Tristan Gingold <gingold@adacore.com>
5952
5953 * darwin-nat.c (darwin_encode_reply): Add prototype.
5954 (darwin_decode_exception_message): Reply to unknown inferiors.
5955 (darwin_decode_message): Handle message by id. Ignore message
5956 to unknown inferior.
5957 (darwin_wait): Discard unknown messages, add debug trace.
5958
11a865c8
DE
59592014-03-31 Doug Evans <dje@google.com>
5960
5961 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5962 comp_dir_string.
5963
770e7fc7
DE
59642014-03-31 Doug Evans <dje@google.com>
5965
5966 New option "set print symbol-loading".
5967 * NEWS: Mention it.
5968 * solib.c (solib_read_symbols): Only print symbol loading messages
5969 if requested.
5970 (solib_add): If symbol loading is in "brief" mode, notify user
5971 symbols are being loaded.
5972 (reload_shared_libraries_1): Ditto.
5973 * symfile.c (print_symbol_loading_off): New static global.
5974 (print_symbol_loading_brief): New static global.
5975 (print_symbol_loading_full): New static global.
5976 (print_symbol_loading_enums): New static global.
5977 (print_symbol_loading): New static global.
5978 (print_symbol_loading_p): New function.
5979 (symbol_file_add_with_addrs): Only print symbol loading messages
5980 if requested.
5981 (_initialize_symfile): Register "print symbol-loading" set/show
5982 command.
5983 * symfile.h (print_symbol_loading_p): Declare.
5984
c32c64b7
DE
59852014-03-30 Doug Evans <xdje42@gmail.com>
5986
5987 * infrun.c (set_last_target_status): New function.
5988 (handle_inferior_event): Call it.
5989
7c0bc051
DE
59902014-03-30 Doug Evans <xdje42@gmail.com>
5991
5992 * inferior.h (enum stop_kind): Improve comment.
5993
8776cfe9
JB
59942014-03-28 Joel Brobecker <brobecker@adacore.com>
5995
5996 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5997 a reference, strip the reference layer before calling
5998 the lang_ops value_has_mutated callback.
5999
410a0ff2
SDJ
60002014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
6001
6002 Remove some globals from our parser.
6003 * language.c (unk_lang_parser): Add "struct parser_state"
6004 argument.
6005 * language.h (struct language_defn) <la_parser>: Likewise.
6006 * parse.c (expout, expout_size, expout_ptr): Remove variables.
6007 (initialize_expout): Add "struct parser_state" argument.
6008 Rewrite function to use the parser state.
6009 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
6010 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
6011 write_exp_elt_longcst, write_exp_elt_dblcst,
6012 write_exp_elt_decfloatcst, write_exp_elt_type,
6013 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6014 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
6015 write_dollar_variable): Likewise.
6016 (parse_exp_in_context_1): Use parser state.
6017 (insert_type_address_space): Add "struct parser_state" argument.
6018 Use parser state.
6019 (increase_expout_size): New function.
6020 * parser-defs.h: Forward declare "struct language_defn" and
6021 "struct parser_state".
6022 (expout, expout_size, expout_ptr): Remove extern declarations.
6023 (parse_gdbarch, parse_language): Rewrite macro declarations to
6024 accept the parser state.
6025 (struct parser_state): New struct.
6026 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6027 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6028 write_exp_elt_decfloatcst, write_exp_elt_type,
6029 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6030 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6031 write_exp_msymbol, write_dollar_variable,
6032 mark_struct_expression, insert_type_address_space): Add "struct
6033 parser_state" argument.
6034 (increase_expout_size): New function.
6035 * utils.c (do_clear_parser_state): New function.
6036 (make_cleanup_clear_parser_state): Likewise.
6037 * utils.h (make_cleanup_clear_parser_state): New function
6038 prototype.
6039 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6040 Update calls to write_exp* in order to pass the parser state.
6041 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6042 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6043 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6044 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6045 * stap-probe.c (stap_parse_register_operand): Likewise.
6046 (stap_parse_single_operand): Likewise.
6047 (stap_parse_argument_1): Likewise.
6048 (stap_parse_argument): Use parser state.
6049 * stap-probe.h: Include "parser-defs.h".
6050 (struct stap_parse_info) <pstate>: New field.
6051 * c-exp.y (parse_type): Rewrite to use parser state.
6052 (yyparse): Redefine to c_parse_internal.
6053 (pstate): New global variable.
6054 (parse_number): Add "struct parser_state" argument.
6055 (write_destructor_name): Likewise.
6056 (type_exp): Update calls to write_exp* and similars in order to
6057 use parser state.
6058 (exp1, exp, variable, qualified_name, space_identifier,
6059 typename, typebase): Likewise.
6060 (write_destructor_name, parse_number, lex_one_token,
6061 classify_name, classify_inner_name, c_parse): Add "struct
6062 parser_state" argument. Update function to use parser state.
6063 * c-lang.h: Forward declare "struct parser_state".
6064 (c_parse): Add "struct parser_state" argument.
6065 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6066 (yyparse): Redefine macro to ada_parse_internal.
6067 (pstate): New variable.
6068 (write_int, write_object_renaming, write_var_or_type,
6069 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6070 type_int, type_long, type_long_long, type_float, type_double,
6071 type_long_double, type_char, type_boolean, type_system_address):
6072 Add "struct parser_state" argument.
6073 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6074 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6075 var_or_type, aggregate, aggregate_component_list,
6076 positional_list, others, component_group,
6077 component_associations): Update calls to write_exp* and similar
6078 functions in order to use parser state.
6079 (ada_parse, write_var_from_sym, write_int,
6080 write_exp_op_with_string, write_object_renaming,
6081 find_primitive_type, write_selectors, write_ambiguous_var,
6082 write_var_or_type, write_name_assoc, type_int, type_long,
6083 type_long_long, type_float, type_double, type_long_double,
6084 type_char, type_boolean, type_system_address): Add "struct
6085 parser_state" argument. Adjust function to use parser state.
6086 * ada-lang.c (parse): Likewise.
6087 * ada-lang.h: Forward declare "struct parser_state".
6088 (ada_parse): Add "struct parser_state" argument.
6089 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6090 calls to both functions.
6091 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6092 parser state.
6093 (yyparse): Redefine macro to f_parse_internal.
6094 (pstate): New variable.
6095 (parse_number): Add "struct parser_state" argument.
6096 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6097 and similars in order to use parser state.
6098 (parse_number): Adjust code to use parser state.
6099 (yylex): Likewise.
6100 (f_parse): New function.
6101 * f-lang.h: Forward declare "struct parser_state".
6102 (f_parse): Add "struct parser_state" argument.
6103 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6104 parser state.
6105 (yyparse): Redefine macro for java_parse_internal.
6106 (pstate): New variable.
6107 (push_expression_name, push_expression_name, insert_exp): Add
6108 "struct parser_state" argument.
6109 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6110 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6111 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6112 PostIncrementExpression, PostDecrementExpression,
6113 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6114 UnaryExpressionNotPlusMinus, CastExpression,
6115 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6116 RelationalExpression, EqualityExpression, AndExpression,
6117 ExclusiveOrExpression, InclusiveOrExpression,
6118 ConditionalAndExpression, ConditionalOrExpression,
6119 ConditionalExpression, Assignment, LeftHandSide): Update
6120 calls to write_exp* and similars in order to use parser state.
6121 (parse_number): Ajust code to use parser state.
6122 (yylex): Likewise.
6123 (java_parse): New function.
6124 (push_variable): Add "struct parser_state" argument. Adjust
6125 code to user parser state.
6126 (push_fieldnames, push_qualified_expression_name,
6127 push_expression_name, insert_exp): Likewise.
6128 * jv-lang.h: Forward declare "struct parser_state".
6129 (java_parse): Add "struct parser_state" argument.
6130 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6131 parser state.
6132 (yyparse): Redefine macro to m2_parse_internal.
6133 (pstate): New variable.
6134 (type_exp, exp, fblock, variable, type): Update calls to
6135 write_exp* and similars to use parser state.
6136 (yylex): Likewise.
6137 (m2_parse): New function.
6138 * m2-lang.h: Forward declare "struct parser_state".
6139 (m2_parse): Add "struct parser_state" argument.
6140 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6141 * objc-lang.h: Forward declare "struct parser_state".
6142 (end_msglist): Add "struct parser_state" argument.
6143 * p-exp.y (parse_type): Rewrite macro to use parser state.
6144 (yyparse): Redefine macro to pascal_parse_internal.
6145 (pstate): New variable.
6146 (parse_number): Add "struct parser_state" argument.
6147 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6148 write_exp* and similars in order to use parser state.
6149 (parse_number, yylex): Adjust code to use parser state.
6150 (pascal_parse): New function.
6151 * p-lang.h: Forward declare "struct parser_state".
6152 (pascal_parse): Add "struct parser_state" argument.
6153 * go-exp.y (parse_type): Rewrite macro to use parser state.
6154 (yyparse): Redefine macro to go_parse_internal.
6155 (pstate): New variable.
6156 (parse_number): Add "struct parser_state" argument.
6157 (type_exp, exp1, exp, variable, type): Update calls to
6158 write_exp* and similars in order to use parser state.
6159 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6160 to use parser state.
6161 (go_parse): Likewise.
6162 * go-lang.h: Forward declare "struct parser_state".
6163 (go_parse): Add "struct parser_state" argument.
6164
342587c4
DE
61652014-03-27 Doug Evans <dje@google.com>
6166
6167 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6168
33e80786
DE
61692014-03-27 Doug Evans <dje@google.com>
6170
6171 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6172 Remove argument abbrev_section. All callers updated.
6173
1dbab08b
DE
61742014-03-27 Doug Evans <dje@google.com>
6175
6176 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6177 addr_base, ranges_base.
6178
318d3177
KS
61792014-03-26 Keith Seitz <keiths@redhat.com>
6180
6181 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6182 types, not VAR_DOMAIN.
6183
1e54db15
SL
61842014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6185
6186 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6187 "ra" registers.
6188 * features/nios2-linux.c: Regenerated.
6189 * features/nios2.c: Regenerated.
6190
d3839ede
PA
61912014-03-25 Pedro Alves <palves@redhat.com>
6192
6193 * cli/cli-script.c (script_from_file): Force the interpreter to
6194 sync mode.
6195
7588d2ec
PL
61962014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6197
6198 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6199 small stack allocation.
6200
a6290449
TG
62012014-03-24 Tristan Gingold <gingold@adacore.com>
6202
6203 * darwin-nat.c (exc_server): Remove unused prototype.
6204 (darwin_dump_message): Correctly display data on x86_64.
6205 (darwin_encode_reply): Fix style.
6206 Add comments and fix indentation.
6207
31ae9d24 62082014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6209
6210 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6211
6339bfc4
DE
62122014-03-22 Doug Evans <xdje42@gmail.com>
6213
6214 * infcmd.c: Whitespace fixes.
6215 (interrupt_command): Merge two function comments into one.
6216
0a07590b
DE
62172014-03-22 Doug Evans <xdje42@gmail.com>
6218
6219 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6220 All uses updated.
6221
b55fbac4
YQ
62222014-03-22 Yao Qi <yao@codesourcery.com>
6223
6224 * remote.c (target_read_live_memory): Remove.
6225 (memory_xfer_live_readonly_partial): Rename it to
6226 remote_xfer_live_readonly_partial. Remove argument 'object'.
6227 All callers updated. Call remote_read_bytes_1
6228 instead of target_read_live_memory.
6229 * tracepoint.c (set_traceframe_number): Remove.
6230 (make_cleanup_restore_traceframe_number): Likewise .
6231 * tracepoint.h (set_traceframe_number): Remove declaration.
6232 (make_cleanup_restore_traceframe_number): Likewise.
6233
9217e74e
YQ
62342014-03-22 Yao Qi <yao@codesourcery.com>
6235
6236 * remote.c (remote_read_bytes): Move code on reading from the
6237 remote stub to ...
6238 (remote_read_bytes_1): ... here. New function.
6239
8acf9577
YQ
62402014-03-22 Yao Qi <yao@codesourcery.com>
6241
6242 * ctf.c (ctf_xfer_partial): Check the return value of
6243 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6244 return TARGET_XFER_UNAVAILABLE.
6245 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6246 * target.c (target_read_live_memory): Move it to remote.c.
6247 (memory_xfer_live_readonly_partial): Likewise.
6248 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6249 * remote.c (target_read_live_memory): Moved from target.c.
6250 (memory_xfer_live_readonly_partial): Likewise.
6251 (remote_read_bytes): Factored out from
6252 memory_xfer_partial_1.
6253
feef67ab
DE
62542014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6255
6256 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6257 NULL pointer.
6258
b65dc60b
PA
62592014-03-21 Pedro Alves <palves@redhat.com>
6260
6261 * infrun.c (normal_stop): Extend comment.
6262
b4ab256d
HZ
62632014-03-21 Hui Zhu <hui@codesourcery.com>
6264 Pedro Alves <palves@redhat.com>
6265
6266 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6267 static buffer.
6268 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6269 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6270 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6271
deba7593
MR
62722014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6273
6274 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6275 `z' formatted output modifier.
6276
1bff71c3
SDJ
62772014-03-20 Tom Tromey <tromey@redhat.com>
6278 Sergio Durigan Junior <sergiodj@redhat.com>
6279
6280 * probe.c (parse_probes): Turn assert into an ordinary error.
6281 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6282 exceptions when parsing probes. Rearrange the code for clarity.
6283
90e28950
TT
62842014-03-20 Tom Tromey <tromey@redhat.com>
6285
6286 PR gdb/14135
6287 * top.c (execute_command): Only dispatch events if the command
6288 started the target.
6289
beb460e8
PA
62902014-03-20 Tom Tromey <tromey@redhat.com>
6291
6292 PR cli/15718
6293 * infcall.c: Include event-top.h.
6294 (run_inferior_call): Call async_disable_stdin if needed.
6295
99619bea
PA
62962014-03-20 Pedro Alves <palves@redhat.com>
6297
6298 * infrun.c (prepare_to_proceed): Delete.
6299 (thread_still_needs_step_over): New function.
6300 (find_thread_needs_step_over): New function.
6301 (proceed): If the current thread needs a step-over, set its
6302 steping_over_breakpoint flag. Adjust to use
6303 find_thread_needs_step_over instead of prepare_to_proceed.
6304 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6305 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6306 breakpoint.
6307 (switch_back_to_stepped_thread): Step over breakpoints of all
6308 threads not the stepping thread, before switching back to the
6309 stepping thread.
6310
2adfaa28
PA
63112014-03-20 Pedro Alves <palves@redhat.com>
6312
6313 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6314 extern.
6315 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6316 * infrun.c (saved_singlestep_ptid)
6317 (stepping_past_singlestep_breakpoint): Delete.
6318 (resume): Remove stepping_past_singlestep_breakpoint handling.
6319 (proceed): Store the prev_pc of the stepping thread too.
6320 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6321 singlestep_pc.
6322 (enum infwait_states): Delete infwait_thread_hop_state.
6323 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6324 field.
6325 (handle_inferior_event): Adjust.
6326 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6327 handling and the thread-hop code. Before removing single-step
6328 breakpoints, check whether the thread hit a single-step breakpoint
6329 of another thread. If it did, the trap is not a random signal.
6330 (switch_back_to_stepped_thread): If the event thread hit a
6331 single-step breakpoint, unblock it before switching to the
6332 stepping thread. Handle the case of the stepped thread having
6333 advanced already.
6334 (keep_going): Handle the case of the current thread moving past a
6335 single-step breakpoint.
6336
31e77af2
PA
63372014-03-20 Pedro Alves <palves@redhat.com>
6338
6339 PR breakpoints/7143
6340 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6341 are being stepped over.
6342 (breakpoint_address_match): Make extern.
6343 * breakpoint.h (breakpoint_address_match): New declaration.
6344 * inferior.h (stepping_past_instruction_at): New declaration.
6345 * infrun.c (struct step_over_info): New type.
6346 (step_over_info): New global.
6347 (set_step_over_info, clear_step_over_info)
6348 (stepping_past_instruction_at): New functions.
6349 (handle_inferior_event): Clear the step-over info when
6350 trap_expected is cleared.
6351 (resume): Remove now stale comment.
6352 (clear_proceed_status): Clear step-over info.
6353 (proceed): Adjust step-over handling to set or clear the step-over
6354 info instead of removing all breakpoints.
6355 (handle_signal_stop): When setting up a thread-hop, don't remove
6356 breakpoints here.
6357 (stop_stepping): Clear step-over info.
6358 (keep_going): Adjust step-over handling to set or clear step-over
6359 info and then always inserting breakpoints, instead of removing
6360 all breakpoints when stepping over one.
6361
b9f437de
PA
63622014-03-20 Pedro Alves <palves@redhat.com>
6363
6364 * infrun.c (previous_inferior_ptid): Adjust comment.
6365 (deferred_step_ptid): Delete.
6366 (infrun_thread_ptid_changed, prepare_to_proceed)
6367 (init_wait_for_inferior): Adjust.
6368 (handle_signal_stop): Delete deferred_step_ptid handling.
6369
06c868a8
JK
63702014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6371
6372 PR gdb/15358
6373 * defs.h (sync_quit_force_run): New declaration.
6374 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6375 * event-top.c (async_sigterm_handler): New declaration.
6376 (async_sigterm_token): New variable.
6377 (async_init_signals): Create also async_sigterm_token.
6378 (async_sigterm_handler): New function.
6379 (sync_quit_force_run): New variable.
6380 (handle_sigterm): Replace quit_force call by other calls.
6381 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6382
dea80df0
MR
63832014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6384
6385 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6386 offset into SPE pseudo registers.
6387
0c7e1a46
PA
63882014-03-18 Pedro Alves <palves@redhat.com>
6389
6390 PR gdb/13860
6391 * inferior.h (print_stop_event): Declare.
6392 * infrun.c (print_stop_event): New, factored out from ...
6393 (normal_stop): ... this.
6394 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6395 of bpstat_print/print_stack_frame.
6396
9c1fcd01
TT
63972014-03-17 Tom Tromey <tromey@redhat.com>
6398
6399 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6400
11aa919a
PMR
64012014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6402
6403 * ada-lang.c (decode_constrained_packed_array): Perform a
6404 minimal coercion for reference with coerce_ref instead of
6405 ada_coerce_ref.
6406
d4ccb5e0
TG
64072014-03-17 Tristan Gingold <gingold@adacore.com>
6408
6409 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6410 (darwin_solib_create_inferior_hook): Emit a warning if version
6411 is unhandled.
6412
49840f2a
UW
64132014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6414
6415 * python/py-value.c (get_field_flag): Cast flag_name argument to
6416 PyObject_GetAttrString to support Python 2.4.
6417
ed4123e5
JK
64182014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6419
6420 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6421 (Global Maintainers): Remove Jan Kratochvil.
6422
d6b64346
PA
64232014-03-14 Pedro Alves <palves@redhat.com>
6424
6425 * inferior.h (terminal_ours_for_output): Rename to ...
6426 (child_terminal_ours_for_output): ... this.
6427 (terminal_save_ours): Rename to ...
6428 (child_terminal_save_ours): ... this.
6429 (terminal_ours): Rename to ...
6430 (child_terminal_ours): ... this.
6431 (terminal_inferior): Rename to ...
6432 (child_terminal_inferior): ... this.
6433 (terminal_init_inferior): Rename to ...
6434 (child_terminal_init_inferior): ... this.
6435 (terminal_init_inferior_with_pgrp): Rename to ...
6436 (child_terminal_init_inferior_with_pgrp): ... this.
6437 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6438 (child_terminal_init_with_pgrp): ... this.
6439 (terminal_save_ours): Rename to ...
6440 (child_terminal_save_ours): ... this.
6441 (terminal_init_inferior): Rename to ...
6442 (child_terminal_init): ... this. Adjust.
6443 (terminal_inferior): Rename to ...
6444 (child_terminal_inferior): ... this.
6445 (terminal_ours_for_output): Rename to ...
6446 (child_terminal_ours_for_output): ... this. Adjust.
6447 (terminal_ours): Rename to ...
6448 (child_terminal_ours): ... this.
6449 (terminal_ours_1): Rename to ...
6450 (child_terminal_ours_1): ... this. Adjust.
6451 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6452 * windows-nat.c (do_initial_windows_stuff): Adjust.
6453 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6454 (gnu_terminal_init): ... this. Adjust.
6455 (gnu_target): Adjust.
6456 * inf-child.c (inf_child_target): Adjust.
6457
5a1e8c7a
DE
64582014-03-13 Doug Evans <xdje42@gmail.com>
6459
6460 PR guile/16612
6461 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6462 new eq?-hashtab.
6463
350e1a76
DE
64642014-03-13 Doug Evans <xdje42@gmail.com>
6465
6466 * value.c (record_latest_value): Call release_value_or_incref
6467 instead of release_value.
6468
a69900ae
PA
64692014-03-13 Pedro Alves <palves@redhat.com>
6470
6471 * procfs.c (procfs_target): Don't override to_shortname,
6472 to_longname or to_doc.
6473
5db9f0bd
PA
64742014-03-13 Pedro Alves <palves@redhat.com>
6475
6476 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6477 Unix in user visible strings.
6478
5e3a2c38
SS
64792014-03-12 Stan Shebs <stan@codesourcery.com>
6480
6481 * gdbtypes.h: Annotate comments for Doxygen, add a page
6482 block comment with some general info.
6483
8bc2fe48
PA
64842014-03-12 Pedro Alves <palves@redhat.com>
6485
6486 * infcmd.c (prepare_execution_command): New function, factored out
6487 from several execution commands.
6488 (run_command_1, continue_command, step_1, jump_command)
6489 (signal_command, until_command, advance_command, finish_command)
6490 (attach_command): Use prepare_execution_command.
6491
638c5f49
OJ
64922014-03-12 Omair Javaid <omair.javaid@linaro.org>
6493
6494 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6495 (MAX_BPTS): Define.
6496 (MAX_WPTS): Define.
6497 (struct arm_linux_thread_points): Removed.
6498 (struct arm_linux_process_info): New.
6499 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6500 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6501 (arm_linux_find_breakpoints_by_tid): Removed.
6502 (struct arch_lwp_info): New.
6503 (arm_linux_find_process_pid): New functions.
6504 (arm_linux_add_process): New functions.
6505 (arm_linux_process_info_get): New functions.
6506 (arm_linux_forget_process): New function.
6507 (arm_linux_get_debug_reg_state): New function.
6508 (struct update_registers_data): New.
6509 (update_registers_callback): New function.
6510 (arm_linux_insert_hw_breakpoint1): Updated.
6511 (arm_linux_remove_hw_breakpoint1): Updated.
6512 (arm_linux_insert_hw_breakpoint): Updated.
6513 (arm_linux_remove_hw_breakpoint): Updated.
6514 (arm_linux_insert_watchpoint): Updated.
6515 (arm_linux_remove_watchpoint): Updated.
6516 (arm_linux_new_thread): Updated.
6517 (arm_linux_prepare_to_resume): New function.
6518 (arm_linux_new_fork): New function.
6519 (_initialize_arm_linux_nat): Updated.
6520
6d03af93
PA
65212014-03-12 Pedro Alves <palves@redhat.com>
6522
6523 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6524
b3ccfe11
TT
65252014-03-12 Tom Tromey <tromey@redhat.com>
6526
6527 * inf-child.c (return_zero): New function.
6528 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6529 * aix-thread.c (aix_thread_inferior_created): New function.
6530 (aix_thread_attach): Remove.
6531 (init_aix_thread_ops): Don't set to_attach.
6532 (_initialize_aix_thread): Register inferior_created observer.
6533 * corelow.c (init_core_ops): Don't set to_attach or
6534 to_create_inferior.
6535 * exec.c (init_exec_ops): Don't set to_attach or
6536 to_create_inferior.
6537 * infcmd.c (run_command_1): Use find_run_target. Make direct
6538 target calls.
6539 (attach_command): Use find_attach_target. Make direct target
6540 calls.
6541 * record-btrace.c (init_record_btrace_ops): Don't set
6542 to_create_inferior.
6543 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6544 Remove.
6545 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6546 set to_create_inferior.
6547 * target.c (complete_target_initialization): Add assertion.
6548 (target_create_inferior): Remove.
6549 (find_default_attach, find_default_create_inferior): Remove.
6550 (find_attach_target, find_run_target): New functions.
6551 (find_default_is_async_p, find_default_can_async_p)
6552 (target_supports_non_stop, target_attach): Remove.
6553 (init_dummy_target): Don't set to_create_inferior or
6554 to_supports_non_stop.
6555 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6556 TARGET_DEFAULT_FUNC.
6557 <to_create_inferior>: Add comment.
6558 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6559 TARGET_DEFAULT_RETURN.
6560 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6561 (find_attach_target, find_run_target): Declare.
6562 (target_create_inferior): Remove.
6563 (target_has_execution_1): Update comment.
6564 (target_supports_non_stop): Remove.
6565 * target-delegates.c: Rebuild.
6566
91f83b02
PA
65672014-03-12 Pedro Alves <palves@redhat.com>
6568
6569 * inf-child.h: Update comment to not mention Unix.
6570
f1aea813
PA
65712014-03-12 Pedro Alves <palves@redhat.com>
6572
6573 * inf-child.c: Update top comment to not mention Unix. Add
6574 generic comment describing how this target is meant to be used.
6575 (inf_child_post_attach, inf_child_post_startup_inferior)
6576 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6577 Unix in comment.
6578
ee8e9165
PA
65792014-03-12 Pedro Alves <palves@redhat.com>
6580
6581 * nto-procfs.c: Include inf-child.h.
6582 (procfs_ops): Delete global.
6583 (procfs_can_run): Delete method.
6584 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6585 target pointer instead of referencing procfs_ops.
6586 (procfs_prepare_to_store): Delete.
6587 (init_procfs_ops): Delete function.
6588 (procfs_target): New function, based on init_procfs_ops, but
6589 inherit inf_child_target.
6590 (_initialize_procfs): Use procfs_target.
6591
51a9c8c5
PA
65922014-03-12 Pedro Alves <palves@redhat.com>
6593
6594 * windows-nat.c: Include inf-child.h.
6595 (windows_ops): Delete global.
6596 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6597 methods.
6598 (init_windows_ops): Delete function.
6599 (windows_target): New function, based on init_windows_ops, but
6600 inherit inf_child_target.
6601 (_initialize_windows_nat): Use windows_target. Install x86
6602 specific target methods here.
6603
c1966e26
DE
66042014-03-10 Doug Evans <xdje42@gmail.com>
6605
6606 * guile/guile.c (call_initialize_gdb_module): New function.
6607 (initialize_guile): Replace call to scm_init_guile with call to
6608 scm_with_guile.
6609
023db19c
JB
66102014-03-10 Joel Brobecker <brobecker@adacore.com>
6611
6612 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6613 in call to TYPE_CODE macro.
6614
5ec18f2b
JG
66152014-03-10 Jerome Guitton <guitton@adacore.com>
6616
8668be63
JB
6617 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6618 Resolve tagged types to full view.
5ec18f2b 6619
7d03f2eb
HZ
66202014-03-10 Hui Zhu <hui@codesourcery.com>
6621
6622 * target.h (target_insert_breakpoint): Remove "hardware" from its
6623 comments.
6624
c5164cbc
DE
66252014-03-07 Doug Evans <dje@google.com>
6626
6627 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6628
c4a3fee2
DE
66292014-03-07 Doug Evans <dje@google.com>
6630
6631 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6632 Remove unused local comp_dir_attr. Assert exactly one of
6633 stub_comp_unit_die, stub_comp_dir is non-NULL.
6634
3156469c
JB
66352014-03-07 Joel Brobecker <brobecker@adacore.com>
6636
6637 * target.h (complete_target_initialization, add_target):
6638 Add comment.
6639
c1a7b7c6
PA
66402014-03-07 Pedro Alves <palves@redhat.com>
6641
6642 * go32-nat.c: Include inf-child.h.
6643 (go32_ops): Delete global.
6644 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6645 Delete methods.
6646 (go32_create_inferior): Push the passed in target pointer instead
6647 of referencing go32_ops.
6648 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6649 (go32_target): New function, based on init_go32_ops, but inherit
6650 inf_child_target.
6651 (_initialize_go32_nat): Use go32_target. Move parts of
6652 init_go32_ops here.
6653
d3c1a85f
JB
66542014-03-06 Joel Brobecker <brobecker@adacore.com>
6655
6656 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6657 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6658 SYMBOL_VALUE_ADDRESS.
6659 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6660
5fa1d40e
YQ
66612014-03-06 Yao Qi <yao@codesourcery.com>
6662
6663 * breakpoint.c (get_tracepoint_by_number): Remove argument
6664 optional_p. All callers updated. Adjust comments. Update
6665 output message.
6666 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6667
0c13193f
YQ
66682014-03-06 Yao Qi <yao@codesourcery.com>
6669
6670 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6671 early if get_number returns zero. Use 'p' instead of 'args'.
6672
2217da06
YQ
66732014-03-06 Yao Qi <yao@codesourcery.com>
6674
6675 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6676 message.
6677
cc3da688
YQ
66782014-03-06 Yao Qi <yao@codesourcery.com>
6679
6680 PR breakpoints/16508
6681 * tracepoint.c (check_trace_running): New function.
6682 (trace_find_command): Move code to check_trace_running and
6683 call check_trace_running.
6684 (trace_find_pc_command): Likewise.
6685 (trace_find_tracepoint_command): Likewise.
6686 (trace_find_line_command): Likewise.
6687 (trace_find_range_command): Likewise.
6688 * tracepoint.h (check_trace_running): Likewise.
6689 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6690
6a5f844b
YQ
66912014-03-06 Yao Qi <yao@codesourcery.com>
6692
6693 * target.h (struct target_ops) <to_traceframe_info>: Use
6694 TARGET_DEFAULT_NORETURN (tcomplain ()).
6695 * target-delegates.c: Regenerated.
6696
0f26cec1
PA
66972014-03-05 Pedro Alves <palves@redhat.com>
6698
6699 PR gdb/16575
6700 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6701 void. Update comment.
6702 (dcache_xfer_memory): Delete.
6703 (dcache_read_memory_partial): New, based on the read bits of
6704 dcache_xfer_memory.
6705 (dcache_update): Add status parameter. Use ULONGEST for len, and
6706 adjust. Discard cache lines if the reason for the update was
6707 error.
6708 * dcache.h (dcache_xfer_memory): Delete declaration.
6709 (dcache_read_memory_partial): New declaration.
6710 (dcache_update): Update prototype.
6711 * target.c (raw_memory_xfer_partial): Update the dcache here.
6712 (memory_xfer_partial_1): Don't handle dcache writes here.
6713
b2b255bd
MF
67142014-03-05 Mike Frysinger <vapier@gentoo.org>
6715
6716 * remote-sim.c (gdbsim_load): Add const to prog.
6717
5d9cf8a4
TT
67182014-03-03 Tom Tromey <tromey@redhat.com>
6719
6720 * elfread.c (probe_key): Change to bfd_data.
6721 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6722 now per-BFD, not per-objfile.
6723 * stap-probe.c (stap_probe_destroy): Update comment.
6724 (handle_stap_probe): Allocate on the per-BFD obstack.
6725
729662a5
TT
67262014-03-03 Tom Tromey <tromey@redhat.com>
6727
6728 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6729 * breakpoint.c (create_longjmp_master_breakpoint): Use
6730 get_probe_address.
6731 (add_location_to_breakpoint, bkpt_probe_insert_location)
6732 (bkpt_probe_remove_location): Update.
6733 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6734 * elfread.c (elf_symfile_relocate_probe): Remove.
6735 (elf_probe_fns): Update.
6736 (insert_exception_resume_breakpoint): Change type of "probe"
6737 parameter to bound_probe.
6738 (check_exception_resume): Update.
6739 * objfiles.c (objfile_relocate1): Don't relocate probes.
6740 * probe.c (bound_probe_s): New typedef.
6741 (parse_probes): Use get_probe_address. Set sal's objfile.
6742 (find_probe_by_pc): Return a bound_probe.
6743 (collect_probes): Return a VEC(bound_probe_s).
6744 (compare_probes): Update.
6745 (gen_ui_out_table_header_info): Change type of "probes"
6746 parameter. Update.
6747 (info_probes_for_ops): Update.
6748 (get_probe_address): New function.
6749 (probe_safe_evaluate_at_pc): Update.
6750 * probe.h (struct probe_ops) <get_probe_address>: New field.
6751 <set_semaphore, clear_semaphore>: Add objfile parameter.
6752 (struct probe) <objfile>: Remove field.
6753 <arch>: New field.
6754 <address>: Update comment.
6755 (struct bound_probe): New.
6756 (find_probe_by_pc): Return a bound_probe.
6757 (get_probe_address): Declare.
6758 * solib-svr4.c (struct probe_and_action) <address>: New field.
6759 (hash_probe_and_action, equal_probe_and_action): Update.
6760 (register_solib_event_probe): Add address parameter.
6761 (solib_event_probe_at): Update.
6762 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6763 get_probe_address.
6764 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6765 (stap_get_probe_address): New function.
6766 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6767 (compile_probe_arg): Update.
6768 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6769 address.
6770 (handle_stap_probe): Don't relocate the probe.
6771 (stap_relocate): Remove.
6772 (stap_gen_info_probes_table_values): Update.
6773 (stap_probe_ops): Remove stap_relocate.
6774 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6775 (debug_sym_probe_fns): Update.
6776 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6777 * symtab.c (init_sal): Use memset.
6778 * symtab.h (struct symtab_and_line) <objfile>: New field.
6779 * tracepoint.c (start_tracing, stop_tracing): Update.
6780
ff887920
TT
67812014-03-03 Tom Tromey <tromey@redhat.com>
6782
6783 * probe.h (parse_probes, find_probe_by_pc)
6784 (find_probes_in_objfile): Fix comments.
6785
f0407826
DE
67862014-03-02 Doug Evans <xdje42@gmail.com>
6787
6788 * infrun.c (handle_signal_stop): Replace test for
6789 TARGET_WAITKIND_STOPPED with an assert.
6790
35e6a711
DE
67912014-03-02 Doug Evans <xdje42@gmail.com>
6792
6793 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6794
667f9d0b
DE
67952014-03-02 Doug Evans <xdje42@gmail.com>
6796
6797 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6798
dc92ace0
MK
67992014-03-01 Mark Kettenis <kettenis@gnu.org>
6800
6801 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6802
a900370f
MK
68032014-03-01 Mark Kettenis <kettenis@gnu.org>
6804
6805 * i386obsd-nat.c: Include "obsd-nat.h".
6806 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6807 add_target.
6808 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6809
b72a7981
MK
68102014-03-01 Mark Kettenis <kettenis@gnu.org>
6811
6812 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6813
96c70aba
MK
68142014-03-01 Mark Kettenis <kettenis@gnu.org>
6815
6816 * mips64obsd-nat.c: Include "obsd-nath".
6817 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6818 add_target
6819 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6820
874a80af
MK
68212014-03-01 Mark Kettenis <kettenis@gnu.org>
6822
8fd408f1
MK
6823 * amd64obsd-nat.c: Include "obsd-nat,h.
6824 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6825 add_target.
874a80af
MK
6826 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6827
9cf95373
SC
68282014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6829
6830 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6831 (find_overload_match): Update call to find_oload_champ.
6832 (find_oload_champ_namespace_loop): Likewise
6833
863e4da4
MK
68342014-02-28 Mark Kettenis <kettenis@gnu.org>
6835
025cac40
MK
6836 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6837
1ed586ce
MK
6838 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6839 * config/sparc/obsd64.mh: New file.
6840 * sparc64obsd-nat.c: New file.
6841
863e4da4
MK
6842 * obsd-nat.h: New file.
6843 * obsd-nat.c: New file.
6844 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6845 (ALLDEPFILES): Add obsd-nat.c.
6846
89de4da4
TT
68472014-02-28 Tom Tromey <tromey@redhat.com>
6848
6849 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6850 * cli-out.h (cli_ui_out_impl): Now const.
6851 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6852 * ui-out.c (struct ui_out) <impl>: Now const.
6853 (default_ui_out_impl): Now const.
6854 (ui_out_new): Make 'impl' parameter const.
6855 * ui-out.h (ui_out_new): Update.
6856
c725e7b6
MK
68572014-02-27 Mark Kettenis <kettenis@gnu.org>
6858
6859 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6860
670b46b3
MK
68612014-02-27 Mark Kettenis <kettenis@gnu.org>
6862
6863 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6864
c91550fc
JK
68652014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6866
6867 Additional PR 8882 fix.
6868 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6869
2fa0369e
PA
68702014-02-27 Pedro Alves <palves@redhat.com>
6871
6872 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6873 isn't set.
6874
d632a097
PA
68752014-02-27 Pedro Alves <palves@redhat.com>
6876
6877 PR 12702
6878 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6879 * nat/linux-waitpid.c: Include string.h.
6880 (status_to_str): Moved here and made extern.
6881 * nat/linux-waitpid.h (status_to_str): New declaration.
6882
2ebd5a35
HZ
68832014-02-27 Hui Zhu <hui@codesourcery.com>
6884
6885 PR 12702
6886 * infrun.c (ptid_match): Move ...
6887 * common/ptid.c (ptid_match): ... here.
6888 * inferior.h (ptid_match): Move ...
6889 * common/ptid.h (ptid_match): ... here.
6890
3cdd631f
MK
68912014-02-27 Mark Kettenis <kettenis@gnu.org>
6892
6893 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6894 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6895 gdb_target_obs.
6896
bee30a64
MK
68972014-02-27 Mark Kettenis <kettenis@gnu.org>
6898
6899 * obsd-tdep.c (obsd_auxv_parse): New function.
6900 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6901
6902 * gdbarch.sh (auxv_parse): New.
6903 * gdbarch.h: Regenerated.
6904 * gdbarch.c: Regenerated.
6905 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6906
7a5a839f
LC
69072014-02-26 Ludovic Courtès <ludo@gnu.org>
6908
6909 * guile/scm-value.c (gdbscm_history_append_x): New function.
6910 (value_functions): Add it.
6911
31aa7e4e
JB
69122014-02-27 Joel Brobecker <brobecker@adacore.com>
6913
6914 * dwarf2read.c (attr_value_as_address): New function.
6915 (dwarf2_find_base_address, read_call_site_scope): Use
6916 attr_value_as_address in place of DW_ADDR.
6917 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6918 the low and high addresses. Slight rework of the handling
6919 of the high pc being a constant form, and limit it to
6920 DWARF verson 4 or higher.
6921 (dwarf2_record_block_ranges): Likewise.
6922 (read_partial_die): Likewise.
6923 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6924
9b333ba3
TT
69252014-02-26 Tom Tromey <tromey@redhat.com>
6926
6927 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6928
5f6cac40
TT
69292014-02-26 Tom Tromey <tromey@redhat.com>
6930
6931 * elfread.c (elf_read_minimal_symbols): Return early if
6932 minimal symbols have already been read. Add "ei" parameter.
6933 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6934 * minsyms.c (prim_record_minimal_symbol_full): Update.
6935 * objfiles.h (struct objstats) <n_minsyms>: Move...
6936 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6937 * symmisc.c (print_objfile_statistics): Update.
6938
2750ef27
TT
69392014-02-26 Tom Tromey <tromey@redhat.com>
6940
6941 * elfread.c (elf_read_minimal_symbols): New function, from
6942 elf_symfile_read.
6943 (elf_symfile_read): Call it.
6944
34643a32
TT
69452014-02-26 Tom Tromey <tromey@redhat.com>
6946
6947 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6948 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6949 (lookup_minimal_symbol_solib_trampoline)
6950 (lookup_minimal_symbol_by_pc_section_1)
6951 (lookup_minimal_symbol_and_objfile): Update.
6952 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6953 Don't allocate a minimal symbol if minsyms have already been read.
6954 (build_minimal_symbol_hash_tables): Update.
6955 (install_minimal_symbols): Do nothing if minsyms already read.
6956 Use the per-BFD obstack.
6957 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6958 * objfiles.c (allocate_objfile): Call
6959 terminate_minimal_symbol_table later.
6960 (have_minimal_symbols): Update.
6961 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6962 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6963 Move from struct objfile.
6964 <minsyms_read>: New field.
6965 (struct objfile) <msymbols, minimal_symbol_count,
6966 msymbol_hash, msymbol_demangled_hash>: Move.
6967 (ALL_OBJFILE_MSYMBOLS): Update.
6968 * symfile.c (read_symbols): Set minsyms_read.
6969 (reread_symbols): Update.
6970 * symmisc.c (dump_objfile, dump_msymbols): Update.
6971
2273f0ac
TT
69722014-02-26 Tom Tromey <tromey@redhat.com>
6973
6974 * minsyms.c (msymbols_sort): Remove.
6975 * minsyms.h (msymbols_sort): Remove.
6976 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6977 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6978 * elfread.c (elf_symtab_read): Don't add section offsets.
6979 * xcoffread.c (record_minimal_symbol): Don't add section offset
6980 to minimal symbol address.
6981 * somread.c (text_offset, data_offset): Remove.
6982 (som_symtab_read): Don't add section offsets to minimal symbol
6983 addresses.
6984 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6985 Don't add section offsets to minimal symbols.
6986 * coffread.c (coff_symtab_read): Don't add section offsets
6987 to minimal symbol addresses.
6988 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6989 to minimal symbol addresses.
6990 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6991 section offset to minimal symbol addresses.
6992 * mdebugread.c (parse_partial_symbols): Don't add section
6993 offset to minimal symbol addresses.
6994 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6995 offset to minimal symbol addresses.
6996
77e371c0
TT
69972014-02-26 Tom Tromey <tromey@redhat.com>
6998
6999 * ada-lang.c (ada_main_name): Update.
7000 (ada_add_standard_exceptions): Update.
7001 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7002 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7003 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
7004 * auxv.c (ld_so_xfer_auxv): Update.
7005 * avr-tdep.c (avr_scan_prologue): Update.
7006 * ax-gdb.c (gen_var_ref): Update.
7007 * blockframe.c (get_pc_function_start)
7008 (find_pc_partial_function_gnu_ifunc): Update.
7009 * breakpoint.c (create_overlay_event_breakpoint)
7010 (create_longjmp_master_breakpoint)
7011 (create_std_terminate_master_breakpoint)
7012 (create_exception_master_breakpoint): Update.
7013 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7014 * c-valprint.c (c_val_print): Update.
7015 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7016 * common/agent.c (agent_look_up_symbols): Update.
7017 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7018 * dwarf2loc.c (call_site_to_target_addr): Update.
7019 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7020 * elfread.c (elf_gnu_ifunc_record_cache)
7021 (elf_gnu_ifunc_resolve_by_got): Update.
7022 * findvar.c (default_read_var_value): Update.
7023 * frame.c (inside_main_func): Update.
7024 * frv-tdep.c (frv_frame_this_id): Update.
7025 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7026 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7027 Update.
7028 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7029 (hppa_hpux_find_dummy_bpaddr): Update.
7030 * hppa-tdep.c (hppa_symbol_address): Update.
7031 * infcmd.c (until_next_command): Update.
7032 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7033 Update.
7034 * linespec.c (minsym_found, add_minsym): Update.
7035 * linux-nat.c (get_signo): Update.
7036 * linux-thread-db.c (inferior_has_bug): Update.
7037 * m32c-tdep.c (m32c_return_value)
7038 (m32c_m16c_address_to_pointer): Update.
7039 * m32r-tdep.c (m32r_frame_this_id): Update.
7040 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7041 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7042 * maint.c (maintenance_translate_address): Update.
7043 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7044 (frob_address): New function.
7045 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7046 frob_address. Rename parameter to "pc_in".
7047 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7048 addresses.
7049 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7050 Update.
7051 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7052 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7053 * objc-lang.c (find_objc_msgsend): Update.
7054 * objfiles.c (objfile_relocate1): Update.
7055 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7056 * p-valprint.c (pascal_val_print): Update.
7057 * parse.c (write_exp_msymbol): Update.
7058 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7059 (ppc_elfv2_skip_entrypoint): Update.
7060 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7061 * printcmd.c (build_address_symbolic, msym_info)
7062 (address_info): Update.
7063 * proc-service.c (ps_pglobal_lookup): Update.
7064 * psymtab.c (find_pc_sect_psymtab_closer)
7065 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7066 Change msymbol parameter to bound_minimal_symbol.
7067 * ravenscar-thread.c (get_running_thread_id): Update.
7068 * remote.c (remote_check_symbols): Update.
7069 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7070 address.
7071 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7072 * solib-dsbt.c (lm_base): Update.
7073 * solib-frv.c (lm_base, main_got): Update.
7074 * solib-irix.c (locate_base): Update.
7075 * solib-som.c (som_solib_create_inferior_hook)
7076 (link_map_start): Update.
7077 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7078 * solib-svr4.c (elf_locate_base, enable_break): Update.
7079 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7080 (flush_ea_cache): Update.
7081 * stabsread.c (define_symbol, scan_file_globals): Update.
7082 * stack.c (find_frame_funname): Update.
7083 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7084 (debug_qf_find_pc_sect_symtab): Update.
7085 * symfile.c (simple_read_overlay_table)
7086 (simple_overlay_update): Update.
7087 * symfile.h (struct quick_symbol_functions)
7088 <find_pc_sect_symtab>: Change type of msymbol to
7089 bound_minimal_symbol.
7090 * symmisc.c (dump_msymbols): Update.
7091 * symtab.c (find_pc_sect_symtab_via_partial)
7092 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7093 (search_symbols, print_msymbol_info): Update.
7094 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7095 (MSYMBOL_VALUE_ADDRESS): Redefine.
7096 (BMSYMBOL_VALUE_ADDRESS): New macro.
7097 * tracepoint.c (scope_info): Update.
7098 * tui/tui-disasm.c (tui_find_disassembly_address)
7099 (tui_get_begin_asm_address): Update.
7100 * valops.c (find_function_in_inferior): Update.
7101 * value.c (value_static_field, value_fn_field): Update.
7102
3b7344d5
TT
71032014-02-26 Tom Tromey <tromey@redhat.com>
7104
7105 * ada-lang.c (ada_update_initial_language): Update.
7106 (ada_main_name, ada_has_this_exception_support): Update.
7107 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7108 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7109 * arm-tdep.c (arm_skip_stub): Update.
7110 * auxv.c (ld_so_xfer_auxv): Update.
7111 * avr-tdep.c (avr_scan_prologue): Update.
7112 * ax-gdb.c (gen_var_ref): Update.
7113 * breakpoint.c (struct breakpoint_objfile_data)
7114 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7115 type to bound_minimal_symbol.
7116 (create_overlay_event_breakpoint)
7117 (create_longjmp_master_breakpoint)
7118 (create_std_terminate_master_breakpoint)
7119 (create_exception_master_breakpoint): Update.
7120 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7121 * c-exp.y (classify_name): Update.
7122 * coffread.c (coff_symfile_read): Update.
7123 * common/agent.c (agent_look_up_symbols): Update.
7124 * d-lang.c (d_main_name): Update.
7125 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7126 * dec-thread.c (enable_dec_thread): Update.
7127 * dwarf2loc.c (call_site_to_target_addr): Update.
7128 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7129 * eval.c (evaluate_subexp_standard): Update.
7130 * findvar.c (struct minsym_lookup_data) <result>: Change type
7131 to bound_minimal_symbol.
7132 <objfile>: Remove.
7133 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7134 * frame.c (inside_main_func): Update.
7135 * frv-tdep.c (frv_frame_this_id): Update.
7136 * gcore.c (call_target_sbrk): Update.
7137 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7138 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7139 Update.
7140 * go-lang.c (go_main_name): Update.
7141 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7142 (hppa_hpux_find_import_stub_for_addr): Update.
7143 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7144 Update. Change return type.
7145 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7146 type.
7147 * jit.c (jit_breakpoint_re_set_internal): Update.
7148 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7149 Update.
7150 * linux-nat.c (get_signo): Update.
7151 * linux-thread-db.c (inferior_has_bug): Update
7152 * m32c-tdep.c (m32c_return_value)
7153 (m32c_m16c_address_to_pointer): Update.
7154 * m32r-tdep.c (m32r_frame_this_id): Update.
7155 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7156 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7157 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7158 lookup_minimal_symbol. Change return type.
7159 (lookup_minimal_symbol): Remove.
7160 (lookup_bound_minimal_symbol): Update.
7161 (lookup_minimal_symbol_text): Change return type.
7162 (lookup_minimal_symbol_solib_trampoline): Change return type.
7163 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7164 (lookup_minimal_symbol_solib_trampoline): Change return type.
7165 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7166 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7167 (value_nsstring, find_imps): Update.
7168 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7169 * p-lang.c (pascal_main_name): Update.
7170 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7171 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7172 * proc-service.c (ps_pglobal_lookup): Update.
7173 * ravenscar-thread.c (get_running_thread_msymbol): Change
7174 return type.
7175 (has_ravenscar_runtime, get_running_thread_id): Update.
7176 * remote.c (remote_check_symbols): Update.
7177 * sol-thread.c (ps_pglobal_lookup): Update.
7178 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7179 * solib-dsbt.c (lm_base): Update.
7180 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7181 Update.
7182 * solib-irix.c (locate_base): Update.
7183 * solib-som.c (som_solib_create_inferior_hook)
7184 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7185 Update.
7186 * solib-spu.c (spu_enable_break): Update.
7187 * solib-svr4.c (elf_locate_base, enable_break): Update.
7188 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7189 (flush_ea_cache): Update.
7190 * stabsread.c (define_symbol): Update.
7191 * symfile.c (simple_read_overlay_table): Update.
7192 * symtab.c (find_pc_sect_line): Update.
7193 * tracepoint.c (scope_info): Update.
7194 * tui-disasm.c (tui_get_begin_asm_address): Update.
7195 * value.c (value_static_field): Update.
7196
40c1a007
TT
71972014-02-26 Tom Tromey <tromey@redhat.com>
7198
7199 * minsyms.c (prim_record_minimal_symbol_full): Use
7200 SET_MSYMBOL_VALUE_ADDRESS.
7201 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7202 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7203 SET_MSYMBOL_VALUE_ADDRESS.
7204 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7205 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7206
efd66ac6
TT
72072014-02-26 Tom Tromey <tromey@redhat.com>
7208
7209 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7210 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7211 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7212 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7213 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7214 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7215 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7216 * ada-lang.c (ada_main_name): Update.
7217 (ada_lookup_simple_minsym): Update.
7218 (ada_make_symbol_completion_list): Update.
7219 (ada_add_standard_exceptions): Update.
7220 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7221 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7222 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7223 * arm-tdep.c (skip_prologue_function): Update.
7224 (arm_skip_stack_protector, arm_skip_stub): Update.
7225 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7226 (arm_wince_skip_main_prologue): Update.
7227 * auxv.c (ld_so_xfer_auxv): Update.
7228 * avr-tdep.c (avr_scan_prologue): Update.
7229 * ax-gdb.c (gen_var_ref): Update.
7230 * block.c (call_site_for_pc): Update.
7231 * blockframe.c (get_pc_function_start): Update.
7232 (find_pc_partial_function_gnu_ifunc): Update.
7233 * breakpoint.c (create_overlay_event_breakpoint): Update.
7234 (create_longjmp_master_breakpoint): Update.
7235 (create_std_terminate_master_breakpoint): Update.
7236 (create_exception_master_breakpoint): Update.
7237 (resolve_sal_pc): Update.
7238 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7239 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7240 Update.
7241 * c-valprint.c (c_val_print): Update.
7242 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7243 * coffread.c (coff_symfile_read): Update.
7244 * common/agent.c (agent_look_up_symbols): Update.
7245 * dbxread.c (find_stab_function_addr): Update.
7246 (end_psymtab): Update.
7247 * dwarf2loc.c (call_site_to_target_addr): Update.
7248 (func_verify_no_selftailcall): Update.
7249 (tailcall_dump): Update.
7250 (call_site_find_chain_1): Update.
7251 (dwarf_expr_reg_to_entry_parameter): Update.
7252 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7253 (elf_gnu_ifunc_resolve_by_got): Update.
7254 * f-valprint.c (info_common_command): Update.
7255 * findvar.c (read_var_value): Update.
7256 * frame.c (get_prev_frame_1): Update.
7257 (inside_main_func): Update.
7258 * frv-tdep.c (frv_skip_main_prologue): Update.
7259 (frv_frame_this_id): Update.
7260 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7261 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7262 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7263 (gnuv3_skip_trampoline): Update.
7264 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7265 (hppa64_hpux_in_solib_call_trampoline): Update.
7266 (hppa_hpux_skip_trampoline_code): Update.
7267 (hppa64_hpux_search_dummy_call_sequence): Update.
7268 (hppa_hpux_find_import_stub_for_addr): Update.
7269 (hppa_hpux_find_dummy_bpaddr): Update.
7270 * hppa-tdep.c (hppa_symbol_address)
7271 (hppa_lookup_stub_minimal_symbol): Update.
7272 * i386-tdep.c (i386_skip_main_prologue): Update.
7273 (i386_pe_skip_trampoline_code): Update.
7274 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7275 * infcall.c (get_function_name): Update.
7276 * infcmd.c (until_next_command): Update.
7277 * jit.c (jit_breakpoint_re_set_internal): Update.
7278 (jit_inferior_init): Update.
7279 * linespec.c (minsym_found): Update.
7280 (add_minsym): Update.
7281 * linux-fork.c (info_checkpoints_command): Update.
7282 * linux-nat.c (get_signo): Update.
7283 * linux-thread-db.c (inferior_has_bug): Update.
7284 * m32c-tdep.c (m32c_return_value): Update.
7285 (m32c_m16c_address_to_pointer): Update.
7286 (m32c_m16c_pointer_to_address): Update.
7287 * m32r-tdep.c (m32r_frame_this_id): Update.
7288 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7289 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7290 * maint.c (maintenance_translate_address): Update.
7291 * minsyms.c (add_minsym_to_hash_table): Update.
7292 (add_minsym_to_demangled_hash_table): Update.
7293 (msymbol_objfile): Update.
7294 (lookup_minimal_symbol): Update.
7295 (iterate_over_minimal_symbols): Update.
7296 (lookup_minimal_symbol_text): Update.
7297 (lookup_minimal_symbol_by_pc_name): Update.
7298 (lookup_minimal_symbol_solib_trampoline): Update.
7299 (lookup_minimal_symbol_by_pc_section_1): Update.
7300 (lookup_minimal_symbol_and_objfile): Update.
7301 (prim_record_minimal_symbol_full): Update.
7302 (compare_minimal_symbols): Update.
7303 (compact_minimal_symbols): Update.
7304 (build_minimal_symbol_hash_tables): Update.
7305 (install_minimal_symbols): Update.
7306 (terminate_minimal_symbol_table): Update.
7307 (find_solib_trampoline_target): Update.
7308 (minimal_symbol_upper_bound): Update.
7309 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7310 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7311 (mips_skip_pic_trampoline_code): Update.
7312 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7313 * objc-lang.c (selectors_info): Update.
7314 (classes_info): Update.
7315 (find_methods): Update.
7316 (find_imps): Update.
7317 (find_objc_msgsend): Update.
7318 * objfiles.c (objfile_relocate1): Update.
7319 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7320 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7321 * p-valprint.c (pascal_val_print): Update.
7322 * parse.c (write_exp_msymbol): Update.
7323 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7324 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7325 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7326 * printcmd.c (build_address_symbolic): Update.
7327 (sym_info): Update.
7328 (address_info): Update.
7329 * proc-service.c (ps_pglobal_lookup): Update.
7330 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7331 (find_pc_sect_psymtab): Update.
7332 * python/py-framefilter.c (py_print_frame): Update.
7333 * ravenscar-thread.c (get_running_thread_id): Update.
7334 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7335 Update.
7336 * remote.c (remote_check_symbols): Update.
7337 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7338 (rs6000_skip_trampoline_code): Update.
7339 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7340 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7341 * solib-dsbt.c (lm_base): Update.
7342 * solib-frv.c (lm_base): Update.
7343 (main_got): Update.
7344 * solib-irix.c (locate_base): Update.
7345 * solib-som.c (som_solib_create_inferior_hook): Update.
7346 (som_solib_desire_dynamic_linker_symbols): Update.
7347 (link_map_start): Update.
7348 * solib-spu.c (spu_enable_break): Update.
7349 (ocl_enable_break): Update.
7350 * solib-svr4.c (elf_locate_base): Update.
7351 (enable_break): Update.
7352 * spu-tdep.c (spu_get_overlay_table): Update.
7353 (spu_catch_start): Update.
7354 (flush_ea_cache): Update.
7355 * stabsread.c (define_symbol): Update.
7356 (scan_file_globals): Update.
7357 * stack.c (find_frame_funname): Update.
7358 (frame_info): Update.
7359 * symfile.c (simple_read_overlay_table): Update.
7360 (simple_overlay_update): Update.
7361 * symmisc.c (dump_msymbols): Update.
7362 * symtab.c (fixup_section): Update.
7363 (find_pc_sect_line): Update.
7364 (skip_prologue_sal): Update.
7365 (search_symbols): Update.
7366 (print_msymbol_info): Update.
7367 (rbreak_command): Update.
7368 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7369 (completion_list_objc_symbol): Update.
7370 (default_make_symbol_completion_list_break_on): Update.
7371 * tracepoint.c (scope_info): Update.
7372 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7373 (tui_get_begin_asm_address): Update.
7374 * valops.c (find_function_in_inferior): Update.
7375 * value.c (value_static_field): Update.
7376 (value_fn_field): Update.
7377
50e65b17
TT
73782014-02-26 Tom Tromey <tromey@redhat.com>
7379
7380 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7381 bound minimal symbols. Move code that knows about minsym
7382 table layout...
7383 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7384 function.
7385 * minsyms.h (minimal_symbol_upper_bound): Declare.
7386 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7387 minimal_symbol_upper_bound.
7388
1b588015
JB
73892014-02-27 Joel Brobecker <brobecker@adacore.com>
7390
7391 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7392 Use the type's name if its basic type does not have a tag.
7393
dbb9c2b1
JB
73942014-02-27 Joel Brobecker <brobecker@adacore.com>
7395
7396 * dwarf2read.c (read_subrange_type): Add comment.
7397
55426c9d
JB
73982014-02-27 Joel Brobecker <brobecker@adacore.com>
7399
7400 * dwarf2read.c (update_enumeration_type_from_children): New
7401 function, mostly extracted from process_structure_scope.
7402 (read_enumeration_type): Call update_enumeration_type_from_children.
7403 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7404 and flag_flag_enum fields.
7405
f2fce0ca
PA
74062014-02-26 Pedro Alves <palves@redhat.com>
7407
7408 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7409 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7410 to_xfer_partial method.
7411
7a44e40e
PA
74122014-02-26 Pedro Alves <palves@redhat.com>
7413
7414 * target.c (complete_target_initialization): Don't install
7415 default_xfer_partial as to_xfer_partial hook.
7416 (nomemory): Delete.
7417 (update_current_target): Don't INHERIT nor de_fault
7418 deprecated_xfer_memory. Delete de_fault macro.
7419 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7420 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7421 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7422 field.
7423
bd265cd0
PA
74242014-02-26 Pedro Alves <palves@redhat.com>
7425
7426 * go32-nat.c (my_write_child): New function.
7427 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7428 (go32_xfer_partial): New function.
7429 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7430 Instead install a to_xfer_partial hook.
7431
9d46c4e5
PA
74322014-02-26 Pedro Alves <palves@redhat.com>
7433
7434 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7435 to_xfer_partial helper. Rewrite.
7436 (procfs_xfer_partial): New function.
7437 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7438 Install a to_xfer_partial hook.
7439
a1583b1f
PA
74402014-02-26 Pedro Alves <palves@redhat.com>
7441
7442 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7443 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7444 (m32r_xfer_partial): New function.
7445 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7446 Install a to_xfer_partial hook.
7447
6df1b29f
PA
74482014-02-26 Pedro Alves <palves@redhat.com>
7449
7450 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7451 helper.
7452 (mips_xfer_partial): New function.
7453 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7454 hook. Install a to_xfer_partial hook.
7455
dc53a7ad
JB
74562014-02-26 Joel Brobecker <brobecker@adacore.com>
7457
7458 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7459 * gdbtypes.c (create_array_type_with_stride): New function,
7460 renaming create_array_type, but with an added parameter
7461 called "bit_stride".
7462 (create_array_type): Re-implement using
7463 create_array_type_with_stride.
7464 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7465 and DW_AT_bit_stride attributes.
7466
12ab52e9
PA
74672014-02-26 Pedro Alves <palves@redhat.com>
7468
7469 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7470 task-specific breakpoints.
7471
d16461ae
PA
74722014-02-25 Pedro Alves <palves@redhat.com>
7473
7474 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7475 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7476
a8b16220
SS
74772014-02-25 Stan Shebs <stan@codesourcery.com>
7478
7479 * defs.h: Annotate comments for Doxygen.
7480
b9e795ee
TT
74812014-02-25 Tom Tromey <tromey@redhat.com>
7482
7483 * target.h (target_ignore): Don't declare.
7484 * target.c (target_ignore): Remove.
7485
849c862e
JK
74862014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7487
7488 PR gdb/16626
7489 * auto-load.c (auto_load_objfile_script_1): Change filename to
7490 debugfile.
7491
475109d8
JB
74922014-02-25 Joel Brobecker <brobecker@adacore.com>
7493
7494 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7495 documentation. Adjust prototype to match the target_ops
7496 to_xfer_partial method. Adjust implementation accordingly.
7497
e186c3bd
HZ
74982014-02-25 Hui Zhu <hui@codesourcery.com>
7499
7500 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7501 to_traceframe_info.
7502
6d451942
KB
75032014-02-25 Kevin Buettner <kevinb@redhat.com>
7504
041ab8b4 7505 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7506 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7507 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7508 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7509 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7510 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7511 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7512 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7513 New constants.
7514 (rl78_register_type): Use a data pointer type for SP and
7515 new pseudo registers mentioned above. Use a 16 bit integer
7516 type for all other register pairs.
7517 (rl78_register_name, rl78_g10_register_name): Update for
7518 new pseudo registers.
7519 (rl78_pseudo_register_read): Likewise.
7520 (rl78_pseudo_register_write): Likewise.
7521 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7522 to the newly added pseudo registers.
7523
eddf0bae
DE
75242014-02-24 Doug Evans <dje@google.com>
7525
7526 * value.c (record_latest_value): Fix comment.
7527 * printcmd.c (print_command_1): Remove code to handle -1 return from
7528 record_latest_value.
7529
e96027e0
PA
75302014-02-24 Pedro Alves <palves@redhat.com>
7531
7532 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7533 deprecated_xfer_memory hook.
7534 (procfs_xfer_partial): Call procfs_xfer_memory instead
7535 of the deprecated_xfer_memory target hook.
7536 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7537 helper.
7538
0837c976
YZ
75392014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7540
7541 * windows-nat.c (windows_xfer_shared_libraries): Return
7542 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7543 requested object is TARGET_OBJECT_LIBRARIES.
7544
bc113b4e
YQ
75452014-02-24 Yao Qi <yao@codesourcery.com>
7546
7547 * target.h (enum target_xfer_status)
7548 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7549 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7550 explicitly. New.
7551 * corefile.c (memory_error_message): User updated.
7552 * exec.c (section_table_read_available_memory): Likewise.
7553 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7554 * target.c (target_xfer_status_to_string): Likewise.
7555 (raw_memory_xfer_partial): Likewise.
7556 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7557 * valops.c (read_value_memory): Likewise.
7558 * exec.h: Update comments.
7559
01cb8804
YQ
75602014-02-24 Yao Qi <yao@codesourcery.com>
7561
7562 * target.c (target_xfer_status_to_string): Rename argument err
7563 to status.
7564 * target.h (target_xfer_status_to_string): Update declaration.
7565 Replace target_xfer_error_to_string with
7566 target_xfer_status_to_string in comment.
7567
93063aa6
YQ
75682014-02-24 Yao Qi <yao@codesourcery.com>
7569
7570 * mips-linux-nat.c (super_close): Update its type.
7571 (mips_linux_close): Pass 'self' to super_close.
7572
5c328c05
YQ
75732014-02-24 Yao Qi <yao@codesourcery.com>
7574
7575 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7576 * corefile.c (read_memory): Adjusted.
7577 * target.c (target_write_with_progress): Adjusted.
7578
f73023dd
YQ
75792014-02-23 Yao Qi <yao@codesourcery.com>
7580
7581 Revert two patches:
7582
7583 2013-10-25 Yao Qi <yao@codesourcery.com>
7584
7585 * remote.c (remote_traceframe_info): Return early if
7586 traceframe is not selected.
7587
7588 2013-07-19 Yao Qi <yao@codesourcery.com>
7589
7590 * target.c (update_current_target): Change the default action
7591 of 'to_traceframe_info' from tcomplain to return_zero.
7592 * target.h (struct target_ops) <to_traceframe_info>: Add more
7593 comments.
7594
5a2eb0ef
YQ
75952014-02-23 Yao Qi <yao@codesourcery.com>
7596
7597 * valops.c (read_value_memory): Rewrite it. Call
7598 target_xfer_partial in a loop.
7599 * exec.h (section_table_available_memory): Remove declaration.
7600 Move comments to ...
7601 * exec.c (section_table_available_memory): ... here. Make it
7602 static.
7603
1ee79381
YQ
76042014-02-23 Yao Qi <yao@codesourcery.com>
7605
7606 * exec.c (section_table_read_available_memory): New function.
7607 * exec.h (section_table_read_available_memory): Declare.
7608 * ctf.c (ctf_xfer_partial): Call
7609 section_table_read_available_memory.
7610 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7611
1ca49d37
YQ
76122014-02-23 Yao Qi <yao@codesourcery.com>
7613
7614 * ctf.c (ctf_xfer_partial): Move code to ...
7615 * exec.c (exec_read_partial_read_only): ... it. New function.
7616 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7617 * tracefile.c: Include "exec.h".
7618 * exec.h (exec_read_partial_read_only): Declare.
7619
a283690e
YQ
76202014-02-23 Yao Qi <yao@codesourcery.com>
7621
7622 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7623 (tfile_has_memory): Remove.
7624 (init_tfile_ops): Don't set fields to_has_all_memory and
7625 to_has_memory of tfile_ops.
7626 * tracefile.c (tracefile_has_all_memory): New function.
7627 (tracefile_has_memory): New function.
7628 (init_tracefile_ops): Initialize fields to_has_all_memory and
7629 to_has_memory of 'ops'.
7630
12e03cd0
YQ
76312014-02-23 Yao Qi <yao@codesourcery.com>
7632
7633 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7634 (ctf_thread_alive, ctf_get_trace_status): Remove.
7635 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7636 init_tracefile_ops.
7637 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7638 (tfile_has_stack, tfile_has_registers): Remove.
7639 (tfile_thread_alive): Remove.
7640 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7641 init_tracefile_ops.
7642 * tracefile.c (tracefile_has_stack): New function.
7643 (tracefile_has_registers): New function.
7644 (tracefile_thread_alive): New function.
7645 (tracefile_get_trace_status): New function.
7646 (init_tracefile_ops): New function.
7647 * tracefile.h (init_tracefile_ops): Declare.
7648
11395323
YQ
76492014-02-23 Yao Qi <yao@codesourcery.com>
7650
7651 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7652 (O_LARGEFILE): Likewise.
7653 (tfile_ops): Likewise.
7654 (TRACE_HEADER_SIZE): Likewise.
7655 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7656 (cur_data_size): Likewise.
7657 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7658 (tfile_close, tfile_files_info): Likewise.
7659 (tfile_get_trace_status): Likewise.
7660 (tfile_get_tracepoint_status): Likewise.
7661 (tfile_get_traceframe_address): Likewise.
7662 (tfile_trace_find, match_blocktype): Likewise.
7663 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7664 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7665 (tfile_get_trace_state_variable_value): Likewise.
7666 (tfile_has_all_memory, tfile_has_memory): Likewise.
7667 (tfile_has_stack, tfile_has_registers): Likewise.
7668 (tfile_thread_alive, build_traceframe_info): Likewise.
7669 (tfile_traceframe_info, init_tfile_ops): Likewise.
7670 (_initialize_tracepoint): Don't call init_tfile_ops
7671 and add_target_with_completer.
7672 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7673 exec.h, completer.h and filenames.h.
7674 (_initialize_tracefile_tfile): New function.
7675
7951c4eb
YQ
76762014-02-23 Yao Qi <yao@codesourcery.com>
7677
7678 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7679 tracefile-tfile.o.
7680 (HFILES_NO_SRCDIR): Add tracefile.h.
7681 * ctf.c: Include "tracefile.h".
7682 * tracefile.h: New file.
7683 * tracefile.c: New file
7684 * tracefile-tfile.c: New file.
7685 * tracepoint.c: Include "tracefile.h".
7686 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7687 (stop_reason_names): Add const.
7688 (trace_file_writer_xfree): Move it to tracefile.c.
7689 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7690 (trace_save_ctf): Likewise.
7691 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7692 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7693 (tfile_write_header, tfile_write_regblock_type): Likewise.
7694 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7695 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7696 (tfile_write_raw_data, tfile_end): Likewise.
7697 (tfile_trace_file_writer_new): Likewise.
7698 (free_uploaded_tp): Make it extern.
7699 (free_uploaded_tsv): Make it extern.
7700 (_initialize_tracepoint): Move code to register command 'tsave'
7701 to tracefile.c.
7702 * tracepoint.h (stop_reason_names): Declare.
7703 (struct trace_frame_write_ops): Move it to tracefile.h.
7704 (struct trace_file_write_ops): Likewise.
7705 (struct trace_file_writer): Likewise.
7706 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7707
184cd072
JK
77082014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7709
7710 PR gdb/16594
7711 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7712 process name.
7713 (get_cores_used_by_process): New parameter num_cores, use it.
7714 (linux_xfer_osdata_processes): Pass num_cores to it.
7715 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7716 process name.
7717
c63528fc
AK
77182014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7719
7720 * target.c (memory_xfer_partial): Fix length arg in call to
7721 breakpoint_xfer_memory.
7722
d7b30f67
SDJ
77232014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7724
7725 PR tdep/16397
7726 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7727 number comes after the + or - signs. Adjust length of register
7728 name to be extracted.
7729
8838afaf
TT
77302014-02-20 Tom Tromey <tromey@redhat.com>
7731
7732 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7733 (ada_varobj_ops): Mark "extern".
7734
05227d14
TT
77352014-02-20 Tom Tromey <tromey@redhat.com>
7736
7737 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7738
1254eefc
DE
77392014-02-20 Doug Evans <xdje42@gmail.com>
7740
7741 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7742 All callers updated.
7743 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7744 All callers updated.
7745 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7746 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7747
adde2bff
DE
77482014-02-20 lin zuojian <manjian2006@gmail.com>
7749 Joel Brobecker <brobecker@adacore.com>
7750 Doug Evans <xdje42@gmail.com>
7751
7752 PR symtab/16581
7753 * dwarf2read.c (struct die_info): New member in_process.
7754 (reset_die_in_process): New function.
7755 (process_die): Set it at the start, reset when returning.
7756 (inherit_abstract_dies): Only call process_die if origin_child_die
7757 not already being processed.
7758
3be75f87
JB
77592014-02-20 Joel Brobecker <brobecker@adacore.com>
7760
7761 * windows-nat.c (handle_unload_dll): Add function documentation.
7762 (do_initial_windows_stuff): Add comment explaining why we wait
7763 until after inferior initialization has finished before
7764 processing all DLLs.
7765
47f7ffdb
JB
77662014-02-20 Joel Brobecker <brobecker@adacore.com>
7767
7768 * windows-nat.c (get_module_name): Delete.
7769 (windows_get_exec_module_filename): New function, mostly
7770 inspired from get_module_name.
7771 (windows_pid_to_exec_file): Replace call to get_module_name
7772 by call to windows_get_exec_module_filename.
7773
1cd9feab
JB
77742014-02-20 Joel Brobecker <brobecker@adacore.com>
7775
7776 * windows-nat.c (handle_load_dll): Rewrite this function's
7777 introductory comment. Remove code using get_module_name
7778 to get the DLL's name.
7779
ea39ad35
JB
77802014-02-20 Joel Brobecker <brobecker@adacore.com>
7781
7782 * windows-nat.c (get_windows_debug_event): Ignore
7783 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7784 if windows_initialization_done == 0.
7785 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7786 Adjust implementation to always load all DLLs.
7787 (do_initial_windows_stuff): Replace call to
7788 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7789
95060284
JB
77902014-02-20 Joel Brobecker <brobecker@adacore.com>
7791
7792 * windows-nat.c (_initialize_windows_nat): Deprecate the
7793 "dll-symbols" command. Turn the "add-shared-symbol-files"
7794 and "assf" aliases into commands, and deprecate them as well.
7795 * NEWS: Add entry explaining that "dll-symbols" and its two
7796 aliases are now deprecated.
7797
8d4fdb12
JB
77982014-02-20 Joel Brobecker <brobecker@adacore.com>
7799
7800 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7801 new-line in debug string. Remove trailing spaces.
7802
1b281443
SS
78032014-02-19 Stan Shebs <stan@codesourcery.com>
7804
7805 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7806
f7bd0f78
SC
78072014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7808
7809 * NEWS: Add entry for the new feature
7810 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7811 and class values.
7812
399ebc3d
SS
78132014-02-19 Stan Shebs <stan@codesourcery.com>
7814
7815 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7816
c658158d
PA
78172014-02-19 Pedro Alves <palves@redhat.com>
7818
7819 * common/ptid.h (struct ptid): Mention that process_stratum
7820 targets should prefer ptid.lwp.
7821
ba348170
PA
78222014-02-19 Pedro Alves <palves@redhat.com>
7823
7824 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7825 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7826 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7827 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7828 store remote thread ids rather than ptid.tid.
7829 (_initialize_remote): Adjust.
7830
ac01945b
TT
78312014-02-19 Tom Tromey <tromey@redhat.com>
7832
7833 * target.c (target_get_unwinder): Rewrite.
7834 (target_get_tailcall_unwinder): Rewrite.
7835 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7836 (record_btrace_to_get_tailcall_unwinder): New function.
7837 (init_record_btrace_ops): Update.
7838 * target.h (struct target_ops) <to_get_unwinder,
7839 to_get_tailcall_unwinder>: Now function pointers. Use
7840 TARGET_DEFAULT_RETURN.
7841
8476dc92
TT
78422014-02-19 Tom Tromey <tromey@redhat.com>
7843
7844 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7845 argument.
7846 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7847
c0eca49f
TT
78482014-02-19 Tom Tromey <tromey@redhat.com>
7849
7850 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7851 directly.
7852 * target-delegates.c: Rebuild.
7853 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7854 TARGET_DEFAULT_FUNC.
7855 * target.c (default_target_decr_pc_after_break): Rename from
7856 forward_target_decr_pc_after_break. Simplify.
7857 (target_decr_pc_after_break): Rely on delegation.
7858
596b6b39
TT
78592014-02-19 Tom Tromey <tromey@redhat.com>
7860
7861 * target.c (update_current_target): Do not INHERIT to_doc or
7862 to_magic. Do not de_fault to_open or to_close.
7863
b427c1bc
TT
78642014-02-19 Tom Tromey <tromey@redhat.com>
7865
7866 * gcore.h (objfile_find_memory_regions): Declare.
7867 * gcore.c (objfile_find_memory_regions): No longer static. Add
7868 "self" argument.
7869 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7870 * exec.c: Include gcore.h.
7871 (exec_set_find_memory_regions): Remove.
7872 (exec_find_memory_regions): Remove.
7873 (exec_do_find_memory_regions): Remove.
7874 (init_exec_ops): Update.
7875 * defs.h (exec_set_find_memory_regions): Remove.
7876
9b144037
TT
78772014-02-19 Tom Tromey <tromey@redhat.com>
7878
7879 * target-delegates.c: Rebuild.
7880 * target.h (struct target_ops) <to_extra_thread_info,
7881 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7882 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7883 not 0, in TARGET_DEFAULT_RETURN.
7884
555bbdeb
TT
78852014-02-19 Tom Tromey <tromey@redhat.com>
7886
7887 * target.c (complete_target_initialization): Remove casts. Use
7888 return_zero_has_execution.
7889 (return_zero): Add "ignore" argument.
7890 (return_zero_has_execution): New function.
7891 (init_dummy_target): Remove casts. Use
7892 return_zero_has_execution.
7893
be4ddd36
TT
78942014-02-19 Tom Tromey <tromey@redhat.com>
7895
7896 * target.c (update_current_target): Update comments. Do not
7897 INHERIT to_stratum.
7898
2117c711
TT
78992014-02-19 Tom Tromey <tromey@redhat.com>
7900
7901 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7902 needed.
7903 * corelow.c (core_read_description): Delegate when needed.
7904 * remote.c (remote_read_description): Delegate when needed.
7905 * target-delegates.c: Rebuild.
7906 * target.c (target_read_description): Rewrite.
7907 * target.h (struct target_ops) <to_read_description>: Update
7908 comment. Use TARGET_DEFAULT_RETURN.
7909
e88ef65c
TT
79102014-02-19 Tom Tromey <tromey@redhat.com>
7911
7912 * target-delegates.c: Rebuild.
7913 * target.c (update_current_target): Don't inherit or default
7914 to_can_run.
7915 (find_default_run_target): Check against delegate_can_run.
7916 * target.h (struct target_ops) <to_can_run>: Use
7917 TARGET_DEFAULT_RETURN.
7918
86a0854a
TT
79192014-02-19 Tom Tromey <tromey@redhat.com>
7920
7921 * target-delegates.c: Rebuild.
7922 * target.c (target_disconnect): Unconditionally delegate.
7923 * target.h (struct target_ops) <to_disconnect>: Use
7924 TARGET_DEFAULT_NORETURN.
7925
ee97f592
TT
79262014-02-19 Tom Tromey <tromey@redhat.com>
7927
7928 * record.c (record_stop): Unconditionally delegate.
7929 * target-delegates.c: Rebuild.
7930 * target.c (target_stop_recording): Unconditionally delegate.
7931 * target.h (struct target_ops) <to_stop_recording>: Use
7932 TARGET_DEFAULT_IGNORE.
7933
6dc7fcf4
TT
79342014-02-19 Tom Tromey <tromey@redhat.com>
7935
7936 * target-delegates.c: Rebuild.
7937 * target.c (target_enable_btrace): Unconditionally delegate.
7938 * target.h (struct target_ops) <to_enable_btrace>: Use
7939 TARGET_DEFAULT_NORETURN.
7940
eb5b20d4
TT
79412014-02-19 Tom Tromey <tromey@redhat.com>
7942
7943 * target-delegates.c: Rebuild.
7944 * target.c (target_read_btrace): Unconditionally delegate.
7945 * target.h (struct target_ops) <to_read_btrace>: Use
7946 TARGET_DEFAULT_NORETURN.
7947
9ace480d
TT
79482014-02-19 Tom Tromey <tromey@redhat.com>
7949
7950 * target-delegates.c: Rebuild.
7951 * target.c (target_teardown_btrace): Unconditionally delegate.
7952 * target.h (struct target_ops) <to_teardown_btrace>: Use
7953 TARGET_DEFAULT_NORETURN.
7954
8dc292d3
TT
79552014-02-19 Tom Tromey <tromey@redhat.com>
7956
7957 * target-delegates.c: Rebuild.
7958 * target.c (target_disable_btrace): Unconditionally delegate.
7959 * target.h (struct target_ops) <to_disable_btrace>: Use
7960 TARGET_DEFAULT_NORETURN.
7961
58a5184e
TT
79622014-02-19 Tom Tromey <tromey@redhat.com>
7963
7964 * target-delegates.c: Rebuild.
7965 * target.c (default_search_memory): New function.
7966 (simple_search_memory): Update comment.
7967 (target_search_memory): Unconditionally delegate.
7968 * target.h (struct target_ops) <to_search_memory>: Use
7969 TARGET_DEFAULT_FUNC.
7970
8de71aab
TT
79712014-02-19 Tom Tromey <tromey@redhat.com>
7972
7973 * auxv.c (default_auxv_parse): No longer static.
7974 (target_auxv_parse): Unconditionally delegate.
7975 * auxv.h (default_auxv_parse): Declare.
7976 * target-delegates.c: Rebuild.
7977 * target.c: Include auxv.h.
7978 * target.h (struct target_ops) <to_auxv_parse>: Use
7979 TARGET_DEFAULT_FUNC.
7980
6b2c5a57
TT
79812014-02-19 Tom Tromey <tromey@redhat.com>
7982
7983 * target-delegates.c: Rebuild.
7984 * target.c (target_memory_map): Unconditionally delegate.
7985 * target.h (struct target_ops) <to_memory_map>: Use
7986 TARGET_DEFAULT_RETURN.
7987
cbffc065
TT
79882014-02-19 Tom Tromey <tromey@redhat.com>
7989
7990 * target-delegates.c: Rebuild.
7991 * target.c (target_thread_alive): Unconditionally delegate.
7992 * target.h (struct target_ops) <to_thread_alive>: Use
7993 TARGET_DEFAULT_RETURN.
7994
f09e2107
TT
79952014-02-19 Tom Tromey <tromey@redhat.com>
7996
7997 * target-delegates.c: Rebuild.
7998 * target.c (target_save_record): Unconditionally delegate.
7999 * target.h (struct target_ops) <to_save_record>: Use
8000 TARGET_DEFAULT_NORETURN.
8001
07366925
TT
80022014-02-19 Tom Tromey <tromey@redhat.com>
8003
8004 * target-delegates.c: Rebuild.
8005 * target.c (target_delete_record): Unconditionally delegate.
8006 * target.h (struct target_ops) <to_delete_record>: Use
8007 TARGET_DEFAULT_NORETURN.
8008
dd2e9d25
TT
80092014-02-19 Tom Tromey <tromey@redhat.com>
8010
8011 * target-delegates.c: Rebuild.
8012 * target.c (target_record_is_replaying): Unconditionally
8013 delegate.
8014 * target.h (struct target_ops) <to_record_is_replaying>: Use
8015 TARGET_DEFAULT_RETURN.
8016
671e76cc
TT
80172014-02-19 Tom Tromey <tromey@redhat.com>
8018
8019 * target-delegates.c: Rebuild.
8020 * target.c (target_goto_record_begin): Unconditionally delegate.
8021 * target.h (struct target_ops) <to_goto_record_begin>: Use
8022 TARGET_DEFAULT_NORETURN.
8023
e9179bb3
TT
80242014-02-19 Tom Tromey <tromey@redhat.com>
8025
8026 * target-delegates.c: Rebuild.
8027 * target.c (target_goto_record_end): Unconditionally delegate.
8028 * target.h (struct target_ops) <to_goto_record_end>: Use
8029 TARGET_DEFAULT_NORETURN.
8030
05969c84
TT
80312014-02-19 Tom Tromey <tromey@redhat.com>
8032
8033 * target-delegates.c: Rebuild.
8034 * target.c (target_goto_record): Unconditionally delegate.
8035 * target.h (struct target_ops) <to_goto_record>: Use
8036 TARGET_DEFAULT_NORETURN.
8037
3679abfa
TT
80382014-02-19 Tom Tromey <tromey@redhat.com>
8039
8040 * target-delegates.c: Rebuild.
8041 * target.c (target_insn_history): Unconditionally delegate.
8042 * target.h (struct target_ops) <to_insn_history>: Use
8043 TARGET_DEFAULT_NORETURN.
8044
8444ab58
TT
80452014-02-19 Tom Tromey <tromey@redhat.com>
8046
8047 * target-delegates.c: Rebuild.
8048 * target.c (target_insn_history_from): Unconditionally delegate.
8049 * target.h (struct target_ops) <to_insn_history_from>: Use
8050 TARGET_DEFAULT_NORETURN.
8051
c29302cc
TT
80522014-02-19 Tom Tromey <tromey@redhat.com>
8053
8054 * target-delegates.c: Rebuild.
8055 * target.c (target_insn_history_range): Unconditionally delegate.
8056 * target.h (struct target_ops) <to_insn_history_range>: Use
8057 TARGET_DEFAULT_NORETURN.
8058
170049d4
TT
80592014-02-19 Tom Tromey <tromey@redhat.com>
8060
8061 * target-delegates.c: Rebuild.
8062 * target.c (target_call_history): Unconditionally delegate.
8063 * target.h (struct target_ops) <to_call_history>: Use
8064 TARGET_DEFAULT_NORETURN.
8065
16fc27d6
TT
80662014-02-19 Tom Tromey <tromey@redhat.com>
8067
8068 * target-delegates.c: Rebuild.
8069 * target.c (target_call_history_from): Unconditionally delegate.
8070 * target.h (struct target_ops) <to_call_history_from>: Use
8071 TARGET_DEFAULT_NORETURN.
8072
115d9817
TT
80732014-02-19 Tom Tromey <tromey@redhat.com>
8074
8075 * target-delegates.c: Rebuild.
8076 * target.c (target_call_history_range): Unconditionally delegate.
8077 * target.h (struct target_ops) <to_call_history_range>: Use
8078 TARGET_DEFAULT_NORETURN.
8079
eb276a6b
TT
80802014-02-19 Tom Tromey <tromey@redhat.com>
8081
8082 * target-delegates.c: Rebuild.
8083 * target.c (target_verify_memory): Unconditionally delegate.
8084 * target.h (struct target_ops) <to_verify_memory>: Use
8085 TARGET_DEFAULT_NORETURN.
8086
9e538d0d
TT
80872014-02-19 Tom Tromey <tromey@redhat.com>
8088
8089 * target-delegates.c: Rebuild.
8090 * target.c (target_core_of_thread): Unconditionally delegate.
8091 * target.h (struct target_ops) <to_core_of_thread>: Use
8092 TARGET_DEFAULT_RETURN.
8093
f6fb2925
TT
80942014-02-19 Tom Tromey <tromey@redhat.com>
8095
8096 * target-delegates.c: Rebuild.
8097 * target.c (target_flash_done): Unconditionally delegate.
8098 * target.h (struct target_ops) <to_flash_done>: Use
8099 TARGET_DEFAULT_NORETURN.
8100
e8a6c6ac
TT
81012014-02-19 Tom Tromey <tromey@redhat.com>
8102
8103 * target-delegates.c: Rebuild.
8104 * target.c (target_flash_erase): Unconditionally delegate.
8105 * target.h (struct target_ops) <to_flash_erase>: Use
8106 TARGET_DEFAULT_NORETURN.
8107
7e35c012
TT
81082014-02-19 Tom Tromey <tromey@redhat.com>
8109
8110 * target-delegates.c: Rebuild.
8111 * target.c (target_get_section_table): Unconditionally delegate.
8112 * target.h (struct target_ops) <to_get_section_table>: Use
8113 TARGET_DEFAULT_RETURN.
8114
770234d3
TT
81152014-02-19 Tom Tromey <tromey@redhat.com>
8116
8117 * target-delegates.c: Rebuild.
8118 * target.c (target_pid_to_str): Unconditionally delegate.
8119 (init_dummy_target): Don't initialize to_pid_to_str.
8120 (default_pid_to_str): Rename from dummy_pid_to_str.
8121 * target.h (struct target_ops) <to_pid_to_str>: Use
8122 TARGET_DEFAULT_FUNC.
8123
09b0dc2b
TT
81242014-02-19 Tom Tromey <tromey@redhat.com>
8125
8126 * target-delegates.c: Rebuild.
8127 * target.c (target_find_new_threads): Unconditionally delegate.
8128 * target.h (struct target_ops) <to_find_new_threads>: Use
8129 TARGET_DEFAULT_RETURN.
8130
7d4f8efa
TT
81312014-02-19 Tom Tromey <tromey@redhat.com>
8132
8133 * target-delegates.c: Rebuild.
8134 * target.c (target_program_signals): Unconditionally delegate.
8135 * target.h (struct target_ops) <to_program_signals>: Use
8136 TARGET_DEFAULT_IGNORE.
8137
035cad7f
TT
81382014-02-19 Tom Tromey <tromey@redhat.com>
8139
8140 * target-delegates.c: Rebuild.
8141 * target.c (target_pass_signals): Unconditionally delegate.
8142 * target.h (struct target_ops) <to_pass_signals>: Use
8143 TARGET_DEFAULT_IGNORE.
8144
8d657035
TT
81452014-02-19 Tom Tromey <tromey@redhat.com>
8146
8147 * target-delegates.c: Rebuild.
8148 * target.c (default_mourn_inferior): New function.
8149 (target_mourn_inferior): Unconditionally delegate.
8150 * target.h (struct target_ops) <to_mourn_inferior>: Use
8151 TARGET_DEFAULT_FUNC.
8152
098dba18
TT
81532014-02-19 Tom Tromey <tromey@redhat.com>
8154
8155 * target-delegates.c: Rebuild.
8156 * target.c (default_follow_fork): New function.
8157 (target_follow_fork): Unconditionally delegate.
8158 * target.h (struct target_ops) <to_follow_fork>: Use
8159 TARGET_DEFAULT_FUNC.
8160
423a4807
TT
81612014-02-19 Tom Tromey <tromey@redhat.com>
8162
8163 * target-delegates.c: Rebuild.
8164 * target.c (target_kill): Unconditionally delegate.
8165 * target.h (struct target_ops) <to_kill>: Use
8166 TARGET_DEFAULT_NORETURN.
8167
6c7e5e5c
TT
81682014-02-19 Tom Tromey <tromey@redhat.com>
8169
8170 * target-delegates.c: Rebuild.
8171 * target.c (target_masked_watch_num_registers): Unconditionally
8172 delegate.
8173 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8174 Use TARGET_DEFAULT_RETURN.
8175
8b1c364c
TT
81762014-02-19 Tom Tromey <tromey@redhat.com>
8177
8178 * target-delegates.c: Rebuild.
8179 * target.c (target_remove_mask_watchpoint): Unconditionally
8180 delegate.
8181 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8182 TARGET_DEFAULT_RETURN.
8183
cd4ae029
TT
81842014-02-19 Tom Tromey <tromey@redhat.com>
8185
8186 * target-delegates.c: Rebuild.
8187 * target.c (target_insert_mask_watchpoint): Unconditionally
8188 delegate.
8189 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8190 TARGET_DEFAULT_RETURN.
8191
a134316b
TT
81922014-02-19 Tom Tromey <tromey@redhat.com>
8193
8194 * target-delegates.c: Rebuild.
8195 * target.c (target_ranged_break_num_registers): Unconditionally
8196 delegate.
8197 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8198 Use TARGET_DEFAULT_RETURN.
8199
ad5989bd
TT
82002014-02-19 Tom Tromey <tromey@redhat.com>
8201
8202 * target-delegates.c: Rebuild.
8203 * target.c (target_fetch_registers): Unconditionally delegate.
8204 * target.h (struct target_ops) <to_fetch_registers>: Use
8205 TARGET_DEFAULT_NORETURN.
8206
46ee7e8d
TT
82072014-02-19 Tom Tromey <tromey@redhat.com>
8208
8209 * target-delegates.c: Rebuild.
8210 * target.c (update_current_target): Don't inherit or default
8211 to_stop.
8212 * target.h (struct target_ops) <to_stop>: Use
8213 TARGET_DEFAULT_IGNORE.
8214
843f59ed
TT
82152014-02-19 Tom Tromey <tromey@redhat.com>
8216
8217 * target-delegates.c: Rebuild.
8218 * target.c (update_current_target): Don't inherit or default
8219 to_can_run_breakpoint_commands.
8220 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8221 Use TARGET_DEFAULT_RETURN.
8222
ccfde2a0
TT
82232014-02-19 Tom Tromey <tromey@redhat.com>
8224
8225 * target-delegates.c: Rebuild.
8226 * target.c (update_current_target): Don't inherit or default
8227 to_supports_evaluation_of_breakpoint_conditions.
8228 * target.h (struct target_ops)
8229 <to_supports_evaluation_of_breakpoint_conditions>: Use
8230 TARGET_DEFAULT_RETURN.
8231
0de91722
TT
82322014-02-19 Tom Tromey <tromey@redhat.com>
8233
8234 * target-delegates.c: Rebuild.
8235 * target.c (update_current_target): Don't inherit or default
8236 to_augmented_libraries_svr4_read.
8237 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8238 Use TARGET_DEFAULT_RETURN.
8239
9a7d8b48
TT
82402014-02-19 Tom Tromey <tromey@redhat.com>
8241
8242 * target-delegates.c: Rebuild.
8243 * target.c (update_current_target): Don't inherit or default
8244 to_can_use_agent.
8245 * target.h (struct target_ops) <to_can_use_agent>: Use
8246 TARGET_DEFAULT_RETURN.
8247
d9db5b21
TT
82482014-02-19 Tom Tromey <tromey@redhat.com>
8249
8250 * target-delegates.c: Rebuild.
8251 * target.c (update_current_target): Don't inherit or default
8252 to_use_agent.
8253 * target.h (struct target_ops) <to_use_agent>: Use
8254 TARGET_DEFAULT_NORETURN.
8255
92155eeb
TT
82562014-02-19 Tom Tromey <tromey@redhat.com>
8257
8258 * target-delegates.c: Rebuild.
8259 * target.c (update_current_target): Don't inherit or default
8260 to_traceframe_info.
8261 (return_null): Remove.
8262 * target.h (struct target_ops) <to_traceframe_info>: Use
8263 TARGET_DEFAULT_RETURN.
8264
d6522a22
TT
82652014-02-19 Tom Tromey <tromey@redhat.com>
8266
8267 * target-delegates.c: Rebuild.
8268 * target.c (update_current_target): Don't inherit or default
8269 to_static_tracepoint_markers_by_strid.
8270 * target.h (struct target_ops)
8271 <to_static_tracepoint_markers_by_strid>: Use
8272 TARGET_DEFAULT_NORETURN.
8273
4c3e4425
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_static_tracepoint_marker_at.
8279 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8280 Use TARGET_DEFAULT_RETURN.
8281
dcd6917f
TT
82822014-02-19 Tom Tromey <tromey@redhat.com>
8283
8284 * target-delegates.c: Rebuild.
8285 * target.c (update_current_target): Don't inherit or default
8286 to_set_permissions.
8287 * target.h (struct target_ops) <to_set_permissions>: Use
8288 TARGET_DEFAULT_IGNORE.
8289
22bcceee
TT
82902014-02-19 Tom Tromey <tromey@redhat.com>
8291
8292 * target-delegates.c: Rebuild.
8293 * target.c (update_current_target): Don't inherit or default
8294 to_get_tib_address.
8295 * target.h (struct target_ops) <to_get_tib_address>: Use
8296 TARGET_DEFAULT_NORETURN.
8297
8586ccaa
TT
82982014-02-19 Tom Tromey <tromey@redhat.com>
8299
8300 * target-delegates.c: Rebuild.
8301 * target.c (update_current_target): Don't inherit or default
8302 to_set_trace_notes.
8303 * target.h (struct target_ops) <to_set_trace_notes>: Use
8304 TARGET_DEFAULT_RETURN.
8305
91df8d1d
TT
83062014-02-19 Tom Tromey <tromey@redhat.com>
8307
8308 * target-delegates.c: Rebuild.
8309 * target.c (update_current_target): Don't initialize
8310 to_set_trace_buffer_size.
8311 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8312 TARGET_DEFAULT_IGNORE.
8313
8d526939
TT
83142014-02-19 Tom Tromey <tromey@redhat.com>
8315
8316 * target-delegates.c: Rebuild.
8317 * target.c (update_current_target): Don't inherit or default
8318 to_set_circular_trace_buffer.
8319 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8320 TARGET_DEFAULT_IGNORE.
8321
0bcfeddf
TT
83222014-02-19 Tom Tromey <tromey@redhat.com>
8323
8324 * target-delegates.c: Rebuild.
8325 * target.c (update_current_target): Don't inherit or default
8326 to_set_disconnected_tracing.
8327 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8328 TARGET_DEFAULT_IGNORE.
8329
9249843f
TT
83302014-02-19 Tom Tromey <tromey@redhat.com>
8331
8332 * target-delegates.c: Rebuild.
8333 * target.c (update_current_target): Don't inherit or default
8334 to_get_min_fast_tracepoint_insn_len.
8335 (return_minus_one): Remove.
8336 * target.h (struct target_ops)
8337 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8338
ace92e7d
TT
83392014-02-19 Tom Tromey <tromey@redhat.com>
8340
8341 * target-delegates.c: Rebuild.
8342 * target.c (update_current_target): Don't inherit or default
8343 to_get_raw_trace_data.
8344 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8345 TARGET_DEFAULT_NORETURN.
8346
08120467
TT
83472014-02-19 Tom Tromey <tromey@redhat.com>
8348
8349 * target-delegates.c: Rebuild.
8350 * target.c (update_current_target): Don't inherit or default
8351 to_upload_trace_state_variables.
8352 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8353 Use TARGET_DEFAULT_RETURN.
8354
1e949b00
TT
83552014-02-19 Tom Tromey <tromey@redhat.com>
8356
8357 * target-delegates.c: Rebuild.
8358 * target.c (update_current_target): Don't inherit or default
8359 to_upload_tracepoints.
8360 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8361 TARGET_DEFAULT_RETURN.
8362
a2e6c147
TT
83632014-02-19 Tom Tromey <tromey@redhat.com>
8364
8365 * target-delegates.c: Rebuild.
8366 * target.c (update_current_target): Don't inherit or default
8367 to_save_trace_data.
8368 * target.h (struct target_ops) <to_save_trace_data>: Use
8369 TARGET_DEFAULT_NORETURN.
8370
959bcd0b
TT
83712014-02-19 Tom Tromey <tromey@redhat.com>
8372
8373 * target-delegates.c: Rebuild.
8374 * target.c (update_current_target): Don't inherit or default
8375 to_get_trace_state_variable_value.
8376 * target.h (struct target_ops)
8377 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8378
afc94e66
TT
83792014-02-19 Tom Tromey <tromey@redhat.com>
8380
8381 * target-delegates.c: Rebuild.
8382 * target.c (update_current_target): Don't inherit or default
8383 to_trace_find.
8384 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8385
e51c07ea
TT
83862014-02-19 Tom Tromey <tromey@redhat.com>
8387
8388 * target-delegates.c: Rebuild.
8389 * target.c (update_current_target): Don't inherit or default
8390 to_trace_stop.
8391 * target.h (struct target_ops) <to_trace_stop>: Use
8392 TARGET_DEFAULT_NORETURN.
8393
6fea14cd
TT
83942014-02-19 Tom Tromey <tromey@redhat.com>
8395
8396 * target-delegates.c: Rebuild.
8397 * target.c (update_current_target): Don't inherit or default
8398 to_get_tracepoint_status.
8399 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8400 TARGET_DEFAULT_NORETURN.
8401
4072d4ff
TT
84022014-02-19 Tom Tromey <tromey@redhat.com>
8403
8404 * target-delegates.c: Rebuild.
8405 * target.c (update_current_target): Don't inherit or default
8406 to_get_trace_status.
8407 * target.h (struct target_ops) <to_get_trace_status>: Use
8408 TARGET_DEFAULT_RETURN.
8409
25da2e80
TT
84102014-02-19 Tom Tromey <tromey@redhat.com>
8411
8412 * target-delegates.c: Rebuild.
8413 * target.c (update_current_target): Don't inherit or default
8414 to_trace_start.
8415 * target.h (struct target_ops) <to_trace_start>: Use
8416 TARGET_DEFAULT_NORETURN.
8417
86dd181d
TT
84182014-02-19 Tom Tromey <tromey@redhat.com>
8419
8420 * target-delegates.c: Rebuild.
8421 * target.c (update_current_target): Don't inherit or default
8422 to_trace_set_readonly_regions.
8423 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8424 Use TARGET_DEFAULT_NORETURN.
8425
05c41993
TT
84262014-02-19 Tom Tromey <tromey@redhat.com>
8427
8428 * target-delegates.c: Rebuild.
8429 * target.c (update_current_target): Don't inherit or default
8430 to_disable_tracepoint.
8431 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8432 TARGET_DEFAULT_NORETURN.
8433
151f70f1
TT
84342014-02-19 Tom Tromey <tromey@redhat.com>
8435
8436 * target-delegates.c: Rebuild.
8437 * target.c (update_current_target): Don't inherit or default
8438 to_enable_tracepoint.
8439 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8440 TARGET_DEFAULT_NORETURN.
8441
94eb98b9
TT
84422014-02-19 Tom Tromey <tromey@redhat.com>
8443
8444 * target-delegates.c: Rebuild.
8445 * target.c (update_current_target): Don't inherit or default
8446 to_download_trace_state_variable.
8447 * target.h (struct target_ops) <to_download_trace_state_variable>:
8448 Use TARGET_DEFAULT_NORETURN.
8449
719acc4a
TT
84502014-02-19 Tom Tromey <tromey@redhat.com>
8451
8452 * target-delegates.c: Rebuild.
8453 * target.c (update_current_target): Don't inherit or default
8454 to_can_download_tracepoint.
8455 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8456 TARGET_DEFAULT_RETURN.
8457
9a980a22
TT
84582014-02-19 Tom Tromey <tromey@redhat.com>
8459
8460 * target-delegates.c: Rebuild.
8461 * target.c (update_current_target): Don't inherit or default
8462 to_download_tracepoint.
8463 * target.h (struct target_ops) <to_download_tracepoint>: Use
8464 TARGET_DEFAULT_NORETURN.
8465
5536135b
TT
84662014-02-19 Tom Tromey <tromey@redhat.com>
8467
8468 * target-delegates.c: Rebuild.
8469 * target.c (update_current_target): Don't inherit or default
8470 to_trace_init.
8471 * target.h (struct target_ops) <to_trace_init>: Use
8472 TARGET_DEFAULT_RETURN.
8473
9409d39e
TT
84742014-02-19 Tom Tromey <tromey@redhat.com>
8475
8476 * target-delegates.c: Rebuild.
8477 * target.c (update_current_target): Don't inherit or default
8478 to_supports_string_tracing.
8479 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8480 TARGET_DEFAULT_RETURN.
8481
aab1b22d
TT
84822014-02-19 Tom Tromey <tromey@redhat.com>
8483
8484 * target-delegates.c: Rebuild.
8485 * target.c (update_current_target): Don't inherit or default
8486 to_supports_enable_disable_tracepoint.
8487 * target.h (struct target_ops)
8488 <to_supports_enable_disable_tracepoint>: Use
8489 TARGET_DEFAULT_RETURN.
8490
a7304748
TT
84912014-02-19 Tom Tromey <tromey@redhat.com>
8492
8493 * target-delegates.c: Rebuild.
8494 * target.c (update_current_target): Don't inherit or default
8495 to_supports_multi_process.
8496 * target.h (struct target_ops) <to_supports_multi_process>: Use
8497 TARGET_DEFAULT_RETURN.
8498
4229b31d
TT
84992014-02-19 Tom Tromey <tromey@redhat.com>
8500
8501 * target-delegates.c: Rebuild.
8502 * target.c (update_current_target): Don't inherit or default
8503 to_get_ada_task_ptid.
8504 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8505 TARGET_DEFAULT_FUNC.
8506
43eba180
TT
85072014-02-19 Tom Tromey <tromey@redhat.com>
8508
8509 * target-delegates.c: Rebuild.
8510 * target.c (update_current_target): Don't inherit or default
8511 to_thread_architecture.
8512 * target.h (struct target_ops) <to_thread_architecture>: Use
8513 TARGET_DEFAULT_FUNC.
8514
fe31bf5b
TT
85152014-02-19 Tom Tromey <tromey@redhat.com>
8516
8517 * target-delegates.c: Rebuild.
8518 * target.c (update_current_target): Don't inherit or default
8519 to_execution_direction.
8520 * target.h (struct target_ops) <to_execution_direction>: Use
8521 TARGET_DEFAULT_FUNC.
8522
53e1cfc7
TT
85232014-02-19 Tom Tromey <tromey@redhat.com>
8524
8525 * target-delegates.c: Rebuild.
8526 * target.c (update_current_target): Don't inherit or default
8527 to_can_execute_reverse.
8528 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8529 TARGET_DEFAULT_RETURN.
8530 (target_can_execute_reverse): Unconditionally delegate.
8531
9bb9d61d
TT
85322014-02-19 Tom Tromey <tromey@redhat.com>
8533
8534 * target-delegates.c: Rebuild.
8535 * target.c (update_current_target): Don't inherit or default
8536 to_goto_bookmark.
8537 (dummy_goto_bookmark): Remove.
8538 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8539 * target.h (struct target_ops) <to_goto_bookmark>: Use
8540 TARGET_DEFAULT_NORETURN.
8541
3dbafbbb
TT
85422014-02-19 Tom Tromey <tromey@redhat.com>
8543
8544 * target-delegates.c: Rebuild.
8545 * target.c (update_current_target): Don't inherit or default
8546 to_get_bookmark.
8547 (dummy_get_bookmark): Remove.
8548 (init_dummy_target): Don't inherit or default to_get_bookmark.
8549 * target.h (struct target_ops) <to_get_bookmark>: Use
8550 TARGET_DEFAULT_NORETURN
8551
16f796b1
TT
85522014-02-19 Tom Tromey <tromey@redhat.com>
8553
8554 * target-delegates.c: Rebuild.
8555 * target.c (update_current_target): Don't inherit or default
8556 to_make_corefile_notes.
8557 (init_dummy_target): Don't initialize to_make_corefile_notes.
8558 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8559 TARGET_DEFAULT_FUNC.
8560
0b5a2719
TT
85612014-02-19 Tom Tromey <tromey@redhat.com>
8562
8563 * target-delegates.c: Rebuild.
8564 * target.c (update_current_target): Don't inherit or default
8565 to_find_memory_regions.
8566 (init_dummy_target): Don't initialize to_find_memory_regions.
8567 * target.h (struct target_ops) <to_find_memory_regions>: Use
8568 TARGET_DEFAULT_FUNC.
8569
d9cb0195
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_log_command.
8575 * target.h (struct target_ops) <to_log_command>: Use
8576 TARGET_DEFAULT_IGNORE.
8577 (target_log_command): Unconditionally delegate.
8578
830ca330
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_pid_to_exec_file.
8584 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8585 TARGET_DEFAULT_RETURN.
8586
825828fc
TT
85872014-02-19 Tom Tromey <tromey@redhat.com>
8588
8589 * target-delegates.c: Rebuild.
8590 * target.c (update_current_target): Don't inherit or default
8591 to_thread_name.
8592 (target_thread_name): Unconditionally delegate.
8593 * target.h (struct target_ops) <to_thread_name>: Use
8594 TARGET_DEFAULT_RETURN.
8595
4a7e6dda
TT
85962014-02-19 Tom Tromey <tromey@redhat.com>
8597
8598 * target-delegates.c: Rebuild.
8599 * target.c (update_current_target): Don't inherit or default
8600 to_extra_thread_info.
8601 * target.h (struct target_ops) <to_extra_thread_info>: Use
8602 TARGET_DEFAULT_RETURN.
8603
0db88c1d
TT
86042014-02-19 Tom Tromey <tromey@redhat.com>
8605
8606 * target-delegates.c: Rebuild.
8607 * target.c (update_current_target): Don't inherit or default
8608 to_has_exited.
8609 * target.h (struct target_ops) <to_has_exited>: Use
8610 TARGET_DEFAULT_RETURN..
8611
6a9fa051
TT
86122014-02-19 Tom Tromey <tromey@redhat.com>
8613
8614 * target-delegates.c: Rebuild.
8615 * target.c (update_current_target): Don't inherit or default
8616 to_set_syscall_catchpoint.
8617 (return_one): Remove.
8618 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8619 TARGET_DEFAULT_RETURN.
8620
62f64d7a
TT
86212014-02-19 Tom Tromey <tromey@redhat.com>
8622
8623 * target-delegates.c: Rebuild.
8624 * target.c (update_current_target): Don't inherit or default
8625 to_insert_exec_catchpoint.
8626 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8627 TARGET_DEFAULT_RETURN.
8628
cda0f38c
TT
86292014-01-08 Tom Tromey <tromey@redhat.com>
8630
8631 * target-delegates.c: Rebuild.
8632 * target.c (update_current_target): Don't inherit or default
8633 to_insert_exec_catchpoint.
8634 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8635 TARGET_DEFAULT_RETURN.
8636
95c3375e
TT
86372014-02-19 Tom Tromey <tromey@redhat.com>
8638
8639 * target-delegates.c: Rebuild.
8640 * target.c (update_current_target): Don't inherit or default
8641 to_remove_vfork_catchpoint.
8642 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8643 TARGET_DEFAULT_RETURN.
8644
7e18a8dc
TT
86452014-02-19 Tom Tromey <tromey@redhat.com>
8646
8647 * target-delegates.c: Rebuild.
8648 * target.c (update_current_target): Don't inherit or default
8649 to_insert_vfork_catchpoint.
8650 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8651 TARGET_DEFAULT_RETURN.
8652
e1a21fb7
TT
86532014-02-19 Tom Tromey <tromey@redhat.com>
8654
8655 * target-delegates.c: Rebuild.
8656 * target.c (update_current_target): Don't inherit or default
8657 to_remove_fork_catchpoint.
8658 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8659 TARGET_DEFAULT_RETURN.
8660
5958ebeb
TT
86612014-02-19 Tom Tromey <tromey@redhat.com>
8662
8663 * target-delegates.c: Rebuild.
8664 * target.c (update_current_target): Don't inherit or default
8665 to_insert_fork_catchpoint.
8666 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8667 TARGET_DEFAULT_RETURN.
8668
340ba4bf
TT
86692014-02-19 Tom Tromey <tromey@redhat.com>
8670
8671 * target-delegates.c: Rebuild.
8672 * target.c (update_current_target): Don't inherit or default
8673 to_post_startup_inferior.
8674 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8675 TARGET_DEFAULT_IGNORE.
8676
7634da87
TT
86772014-02-19 Tom Tromey <tromey@redhat.com>
8678
8679 * target-delegates.c: Rebuild.
8680 * target.c (update_current_target): Don't inherit or default
8681 to_load.
8682 * target.h (struct target_ops) <to_load>: Use
8683 TARGET_DEFAULT_NORETURN.
8684
e19e919f
TT
86852014-02-19 Tom Tromey <tromey@redhat.com>
8686
8687 * target-delegates.c: Rebuild.
8688 * target.c (update_current_target): Don't inherit or default
8689 to_terminal_info.
8690 * target.h (struct target_ops) <to_terminal_info>: Use
8691 TARGET_DEFAULT_FUNC.
8692
c6ea8f79
TT
86932014-02-19 Tom Tromey <tromey@redhat.com>
8694
8695 * target-delegates.c: Rebuild.
8696 * target.c (update_current_target): Don't inherit or default
8697 to_terminal_save_ours.
8698 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8699 TARGET_DEFAULT_IGNORE.
8700
e4a733f1
TT
87012014-02-19 Tom Tromey <tromey@redhat.com>
8702
8703 * target-delegates.c: Rebuild.
8704 * target.c (update_current_target): Don't inherit or default
8705 to_terminal_ours.
8706 * target.h (struct target_ops) <to_terminal_ours>: Use
8707 TARGET_DEFAULT_IGNORE.
8708
74fcbef9
TT
87092014-02-19 Tom Tromey <tromey@redhat.com>
8710
8711 * target-delegates.c: Rebuild.
8712 * target.c (update_current_target): Don't inherit or default
8713 to_terminal_ours_for_output.
8714 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8715 TARGET_DEFAULT_IGNORE.
8716
ddeaacc9
TT
87172014-02-19 Tom Tromey <tromey@redhat.com>
8718
8719 * target-delegates.c: Rebuild.
8720 * target.c (update_current_target): Don't inherit or default
8721 to_terminal_inferior.
8722 * target.h (struct target_ops) <to_terminal_inferior>: Use
8723 TARGET_DEFAULT_IGNORE.
8724
0343661d
TT
87252014-02-19 Tom Tromey <tromey@redhat.com>
8726
8727 * target-delegates.c: Rebuild.
8728 * target.c (update_current_target): Don't inherit or default
8729 to_terminal_init.
8730 * target.h (struct target_ops) <to_terminal_init>: Use
8731 TARGET_DEFAULT_IGNORE.
8732
77cdffe9
TT
87332014-02-19 Tom Tromey <tromey@redhat.com>
8734
8735 * target-delegates.c: Rebuild.
8736 * target.c (update_current_target): Don't inherit or default
8737 to_can_accel_watchpoint_condition.
8738 * target.h (struct target_ops)
8739 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8740
d03655e4
TT
87412014-02-19 Tom Tromey <tromey@redhat.com>
8742
8743 * target-delegates.c: Rebuild.
8744 * target.c (update_current_target): Don't inherit or default
8745 to_region_ok_for_hw_watchpoint.
8746 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8747 Use TARGET_DEFAULT_FUNC.
8748
65f160a9
TT
87492014-02-19 Tom Tromey <tromey@redhat.com>
8750
8751 * target-delegates.c: Rebuild.
8752 * target.c (update_current_target): Don't inherit or default
8753 to_watchpoint_addr_within_range.
8754 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8755 Use TARGET_DEFAULT_FUNC.
8756
61dd109f
TT
87572014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target-delegates.c: Rebuild.
8760 * target.c (update_current_target): Don't inherit or default
8761 to_remove_watchpoint.
8762 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8763 TARGET_DEFAULT_NORETURN.
8764
016facd4
TT
87652014-02-19 Tom Tromey <tromey@redhat.com>
8766
8767 * target-delegates.c: Rebuild.
8768 * target.c (update_current_target): Don't inherit or default
8769 to_insert_watchpoint.
8770 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8771 TARGET_DEFAULT_RETURN.
8772
418dabac
TT
87732014-02-19 Tom Tromey <tromey@redhat.com>
8774
8775 * target-delegates.c: Rebuild.
8776 * target.c (update_current_target): Don't inherit or default
8777 to_remove_hw_breakpoint.
8778 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8779 TARGET_DEFAULT_RETURN.
8780
61b371f9
TT
87812014-02-19 Tom Tromey <tromey@redhat.com>
8782
8783 * target-delegates.c: Rebuild.
8784 * target.c (update_current_target): Don't inherit or default
8785 to_insert_hw_breakpoint.
8786 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8787 TARGET_DEFAULT_RETURN.
8788
52b51d06
TT
87892014-02-19 Tom Tromey <tromey@redhat.com>
8790
8791 * target-delegates.c: Rebuild.
8792 * target.c (update_current_target): Don't inherit or default
8793 to_can_use_hw_breakpoint.
8794 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8795 TARGET_DEFAULT_RETURN.
8796
f86e59b2
TT
87972014-02-19 Tom Tromey <tromey@redhat.com>
8798
8799 * target-delegates.c: Rebuild.
8800 * target.c (update_current_target): Don't inherit or default
8801 to_files_info.
8802 * target.h (struct target_ops) <to_files_info>: Use
8803 TARGET_DEFAULT_IGNORE.
8804
6c628163
TT
88052014-02-19 Tom Tromey <tromey@redhat.com>
8806
8807 * target-delegates.c: Rebuild.
8808 * target.c (update_current_target): Don't inherit or default
8809 to_store.
8810 * target.h (struct target_ops) <to_store>: Use
8811 TARGET_DEFAULT_NORETURN.
8812
bebd3233
TT
88132014-02-19 Tom Tromey <tromey@redhat.com>
8814
8815 * target-delegates.c: Rebuild.
8816 * target.c (update_current_target): Don't inherit or default
8817 to_post_attach.
8818 * target.h (struct target_ops) <to_post_attach>: Use
8819 TARGET_DEFAULT_IGNORE.
8820
a53f3625
TT
88212014-02-19 Tom Tromey <tromey@redhat.com>
8822
8823 * target-delegates.c: Rebuild.
8824 * target.c (update_current_target): Don't inherit or default
8825 to_rcmd.
8826 (default_rcmd): New function.
8827 (do_monitor_command): Unconditionally delegate.
8828 * target.h (struct target_ops) <to_rmcd>: Use
8829 TARGET_DEFAULT_FUNC.
8830
e9a29200
TT
88312014-02-19 Tom Tromey <tromey@redhat.com>
8832
8833 * target-delegates.c: Rebuild.
8834 * target.c (init_dummy_target): Don't initialize to_attach.
8835 (target_attach): Unconditionally delegate.
8836 * target.h (struct target_ops) <to_attach>: Use
8837 TARGET_DEFAULT_FUNC.
8838
09da0d0a
TT
88392014-02-19 Tom Tromey <tromey@redhat.com>
8840
8841 * target-delegates.c: Rebuild.
8842 * target.c (target_detach): Unconditionally delegate.
8843 (init_dummy_target): Don't initialize to_detach.
8844 * target.h (struct target_ops) <to_detach>: Use
8845 TARGET_DEFAULT_IGNORE.
8846
5436ff03
TT
88472014-02-19 Tom Tromey <tromey@redhat.com>
8848
8849 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8850 Add argument.
8851 (target_augmented_libraries_svr4_read): Add argument.
8852 * target.c (update_current_target): Update.
8853 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8854 argument.
8855
f0d960ea
TT
88562014-02-19 Tom Tromey <tromey@redhat.com>
8857
8858 * target.h (struct target_ops) <to_call_history_range>: Add
8859 argument.
8860 * target.c (target_call_history_range): Add argument.
8861 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8862 argument.
8863 (record_btrace_call_history_from): Update.
8864
ec0aea04
TT
88652014-02-19 Tom Tromey <tromey@redhat.com>
8866
8867 * target.h (struct target_ops) <to_call_history_from>: Add
8868 argument.
8869 * target.c (target_call_history_from): Add argument.
8870 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8871 argument.
8872
5df2fcba
TT
88732014-02-19 Tom Tromey <tromey@redhat.com>
8874
8875 * target.h (struct target_ops) <to_call_history>: Add argument.
8876 * target.c (target_call_history): Add argument.
8877 * record-btrace.c (record_btrace_call_history): Add 'self'
8878 argument.
8879
4e99c6b7
TT
88802014-02-19 Tom Tromey <tromey@redhat.com>
8881
8882 * target.h (struct target_ops) <to_insn_history_range>: Add
8883 argument.
8884 * target.c (target_insn_history_range): Add argument.
8885 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8886 argument.
8887 (record_btrace_insn_history_from): Update.
8888
9abc3ff3
TT
88892014-02-19 Tom Tromey <tromey@redhat.com>
8890
8891 * target.h (struct target_ops) <to_insn_history_from>: Add
8892 argument.
8893 * target.c (target_insn_history_from): Add argument.
8894 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8895 argument.
8896
7a6c5609
TT
88972014-02-19 Tom Tromey <tromey@redhat.com>
8898
8899 * target.h (struct target_ops) <to_insn_history>: Add argument.
8900 * target.c (target_insn_history): Add argument.
8901 * record-btrace.c (record_btrace_insn_history): Add 'self'
8902 argument.
8903
606183ac
TT
89042014-02-19 Tom Tromey <tromey@redhat.com>
8905
8906 * target.h (struct target_ops) <to_goto_record>: Add argument.
8907 * target.c (target_goto_record): Add argument.
8908 * record-full.c (record_full_goto): Add 'self' argument.
8909 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8910
307a1b91
TT
89112014-02-19 Tom Tromey <tromey@redhat.com>
8912
8913 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8914 * target.c (target_goto_record_end): Add argument.
8915 * record-full.c (record_full_goto_end): Add 'self' argument.
8916 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8917
08475817
TT
89182014-02-19 Tom Tromey <tromey@redhat.com>
8919
8920 * target.h (struct target_ops) <to_goto_record_begin>: Add
8921 argument.
8922 * target.c (target_goto_record_begin): Add argument.
8923 * record-full.c (record_full_goto_begin): Add 'self' argument.
8924 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8925 argument.
8926
1c63c994
TT
89272014-02-19 Tom Tromey <tromey@redhat.com>
8928
8929 * target.h (struct target_ops) <to_record_is_replaying>: Add
8930 argument.
8931 * target.c (target_record_is_replaying): Add argument.
8932 * record-full.c (record_full_is_replaying): Add 'self' argument.
8933 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8934 argument.
8935 (record_btrace_xfer_partial, record_btrace_store_registers)
8936 (record_btrace_prepare_to_store, record_btrace_resume)
8937 (record_btrace_wait, record_btrace_decr_pc_after_break)
8938 (record_btrace_find_new_threads, record_btrace_thread_alive):
8939 Update.
8940
d1b55219
TT
89412014-02-19 Tom Tromey <tromey@redhat.com>
8942
8943 * target.h (struct target_ops) <to_delete_record>: Add argument.
8944 * target.c (target_delete_record): Add argument.
8945 * record-full.c (record_full_delete): Add 'self' argument.
8946
1390f529
TT
89472014-02-19 Tom Tromey <tromey@redhat.com>
8948
8949 * target.h (struct target_ops) <to_save_record>: Add argument.
8950 * target.c (target_save_record): Add argument.
8951 * record-full.c (record_full_save): Add 'self' argument.
8952 (record_full_save): Add 'self' argument.
8953
630d6a4a
TT
89542014-02-19 Tom Tromey <tromey@redhat.com>
8955
8956 * target.h (struct target_ops) <to_info_record>: Add argument.
8957 * target.c (target_info_record): Add argument.
8958 * record.c (info_record_command): Add argument.
8959 * record-full.c (record_full_info): Add 'self' argument.
8960 * record-btrace.c (record_btrace_info): Add 'self' argument.
8961
c6cd7c02
TT
89622014-02-19 Tom Tromey <tromey@redhat.com>
8963
8964 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8965 * target.c (target_stop_recording): Add argument.
8966 * record.c (record_stop): Add argument.
8967 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8968 argument.
8969
39c49f83
TT
89702014-02-19 Tom Tromey <tromey@redhat.com>
8971
8972 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8973 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8974 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8975 argument.
8976 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8977 (_initialize_amd64_linux_nat): Use it.
8978 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8979 (_initialize_i386_linux_nat): Use it.
8980
1777056d
TT
89812014-02-19 Tom Tromey <tromey@redhat.com>
8982
8983 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8984 * target.c (target_teardown_btrace): Add argument.
8985 * remote.c (remote_teardown_btrace): Add 'self' argument.
8986 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8987 argument.
8988 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8989 argument.
8990
25e95349
TT
89912014-02-19 Tom Tromey <tromey@redhat.com>
8992
8993 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8994 * target.c (target_disable_btrace): Add argument.
8995 * remote.c (remote_disable_btrace): Add 'self' argument.
8996 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8997 argument.
8998 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8999 argument.
9000
e3c49f88
TT
90012014-02-19 Tom Tromey <tromey@redhat.com>
9002
9003 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
9004 * target.c (target_enable_btrace): Add argument.
9005 * remote.c (remote_enable_btrace): Add 'self' argument.
9006 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
9007 argument.
9008 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
9009 argument.
9010
fe38f897
TT
90112014-02-19 Tom Tromey <tromey@redhat.com>
9012
9013 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
9014 (target_can_use_agent): Add argument.
9015 * target.c (update_current_target): Update.
9016 * remote.c (remote_can_use_agent): Add 'self' argument.
9017 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
9018
2c152180
TT
90192014-02-19 Tom Tromey <tromey@redhat.com>
9020
9021 * target.h (struct target_ops) <to_use_agent>: Add argument.
9022 (target_use_agent): Add argument.
9023 * target.c (update_current_target): Update.
9024 * remote.c (remote_use_agent): Add 'self' argument.
9025 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9026
a893e81f
TT
90272014-02-19 Tom Tromey <tromey@redhat.com>
9028
9029 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9030 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9031 (target_traceframe_info): Add argument.
9032 * target.c (update_current_target): Update.
9033 * remote.c (remote_traceframe_info): Add 'self' argument.
9034 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9035
c686c57f
TT
90362014-02-19 Tom Tromey <tromey@redhat.com>
9037
9038 * target.h (target_static_tracepoint_markers_by_strid): Add
9039 argument.
9040 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9041 'self' argument.
9042 * target.c (update_current_target): Update.
9043 * remote.c (struct target_ops)
9044 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9045 * linux-nat.c (struct target_ops)
9046 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9047
61fc905d
TT
90482014-02-19 Tom Tromey <tromey@redhat.com>
9049
9050 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9051 Add argument.
9052 (target_static_tracepoint_marker_at): Add argument.
9053 * target.c (update_current_target): Update.
9054 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9055 argument.
9056
c378d69d
TT
90572014-02-19 Tom Tromey <tromey@redhat.com>
9058
9059 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9060 (target_set_permissions): Add argument.
9061 * target.c (update_current_target): Update.
9062 * remote.c (remote_set_permissions): Add 'self' argument.
9063 (remote_start_remote): Update.
9064
bd7ae0f5
TT
90652014-02-19 Tom Tromey <tromey@redhat.com>
9066
9067 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9068 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9069 (target_get_tib_address): Add argument.
9070 * target.c (update_current_target): Update.
9071 * remote.c (remote_get_tib_address): Add 'self' argument.
9072
d9e68a2c
TT
90732014-02-19 Tom Tromey <tromey@redhat.com>
9074
9075 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9076 (target_set_trace_notes): Add argument.
9077 * target.c (update_current_target): Update.
9078 * remote.c (remote_set_trace_notes): Add 'self' argument.
9079
4da384be
TT
90802014-02-19 Tom Tromey <tromey@redhat.com>
9081
9082 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9083 argument.
9084 (target_set_trace_buffer_size): Add argument.
9085 * target.c (update_current_target): Update.
9086 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9087
736d5b1f
TT
90882014-02-19 Tom Tromey <tromey@redhat.com>
9089
9090 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9091 argument.
9092 (target_set_circular_trace_buffer): Add argument.
9093 * target.c (update_current_target): Update.
9094 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9095 argument.
9096
37b25738
TT
90972014-02-19 Tom Tromey <tromey@redhat.com>
9098
9099 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9100 argument.
9101 (target_set_disconnected_tracing): Add argument.
9102 * target.c (update_current_target): Update.
9103 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9104
0e67620a
TT
91052014-02-19 Tom Tromey <tromey@redhat.com>
9106
9107 * target.h (struct target_ops)
9108 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9109 (target_get_min_fast_tracepoint_insn_len): Add argument.
9110 * target.c (update_current_target): Update.
9111 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9112 argument.
9113
88ee6f45
TT
91142014-02-19 Tom Tromey <tromey@redhat.com>
9115
9116 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9117 argument.
9118 (target_get_raw_trace_data): Add argument.
9119 * target.c (update_current_target): Update.
9120 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9121
181e3713
TT
91222014-02-19 Tom Tromey <tromey@redhat.com>
9123
9124 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9125 Add argument.
9126 (target_upload_trace_state_variables): Add argument.
9127 * target.c (update_current_target): Update.
9128 * remote.c (remote_upload_trace_state_variables): Add 'self'
9129 argument.
9130 (remote_start_remote): Update.
9131
ab6617cc
TT
91322014-02-19 Tom Tromey <tromey@redhat.com>
9133
9134 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9135 argument.
9136 (target_upload_tracepoints): Add argument.
9137 * target.c (update_current_target): Update.
9138 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9139 (remote_start_remote): Update.
9140
dc3decaf
TT
91412014-02-19 Tom Tromey <tromey@redhat.com>
9142
9143 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9144 (target_save_trace_data): Add argument.
9145 * target.c (update_current_target): Update.
9146 * remote.c (remote_save_trace_data): Add 'self' argument.
9147
4011015b
TT
91482014-02-19 Tom Tromey <tromey@redhat.com>
9149
9150 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9151 argument.
9152 * target.h (struct target_ops)
9153 <to_get_trace_state_variable_value>: Add argument.
9154 (target_get_trace_state_variable_value): Add argument.
9155 * target.c (update_current_target): Update.
9156 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9157 argument.
9158 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9159
bd4c6793
TT
91602014-02-19 Tom Tromey <tromey@redhat.com>
9161
9162 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9163 * target.h (struct target_ops) <to_trace_find>: Add argument.
9164 (target_trace_find): Add argument.
9165 * target.c (update_current_target): Update.
9166 * remote.c (remote_trace_find): Add 'self' argument.
9167 * ctf.c (ctf_trace_find): Add 'self' argument.
9168
74499f1b
TT
91692014-02-19 Tom Tromey <tromey@redhat.com>
9170
9171 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9172 (target_trace_stop): Add argument.
9173 * target.c (update_current_target): Update.
9174 * remote.c (remote_trace_stop): Add 'self' argument.
9175
db90e85c
TT
91762014-02-19 Tom Tromey <tromey@redhat.com>
9177
9178 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9179 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9180 argument.
9181 (target_get_tracepoint_status): Add argument.
9182 * target.c (update_current_target): Update.
9183 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9184
8bd200f1
TT
91852014-02-19 Tom Tromey <tromey@redhat.com>
9186
9187 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9188 * target.h (struct target_ops) <to_get_trace_status>: Add
9189 argument.
9190 (target_get_trace_status): Add argument.
9191 * target.c (update_current_target): Update.
9192 * remote.c (remote_get_trace_status): Add 'self' argument.
9193 (remote_start_remote, remote_can_download_tracepoint): Update.
9194 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9195
e2d1aae3
TT
91962014-02-19 Tom Tromey <tromey@redhat.com>
9197
9198 * target.h (struct target_ops) <to_trace_start>: Add argument.
9199 (target_trace_start): Add argument.
9200 * target.c (update_current_target): Update.
9201 * remote.c (remote_trace_start): Add 'self' argument.
9202
583f9a86
TT
92032014-02-19 Tom Tromey <tromey@redhat.com>
9204
9205 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9206 Add argument.
9207 (target_trace_set_readonly_regions): Add argument.
9208 * target.c (update_current_target): Update.
9209 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9210 argument.
9211
780b049c
TT
92122014-02-19 Tom Tromey <tromey@redhat.com>
9213
9214 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9215 argument.
9216 (target_disable_tracepoint): Add argument.
9217 * target.c (update_current_target): Update.
9218 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9219
46670d57
TT
92202014-02-19 Tom Tromey <tromey@redhat.com>
9221
9222 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9223 argument.
9224 (target_enable_tracepoint): Add argument.
9225 * target.c (update_current_target): Update.
9226 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9227
559d2b81
TT
92282014-02-19 Tom Tromey <tromey@redhat.com>
9229
9230 * target.h (struct target_ops) <to_download_trace_state_variable>:
9231 Add argument.
9232 (target_download_trace_state_variable): Add argument.
9233 * target.c (update_current_target): Update.
9234 * remote.c (remote_download_trace_state_variable): Add 'self'
9235 argument.
9236
a52a8357
TT
92372014-02-19 Tom Tromey <tromey@redhat.com>
9238
9239 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9240 argument.
9241 (target_can_download_tracepoint): Add argument.
9242 * target.c (update_current_target): Update.
9243 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9244
548f7808
TT
92452014-02-19 Tom Tromey <tromey@redhat.com>
9246
9247 * target.h (struct target_ops) <to_download_tracepoint>: Add
9248 argument.
9249 (target_download_tracepoint): Add argument.
9250 * target.c (update_current_target): Update.
9251 * remote.c (remote_download_tracepoint): Add 'self' argument.
9252
ecae04e1
TT
92532014-02-19 Tom Tromey <tromey@redhat.com>
9254
9255 * target.h (struct target_ops) <to_trace_init>: Add argument.
9256 (target_trace_init): Add argument.
9257 * target.c (update_current_target): Update.
9258 * remote.c (remote_trace_init): Add 'self' argument.
9259
fab5aa7c
TT
92602014-02-19 Tom Tromey <tromey@redhat.com>
9261
9262 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9263 * target.c (target_fileio_readlink): Add argument.
9264 * remote.c (remote_hostio_readlink): Add 'self' argument.
9265 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9266
dbbca37d
TT
92672014-02-19 Tom Tromey <tromey@redhat.com>
9268
9269 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9270 * target.c (target_fileio_unlink): Add argument.
9271 * remote.c (remote_hostio_unlink): Add 'self' argument.
9272 (remote_file_delete): Update.
9273 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9274
df39ea25
TT
92752014-02-19 Tom Tromey <tromey@redhat.com>
9276
9277 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9278 * target.c (target_fileio_close): Add argument.
9279 * remote.c (remote_hostio_close): Add 'self' argument.
9280 (remote_hostio_close_cleanup): Update.
9281 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9282 Update.
9283 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9284
a3be983c
TT
92852014-02-19 Tom Tromey <tromey@redhat.com>
9286
9287 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9288 * target.c (target_fileio_pread): Add argument.
9289 * remote.c (remote_hostio_pread): Add 'self' argument.
9290 (remote_bfd_iovec_pread, remote_file_get): Update.
9291 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9292
0d866f62
TT
92932014-02-19 Tom Tromey <tromey@redhat.com>
9294
9295 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9296 * target.c (target_fileio_pwrite): Add argument.
9297 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9298 (remote_file_put): Update.
9299 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9300
cd897586
TT
93012014-02-19 Tom Tromey <tromey@redhat.com>
9302
9303 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9304 * target.c (target_fileio_open): Add argument.
9305 * remote.c (remote_hostio_open): Add 'self' argument.
9306 (remote_bfd_iovec_open): Add 'self' argument.
9307 (remote_file_put): Add 'self' argument.
9308 (remote_file_get): Add 'self' argument.
9309 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9310
78eff0ec
TT
93112014-02-19 Tom Tromey <tromey@redhat.com>
9312
9313 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9314 Add argument.
9315 (target_can_run_breakpoint_commands): Add argument.
9316 * target.c (update_current_target): Update.
9317 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9318 argument.
9319 (remote_insert_breakpoint): Add 'self' argument.
9320 (remote_insert_hw_breakpoint): Add 'self' argument.
9321 (remote_can_run_breakpoint_commands): Add 'self' argument.
9322
efcc2da7
TT
93232014-02-19 Tom Tromey <tromey@redhat.com>
9324
9325 * target.h (struct target_ops)
9326 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9327 (target_supports_evaluation_of_breakpoint_conditions): Add
9328 argument.
9329 * target.c (update_current_target): Update.
9330 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9331 argument.
9332 (remote_insert_breakpoint): Add 'self' argument.
9333 (remote_insert_hw_breakpoint): Add 'self' argument.
9334 (remote_supports_cond_breakpoints): Add 'self' argument.
9335
6de37a3a
TT
93362014-02-19 Tom Tromey <tromey@redhat.com>
9337
9338 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9339 argument.
9340 (target_supports_string_tracing): Add argument.
9341 * target.c (update_current_target): Update.
9342 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9343
2bfc0540
TT
93442014-02-19 Tom Tromey <tromey@redhat.com>
9345
9346 * target.h (struct target_ops)
9347 <to_supports_disable_randomization>: Add argument.
9348 * target.c (find_default_supports_disable_randomization): Add
9349 argument.
9350 (target_supports_disable_randomization): Add argument.
9351 (find_default_supports_disable_randomization): Add 'self'
9352 argument.
9353 * remote.c (extended_remote_supports_disable_randomization): Add
9354 'self' argument.
9355 (remote_supports_disable_randomization): Add 'self' argument.
9356 (extended_remote_create_inferior): Update.
9357 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9358 'self' argument.
9359
7d178d6a
TT
93602014-02-19 Tom Tromey <tromey@redhat.com>
9361
9362 * target.h (struct target_ops)
9363 <to_supports_enable_disable_tracepoint>: Add argument.
9364 (target_supports_enable_disable_tracepoint): Add argument.
9365 * target.c (update_current_target): Update.
9366 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9367 argument.
9368
86ce2668
TT
93692014-02-19 Tom Tromey <tromey@redhat.com>
9370
9371 * target.h (struct target_ops) <to_supports_multi_process>: Add
9372 argument.
9373 (target_supports_multi_process): Add argument.
9374 * target.c (update_current_target): Update.
9375 * remote.c (remote_supports_multi_process): Add 'self' argument.
9376 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9377 argument.
9378 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9379 argument.
9380
4c612759
TT
93812014-02-19 Tom Tromey <tromey@redhat.com>
9382
9383 * target.h (struct target_ops) <to_execution_direction>: Add
9384 argument.
9385 (target_execution_direction): Add argument.
9386 * target.c (default_execution_direction): Add 'self' argument.
9387 * record-full.c (record_full_execution_direction): Add 'self'
9388 argument.
9389
19db3e69
TT
93902014-02-19 Tom Tromey <tromey@redhat.com>
9391
9392 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9393 argument.
9394 (target_can_execute_reverse): Add argument.
9395 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9396 * record-full.c (record_full_can_execute_reverse): Add 'self'
9397 argument.
9398 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9399 argument.
9400
1e6b91a4
TT
94012014-02-19 Tom Tromey <tromey@redhat.com>
9402
9403 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9404 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9405 argument.
9406 (target_get_ada_task_ptid): Add argument.
9407 * target.c (update_current_target): Update.
9408 (default_get_ada_task_ptid): Add 'self' argument.
9409 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9410 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9411 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9412 argument.
9413 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9414 argument.
9415 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9416 argument.
9417 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9418 argument.
9419 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9420 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9421 argument.
9422
3c80fb48
TT
94232014-02-19 Tom Tromey <tromey@redhat.com>
9424
9425 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9426 (target_goto_bookmark): Add argument.
9427 * target.c (dummy_goto_bookmark): Add 'self' argument.
9428 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9429
dd0e2830
TT
94302014-02-19 Tom Tromey <tromey@redhat.com>
9431
9432 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9433 (target_get_bookmark): Add argument.
9434 * target.c (dummy_get_bookmark): Add 'self' argument.
9435 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9436
fc6691b2
TT
94372014-02-19 Tom Tromey <tromey@redhat.com>
9438
9439 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9440 argument.
9441 (target_make_corefile_notes): Add argument.
9442 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9443 * procfs.c (procfs_make_note_section): Add 'self' argument.
9444 (procfs_make_note_section): Add 'self' argument.
9445 (procfs_make_note_section): Add 'self' argument.
9446 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9447 argument.
9448 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9449 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9450 * exec.c (exec_make_note_section): Add 'self' argument.
9451 (exec_make_note_section): Add 'self' argument.
9452
2e73927c
TT
94532014-02-19 Tom Tromey <tromey@redhat.com>
9454
9455 * target.h (struct target_ops) <to_find_memory_regions>: Add
9456 argument.
9457 (target_find_memory_regions): Add argument.
9458 * target.c (dummy_find_memory_regions): Add 'self' argument.
9459 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9460 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9461 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9462 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9463 * exec. (exec_do_find_memory_regions): New global.
9464 (exec_set_find_memory_regions): Rewrite.
9465 (exec_find_memory_regions): New function.
9466 (init_exec_ops): Use exec_find_memory_regions.
9467
2a9a2795
TT
94682014-02-19 Tom Tromey <tromey@redhat.com>
9469
9470 * target.h (struct target_ops) <to_supports_non_stop>: Add
9471 argument.
9472 * target.c (find_default_supports_non_stop): Add argument.
9473 (target_supports_non_stop): Add argument.
9474 (find_default_supports_non_stop): Add 'self' argument.
9475 * remote.c (remote_supports_non_stop): Add 'self' argument.
9476 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9477
4ab76ea3
TT
94782014-02-19 Tom Tromey <tromey@redhat.com>
9479
9480 * target.h (struct target_ops) <to_log_command>: Add argument.
9481 (target_log_command): Add argument.
9482 * serial.h (serial_log_command): Add 'self' argument.
9483 * serial.c (serial_log_command): Add 'self' argument.
9484
8dd27370
TT
94852014-02-19 Tom Tromey <tromey@redhat.com>
9486
9487 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9488 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9489 argument.
9490 (target_pid_to_exec_file): Add argument.
9491 * target.c (debug_to_pid_to_exec_file): Add argument.
9492 (update_current_target): Update.
9493 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9494 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9495 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9496 (linux_handle_extended_wait): Update.
9497 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9498 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9499 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9500 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9501
1aac633b
TT
95022014-02-19 Tom Tromey <tromey@redhat.com>
9503
9504 * target.h (struct target_ops) <to_rcmd>: Add argument.
9505 (target_rcmd): Add argument.
9506 * target.c (debug_to_rcmd): Add argument.
9507 (update_current_target, do_monitor_command): Update.
9508 * remote.c (remote_rcmd): Add 'self' argument.
9509 * monitor.c (monitor_rcmd): Add 'self' argument.
9510
1eab8a48
TT
95112014-02-19 Tom Tromey <tromey@redhat.com>
9512
9513 * windows-nat.c (windows_stop): Add 'self' argument.
9514 * target.h (struct target_ops) <to_stop>: Add argument.
9515 * target.c (target_stop): Add argument.
9516 (debug_to_stop): Add argument.
9517 (update_current_target): Update.
9518 * remote.c (remote_stop): Add 'self' argument.
9519 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9520 (gdbsim_cntrl_c): Update.
9521 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9522 * procfs.c (procfs_stop): Add 'self' argument.
9523 * nto-procfs.c (procfs_stop): Add 'self' argument.
9524 * monitor.c (monitor_stop): Add 'self' argument.
9525 (monitor_open): Update.
9526 * linux-nat.c (linux_nat_stop): Add argument.
9527 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9528 * gnu-nat.c (gnu_stop): Add 'self' argument.
9529 * darwin-nat.c (darwin_stop): Add 'self' argument.
9530
503a628d
TT
95312014-02-19 Tom Tromey <tromey@redhat.com>
9532
9533 * target.h (struct target_ops) <to_thread_name>: Add argument.
9534 * target.c (target_thread_name): Add argument.
9535 (update_current_target): Update.
9536 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9537
c15906d8
TT
95382014-02-19 Tom Tromey <tromey@redhat.com>
9539
9540 * target.h (struct target_ops) <to_extra_thread_info>: Add
9541 argument.
9542 (target_extra_thread_info): Add argument.
9543 * target.c (update_current_target): Update.
9544 * remote.c (remote_threads_extra_info): Add 'self' argument.
9545 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9546 argument.
9547 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9548 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9549 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9550 argument.
9551 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9552 argument.
9553 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9554 argument.
9555 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9556 argument.
9557
daf5e9b6
TT
95582014-02-19 Tom Tromey <tromey@redhat.com>
9559
9560 * target.h (struct target_ops) <to_program_signals>: Add argument.
9561 * target.c (target_program_signals): Add argument.
9562 * remote.c (remote_program_signals): Add 'self' argument.
9563
94bedb42
TT
95642014-02-19 Tom Tromey <tromey@redhat.com>
9565
9566 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9567 * target.c (target_pass_signals): Add argument.
9568 * remote.c (remote_pass_signals): Add 'self' argument.
9569 (remote_start_remote): Update.
9570 * procfs.c (procfs_pass_signals): Add 'self' argument.
9571 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9572 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9573 (linux_nat_create_inferior, linux_nat_attach): Update.
9574
da82bd6b
TT
95752014-02-19 Tom Tromey <tromey@redhat.com>
9576
9577 * windows-nat.c (windows_can_run): Add 'self' argument.
9578 * target.h (struct target_ops) <to_can_run>: Add argument.
9579 (target_can_run): Add argument.
9580 * target.c (debug_to_can_run): Add argument.
9581 (update_current_target): Update.
9582 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9583 * inf-child.c (inf_child_can_run): Add 'self' argument.
9584 * go32-nat.c (go32_can_run): Add 'self' argument.
9585
d796e1d6
TT
95862014-02-19 Tom Tromey <tromey@redhat.com>
9587
9588 * target.h (struct target_ops) <to_has_exited>: Add argument.
9589 (target_has_exited): Add argument.
9590 * target.c (debug_to_has_exited): Add argument.
9591 (update_current_target): Update.
9592
ff214e67
TT
95932014-02-19 Tom Tromey <tromey@redhat.com>
9594
9595 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9596 argument.
9597 (target_set_syscall_catchpoint): Add argument.
9598 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9599 argument.
9600 * target.c (update_current_target): Update.
9601
758e29d2
TT
96022014-02-19 Tom Tromey <tromey@redhat.com>
9603
9604 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9605 argument.
9606 (target_remove_exec_catchpoint): Add argument.
9607 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9608 (update_current_target): Update.
9609 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9610 argument.
9611
ba025e51
TT
96122014-02-19 Tom Tromey <tromey@redhat.com>
9613
9614 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9615 argument.
9616 (target_insert_exec_catchpoint): Add argument.
9617 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9618 (update_current_target): Update.
9619 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9620 argument.
9621
e98cf0cd
TT
96222014-02-19 Tom Tromey <tromey@redhat.com>
9623
9624 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9625 argument.
9626 (target_remove_vfork_catchpoint): Add argument.
9627 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9628 (update_current_target): Update.
9629 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9630 argument.
9631
3ecc7da0
TT
96322014-02-19 Tom Tromey <tromey@redhat.com>
9633
9634 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9635 argument.
9636 (target_insert_vfork_catchpoint): Add argument.
9637 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9638 (update_current_target): Update.
9639 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9640 argument.
9641
973fc227
TT
96422014-02-19 Tom Tromey <tromey@redhat.com>
9643
9644 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9645 argument.
9646 (target_remove_fork_catchpoint): Add argument.
9647 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9648 (update_current_target): Update.
9649 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9650 argument.
9651
a863b201
TT
96522014-02-19 Tom Tromey <tromey@redhat.com>
9653
9654 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9655 argument.
9656 (target_insert_fork_catchpoint): Add argument.
9657 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9658 (update_current_target): Update.
9659 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9660 argument.
9661
2e97a79e
TT
96622014-02-19 Tom Tromey <tromey@redhat.com>
9663
9664 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9665 argument.
9666 (target_post_startup_inferior): Add argument.
9667 * target.c (debug_to_post_startup_inferior): Add argument.
9668 (update_current_target): Update.
9669 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9670 argument.
9671 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9672 argument.
9673 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9674 argument.
9675 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9676 argument.
9677 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9678 'self' argument.
9679 (super_post_startup_inferior): Likewise.
9680 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9681 'self' argument.
9682 (super_post_startup_inferior): Likewise.
9683 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9684 Add 'self' argument.
9685 (super_post_startup_inferior): Likewise.
9686
71a9f134
TT
96872014-02-19 Tom Tromey <tromey@redhat.com>
9688
9689 * target.h (struct target_ops) <to_load>: Add argument.
9690 * target.c (target_load): Add argument.
9691 (debug_to_load): Add argument.
9692 (update_current_target): Update.
9693 * remote.c (remote_load): Add 'self' argument.
9694 * remote-sim.c (gdbsim_load): Add 'self' argument.
9695 * remote-mips.c (mips_load): Add 'self' argument.
9696 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9697 * monitor.c (monitor_load): Add 'self' argument.
9698 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9699
0a4f40a2
TT
97002014-02-19 Tom Tromey <tromey@redhat.com>
9701
9702 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9703 (target_terminal_info): Add argument.
9704 * target.c (debug_to_terminal_info): Add argument.
9705 (default_terminal_info): Likewise.
9706 * inflow.c (child_terminal_info): Add 'self' argument.
9707 * inferior.h (child_terminal_info): Add 'self' argument.
9708 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9709
ae3bd431
TT
97102014-02-19 Tom Tromey <tromey@redhat.com>
9711
9712 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9713 argument.
9714 (target_terminal_save_ours): Add argument.
9715 * target.c (debug_to_terminal_save_ours): Add argument.
9716 (update_current_target): Update.
9717 * inflow.c (terminal_save_ours): Add 'self' argument.
9718 * inferior.h (terminal_save_ours): Add 'self' argument.
9719
e3594fd1
TT
97202014-02-19 Tom Tromey <tromey@redhat.com>
9721
9722 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9723 (target_terminal_ours): Add argument.
9724 * target.c (debug_to_terminal_ours): Add argument.
9725 (update_current_target): Update.
9726 * remote.c (remote_terminal_ours): Add 'self' argument.
9727 (remote_close): Update.
9728 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9729 * inflow.c (terminal_ours): Add 'self' argument.
9730 * inferior.h (terminal_ours): Add 'self' argument.
9731 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9732
2e1e1a19
TT
97332014-02-19 Pedro Alves <palves@redhat.com>
9734 Tom Tromey <tromey@redhat.com>
9735
9736 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9737 argument.
9738 (target_terminal_ours_for_output): Add argument.
9739 * target.c (debug_to_terminal_ours_for_output): Add argument.
9740 (update_current_target): Update.
9741 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9742 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9743 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9744
d2f640d4
TT
97452014-02-19 Tom Tromey <tromey@redhat.com>
9746
9747 * target.h (struct target_ops) <to_terminal_inferior>: Add
9748 argument.
9749 * target.c (target_terminal_inferior): Add argument.
9750 (update_current_target): Update.
9751 * remote.c (remote_terminal_inferior): Add 'self' argument.
9752 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9753 * inflow.c (terminal_inferior): Add 'self' argument.
9754 * inferior.h (terminal_inferior): Add 'self' argument.
9755 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9756 (go32_terminal_inferior): Add 'self' argument.
9757
c42bf286
TT
97582014-02-19 Tom Tromey <tromey@redhat.com>
9759
9760 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9761 (target_terminal_init): Add argument.
9762 * target.c (debug_to_terminal_init): Add argument.
9763 (update_current_target): Update.
9764 * inflow.c (terminal_init_inferior): Add 'self' argument.
9765 * inferior.h (terminal_init_inferior): Add 'self' argument.
9766 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9767 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9768
c3a5ff89
TT
97692014-02-19 Tom Tromey <tromey@redhat.com>
9770
9771 * target.h (struct target_ops)
9772 <to_can_accel_watchpoint_condition>: Add argument.
9773 (target_can_accel_watchpoint_condition): Add argument.
9774 * target.c (debug_to_can_accel_watchpoint_condition): Add
9775 argument.
9776 (update_current_target): Update.
9777 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9778 'self' argument.
9779
31568a15
TT
97802014-02-19 Tom Tromey <tromey@redhat.com>
9781
9782 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9783 Add argument.
9784 (target_region_ok_for_hw_watchpoint): Add argument.
9785 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9786 (default_region_ok_for_hw_watchpoint): Add argument.
9787 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9788 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9789 argument.
9790 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9791 argument.
9792 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9793 argument.
9794 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9795 'self' argument.
9796 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9797 'self' argument.
9798 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9799 'self' argument.
9800 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9801 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9802 'self' argument.
9803 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9804 Add 'self' argument.
9805
7bb99c53
TT
98062014-02-19 Tom Tromey <tromey@redhat.com>
9807
9808 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9809 argument.
9810 (target_insert_watchpoint): Add argument.
9811 * target.c (debug_to_insert_watchpoint): Add argument.
9812 (update_current_target): Update.
9813 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9814 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9815 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9816 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9817 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9818 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9819 argument.
9820 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9821 (procfs_insert_hw_watchpoint): Add 'self' argument.
9822 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9823 argument.
9824 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9825 argument.
9826 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9827 argument.
9828 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9829 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9830 argument.
9831 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9832 'self' argument.
9833
11b5219a
TT
98342014-02-19 Tom Tromey <tromey@redhat.com>
9835
9836 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9837 argument.
9838 (target_remove_watchpoint): Add argument.
9839 * target.c (debug_to_remove_watchpoint): Add argument.
9840 (update_current_target): Update.
9841 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9842 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9843 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9844 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9845 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9846 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9847 argument.
9848 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9849 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9850 argument.
9851 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9852 argument.
9853 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9854 argument.
9855 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9856 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9857 argument.
9858 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9859 'self' argument.
9860
a64dc96c
TT
98612014-02-19 Tom Tromey <tromey@redhat.com>
9862
9863 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9864 argument.
9865 (target_remove_hw_breakpoint): Add argument.
9866 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9867 (update_current_target): Update.
9868 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9869 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9870 argument.
9871 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9872 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9873 argument.
9874 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9875 'self' argument.
9876
23a26771
TT
98772014-02-19 Tom Tromey <tromey@redhat.com>
9878
9879 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9880 argument.
9881 (target_insert_hw_breakpoint): Add argument.
9882 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9883 (update_current_target): Update.
9884 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9885 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9886 argument.
9887 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9888 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9889 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9890 argument.
9891 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9892 'self' argument.
9893
5461485a
TT
98942014-02-19 Tom Tromey <tromey@redhat.com>
9895
9896 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9897 argument.
9898 (target_can_use_hardware_watchpoint): Add argument.
9899 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9900 (update_current_target): Update.
9901 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9902 argument.
9903 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9904 argument.
9905 * remote.c (remote_check_watch_resources): Add 'self' argument.
9906 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9907 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9908 argument.
9909 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9910 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9911 argument.
9912 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9913 argument.
9914 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9915 argument.
9916 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9917 argument.
9918 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9919 argument.
9920 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9921 argument.
9922 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9923 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9924 argument.
9925 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9926 'self' argument.
9927
f045800c
TT
99282014-02-19 Tom Tromey <tromey@redhat.com>
9929
9930 * target.h (struct target_ops) <to_post_attach>: Add argument.
9931 (target_post_attach): Add argument.
9932 * target.c (debug_to_post_attach): Add argument.
9933 (update_current_target): Update.
9934 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9935 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9936 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9937 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9938 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9939
de90e03d
TT
99402014-02-19 Tom Tromey <tromey@redhat.com>
9941
9942 * windows-nat.c (windows_close): Add 'self' argument.
9943 * tracepoint.c (tfile_close): Add 'self' argument.
9944 * target.h (struct target_ops) <to_close>: Add argument.
9945 * target.c (target_close): Add argument.
9946 (update_current_target): Update.
9947 * remote.c (remote_close): Add 'self' argument.
9948 * remote-sim.c (gdbsim_close): Add 'self' argument.
9949 * remote-mips.c (mips_close): Add 'self' argument.
9950 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9951 * record-full.c (record_full_close): Add 'self' argument.
9952 * record-btrace.c (record_btrace_close): Add 'self' argument.
9953 * monitor.h (monitor_close): Add 'self' argument.
9954 * monitor.c (monitor_close): Add 'self' argument.
9955 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9956 * linux-nat.c (linux_nat_close): Add argument.
9957 * go32-nat.c (go32_close): Add 'self' argument.
9958 * exec.c (exec_close_1): Add 'self' argument.
9959 * ctf.c (ctf_close): Add 'self' argument.
9960 * corelow.c (core_close): Add 'self' argument.
9961 (core_close_cleanup): Update.
9962 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9963 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9964
9dd130a0
TT
99652014-02-19 Tom Tromey <tromey@redhat.com>
9966
9967 * remote.c (remote_load): New function.
9968 (init_remote_ops): Use it.
9969
46917d26
TT
99702014-02-19 Tom Tromey <tromey@redhat.com>
9971
9972 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9973 argument.
9974 * common/linux-btrace.h (linux_supports_btrace): Update.
9975 * remote.c (remote_supports_btrace): Add "self" argument.
9976 * target-delegates.c: Rebuild.
9977 * target.c (target_supports_btrace): Remove.
9978 * target.h (struct target_ops) <to_supports_btrace>: Add
9979 target_ops argument.
9980 (target_supports_btrace): New define.
9981
6b84065d
TT
99822014-02-19 Tom Tromey <tromey@redhat.com>
9983
9984 * record-full.c (record_full_beneath_to_resume_ops)
9985 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9986 (record_full_beneath_to_wait)
9987 (record_full_beneath_to_store_registers_ops)
9988 (record_full_beneath_to_store_registers)
9989 (record_full_beneath_to_xfer_partial_ops)
9990 (record_full_beneath_to_xfer_partial)
9991 (record_full_beneath_to_insert_breakpoint_ops)
9992 (record_full_beneath_to_insert_breakpoint)
9993 (record_full_beneath_to_remove_breakpoint_ops)
9994 (record_full_beneath_to_remove_breakpoint)
9995 (record_full_beneath_to_stopped_by_watchpoint)
9996 (record_full_beneath_to_stopped_data_address)
9997 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9998 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9999 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
10000 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
10001 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
10002 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
10003 (tmp_to_stopped_data_address, tmp_to_async): Remove.
10004 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
10005 (record_full_resume, record_full_wait_1)
10006 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
10007 (record_full_store_registers, record_full_xfer_partial)
10008 (record_full_insert_breakpoint, record_full_remove_breakpoint)
10009 (record_full_async, record_full_core_xfer_partial): Use target
10010 delegation.
10011 * target-delegates.c: Rebuild.
10012 * target.c (current_xfer_partial): Remove.
10013 (update_current_target): Do not INHERIT or de_fault
10014 to_insert_breakpoint, to_remove_breakpoint,
10015 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
10016 to_is_async_p, to_async. Do not set to_xfer_partial field.
10017 (default_xfer_partial): Simplify.
10018 (current_xfer_partial): Remove.
10019 (target_wait, target_resume): Simplify.
10020 (find_default_can_async_p, find_default_is_async_p): Update.
10021 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10022 to_xfer_partial, to_stopped_by_watchpoint,
10023 to_stopped_data_address.
10024 (target_store_registers): Simplify.
10025 (forward_target_remove_breakpoint)
10026 (forward_target_insert_breakpoint): Remove.
10027 (target_remove_breakpoint, target_insert_breakpoint)
10028 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10029 * target.h (struct target_ops) <to_resume, to_wait,
10030 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10031 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10032 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10033 markup.
10034 (forward_target_remove_breakpoint)
10035 (forward_target_insert_breakpoint): Remove.
10036 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10037 directly.
10038 (record_btrace_insert_breakpoint): Delegate directly.
10039
1101cb7b
TT
100402014-02-19 Tom Tromey <tromey@redhat.com>
10041
10042 PR build/7701:
10043 * target-delegates.c: New file.
10044 * target.c: Include target-delegates.c.
10045 (init_dummy_target): Call install_dummy_methods.
10046 (complete_target_initialization): Call install_delegators.
10047 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10048 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10049 * make-target-delegates: New file.
10050
8b06beed
TT
100512014-02-19 Tom Tromey <tromey@redhat.com>
10052
10053 * record.c (find_record_target): Use find_target_at.
10054 * target.c (find_target_at): New function.
10055 * target.h (find_target_at): Declare.
10056
6a109b6b
TT
100572014-02-19 Tom Tromey <tromey@redhat.com>
10058
10059 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10060 Add 'ops' argument.
10061 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10062 'ops' argument.
10063 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10064 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10065 'ops' argument.
10066 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10067 argument.
10068 * linux-nat.c (save_sigtrap): Update.
10069 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10070 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10071 (linux_nat_close): Update.
10072 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10073 argument.
10074 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10075 argument.
10076 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10077 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10078 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10079 (tmp_to_async): Add 'ops' argument.
10080 (record_full_stopped_by_watchpoint, record_full_async)
10081 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10082 argument.
10083 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10084 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10085 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10086 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10087 (remote_is_async_p, remote_async): Add 'ops' argument.
10088 (remote_stopped_data_address): Update.
10089 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10090 * target.c (update_current_target)
10091 (find_default_can_async_p, find_default_is_async_p): Update.
10092 (init_dummy_target): Update.
10093 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10094 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10095 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10096 (target_can_async_p, target_is_async_p, target_async)
10097 (target_stopped_by_watchpoint): Update.
10098
e095146b
YQ
100992014-02-19 Yao Qi <yao@codesourcery.com>
10100
10101 PR gdb/16220
10102 * gdbarch.sh: Remove startup_gdbarch.
10103 * gdbarch.c: Regenerated.
10104 * gdbarch.h: Likewise.
10105
bc3c6b36
KB
101062014-02-17 Kevin Buettner <kevinb@redhat.com>
10107
10108 * rl78-tdep.c (rl78_g10_register_name): New function.
10109 (rl78_return_value): Add g10 support.
10110 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10111 g10.
10112
98dc0167 101132014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10114
10115 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10116 (SUBDIR_GUILE_SRCS): Ditto.
10117 (scm-gsmob.o): Ditto.
10118
842c05cd
YQ
101192014-02-17 Yao Qi <yao@codesourcery.com>
10120
10121 * gnu-nat.c (ILL_RPC): Declare defined function.
10122
25c0bd04
YQ
101232014-02-17 Yao Qi <yao@codesourcery.com>
10124
10125 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10126 mach_msg_type_number_t.
10127 (gnu_write_inferior): Likewise.
10128
a9a758e3
YQ
101292014-02-17 Yao Qi <yao@codesourcery.com>
10130
10131 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10132 in format string.
10133 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10134 (inf_validate_procs, inf_signal): Likewise.
10135 (S_exception_raise_request): Likewise.
10136 (do_mach_notify_dead_name): Likewise.
10137 (steal_exc_port): Likewise.
10138 (gnu_read_inferior): Change 'copy_count''s type to
10139 mach_msg_type_number_t.
10140 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10141 format string.
10142
bae8023e
TS
101432014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10144
c82f56d9
TS
10145 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10146 flag. Adjust all users; in particular...
10147 (gnu_wait): ..., don't decrement its value in here...
10148 (gnu_create_inferior): ..., and instead set the flag in here,
10149 around the startup_inferior call, and call that one with
10150 START_INFERIOR_TRAPS_EXPECTED.
10151
3398af6a
TS
10152 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10153 (ILL_RPC): ... new macro.
10154 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10155 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10156 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10157 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10158 functions with ILL_RPC macro.
10159 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10160 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10161 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10162 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10163 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10164 (S_proc_getlogin_reply, S_proc_getsid_reply)
10165 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10166 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10167 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10168 (S_proc_getnports_reply, S_proc_is_important_reply)
10169 (S_proc_get_code_reply): New stub functions, generated with
10170 ILL_RPC macro.
10171
d47642c9
TS
10172 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10173 collected the type check structures.
10174
bae8023e
TS
10175 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10176
8a55ffb0
DE
101772014-02-14 Doug Evans <dje@google.com>
10178
10179 * target.c (target_write_partial): Fix result type.
10180
c2853f3d
JM
101812014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10182
10183 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10184 the proper offsets to access fpregset_t.
10185
ac61d2db
SA
101862014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10187
10188 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10189 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10190 * h8300-tdep.c (setmachinelist): Remove global.
10191 * hppa-tdep.c (hppa_sigtramp): Remove global.
10192 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10193 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10194 * ravenscar-thread.c (update_target_observer): Remove global.
10195 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10196
9d2d0b8b
TT
101972014-02-12 Tom Tromey <tromey@redhat.com>
10198
10199 * common/rsp-low.c: Update comments.
10200 * common/rsp-low.h: Update comments.
10201
a7191e8b
TT
102022014-02-12 Tom Tromey <tromey@redhat.com>
10203
10204 * common/rsp-low.c (convert_ascii_to_int): Remove.
10205 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10206
ff0e980e
TT
102072014-02-12 Tom Tromey <tromey@redhat.com>
10208
10209 * common/rsp-low.h (unhexify): Don't declare.
10210 * common/rsp-low.c (unhexify): Remove.
10211
e9371aff
TT
102122014-02-12 Tom Tromey <tromey@redhat.com>
10213
10214 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10215 * common/rsp-low.c (convert_int_to_ascii): Remove.
10216
971dc0b8
TT
102172014-02-12 Tom Tromey <tromey@redhat.com>
10218
10219 * common/rsp-low.h (hexify): Don't declare.
10220 * common/rsp-low.c (hexify): Remove.
10221
0a822afb
TT
102222014-02-12 Tom Tromey <tromey@redhat.com>
10223
10224 * common/rsp-low.c (hexify): Never take strlen of argument.
10225
9f1b45b0
TT
102262014-02-12 Tom Tromey <tromey@redhat.com>
10227
10228 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10229 * remote.c (extended_remote_run, remote_rcmd)
10230 (remote_download_trace_state_variable, remote_save_trace_data)
10231 (remote_set_trace_notes): Update.
10232 * tracepoint.c (encode_source_string, tfile_write_status)
10233 (tfile_write_uploaded_tsv): Update.
10234
9c3d6531
TT
102352014-02-12 Tom Tromey <tromey@redhat.com>
10236
10237 * tracepoint.c: Include rsp-low.h.
10238 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10239 * remote.c: Include rsp-low.h.
10240 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10241 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10242 (remote_unescape_input): Move to common/rsp-low.c.
10243 * common/rsp-low.h: New file.
10244 * common/rsp-low.c: New file.
10245 * Makefile.in (SFILES): Add common/rsp-low.c.
10246 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10247 (COMMON_OBS): Add rsp-low.o.
10248 (rsp-low.o): New target.
10249
01fd3ea5
TT
102502014-02-12 Tom Tromey <tromey@redhat.com>
10251
10252 * utils.h: Include print-utils.h.
10253 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10254 (int_string, core_addr_to_string, core_addr_to_string_nz)
10255 (hex_string, hex_string_custom): Don't declare.
10256 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10257 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10258 (hex_string_custom, int_string, core_addr_to_string)
10259 (core_addr_to_string_nz, host_address_to_string): Move to
10260 common/print-utils.c.
10261 * common/print-utils.h: New file.
10262 * common/print-utils.c: New file
10263 * Makefile.in (SFILES): Add common/print-utils.c.
10264 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10265 (COMMON_OBS): Add print-utils.o.
10266 (print-utils.o): New target.
10267
9fb50108
TT
102682014-02-12 Tom Tromey <tromey@redhat.com>
10269
10270 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10271
0548b5db
MK
102722014-02-12 Mark Kettenis <kettenis@gnu.org>
10273
10274 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10275
493443a4
MK
102762014-02-12 Mark Kettenis <kettenis@gnu.org>
10277
10278 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10279 if a PT_IO ptrace request returns sucessfully but indicates that 0
10280 bytes were transferred.
10281
706d0883
PA
102822014-02-12 Pedro Alves <palves@redhat.com>
10283 Kevin Buettner <kevinb@redhat.com>
10284
10285 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10286 TYPE_INSTANCE_FLAG_CODE_SPACE.
10287
5caa2f0b
PA
102882014-02-12 Pedro Alves <palves@redhat.com>
10289
10290 * h8300-tdep.c (pseudo_from_raw_register)
10291 (raw_from_pseudo_register): New functions.
10292 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10293 them.
10294
76fd5f74
PA
102952014-02-12 Pedro Alves <palves@redhat.com>
10296
10297 * h8300-tdep.c (h8300_register_sim_regno): New function.
10298 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10299 gdbarch_register_sim_regno hook.
10300
8f008406
SA
103012014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10302
10303 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10304
195abc10
SA
103052014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10306
10307 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10308
93ffa5b9
MK
103092014-02-12 Mark Kettenis <kettenis@gnu.org>
10310
10311 * obsd-tdep.h (obsd_init_abi): New prototype.
10312 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10313 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10314 (obsd_init_abi): New functions.
10315 * i386obsd-tdep.c: Include "obsd-tdep.h".
10316 (i386obsd_init_abi): Call obsd_init_abi.
10317 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10318 (amd64obsd_init_abi): Call obsd_init_abi.
10319 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10320 obsd-tdep.c to gdb_target_obs.
10321
49caec94
JM
103222014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10323
10324 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10325 double float arguments to 16-byte in the argument slots.
10326
e1402065
DE
103272014-02-11 Doug Evans <xdje42@gmail.com>
10328
10329 * configure.ac: Don't crash if pkg-config is not found and guile
10330 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10331 in guile checks.
10332 * configure: Regenerate.
10333
edcc890f
YQ
103342014-02-11 Yao Qi <yao@codesourcery.com>
10335
10336 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10337 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10338 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10339 * gnu-nat.c (gnu_xfer_memory): Likewise.
10340 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10341 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10342 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10343 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10344
9b409511
YQ
103452014-02-11 Yao Qi <yao@codesourcery.com>
10346
10347 * target.h (enum target_xfer_error): Rename to ...
10348 (enum target_xfer_status): ... it. New. All users updated.
10349 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10350 New.
10351 (TARGET_XFER_STATUS_ERROR_P): New macro.
10352 (target_xfer_error_to_string): Remove declaration.
10353 (target_xfer_status_to_string): Declare.
10354 (target_xfer_partial_ftype): Adjust it.
10355 (struct target_ops) <to_xfer_partial>: Return
10356 target_xfer_status. Add argument xfered_len. Update
10357 comments.
10358 * target.c (target_xfer_error_to_string): Rename to ...
10359 (target_xfer_status_to_string): ... it. New. All callers
10360 updated.
10361 (target_read_live_memory): Likewise. Call target_xfer_partial
10362 instead of target_read.
10363 (memory_xfer_live_readonly_partial): Return
10364 target_xfer_status. Add argument xfered_len.
10365 (raw_memory_xfer_partial): Likewise.
10366 (memory_xfer_partial_1): Likewise.
10367 (memory_xfer_partial): Likewise.
10368 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10369 properly. Update debug message.
10370 (default_xfer_partial, current_xfer_partial): Likewise.
10371 (target_write_partial): Likewise.
10372 (target_read_partial): Likewise. All callers updated.
10373 (read_whatever_is_readable): Likewise.
10374 (target_write_with_progress): Likewise.
10375 (target_read_alloc_1): Likewise.
10376
10377 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10378 * auxv.c (procfs_xfer_auxv): Likewise.
10379 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10380 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10381 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10382 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10383 * corefile.c (read_memory): Adjust.
10384 * corelow.c (core_xfer_partial): Likewise.
10385 * ctf.c (ctf_xfer_partial): Likewise.
10386 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10387 updated.
10388 (darwin_xfer_partial): Likewise.
10389 * exec.c (section_table_xfer_memory_partial): Likewise. All
10390 callers updated.
10391 (exec_xfer_partial): Likewise.
10392 * exec.h (section_table_xfer_memory_partial): Update
10393 declaration.
10394 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10395 negative.
10396 (gnu_xfer_partial): Likewise.
10397 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10398 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10399 (ia64_hpux_xfer_solib_got): Likewise.
10400 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10401 type of 'partial_len' to ULONGEST.
10402 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10403 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10404 (linux_nat_xfer_partial): Likewise.
10405 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10406 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10407 * monitor.c (monitor_xfer_memory): Likewise.
10408 (monitor_xfer_partial): Likewise.
10409 * procfs.c (procfs_xfer_partial): Likewise.
10410 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10411 * record-full.c (record_full_xfer_partial): Likewise.
10412 (record_full_core_xfer_partial): Likewise.
10413 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10414 (gdbsim_xfer_partial): Likewise.
10415 * remote.c (remote_write_bytes_aux): Likewise. All callers
10416 updated.
10417 (remote_write_bytes, remote_read_bytes): Likewise. All
10418 callers updated.
10419 (remote_flash_erase): Likewise. All callers updated.
10420 (remote_write_qxfer): Likewise. All callers updated.
10421 (remote_read_qxfer): Likewise. All callers updated.
10422 (remote_xfer_partial): Likewise.
10423 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10424 (rs6000_xfer_shared_libraries): Likewise.
10425 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10426 (sol_thread_xfer_partial): Likewise.
10427 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10428 (sparc_xfer_partial): Likewise.
10429 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10430 updated.
10431 (spu_xfer_partial): Likewise.
10432 * spu-multiarch.c (spu_xfer_partial): Likewise.
10433 * tracepoint.c (tfile_xfer_partial): Likewise.
10434 * windows-nat.c (windows_xfer_memory): Likewise.
10435 (windows_xfer_shared_libraries): Likewise.
10436 (windows_xfer_partial): Likewise.
10437 * valprint.c: Replace 'target_xfer_error' with
10438 'target_xfer_status' in comments.
10439
a8e63083
JB
104402014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10441
10442 Checked in by Joel Brobecker <brobecker@adacore.com>.
10443 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10444
e86b67d3
JB
104452014-02-11 Joel Brobecker <brobecker@adacore.com>
10446
10447 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10448 function parameters.
10449
4b7d1f7f
WN
104502014-02-10 Will Newton <will.newton@linaro.org>
10451
10452 * elfread.c (elf_rel_plt_read): Look for a .got section if
10453 looking up .got.plt fails.
10454 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10455 on address passed to elf_gnu_ifunc_record_cache.
10456 (elf_gnu_ifunc_resolve_addr): Likewise.
10457 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10458
961842b2
JM
104592014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10460
10461 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10462 (X_RETTURN): New macro.
10463 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10464
10465 * sparc64-tdep.c (sparc64_init_abi): Hook
10466 sparc_in_function_epilogue_p.
10467
3f03e7b1
GB
104682014-02-10 Gary Benson <gbenson@redhat.com>
10469
10470 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10471 Rename name_matcher to symbol_matcher.
10472
96f861ef
GB
104732014-02-10 Gary Benson <gbenson@redhat.com>
10474
10475 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10476 Use expand_symtabs_file_matcher_ftype and
10477 expand_symtabs_symbol_matcher_ftype.
10478
ee01b665
JB
104792014-02-10 Joel Brobecker <brobecker@adacore.com>
10480
10481 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10482 (struct ada_symbol_cache): New.
10483 (ada_free_symbol_cache): Forward declare.
10484 (struct ada_pspace_data): New.
10485 (ada_pspace_data_handle): New static global.
10486 (get_ada_pspace_data, ada_pspace_data_cleanup)
10487 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10488 (cache_space, cache): Delete, now folded inside struct
10489 ada_pspace_data.
10490 (ada_get_symbol_cache): New function.
10491 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10492 implementation.
10493 (_initialize_ada_language): Remove initialization of cache_space.
10494 Move call to observer_attach_inferior_exit up, grouping it
10495 with the other observer registrations inside this function.
10496 Rename command to be more general. Add call to
10497 register_program_space_data_with_cleanup.
10498
143adbbf
JB
104992014-02-10 Joel Brobecker <brobecker@adacore.com>
10500
10501 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10502 ada_new_objfile_observer.
10503 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10504 (_initialize_tasks): Update uses of ada_new_objfile_observer
10505 and ada_tasks_normal_stop_observer.
10506
aa4fb036
JB
105072014-02-10 Joel Brobecker <brobecker@adacore.com>
10508
10509 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10510 returned by the 'Length attribute to integer.
10511
9dee8cc6
JB
105122014-02-10 Joel Brobecker <brobecker@adacore.com>
10513
10514 * ada-lang.c (_initialize_ada_language): Initialize
10515 cache_space obstack.
10516
3d9434b5
JB
105172014-02-10 Joel Brobecker <brobecker@adacore.com>
10518
10519 * ada-lang.c (HASH_SIZE): New macro.
10520 (struct cache_entry): New type.
10521 (cache_space, cache): New static globals.
10522 (ada_clear_symbol_cache, find_entry): New functions.
10523 (lookup_cached_symbol, cache_symbol): Implement.
10524 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10525 (_initialize_ada_language): Attach ada_new_objfile_observer
10526 and ada_free_objfile_observer.
10527
f0c5f9b2
JB
105282014-02-10 Joel Brobecker <brobecker@adacore.com>
10529
10530 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10531 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10532 struct block * parameter.
10533 (ada_lookup_symbol_list_worker): Constify local variable "block".
10534 Remove cast which is no longer necessary.
10535
ed3ef339
DE
105362014-02-10 Doug Evans <xdje42@gmail.com>
10537
10538 Add Guile as an extension language.
10539 * NEWS: Mention Guile scripting.
10540 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10541 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10542 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10543 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10544 (CLIBS): Add GUILE_LIBS.
10545 (install-guile): New rule.
10546 (guile.o): New rule.
10547 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10548 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10549 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10550 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10551 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10552 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10553 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10554 * configure.ac: New option --with-guile.
10555 * configure: Regenerate.
10556 * config.in: Regenerate.
10557 * auto-load.c: Remove #include "python/python.h". Add #include
10558 "gdb/section-scripts.h".
10559 (source_section_scripts): Handle Guile scripts.
10560 (_initialize_auto_load): Add name of Guile objfile script to
10561 scripts-directory help text.
10562 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10563 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10564 (struct breakpoint): New member scm_bp_object.
10565 * defs.h (enum command_control_type): New value guile_control.
10566 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10567 "extension.h".
10568 (show_user): Update comment.
10569 (_initialize_cli_cmds): Update help text for "show user". Update help
10570 text for max-user-call-depth.
10571 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10572 "extension.h".
10573 (multi_line_command_p): Add guile_control.
10574 (print_command_lines): Handle guile_control.
10575 (execute_control_command, recurse_read_control_structure): Ditto.
10576 (process_next_line): Recognize "guile" commands.
10577 * disasm.c (gdb_disassemble_info): Make non-static.
10578 * disasm.h: #include "dis-asm.h".
10579 (struct gdbarch): Add forward decl.
10580 (gdb_disassemble_info): Declare.
10581 * extension.c: #include "guile/guile.h".
10582 (extension_languages): Add guile.
10583 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10584 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10585 * gdbtypes.c (get_unsigned_type_max): New function.
10586 (get_signed_type_minmax): New function.
10587 * gdbtypes.h (get_unsigned_type_max): Declare.
10588 (get_signed_type_minmax): Declare.
10589 * guile/README: New file.
10590 * guile/guile-internal.h: New file.
10591 * guile/guile.c: New file.
10592 * guile/guile.h: New file.
10593 * guile/scm-arch.c: New file.
10594 * guile/scm-auto-load.c: New file.
10595 * guile/scm-block.c: New file.
10596 * guile/scm-breakpoint.c: New file.
10597 * guile/scm-disasm.c: New file.
10598 * guile/scm-exception.c: New file.
10599 * guile/scm-frame.c: New file.
10600 * guile/scm-gsmob.c: New file.
10601 * guile/scm-iterator.c: New file.
10602 * guile/scm-lazy-string.c: New file.
10603 * guile/scm-math.c: New file.
10604 * guile/scm-objfile.c: New file.
10605 * guile/scm-ports.c: New file.
10606 * guile/scm-pretty-print.c: New file.
10607 * guile/scm-safe-call.c: New file.
10608 * guile/scm-string.c: New file.
10609 * guile/scm-symbol.c: New file.
10610 * guile/scm-symtab.c: New file.
10611 * guile/scm-type.c: New file.
10612 * guile/scm-utils.c: New file.
10613 * guile/scm-value.c: New file.
10614 * guile/lib/gdb.scm: New file.
10615 * guile/lib/gdb/boot.scm: New file.
10616 * guile/lib/gdb/experimental.scm: New file.
10617 * guile/lib/gdb/init.scm: New file.
10618 * guile/lib/gdb/iterator.scm: New file.
10619 * guile/lib/gdb/printing.scm: New file.
10620 * guile/lib/gdb/types.scm: New file.
10621 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10622 (VPATH): Add $(GUILE_SRCDIR).
10623 (GUILE_DIR): New variable.
10624 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10625 (all): Add stamp-guile dependency.
10626 (stamp-guile): New rule.
10627 (clean-guile, install-guile, uninstall-guile): New rules.
10628 (install-only): Add install-guile dependency.
10629 (uninstall): Add uninstall-guile dependency.
10630 (clean): Add clean-guile dependency.
10631
ac020ec5
DE
106322014-02-09 Doug Evans <xdje42@gmail.com>
10633
10634 Revert this patch (which I approved, mea culpa).
10635
10636 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10637
10638 * Makefile.in (all-lib): Remove.
10639 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10640
2a081c59
JK
106412014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10642
10643 Fix Python stack corruption.
10644 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10645 gdb_py_longest.
10646
0a6bd22d
MK
106472014-02-08 Mark Kettenis <kettenis@gnu.org>
10648
10649 * Makefile.in (all-lib): Remove.
10650 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10651
1a860409
DE
106522014-02-07 Doug Evans <dje@google.com>
10653
10654 * extension-priv.h (extension_language_script_ops): Add comment.
10655 (extension_language_ops): Add comment.
caf5a491 10656 (active_ext_lang_state): Fix typo in comment.
1a860409 10657
d137e6dc
PA
106582014-02-07 Pedro Alves <palves@redhat.com>
10659
0dcb32c3 10660 PR breakpoints/16292
d137e6dc
PA
10661 * infrun.c (handle_signal_stop) <signal arrives while stepping
10662 over a breakpoint>: Switch back to the stepping thread.
10663
ce6d0892
YQ
106642014-02-07 Yao Qi <yao@codesourcery.com>
10665
10666 * target.c (target_xfer_partial): Return zero if LEN is zero.
10667
2ed4b548
YQ
106682014-02-07 Yao Qi <yao@codesourcery.com>
10669
10670 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10671 (ld_so_xfer_auxv): Likewise.
10672 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10673 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10674 * corelow.c (core_xfer_partial): Likewise.
10675 * ctf.c (ctf_xfer_partial): Likewise.
10676 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10677 (darwin_xfer_partial): Likewise.
10678 * exec.c (exec_xfer_partial): Likewise.
10679 * gnu-nat.c (gnu_xfer_partial): Likewise.
10680 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10681 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10682 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10683 * linux-nat.c (linux_xfer_siginfo): Likewise.
10684 (linux_proc_xfer_spu): Likewise.
10685 * procfs.c (procfs_xfer_partial): Likewise.
10686 * record-full.c (record_full_xfer_partial): Likewise.
10687 (record_full_core_xfer_partial): Likewise.
10688 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10689 * remote.c (remote_write_qxfer): Likewise.
10690 (remote_write_qxfer, remote_read_qxfer): Likewise.
10691 (remote_xfer_partial): Likewise.
10692 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10693 (rs6000_xfer_shared_libraries): Likewise.
10694 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10695 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10696 (spu_xfer_partial): Likewise.
10697 * target.c (memory_xfer_partial_1): Likewise.
10698 * tracepoint.c (tfile_xfer_partial): Likewise.
10699 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10700 (windows_xfer_partial): Likewise.
10701
c09f20e4
YQ
107022014-02-07 Yao Qi <yao@codesourcery.com>
10703
10704 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10705 comments.
10706 (core_xfer_shared_libraries_aix): Likewise.
10707 * gdbarch.c, gdbarch.h: Regenerated.
10708 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10709 ULONGEST. Change 'len_avail' type to ULONGEST.
10710 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10711 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10712 declaration.
10713 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10714
8635b3bf
YQ
107152014-02-07 Yao Qi <yao@codesourcery.com>
10716
10717 * corefile.c (memory_error): Get 'exception' from ERR and pass
10718 'exception' to throw_error.
10719
6dddc817
DE
107202014-02-06 Doug Evans <xdje42@gmail.com>
10721
10722 * configure.ac (libpython checking): Remove all but python.o from
10723 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10724 * configure: Regenerate.
10725
10726 * Makefile.in (SFILES): Add extension.c.
10727 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10728 (COMMON_OBS): Add extension.o.
10729 * extension.h: New file.
10730 * extension-priv.h: New file.
10731 * extension.c: New file.
10732
10733 * python/python-internal.h: #include "extension.h".
10734 (gdbpy_auto_load_enabled): Declare.
10735 (gdbpy_apply_val_pretty_printer): Declare.
10736 (gdbpy_apply_frame_filter): Declare.
10737 (gdbpy_preserve_values): Declare.
10738 (gdbpy_breakpoint_cond_says_stop): Declare.
10739 (gdbpy_breakpoint_has_cond): Declare.
10740 (void source_python_script_for_objfile): Delete.
10741 * python/python.c: #include "extension-priv.h".
10742 Delete inclusion of "observer.h".
10743 (extension_language_python): Moved here and renamed from
10744 script_language_python in py-auto-load.c.
10745 Redefined to be of type extension_language_defn.
10746 (python_extension_script_ops): New global.
10747 (python_extension_ops): New global.
10748 (struct python_env): New member previous_active.
10749 (restore_python_env): Call restore_active_ext_lang.
10750 (ensure_python_env): Call set_active_ext_lang.
10751 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10752 New arg extlang.
10753 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10754 New arg extlang.
10755 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10756 New arg extlang.
10757 (gdbpy_eval_from_control_command): Renamed from
10758 eval_python_from_control_command, made static. New arg extlang.
10759 (gdbpy_source_script) Renamed from source_python_script, made static.
10760 New arg extlang.
10761 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10762 result to int. New arg extlang.
10763 (gdbpy_source_objfile_script): Renamed from
10764 source_python_script_for_objfile, made static. New arg extlang.
10765 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10766 static. New args extlang, extlang_printers. Change result type to
10767 "void".
10768 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10769 static. New arg extlang. Rename arg printers to extlang_printers
10770 and change type to ext_lang_type_printers *.
10771 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10772 static. Replace argument arg with extlang, extlang_printers.
10773 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10774 (!HAVE_PYTHON, source_python_script): Delete.
10775 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10776 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10777 (!HAVE_PYTHON, start_type_printers): Delete.
10778 (!HAVE_PYTHON, apply_type_printers): Delete.
10779 (!HAVE_PYTHON, free_type_printers): Delete.
10780 (_initialize_python): Delete call to observer_attach_before_prompt.
10781 (finalize_python): Set/restore active extension language.
10782 (gdbpy_finish_initialization) Renamed from
10783 finish_python_initialization, made static. New arg extlang.
10784 (gdbpy_initialized): New function.
10785 * python/python.h: #include "extension.h". Delete #include
10786 "value.h", "mi/mi-cmds.h".
10787 (extension_language_python): Declare.
10788 (GDBPY_AUTO_FILE_NAME): Delete.
10789 (enum py_bt_status): Moved to extension.h and renamed to
10790 ext_lang_bt_status.
10791 (enum frame_filter_flags): Moved to extension.h.
10792 (enum py_frame_args): Moved to extension.h and renamed to
10793 ext_lang_frame_args.
10794 (finish_python_initialization): Delete.
10795 (eval_python_from_control_command): Delete.
10796 (source_python_script): Delete.
10797 (apply_val_pretty_printer): Delete.
10798 (apply_frame_filter): Delete.
10799 (preserve_python_values): Delete.
10800 (gdbpy_script_language_defn): Delete.
10801 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10802 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10803
10804 * auto-load.c: #include "extension.h".
10805 (GDB_AUTO_FILE_NAME): Delete.
10806 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10807 (script_language_gdb): Delete, moved to extension.c and renamed to
10808 extension_language_gdb.
10809 (source_gdb_script_for_objfile): Delete.
10810 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10811 (loaded_script): Change type of language member to
10812 struct extension_language_defn *.
10813 (init_loaded_scripts_info): Initialize
10814 unsupported_script_warning_printed.
10815 (maybe_add_script): Make static. Change type of language arg to
10816 struct extension_language_defn *.
10817 (clear_section_scripts): Reset unsupported_script_warning_printed.
10818 (auto_load_objfile_script_1): Rewrite to use extension language API.
10819 (auto_load_objfile_script): Make public. Remove support-compiled-in
10820 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10821 (source_section_scripts): Rewrite to use extension language API.
10822 (load_auto_scripts_for_objfile): Rewrite to use
10823 auto_load_scripts_for_objfile.
10824 (collect_matching_scripts_data): Change type of language member to
10825 struct extension_language_defn *.
10826 (auto_load_info_scripts): Change type of language arg to
10827 struct extension_language_defn *.
10828 (unsupported_script_warning_print): New function.
10829 (script_not_found_warning_print): Make static.
10830 (_initialize_auto_load): Rewrite construction of scripts-directory
10831 help.
10832 * auto-load.h (struct objfile): Add forward decl.
10833 (struct script_language): Delete.
10834 (struct auto_load_pspace_info): Add forward decl.
10835 (struct extension_language_defn): Add forward decl.
10836 (maybe_add_script): Delete.
10837 (auto_load_objfile_script): Declare.
10838 (script_not_found_warning_print): Delete.
10839 (auto_load_info_scripts): Update prototype.
10840 (auto_load_gdb_scripts_enabled): Declare.
10841 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10842 auto_load_python_scripts_enabled and made public.
10843 (script_language_python): Delete, moved to python.c.
10844 (gdbpy_script_language_defn): Delete.
10845 (info_auto_load_python_scripts): Update to use
10846 extension_language_python.
10847
10848 * breakpoint.c (condition_command): Replace call to
10849 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10850 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10851 with call to breakpoint_ext_lang_cond_says_stop.
10852 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10853 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10854 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10855 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10856 New arg slang.
10857 (local_setattro): Print name of extension language with existing
10858 stop condition.
10859
10860 * valprint.c (val_print, value_print): Update to call
10861 apply_ext_lang_val_pretty_printer.
10862 * cp-valprint.c (cp_print_value): Update call to
10863 apply_ext_lang_val_pretty_printer.
10864 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10865 (gdbpy_apply_val_pretty_printer): Renamed from
10866 apply_val_pretty_printer. New arg extlang.
10867 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10868
10869 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10870 extension language API.
10871 * cli/cli-script.c (execute_control_command): Update to call
10872 eval_ext_lang_from_control_command.
10873
10874 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10875 enum ext_lang_bt_status values. Update call to
10876 apply_ext_lang_frame_filter.
10877 (mi_cmd_stack_list_locals): Ditto.
10878 (mi_cmd_stack_list_args): Ditto.
10879 (mi_cmd_stack_list_variables): Ditto.
10880 * mi/mi-main.c: Delete #include "python/python-internal.h".
10881 Add #include "extension.h".
10882 (mi_cmd_list_features): Replace reference to python internal variable
10883 gdb_python_initialized with call to ext_lang_initialized_p.
10884
10885 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10886 Update to use enum ext_lang_frame_args. Update to call
10887 apply_ext_lang_frame_filter.
10888 * python/py-framefilter.c (extract_sym): Update to use enum
10889 ext_lang_bt_status.
10890 (extract_value, py_print_type, py_print_value): Ditto.
10891 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10892 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10893 (py_print_frame): Ditto.
10894 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10895 New arg extlang. Update to use enum ext_lang_bt_status.
10896
10897 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10898 finish_python_initialization. Replace with call to
10899 finish_ext_lang_initialization.
10900
10901 * typeprint.c (do_free_global_table): Update to call
10902 free_ext_lang_type_printers.
10903 (create_global_typedef_table): Update to call
10904 start_ext_lang_type_printers.
10905 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10906 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10907 (type_print_options): Change type of global_printers from "void *"
10908 to "struct ext_lang_type_printers *".
10909
10910 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10911 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10912 (gdbpy_preserve_values): Renamed from preserve_python_values.
10913 New arg extlang.
10914 (!HAVE_PYTHON, preserve_python_values): Delete.
10915
10916 * utils.c (quit_flag): Delete, moved to extension.c.
10917 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10918 extension.c.
10919
10920 * eval.c: Delete #include "python/python.h".
10921 * main.c: Delete #include "python/python.h".
10922
10923 * defs.h: Update comment.
10924
6af79985
JB
109252014-02-06 Joel Brobecker <brobecker@adacore.com>
10926
10927 GDB 7.7 released.
10928
12c5175d
MK
109292014-02-05 Mark Kettenis <kettenis@gnu.org>
10930
10931 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10932 defined.
10933
8dc5b319
YQ
109342014-02-05 Yao Qi <yao@codesourcery.com>
10935
10936 * remote.c (remote_pass_signals): Remove local 'buf' and use
10937 rs->buf.
10938 (remote_program_signals): Likewise.
10939
de7b2893
YQ
109402014-02-05 Yao Qi <yao@codesourcery.com>
10941
10942 * ctf.c: Include "inferior.h" and "gdbthread.h".
10943 (CTF_PID): A new macro.
10944 (ctf_open): Call inferior_appeared and add_thread_silent.
10945 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10946 (ctf_thread_alive): New function.
10947 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10948
66d032ac
YQ
109492014-02-05 Yao Qi <yao@codesourcery.com>
10950
10951 Revert this patch:
10952
10953 2013-05-24 Yao Qi <yao@codesourcery.com>
10954
10955 * tracepoint.c (TFILE_PID): Remove.
10956 (tfile_open): Don't add thread and inferior.
10957 (tfile_close): Don't set 'inferior_ptid'. Don't call
10958 exit_inferior_silent.
10959 (tfile_thread_alive): Remove.
10960 (init_tfile_ops): Don't set field 'to_thread_alive' of
10961 tfile_ops.
10962
f4ccffad
CE
109632014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10964
10965 * remote.c (remote_start_remote): Call remote_check_symbols even
10966 if only symbol-file (not file) has been given.
10967
591a12a1
UW
109682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10969
10970 * gdbarch.sh (skip_entrypoint): New callback.
10971 * gdbarch.c, gdbarch.h: Regenerate.
10972 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10973 * infrun.c (fill_in_stop_func): Likewise.
10974 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10975 (ppc_elfv2_elf_make_msymbol_special): New function.
10976 (ppc_elfv2_skip_entrypoint): Likewise.
10977 (ppc_linux_init_abi): Install them for ELFv2.
10978
cc0e89c5
UW
109792014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10980
10981 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10982 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10983 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10984 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10985 structures returned in GPRs.
10986
52f548e4
UW
109872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10988
10989 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10990 offset to the stack parameter list for the ELFv2 ABI.
10991
d4094b6a
UW
109922014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10993
10994 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10995 set_gdbarch_convert_from_func_ptr_addr and
10996 set_gdbarch_elf_make_msymbol_special for ELFv1.
10997 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10998 function descriptors on ELFv1.
10999 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
11000 set up r12 at function entry.
11001
cd453cd0
UW
110022014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11003
11004 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
11005 (struct gdbarch_tdep): New member elf_abi.
11006
11007 * rs6000-tdep.c: Include "elf/ppc64.h".
11008 (rs6000_gdbarch_init): Detect ELF ABI version.
11009
0ff3e01f
UW
110102014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11011
11012 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
11013 within a register pair holding a DFP 128-bit value on little-endian.
11014 (ppc64_sysv_abi_return_value_base): Likewise.
11015 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
11016 (dfp_pseudo_register_write): Likewise.
11017
5b757e5d
UW
110182014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11019
11020 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11021 offset on little-endian when passing _Decimal32.
11022 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11023
084ee545
UW
110242014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11025
11026 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11027 of the overlapped FP register within the VSX register on little-
11028 endian platforms.
11029 (efpr_pseudo_register_write): Likewise.
11030
d63167af
UW
110312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11032
11033 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11034 offset on little-endian when passing small structures.
11035
e765b44c
UW
110362014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11037
11038 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11039 (struct ppc64_sysv_argpos): New data structure.
11040 (ppc64_sysv_abi_push_float): Remove.
11041 (ppc64_sysv_abi_push_val): New function.
11042 (ppc64_sysv_abi_push_integer): Likewise.
11043 (ppc64_sysv_abi_push_freg): Likewise.
11044 (ppc64_sysv_abi_push_vreg): Likewise.
11045 (ppc64_sysv_abi_push_param): Likewise.
11046 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11047 (ppc64_sysv_abi_return_value_base): New function.
11048 (ppc64_sysv_abi_return_value): Refactor to use it.
11049
36c24d95
UW
110502014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11051
11052 * NEWS: Document new target powerpc64le-*-linux*.
11053
26fd9228
MK
110542014-02-04 Mark Kettenis <kettenis@gnu.org>
11055
11056 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11057 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11058 core dumps.
11059 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11060 register set used in ELF core dumps. Add floating-point register set.
11061
c5bb7362
KB
110622014-02-03 Kevin Buettner <kevinb@redhat.com>
11063
74228e77 11064 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11065 dwarf2_to_gdb[] table using symbolic constants. Adjust
11066 penultimate entry from number representing the PC register
11067 to symbolic constant representing the MDR register. Add
11068 constant for the PC register to the end of the table.
11069
af09351e
MK
110702014-02-03 Mark Kettenis <kettenis@gnu.org>
11071
11072 * bsd-kvm.c: Include <sys/param.h>
11073
8507e05d
MK
110742014-02-03 Mark Kettenis <kettenis@gnu.org>
11075
11076 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11077
ae56bfb8
JB
110782014-01-31 Joel Brobecker <brobecker@adacore.com>
11079
11080 * ada-lang.h (clear_ada_sym_cache): Delete.
11081
718ee4dc
UW
110822014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11083
11084 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11085
401e27fd
JM
110862014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11087
11088 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11089 the sigreturn register save area only if the syscall is
11090 sigreturn.
11091
a7c88acd
JB
110922014-01-29 Joel Brobecker <brobecker@adacore.com>
11093
11094 * valops.c (value_slice): Minor reformatting.
11095
fa0079ea
UW
110962014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11097
11098 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11099
c6044dd1
JB
111002014-01-28 Joel Brobecker <brobecker@adacore.com>
11101
11102 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11103 New static globals.
11104 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11105 (ada_ignore_descriptive_types_p): New static global.
11106 (find_parallel_type_by_descriptive_type): Return immediately
11107 if ada_ignore_descriptive_types_p is set.
11108 (_initialize_ada_language): Register new commands "maintenance
11109 set ada", "maintenance show ada", "maintenance set ada
11110 ignore-descriptive-types" and "maintenance show ada
11111 ignore-descriptive-types".
11112 * NEWS: Add entry for new "maint ada set/show
11113 ignore-descriptive-types" commands.
11114
568e808b
MM
111152014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11116
11117 * record-btrace.c (record_btrace_close): Call btrace_teardown
11118 for all threads.
11119
467d141b
JB
111202014-01-27 Joel Brobecker <brobecker@adacore.com>
11121
11122 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11123 "ui-out.h".
11124
fb151210
JB
111252014-01-27 Joel Brobecker <brobecker@adacore.com>
11126
11127 * ada-typeprint (type_is_full_subrange_of_target_type):
11128 New function.
11129 (print_range): Add parameter bounds_prefered_p. If not set,
11130 try printing range types using the name of their base type.
11131 (print_range_type): Add parameter bounds_prefered_p.
11132 Use it in call to print_range.
11133 (print_array_type, ada_print_type): Update calls to print_range
11134 and print_range_type.
11135
aba02109
JB
111362014-01-27 Joel Brobecker <brobecker@adacore.com>
11137
11138 * ada-typeprint.c (print_array_type, print_choices, print_range)
11139 (print_range_bound, print_dynamic_range_bound, print_range_type):
11140 Remove declaration.
11141
e62e21fd
JB
111422014-01-27 Joel Brobecker <brobecker@adacore.com>
11143
11144 * ada-typeprint.c (print_range): Add missing empty line
11145 after local declaration.
11146
859cf5d1
JB
111472014-01-27 Joel Brobecker <brobecker@adacore.com>
11148
11149 * ada-valprint.c (print_optional_low_bound): Get index_type's
11150 target type for as long as it is a TYPE_CODE_RANGE.
11151
25790f6f
JB
111522014-01-27 Joel Brobecker <brobecker@adacore.com>
11153
11154 * procfs.c (procfs_make_note_section): Remove assertion and
11155 associated comment.
11156
6b6aa828
YQ
111572014-01-24 Yao Qi <yao@codesourcery.com>
11158
11159 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11160 * corelow.c (get_core_siginfo): Likewise.
11161
5d6df423
YQ
111622014-01-24 Yao Qi <yao@codesourcery.com>
11163
11164 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11165 ULONGEST. Don't check 'len' is negative.
11166 (remote_write_bytes): Change type of 'len' to ULONGEST.
11167
83b645b8
TT
111682014-01-23 Tom Tromey <tromey@redhat.com>
11169
11170 PR python/16485:
11171 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11172 Handle exception from frame.block.
11173 (FrameVars.fetch_frame_locals): Likewise.
11174
0740f8d8
TT
111752014-01-23 Tom Tromey <tromey@redhat.com>
11176
11177 PR python/16487:
11178 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11179 on a NULL pointer. Move "goto error" to correct place.
11180
21909fa1
TT
111812014-01-23 Tom Tromey <tromey@redhat.com>
11182
11183 PR python/16491:
11184 * python/py-framefilter.c (apply_frame_filter): Call
11185 ensure_python_env after computing gdbarch.
11186
17fde6d0
YQ
111872014-01-23 Yao Qi <yao@codesourcery.com>
11188
11189 * target.c (raw_memory_xfer_partial): Change argument type
11190 from void * to gdb_byte *.
11191 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11192
87ce2a04
DE
111932014-01-22 Doug Evans <dje@google.com>
11194
11195 New gdbserver option --debug-format=timestamp.
11196 * NEWS: Mention it.
11197
237b092b
AA
111982014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11199
11200 * syscalls/s390x-linux.xml: New file.
11201 * syscalls/s390-linux.xml: New file.
11202 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11203 (XML_SYSCALL_FILENAME_S390X): Likewise.
11204 (op_svc): New enum value for SVC opcode.
11205 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11206 (s390_linux_get_syscall_number): New function.
11207 (s390_gdbarch_init): Register '*get_syscall_number' and the
11208 syscall xml file name.
11209 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11210 "s390-linux.xml" and "s390x-linux.xml".
11211 * NEWS: Announce new feature.
11212
54bff650
BS
112132014-01-22 Baruch Siach <baruch@tkos.co.il>
11214
11215 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11216
14e361d7
PA
112172014-01-22 Pedro Alves <palves@redhat.com>
11218
11219 * xtensa-config.c: Include defs.h.
11220
46bbb3ed
JB
112212014-01-22 Joel Brobecker <brobecker@adacore.com>
11222
11223 * common/common-utils.h: Add "ARI:" comment beside __func__
11224 reference.
11225
3a80edfc
JB
112262014-01-22 Joel Brobecker <brobecker@adacore.com>
11227
11228 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11229 documentation a bit.
11230
4869db5e
RM
112312014-01-21 Roland McGrath <mcgrathr@google.com>
11232
11233 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11234 * configure: Regenerate.
11235 * aclocal.m4: Regenerate.
11236 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11237 New substituted variables.
11238 (install-strip): New target.
11239 (INSTALL_SCRIPT): New substituted variable.
11240 (FLAGS_TO_PASS): Add it.
11241 (install-only): Use $(INSTALL_SCRIPT) rather than
11242 $(INSTALL_PROGRAM) for gcore.
11243
9ea4267d
TT
112442014-01-20 Tom Tromey <tromey@redhat.com>
11245
11246 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11247 together.
11248
1f2bdf09
TT
112492014-01-20 Tom Tromey <tromey@redhat.com>
11250
11251 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11252 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11253 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11254 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11255 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11256 (struct cmd_list_element) <flags>: Remove.
11257 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11258 doc_allocated>: New fields.
11259 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11260 bitfields.
11261 * maint.c (maintenance_do_deprecate): Update.
11262 * top.c (execute_command): Update.
11263
e671835b
BS
112642014-01-20 Baruch Siach <baruch@tkos.co.il>
11265
11266 * xtensa-linux-nat.c: Include asm/ptrace.h.
11267
50367cd2
IB
112682014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11269
11270 * Makefile.in (SFILES): Add d-support.c.
11271 (COMMON_OBS): Add d-support.o.
11272 * d-lang.h (d_parse_symbol): Add comment, now defined in
11273 d-support.c.
11274 * d-lang.c (parse_call_convention)
11275 (parse_attributes, parse_function_types)
11276 (parse_function_args, parse_type, parse_identifier)
11277 (call_convention_p, d_parse_symbol): Move functions to ...
11278 * d-support.c: ... New file.
11279
ec9f644a
IB
112802014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11281
11282 * d-lang.h (d_parse_symbol): Add declaration.
11283 * d-lang.c (extract_identifiers)
11284 (extract_type_info): Remove functions.
11285 (parse_call_convention, parse_attributes)
11286 (parse_function_types, parse_function_args)
11287 (parse_type, parse_identifier, call_convention_p)
11288 (d_parse_symbol): New functions.
11289 (d_demangle): Use d_parse_symbol to demangle D symbols.
11290
94b1b47e
IB
112912014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11292
11293 * d-lang.h (struct builtin_d_type): New data type.
11294 (builtin_d_type): Add declaration.
11295 * d-lang.c (d_language_arch_info, build_d_types)
11296 (builtin_d_type): New functions.
11297 (enum d_primitive_types): New data type.
11298 (d_language_defn): Change c_language_arch_info to
11299 d_language_arch_info.
11300 (d_type_data): New static variable.
11301 (_initialize_d_language): Initialize d_type_data.
11302
63778547
IB
113032014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11304
11305 * d-lang.h (d_main_name): Add declaration.
11306 * d-lang.c (d_main_name): New function.
11307 * symtab.c (find_main_name): Add call to d_main_name.
11308
3271ba66
IB
113092014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11310
11311 * d-lang.c (d_language_defn): Change macro_expansion_c to
11312 macro_expansion_no.
11313
d36b3012
IB
113142014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11315
11316 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11317
c90a6fb7
SDJ
113182014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11319
11320 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11321 gdb_exception" declaration.
11322 * remote.c (getpkt_or_notif_sane): Likewise.
11323
749234e5
DE
113242014-01-17 Doug Evans <dje@google.com>
11325
11326 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11327 function, contents of dirnames_to_char_ptr_vec_append moved here.
11328 (delim_string_to_char_ptr_vec): New function.
11329 (dirnames_to_char_ptr_vec_append): Rewrite.
11330 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11331
df049a58
DE
113322014-01-17 Doug Evans <dje@google.com>
11333
11334 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11335 and moved here ...
11336 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11337 #include "common-utils.h".
11338 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11339 * common/vec.h (VEC_ASSERT_PASS): Update.
11340 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11341 (MACH_CHECK_ERROR): Update.
11342
69f97648
SM
113432014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11344
11345 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11346 comments.
11347 * gdbarch.h: Regenerate.
11348
98b1cfdc
TT
113492014-01-16 Tom Tromey <tromey@redhat.com>
11350
11351 * value.c (struct value) <regnum>: Move earlier.
11352
77a19445
TT
113532014-01-16 Tom Tromey <tromey@redhat.com>
11354
11355 * remote.c (extended_remote_create_inferior): Rename from
11356 extended_remote_create_inferior_1. Add "ops" argument. Remove
11357 old implementation.
11358
62261490
PA
113592014-01-16 Pedro Alves <palves@redhat.com>
11360
11361 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11362 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11363 the backchain.
11364
4d65956b
DE
113652014-01-16 Doug Evans <dje@google.com>
11366
11367 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11368
52834460
MM
113692014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11370
11371 * btrace.h (btrace_thread_flag): New.
11372 (struct btrace_thread_info) <flags>: New.
11373 * record-btrace.c (record_btrace_resume_thread)
11374 (record_btrace_find_thread_to_move, btrace_step_no_history)
11375 (btrace_step_stopped, record_btrace_start_replaying)
11376 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11377 (record_btrace_find_resume_thread): New.
11378 (record_btrace_resume, record_btrace_wait): Extend.
11379 (record_btrace_can_execute_reverse): New.
11380 (record_btrace_open): Fail in non-stop mode.
11381 (record_btrace_set_replay): Split into this, ...
11382 (record_btrace_stop_replaying): ... this, ...
11383 (record_btrace_clear_histories): ... and this.
11384 (init_record_btrace_ops): Init to_can_execute_reverse.
11385 * NEWS: Announce it.
11386
118e6252
MM
113872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11388
11389 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11390 (forward_target_decr_pc_after_break)
11391 (target_decr_pc_after_break): New.
11392 * target.c (forward_target_decr_pc_after_break)
11393 (target_decr_pc_after_break): New.
11394 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11395 instead of gdbarch_decr_pc_after_break.
11396 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11397 instead of gdbarch_decr_pc_after_break.
11398 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11399 instead of gdbarch_decr_pc_after_break.
11400 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11401 instead of gdbarch_decr_pc_after_break.
11402 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11403 instead of gdbarch_decr_pc_after_break.
11404 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11405 instead of gdbarch_decr_pc_after_break.
11406
6e07b1d2
MM
114072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11408
11409 * btrace.c: Include regcache.h.
11410 (btrace_add_pc): New.
11411 (btrace_enable): Call btrace_add_pc.
11412 (btrace_is_empty): New.
11413 * btrace.h (btrace_is_empty): New.
11414 * record-btrace.c (require_btrace, record_btrace_info): Call
11415 btrace_is_empty.
11416
969c39fb
MM
114172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11418
11419 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11420 Support delta reads.
11421 (linux_disable_btrace): Change return type.
11422 * common/linux-btrace.h (linux_read_btrace): Change parameters
11423 and return type to allow error reporting. Update users.
11424 (linux_disable_btrace): Change return type. Update users.
11425 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11426 New.
11427 (btrace_error): New.
11428 (btrace_block) <begin>: Comment on BEGIN == 0.
11429 * btrace.c (btrace_compute_ftrace): Start from the end of
11430 the current trace.
11431 (btrace_stitch_trace, btrace_clear_history): New.
11432 (btrace_fetch): Read delta trace, return if replaying.
11433 (btrace_clear): Move clear history code to btrace_clear_history.
11434 (parse_xml_btrace): Throw an error if parsing failed.
11435 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11436 and return type to allow error reporting.
11437 (target_read_btrace): Change parameters and return type to allow
11438 error reporting.
11439 * target.c (target_read_btrace): Update.
11440 * remote.c (remote_read_btrace): Support delta reads. Pass
11441 errors on.
11442 * NEWS: Announce it.
11443
0b722aec
MM
114442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11445
11446 * record.h (record_btrace_frame_unwind)
11447 (record_btrace_tailcall_frame_unwind): New declarations.
11448 * dwarf2-frame: Include record.h
11449 (dwarf2_frame_cfa): Throw an error for btrace frames.
11450 * record-btrace.c: Include hashtab.h.
11451 (btrace_get_bfun_name): New.
11452 (btrace_call_history): Call btrace_get_bfun_name.
11453 (struct btrace_frame_cache): New.
11454 (bfcache): New.
11455 (bfcache_hash, bfcache_eq, bfcache_new): New.
11456 (btrace_get_frame_function): New.
11457 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11458 (record_btrace_frame_this_id): Compute own id.
11459 (record_btrace_frame_prev_register): Provide PC, throw_error
11460 for all other registers.
11461 (record_btrace_frame_sniffer): Detect btrace frames.
11462 (record_btrace_tailcall_frame_sniffer): New.
11463 (record_btrace_frame_dealloc_cache): New.
11464 (record_btrace_frame_unwind): Add new functions.
11465 (record_btrace_tailcall_frame_unwind): New.
11466 (_initialize_record_btrace): Allocate cache.
11467 * btrace.c (btrace_clear): Call reinit_frame_cache.
11468 * NEWS: Announce it.
11469
066ce621
MM
114702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11471
11472 * record-btrace.c (record_btrace_set_replay)
11473 (record_btrace_goto_begin, record_btrace_goto_end)
11474 (record_btrace_goto): New.
11475 (init_record_btrace_ops): Initialize them.
11476 * NEWS: Announce it.
11477
e2887aa3
MM
114782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11479
11480 * record-btrace.c (record_btrace_find_new_threads)
11481 (record_btrace_thread_alive): New.
11482 (init_record_btrace_ops): Initialize to_find_new_threads and
11483 to_thread_alive.
11484
b2f4cfde
MM
114852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11486
11487 * record-btrace.c (record_btrace_resume): New.
11488 (record_btrace_wait): New.
11489 (init_record_btrace_ops): Initialize to_wait and to_resume.
11490
633785ff
MM
114912014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11492
11493 * record-btrace.c (record_btrace_xfer_partial)
11494 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11495 (record_btrace_allow_memory_access): New.
11496 (init_record_btrace_ops): Initialize new methods.
11497 * target.c (raw_memory_xfer_partial): Bail out if target reports
11498 that this memory is not available.
11499
3db08215
MM
115002014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11501
11502 * target.h (target_ops) <to_insert_breakpoint>
11503 <to_remove_breakpoint>: Add target_ops parameter.
11504 (forward_target_insert_breakpoint): New.
11505 (forward_target_remove_breakpoint): New.
11506 (memory_remove_breakpoint, memory_insert_breakpoint):
11507 Add target_ops parameter.
11508 * target.c (target_insert_breakpoint): Split into this and ...
11509 (forward_target_insert_breakpoint): ... this.
11510 (target_remove_breakpoint): Split into this and ...
11511 (forward_target_remove_breakpoint): ... this.
11512 (debug_to_insert_breakpoint): Add target_ops parameter.
11513 Call forward_target_insert_breakpoint.
11514 (debug_to_remove_breakpoint): Add target_ops parameter.
11515 Call forward_target_remove_breakpoint.
11516 (update_current_target): Do not inherit or default to_insert_breakpoint
11517 and to_remove_breakpoint.
11518 * corelow.c (ignore): Add target_ops parameter.
11519 * exec.c (ignore): Add target_ops parameter.
11520 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11521 Add target_ops parameter.
11522 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11523 Add target_ops parameter.
11524 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11525 Add target_ops parameter.
11526 * record-full.c (record_full_beneath_to_insert_breakpoint)
11527 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11528 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11529 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11530 (record_full_core_remove_breakpoint): Add target_ops parameter.
11531 Update users.
11532 (record_full_beneath_to_insert_breakpoint_ops)
11533 (record_full_beneath_to_remove_breakpoint_ops)
11534 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11535 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11536 tmp_to_remove_breakpoint_ops,
11537 record_full_beneath_to_insert_breakpoint_ops, and
11538 record_full_beneath_to_remove_breakpoint_ops.
11539 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11540 (m32r_remove_breakpoint): Add target_ops parameter.
11541 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11542 Add target_ops parameter.
11543 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11544 Add target_ops parameter.
11545
cecac1ab
MM
115462014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11547 Markus Metzger <markus.t.metzger@intel.com>
11548
11549 * record-btrace.c: Include frame-unwind.h.
11550 (record_btrace_frame_unwind_stop_reason)
11551 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11552 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11553 New.
11554 (init_record_btrace_ops): Install it.
11555
824344ca
MM
115562014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11557
11558 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11559 get_prev_frame_1.
11560
32261e52
MM
115612014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11562
11563 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11564 earlier.
11565
ea001bdc
MM
115662014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11567
11568 * frame-unwind.c: Include target.h.
11569 (frame_unwind_try_unwinder): New function with code from ...
11570 (frame_unwind_find_by_frame): ... here. New variable
11571 unwinder_from_target, call also target_get_unwinder)
11572 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11573 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11574 * target.h (struct target_ops): New fields to_get_unwinder and
11575 to_get_tailcall_unwinder.
11576 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11577
1f3ef581
MM
115782014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11579
11580 * record-btrace.c (record_btrace_fetch_registers)
11581 (record_btrace_store_registers)
11582 (record_btrace_to_prepare_to_store): New.
11583 (init_record_btrace_ops): Add the above.
11584
f32dbf8c
MM
115852014-01-16 Tom Tromey <tromey@redhat.com>
11586
11587 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11588 * target.h (struct target_ops) <to_prepare_to_store>: Add
11589 argument.
11590 (target_prepare_to_store): Add argument.
11591 * target.c (debug_to_prepare_to_store): Add argument.
11592 (update_current_target): Update.
11593 * remote.c (remote_prepare_to_store): Add 'self' argument.
11594 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11595 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11596 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11597 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11598 argument.
11599 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11600 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11601 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11602 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11603 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11604
07bbe694
MM
116052014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11606
11607 * btrace.h (replay) <replay>: New.
11608 (btrace_is_replaying): New.
11609 * btrace.c (btrace_clear): Free replay iterator.
11610 (btrace_is_replaying): New.
11611 * record-btrace.c (record_btrace_is_replaying): New.
11612 (record_btrace_info): Print insn number if replaying.
11613 (record_btrace_insn_history): Start at replay position.
11614 (record_btrace_call_history): Start at replay position.
11615 (init_record_btrace_ops): Init to_record_is_replaying.
11616
0688d04e
MM
116172014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11618
11619 * record-btrace.c (record_btrace_insn_history_range): Include
11620 end.
11621 (record_btrace_insn_history_from): Adjust range.
11622 (record_btrace_call_history_range): Include
11623 end.
11624 (record_btrace_call_history_from): Adjust range.
11625 * NEWS: Announce changes.
11626
8710b709
MM
116272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11628
11629 * record.h (enum record_print_flag)
11630 <record_print_indent_calls>: New.
11631 * record.c (get_call_history_modifiers): Recognize /c modifier.
11632 (_initialize_record): Document /c modifier.
11633 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11634 Reorder fields. Optionally indent the function name. Update
11635 all users.
11636 * NEWS: Announce changes.
11637
d0fa7535
MM
116382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11639
11640 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11641
5de9129b
MM
116422014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11643
11644 * btrace.c (ftrace_new_function): Start counting at one.
11645 * record-btrace.c (record_btrace_info): Adjust number of calls
11646 and insns.
11647 * NEWS: Announce it.
11648
7acbe133
MM
116492014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11650
11651 * record-btrace.c (btrace_call_history_insn_range): Print
11652 insn range as [begin, end].
11653
23a7fe75
MM
116542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11655
11656 * btrace.h (struct btrace_func_link): New.
11657 (enum btrace_function_flag): New.
11658 (struct btrace_inst): Rename to ...
11659 (struct btrace_insn): ...this. Update all users.
11660 (struct btrace_func) <ibegin, iend>: Remove.
11661 (struct btrace_func_link): New.
11662 (struct btrace_func): Rename to ...
11663 (struct btrace_function): ...this. Update all users.
11664 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11665 (number, level, flags>: New.
11666 (struct btrace_insn_iterator): Rename to ...
11667 (struct btrace_insn_history): ...this.
11668 Update all users.
11669 (struct btrace_insn_iterator, btrace_call_iterator): New.
11670 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11671 (struct btrace_target_info) <begin, end, level>
11672 <insn_history, call_history>: New.
11673 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11674 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11675 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11676 (btrace_call_number, btrace_call_begin, btrace_call_end)
11677 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11678 (btrace_find_function_by_number, btrace_set_insn_history)
11679 (btrace_set_call_history): New.
11680 * btrace.c (btrace_init_insn_iterator)
11681 (btrace_init_func_iterator, compute_itrace): Remove.
11682 (ftrace_print_function_name, ftrace_print_filename)
11683 (ftrace_skip_file): Change
11684 parameter to const.
11685 (ftrace_init_func): Remove.
11686 (ftrace_debug): Use new btrace_function fields.
11687 (ftrace_function_switched): Also consider gaining and
11688 losing symbol information).
11689 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11690 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11691 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11692 New.
11693 (ftrace_new_function): Move. Remove debug print.
11694 (ftrace_update_lines, ftrace_update_insns): New.
11695 (ftrace_update_function): Check for call, ret, and jump.
11696 (compute_ftrace): Renamed to ...
11697 (btrace_compute_ftrace): ...this. Rewritten to compute call
11698 stack.
11699 (btrace_fetch, btrace_clear): Updated.
11700 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11701 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11702 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11703 (btrace_call_number, btrace_call_begin, btrace_call_end)
11704 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11705 (btrace_find_function_by_number, btrace_set_insn_history)
11706 (btrace_set_call_history): New.
11707 * record-btrace.c (require_btrace): Use new btrace thread
11708 info fields.
11709 (record_btrace_info, btrace_insn_history)
11710 (record_btrace_insn_history, record_btrace_insn_history_range):
11711 Use new btrace thread info fields and new iterator.
11712 (btrace_func_history_src_line): Rename to ...
11713 (btrace_call_history_src_line): ...this. Use new btrace
11714 thread info fields.
11715 (btrace_func_history): Rename to ...
11716 (btrace_call_history): ...this. Use new btrace thread info
11717 fields and new iterator.
11718 (record_btrace_call_history, record_btrace_call_history_range):
11719 Use new btrace thread info fields and new iterator.
11720
8372a7cb
MM
117212014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11722
11723 * frame.h (frame_id_build_unavailable_stack_special): New.
11724 * frame.c (frame_id_build_unavailable_stack_special): New.
11725
c2170eef
MM
117262014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11727
11728 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11729 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11730 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11731 to gdbarch.
11732 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11733 (i386_insn_is_jump, i386_jmp_p): New.
11734 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11735 insn_is_jump to gdbarch.
11736 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11737 * gdbarch.h: Regenerated.
11738 * gdbarch.c: Regenerated.
11739 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11740 (default_insn_is_jump): New.
11741 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11742 (default_insn_is_jump): New.
11743
864089d2
MM
117442014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11745
11746 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11747 Change to ...
11748 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11749 (btrace_read_type) <btrace_read_new>: Change to ...
11750 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11751
ed9edfb5
MM
117522014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11753
11754 * common/linux-btrace.c (linux_read_btrace): Free trace from
11755 previous iteration.
11756
fbcbc3fd
DE
117572014-01-15 Doug Evans <dje@google.com>
11758
11759 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11760 uint32_t.
11761
3d548a53
TT
117622014-01-15 Tom Tromey <tromey@redhat.com>
11763
11764 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11765 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11766 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11767 (set_objfile_main_name): New function.
11768 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11769 language_of_main>: New fields.
11770 (set_objfile_main_name): Declare.
11771 * symtab.c (find_main_name): Loop over objfiles to find the main
11772 name and language.
11773 (set_main_name): Now static.
11774 (get_main_info): Add comment.
11775 * symtab.h (set_main_name): Don't declare.
11776
32ac0d11
TT
117772014-01-15 Tom Tromey <tromey@redhat.com>
11778
11779 * symtab.c (main_progspace_key): New global.
11780 (struct main_info): New.
11781 (name_of_main, language_of_main): Remove.
11782 (get_main_info, main_info_cleanup): New function.
11783 (set_main_name, main_name, main_language): Use get_main_info.
11784 (_initialize_symtab): Initialize main_progspace_key.
11785
9e6c82ad
TT
117862014-01-15 Tom Tromey <tromey@redhat.com>
11787
11788 * dbxread.c (process_one_symbol): Update.
11789 * dwarf2read.c (read_partial_die): Update.
11790 * symfile.c (set_initial_language): Call main_language.
11791 * symtab.c (language_of_main): Now static.
11792 (set_main_name): Add 'lang' parameter.
11793 (find_main_name): Update.
11794 (main_language): New function.
11795 (symtab_observer_executable_changed): Update.
11796 * symtab.h (set_main_name): Update.
11797 (language_of_main): Remove.
11798 (main_language): Declare.
11799
6ef55de7
TT
118002014-01-15 Tom Tromey <tromey@redhat.com>
11801
11802 * symfile.c (init_entry_point_info): Use new "initialized" field.
11803 Update.
11804 * objfiles.h (struct entry_point) <initialized>: New field.
11805 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11806 (struct objfile) <ei>: ...here. Remove.
11807 * objfiles.c (entry_point_address_query): Update.
11808
53eddfa6
TT
118092014-01-15 Tom Tromey <tromey@redhat.com>
11810
11811 * objfiles.c (entry_point_address_query): Relocate entry point
11812 address.
11813 (objfile_relocate1): Do not relocate entry point address.
11814 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11815 <the_bfd_section_index>: New field.
11816 * symfile.c (init_entry_point_info): Find the entry point's
11817 section.
11818
d56e56aa
TT
118192014-01-15 Tom Tromey <tromey@redhat.com>
11820
11821 * solib-frv.c (enable_break): Use entry_point_address_query.
11822
33a97bbe
OJ
118232014-01-15 Omair Javaid <omair.javaid@linaro.org>
11824
11825 * NEWS: Add note on improved process record-replay on
11826 arm*-linux* targets.
11827
c6ec2b30
OJ
118282014-01-15 Omair Javaid <omair.javaid@linaro.org>
11829
11830 * arm-tdep.c (enum arm_record_result): New enum.
11831 (arm_record_unsupported_insn): New function.
11832 (arm_record_coproc_data_proc): Removed.
11833 (thumb2_record_ld_st_multiple): New function.
11834 (thumb2_record_ld_st_dual_ex_tbb): New function.
11835 (thumb2_record_data_proc_sreg_mimm): New function.
11836 (thumb2_record_ps_dest_generic): New function.
11837 (thumb2_record_branch_misc_cntrl): New function.
11838 (thumb2_record_str_single_data): New function.
11839 (thumb2_record_ld_mem_hints): New function.
11840 (thumb2_record_ld_word): New function.
11841 (thumb2_record_lmul_lmla_div): New function.
11842 (thumb2_record_decode_insn_handler): New function.
11843 (decode_insn): Add thumb32 instruction handlers.
11844
97dfe206
OJ
118452014-01-15 Omair Javaid <omair.javaid@linaro.org>
11846
11847 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11848 (struct arm_linux_record_tdep): Declare.
11849 (arm_canonicalize_syscall): New function.
11850 (arm_all_but_pc_registers_record): New function.
11851 (arm_linux_syscall_record): New function.
11852 (arm_linux_init_abi): Add syscall recording constructs.
11853 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11854 decoding. (arm_record_coproc_data_proc): Update arm syscall
11855 decoding.
11856 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11857 <arm_syscall_record>: New field.
11858 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11859 gdb_target_obs.
11860
9904a494
OJ
118612014-01-15 Omair Javaid <omair.javaid@linaro.org>
11862
11863 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11864 register for push instruction recording.
11865
f969241e
OJ
118662014-01-15 Omair Javaid <omair.javaid@linaro.org>
11867
11868 * arm-tdep.c (thumb_record_misc): Update to correct logical
11869 error while recording ldm, ldmia and pop instructions.
11870
bfbbec00
OJ
118712014-01-15 Omair Javaid <omair.javaid@linaro.org>
11872
11873 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11874
e40adcc9
PA
118752014-01-15 Pedro Alves <palves@redhat.com>
11876
11877 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11878 (go32_resume, go32_fetch_registers, store_register)
11879 (go32_store_registers, go32_prepare_to_store)
11880 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11881 (go32_create_inferior, go32_can_run, go32_terminal_init)
11882 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11883 declarations.
11884
b0a16e66
TT
118852014-01-15 Tom Tromey <tromey@redhat.com>
11886
11887 * target.h (async_callback_ftype): New typedef.
11888 (struct target_ops) <to_async>: Use it.
11889
bf7105a4
JB
118902014-01-15 Joel Brobecker <brobecker@adacore.com>
11891
11892 * python/py-value.c (get_field_type): Remove unnecessary curly
11893 braces for single-statement if block.
11894
a8f35c2e
JB
118952014-01-15 Joel Brobecker <brobecker@adacore.com>
11896
11897 * python/py-type.c (convert_field): Add missing empty line
11898 after declarations.
11899
bb4142cf
DE
119002014-01-14 Doug Evans <dje@google.com>
11901
11902 * symfile.h (expand_symtabs_matching): Renamed from
11903 expand_partial_symbol_names. Update prototype.
11904 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11905 * symfile.c (expand_symtabs_matching): Renamed from
11906 expand_partial_symbol_names. New args file_matcher, kind.
11907 Rename arg fun to symbol_matcher.
11908 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11909 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11910 ada_expand_partial_symbol_name.
11911 (ada_make_symbol_completion_list): Update to call
11912 expand_symtabs_matching.
11913 (ada_add_global_exceptions): Call expand_symtabs_matching.
11914 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11915 call map_symbol_filenames.
11916 * symtab.c (sources_info): Update to call map_symbol_filenames.
11917 (search_symbols): Call expand_symtabs_matching.
11918 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11919 (default_make_symbol_completion_list_break_on): Update to call
11920 expand_symtabs_matching.
11921 (make_source_files_completion_list): Update to call
11922 map_symbol_filenames.
11923
206f2a57
DE
119242014-01-14 Doug Evans <dje@google.com>
11925
11926 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11927 (expand_symtabs_symbol_matcher_ftype): New typedef.
11928 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11929 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11930 * symfile.c (expand_partial_symbol_names): Update to use
11931 expand_symtabs_symbol_matcher_ftype.
11932 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11933 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11934 Arg name_matcher renamed to symbol_matcher.
11935 * psymtab.c (recursively_search_psymtabs): Update to use
11936 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11937 sym_matcher.
11938 (expand_symtabs_matching_via_partial): Update to use
11939 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11940 Arg name_matcher renamed to symbol_matcher.
11941
540c2971
DE
119422014-01-14 Doug Evans <dje@google.com>
11943
11944 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11945 (map_partial_symbol_filenames): Ditto.
11946 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11947 (map_partial_symbol_filenames): Ditto.
11948 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11949 (map_partial_symbol_filenames): Ditto.
11950 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11951 (map_partial_symbol_filenames): Ditto.
11952 * symtab.c: Delete #include "psymtab.h".
11953
8213266a
PA
119542014-01-14 Pedro Alves <palves@redhat.com>
11955 Tom Tromey <tromey@redhat.com>
11956
11957 * infrun.c (use_displaced_stepping): Use find_record_target
11958 instead of RECORD_IS_USED.
11959 (adjust_pc_after_break): Use record_full_is_used instead of
11960 RECORD_IS_USED.
11961 * record-btrace.c (record_btrace_open): Call record_preopen
11962 instead of checking RECORD_IS_USED.
11963 * record-full.c (record_full_shortname)
11964 (record_full_core_shortname): New globals.
11965 (record_full_is_used): New function.
11966 (find_full_open): Call record_preopen instead of checking
11967 RECORD_IS_USED.
11968 (init_record_full_ops): Set the target's shortname to
11969 record_full_shortname.
11970 (init_record_full_core_ops): Set the target's shortname to
11971 record_full_core_shortname.
11972 * record-full.h (record_full_is_used): Declare.
11973 * record.c (find_record_target): Make extern.
11974 (record_preopen): New function.
11975 * record.h (RECORD_IS_USED): Delete macro.
11976 (find_record_target, record_preopen): Declare functions.
11977
7ec1862d
YQ
119782014-01-14 Yao Qi <yao@codesourcery.com>
11979
11980 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11981 'len''s type to ULONGEST.
11982 (core_xfer_shared_libraries_aix): Likewise.
11983 * gdbarch.c, gdbarch.h: Regenerated.
11984 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11985 Change type of 'len' to ULONGEST.
11986 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11987 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11988
dea80a27
YQ
119892014-01-14 Yao Qi <yao@codesourcery.com>
11990
11991 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11992 type of 'len' to ULONGEST.
11993 (linux_xfer_osdata_processgroups): Likewise.
11994 (linux_xfer_osdata_threads): Likewise.
11995 (linux_xfer_osdata_fds): Likewise.
11996 (linux_xfer_osdata_isockets): Likewise.
11997 (linux_xfer_osdata_shm): Likewise.
11998 (linux_xfer_osdata_sem): Likewise.
11999 (linux_xfer_osdata_msg): Likewise.
12000 (linux_common_xfer_osdata): Likewise.
12001 (struct osdata_type) <getter>: Likewise.
12002 * common/linux-osdata.h (linux_common_xfer_osdata): Update
12003 the declaration.
12004
b55e14c7
YQ
120052014-01-14 Yao Qi <yao@codesourcery.com>
12006
12007 * target.h (target_xfer_partial_ftype): Update.
12008 (struct target_ops) <to_xfer_partial>: Change 'len' type to
12009 ULONGEST.
12010 * aix-thread.c (aix_thread_xfer_partial): Change type of
12011 argument 'len' to ULONGEST.
12012 * auxv.c (procfs_xfer_auxv): Likewise.
12013 (ld_so_xfer_auxv): Likewise.
12014 (memory_xfer_auxv): Likewise.
12015 * bfd-target.c (target_bfd_xfer_partial): Likewise.
12016 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
12017 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
12018 * corelow.c (core_xfer_partial): Likewise.
12019 * ctf.c (ctf_xfer_partial): Likewise.
12020 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12021 '%u'.
12022 (darwin_read_dyld_info): Likewise.
12023 (darwin_xfer_partial): Likewise.
12024 * exec.c (section_table_xfer_memory_partial): Likewise.
12025 (exec_xfer_partial): Likewise.
12026 * exec.h (section_table_xfer_memory_partial): Update
12027 declaration.
12028 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12029 instead of plongest.
12030 (gnu_xfer_partial): Likewise.
12031 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12032 (ia64_hpux_xfer_solib_got): Likewise.
12033 (ia64_hpux_xfer_partial): Likewise.
12034 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12035 * inf-ptrace.c (inf_ptrace_xfer_partial):
12036 * inf-ttrace.c (inf_ttrace_xfer_partial):
12037 * linux-nat.c (linux_xfer_siginfo): Likewise.
12038 (linux_nat_xfer_partial): Likewise.
12039 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12040 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12041 * monitor.c (monitor_xfer_memory): Likewise.
12042 (monitor_xfer_partial): Likewise.
12043 * procfs.c (procfs_xfer_partial): Likewise.
12044 * record-full.c (record_full_xfer_partial): Likewise.
12045 (record_full_core_xfer_partial): Likewise.
12046 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12047 instead of plongest.
12048 (gdbsim_xfer_partial): Likewise.
12049 * remote.c (remote_xfer_partial): Likewise.
12050 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12051 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12052 declaration.
12053 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12054 (rs6000_xfer_shared_libraries): Likewise.
12055 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12056 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12057 (sparc_xfer_partial): Likewise.
12058 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12059 (spu_xfer_partial): Likewise.
12060 * spu-multiarch.c (spu_xfer_partial): Likewise.
12061 * target.c (target_read_live_memory): Likewise.
12062 (memory_xfer_live_readonly_partial): Likewise.
12063 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12064 (target_xfer_partial, default_xfer_partial): Likewise.
12065 (current_xfer_partial): Likewise.
12066 * tracepoint.c (tfile_xfer_partial): Likewise.
12067 * windows-nat.c (windows_xfer_memory): Likewise. Call
12068 pulongest instead of plongest.
12069 (windows_xfer_partial): Likewise.
12070 (windows_xfer_shared_libraries): Likewise.
12071
05804640
YQ
120722014-01-14 Yao Qi <yao@codesourcery.com>
12073
12074 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12075 target_xfer_partial_ftype.
12076
b5b08fb4
SC
120772014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12078
12079 PR python/15464
12080 PR python/16113
12081 * valops.c (value_struct_elt_bitpos): New function
12082 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12083 object to 'None' if the field name is an empty string ("").
12084 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12085 attribute to look for a field when 'name' is 'None'.
12086 (get_field_type): New function
12087
13aaf454
DE
120882014-01-13 Doug Evans <dje@google.com>
12089
12090 PR symtab/16426
12091 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12092 (try_open_dwop_file): Ditto.
12093 * gdb_bfd.c: #include "vec.h".
12094 (bfdp): New typedef.
12095 (struct gdb_bfd_data): New member included_bfds.
12096 (gdb_bfd_unref): Unref all included bfds.
12097 (gdb_bfd_record_inclusion): New function.
12098 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12099
c2cec97c
TT
121002014-01-13 Tom Tromey <tromey@redhat.com>
12101
12102 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12103
78e5999d
TT
121042014-01-13 Tom Tromey <tromey@redhat.com>
12105
12106 * defs.h (use_windows): Remove.
12107 * gdb.c (main): Update.
12108 * main.c (captured_main, gdb_main): Update.
12109 * main.h (struct captured_main_args) <use_windows>: Remove.
12110 * top.c (use_windows): Remove.
12111
f2052bbe
TT
121122014-01-13 Tom Tromey <tromey@redhat.com>
12113
12114 * defs.h (deprecated_flush_hook): Remove.
12115
fde4f8ed
JK
121162014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12117
12118 PR threads/16216
12119 * linux-thread-db.c (try_thread_db_load): Add parameter
12120 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12121 (try_thread_db_load_from_pdir_1): Move it there from here.
12122 (try_thread_db_load_from_sdir): Update caller.
12123 (try_thread_db_load_from_dir): Move it there from here.
12124
bdf61915
PP
121252014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12126
12127 * regformats/regdat.sh: Always rewrite the register file.
12128
f71e1a8d
PA
121292014-01-13 Pedro Alves <palves@redhat.com>
12130
12131 * Makefile.in (CHECK_HEADERS): New variable.
12132 (check-headers:): New rule.
12133
42c85435
TT
121342014-01-13 Tom Tromey <tromey@redhat.com>
12135
12136 * cli/cli-setshow.c (do_set_command): Update.
12137 * defs.h (deprecated_set_hook): Remove.
12138 * top.c (deprecated_set_hook): Remove.
12139
f8de5129
PA
121402014-01-13 Pedro Alves <palves@redhat.com>
12141
12142 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12143 the tracepoint if the PC is a pseudo-register.
12144
fc270c35
TT
121452014-01-13 Tom Tromey <tromey@redhat.com>
12146
12147 * defs.h (XCALLOC): Remove.
12148 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12149 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12150 * dwarf2loc.c (allocate_piece_closure): Likewise.
12151 * elfread.c (elf_symfile_segments): Likewise.
12152 (elf_symfile_segments): Likewise.
12153 * gdbtypes.c (copy_type_recursive): Likewise.
12154 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12155 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12156 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12157 XCALLOC.
12158 * mt-tdep.c (mt_gdbarch_init): Likewise.
12159 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12160 XCALLOC.
12161 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12162 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12163 * registry.c (registry_alloc_data): Likewise.
12164 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12165 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12166 * serial.c (serial_fdopen_ops): Likewise.
12167 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12168 XCALLOC.
12169 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12170 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12171 not XCALLOC.
12172
70ba0933
TT
121732014-01-13 Tom Tromey <tromey@redhat.com>
12174
12175 * defs.h (XMALLOC): Remove.
12176 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12177 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12178 * cli-out.c (struct ui_out *): Likewise.
12179 * cli/cli-dump.c (add_dump_command): Likewise.
12180 (add_dump_command): Likewise.
12181 * complaints.c (get_complaints): Likewise.
12182 (find_complaint): Likewise.
12183 * dwarf2-frame.c (execute_cfa_program): Likewise.
12184 * dwarf2read.c (abbrev_table_read_table): Likewise.
12185 * gdbarch.sh: Likewise.
12186 * gdbarch.c: Rebuild.
12187 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12188 * interps.c (interp_new): Likewise.
12189 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12190 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12191 * mi/mi-console.c (mi_console_file_new): Likewise.
12192 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12193 * mi/mi-out.c (mi_out_new): Likewise.
12194 * mi/mi-parse.c (mi_parse): Likewise.
12195 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12196 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12197 * observer.c (xalloc_observer_list_node): Likewise.
12198 * regcache.c (regcache_xmalloc_1): Likewise.
12199 * reggroups.c (reggroup_new): Likewise.
12200 (_initialize_reggroup): Likewise.
12201 * registry.c (register_data_with_cleanup): Likewise.
12202 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12203 * ser-base.c (serial_ttystate): Likewise.
12204 * ser-mingw.c (make_pipe_state): Likewise.
12205 * ser-pipe.c (pipe_open): Likewise.
12206 * serial.c (serial_open): Likewise.
12207 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12208 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12209 (tui_alloc_win_info): Likewise.
12210 (tui_add_content_elements): Likewise.
12211 * tui/tui-file.c (tui_file_new): Likewise.
12212 * tui/tui-out.c (tui_out_new): Likewise.
12213 * ui-file.c (mem_file_new): Likewise.
12214 * ui-out.c (push_level): Likewise.
12215 (make_cleanup_ui_out_end): Likewise.
12216 (append_header_to_list): Likewise.
12217 (ui_out_new): Likewise.
12218 * user-regs.c (user_reg_add_builtin): Likewise.
12219
41bf6aca
TT
122202014-01-13 Tom Tromey <tromey@redhat.com>
12221
12222 * defs.h (XZALLOC): Remove.
12223 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12224 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12225 (get_ada_tasks_inferior_data): Likewise.
12226 * auto-load.c (get_auto_load_pspace_data): Likewise.
12227 * auxv.c (get_auxv_inferior_data): Likewise.
12228 * bfd-target.c (target_bfd_reopen): Likewise.
12229 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12230 (deprecated_insert_raw_breakpoint): Likewise.
12231 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12232 * corelow.c (core_open): Likewise.
12233 * darwin-nat.c (darwin_check_new_threads): Likewise.
12234 (darwin_attach_pid): Likewise.
12235 * dummy-frame.c (dummy_frame_push): Likewise.
12236 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12237 * dwarf2loc.c (allocate_piece_closure): Likewise.
12238 * elfread.c (elf_symfile_segments): Likewise.
12239 * eval.c (ptrmath_type_p): Likewise.
12240 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12241 * gdbtypes.c (alloc_type_arch): Likewise.
12242 (alloc_type_instance): Likewise.
12243 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12244 * inf-child.c (inf_child_can_use_agent): Likewise.
12245 * inflow.c (get_inflow_inferior_data): Likewise.
12246 * infrun.c (save_infcall_suspend_state): Likewise.
12247 * jit.c (jit_reader_load): Likewise.
12248 (get_jit_objfile_data): Likewise.
12249 (get_jit_program_space_data): Likewise.
12250 (jit_object_open_impl): Likewise.
12251 (jit_symtab_open_impl): Likewise.
12252 (jit_block_open_impl): Likewise.
12253 (jit_frame_sniffer): Likewise.
12254 * linux-fork.c (add_fork): Likewise.
12255 * maint.c (make_command_stats_cleanup): Likewise.
12256 * objfiles.c (get_objfile_pspace_data): Likewise.
12257 * opencl-lang.c (struct lval_closure): Likewise.
12258 * osdata.c (osdata_start_osdata): Likewise.
12259 * progspace.c (new_address_space): Likewise.
12260 (add_program_space): Likewise.
12261 * remote-sim.c (get_sim_inferior_data): Likewise.
12262 * sh-tdep.c (sh_gdbarch_init): Likewise.
12263 * skip.c (Ignore): Likewise.
12264 (skip_delete_command): Likewise.
12265 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12266 (library_list_start_library): Likewise.
12267 (solib_aix_current_sos): Likewise.
12268 * solib-darwin.c (get_darwin_info): Likewise.
12269 (darwin_current_sos): Likewise.
12270 * solib-dsbt.c (get_dsbt_info): Likewise.
12271 * solib-ia64-hpux.c (new_so_list): Likewise.
12272 (ia64_hpux_get_solib_linkage_addr): Likewise.
12273 * solib-spu.c (append_ocl_sos): Likewise.
12274 (spu_current_sos): Likewise.
12275 * solib-svr4.c (get_svr4_info): Likewise.
12276 (svr4_keep_data_in_core): Likewise.
12277 (library_list_start_library): Likewise.
12278 (svr4_default_sos): Likewise.
12279 (svr4_read_so_list): Likewise.
12280 * solib-target.c (library_list_start_library): Likewise.
12281 (solib_target_current_sos): Likewise.
12282 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12283 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12284 * symfile.c (default_symfile_segments): Likewise.
12285 * target-descriptions.c (tdesc_data_init): Likewise.
12286 (tdesc_create_reg): Likewise.
12287 (struct tdesc_type *): Likewise.
12288 (tdesc_create_vector): Likewise.
12289 (tdesc_set_struct_size): Likewise.
12290 (struct tdesc_type *): Likewise.
12291 (tdesc_free_feature): Likewise.
12292 (tdesc_create_feature): Likewise.
12293 * windows-nat.c (windows_add_thread): Likewise.
12294 (windows_make_so): Likewise.
12295 * xml-support.c (gdb_xml_body_text): Likewise.
12296 (gdb_xml_create_parser_and_cleanup): Likewise.
12297 (xml_process_xincludes): Likewise.
12298 * xml-syscall.c (allocate_syscalls_info): Likewise.
12299 (syscall_create_syscall_desc): Likewise.
12300
5acfdbae
SDJ
123012014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12302
12303 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12304 function, with code from i386_stap_parse_special_token.
12305 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12306 (i386_stap_parse_special_token): Move code to the two functions
12307 above; simplify it.
12308
0000e5cc
PA
123092014-01-09 Pedro Alves <palves@redhat.com>
12310 Hui Zhu <hui@codesourcery.com>
12311
12312 PR gdb/16101
12313 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12314 bp_err_string. Don't mark the location shlib_disabled if the
12315 error thrown wasn't a generic or memory error. Catch errors
12316 thrown while inserting breakpoints in overlayed code. Output
12317 error message of software breakpoints.
12318 * remote.c (remote_insert_breakpoint): If this breakpoint has
12319 target-side commands but this stub doesn't support Z0 packets,
12320 throw NOT_SUPPORTED_ERROR error.
12321 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12322 * target.h (target_insert_breakpoint): Extend comment.
12323 (target_insert_hw_breakpoint): Add comment.
12324
b7ea362b
PA
123252014-01-08 Pedro Alves <palves@redhat.com>
12326
12327 * remote.c (remote_add_thread): Add threads silently if starting
12328 up.
12329 (remote_notice_new_inferior): If in all-stop, and starting up,
12330 don't call notice_new_inferior.
12331 (get_current_thread): New function, factored out from ...
12332 (add_current_inferior_and_thread): ... this. Adjust.
12333 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12334 found any thread, then select the remote's current thread as GDB's
12335 current thread too.
12336
b7bba001
JB
123372014-01-08 Joel Brobecker <brobecker@adacore.com>
12338
12339 * NEWS: Create a new section for the next release branch.
12340 Rename the section of the current branch, now that it has
12341 been cut.
12342
16dfbded
JB
123432014-01-08 Joel Brobecker <brobecker@adacore.com>
12344
12345 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12346 * version.in: Bump version to 7.7.50.DATE-cvs.
12347
22c90ac1
YQ
123482014-01-08 Yao Qi <yao@codesourcery.com>
12349
12350 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12351 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12352 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12353
d64ad97c
YQ
123542014-01-08 Yao Qi <yao@codesourcery.com>
12355
12356 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12357 return value of bfd_get_filename to symbol_file_add_from_bfd.
12358
f93ba80c
PM
123592014-01-08 Pierre Muller <muller@sourceware.org>
12360
12361 Fix PR16201.
12362 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12363 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12364 to prim_record_mininal_symbol_and_info.
12365 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12366 in call to prim_record_minimal_symbol_and_info.
12367 (read_pe_exported_syms): Set index field of section_data.
12368
a4d9ba85
AP
123692014-01-07 Andrew Pinski <apinski@cavium.com>
12370
12371 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12372 * features/aarch64.c: Regenerate.
12373
1b67eb02
AS
123742014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12375
12376 * target.c (return_null): Define.
12377 (update_current_target): Use it instead of return_zero for
12378 functions that return a pointer.
12379
5e3f4fab
EBM
123802014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12381
12382 * source.c (add_path): Fix check for duplicated paths in the previously
12383 included paths.
12384
e2616788
HK
123852014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12386
12387 * ada-lang.c: Remove duplicated include statements.
12388 * alphabsd-nat.c: Ditto.
12389 * amd64-darwin-tdep.c: Ditto.
12390 * amd64fbsd-nat.c: Ditto.
12391 * auto-load.c: Ditto.
12392 * ax-gdb.c: Ditto.
12393 * breakpoint.c: Ditto.
12394 * dbxread.c: Ditto.
12395 * fork-child.c: Ditto.
12396 * gdb_usleep.c: Ditto.
12397 * i386-darwin-tdep.c: Ditto.
12398 * i386fbsd-nat.c: Ditto.
12399 * infcmd.c: Ditto.
12400 * inferior.c: Ditto.
12401 * jv-lang.c: Ditto.
12402 * linux-nat.c: Ditto.
12403 * linux-tdep.c: Ditto.
12404 * m68kbsd-nat.c: Ditto.
12405 * m68klinux-nat.c: Ditto.
12406 * microblaze-tdep.c: Ditto.
12407 * mips-linux-tdep.c: Ditto.
12408 * mn10300-tdep.c: Ditto.
12409 * nto-tdep.c: Ditto.
12410 * opencl-lang.c: Ditto.
12411 * osdata.c: Ditto.
12412 * printcmd.c: Ditto.
12413 * regcache.c: Ditto.
12414 * remote-m32r-sdi.c: Ditto.
12415 * remote.c: Ditto.
12416 * symfile.c: Ditto.
12417 * symtab.c: Ditto.
12418 * tilegx-linux-nat.c: Ditto.
12419 * tilegx-tdep.c: Ditto.
12420 * tracepoint.c: Ditto.
12421 * valops.c: Ditto.
12422 * vaxbsd-nat.c: Ditto.
12423 * windows-nat.c: Ditto.
12424 * xtensa-tdep.c: Ditto.
12425
bd1f7788
YQ
124262014-01-07 Yao Qi <yao@codesourcery.com>
12427
12428 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12429
79301218
JB
124302014-01-07 Yao Qi <yao@codesourcery.com>
12431 Joel Brobecker <brobecker@adacore.com>
12432
12433 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12434 (pdc_write_regs): Likewise.
12435 (fetch_regs_kernel_thread): Likewise.
12436 (store_regs_kernel_thread): Likewise.
12437
124382014-01-07 Joel Brobecker <brobecker@adacore.com>
12439
12440 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12441 tagged type objects to their actual type.
12442
8e355c5d
JB
124432014-01-07 Joel Brobecker <brobecker@adacore.com>
12444
12445 * ada-valprint.c (print_field_values): Add "language" parameter.
12446 Update calls to print_field_values and print_variant_part.
12447 Pass new parameter "language" in call to val_print instead
12448 of "current_language". Replace call to ada_val_print by call
12449 to val_print.
12450 (print_variant_part): Add "language" parameter.
12451 (ada_val_print_struct_union): Update call to print_field_values.
12452
4fbf5aa5
JB
124532014-01-07 Joel Brobecker <brobecker@adacore.com>
12454
12455 * ada-valprint.c (ui_memcpy): Delete.
12456 (ada_print_floating): Update documentation. Add empty line
12457 between between function documentation and implementation.
12458 Delete variable "buffer". Use ui_file_xstrdup in place of
12459 ui_file_put. Minor adjustments following this change.
12460
71855601
JB
124612014-01-07 Joel Brobecker <brobecker@adacore.com>
12462
12463 * ada-valprint.c (ada_val_print_string): New function,
12464 extracted from ada_val_print_array.
12465 (ada_val_print_array): Replace extracted code by call
12466 to ada_val_print_string followed by a return. Move
12467 "else" branch to the function's top block.
12468
4eb27a30
JB
124692014-01-07 Joel Brobecker <brobecker@adacore.com>
12470
12471 * ada-valprint.c (ada_val_print_array): Move implementation
12472 down. Rename parameter "offset" and "val" into "offset_aligned"
12473 and "original_value" respectively. Add parameter "offset".
12474
34b27950
JB
124752014-01-07 Joel Brobecker <brobecker@adacore.com>
12476
12477 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12478 re-organizing the code. Change the "???" message printed
12479 when target type is a TYPE_CODE_UNDEF into
12480 "<ref to undefined type>".
12481
079e4591
JB
124822014-01-07 Joel Brobecker <brobecker@adacore.com>
12483
12484 * ada-valprint.c (print_record): Delete, implementation inlined...
12485 (ada_val_print_struct_union): ... here. Remove call to
12486 ada_check_typedef in inlined implementation.
12487
8004dfd1
JB
124882014-01-07 Joel Brobecker <brobecker@adacore.com>
12489
12490 * ada-valprint.c (ada_val_print_gnat_array): New function,
12491 extracted from ada_val_print_1;
12492 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12493 (ada_val_print_flt, ada_val_print_struct_union)
12494 (ada_val_print_ref): Likewise.
12495 (ada_val_print_1): Delete variables i and elttype.
12496 Replace extracted-out code by call to corresponding
12497 new functions.
12498
760a2db0
JB
124992014-01-07 Joel Brobecker <brobecker@adacore.com>
12500
12501 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12502
3a92c861
JB
125032014-01-07 Joel Brobecker <brobecker@adacore.com>
12504
12505 * ada-valprint.c (ada_val_print_1): Replace calls to
12506 ada_val_print_1 by calls to val_print.
12507
cd1630f9
JB
125082014-01-07 Joel Brobecker <brobecker@adacore.com>
12509
12510 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12511 Update calls to self accordingly. Replace calls to c_val_print
12512 by calls to val_print.
12513
bdf779a0
JB
125142014-01-07 Joel Brobecker <brobecker@adacore.com>
12515
12516 * ada-valprint.c (print_record): Delete declaration.
12517 (adjust_type_signedness, ada_val_print_1): Likewise.
12518 (ada_val_print): Move function implementation down.
12519 (print_variant_part, print_field_values, print_record):
12520 Move function implementation up.
12521
c0d48811
JB
125222014-01-07 Joel Brobecker <brobecker@adacore.com>
12523
12524 * python/py-type.c (typy_get_name): New function.
12525 (type_object_getset): Add entry for attribute "name".
12526 * NEWS: Add entry mentioning this new attribute.
12527
c26e9cbb
YQ
125282014-01-07 Yao Qi <yao@codesourcery.com>
12529
12530 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12531 statement.
12532
0cc6f43d
YQ
125332014-01-07 Yao Qi <yao@codesourcery.com>
12534
12535 * gnu-nat.c (info_port_rights): Add qualifier const to
12536 argument args.
12537
eec03155
YQ
125382014-01-07 Yao Qi <yao@codesourcery.com>
12539
12540 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12541
f04a82ef
YQ
125422014-01-07 Yao Qi <yao@codesourcery.com>
12543
12544 * gnu-nat.c (make_inf) Update declaration.
12545 (make_inf): Make it static.
12546 (inf_set_traced): Likewise.
12547 (inf_port_to_thread, inf_task_died_status): Likewise.
12548
d57dda0a
YQ
125492014-01-07 Yao Qi <yao@codesourcery.com>
12550
12551 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12552
3aa8c969
YQ
125532014-01-07 Yao Qi <yao@codesourcery.com>
12554
12555 * gnu-nat.c (_initialize_gnu_nat): Declare.
12556
94123b4f
YQ
125572014-01-07 Yao Qi <yao@codesourcery.com>
12558
12559 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12560 'enum bfd_endian'.
12561 (struct gdbarch_info) <byte_order>: Change type to
12562 'enum bfd_endian'.
12563 <byte_order_for_code>: Likewise.
12564 * gdbarch.c, gdbarch.h: Regenerated.
12565
dc81d70a
TT
125662014-01-06 Sasha Smundak <asmundak@google.com>
12567
12568 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12569
cc2f3c35
TT
125702014-01-06 Tom Tromey <tromey@redhat.com>
12571
12572 * doublest.c (convert_doublest_to_floatformat): Use const, not
12573 CONST.
12574 * somread.c (som_symtab_read): Likewise.
12575
adcf2eed
HZ
125762014-01-07 Hui Zhu <hui@codesourcery.com>
12577
12578 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12579 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12580 (gdb_bfd_fopen): Ditto.
12581 (gdb_bfd_openr): Ditto.
12582 (gdb_bfd_openw): Ditto.
12583 (gdb_bfd_openr_iovec): Ditto.
12584 (gdb_bfd_fdopenr): Ditto.
12585 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12586 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12587 with xstrdup.
12588 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12589 with xstrdup.
12590 * symfile-mem.c (symbol_file_add_from_memory): Removed
12591 gdb_bfd_stash_filename.
12592
50722198
DE
125932014-01-03 Doug Evans <dje@google.com>
12594
12595 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12596 output.
12597
2fa4b862
JB
125982014-01-01 Joel Brobecker <brobecker@adacore.com>
12599
12600 Update year range in copyright notice of all files.
12601
28498c42
JB
126022014-01-01 Joel Brobecker <brobecker@adacore.com>
12603
12604 * top.c (print_gdb_version): Set copyright year to 2014.
12605
7b6e1046
JB
126062014-01-01 Joel Brobecker <brobecker@adacore.com>
12607
12608 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12609
df96af55 12610For older changes see ChangeLog-2013.
c906108c
SS
12611\f
12612Local Variables:
12613mode: change-log
12614left-margin: 8
12615fill-column: 74
12616version-control: never
57da7796 12617coding: utf-8
c906108c 12618End:
This page took 2.562992 seconds and 4 git commands to generate.