parse_number("0") reads uninitialized memory
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ebf13736
PA
12014-09-04 Pedro Alves <palves@redhat.com>
2
3 * c-exp.y (parse_number): Skip handling base-switching prefixes if
4 the input is only one character long.
5
eb0b0463
SDJ
62014-09-04 Sergio Durigan Junior <sergiodj@redhat.com>
7
8 PR fortran/17237
9 * f-valprint.c (f_val_print): Specify the correct print option to
10 use when printing integer values.
11
5ee44bfa
GB
122014-09-04 Gary Benson <gbenson@redhat.com>
13
14 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
15 Remove code to cope with LWPs wrapped as PIDs.
16 Add assertions to ensure no wrapped LWPs are passed.
17
4875ffdb
PA
182014-09-04 Pedro Alves <palves@redhat.com>
19
20 * value.c (value_ranges_copy_adjusted): New function, factored out
21 from ...
22 (value_contents_copy_raw): ... here.
23 (unpack_value_bits_as_long_1): Rename back to ...
24 (unpack_bits_as_long): ... this. Remove 'original_value' and
25 'result' parameters. Change return type to LONGEST.
26 (unpack_value_bits_as_long): Delete.
27 (unpack_value_field_as_long_1): Delete.
28 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
29 (unpack_value_bitfield): New function.
30 (value_field_bitfield): Reimplement using unpack_value_bitfield.
31 (value_fetch_lazy): Use unpack_value_bitfield.
32 * value.h (unpack_value_bits_as_long): Delete declaration.
33
5f3b99cf
SS
342014-09-03 Sasha Smundak <asmundak@google.com>
35
36 * python/py-frame.c (frapy_read_register): New function.
37
ac740bc7
JH
382014-09-03 James Hogan <james.hogan@imgtec.com>
39
40 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
41 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
42
7d793aa9
SDJ
432014-09-03 Sergio Durigan Junior <sergiodj@redhat.com>
44
45 PR python/16699
46 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
47 function.
48 (add_cmd): Set "completer_handle_brkchars" to NULL.
49 * cli/cli-decode.h (struct cmd_list_element)
50 <completer_handle_brkchars>: New field.
51 * command.h (completer_ftype_void): New typedef.
52 (set_cmd_completer_handle_brkchars): New prototype.
53 * completer.c (set_gdb_completion_word_break_characters): New
54 function.
55 (complete_line_internal): Call "completer_handle_brkchars"
56 callback from command.
57 * completer.h: Include "command.h".
58 (set_gdb_completion_word_break_characters): New prototype.
59 * python/py-cmd.c (cmdpy_completer_helper): New function.
60 (cmdpy_completer_handle_brkchars): New function.
61 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
62 (cmdpy_init): Set completer_handle_brkchars to
63 cmdpy_completer_handle_brkchars.
64
97ea6506
GB
652014-09-03 Gary Benson <gbenson@redhat.com>
66
67 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
68 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
69 Loop conditions changed to equivalent form.
70 (struct x86_debug_reg_state): Updated dr_ref_count comment.
71 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
72 ALL_DEBUG_ADDRESS_REGISTERS.
73
d1437815
JB
742014-09-03 Joel Brobecker <brobecker@adacore.com>
75
76 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
77 description fix.
78
9b94fcf1
DE
792014-09-02 Doug Evans <dje@google.com>
80
81 * typeprint.c (find_global_typedef): Fix comment.
82
df7e5265
GB
832014-09-02 Gary Benson <gbenson@redhat.com>
84
85 * i386-nat.h: Renamed as...
86 * x86-nat.h: New file. All type, function and variable name
87 prefixes changed from "i386_" to "x86_". All references updated.
88 * i386-nat.c: Renamed as...
89 * x86-nat.c: New file. All type, function and variable name
90 prefixes changed from "i386_" to "x86_". All references updated.
91 * common/i386-xstate.h: Renamed as...
92 * common/x86-xstate.h: New file. All type, function and variable
93 name prefixes changed from "i386_" to "x86_". All references
94 updated.
95 * nat/i386-cpuid.h: Renamed as...
96 * nat/x86-cpuid.h: New file. All type, function and variable name
97 prefixes changed from "i386_" to "x86_". All references updated.
98 * nat/i386-gcc-cpuid.h: Renamed as...
99 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
100 name prefixes changed from "i386_" to "x86_". All references
101 updated.
102 * nat/i386-dregs.h: Renamed as...
103 * nat/x86-dregs.h: New file. All type, function and variable name
104 prefixes changed from "i386_" to "x86_". All references updated.
105 * nat/i386-dregs.c: Renamed as...
106 * nat/x86-dregs.c: New file. All type, function and variable name
107 prefixes changed from "i386_" to "x86_". All references updated.
108
1c3569d4
MR
1092014-09-01 Maciej W. Rozycki <macro@codesourcery.com>
110
111 * varobj.c (_initialize_varobj): Move to the end of file.
112
ff55e1b5
GB
1132014-08-29 Gary Benson <gbenson@redhat.com>
114
115 * common/common-exceptions.h: New file.
116 * common/common-exceptions.c: Likewise.
117 * Makefile.in (SFILES): Add common/common-exceptions.c.
118 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
119 (COMMON_OBS): Add common-exceptions.o.
120 (common-exceptions.o): New rule.
121 * exceptions.h (common-exceptions.h): Include.
122 (gdb_setjmp.h): Do not include.
123 (return_reason): Moved to common-exceptions.h.
124 (enum return_reason): Likewise.
125 (RETURN_MASK): Likewise.
126 (typedef return_mask): Likewise.
127 (enum errors): Likewise.
128 (struct gdb_exception): Likewise.
129 (exceptions_state_mc_init): Likewise.
130 (exceptions_state_mc_action_iter): Likewise.
131 (exceptions_state_mc_action_iter_1): Likewise.
132 (TRY_CATCH): Likewise.
133 (throw_exception): Likewise.
134 (throw_verror): Likewise.
135 (throw_vquit): Likewise.
136 (throw_error): Likewise.
137 (throw_quit): Likewise.
138 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
139 (enum catcher_action): Likewise.
140 (struct catcher): Likewise.
141 (current_catcher): Likewise.
142 (catcher_list_size): Likewise.
143 (exceptions_state_mc_init): Likewise.
144 (catcher_pop): Likewise.
145 (exceptions_state_mc): Likewise.
146 (exceptions_state_mc_action_iter): Likewise.
147 (exceptions_state_mc_action_iter_1): Likewise.
148 (throw_exception): Likewise.
149 (exception_messages): Likewise.
150 (exception_messages_size): Likewise.
151 (throw_it): Likewise.
152 (throw_verror): Likewise.
153 (throw_vquit): Likewise.
154 (throw_error): Likewise.
155 (throw_quit): Likewise.
156 (prepare_to_throw_exception): New function.
157
e9bcb658
GB
1582014-08-29 Gary Benson <gbenson@redhat.com>
159
160 * common/gdb_setjmp.h: New file.
161 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
162 * configure.ac: Move sigsetjmp check...
163 * common/common.m4: ...here.
164 * configure: Regenerate.
165 * cp-support.c (SIGJMP_BUF): Delete.
166 (SIGSETJMP): Likewise.
167 (SIGLONGJMP): Likewise.
168 * exceptions.h (gdb_setjmp.h): Include.
169 (setjmp.h): Do not include.
170 (EXCEPTIONS_SIGJMP_BUF): Delete.
171 (EXCEPTIONS_SIGSETJMP): Likewise.
172 (EXCEPTIONS_SIGLONGJMP): Likewise.
173 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
174 from gdb_setjmp.h.
175 * exceptions.c: Likewise.
176
e3180625
GB
1772014-08-29 Gary Benson <gbenson@redhat.com>
178
179 * cleanups.h: Moved to...
180 * common/cleanups.h: New file.
181 * cleanups.c: Moved to...
182 * common/cleanups.c: New file. Include common-defs.h and
183 cleanups.h. Do not include defs.h.
184 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
185 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
186 (cleanups.o): New rule.
187
e3d6ba5d
GB
1882014-08-29 Gary Benson <gbenson@redhat.com>
189
190 * common/errors.h (internal_warning): New declaration.
191 (internal_vwarning): Likewise.
192 * common/errors.c (internal_warning): New function.
193 * utils.h (internal_warning): Don't declare.
194 (internal_vwarning): Likewise.
195 * utils.c (internal_warning): Removed.
196
075c7033
GB
1972014-08-29 Gary Benson <gbenson@redhat.com>
198
199 * main.c (captured_main): Use warning during startup.
200 Prefix startup warning messages with command name.
201
91b35fd0
GB
2022014-08-29 Gary Benson <gbenson@redhat.com>
203
204 * main.c (captured_main): Handle usage errors with error.
205
b1ec390e
GB
2062014-08-29 Gary Benson <gbenson@redhat.com>
207
208 * go32-nat.c (go32_create_inferior): Replace a fprintf/
209 exit pair with a call to error. Wrap the message with _().
210
fd0ef3dd
GB
2112014-08-29 Gary Benson <gbenson@redhat.com>
212
213 * main.c (captured_main): Replace a fprintf/exit
214 pair with a call to error. Wrap the message with _().
215
e0e6bcab
GB
2162014-08-29 Gary Benson <gbenson@redhat.com>
217
218 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
219 pairs with calls to error. Wrap the message with _().
220
0d2f5c07
GB
2212014-08-29 Gary Benson <gbenson@redhat.com>
222
223 * utils.c (vwarning): Protect calls to target_terminal_ours
224 and wrap_here.
225
5df43998
GB
2262014-08-29 Gary Benson <gbenson@redhat.com>
227
228 * exceptions.c (print_flush): Protect calls to
229 target_terminal_ours and wrap_here.
230
2437fd32
GB
2312014-08-29 Gary Benson <gbenson@redhat.com>
232
233 * utils.h (filtered_printing_initialized): New declaration.
234 * utils.c (abort_with_message): New function.
235 (internal_vproblem): Use abort_with_message for first level
236 recursive internal problems, and if gdb_stderr is not set up.
237 Protect calls to target_terminal_ours, begin_line and query.
238
f1f58506
DE
2392014-08-28 Doug Evans <dje@google.com>
240
241 * symtab.c (in_prologue): Move definition to better spot.
242 (skip_prologue_using_sal): Ditto.
243
aab2f208
DE
2442014-08-28 Doug Evans <dje@google.com>
245
246 * symtab.c (find_function_start_sal): Move definition to better spot.
247
6b65d1b6
YQ
2482014-08-28 Yao Qi <yao@codesourcery.com>
249
250 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
251 found_stack_adjust in forward scan. Remove condition check
252 on found_stack_adjust which is always true. Indent the code.
253
a1b34d15
YQ
2542014-08-28 Yao Qi <yao@codesourcery.com>
255
256 * dwarf2read.c (dwarf_decode_lines): Update declaration.
257 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
258 (dwarf_decode_lines): Remove argument
259 want_line_info. Remove condition check on want_line_info.
260 Callers update.
261
d5962de5
DE
2622014-08-27 Doug Evans <dje@google.com>
263
264 * dwarf2read.c (dwarf_record_line): Fix typo.
265
9b139002
SDJ
2662014-08-27 Patrick Palka <patrick@parcs.ath.cx>
267
268 * target.h (struct target_ops::to_terminal_save_ours): Remove
269 declaration.
270 (target_terminal_save_ours): Remove macro.
271 * target-delegates.c: Regenerate.
272 * inf-child.c (inf_child_target): Don't set the nonexistent
273 field to_terminal_save_ours.
274 * inferior.h (child_terminal_save_ours): Remove declaration.
275 * terminal.h (gdb_save_tty_state): New declaration.
276 * inflow.c (child_terminal_save_ours): Rename to ...
277 (gdb_save_tty_state): ... this.
278 * tui/tui.c: Include terminal.h.
279 (tui_enable): Use gdb_save_tty_state instead of
280 target_terminal_save_ours.
281 (tui_disable): Likewise.
282
9debeba0
DE
2832014-08-25 Doug Evans <dje@google.com>
284
285 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
286 Pass NULL instead of 0 for context pointer.
287
428fc5fc
YQ
2882014-08-25 Yao Qi <yao@codesourcery.com>
289
290 * dwarf2read.c: Fix grammatical error.
291
cdc07690
YQ
2922014-08-24 Yao Qi <yao@codesourcery.com>
293
294 * dwarf2read.c (scan_partial_symbols): Update comments.
295 Rename argument 'need_pc' with 'set_addrmap'.
296 (add_partial_namespace): Rename argument 'need_pc' with
297 'set_addrmap'.
298 (add_partial_module): Likewise.
299 (add_partial_subprogram): Likewise. Update comments.
300 (dwarf2_name): Fix typo.
301
a05a36a5
DE
3022014-08-22 Doug Evans <dje@google.com>
303
304 PR 17276
305 * dwarf2read.c (dwarf_record_line_p): New function.
306 (dwarf_decode_lines_1): Ignore subsequent line number entries
307 for the same line if any entry had a non-zero discriminator.
308
252a6764
DE
3092014-08-22 Doug Evans <dje@google.com>
310
311 * buildsym.h (record_line_ftype): New typedef.
312 (record_line): Use it.
313 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
314 (dwarf_decode_lines_1): Call them.
315
510db052
YQ
3162014-08-22 Yao Qi <yao@codesourcery.com>
317
318 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
319 (ctf_end): Remove code.
320
22fd09ae
JK
3212014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
322
323 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
324 (linux_make_corefile_notes): call update_thread_list, protected against
325 exceptions.
326
656e8868
PA
3272014-08-21 Pedro Alves <palves@redhat.com>
328
329 * infcmd.c (attach_command): Remove comment.
330
de589d04
WN
3312014-08-21 Bin Cheng <bin.cheng@arm.com>
332
333 * aarch64-linux-nat.c (dr_changed_t): Change the type from
334 unsigned LONGEST to ULONGEST.
335
2a31c623
PA
3362014-08-20 Pedro Alves <palves@redhat.com>
337
338 * Makefile.in (check-read1): New rule.
339
d36430db
JB
3402014-08-20 Joel Brobecker <brobecker@adacore.com>
341
342 * value.c (value_from_contents_and_address): Strip resolved_type's
343 typedef layers before checking its TYPE_DATA_LOCATION.
344
000339af
PA
3452014-08-20 Pedro Alves <palves@redhat.com>
346
347 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
348
5f52445b
YQ
3492014-08-20 Yao Qi <yao@codesourcery.com>
350
351 * amd64-tdep.c (amd64_classify): Add a blank line after the
352 example. Move "*/" to a new line.
353 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
354 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
355 * dwarf2read.c (psymtab_include_file_name): Likewise.
356
9a0dc9e3
PA
3572014-08-19 Andrew Burgess <aburgess@broadcom.com>
358 Pedro Alves <palves@redhat.com>
359
360 PR symtab/14604
361 PR symtab/14605
362 * ada-lang.c (coerce_unspec_val_to_type): Use
363 value_contents_copy_raw.
364 * ada-valprint.c (val_print_packed_array_elements): Adjust.
365 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
366 * cp-valprint.c (cp_print_value_fields): Let the common printing
367 code handle optimized out values.
368 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
369 * d-valprint.c (dynamic_array_type): Use
370 value_bits_any_optimized_out.
371 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
372 check_any_valid fields.
373 (check_pieced_value_bits): Delete and inline ...
374 (check_pieced_synthetic_pointer): ... here.
375 (check_pieced_value_validity): Delete.
376 (check_pieced_value_invalid): Delete.
377 (pieced_value_funcs): Remove check_validity and check_any_valid
378 fields.
379 (read_pieced_value): Use mark_value_bits_optimized_out.
380 (write_pieced_value): Switch to use
381 mark_value_bytes_optimized_out.
382 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
383 of assuming the whole value is optimized out.
384 * findvar.c (read_frame_register_value): Remove special handling
385 of optimized out registers.
386 (value_from_register): Use mark_value_bytes_optimized_out.
387 * frame-unwind.c (frame_unwind_got_optimized): Use
388 mark_value_bytes_optimized_out.
389 * jv-valprint.c (java_value_print): Adjust.
390 (java_print_value_fields): Let the common printing code handle
391 optimized out values.
392 * mips-tdep.c (mips_print_register): Remove special handling of
393 optimized out registers.
394 * opencl-lang.c (lval_func_check_validity): Delete.
395 (lval_func_check_any_valid): Delete.
396 (opencl_value_funcs): Remove check_validity and check_any_valid
397 fields.
398 * p-valprint.c (pascal_object_print_value_fields): Let the common
399 printing code handle optimized out values.
400 * stack.c (read_frame_arg): Remove special handling of optimized
401 out values. Fetch both VAL and ENTRYVAL before comparing
402 contents. Adjust to value_available_contents_eq rename.
403 * valprint.c (valprint_check_validity)
404 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
405 (val_print_array_elements): Adjust.
406 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
407 (value_bits_any_optimized_out): New function.
408 (value_entirely_covered_by_range_vector): New function, factored
409 out from value_entirely_unavailable.
410 (value_entirely_unavailable): Reimplement.
411 (value_entirely_optimized_out): New function.
412 (insert_into_bit_range_vector): New function, factored out from
413 mark_value_bits_unavailable.
414 (mark_value_bits_unavailable): Reimplement.
415 (struct ranges_and_idx): New struct.
416 (find_first_range_overlap_and_match): New function, factored out
417 from value_available_contents_bits_eq.
418 (value_available_contents_bits_eq): Rename to ...
419 (value_contents_bits_eq): ... this. Check both unavailable
420 contents and optimized out contents.
421 (value_available_contents_eq): Rename to ...
422 (value_contents_eq): ... this.
423 (allocate_value_lazy): Remove reference to the old optimized_out
424 boolean.
425 (allocate_optimized_out_value): Use
426 mark_value_bytes_optimized_out.
427 (require_not_optimized_out): Adjust to check whether the
428 optimized_out vec is empty.
429 (ranges_copy_adjusted): New function, factored out from
430 value_contents_copy_raw.
431 (value_contents_copy_raw): Also copy the optimized out ranges.
432 Assert the destination ranges aren't optimized out.
433 (value_contents_copy): Update comment, remove call to
434 require_not_optimized_out.
435 (value_contents_equal): Adjust to check whether the optimized_out
436 vec is empty.
437 (set_value_optimized_out, value_optimized_out_const): Delete.
438 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
439 New functions.
440 (value_entirely_optimized_out, value_bits_valid): Delete.
441 (value_copy): Take a VEC copy of the 'optimized_out' field.
442 (value_primitive_field): Remove special handling of optimized out.
443 (value_fetch_lazy): Assert that lazy values have no unavailable
444 regions. Use value_bits_any_optimized_out. Remove some special
445 handling for optimized out values.
446 * value.h: Add intro comment about <optimized out> and
447 <unavailable>.
448 (struct lval_funcs): Remove check_validity and check_any_valid
449 fields.
450 (set_value_optimized_out, value_optimized_out_const): Remove.
451 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
452 New declarations.
453 (value_bits_any_optimized_out): New declaration.
454 (value_bits_valid): Delete declaration.
455 (value_available_contents_eq): Rename to ...
456 (value_contents_eq): ... this, and extend comments.
457
6694c411
JK
4582014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
459
460 Fix -fsanitize=address on unreadable inferior strings.
461 * valprint.c (val_print_string): Fix access before BUFFER.
462
89a1c21a
SM
4632014-08-19 Simon Marchi <simon.marchi@ericsson.com>
464
465 * target.c (target_struct_size): Remove.
466 (target_struct_allocsize): Remove.
467 (DEFAULT_ALLOCSIZE): Remove.
468 (target_ops_p): New typedef.
469 (DEF_VEC_P (target_ops_p)): New vector type.
470 (target_structs): Change type to VEC (target_ops_p).
471 (add_target_with_completer): Replace "push" code by VEC_safe_push.
472 (find_default_run_target): Rewrite for loop following changes to
473 target_structs.
474
cb417230
JB
4752014-08-19 Joel Brobecker <brobecker@adacore.com>
476
477 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
478 Adjust code accordingly. Adjust function description comment.
479
817e0957
YQ
4802014-08-19 Yao Qi <yao@codesourcery.com>
481
482 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
483 types.
484
2974be62
AM
4852014-08-19 Alan Modra <amodra@gmail.com>
486
487 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
488 * config.in: Regenerate.
489 * configure: Regenerate.
490
34abf635
GB
4912014-08-19 Tom Tromey <tromey@redhat.com>
492 Gary Benson <gbenson@redhat.com>
493
494 * common/common-debug.h: New file.
495 * common/common-debug.c: Likewise.
496 * debug.c: Likewise.
497 * Makefile.in (SFILES): Add common/common-debug.c.
498 (HFILES_NO_SRCDIR): Add common/common-debug.h.
499 (COMMON_OBS): Add common-debug.o and debug.o.
500 (common-debug.o): New rule.
501 * common/common-defs.h: Include common-debug.h.
502 * common/agent.c (debug_agent_printf): New function.
503 (DEBUG_AGENT): Redefine.
504 * nat/i386-dregs.c (debug_printf): Undefine.
505
f6e94d78
GB
5062014-08-19 Gary Benson <gbenson@redhat.com>
507
508 * common/common-defs.h: Include print-utils.h.
509 * utils.h: Do not include print-utils.h.
510
9239eeab
GB
5112014-08-19 Tom Tromey <tromey@redhat.com>
512 Gary Benson <gbenson@redhat.com>
513
514 * common/common-types.h: New file.
515 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
516 * common/common-defs.h: Include common-types.h.
517 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
518 (ULONGEST): Remove.
519
ef87c8bb
GB
5202014-08-19 Tom Tromey <tromey@redhat.com>
521 Gary Benson <gbenson@redhat.com>
522
523 * common/errors.h: New file.
524 * common/errors.c: Likewise.
525 * Makefile.in (SFILES): Add common/errors.c.
526 (HFILES_NO_SRCDIR): Add common/errors.h.
527 (COMMON_OBS): Add errors.o.
528 (errors.o): New rule.
529 * common/common-defs.h: Include errors.h.
530 * utils.h (perror_with_name, error, verror, warning, vwarning):
531 Don't declare.
532 * common/common-utils.h: (malloc_failure, internal_error):
533 Likewise.
534
196a707b
GB
5352014-08-19 Gary Benson <gbenson@redhat.com>
536
537 * utils.c (internal_vproblem): Always print the message.
538
ded4fc8f
DE
5392014-08-18 Doug Evans <dje@google.com>
540
541 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
542
950c97d8
JB
5432014-08-18 Joel Brobecker <brobecker@adacore.com>
544
545 * ada-typeprint.c (type_is_full_subrange_of_target_type):
546 Return 0 if TYPE is dynamic.
547 (print_range): Add handling of dynamic ranges.
548
3cdcd0ce
JB
5492014-08-18 Keven Boell <keven.boell@intel.com>
550 Joel Brobecker <brobecker@adacore.com>
551
552 * gdbtypes.h (struct main_type): Add field "data_location".
553 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
554 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
555 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
556 a dynamic data location.
557 (resolve_dynamic_type): Add DW_AT_data_location handling.
558 (copy_recursive, copy_type): Copy the data_location information
559 when present.
560 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
561 * value.c (value_from_contents_and_address): Add
562 DW_AT_data_location handling.
563
08412b07
JB
5642014-08-18 Keven Boell <keven.boell@intel.com>
565 Joel Brobecker <brobecker@adacore.com>
566
567 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
568 field "get_object_address".
569 * dwarf2expr.c (execute_stack_op): Add handling for
570 DW_OP_push_object_address.
571 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
572 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
573 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
574 (dwarf_expr_get_obj_addr): New function.
575 (dwarf_expr_ctx_funcs): Add get_object_address field.
576 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
577 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
578 (dwarf2_evaluate_property): Add parameter "address". Use it.
579 (needs_get_obj_addr): New function.
580 (needs_frame_ctx_funcs): Add get_object_address field.
581 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
582 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
583 (resolve_dynamic_array): Likewise.
584
84754697
JB
5852014-08-18 Joel Brobecker <brobecker@adacore.com>
586
587 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
588 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
589 fixed value for records and unions for which some GNAT encodings
590 are present.
591
da5c522f
JB
5922014-08-18 Joel Brobecker <brobecker@adacore.com>
593
594 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
595 rewrite to avoid "else if" and "else" constructs. Should be
596 a no-op in practice.
597
0d72a7c3
JB
5982014-08-18 Joel Brobecker <brobecker@adacore.com>
599
600 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
601 of lexical block.
602
e66d4446
SC
6032014-08-15 Siva Chandra Reddy <sivachandra@google.com>
604
605 PR c++/17132
606 * eval.c: Update all calls to find_overload_match.
607 * valarith.c: Likewise.
608 (value_user_defined_cpp_op, value_user_defined_op): New
609 argument NOSIDE. Update all callers.
610 * valops.c (find_overload_match): New argument NOSIDE.
611 * value.h (find_overload_match): Update signature.
612
940df408
SC
6132014-08-15 Siva Chandra Reddy <sivachandra@google.com>
614
615 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
616 'items' methods instead of 'iteritems' method on dictionaries.
617
699ca60a
DE
6182014-08-15 Doug Evans <dje@google.com>
619
620 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
621 closer to use.
622
37780ee5
DE
6232014-08-15 Doug Evans <dje@google.com>
624
625 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
626
0ad93d4f
DE
6272014-08-15 Doug Evans <dje@google.com>
628
629 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
630
20d8c372
DE
6312014-08-15 Doug Evans <dje@google.com>
632
633 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
634 unused.
635
cb039ba4
EZ
6362014-08-15 Eli Zaretskii <eliz@gnu.org>
637
638 * dcache.h: Include target.h, to avoid compile time warnings.
639
eb7a547a
JB
6402014-08-15 Joel Brobecker <brobecker@adacore.com>
641
642 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
643 frame_info" partial declaration.
644 * gdbarch.h: Regenerate.
645
783cecc8
YQ
6462014-08-15 Yao Qi <yao@codesourcery.com>
647
648 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
649 Add parameter 'decode_for_pst_p'. Callers update.
650
65c749e7
YQ
6512014-08-13 Yao Qi <yao@codesourcery.com>
652
653 PR build/17104
654 * configure.ac: Use local variable 'pos'.
655 * configure: Regenerated.
656
d769e349
DE
6572014-08-11 Doug Evans <dje@google.com>
658
659 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
660 message, it is redundant with "Reading symbols from ..." message.
661
24f1235e
DE
6622014-08-10 Doug Evans <xdje42@gmail.com>
663
664 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
665
dcd2e6ef
YQ
6662014-08-09 Yao Qi <yao@codesourcery.com>
667
668 PR remote/9053
669 * remote.c (remote_xfer_partial): Remove dead code.
670
070bdf0b
AA
6712014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
672
673 * ia64-linux-tdep.c: Include "regset.h".
674 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
675 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
676 (ia64_linux_supply_fpregset): New function.
677 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
678 (ia64_linux_regset_from_core_section): New function.
679 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
680 method.
681
08f9f542
AA
6822014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
683
684 * m68klinux-tdep.c: Include "regset.h".
685 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
686 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
687 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
688 (m68k_linux_regset_from_core_section): New function.
689 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
690 method.
691
8f1cee41
AA
6922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
693
694 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
695 function. Move logic to...
696 (tilegx_linux_regmap): ... this new register map.
697 (tilegx_linux_regset): Refer to register map, replace supply
698 method by regcache_supply_regset, and add collect method.
699 * tilegx-tdep.h (enum tilegx_regnum): New enum value
700 TILEGX_FIRST_EASY_REGNUM.
701
c5741217
AA
7022014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
703
704 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
705 that calls regcache_supply_regset and handles the EPC register
706 separately. Move main logic to...
707 (score7_linux_gregmap): ... this new register map.
708 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
709 (score7_linux_gregset): Refer to register map. Add collect method.
710 (score7_linux_regset_from_core_section): Replace
711 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
712 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
713 (struct regset): Delete unused forward declaraction.
714 (struct pt_regs): Delete structure definition.
715 (elf_gregset_t): Delete typedef.
716
81580573
AA
7172014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
718
719 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
720 (nios2_core_regset): Add collect method.
721
ba199d7d
AA
7222014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
723
724 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
725 platform-independent and don't write to read-only input buffer.
726 (m32r_linux_collect_gregset): New function.
727 (m32r_linux_gregset): Add collect method.
728
0006a9da
AA
7292014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
730
731 * hppa-linux-tdep.c (greg_map): Rename to...
732 (hppa_linux_gregmap): ... this. Also convert to
733 regcache_map_entry format.
734 (hppa_linux_supply_regset): Delete function.
735 (hppa_linux_supply_fpregset): Delete function. Move logic to...
736 (hppa_linux_fpregmap): ... this new register map.
737 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
738 register map, replace supply method by regcache_supply_regset, and
739 add collect method regcache_collect_regset.
740
901e1b23
AA
7412014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
742
743 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
744 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
745 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
746 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
747 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
748 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
749 (frv_linux_supply_gregset): Replace main logic by call to
750 regcache_supply_regset, but keep clearing gr32-gr63.
751 (frv_linux_supply_fpregset): Delete function.
752 (frv_linux_gregset): Refer to appropriate register map and add
753 regcache_collect_regset as the collect method.
754 (frv_linux_fpregset): Likewise. Also exchange the supply method
755 by regcache_supply_regset.
756
1d6e7555
AA
7572014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
758
759 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
760 by call to alpha_supply_int_regs.
761 (alpha_linux_collect_gregset): New function.
762 (alpha_linux_supply_fpregset): Replace logic by call to
763 alpha_supply_fp_regs.
764 (alpha_linux_collect_fpregset): New function.
765 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
766
d4d793bf
AA
7672014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
768
769 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
770 by call to regcache_collect_regset.
771 (supply_gregset, supply_fpregset): Call regcache_supply_regset
772 instead of aarch64_linux_supply_gregset/_fpregset.
773 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
774 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
775 header file instead.
776 (aarch64_linux_supply_gregset, supply_gregset_from_core)
777 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
778 functions. Move logic to ...
779 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
780 register maps.
781 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
782 refer to new register maps, replace *_regset_from_core by
783 regcache_supply_regset, and also use regcache_collect_regset.
784 * aarch64-linux-tdep.h: Include "regset.h".
785 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
786 Delete prototypes.
787 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
788 macros, moved from C source file.
789 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
790 variable declarations.
791
99b7da5d
AA
7922014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
793
794 * s390-linux-nat.c: Include "regset.h".
795 (regmap_gregset): Delete macro.
796 (s390_64_regmap_gregset): New register map for
797 regcache_supply/_collect_regset.
798 (s390_64_gregset): New regset.
799 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
800 (regmap_fpregset): Delete macro.
801 (s390_native_supply, s390_native_collect): Delete functions.
802 (supply_gregset, fill_gregset): Replace s390-specific regmap
803 handling by a call to regcache_supply/_collect_regset.
804 (supply_fpregset, fill_fpregset): Call regcache_supply/
805 _collect_regset instead of s390_native_supply/_collect.
806 (fetch_regset, store_regset): Likewise. Also change the last
807 parameter to a regset instead of a regmap.
808 (s390_linux_fetch_inferior_registers)
809 (390_linux_store_inferior_registers): Adjust last parameter in
810 calls to fetch_regset and store_regset.
811 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
812 (s390_gregmap): ... this. Also make static const and convert to
813 regcache_map_entry format.
814 (s390x_regmap_gregset): Delete.
815 (s390_regmap_fpregset): Rename to...
816 (s390_fpregmap): ... this. Make static const and convert to
817 regcache_map_entry format.
818 (s390_regmap_upper, s390_regmap_last_break)
819 (s390x_regmap_last_break, s390_regmap_system_call)
820 (s390_regmap_tdb): Likewise.
821 (s390_supply_regset, s390_collect_regset): Remove functions.
822 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
823 s390_supply_regset.
824 (s390_gregset, s390_fpregset, s390_upper_regset)
825 (s390_last_break_regset, s390x_last_break_regset)
826 (s390_system_call_regset, s390_tdb_regset): Make global and
827 replace s390_supply/_collect_regset by regcache_supply/
828 _collect_regset.
829 (s390x_gregset): Delete.
830 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
831 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
832 (s390_regmap_fpregset, s390_regmap_last_break)
833 (s390x_regmap_last_break, s390_regmap_system_call)
834 (s390_regmap_tdb): Delete global variable declarations.
835 (s390_gregset, s390_fpregset, s390_last_break_regset)
836 (s390x_last_break_regset, s390_system_call_regset)
837 (s390_tdb_regset): New global variable declarations.
838
0b309272
AA
8392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
840
841 * regcache.c: Include "regset.h".
842 (regcache_transfer_regset): New local function.
843 (regcache_supply_regset, regcache_collect_regset): New functions.
844 * regcache.h (struct regcache_map_entry): New structure.
845 (REGCACHE_MAP_SKIP): New enum value.
846 (regcache_supply_regset, regcache_collect_regset): New prototypes.
847
7fefa8d7
AA
8482014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
849
850 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
851 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
852 (ppc_linux_collect_gregset ): Likewise.
853 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
854 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
855 (ppc_collect_vrregset): Likewise.
856 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
857 Likewise.
858
96c4f946
YQ
8592014-08-07 Yao Qi <yao@codesourcery.com>
860
861 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
862 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
863 * remote.c (remote_read_bytes): Likewise.
864
fffbe6a8
YQ
8652014-08-07 Yao Qi <yao@codesourcery.com>
866
867 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
868
5ee8a82c
YQ
8692014-08-07 Yao Qi <yao@codesourcery.com>
870
871 PR remote/17230
872 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
873 TARGET_XFER_OK instead of 0.
874
bb974a24
GB
8752014-08-07 Gary Benson <gbenson@redhat.com>
876
877 * common/common-defs.h: Include errno.h.
878 * defs.h: Do not include errno.h.
879 * ada-typeprint.c: Likewise.
880 * c-typeprint.c: Likewise.
881 * core-regset.c: Likewise.
882 * corefile.c: Likewise.
883 * corelow.c: Likewise.
884 * event-loop.c: Likewise.
885 * f-typeprint.c: Likewise.
886 * gnu-nat.c: Likewise.
887 * go32-nat.c: Likewise.
888 * i386gnu-nat.c: Likewise.
889 * m2-typeprint.c: Likewise.
890 * nat/linux-btrace.c: Likewise.
891 * p-typeprint.c: Likewise.
892 * procfs.c: Likewise.
893 * remote-sim.c: Likewise.
894 * rs6000-nat.c: Likewise.
895 * target.c: Likewise.
896 * typeprint.c: Likewise.
897 * ui-file.c: Likewise.
898 * valops.c: Likewise.
899 * valprint.c: Likewise.
900
6d3d12eb
GB
9012014-08-07 Gary Benson <gbenson@redhat.com>
902
903 * common/common-defs.h: Include string.h.
904 * aarch64-tdep.c: Do not include string.h.
905 * ada-exp.y: Likewise.
906 * ada-lang.c: Likewise.
907 * ada-lex.l: Likewise.
908 * ada-typeprint.c: Likewise.
909 * ada-valprint.c: Likewise.
910 * aix-thread.c: Likewise.
911 * alpha-linux-tdep.c: Likewise.
912 * alpha-mdebug-tdep.c: Likewise.
913 * alpha-nat.c: Likewise.
914 * alpha-osf1-tdep.c: Likewise.
915 * alpha-tdep.c: Likewise.
916 * alphanbsd-tdep.c: Likewise.
917 * amd64-dicos-tdep.c: Likewise.
918 * amd64-linux-tdep.c: Likewise.
919 * amd64-nat.c: Likewise.
920 * amd64-sol2-tdep.c: Likewise.
921 * amd64fbsd-tdep.c: Likewise.
922 * amd64obsd-tdep.c: Likewise.
923 * arch-utils.c: Likewise.
924 * arm-linux-nat.c: Likewise.
925 * arm-linux-tdep.c: Likewise.
926 * arm-tdep.c: Likewise.
927 * arm-wince-tdep.c: Likewise.
928 * armbsd-tdep.c: Likewise.
929 * armnbsd-nat.c: Likewise.
930 * armnbsd-tdep.c: Likewise.
931 * armobsd-tdep.c: Likewise.
932 * avr-tdep.c: Likewise.
933 * ax-gdb.c: Likewise.
934 * ax-general.c: Likewise.
935 * bcache.c: Likewise.
936 * bfin-tdep.c: Likewise.
937 * breakpoint.c: Likewise.
938 * build-id.c: Likewise.
939 * buildsym.c: Likewise.
940 * c-exp.y: Likewise.
941 * c-lang.c: Likewise.
942 * c-typeprint.c: Likewise.
943 * c-valprint.c: Likewise.
944 * charset.c: Likewise.
945 * cli-out.c: Likewise.
946 * cli/cli-cmds.c: Likewise.
947 * cli/cli-decode.c: Likewise.
948 * cli/cli-dump.c: Likewise.
949 * cli/cli-interp.c: Likewise.
950 * cli/cli-logging.c: Likewise.
951 * cli/cli-script.c: Likewise.
952 * cli/cli-setshow.c: Likewise.
953 * cli/cli-utils.c: Likewise.
954 * coffread.c: Likewise.
955 * common/agent.c: Likewise.
956 * common/buffer.c: Likewise.
957 * common/buffer.h: Likewise.
958 * common/common-utils.c: Likewise.
959 * common/filestuff.c: Likewise.
960 * common/filestuff.c: Likewise.
961 * common/format.c: Likewise.
962 * common/print-utils.c: Likewise.
963 * common/rsp-low.c: Likewise.
964 * common/signals.c: Likewise.
965 * common/vec.h: Likewise.
966 * common/xml-utils.c: Likewise.
967 * core-regset.c: Likewise.
968 * corefile.c: Likewise.
969 * corelow.c: Likewise.
970 * cp-abi.c: Likewise.
971 * cp-name-parser.y: Likewise.
972 * cp-support.c: Likewise.
973 * cp-valprint.c: Likewise.
974 * cris-tdep.c: Likewise.
975 * d-exp.y: Likewise.
976 * darwin-nat.c: Likewise.
977 * dbxread.c: Likewise.
978 * dcache.c: Likewise.
979 * demangle.c: Likewise.
980 * dicos-tdep.c: Likewise.
981 * disasm.c: Likewise.
982 * doublest.c: Likewise.
983 * dsrec.c: Likewise.
984 * dummy-frame.c: Likewise.
985 * dwarf2-frame.c: Likewise.
986 * dwarf2loc.c: Likewise.
987 * dwarf2read.c: Likewise.
988 * elfread.c: Likewise.
989 * environ.c: Likewise.
990 * eval.c: Likewise.
991 * event-loop.c: Likewise.
992 * exceptions.c: Likewise.
993 * exec.c: Likewise.
994 * expprint.c: Likewise.
995 * f-exp.y: Likewise.
996 * f-lang.c: Likewise.
997 * f-typeprint.c: Likewise.
998 * f-valprint.c: Likewise.
999 * fbsd-nat.c: Likewise.
1000 * findcmd.c: Likewise.
1001 * findvar.c: Likewise.
1002 * fork-child.c: Likewise.
1003 * frame.c: Likewise.
1004 * frv-linux-tdep.c: Likewise.
1005 * frv-tdep.c: Likewise.
1006 * gdb.c: Likewise.
1007 * gdb_bfd.c: Likewise.
1008 * gdbarch.c: Likewise.
1009 * gdbarch.sh: Likewise.
1010 * gdbtypes.c: Likewise.
1011 * gnu-nat.c: Likewise.
1012 * gnu-v2-abi.c: Likewise.
1013 * gnu-v3-abi.c: Likewise.
1014 * go-exp.y: Likewise.
1015 * go-lang.c: Likewise.
1016 * go32-nat.c: Likewise.
1017 * guile/guile.c: Likewise.
1018 * guile/scm-auto-load.c: Likewise.
1019 * hppa-hpux-tdep.c: Likewise.
1020 * hppa-linux-nat.c: Likewise.
1021 * hppanbsd-tdep.c: Likewise.
1022 * hppaobsd-tdep.c: Likewise.
1023 * i386-cygwin-tdep.c: Likewise.
1024 * i386-dicos-tdep.c: Likewise.
1025 * i386-linux-tdep.c: Likewise.
1026 * i386-nto-tdep.c: Likewise.
1027 * i386-sol2-tdep.c: Likewise.
1028 * i386-tdep.c: Likewise.
1029 * i386bsd-tdep.c: Likewise.
1030 * i386gnu-nat.c: Likewise.
1031 * i386nbsd-tdep.c: Likewise.
1032 * i386obsd-tdep.c: Likewise.
1033 * i387-tdep.c: Likewise.
1034 * ia64-libunwind-tdep.c: Likewise.
1035 * ia64-linux-nat.c: Likewise.
1036 * inf-child.c: Likewise.
1037 * inf-ptrace.c: Likewise.
1038 * inf-ttrace.c: Likewise.
1039 * infcall.c: Likewise.
1040 * infcmd.c: Likewise.
1041 * inflow.c: Likewise.
1042 * infrun.c: Likewise.
1043 * interps.c: Likewise.
1044 * iq2000-tdep.c: Likewise.
1045 * irix5-nat.c: Likewise.
1046 * jv-exp.y: Likewise.
1047 * jv-lang.c: Likewise.
1048 * jv-typeprint.c: Likewise.
1049 * jv-valprint.c: Likewise.
1050 * language.c: Likewise.
1051 * linux-fork.c: Likewise.
1052 * linux-nat.c: Likewise.
1053 * lm32-tdep.c: Likewise.
1054 * m2-exp.y: Likewise.
1055 * m2-typeprint.c: Likewise.
1056 * m32c-tdep.c: Likewise.
1057 * m32r-linux-nat.c: Likewise.
1058 * m32r-linux-tdep.c: Likewise.
1059 * m32r-rom.c: Likewise.
1060 * m32r-tdep.c: Likewise.
1061 * m68hc11-tdep.c: Likewise.
1062 * m68k-tdep.c: Likewise.
1063 * m68kbsd-tdep.c: Likewise.
1064 * m68klinux-nat.c: Likewise.
1065 * m68klinux-tdep.c: Likewise.
1066 * m88k-tdep.c: Likewise.
1067 * machoread.c: Likewise.
1068 * macrocmd.c: Likewise.
1069 * main.c: Likewise.
1070 * mdebugread.c: Likewise.
1071 * mem-break.c: Likewise.
1072 * memattr.c: Likewise.
1073 * memory-map.c: Likewise.
1074 * mep-tdep.c: Likewise.
1075 * mi/mi-cmd-break.c: Likewise.
1076 * mi/mi-cmd-disas.c: Likewise.
1077 * mi/mi-cmd-env.c: Likewise.
1078 * mi/mi-cmd-stack.c: Likewise.
1079 * mi/mi-cmd-var.c: Likewise.
1080 * mi/mi-cmds.c: Likewise.
1081 * mi/mi-console.c: Likewise.
1082 * mi/mi-getopt.c: Likewise.
1083 * mi/mi-interp.c: Likewise.
1084 * mi/mi-main.c: Likewise.
1085 * mi/mi-parse.c: Likewise.
1086 * microblaze-rom.c: Likewise.
1087 * microblaze-tdep.c: Likewise.
1088 * mingw-hdep.c: Likewise.
1089 * minidebug.c: Likewise.
1090 * minsyms.c: Likewise.
1091 * mips-irix-tdep.c: Likewise.
1092 * mips-linux-tdep.c: Likewise.
1093 * mips-tdep.c: Likewise.
1094 * mips64obsd-tdep.c: Likewise.
1095 * mipsnbsd-tdep.c: Likewise.
1096 * mipsread.c: Likewise.
1097 * mn10300-linux-tdep.c: Likewise.
1098 * mn10300-tdep.c: Likewise.
1099 * monitor.c: Likewise.
1100 * moxie-tdep.c: Likewise.
1101 * mt-tdep.c: Likewise.
1102 * nat/linux-btrace.c: Likewise.
1103 * nat/linux-osdata.c: Likewise.
1104 * nat/linux-procfs.c: Likewise.
1105 * nat/linux-ptrace.c: Likewise.
1106 * nat/linux-waitpid.c: Likewise.
1107 * nbsd-tdep.c: Likewise.
1108 * nios2-linux-tdep.c: Likewise.
1109 * nto-procfs.c: Likewise.
1110 * nto-tdep.c: Likewise.
1111 * objc-lang.c: Likewise.
1112 * objfiles.c: Likewise.
1113 * opencl-lang.c: Likewise.
1114 * osabi.c: Likewise.
1115 * osdata.c: Likewise.
1116 * p-exp.y: Likewise.
1117 * p-lang.c: Likewise.
1118 * p-typeprint.c: Likewise.
1119 * parse.c: Likewise.
1120 * posix-hdep.c: Likewise.
1121 * ppc-linux-nat.c: Likewise.
1122 * ppc-sysv-tdep.c: Likewise.
1123 * ppcfbsd-tdep.c: Likewise.
1124 * ppcnbsd-tdep.c: Likewise.
1125 * ppcobsd-tdep.c: Likewise.
1126 * printcmd.c: Likewise.
1127 * procfs.c: Likewise.
1128 * prologue-value.c: Likewise.
1129 * python/py-auto-load.c: Likewise.
1130 * python/py-gdb-readline.c: Likewise.
1131 * ravenscar-thread.c: Likewise.
1132 * regcache.c: Likewise.
1133 * registry.c: Likewise.
1134 * remote-fileio.c: Likewise.
1135 * remote-m32r-sdi.c: Likewise.
1136 * remote-mips.c: Likewise.
1137 * remote-notif.c: Likewise.
1138 * remote-sim.c: Likewise.
1139 * remote.c: Likewise.
1140 * reverse.c: Likewise.
1141 * rs6000-aix-tdep.c: Likewise.
1142 * ser-base.c: Likewise.
1143 * ser-go32.c: Likewise.
1144 * ser-mingw.c: Likewise.
1145 * ser-pipe.c: Likewise.
1146 * ser-tcp.c: Likewise.
1147 * ser-unix.c: Likewise.
1148 * serial.c: Likewise.
1149 * sh-tdep.c: Likewise.
1150 * sh64-tdep.c: Likewise.
1151 * shnbsd-tdep.c: Likewise.
1152 * skip.c: Likewise.
1153 * sol-thread.c: Likewise.
1154 * solib-dsbt.c: Likewise.
1155 * solib-frv.c: Likewise.
1156 * solib-osf.c: Likewise.
1157 * solib-som.c: Likewise.
1158 * solib-spu.c: Likewise.
1159 * solib-target.c: Likewise.
1160 * solib.c: Likewise.
1161 * somread.c: Likewise.
1162 * source.c: Likewise.
1163 * sparc-nat.c: Likewise.
1164 * sparc-sol2-tdep.c: Likewise.
1165 * sparc-tdep.c: Likewise.
1166 * sparc64-tdep.c: Likewise.
1167 * sparc64fbsd-tdep.c: Likewise.
1168 * sparc64nbsd-tdep.c: Likewise.
1169 * sparcnbsd-tdep.c: Likewise.
1170 * spu-linux-nat.c: Likewise.
1171 * spu-multiarch.c: Likewise.
1172 * spu-tdep.c: Likewise.
1173 * stabsread.c: Likewise.
1174 * stack.c: Likewise.
1175 * std-regs.c: Likewise.
1176 * symfile.c: Likewise.
1177 * symmisc.c: Likewise.
1178 * symtab.c: Likewise.
1179 * target.c: Likewise.
1180 * thread.c: Likewise.
1181 * tilegx-linux-nat.c: Likewise.
1182 * tilegx-tdep.c: Likewise.
1183 * top.c: Likewise.
1184 * tracepoint.c: Likewise.
1185 * tui/tui-command.c: Likewise.
1186 * tui/tui-data.c: Likewise.
1187 * tui/tui-disasm.c: Likewise.
1188 * tui/tui-file.c: Likewise.
1189 * tui/tui-layout.c: Likewise.
1190 * tui/tui-out.c: Likewise.
1191 * tui/tui-regs.c: Likewise.
1192 * tui/tui-source.c: Likewise.
1193 * tui/tui-stack.c: Likewise.
1194 * tui/tui-win.c: Likewise.
1195 * tui/tui-windata.c: Likewise.
1196 * tui/tui-winsource.c: Likewise.
1197 * typeprint.c: Likewise.
1198 * ui-file.c: Likewise.
1199 * ui-out.c: Likewise.
1200 * user-regs.c: Likewise.
1201 * utils.c: Likewise.
1202 * v850-tdep.c: Likewise.
1203 * valarith.c: Likewise.
1204 * valops.c: Likewise.
1205 * valprint.c: Likewise.
1206 * value.c: Likewise.
1207 * varobj.c: Likewise.
1208 * vax-tdep.c: Likewise.
1209 * vaxnbsd-tdep.c: Likewise.
1210 * vaxobsd-tdep.c: Likewise.
1211 * windows-nat.c: Likewise.
1212 * xcoffread.c: Likewise.
1213 * xml-support.c: Likewise.
1214 * xstormy16-tdep.c: Likewise.
1215 * xtensa-linux-nat.c: Likewise.
1216
dccbb609
GB
12172014-08-07 Gary Benson <gbenson@redhat.com>
1218
1219 * common/common-defs.h: Include gdb_assert.h.
1220 * aarch64-tdep.c: Do not include gdb_assert.h.
1221 * addrmap.c: Likewise.
1222 * aix-thread.c: Likewise.
1223 * alpha-linux-tdep.c: Likewise.
1224 * alpha-mdebug-tdep.c: Likewise.
1225 * alphanbsd-tdep.c: Likewise.
1226 * amd64-nat.c: Likewise.
1227 * amd64-tdep.c: Likewise.
1228 * amd64bsd-nat.c: Likewise.
1229 * amd64fbsd-nat.c: Likewise.
1230 * amd64fbsd-tdep.c: Likewise.
1231 * amd64nbsd-nat.c: Likewise.
1232 * amd64nbsd-tdep.c: Likewise.
1233 * amd64obsd-nat.c: Likewise.
1234 * amd64obsd-tdep.c: Likewise.
1235 * arch-utils.c: Likewise.
1236 * arm-tdep.c: Likewise.
1237 * armbsd-tdep.c: Likewise.
1238 * auxv.c: Likewise.
1239 * bcache.c: Likewise.
1240 * bfin-tdep.c: Likewise.
1241 * blockframe.c: Likewise.
1242 * breakpoint.c: Likewise.
1243 * bsd-kvm.c: Likewise.
1244 * bsd-uthread.c: Likewise.
1245 * buildsym.c: Likewise.
1246 * c-exp.y: Likewise.
1247 * c-lang.c: Likewise.
1248 * charset.c: Likewise.
1249 * cleanups.c: Likewise.
1250 * cli-out.c: Likewise.
1251 * cli/cli-decode.c: Likewise.
1252 * cli/cli-dump.c: Likewise.
1253 * cli/cli-logging.c: Likewise.
1254 * cli/cli-script.c: Likewise.
1255 * cli/cli-utils.c: Likewise.
1256 * coffread.c: Likewise.
1257 * common/common-utils.c: Likewise.
1258 * common/queue.h: Likewise.
1259 * common/signals.c: Likewise.
1260 * common/vec.h: Likewise.
1261 * complaints.c: Likewise.
1262 * completer.c: Likewise.
1263 * corelow.c: Likewise.
1264 * cp-abi.c: Likewise.
1265 * cp-name-parser.y: Likewise.
1266 * cp-namespace.c: Likewise.
1267 * cp-support.c: Likewise.
1268 * cris-tdep.c: Likewise.
1269 * dbxread.c: Likewise.
1270 * dictionary.c: Likewise.
1271 * doublest.c: Likewise.
1272 * dsrec.c: Likewise.
1273 * dummy-frame.c: Likewise.
1274 * dwarf2-frame-tailcall.c: Likewise.
1275 * dwarf2-frame.c: Likewise.
1276 * dwarf2expr.c: Likewise.
1277 * dwarf2loc.c: Likewise.
1278 * dwarf2read.c: Likewise.
1279 * eval.c: Likewise.
1280 * event-loop.c: Likewise.
1281 * exceptions.c: Likewise.
1282 * expprint.c: Likewise.
1283 * f-valprint.c: Likewise.
1284 * fbsd-nat.c: Likewise.
1285 * findvar.c: Likewise.
1286 * frame-unwind.c: Likewise.
1287 * frame.c: Likewise.
1288 * frv-tdep.c: Likewise.
1289 * gcore.c: Likewise.
1290 * gdb-dlfcn.c: Likewise.
1291 * gdb_bfd.c: Likewise.
1292 * gdbarch.c: Likewise.
1293 * gdbarch.sh: Likewise.
1294 * gdbtypes.c: Likewise.
1295 * gnu-nat.c: Likewise.
1296 * gnu-v3-abi.c: Likewise.
1297 * go-lang.c: Likewise.
1298 * guile/scm-exception.c: Likewise.
1299 * guile/scm-gsmob.c: Likewise.
1300 * guile/scm-lazy-string.c: Likewise.
1301 * guile/scm-math.c: Likewise.
1302 * guile/scm-pretty-print.c: Likewise.
1303 * guile/scm-safe-call.c: Likewise.
1304 * guile/scm-utils.c: Likewise.
1305 * guile/scm-value.c: Likewise.
1306 * h8300-tdep.c: Likewise.
1307 * hppa-hpux-nat.c: Likewise.
1308 * hppa-tdep.c: Likewise.
1309 * hppanbsd-tdep.c: Likewise.
1310 * hppaobsd-tdep.c: Likewise.
1311 * i386-darwin-nat.c: Likewise.
1312 * i386-darwin-tdep.c: Likewise.
1313 * i386-nto-tdep.c: Likewise.
1314 * i386-tdep.c: Likewise.
1315 * i386bsd-nat.c: Likewise.
1316 * i386fbsd-tdep.c: Likewise.
1317 * i386gnu-nat.c: Likewise.
1318 * i386nbsd-tdep.c: Likewise.
1319 * i386obsd-tdep.c: Likewise.
1320 * i387-tdep.c: Likewise.
1321 * ia64-libunwind-tdep.c: Likewise.
1322 * ia64-tdep.c: Likewise.
1323 * inf-ptrace.c: Likewise.
1324 * inf-ttrace.c: Likewise.
1325 * infcall.c: Likewise.
1326 * infcmd.c: Likewise.
1327 * infrun.c: Likewise.
1328 * inline-frame.c: Likewise.
1329 * interps.c: Likewise.
1330 * jv-lang.c: Likewise.
1331 * jv-typeprint.c: Likewise.
1332 * linux-fork.c: Likewise.
1333 * linux-nat.c: Likewise.
1334 * linux-thread-db.c: Likewise.
1335 * m32c-tdep.c: Likewise.
1336 * m32r-linux-nat.c: Likewise.
1337 * m32r-tdep.c: Likewise.
1338 * m68k-tdep.c: Likewise.
1339 * m68kbsd-nat.c: Likewise.
1340 * m68kbsd-tdep.c: Likewise.
1341 * m88k-tdep.c: Likewise.
1342 * machoread.c: Likewise.
1343 * macroexp.c: Likewise.
1344 * macrotab.c: Likewise.
1345 * maint.c: Likewise.
1346 * mdebugread.c: Likewise.
1347 * memory-map.c: Likewise.
1348 * mep-tdep.c: Likewise.
1349 * mi/mi-common.c: Likewise.
1350 * microblaze-tdep.c: Likewise.
1351 * mingw-hdep.c: Likewise.
1352 * mips-linux-nat.c: Likewise.
1353 * mips-linux-tdep.c: Likewise.
1354 * mips-tdep.c: Likewise.
1355 * mips64obsd-tdep.c: Likewise.
1356 * mipsnbsd-tdep.c: Likewise.
1357 * mn10300-linux-tdep.c: Likewise.
1358 * mn10300-tdep.c: Likewise.
1359 * moxie-tdep.c: Likewise.
1360 * mt-tdep.c: Likewise.
1361 * nat/linux-btrace.c: Likewise.
1362 * nat/linux-osdata.c: Likewise.
1363 * nat/linux-ptrace.c: Likewise.
1364 * nat/mips-linux-watch.c: Likewise.
1365 * nios2-linux-tdep.c: Likewise.
1366 * nios2-tdep.c: Likewise.
1367 * objc-lang.c: Likewise.
1368 * objfiles.c: Likewise.
1369 * obsd-nat.c: Likewise.
1370 * opencl-lang.c: Likewise.
1371 * osabi.c: Likewise.
1372 * parse.c: Likewise.
1373 * ppc-linux-nat.c: Likewise.
1374 * ppc-sysv-tdep.c: Likewise.
1375 * ppcfbsd-nat.c: Likewise.
1376 * ppcfbsd-tdep.c: Likewise.
1377 * ppcnbsd-nat.c: Likewise.
1378 * ppcnbsd-tdep.c: Likewise.
1379 * ppcobsd-nat.c: Likewise.
1380 * ppcobsd-tdep.c: Likewise.
1381 * printcmd.c: Likewise.
1382 * procfs.c: Likewise.
1383 * prologue-value.c: Likewise.
1384 * psymtab.c: Likewise.
1385 * python/py-lazy-string.c: Likewise.
1386 * python/py-value.c: Likewise.
1387 * regcache.c: Likewise.
1388 * reggroups.c: Likewise.
1389 * registry.c: Likewise.
1390 * remote-sim.c: Likewise.
1391 * remote.c: Likewise.
1392 * rs6000-aix-tdep.c: Likewise.
1393 * rs6000-tdep.c: Likewise.
1394 * s390-linux-tdep.c: Likewise.
1395 * score-tdep.c: Likewise.
1396 * ser-base.c: Likewise.
1397 * ser-mingw.c: Likewise.
1398 * sh-tdep.c: Likewise.
1399 * sh64-tdep.c: Likewise.
1400 * solib-darwin.c: Likewise.
1401 * solib-spu.c: Likewise.
1402 * solib-svr4.c: Likewise.
1403 * source.c: Likewise.
1404 * sparc-nat.c: Likewise.
1405 * sparc-sol2-tdep.c: Likewise.
1406 * sparc-tdep.c: Likewise.
1407 * sparc64-sol2-tdep.c: Likewise.
1408 * sparc64-tdep.c: Likewise.
1409 * sparc64fbsd-tdep.c: Likewise.
1410 * sparc64nbsd-tdep.c: Likewise.
1411 * sparc64obsd-tdep.c: Likewise.
1412 * sparcnbsd-tdep.c: Likewise.
1413 * sparcobsd-tdep.c: Likewise.
1414 * spu-multiarch.c: Likewise.
1415 * spu-tdep.c: Likewise.
1416 * stabsread.c: Likewise.
1417 * stack.c: Likewise.
1418 * symfile.c: Likewise.
1419 * symtab.c: Likewise.
1420 * target-descriptions.c: Likewise.
1421 * target-memory.c: Likewise.
1422 * target.c: Likewise.
1423 * tic6x-linux-tdep.c: Likewise.
1424 * tic6x-tdep.c: Likewise.
1425 * tilegx-linux-nat.c: Likewise.
1426 * tilegx-tdep.c: Likewise.
1427 * top.c: Likewise.
1428 * tramp-frame.c: Likewise.
1429 * tui/tui-out.c: Likewise.
1430 * tui/tui-winsource.c: Likewise.
1431 * ui-out.c: Likewise.
1432 * user-regs.c: Likewise.
1433 * utils.c: Likewise.
1434 * v850-tdep.c: Likewise.
1435 * valops.c: Likewise.
1436 * value.c: Likewise.
1437 * varobj.c: Likewise.
1438 * vax-nat.c: Likewise.
1439 * xml-syscall.c: Likewise.
1440 * xml-tdesc.c: Likewise.
1441 * xstormy16-tdep.c: Likewise.
1442 * xtensa-linux-nat.c: Likewise.
1443 * xtensa-tdep.c: Likewise.
1444
e76df0d0
GB
14452014-08-07 Gary Benson <gbenson@redhat.com>
1446
1447 * common/common-defs.h: Include common-utils.h.
1448 * defs.h: Do not include common-utils.h.
1449 * common/gdb_assert.h: Likewise.
1450 * darwin-nat.h: Likewise.
1451 * nat/linux-btrace.c: Likewise.
1452 * target/waitstatus.h: Likewise.
1453
4cb9c816
GB
14542014-08-07 Gary Benson <gbenson@redhat.com>
1455
1456 * common/common-defs.h: Include ptid.h.
1457 * defs.h: Do not include ptid.h.
1458 * inferior.h: Likewise.
1459 * infrun.h: Likewise.
1460 * nat/linux-btrace.h: Likewise.
1461 * nat/linux-osdata.h: Likewise.
1462 * target/waitstatus.h: Likewise.
1463
3995eeee
GB
14642014-08-07 Gary Benson <gbenson@redhat.com>
1465
1466 * common/common-defs.h: Include gdb_locale.h.
1467 * defs.h: Do not include gdb_locale.h.
1468
cb9f1a9b
GB
14692014-08-07 Gary Benson <gbenson@redhat.com>
1470
1471 * common/common-defs.h: Include gdb/signals.h.
1472 * defs.h: Do not include gdb/signals.h.
1473
a5fceff8
GB
14742014-08-07 Gary Benson <gbenson@redhat.com>
1475
1476 * common/common-defs.h: Include pathmax.h.
1477 * defs.h: Do not include pathmax.h.
1478
b9391142
GB
14792014-08-07 Gary Benson <gbenson@redhat.com>
1480
1481 * common/common-defs.h: Include libiberty.h.
1482 * defs.h: Do not include libiberty.h.
1483 * common/queue.h: Likewise.
1484 * cp-name-parser.y: Likewise.
1485 * mi/mi-cmd-catch.c: Likewise.
1486 * python/python.c: Likewise.
1487
0e443c87
GB
14882014-08-07 Gary Benson <gbenson@redhat.com>
1489
1490 * common/common-defs.h: Include ansidecl.h.
1491 * defs.h: Do not include ansidecl.h.
1492 * common/buffer.h: Likewise.
1493 * common/common-utils.h: Likewise.
1494
8ebb3f56
GB
14952014-08-07 Gary Benson <gbenson@redhat.com>
1496
1497 * common/common-defs.h: Include stddef.h.
1498 * defs.h: Do not include stddef.h.
1499 * common/common-utils.h: Likewise.
1500 * amd64fbsd-nat.c: Likewise.
1501 * bcache.c: Likewise.
1502 * charset.c: Likewise.
1503 * common/buffer.h: Likewise.
1504 * common/vec.h: Likewise.
1505 * i386bsd-nat.c: Likewise.
1506 * nat/linux-btrace.h: Likewise.
1507 * ppcfbsd-nat.c: Likewise.
1508 * ppcnbsd-tdep.h: Likewise.
1509 * ppcobsd-nat.c: Likewise.
1510 * ppcobsd-tdep.h: Likewise.
1511 * python/py-gdb-readline.c: Likewise.
1512
8980bdf6
GB
15132014-08-07 Gary Benson <gbenson@redhat.com>
1514
1515 * common/common-defs.h: Include stdarg.h.
1516 * defs.h: Do not include stdarg.h.
1517 * ada-lang.c: Likewise.
1518 * common/common-utils.h: Likewise.
1519 * guile/scm-string.c: Likewise.
1520 * guile/scm-utils.c: Likewise.
1521 * m32c-tdep.c: Likewise.
1522
d7096f71
GB
15232014-08-07 Gary Benson <gbenson@redhat.com>
1524
1525 * common/common-defs.h: Include stdlib.h.
1526 * defs.h: Do not include stdlib.h.
1527 * addrmap.c: Likewise.
1528 * bcache.c: Likewise.
1529 * common/buffer.c: Likewise.
1530 * common/common-utils.c: Likewise.
1531 * cp-name-parser.y: Likewise.
1532 * go32-nat.c: Likewise.
1533 * mn10300-linux-tdep.c: Likewise.
1534 * nat/linux-osdata.c: Likewise.
1535 * tui/tui.c: Likewise.
1536 * windows-nat.c: Likewise.
1537
d02f550d
GB
15382014-08-07 Gary Benson <gbenson@redhat.com>
1539
1540 * common/common-defs.h: Include stdio.h.
1541 * defs.h: Do not include stdio.h.
1542 * ada-lang.c: Likewise.
1543 * common/buffer.c: Likewise.
1544 * common/common-utils.c: Likewise.
1545 * cp-name-parser.y: Likewise.
1546 * gnu-nat.c: Likewise.
1547 * go32-nat.c: Likewise.
1548 * i386gnu-nat.c: Likewise.
1549 * proc-api.c: Likewise.
1550 * proc-events.c: Likewise.
1551 * proc-flags.c: Likewise.
1552 * proc-why.c: Likewise.
1553 * python/python-internal.h: Likewise.
1554 * target-memory.c: Likewise.
1555 * tui/tui-io.c: Likewise.
1556 * tui/tui.c: Likewise.
1557
b6d7a4bf
SM
15582014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1559
1560 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1561 (scan_dyntag_auxv): Same.
1562
af19829b
YQ
15632014-08-06 Yao Qi <yao@codesourcery.com>
1564
1565 * amd64-linux-nat.c: Remove duplicated include
1566 "x86-linux-nat.h".
1567 * i386-linux-nat.c: Likewise.
1568
8e07a239
YQ
15692014-08-06 Yao Qi <yao@codesourcery.com>
1570
1571 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1572 operand" with "Special opcode" in comments.
1573
7bfe8241
GB
15742014-08-05 Gary Benson <gbenson@redhat.com>
1575
1576 * interps.c (initialize_interps): Remove prototype.
1577 (interpreter_initialized): Remove static global.
1578 (interp_add): Do not call initialize_interps.
1579 (initialize_interps): Remove function.
1580
d6c95504
GB
15812014-08-05 Gary Benson <gbenson@redhat.com>
1582
1583 * utils.c (vwarning): Remove spurious va_end.
1584
241fd515
AM
15852014-08-05 Alan Modra <amodra@gmail.com>
1586
1587 * charset.c (convert_between_encodings): Cast result of obstack_base.
1588 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1589 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1590 (read_unwind_info): Use size_t for some locals.
1591 * jit.c (finalize_symtab): Likewise.
1592 * utils.c (hashtab_obstack_allocate): Likewise.
1593 * symmisc.c (print_objfile_statistics): Update format strings.
1594
dc304a94
JK
15952014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1596
1597 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1598 (Changes in GDB 7.8): ... here.
1599
3cecbbbe
TT
16002014-08-04 Tom Tromey <tromey@redhat.com>
1601
1602 * target.c (set_targetdebug): New function.
1603 (initialize_targets): Pass set_targetdebug when creating "set
1604 debug target".
1605
6908c509
JB
16062014-08-01 Joel Brobecker <brobecker@adacore.com>
1607
1608 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1609 if detecting a variable-sized field that is not the last field.
1610 Fix struct type length computation.
1611
53e8f97d
JB
16122014-08-01 Joel Brobecker <brobecker@adacore.com>
1613
1614 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1615 Add debug trace.
1616
e068c55d
JB
16172014-08-01 Joel Brobecker <brobecker@adacore.com>
1618
1619 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1620 Remove "+ 8" offset in computation of CHAIN_VMA.
1621
4d4ca2a1
DE
16222014-07-31 Doug Evans <dje@google.com>
1623
1624 * inflow.c (child_terminal_inferior): Add comment.
1625 (child_terminal_ours_for_output): Add comment.
1626 (child_terminal_ours): Add comment.
1627 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1628 (linux_nat_terminal_ours): Add comment.
1629
462f517e
GB
16302014-07-31 Gary Benson <gbenson@redhat.com>
1631
1632 * common/btrace-common.h: Do not include defs.h or server.h.
1633 * nat/mips-linux-watch.h: Likewise.
1634 * gdb-dlfcn.h: Do not include defs.h.
1635 * tracefile.h: Likewise.
1636
74228e77
RM
16372014-07-30 Roland McGrath <mcgrathr@google.com>
1638
1639 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1640
014f9477
TT
16412014-07-30 Tom Tromey <tromey@redhat.com>
1642
1643 * bsd-kvm.c (bsd_kvm_open): Constify.
1644 * corelow.c (core_open): Constify.
1645 * ctf.c (ctf_open): Constify.
1646 * dbug-rom.c (dbug_open): Constify.
1647 * exec.c (exec_open): Constify.
1648 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1649 * microblaze-rom.c (picobug_open): Constify.
1650 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1651 Constify.
1652 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1653 * record-btrace.c (record_btrace_open): Constify.
1654 * record-full.c (record_full_core_open_1, record_full_open_1)
1655 (record_full_open): Constify.
1656 * remote-m32r-sdi.c (m32r_open): Constify.
1657 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1658 (rockhopper_open, lsi_open): Constify.
1659 * remote-sim.c (gdbsim_open): Constify.
1660 * remote.c (remote_open, extended_remote_open, remote_open_1):
1661 Constify.
1662 * target.h (struct target_ops) <to_open>: Make "arg" const.
1663 * tracefile-tfile.c (tfile_open): Constify.
1664
e799154c
TT
16652014-07-30 Tom Tromey <tromey@redhat.com>
1666
1667 * breakpoint.c (map_breakpoint_numbers): Update.
1668 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1669 (get_number_const): New function.
1670 (get_number): Rewrite using get_number_const.
1671 (init_number_or_range): Make "string" const.
1672 (number_is_in_list): Make "list" const.
1673 * cli/cli-utils.h (get_number_const): Declare.
1674 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1675 (init_number_or_range, number_is_in_list): Update.
1676 * printcmd.c (map_display_numbers): Update.
1677 * value.c (value_from_history_ref): Constify.
1678 * value.h (value_from_history_ref): Update.
1679
5f08566b
TT
16802014-07-30 Tom Tromey <tromey@redhat.com>
1681
1682 * corefile.c (hook_type, call_extra_exec_file_hooks)
1683 (specify_exec_file_hook): Constify.
1684 * exec.c (exec_file_attach): Make "filename" const.
1685 * gdbcore.h (deprecated_exec_file_display_hook)
1686 (specify_exec_file_hook, exec_file_attach): Constify.
1687 * main.c (captured_main): Use catch_command_errors_const.
1688
8981c758
TT
16892014-07-30 Tom Tromey <tromey@redhat.com>
1690
1691 * target.c (open_target): New function.
1692 (add_target_with_completer, add_deprecated_target_alias): Use
1693 set_cmd_sfunc, set_cmd_context.
1694 (debug_to_open): Remove.
1695 (setup_target_debug): Update.
1696
a1c7835a
YQ
16972014-07-30 Yao Qi <yao@codesourcery.com>
1698
1699 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1700 comments.
1701 * parse.c (exp_iterate): Update comments.
1702
976411d6
GB
17032014-07-30 Gary Benson <gbenson@redhat.com>
1704
1705 * common/common-defs.h: New file.
1706 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1707 * defs.h: Include common-defs.h.
1708 Do not include config.h or build-gnulib/config.h.
1709
5d4848a4
GB
17102014-07-30 Gary Benson <gbenson@redhat.com>
1711
1712 * common/common-utils.h: Do not include config.h.
1713 * nat/linux-btrace.h: Likewise.
1714
d41f6d8e
GB
17152014-07-30 Gary Benson <gbenson@redhat.com>
1716
1717 * btrace.c: Include defs.h.
1718 * common/ptid.c: Include defs.h or server.h as appropriate.
1719 * nat/mips-linux-watch.c: Likewise.
1720
84202f9c
TT
17212014-07-29 Tom Tromey <tromey@redhat.com>
1722
1723 * target.c (target_is_pushed): Simplify.
1724
2530441c
JB
17252014-07-29 Joel Brobecker <brobecker@adacore.com>
1726
1727 GDB 7.8 released.
1728
7e09a223
YQ
17292014-07-29 Yao Qi <yao@codesourcery.com>
1730
1731 PR gdb/17206
1732 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1733
7ebdbe92
DE
17342014-07-28 Doug Evans <xdje42@gmail.com>
1735
1736 PR guile/17203
1737 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1738 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1739 parameters.
1740
f347ffc9
WN
17412014-07-28 Will Newton <will.newton@linaro.org>
1742
1743 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1744 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1745 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1746 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1747 (THUMB2_EABI_SYSCALL): Likewise.
1748 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1749 struct tramp_frame.
1750 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1751 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1752
37c5f1f7
DE
17532014-07-27 Doug Evans <xdje42@gmail.com>
1754
1755 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1756
0c3abbc7
DE
17572014-07-27 Doug Evans <xdje42@gmail.com>
1758
1759 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1760
e76c5d17
DE
17612014-07-26 Ludovic Courtès <ludo@gnu.org>
1762 Doug Evans <xdje42@gmail.com>
1763
1764 PR guile/17146
1765 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1766 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1767 * configure.ac: Try to use guild to compile an scm file, if it fails
1768 then disable guile support.
1769 * configure: Regenerate.
1770 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1771 GUILE_FILE_LIST.
1772 (GUILE_COMPILED_FILES): New variable.
1773 (GUILE_FILES) Update.
1774 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1775 (stamp-guile): Compile scm files.
1776 * guile/guile.c (boot_guile_support): New function.
1777 (standard_throw_args_p): New function.
1778 (print_standard_throw_error, print_throw_error): New functions.
1779 (handle_boot_error): New function.
1780 (initialize_scheme_side): Rewrite to call boot_guile_support.
1781 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1782 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1783
186fcde0
DE
17842014-07-26 Ludovic Courtès <ludo@gnu.org>
1785 Doug Evans <xdje42@gmail.com>
1786
1787 PR guile/17146
1788 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1789 * guile/lib/gdb/support.scm: New file.
1790 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1791 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1792 All uses updated.
1793 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1794 All uses updated.
1795 (%assert-type): Ditto, and renamed to assert-type.
1796 (%exception-print-style): Delete.
1797
4df42755
DE
17982014-07-26 Doug Evans <xdje42@gmail.com>
1799
1800 PR build/17105
1801 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1802 * configure: Regenerate.
1803 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1804 PYTHON_FILES.
1805 (PYTHON_FILES): New variable.
1806 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1807 (GUILE_FILES): New variable.
1808 (stamp-python, install-python, uninstall-python): Handle empty
1809 file list.
1810 (stamp-guile, install-guile, uninstall-guile): Ditto.
1811
ee7333ae
DE
18122014-07-26 Doug Evans <xdje42@gmail.com>
1813
1814 PR guile/17177
1815 * guile/lib/gdb.scm (pretty-printers): Export.
1816 (set-pretty-printers!): Export.
1817 * guile/lib/gdb/printing.scm (gdb module): Update.
1818 (prepend-pretty-printer!, append-pretty-printer!): Update.
1819 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1820 (pretty_printer_list_var): Delete.
1821 (pretty_printer_list): New static global.
1822 (gdbscm_pretty_printers): New function.
1823 (gdbscm_set_pretty_printers_x): New function.
1824 (ppscm_find_pretty_printer_from_gdb): Update.
1825 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1826 (gdbscm_initialize_pretty_printers): Update.
1827
74edf516
DE
18282014-07-26 Doug Evans <xdje42@gmail.com>
1829
1830 PR 17185
1831 * configure.ac: Add check for header gc/gc.h.
1832 Add check for function setenv.
1833 * configure: Regenerate.
1834 * config.in: Regenerate.
1835 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1836
d54398a7
MR
18372014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1838
1839 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1840 variation in gdbarch matching.
1841
ab16fce8
TT
18422014-07-25 Tom Tromey <tromey@redhat.com>
1843
1844 * exec.c (using_exec_ops): Remove.
1845 (exec_close_1): Update. Remove extraneous block, reindent.
1846 (add_target_sections): Use target_is_pushed.
1847
88056fbb
PA
18482014-07-25 Pedro Alves <palves@redhat.com>
1849
1850 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1851 * monitor.c (monitor_create_inferior): Likewise.
1852 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1853 * remote-sim.c (gdbsim_create_inferior): Likewise.
1854 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1855 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1856 * windows-nat.c (do_initial_windows_stuff): Likewise.
1857
70509625
PA
18582014-07-25 Pedro Alves <palves@redhat.com>
1859
1860 * NEWS: Mention signal passing and "signal" command changes.
1861 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1862 comment.
1863 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1864 call.
1865 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1866 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1867 (jump_command): Adjust clear_proceed_status call.
1868 (signal_command): Warn if other thread that are resumed have
1869 signals that will be delivered. Adjust clear_proceed_status call.
1870 (until_next_command, finish_command)
1871 (proceed_after_attach_callback, attach_command_post_wait)
1872 (attach_command): Adjust clear_proceed_status call.
1873 * infrun.c (proceed_after_vfork_done): Likewise.
1874 (proceed_after_attach_callback): Adjust comment.
1875 (clear_proceed_status_thread): Clear stop_signal if not in pass
1876 state.
1877 (clear_proceed_status_callback): Delete.
1878 (clear_proceed_status): New 'step' parameter. Only clear the
1879 proceed status of threads the command being prepared is about to
1880 resume.
1881 (proceed): If passed in an explicit signal, override stop_signal
1882 with it. Don't pass the last stop signal to the thread we're
1883 resuming.
1884 (init_wait_for_inferior): Adjust clear_proceed_status call.
1885 (switch_back_to_stepped_thread): Clear the signal if it should not
1886 be passed.
1887 * infrun.h (clear_proceed_status): New 'step' parameter.
1888 (user_visible_resume_ptid): Add comment.
1889 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1890 signal is in pass state.
1891 * remote.c (append_pending_thread_resumptions): Likewise.
1892 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1893
d8be2939
TT
18942014-07-25 Tom Tromey <tromey@redhat.com>
1895
1896 * target.h (target_stopped_data_address)
1897 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1898 parentheses.
1899
7d0d9d2b
PL
19002014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1901
1902 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1903 comments.
1904 (avr_pointer_to_address): Likewise.
1905
e9e7f724
TT
19062014-07-24 Tom Tromey <tromey@redhat.com>
1907
1908 * monitor.c (compile_pattern): Update.
1909 * target.h (struct target_ops) <to_shortname, to_longname,
1910 to_doc>: Now const.
1911
1947513d
TT
19122014-07-24 Tom Tromey <tromey@redhat.com>
1913
1914 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1915 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1916 (add_info_alias, add_com): Make "doc" const.
1917 (print_doc_line): Make "str" const.
1918 (delete_cmd): Update.
1919 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1920 (print_doc_line): Update.
1921 * cli/cli-script.c (document_command): Update.
1922 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1923 (add_com, add_info, add_info_alias): Update.
1924 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1925 * python/py-cmd.c (cmdpy_destroyer): Update.
1926
64e61d29
TT
19272014-07-24 Tom Tromey <tromey@redhat.com>
1928
1929 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1930 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1931 (help_cmd_list): Constify.
1932 (lookup_cmd): Update.
1933 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1934 const.
1935 (help_cmd_list, apropos_cmd): Update.
1936 * cli/cli-script.c (show_user): Update.
1937 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1938 * cli/cli-setshow.h (cmd_show_list): Update.
1939 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1940 (cmd_show_list): Update.
1941 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1942 * python/py-cmd.c (cmdpy_destroyer): Update.
1943
429e55ea
TT
19442014-07-24 Tom Tromey <tromey@redhat.com>
1945
1946 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1947 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1948 const.
1949 * command.h (deprecate_cmd): Update.
1950 * maint.c (maintenance_do_deprecate): Add casts.
1951
64669f3b
TT
19522014-07-24 Tom Tromey <tromey@redhat.com>
1953
1954 * cli/cli-decode.c (help_cmd): Make parameter "const".
1955 * cli/cli-decode.h (help_cmd): Update.
1956
d3d3328b
TT
19572014-07-24 Tom Tromey <tromey@redhat.com>
1958
1959 * stack.c (up_silently_base, down_silently_base): Make argument
1960 const.
1961
414842dc
TT
19622014-07-24 Tom Tromey <tromey@redhat.com>
1963
1964 * solib.c (solib_add): Make "pattern" const.
1965 * solib.h (solib_add): Update.
1966
baa336ce
TT
19672014-07-24 Tom Tromey <tromey@redhat.com>
1968
1969 * remote.c (remote_serial_open, print_packet, putpkt)
1970 (putpkt_binary): Constify.
1971 * remote.h (putpkt): Update.
1972
5a19e2d0
TT
19732014-07-24 Tom Tromey <tromey@redhat.com>
1974
1975 * monitor.c (monitor_open): Make "args" const.
1976 * monitor.h (monitor_open): Update.
1977
fc4baa5e
TT
19782014-07-24 Tom Tromey <tromey@redhat.com>
1979
1980 * maint.c (match_bfd_flags): Make "string" const.
1981 (print_bfd_section_info): Remove casts.
1982 (print_objfile_section_info): Make "string" const.
1983
0d5f0dbe
TT
19842014-07-24 Tom Tromey <tromey@redhat.com>
1985
1986 * inf-child.c (inf_child_open_target): Make "arg" const.
1987 * inf-child.h (inf_child_open_target): Update.
1988
41c77899
TT
19892014-07-24 Tom Tromey <tromey@redhat.com>
1990
1991 * environ.c (unset_in_environ): Make "var" const.
1992 * environ.h (unset_in_environ): Update.
1993
93db0d79
TT
19942014-07-24 Tom Tromey <tromey@redhat.com>
1995
1996 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1997 Make "cmd" const.
1998 (scan_filename_with_cleanup): Likewise.
1999 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
2000 Make arguments const.
2001 (restore_command): Update.
2002
36d6eb95
PA
20032014-07-24 Pedro Alves <palves@redhat.com>
2004
2005 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
2006
8009206a
TT
20072014-07-24 Tom Tromey <tromey@redhat.com>
2008 Gary Benson <gbenson@redhat.com>
2009
2010 * nat/linux-ptrace.c (additional_flags): New global.
2011 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
2012 additional_flags; don't check GDBSERVER.
2013 (linux_ptrace_set_additional_flags): New function.
2014 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
2015 Declare.
2016 * linux-nat.c (_initialize_linux_nat): Call
2017 linux_ptrace_set_additional_flags.
2018
a7068b60
TT
20192014-07-24 Tom Tromey <tromey@redhat.com>
2020
2021 * make-target-delegates (munge_type, write_debugmethod): New
2022 functions.
2023 (debug_names): New global.
2024 ($TARGET_DEBUG_PRINTER): New global.
2025 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
2026 name.
2027 Write debug methods. Generate init_debug_target.
2028 * target-debug.h: New file.
2029 * target-delegates.c: Rebuild.
2030 * target.c: Include target-debug.h.
2031 (debug_target): Hoist definition.
2032 (target_kill, target_get_section_table, target_memory_map)
2033 (target_flash_erase, target_flash_done, target_detach)
2034 (target_disconnect, target_wait, target_resume)
2035 (target_pass_signals, target_program_signals, target_follow_fork)
2036 (target_mourn_inferior, target_search_memory)
2037 (target_thread_address_space, target_close)
2038 (target_find_new_threads, target_core_of_thread)
2039 (target_verify_memory, target_insert_mask_watchpoint)
2040 (target_remove_mask_watchpoint): Remove targetdebug code.
2041 (debug_to_post_attach, debug_to_prepare_to_store)
2042 (debug_to_files_info, debug_to_insert_breakpoint)
2043 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
2044 (debug_to_region_ok_for_hw_watchpoint)
2045 (debug_to_can_accel_watchpoint_condition)
2046 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
2047 (debug_to_watchpoint_addr_within_range)
2048 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
2049 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
2050 (debug_to_terminal_init, debug_to_terminal_inferior)
2051 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
2052 (debug_to_terminal_save_ours, debug_to_terminal_info)
2053 (debug_to_load, debug_to_post_startup_inferior)
2054 (debug_to_insert_fork_catchpoint)
2055 (debug_to_remove_fork_catchpoint)
2056 (debug_to_insert_vfork_catchpoint)
2057 (debug_to_remove_vfork_catchpoint)
2058 (debug_to_insert_exec_catchpoint)
2059 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
2060 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
2061 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
2062 (setup_target_debug): Call init_debug_target.
2063 * target.h (TARGET_DEBUG_PRINTER): New macro.
2064 (struct target_ops) <to_resume, to_wait, to_pass_signals,
2065 to_program_signals>: Use TARGET_DEBUG_PRINTER.
2066
2c51604d
GB
20672014-07-24 Gary Benson <gbenson@redhat.com>
2068
2069 * exceptions.h (throw_vfatal): Renamed to...
2070 (throw_vquit): New declaration.
2071 (throw_quit): Likewise.
2072 * exceptions.c (throw_vfatal): Renamed to...
2073 (throw_vquit): New function.
2074 (throw_quit): Likewise.
2075 (throw_error): Call throw_verror rather than throw_it.
2076 * utils.h (vfatal): Removed.
2077 (fatal): Likewise.
2078 * utils.c (vfatal): Removed.
2079 (fatal): Likewise.
2080 (internal_verror): Replaced call to fatal with call to throw_quit.
2081 (quit): Replaced calls to fatal with calls to throw_quit.
2082
34211963
ME
20832014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
2084
2085 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
2086 target_read_code.
2087
a52b4d3e
ME
20882014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
2089
2090 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
2091 less than zero in conditional expression.
2092
a8bdc56b
TT
20932014-07-23 Tom Tromey <tromey@redhat.com>
2094
2095 * make-target-delegates ($ARGS_PART): Match trailing close paren.
2096 ($INTRO_PART): Don't match whitespace.
2097 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
2098 argument matching.
2099 ($METHOD): Add $METHOD_TRAILER.
2100 (trim): Rewrite.
2101 (scan_target_h): New sub.
2102 Change main loop not to collect state.
2103 * target-delegates.c: Rebuild.
2104
91b52240
GB
21052014-07-23 Gary Benson <gbenson@redhat.com>
2106
2107 * cp-support.c (gdb_demangle): Fix build on systems without
2108 sigaltstack.
2109
45326f6f
JK
21102014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2111
2112 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
2113 for reference entry value target data value.
2114
e214cf6c
JK
21152014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2116
2117 * stack.c (read_frame_arg): Verify value_optimized_out before calling
2118 value_available_contents_eq.
2119
bddbbedd
PA
21202014-07-22 Pedro Alves <palves@redhat.com>
2121
2122 * value.c (allocate_optimized_out_value): Don't mark value as
2123 non-lazy.
2124
45c71484
JW
21252014-07-22 Jiong Wang <jiong.wang@arm.com>
2126
2127 * MAINTAINERS (Write After Approval): Update my email address.
2128
9597b22a
DE
21292014-07-20 Doug Evans <dje@google.com>
2130
2131 PR server/17147
2132 * remote.c (putpkt_binary): Add text to error message.
2133
91101fe5
YQ
21342014-07-20 Yao Qi <yao@codesourcery.com>
2135
2136 * eval.c: Remove "Chill" from comments.
2137 * gdbtypes.h: Likewise.
2138 * symtab.h: Likewise.
2139
c9402c95
YQ
21402014-07-20 Yao Qi <yao@codesourcery.com>
2141
2142 * std-operator.def: Update comments to TERNOP_SLICE.
2143
ae8fddda
YQ
21442014-07-20 Yao Qi <yao@codesourcery.com>
2145
2146 * std-operator.def: Remove BINOP_RANGE.
2147 * breakpoint.c (watchpoint_exp_is_const): Update.
2148 * expprint.c (dump_subexp_body_standard): Likewise.
2149 * eval.c (init_array_element): Remove dead code.
2150 (evaluate_subexp_standard): Likewise.
2151
9c816640
YQ
21522014-07-20 Yao Qi <yao@codesourcery.com>
2153
2154 * std-operator.def: Remove BINOP_IN.
2155 * breakpoint.c (watchpoint_exp_is_const): Update.
2156 * eval.c (evaluate_subexp_standard): Likewise.
2157 * expprint.c (dump_subexp_body_standard): Likewise.
2158
164224e9
ME
21592014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
2160
2161 * microblaze-tdep.c (microblaze_register_names): Add
2162 the rshr and rslr register names.
2163 (microblaze_gdbarch_init): Use of tdesc_has_registers.
2164 Use of tdesc_find_feature. Use of tdesc_data_alloc.
2165 Use of tdesc_numbered_register. Use of
2166 microblaze_register_g_packet_guesses. Use of
2167 tdesc_use_registers. Use of set_gdbarch_register_type.
2168 (microblaze_register_g_packet_guesses): New.
2169 * microblaze-tdep.h (microblaze_reg_num): Add
2170 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
2171 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
2172 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
2173 * features/microblaze-core.xml: New file.
2174 * features/microblaze-stack-protect.xml: New file.
2175 * features/microblaze-with-stack-protect.c: New file.
2176 * features/microblaze-with-stack-protect.xml: New file.
2177 * features/microblaze.xml: New file.
2178 * features/microblaze.c: New file.
2179 * features/Makefile (microblaze-with-stack-protect): Add
2180 microblaze-with-stack-protect microblaze and microblaze-expedite.
2181 * regformats/microblaze-with-stack-protect.dat: New file.
2182 * regformats/microblaze.dat: New file.
2183 * doc/gdb.texinfo (MicroBlaze Features): Added.
2184
e8b2341c
TT
21852014-07-18 Tom Tromey <tromey@redhat.com>
2186
2187 * exec.c (exec_ops): Now static.
2188 * exec.h (exec_ops): Don't declare.
2189
44e89118
TT
21902014-07-18 Tom Tromey <tromey@redhat.com>
2191
2192 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
2193 to find_target_beneath.
2194 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
2195 find_target_beneath.
2196 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2197
b0ed115f
TT
21982014-07-18 Tom Tromey <tromey@redhat.com>
2199
2200 PR gdb/17130:
2201 * utils.c (quit): Use target_supports_terminal_ours.
2202 * target.h (target_supports_terminal_ours): Declare.
2203 * target.c (target_supports_delete_record): Don't check
2204 to_delete_record against NULL.
2205 (target_supports_terminal_ours): New function.
2206
e75fdfca
TT
22072014-07-18 Tom Tromey <tromey@redhat.com>
2208
2209 PR gdb/17130:
2210 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2211 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2212 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2213 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2214 * windows-nat.c (windows_xfer_partial): Always delegate.
2215 * record-btrace.c (record_btrace_xfer_partial): Simplify
2216 delegation.
2217 (record_btrace_fetch_registers, record_btrace_store_registers)
2218 (record_btrace_prepare_to_store, record_btrace_resume)
2219 (record_btrace_wait, record_btrace_find_new_threads)
2220 (record_btrace_thread_alive): Likewise.
2221 * procfs.c (procfs_xfer_partial): Always delegate.
2222 * corelow.c (core_xfer_partial): Always delegate.
2223 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2224
83814951
TT
22252014-07-18 Tom Tromey <tromey@redhat.com>
2226
2227 * exec.c (exec_make_note_section): Move earlier.
2228
b8b8facf
DE
22292014-07-17 Doug Evans <dje@google.com>
2230
74b49205 2231 PR gdb/17170
b8b8facf
DE
2232 * maint.c (count_symtabs_and_blocks): Handle NULL
2233 current_program_space.
2234 (report_command_stats): Check global enabled flag in addition to
2235 recorded enabled flag.
2236 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2237
69ff6be5
PA
22382014-07-16 Pedro Alves <palves@redhat.com>
2239
2240 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2241
252db1b5
TT
22422014-07-16 Tom Tromey <tromey@redhat.com>
2243
2244 * target.h (struct target_ops) <to_delete_record>: Reformat
2245 comment.
2246
a432721e
TT
22472014-07-16 Tom Tromey <tromey@redhat.com>
2248
2249 * target-delegates.c: Rebuild.
2250
487d9753
PL
22512014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2252
2253 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2254 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2255 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2256 (avr_pointer_to_address): Likewise.
2257 (avr_address_class_type_flags): New function.
2258 (avr_address_class_type_flags_to_name): Likewise.
2259 (avr_address_class_name_to_type_flags): Likewise.
2260 (avr_gdbarch_init): Set address_class_type_flags,
2261 address_class_type_flags_to_name and
2262 address_class_name_to_type_flags.
2263
57745c90
PA
22642014-07-15 Pedro Alves <palves@redhat.com>
2265
2266 * linux-nat.c (kill_callback): Save errno and work with saved
2267 copy.
2268
2d40be18
SM
22692014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2270
2271 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2272
572f6555
EBM
22732014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2274
2275 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2276 breakpoint support correctly.
2277
cc1c52ad
PA
22782014-07-14 Pedro Alves <palves@redhat.com>
2279
2280 * utils.c (prompt_for_continue): Call target_terminal_ours.
2281
1e973570
PA
22822014-07-14 Pedro Alves <palves@redhat.com>
2283
2284 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2285 catch_errors. Don't re-enable stdin or notify observers where,
2286 and rethrow error.
2287 (fetch_inferior_event_wrapper): Delete.
2288
93d6eb10
PA
22892014-07-14 Pedro Alves <palves@redhat.com>
2290
2291 PR gdb/17072
2292 * top.c: Include "inf-loop.h".
2293 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2294 field.
2295 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2296 was async before.
2297 (gdb_readline_wrapper): Store whether the target is async, and
2298 make it sync.
2299
0017922d
PA
23002014-07-14 Pedro Alves <palves@redhat.com>
2301
2302 PR gdb/17072
2303 * top.c (gdb_readline_wrapper_line): Tweak comment.
2304 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2305 the input handler callback.
2306
94696ad3
PA
23072014-07-14 Pedro Alves <palves@redhat.com>
2308
2309 PR gdb/17072
2310 * main.c: Include event-top.h.
2311 (handle_command_errors): New function.
2312 (catch_command_errors, catch_command_errors_const): Use it.
2313
9d1e69a2
PA
23142014-07-14 Pedro Alves <palves@redhat.com>
2315
2316 * exceptions.c (catch_command_errors, catch_command_errors_const):
2317 Moved to main.c.
2318 * exceptions.h (catch_command_errors_ftype)
2319 (catch_command_errors_const_ftype): Moved to main.c.
2320 (catch_command_errors, catch_command_errors_const): Delete
2321 declarations.
2322 * main.c (catch_command_errors_ftype)
2323 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2324 (catch_command_errors, catch_command_errors_const)): Moved here
2325 from exceptions.c and make static.
2326
feefc97b
PA
23272014-07-14 Pedro Alves <palves@redhat.com>
2328
2329 * exceptions.c (print_any_exception): Delete.
2330 (catch_exceptions_with_msg): Use exception_print instead of
2331 print_any_exception.
2332 (catch_errors): Use exception_fprintf instead of
2333 print_any_exception.
2334 (catch_command_errors, catch_command_errors_const): Use
2335 exception_print instead of print_any_exception.
2336
c933f875
PA
23372014-07-14 Pedro Alves <palves@redhat.com>
2338
2339 * infcall.c (run_inferior_call): Set 'sync_execution' while
2340 running the inferior call.
2341
feb6f816
PA
23422014-07-14 Pedro Alves <palves@redhat.com>
2343
2344 * value.c (value_contents_equal): Delete function.
2345 * value.h (value_contents_equal): Delete declaration.
2346
d98b7a16
TT
23472014-07-14 Tom Tromey <tromey@redhat.com>
2348
2349 PR exp/17106:
2350 * gdbtypes.c (is_dynamic_type_internal): New function, from
2351 is_dynamic_type.
2352 (is_dynamic_type): Rewrite.
2353 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2354 (resolve_dynamic_struct): Likewise.
2355 (resolve_dynamic_type_internal): New function, from
2356 resolve_dynamic_type.
2357 (resolve_dynamic_type): Rewrite.
2358
548740d6
TT
23592014-07-14 Tom Tromey <tromey@redhat.com>
2360
2361 * target.c (target_require_runnable): Also check record_stratum.
2362 Update comment.
2363
808f7ab1
YQ
23642014-07-11 Yao Qi <yao@codesourcery.com>
2365
2366 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2367 thumb_instruction_restores_sp return true.
2368
540314bd
YQ
23692014-07-11 Yao Qi <yao@codesourcery.com>
2370
2371 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2372 (thumb_in_function_epilogue_p): Call
2373 thumb_instruction_restores_sp.
2374
1db01f22
YQ
23752014-07-11 Yao Qi <yao@codesourcery.com>
2376
2377 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2378 'add sp, #imm'.
2379 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2380
3116063b
GB
23812014-07-11 Gary Benson <gbenson@redhat.com>
2382
2383 * amd64-linux-nat.c (gdbcore.h): Remove include.
2384 (regset.h): Likewise.
2385 (nat/linux-btrace.h): Likewise.
2386 (btrace.h): Likewise.
2387 (gdb_assert.h): Likewise.
2388 (string.h): Likewise.
2389 (sys/uio.h): Likewise.
2390 (sys/debugreg.h): Likewise.
2391 (sys/syscall.h): Likewise.
2392 (sys/procfs.h): Likewise.
2393 (sys/user.h): Likewise.
2394 (asm/ptrace.h): Likewise.
2395 (i386-nat.h): Likewise.
2396 * i386-linux-nat.c (i386-nat.h): Likewise.
2397 (regset.h): Likewise.
2398 (target.h): Likewise.
2399 (linux-nat.h): Likewise.
2400 (nat/linux-btrace.h): Likewise.
2401 (btrace.h): Likewise.
2402 (gdb_assert.h): Likewise.
2403 (string.h): Likewise.
2404 (sys/uio.h): Likewise.
2405 (sys/user.h): Likewise.
2406 (sys/procfs.h): Likewise.
2407 (sys/reg.h): Likewise.
2408 (sys/debugreg.h): Likewise.
2409 (ORIG_EAX): Remove definition.
2410
040baaf6
GB
24112014-07-11 Gary Benson <gbenson@redhat.com>
2412
2413 * i386-linux-nat.h: New file.
2414 * x86-linux-nat.h: Likewise.
2415 * x86-linux-nat.c: Likewise.
2416 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2417 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2418 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2419 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2420 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2421 (PTRACE_SETREGSET): Likewise.
2422 (arch_lwp_info): Now in x86-linux-nat.c.
2423 (have_ptrace_getregset): Now in x86-linux-nat.h.
2424 (x86_linux_dr_get): Now in x86-linux-nat.c.
2425 (x86_linux_dr_set): Likewise.
2426 (x86_linux_dr_get_addr): Likewise.
2427 (x86_linux_dr_get_control): Likewise.
2428 (x86_linux_dr_get_status): Likewise.
2429 (update_debug_registers_callback): Likewise.
2430 (x86_linux_dr_set_control): Likewise.
2431 (x86_linux_dr_set_addr): Likewise.
2432 (x86_linux_prepare_to_resume): Likewise.
2433 (x86_linux_new_thread): Likewise.
2434 (x86_linux_new_fork): Likewise.
2435 (x86_linux_get_thread_area): Likewise.
2436 (super_post_startup_inferior): Likewise.
2437 (x86_linux_child_post_startup_inferior): Likewise.
2438 (AMD64_LINUX_USER64_CS): Likewise.
2439 (AMD64_LINUX_X32_DS): Likewise.
2440 (x86_linux_read_description): Likewise.
2441 (x86_linux_enable_btrace): Likewise.
2442 (x86_linux_disable_btrace): Likewise.
2443 (x86_linux_teardown_btrace): Likewise.
2444 (x86_linux_read_btrace): Likewise.
2445 (x86_linux_create_target): Likewise.
2446 (x86_linux_add_target): Likewise.
2447 * i386-linux-nat.c (x86-linux-nat.h): New include.
2448 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2449 (PTRACE_SETREGSET): Likewise.
2450 (arch_lwp_info): Now in x86-linux-nat.c.
2451 (have_ptrace_getregset): Now in x86-linux-nat.h.
2452 (x86_linux_dr_get): Now in x86-linux-nat.c.
2453 (x86_linux_dr_set): Likewise.
2454 (x86_linux_dr_get_addr): Likewise.
2455 (x86_linux_dr_get_control): Likewise.
2456 (x86_linux_dr_get_status): Likewise.
2457 (update_debug_registers_callback): Likewise.
2458 (x86_linux_dr_set_control): Likewise.
2459 (x86_linux_dr_set_addr): Likewise.
2460 (x86_linux_prepare_to_resume): Likewise.
2461 (x86_linux_new_thread): Likewise.
2462 (x86_linux_new_fork): Likewise.
2463 (x86_linux_get_thread_area): Likewise.
2464 (super_post_startup_inferior): Likewise.
2465 (x86_linux_child_post_startup_inferior): Likewise.
2466 (AMD64_LINUX_USER64_CS): Likewise.
2467 (AMD64_LINUX_X32_DS): Likewise.
2468 (x86_linux_read_description): Likewise.
2469 (x86_linux_enable_btrace): Likewise.
2470 (x86_linux_disable_btrace): Likewise.
2471 (x86_linux_teardown_btrace): Likewise.
2472 (x86_linux_read_btrace): Likewise.
2473 (x86_linux_create_target): Likewise.
2474 (x86_linux_add_target): Likewise.
2475
1aa7e42c
GB
24762014-07-11 Gary Benson <gbenson@redhat.com>
2477
2478 * amd64-linux-nat.c: Comment and whitespace changes.
2479 * i386-linux-nat.c: Comment and whitespace changes.
2480
c1e246a0
GB
24812014-07-11 Gary Benson <gbenson@redhat.com>
2482
2483 * amd64-linux-nat.c (x86_linux_create_target): New function.
2484 (x86_linux_add_target): Likewise.
2485 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2486 * i386-linux-nat.c (x86_linux_create_target): New function.
2487 (x86_linux_add_target): Likewise.
2488 (_initialize_i386_linux_nat): Delegate to the above new functions.
2489
8c420b8d
GB
24902014-07-11 Gary Benson <gbenson@redhat.com>
2491
2492 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2493 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2494 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2495 (ps_get_thread_area): Delegate to the above.
2496
cb1da100
GB
24972014-07-11 Gary Benson <gbenson@redhat.com>
2498
2499 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2500 x86_linux_read_description. All uses updated. amd64-specific
2501 code conditionalized. Conditionalized i386-specific code added.
2502 Redundant cast removed.
2503 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2504 x86_linux_read_description. All uses updated. i386-specific
2505 code conditionalized. Conditionalized amd64-specific code added.
2506 One sizeof replaced with the actual type it is describing.
2507
2acf3cd0
GB
25082014-07-11 Gary Benson <gbenson@redhat.com>
2509
2510 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2511 x86_linux_dr_get. All uses updated.
2512 (amd64_linux_dr_set): Renamed to
2513 x86_linux_dr_set. All uses updated.
2514 (amd64_linux_dr_get_addr): Renamed to
2515 x86_linux_dr_get_addr. All uses updated.
2516 (amd64_linux_dr_get_control): Renamed to
2517 x86_linux_dr_get_control. All uses updated.
2518 (amd64_linux_dr_get_status): Renamed to
2519 x86_linux_dr_get_status. All uses updated.
2520 (amd64_linux_dr_set_control): Renamed to
2521 x86_linux_dr_set_control. All uses updated.
2522 (amd64_linux_dr_set_addr): Renamed to
2523 x86_linux_dr_set_addr. All uses updated.
2524 (amd64_linux_prepare_to_resume): Renamed to
2525 x86_linux_prepare_to_resume. All uses updated.
2526 (amd64_linux_new_thread): Renamed to
2527 x86_linux_new_thread. All uses updated.
2528 (amd64_linux_new_fork): Renamed to
2529 x86_linux_new_fork. All uses updated.
2530 (amd64_linux_child_post_startup_inferior): Renamed to
2531 x86_linux_child_post_startup_inferior. All uses updated.
2532 (amd64_linux_enable_btrace): Renamed to
2533 x86_linux_enable_btrace. All uses updated.
2534 (amd64_linux_disable_btrace): Renamed to
2535 x86_linux_disable_btrace. All uses updated.
2536 (amd64_linux_teardown_btrace): Renamed to
2537 x86_linux_teardown_btrace. All uses updated.
2538 (amd64_linux_read_btrace): Renamed to
2539 x86_linux_read_btrace. All uses updated.
2540 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2541 x86_linux_dr_get. All uses updated.
2542 (i386_linux_dr_set): Renamed to
2543 x86_linux_dr_set. All uses updated.
2544 (i386_linux_dr_get_addr): Renamed to
2545 x86_linux_dr_get_addr. All uses updated.
2546 (i386_linux_dr_get_control): Renamed to
2547 x86_linux_dr_get_control. All uses updated.
2548 (i386_linux_dr_get_status): Renamed to
2549 x86_linux_dr_get_status. All uses updated.
2550 (i386_linux_dr_set_control): Renamed to
2551 x86_linux_dr_set_control. All uses updated.
2552 (i386_linux_dr_set_addr): Renamed to
2553 x86_linux_dr_set_addr. All uses updated.
2554 (i386_linux_prepare_to_resume): Renamed to
2555 x86_linux_prepare_to_resume. All uses updated.
2556 (i386_linux_new_thread): Renamed to
2557 x86_linux_new_thread. All uses updated.
2558 (i386_linux_new_fork): Renamed to
2559 x86_linux_new_fork. All uses updated.
2560 (i386_linux_child_post_startup_inferior): Renamed to
2561 x86_linux_child_post_startup_inferior. All uses updated.
2562 (i386_linux_enable_btrace): Renamed to
2563 x86_linux_enable_btrace. All uses updated.
2564 (i386_linux_disable_btrace): Renamed to
2565 x86_linux_disable_btrace. All uses updated.
2566 (i386_linux_teardown_btrace): Renamed to
2567 x86_linux_teardown_btrace. All uses updated.
2568 (i386_linux_read_btrace): Renamed to
2569 x86_linux_read_btrace. All uses updated.
2570
b9c1d481
AS
25712014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2572
2573 * remote.c (extended_remote_post_attach): New function.
2574 (init_extended_remote_ops): Install it as to_post_attach method.
2575
7180e04a
PA
25762014-07-09 Pedro Alves <palves@redhat.com>
2577
2578 * infcmd.c (attach_command_post_wait): Don't call
2579 target_terminal_inferior here.
2580 (attach_command): Call it here instead.
2581
9a9a7608
AB
25822014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2583
2584 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2585 field.
2586 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2587 from varobj.c, with additional checks.
2588 (c_varobj_ops): Fill in is_path_expr_parent field.
2589 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2590 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2591 field.
2592 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2593 ops method.
2594 (varobj_default_is_path_expr_parent): New function.
2595 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2596 (varobj_default_is_path_expr_parent): Declare new function.
2597
1f267ae3
MM
25982014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2599
2600 * infcmd.c (finish_backward): Turn internal error into normal error.
2601
b2ee242b
PA
26022014-07-07 Pedro Alves <palves@redhat.com>
2603
8a869bca 2604 PR gdb/17096
b2ee242b
PA
2605 * remote.c (async_handle_remote_sigint)
2606 (async_handle_remote_sigint_twice): Call
2607 gdb_call_async_signal_handler instead of
2608 mark_async_signal_handler.
2609
38e229b2
TT
26102014-07-07 Tom Tromey <tromey@redhat.com>
2611
2612 * target-delegates.c: Rebuild.
2613 * target.c (target_info_record): Remove.
2614 * record.c (info_record_command): Unconditionally call
2615 to_info_record.
2616 * target.h (struct target_ops) <to_info_record>: Use
2617 TARGET_DEFAULT_IGNORE.
2618 (target_info_record): Remove.
2619
f0f9ff95
TT
26202014-07-07 Tom Tromey <tromey@redhat.com>
2621
2622 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2623 TARGET_DEFAULT_NORETURN.
2624 * target.c (generic_tls_error): New function.
2625 (target_translate_tls_address): Don't search target stack.
2626 * target-delegates.c: Rebuild.
2627 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2628 stack.
2629 * linux-thread-db.c (thread_db_get_thread_local_address):
2630 Unconditionally call beneath target.
2631
4a5be5ee
MK
26322014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2633
2634 * cli/cli-logging.c (pop_output_files): Assign targerr to
2635 gdb_stdtargerr.
2636
92c3b204
AB
26372014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2638
2639 * MAINTAINERS (Write After Approval): Update my email address.
2640
9b11e3a7
GB
26412014-07-02 Gary Benson <gbenson@redhat.com>
2642
2643 * proc-service.c (ps_xfer_memory): Update comment.
2644 (ps_pstop): Remove unused function.
2645 (ps_pcontinue): Likewise.
2646 (ps_lstop): Likewise.
2647 (ps_lcontinue): Likewise.
2648 (ps_lgetxregsize): Likewise.
2649 (ps_lgetxregs): Likewise.
2650 (ps_lsetxregs): Likewise.
2651 (ps_plog): Likewise.
2652 (ps_ptread): Likewise.
2653 (ps_ptwrite): Likewise.
2654
cf363f18
MW
26552014-07-01 Mark Wielaard <mjw@redhat.com>
2656
2657 * dwarf2read.c (add_array_cv_type): New function.
2658 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2659 (read_tag_volatile_type): Likewise.
2660
82ae6c8d
TT
26612014-07-01 Tom Tromey <tromey@redhat.com>
2662
2663 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2664 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2665 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2666 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2667 * command.h (cmd_cfunc_ftype): Move earlier.
2668 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2669 (add_com, add_info): Use cmd_cfunc_ftype.
2670
96142726
TT
26712014-06-30 Tom Tromey <tromey@redhat.com>
2672
2673 * symtab.c (operator_chars): Make parameters and return type
2674 const.
2675 (file_matches): Make "files" const.
2676 (struct search_symbols_data) <files>: Now const.
2677 (search_symbols): Make "regexp" and "files" parameters const.
2678 Update.
2679 (symtab_symbol_info): Remove cast.
2680 (rbreak_command): Update.
2681 * symtab.h (search_symbols): Update.
2682
b67a2c6f
YQ
26832014-06-27 Yao Qi <yao@codesourcery.com>
2684
2685 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2686 Change parameter type to 'struct thread_info *'. Caller
2687 updated.
2688 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2689 Update declaration.
2690 * dummy-frame.c (struct dummy_frame_id): New.
2691 (dummy_frame_id_eq): New function.
2692 (struct dummy_frame) <id>: Change its type to 'struct
2693 dummy_frame_id'.
2694 (dummy_frame_push): Add parameter ptid and save it in
2695 dummy_frame_id.
2696 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2697 inferior_ptid.
2698 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2699 to inferior_ptid.
2700 (lookup_dummy_frame): Change parameter type to 'struct
2701 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2702 instead of frame_id_eq.
2703 (dummy_frame_pop): Add parameter ptid. Callers updated.
2704 Update comments. Compose dummy_frame_id and pass it to
2705 lookup_dummy_frame.
2706 (dummy_frame_discard): Add parameter ptid.
2707 (dummy_frame_sniffer): Compose dummy_frame_id and call
2708 dummy_frame_id_eq instead of frame_id_eq.
2709 (fprint_dummy_frames): Print ptid.
2710 * dummy-frame.h: Remove comments.
2711 (dummy_frame_push): Add ptid in declaration.
2712 (dummy_frame_pop, dummy_frame_discard): Likewise.
2713
5b10184c
TT
27142014-06-26 Tom Tromey <tromey@redhat.com>
2715
2716 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2717 * command.h (error_no_arg): Update.
2718
06900326
TT
27192014-06-26 Tom Tromey <tromey@redhat.com>
2720
2721 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2722 (do_show_command): Make "arg" const.
2723 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2724
c2bcbb1d
TT
27252014-06-26 Tom Tromey <tromey@redhat.com>
2726
2727 * record-full.c (record_full_get_bookmark): Make "args" const.
2728 (record_full_goto_bookmark): Make "raw_bookmark" const.
2729 * record.c (record_goto): New function.
2730 (cmd_record_goto): Use it. Now static.
2731 * record.h (record_goto): Declare.
2732 (cmd_record_goto): Remove declaration.
2733 * target-delegates.c: Rebuild.
2734 * target.h (struct target_ops) <to_get_bookmark,
2735 to_goto_bookmark>: Make parameter const.
2736
9cbe5fff
TT
27372014-06-26 Tom Tromey <tromey@redhat.com>
2738
2739 * defs.h (generic_load): Update.
2740 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2741 * monitor.c (monitor_load): Make "args" const.
2742 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2743 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2744 const.
2745 (mips_load): Make "file" const.
2746 * remote-sim.c (gdbsim_load): Make "args" const.
2747 * remote.c (remote_load): Make "name" const.
2748 * symfile.c (generic_load): Make "args" const.
2749 * target-delegates.c: Rebuild.
2750 * target.c (target_load): Make "arg" const.
2751 (debug_to_load): Make "args" const.
2752 * target.h (struct target_ops) <to_load>: Make parameter const.
2753 (target_load): Update.
2754
34a68019
TT
27552014-06-26 Tom Tromey <tromey@redhat.com>
2756
2757 PR symtab/16902:
2758 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2759 (dwarf2_physname, read_partial_die)
2760 (guess_partial_die_structure_name, fixup_partial_die)
2761 (guess_full_die_structure_name, anonymous_struct_prefix)
2762 (dwarf2_name): Use per-BFD obstack.
2763
efc889c1
YQ
27642014-06-26 Yao Qi <yao@codesourcery.com>
2765
2766 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2767 dummyframe and this_id into inner block below.
2768
4395285e
YQ
27692014-06-26 Yao Qi <yao@codesourcery.com>
2770
2771 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2772 with "signal_pass[0]" in the initialization of signal_pass.
2773
aef92902
MM
27742014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2775
2776 * record-btrace.c (record_btrace_generating_corefile)
2777 (record_btrace_prepare_to_generate_core)
2778 (record_btrace_done_generating_core): New.
2779 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2780 (record_btrace_store_registers, record_btrace_prepare_to_store):
2781 Forward request when generating a core file.
2782 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2783 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2784 to_done_generating_core.
2785
5fff78c4
MM
27862014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2787
2788 * target.h (target_ops) <to_prepare_to_generate_core>
2789 <to_done_generating_core>: New.
2790 (target_prepare_to_generate_core, target_done_generating_core): New.
2791 * target.c (target_prepare_to_generate_core)
2792 (target_done_generating_core): New.
2793 * target-delegates.c: Regenerate.
2794 * gcore.c: (write_gcore_file): Rename to ...
2795 (write_gcore_file_1): ...this.
2796 (write_gcore_file): Call target_prepare_to_generate_core
2797 and target_done_generating_core.
2798
1d1f1ccb
MM
27992014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2800
2801 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2802 * gcore.c (write_gcore_file): Free memory returned from
2803 make_corefile_notes.
2804 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2805 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2806
3343ef86
YQ
28072014-06-24 Yao Qi <yao@codesourcery.com>
2808
2809 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2810 (arm_linux_init_abi): Set skip_trampoline_code with
2811 gdbarch_skip_trampoline_code instead of
2812 find_solib_trampoline_target.
2813
18d18ac8
YQ
28142014-06-24 Yao Qi <yao@codesourcery.com>
2815
2816 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2817 arm_skip_bx_reg returns non-zero.
2818
80d8d390
YQ
28192014-06-24 Yao Qi <yao@codesourcery.com>
2820
2821 * arm-tdep.c (arm_skip_bx_reg): New function.
2822 (arm_skip_stub): Call arm_skip_bx_reg.
2823
6a18a01c
DB
28242014-06-23 Don Breazeal <donb@codesourcery.com>
2825
2826 * MAINTAINERS: Add myself as write-after-approval maintainer.
2827
8e9db26e
PA
28282014-06-23 Pedro Alves <palves@redhat.com>
2829
2830 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2831 DR_CONTROL before setting DR0..DR3.
2832 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2833 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2834 bits of DR_CONTROL related to the debug register slot being
2835 disabled. If all slots are vacant, clear local slowdown as well,
2836 and assert DR_CONTROL is 0.
2837
70afc5b7
SC
28382014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2839
2840 * python/lib/gdb/command/xmethods.py
2841 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2842 current progspace only if the string "progspace" matches LOCUS_RE.
2843
840ed64d
JK
28442014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2845
2846 Fix --with-system-readline with readline-6.3 patch 5.
2847 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2848 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2849 types.
2850
26f2dc30
TT
28512014-06-20 Tom Tromey <tromey@redhat.com>
2852
2853 * dwarf2read.c (dw2_get_real_path): Use correct type in
2854 OBSTACK_CALLOC.
2855 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2856
125f8a3d
GB
28572014-06-20 Gary Benson <gbenson@redhat.com>
2858
2859 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2860 * common/glibc_thread_db.h: Likewise.
2861 * common/i386-cpuid.h: Likewise.
2862 * common/i386-gcc-cpuid.h: Likewise.
2863 * common/linux-btrace.h: Likewise.
2864 * common/linux-osdata.h: Likewise.
2865 * common/linux-procfs.h: Likewise.
2866 * common/linux-ptrace.h: Likewise.
2867 * common/mips-linux-watch.h: Likewise.
2868 * common/linux-btrace.c: Moved to nat.
2869 * common/linux-osdata.c: Likewise.
2870 * common/linux-procfs.c: Likewise.
2871 * common/linux-ptrace.c: Likewise.
2872 * common/mips-linux-watch.c: Likewise.
2873 * nat/gdb_thread_db.h: Moved from common.
2874 * nat/glibc_thread_db.h: Likewise.
2875 * nat/i386-cpuid.h: Likewise.
2876 * nat/i386-gcc-cpuid.h: Likewise.
2877 * nat/linux-btrace.c: Likewise.
2878 * nat/linux-btrace.h: Likewise.
2879 * nat/linux-osdata.c: Likewise.
2880 * nat/linux-osdata.h: Likewise.
2881 * nat/linux-procfs.c: Likewise.
2882 * nat/linux-procfs.h: Likewise.
2883 * nat/linux-ptrace.c: Likewise.
2884 * nat/linux-ptrace.h: Likewise.
2885 * nat/mips-linux-watch.c: Likewise.
2886 * nat/mips-linux-watch.h: Likewise.
2887 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2888 (object file files): Reordered.
2889 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2890 of glibc_thread_db.h.
2891
42995dbd
GB
28922014-06-20 Gary Benson <gbenson@redhat.com>
2893
2894 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2895 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2896 (i386_dr_low): Likewise.
2897 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2898 (i386_dr_low_set_addr): Likewise.
2899 (i386_dr_low_get_addr): Likewise.
2900 (i386_dr_low_can_set_control): Likewise.
2901 (i386_dr_low_set_control): Likewise.
2902 (i386_dr_low_get_control): Likewise.
2903 (i386_dr_low_get_status): Likewise.
2904 (i386_get_debug_register_length): Likewise.
2905 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2906 (i386_dr_low): Likewise.
2907 * nat/i386-dregs.c (i386-low.h): Remove include.
2908 (i386-nat.h): Likewise.
2909 (nat/i386-dregs.h): New include.
2910 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2911 (i386_dr_low_set_addr): Likewise.
2912 (i386_dr_low_get_addr): Likewise.
2913 (i386_dr_low_can_set_control): Likewise.
2914 (i386_dr_low_set_control): Likewise.
2915 (i386_dr_low_get_control): Likewise.
2916 (i386_dr_low_get_status): Likewise.
2917 (i386_get_debug_register_length): Likewise.
2918 (debug_hw_points): Likewise.
2919
3ed9baed
IB
29202014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2921
2922 * Makefile.in (SFILES): Add d-exp.y.
2923 (YYFILES): Add d-exp.c.
2924 (YYOBJ): Add d-exp.o.
2925 (local-maintainer-clean): Delete d-exp.c.
2926 * d-exp.y: New file.
2927 * d-lang.h (d_parse): New declaration.
2928 (d_error): New declaration.
2929 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2930 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2931 PREC_ORDER operators.
2932 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2933
78c164b0
YQ
29342014-06-19 Yao Qi <yao@codesourcery.com>
2935
2936 * gdbthread.h (any_running): Remove the declaration.
2937 * thread.c (any_running): Remove.
2938
f6e29b6e
YQ
29392014-06-19 Yao Qi <yao@codesourcery.com>
2940
2941 * gdbthread.h (struct thread_info) <state>: Change its type to
2942 'enum thread_state'. Update comments.
2943
034f788c
PA
29442014-06-19 Pedro Alves <palves@redhat.com>
2945
2946 * gdbthread.h (ALL_THREADS): Delete.
2947 (ALL_NON_EXITED_THREADS): New macro.
2948 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2949 instead of ALL_THREADS.
2950 * infrun.c (find_thread_needs_step_over)
2951 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2952 instead of ALL_THREADS.
2953 * record-btrace.c (record_btrace_open)
2954 (record_btrace_stop_recording, record_btrace_close)
2955 (record_btrace_is_replaying, record_btrace_resume)
2956 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2957 * remote.c (append_pending_thread_resumptions): Likewise.
2958 * thread.c (thread_apply_all_command): Likewise.
2959
46e33252
GB
29602014-06-19 Gary Benson <gbenson@redhat.com>
2961
2962 * i386-nat.c (i386_stopped_by_watchpoint):
2963 Use i386_dr_stopped_by_watchpoint.
2964 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2965 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2966
3a8ee006
GB
29672014-06-19 Gary Benson <gbenson@redhat.com>
2968
2969 * nat/i386-dregs.c: New file.
2970 * Makefile.in (i386-dregs.o): New rule.
2971 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2972 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2973 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2974 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2975 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2976 * config/i386/go32.mh (NATDEPFILES): Likewise.
2977 * config/i386/linux.mh (NATDEPFILES): Likewise.
2978 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2979 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2980 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2981 * i386-nat.h (debug_hw_points): New declaration.
2982 * i386-nat.c (breakpoint.h): Remove include.
2983 (command.h): Likewise.
2984 (target.h): Likewise.
2985 (gdb_assert.h): Likewise.
2986 (debug_hw_points): Made nonstatic.
2987 (debug_printf): Now in i386-dregs.c.
2988 (TARGET_HAS_DR_LEN_8): Likewise.
2989 (DR_CONTROL_SHIFT): Likewise.
2990 (DR_CONTROL_SIZE): Likewise.
2991 (DR_RW_EXECUTE): Likewise.
2992 (DR_RW_WRITE): Likewise.
2993 (DR_RW_READ): Likewise.
2994 (DR_RW_IORW): Likewise.
2995 (DR_LEN_1): Likewise.
2996 (DR_LEN_2): Likewise.
2997 (DR_LEN_4): Likewise.
2998 (DR_LEN_8): Likewise.
2999 (DR_LOCAL_ENABLE_SHIFT): Likewise.
3000 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
3001 (DR_ENABLE_SIZE): Likewise.
3002 (DR_LOCAL_SLOWDOWN): Likewise.
3003 (DR_GLOBAL_SLOWDOWN): Likewise.
3004 (DR_CONTROL_RESERVED): Likewise.
3005 (I386_DR_CONTROL_MASK): Likewise.
3006 (I386_DR_VACANT): Likewise.
3007 (I386_DR_LOCAL_ENABLE): Likewise.
3008 (I386_DR_GLOBAL_ENABLE): Likewise.
3009 (I386_DR_DISABLE): Likewise.
3010 (I386_DR_SET_RW_LEN): Likewise.
3011 (I386_DR_GET_RW_LEN): Likewise.
3012 (I386_DR_WATCH_HIT): Likewise.
3013 (i386_wp_op_t): Likewise.
3014 (i386_show_dr): Likewise.
3015 (i386_length_and_rw_bits): Likewise.
3016 (i386_insert_aligned_watchpoint): Likewise.
3017 (i386_remove_aligned_watchpoint): Likewise.
3018 (i386_handle_nonaligned_watchpoint): Likewise.
3019 (i386_update_inferior_debug_regs): Likewise.
3020 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
3021 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
3022 (i386_region_ok_for_watchpoint):
3023 Use i386_dr_region_ok_for_watchpoint.
3024 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
3025
322a8e06
GB
30262014-06-19 Gary Benson <gbenson@redhat.com>
3027
3028 * i386-nat.c (i386_insert_hw_breakpoint): Use
3029 i386_insert_watchpoint.
3030 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
3031
8f26655c
GB
30322014-06-19 Gary Benson <gbenson@redhat.com>
3033
3034 * i386-nat.c (i386_dr_show): Renamed to
3035 i386_show_dr and made static. All uses updated.
3036 (i386_dr_length_and_rw_bits): Renamed to
3037 i386_length_and_rw_bits and made static.
3038 All uses updated.
3039 (i386_dr_insert_aligned_watchpoint): Renamed to
3040 i386_insert_aligned_watchpoint and made static.
3041 All uses updated.
3042 (i386_dr_remove_aligned_watchpoint): Renamed to
3043 i386_remove_aligned_watchpoint and made static.
3044 All uses updated.
3045 (i386_dr_update_inferior_debug_regs): Renamed to
3046 i386_update_inferior_debug_regs and made static.
3047 All uses updated.
3048 * nat/i386-dregs.h (i386_dr_show): Removed.
3049 (i386_dr_length_and_rw_bits): Likewise.
3050 (i386_dr_insert_aligned_watchpoint): Likewise.
3051 (i386_dr_remove_aligned_watchpoint): Likewise.
3052 (i386_dr_update_inferior_debug_regs): Likewise.
3053
992c7d70
GB
30542014-06-19 Gary Benson <gbenson@redhat.com>
3055
3056 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
3057 * configure: Regenerate.
3058 * config.in: Likewise.
3059 * main.c (signal.h): New include.
3060 (setup_alternate_signal_stack): New function.
3061 (captured_main): Call the above.
3062 * cp-support.c (signal.h): New include.
3063 (catch_demangler_crashes): New flag.
3064 (SIGJMP_BUF): New define.
3065 (SIGSETJMP): Likewise.
3066 (SIGLONGJMP): Likewise.
3067 (gdb_demangle_jmp_buf): New static global.
3068 (gdb_demangle_attempt_core_dump): Likewise.
3069 (gdb_demangle_signal_handler): New function.
3070 (gdb_demangle): If catch_demangler_crashes is set, install the
3071 above signal handler before calling bfd_demangle, and restore
3072 the original signal handler afterwards. Display the offending
3073 symbol and call demangler_warning the first time a segmentation
3074 fault is caught.
3075 (_initialize_cp_support): New maint set/show command.
3076
eae7090b
GB
30772014-06-19 Gary Benson <gbenson@redhat.com>
3078
3079 * utils.h (resource_limit_kind): New enum.
3080 (can_dump_core): New declaration.
3081 (warn_cant_dump_core): Likewise.
3082 (dump_core): Likewise.
3083 * utils.c (dump_core): Made nonstatic. Added new
3084 parameter "limit_kind".
3085 (can_dump_core): Made nonstatic. Moved printing code to...
3086 (warn_cant_dump_core): New function.
3087 (can_dump_core_warn): Likewise.
3088 (internal_vproblem): Replace calls to can_dump_core with
3089 calls to can_dump_core_warn. Supply new argument to each.
3090
57fcfb1b
GB
30912014-06-19 Gary Benson <gbenson@redhat.com>
3092
3093 * utils.h (demangler_vwarning): New declaration.
3094 (demangler_warning): Likewise.
3095 * utils.c (struct internal_problem)
3096 <user_settable_should_quit>: New field.
3097 <user_settable_should_dump_core>: Likewise
3098 (internal_error_problem): Add values for above new fields.
3099 (internal_warning_problem): Likewise.
3100 (demangler_warning_problem): New static global.
3101 (demangler_vwarning): New function.
3102 (demangler_warning): Likewise.
3103 (add_internal_problem_command): Selectively add commands.
3104 (_initialize_utils): New internal problem command.
3105 * maint.c (maintenance_demangler_warning): New function.
3106 (_initialize_maint_cmds): New command.
3107
17a40b44
TT
31082014-06-18 Tom Tromey <tromey@redhat.com>
3109
3110 * f-valprint.c (info_common_command_for_block): Update.
3111 * symtab.h (struct general_symbol_info) <common_block>: Now
3112 const.
3113
346d1dfe
TT
31142014-06-18 Tom Tromey <tromey@redhat.com>
3115
3116 * symtab.h (struct symtab) <blockvector>: Now const.
3117 * ada-lang.c (ada_add_global_exceptions): Update.
3118 * buildsym.c (augment_type_symtab): Update.
3119 * dwarf2read.c (dw2_lookup_symbol): Update.
3120 * jit.c (finalize_symtab): Update.
3121 * jv-lang.c (add_class_symtab_symbol): Update.
3122 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
3123 Update.
3124 * objfiles.c (objfile_relocate1): Update.
3125 * psymtab.c (lookup_symbol_aux_psymtabs)
3126 (maintenance_check_psymtabs): Update.
3127 * python/py-symtab.c (stpy_global_block, stpy_static_block):
3128 Update.
3129 * spu-tdep.c (spu_catch_start): Update.
3130 * symmisc.c (dump_symtab_1): Update.
3131 * symtab.c (lookup_global_symbol_from_objfile)
3132 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
3133 (basic_lookup_transparent_type_quick)
3134 (basic_lookup_transparent_type, find_pc_sect_symtab)
3135 (find_pc_sect_line, search_symbols): Update.
3136 * block.c (find_block_in_blockvector): Make "bl" const.
3137 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
3138 const.
3139 (blockvector_contains_pc): Make "bv" const.
3140 (block_for_pc_sect): Update.
3141 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3142 (blockvector_contains_pc): Update.
3143 * breakpoint.c (resolve_sal_pc): Update.
3144 * inline-frame.c (block_starting_point_at): Update.
3145
1834676b
TT
31462014-06-18 Tom Tromey <tromey@redhat.com>
3147
3148 * completer.c (complete_line): Make "line_buffer" const.
3149 * completer.h (complete_line): Update.
3150
ac1a991b
TT
31512014-06-18 Tom Tromey <tromey@redhat.com>
3152
3153 * symtab.c (add_macro_name): Remove unneeded cast.
3154
5bc98e52
TT
31552014-06-18 Tom Tromey <tromey@redhat.com>
3156
3157 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
3158 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
3159
8236def8
TT
31602014-06-18 Tom Tromey <tromey@redhat.com>
3161
3162 * probe.c (info_probes_for_ops): Make "arg" const.
3163 * probe.h (info_probes_for_ops): Update.
3164
3977b71f
TT
31652014-06-18 Tom Tromey <tromey@redhat.com>
3166
3167 * varobj.c (varobj_create): Update.
3168 * valops.c (value_of_this): Update.
3169 * tracepoint.c (add_local_symbols, scope_info): Update.
3170 * symtab.h (struct general_symbol_info) <block>: Now const.
3171 * symtab.c (skip_prologue_sal)
3172 (default_make_symbol_completion_list_break_on)
3173 (skip_prologue_using_sal): Update.
3174 * stack.h (iterate_over_block_locals)
3175 (iterate_over_block_local_vars): Update.
3176 * stack.c (print_frame_args): Update.
3177 (iterate_over_block_locals, iterate_over_block_local_vars): Make
3178 parameter const.
3179 (get_selected_block): Make return type const.
3180 * python/py-frame.c (frapy_block): Update.
3181 * python/py-block.c (gdbpy_block_for_pc): Update.
3182 * p-exp.y (%union) <bval>: Now const.
3183 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3184 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
3185 * m2-exp.y (%union) <bval>: Now const.
3186 * linespec.c (get_current_search_block): Make return type const.
3187 (create_sals_line_offset, find_label_symbols): Update.
3188 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3189 Update.
3190 (block_starting_point_at): Make "block" const.
3191 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
3192 (check_exception_resume): Update.
3193 * guile/scm-frame.c (gdbscm_frame_block): Update.
3194 * guile/scm-block.c (gdbscm_lookup_block): Update.
3195 * frame.h (get_frame_block): Update.
3196 (get_selected_block): Make return type const.
3197 * frame.c (frame_id_inner): Update.
3198 * f-valprint.c (info_common_command_for_block)
3199 (info_common_command): Update.
3200 * dwarf2loc.c (dwarf2_find_location_expression)
3201 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3202 (locexpr_describe_location_piece): Update.
3203 * c-exp.y (%union) <bval>: Now const.
3204 * breakpoint.c (resolve_sal_pc): Update.
3205 * blockframe.c (get_frame_block):Make return type const.
3206 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3207 (block_innermost_frame): Update.
3208 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3209 (block_for_pc, block_for_pc_sect): Update.
3210 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3211 'pblock' const.
3212 (block_for_pc_sect, block_for_pc): Make return type const.
3213 * ax-gdb.c (gen_expr): Update.
3214 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3215 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3216 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3217 (ada_read_var_value): Update.
3218 * ada-exp.y (struct name_info) <block>: Now const.
3219 (%union): Likewise.
3220 (block_lookup): Constify.
3221
b9228891
GB
32222014-06-18 Gary Benson <gbenson@redhat.com>
3223
3224 * nat/i386-dregs.h: New file.
3225 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3226 * i386-nat.h (i386-dregs.h): New include.
3227 (DR_FIRSTADDR): Now in i386-dregs.h.
3228 (DR_LASTADDR): Likewise.
3229 (DR_NADDR): Likewise.
3230 (DR_STATUS): Likewise.
3231 (DR_CONTROL): Likewise.
3232 (i386_debug_reg_state): Likewise.
3233 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3234
a1aa2221
LM
32352014-06-18 Don Breazeal <donb@codesourcery.com>
3236
3237 * breakpoint.c (set_longjmp_breakpoint): Call
3238 momentary_breakpoint_from_master with additional argument.
3239 (set_longjmp_breakpoint_for_call_dummy): Call
3240 momentary_breakpoint_from_master with additional argument.
3241 (set_std_terminate_breakpoint): Call
3242 momentary_breakpoint_from_master with additional argument.
3243 (momentary_breakpoint_from_master): Add argument to function
3244 definition and use it to initialize structure member flag.
74228e77 3245 (clone_momentary_breakpoint): Call
a1aa2221
LM
3246 momentary_breakpoint_from_master with additional argument.
3247 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3248 member flags set in momentary_breakpoint_from_master.
3249
4be83cc2
GB
32502014-06-18 Gary Benson <gbenson@redhat.com>
3251
3252 * i386-nat.c (i386_show_dr): Renamed to
3253 i386_dr_show and made nonstatic. All uses updated.
3254 (i386_length_and_rw_bits): Renamed to
3255 i386_dr_length_and_rw_bits and made nonstatic.
3256 All uses updated.
3257 (i386_insert_aligned_watchpoint): Renamed to
3258 i386_dr_insert_aligned_watchpoint and made nonstatic.
3259 All uses updated.
3260 (i386_remove_aligned_watchpoint): Renamed to
3261 i386_dr_remove_aligned_watchpoint and made nonstatic.
3262 All uses updated.
3263 (i386_update_inferior_debug_regs): Renamed to
3264 i386_dr_update_inferior_debug_regs and made nonstatic.
3265 All uses updated.
3266
131aa0d4
GB
32672014-06-18 Gary Benson <gbenson@redhat.com>
3268
3269 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3270 (i386_dr_low_can_set_control): Likewise.
3271 (i386_dr_low_set_addr): Likewise.
3272 (i386_dr_low_set_control): Likewise.
3273 (i386_dr_low_get_addr): Likewise.
3274 (i386_dr_low_get_status): Likewise.
3275 (i386_dr_low_get_control): Likewise.
3276 (i386_insert_aligned_watchpoint): Use new macros.
3277 (i386_update_inferior_debug_regs): Likewise.
3278 (i386_stopped_data_address): Likewise.
3279
d9305f7f
GB
32802014-06-18 Gary Benson <gbenson@redhat.com>
3281
3282 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3283 New parameter. All uses updated.
3284
ea008da4
GB
32852014-06-18 Gary Benson <gbenson@redhat.com>
3286
3287 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3288 All uses updated.
3289
1b6d4134
GB
32902014-06-18 Gary Benson <gbenson@redhat.com>
3291
3292 * i386-nat.c (debug_printf): New macro.
3293 (i386_get_debug_register_length): Likewise.
3294 (TARGET_HAS_DR_LEN_8): Use above macro.
3295 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3296 and printf_unfiltered. Use phex to format values.
3297
9b4550ef
GB
32982014-06-18 Gary Benson <gbenson@redhat.com>
3299
3300 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3301 Make const.
3302
6e62758f
GB
33032014-06-18 Gary Benson <gbenson@redhat.com>
3304
3305 * i386-nat.c: Comment changes.
3306
51c79e94
GB
33072014-06-18 Gary Benson <gbenson@redhat.com>
3308
3309 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3310
3e11889a
GB
33112014-06-18 Gary Benson <gbenson@redhat.com>
3312
3313 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3314 (i386_insert_aligned_watchpoint): Likewise.
3315 (i386_remove_aligned_watchpoint): Likewise.
3316 (i386_handle_nonaligned_watchpoint): Likewise.
3317
fc6e2f03
GB
33182014-06-18 Gary Benson <gbenson@redhat.com>
3319
3320 * i386-nat.c: Whitespace changes.
3321
2afe7d50
SB
33222014-06-17 Samuel Bronson <naesten@gmail.com>
3323
3324 * MAINTAINERS: Update Roland McGrath's email address.
3325 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3326 Red Hat a while ago, and giving me a current address.
2afe7d50 3327
3bca49ee
TT
33282014-06-17 Tom Tromey <tromey@redhat.com>
3329
3330 * utils.h (savestring): Remove declaration.
3331
6e366df1
TT
33322014-06-17 Tom Tromey <tromey@redhat.com>
3333
3334 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3335
6be47f0c
KS
33362014-06-16 Keith Seitz <keiths@redhat.com>
3337
3338 PR mi/15863
3339 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3340 to update the varobj if inferior_ptid is null_ptid.
3341
7bc112c1
TT
33422014-06-16 Tom Tromey <tromey@redhat.com>
3343
3344 * target.h (struct target_ops) <to_info_proc>: Make parameter
3345 const.
3346 (target_info_proc): Update.
3347 * target.c (target_info_proc): Make "args" const.
3348 * procfs.c (procfs_info_proc): Update.
3349 * linux-tdep.c (linux_info_proc): Update.
3350 (linux_core_info_proc_mappings): Make "args" const.
3351 (linux_core_info_proc): Update.
3352 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3353 * gdbarch.c: Rebuild.
3354 * gdbarch.h: Rebuild.
3355 * corelow.c (core_info_proc): Update.
3356
fee354ee
TT
33572014-06-16 Tom Tromey <tromey@redhat.com>
3358
3359 * target.h (struct target_ops) <to_disconnect>: Make parameter
3360 const.
3361 (target_disconnect): Update.
3362 * target.c (target_disconnect): Make "args" const.
3363 * target-delegates.c: Rebuild.
3364 * remote.c (remote_disconnect): Update.
3365 * record.h (record_disconnect): Update.
3366 * record.c (record_disconnect): Update.
3367 * inf-child.c (inf_child_disconnect): Update.
3368
a30bf1f1
TT
33692014-06-16 Tom Tromey <tromey@redhat.com>
3370
3371 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3372 * target.c (debug_to_rcmd, default_rcmd): Update.
3373 * target-delegates.c: Rebuild.
3374 * remote.c (remote_rcmd): Update.
3375 * monitor.c (monitor_rcmd): Update.
3376
d03de421
PA
33772014-06-16 Pedro Alves <palves@redhat.com>
3378
3379 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3380 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3381 have OBJF_SHARED set.
3382 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3383 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3384 instead of OBJF_USERLOADED.
3385 * objfiles.h (OBJF_SHARED): Update comment.
3386 (userloaded_objfile_contains_address_p): Rename to ...
3387 (shared_objfile_contains_address_p): ... this, and update
3388 comments.
3389 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3390 new objfile.
3391 (remove_symbol_file_command): Skip objfiles that don't have
3392 OBJF_SHARED set.
3393
99f4262f
TT
33942014-06-16 Tom Tromey <tromey@redhat.com>
3395
3396 * minsyms.h (prim_record_minimal_symbol)
3397 (prim_record_minimal_symbol_and_info): Update comments.
3398
97d66cc6
EZ
33992014-06-14 Eli Zaretskii <eliz@gnu.org>
3400
3401 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3402 or --without-guile, according to how GDB was built.
3403
635c7e8a
TT
34042014-06-13 Tom Tromey <tromey@redhat.com>
3405
3406 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3407 to help_list.
3408 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3409 to help_list.
3410 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3411 help_list.
3412 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3413 help_list.Pass all_commands, not -1, to help_list.
3414 * cli/cli-dump.c (dump_command, append_command)
3415 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3416 (binary_dump_command, binary_append_command): Pass all_commands,
3417 not -1, to help_list.
3418 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3419 -1, to help_list.
3420 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3421 -1, to help_list.
3422 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3423 help_list.
3424 * top.c (set_history): Pass all_commands, not -1, to help_list.
3425 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3426 all_commands, not -1, to help_list.
3427 * symfile.c (overlay_command): Pass all_commands, not -1, to
3428 help_list.
3429 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3430 help_list.
3431 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3432 help_list.
3433 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3434 -1, to help_list.
3435 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3436 not -1, to help_list.
3437 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3438 not -1, to help_list.
3439 * maint.c (maintenance_command, maintenance_info_command)
3440 (maintenance_print_command, maintenance_set_cmd): Pass
3441 all_commands, not -1, to help_list.
3442 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3443 help_list.
3444 * language.c (set_check): Pass all_commands, not -1, to help_list.
3445 * infcmd.c (unset_command): Pass all_commands, not -1, to
3446 help_list.
3447 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3448 help_list.
3449 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3450 help_list.
3451 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3452 help_list.
3453 * breakpoint.c (save_command): Pass all_commands, not -1, to
3454 help_list.
3455 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3456 all_commands, not -1, to help_list.
3457
b94ade42
PL
34582014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3459
3460 * regcache.c (struct register_to_invalidate): New structure.
3461 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3462 functions.
3463 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3464
31f628ae
YQ
34652014-06-12 Yao Qi <yao@codesourcery.com>
3466
3467 * varobj.c (varobj_get_num_children): Call
3468 varobj_is_dynamic_p.
3469 (varobj_list_children): Likewise.
3470 (varobj_update): Likewise. Update comments.
3471
cde5ef40
YQ
34722014-06-12 Yao Qi <yao@codesourcery.com>
3473
3474 * varobj.c (varobj_pretty_printed_p): Rename to ...
3475 (varobj_is_dynamic_p): ... this. New function.
3476 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3477 (varobj_is_dynamic_p): Declare.
3478 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3479 (mi_print_value_p, varobj_update_one): Likewise.
3480
576ea091
YQ
34812014-06-12 Pedro Alves <pedro@codesourcery.com>
3482 Yao Qi <yao@codesourcery.com>
3483
3484 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3485 (varobj_get_iterator): Wrap up code for pretty-printer by
3486 "#if HAVE_PYTHON" and "#endif".
3487 (update_dynamic_varobj_children): Likewise.
3488
827f100c
YQ
34892014-06-12 Pedro Alves <pedro@codesourcery.com>
3490 Yao Qi <yao@codesourcery.com>
3491
3492 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3493 gdb_python_initialized is false. Move some code from varobj.c.
3494 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3495 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3496 (struct varobj_item): Moved to varobj-iter.h".
3497 (varobj_clear_saved_item): New function.
3498 (update_dynamic_varobj_children): Move python-related code to
3499 py-varobj.c.
3500 (free_variable): Call varobj_clear_saved_item and
3501 varobj_iter_delete.
3502
e5250216
YQ
35032014-06-12 Pedro Alves <pedro@codesourcery.com>
3504 Yao Qi <yao@codesourcery.com>
3505
3506 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3507 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3508 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3509 (py-varobj.o): New rule.
3510 * python/py-varobj.c: New file.
3511 * python/python-internal.h (py_varobj_get_iterator): Declare.
3512 * varobj-iter.h: New file.
3513 * varobj.c: Include "varobj-iter.h"
3514 (struct varobj) <child_iter>: Change its type from "PyObject *"
3515 to "struct varobj_iter *".
3516 <saved_item>: Likewise.
3517 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3518 [HAVE_PYTHON] (varobj_get_iterator): New function.
3519 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3520 python-specific code to python/py-varobj.c.
3521 (install_visualizer): Call varobj_iter_delete instead of
3522 Py_XDECREF.
3523 * varobj.h (varobj_ensure_python_env): Declare.
3524
5a2e0d6e
YQ
35252014-06-12 Yao Qi <yao@codesourcery.com>
3526
3527 * varobj.c (struct varobj_item): New structure.
3528 (create_child_with_value): Update declaration.
3529 (varobj_add_child): Replace arguments 'name' and 'value' with
3530 'item'. All callers updated.
3531 (install_dynamic_child): Likewise.
3532 (update_dynamic_varobj_children): Likewise.
3533 (varobj_add_child): Likewise.
3534 (create_child_with_value): Likewise.
3535
919b9a93
JB
35362014-06-11 Joel Brobecker <brobecker@adacore.com>
3537
3538 * NEWS: Create a new section for the next release branch.
3539 Rename the section of the current branch, now that it has
3540 been cut.
3541
71a55bdf
JB
35422014-06-11 Joel Brobecker <brobecker@adacore.com>
3543
3544 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3545 * version.in: Bump version to 7.8.50.DATE-cvs.
3546
364fe1f7
PA
35472014-06-11 Pedro Alves <palves@redhat.com>
3548
3549 PR remote/17028
3550 * ser-mingw.c (net_windows_socket_check_pending): New function.
3551 (net_windows_select_thread): Ignore spurious wakeups. Use
3552 net_windows_socket_check_pending.
3553 (net_windows_wait_handle): Check for pending events with
3554 ioctlsocket, through net_windows_socket_check_pending, instead of
3555 checking the socket's event.
3556
5a6c7709
SC
35572014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3558
3559 * python/python-internal.h (gdb_PyObject_GetAttrString)
3560 (gdb_PyObject_HasAttrString): New inline function definitions.
3561 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3562 char * of the second argument to PyObject_GetAttrString.
74228e77 3563
0e58ee40
JB
35642014-06-10 Joel Brobecker <brobecker@adacore.com>
3565
3566 * serial.c (serial_write): Fix index of character to be printed
3567 in call to serial_logchar when serial debug traces are enabled.
3568
d190df30
JB
35692014-06-10 Joel Brobecker <brobecker@adacore.com>
3570
3571 * gdbtypes (resolve_dynamic_range): Add function description.
3572
b4b01d36
PA
35732014-06-09 Pedro Alves <palves@redhat.com>
3574
3575 * linux-nat.c (linux_child_follow_fork): Initialize status with
3576 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3577 inner block. Only pass the signal to PTRACE_DETACH if in pass
3578 state.
3579
3657956b
GB
35802014-06-09 Gary Benson <gbenson@redhat.com>
3581
3582 * common/signals.c (gdb_signal_from_host): Reorder to separate
3583 the always-available ANSI-standard signals from the signals that
3584 require checking.
3585 (do_gdb_signal_to_host): Likewise.
3586 * proc-events.c (signal_table): Likewise.
3587
c077881a
HZ
35882014-06-08 Hui Zhu <hui@codesourcery.com>
3589
3590 * common/linux-ptrace.c (linux_disable_event_reporting): New
3591 function.
3592 * common/linux-ptrace.h (linux_disable_event_reporting): New
3593 declaration.
3594 * linux-nat.c (linux_child_follow_fork): Do a single step before
3595 detach.
3596
4186eb54
KS
35972014-06-07 Keith Seitz <keiths@redhat.com>
3598
3599 Revert:
3600 PR c++/16253
3601 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3602 from symbol_matches_domain in symtab.c. All local callers
3603 of symbol_matches_domain updated.
3604 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3605 search STRUCT_DOMAIN.
3606 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3607 independently. standard_lookup will do that automatically.
3608 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3609 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3610 (cp_lookup_symbol_in_namespace): Likewise.
3611 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3612 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3613 may return a STRUCT_DOMAIN match.
3614 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3615 * cp-support.c: Include language.h.
3616 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3617 VAR_DOMAIN.
3618 * psymtab.c (match_partial_symbol): Compare the requested
3619 domain with the symbol's domain directly.
3620 (lookup_partial_symbol): Likewise.
3621 * symtab.c (lookup_symbol_in_language): Explain when/why
3622 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3623 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3624 appropriate languages.
3625 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3626 and moved to ada-lang.c
3627 (lookup_block_symbol): Explain that this function only returns
3628 symbol matching the requested DOMAIN.
3629 Compare the requested domain with the symbol's domain directly.
3630 (iterate_over_symbols): Compare the requested domain with the
3631 symbol's domain directly.
3632 * symtab.h (symbol_matches_domain): Remove.
3633
25326a28 36342014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3635
3636 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3637 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3638 (gdbscm_guile_version_is_at_least): Declare.
3639 (gdbscm_scm_string_to_int): Declare.
3640 * guile/guile.c (gdbscm_guile_major_version): New global.
3641 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3642 (guile_datadir): New static global.
3643 (gdbscm_guile_data_directory): New function.
3644 (initialize_scheme_side): Update.
3645 (misc_guile_functions): Add guile-data-directory.
3646 (initialize_gdb_module): Fetch guile version number.
3647 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3648 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3649 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3650 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3651 comments.
3652 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3653 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3654 * guile/scm-value.c (gdbscm_value_to_string): Only call
3655 scm_port_conversion_strategy if Guile version >= 2.0.6.
3656
0a770bb2 36572014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3658
3659 * main.c (print_gdb_help): Add -q and --silent.
3660
73ba372c
GB
36612014-06-06 Gary Benson <gbenson@redhat.com>
3662
3663 * common/signals.c: Remove preprocessor conditionals for
3664 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3665 SIGSEGV and SIGTERM.
3666 * proc-events.c: Likewise.
3667
c33b2f12
MM
36682014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3669
3670 * symfile.c (symfile_free_objfile): Remove restriction to
3671 OBJF_USERLOADED.
3672 * symfile-mem.c (symbol_file_add_from_memory): Call
3673 add_target_sections_of_objfile.
3674
fb934770
LC
36752014-06-05 Ludovic Courtès <ludo@gnu.org>
3676
3677 * guile/scm-value.c (gdbscm_history_append_x): Use
3678 'vlscm_get_value_smob_arg_unsafe' instead of
3679 'vlscm_scm_to_value'.
3680
6ef284bd
SM
36812014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3682
3683 PR mi/15806
3684 * utils.c (printchar): Don't escape at all if quoter is NUL.
3685 Update function documentation to clarify effect of parameter
3686 QUOTER.
3687 * remote.c (escape_buffer): Pass '\\' as the quoter to
3688 fputstrn_unfiltered.
3689 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3690 generate the output.
3691 (mi_solib_unloaded): Same.
3692
270c9937
JB
36932014-06-05 Joel Brobecker <brobecker@adacore.com>
3694
3695 * development.sh: Delete.
3696 * Makefile.in (config.status): Adjust dependency on development.sh.
3697 * configure.ac: Adjust development.sh source call.
3698 * configure: Regenerate.
3699
16f691fb
DE
37002014-06-04 Doug Evans <xdje42@gmail.com>
3701
3702 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3703 is_scheme_bkpt, spec.
3704 (bpscm_make_breakpoint_smob): Initialize new members.
3705 (gdbscm_create_breakpoint_x): Split into two ...
3706 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3707 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3708 (scheme_function breakpoint_functions): Update.
3709 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3710 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3711 register-breakpoint!.
3712
ef7cab6b
JB
37132014-06-04 Joel Brobecker <brobecker@adacorer.com>
3714
3715 PR server/17023
3716 * mem-break.c (z_type_supported): Return zero if
3717 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3718
012370f6
TT
37192014-06-04 Tom Tromey <tromey@redhat.com>
3720
3721 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3722 value_from_contents_and_address_unresolved.
3723 (ada_template_to_fixed_record_type_1): Likewise.
3724 (ada_which_variant_applies): Likewise.
3725 * value.h (value_from_contents_and_address_unresolved): Declare.
3726 * value.c (value_from_contents_and_address_unresolved): New
3727 function.
3728 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3729 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3730 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3731
92e2a17f
TT
37322014-06-04 Tom Tromey <tromey@redhat.com>
3733
3734 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3735
c0939df1
TT
37362014-06-04 Tom Tromey <tromey@redhat.com>
3737
3738 * procfs.c (procfs_attach): Make "args" const.
3739 * windows-nat.c (windows_attach): Make "args" const.
3740 * nto-procfs.c (procfs_attach): Make "args" const.
3741 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3742 * go32-nat.c (go32_attach): Make "args" const.
3743 * gnu-nat.c (gnu_attach): Make "args" const.
3744 * darwin-nat.c (darwin_attach): Make "args" const.
3745 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3746 * linux-nat.c (linux_nat_attach): Make "args" const.
3747 * remote.c (extended_remote_attach_1, extended_remote_attach):
3748 Make "args" const.
3749 * target.h (struct target_ops) <to_attach>: Make "args" const.
3750 (find_default_attach): Likewise.
3751 * utils.c (parse_pid_to_attach): Make "args" const.
3752 * utils.h (parse_pid_to_attach): Update.
3753
8eaff7cd
TT
37542014-06-04 Tom Tromey <tromey@redhat.com>
3755
3756 * target-delegates.c: Rebuild.
3757 * target.c (default_thread_address_space): New function.
3758 (target_thread_address_space): Simplify.
3759 * target.h (struct target_ops) <to_thread_address_space>: Add
3760 TARGET_DEFAULT_FUNC.
3761
1913f160
DE
37622014-06-04 Doug Evans <xdje42@gmail.com>
3763
3764 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3765
70ad5bff
MM
37662014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3767
3768 * record-btrace.c: Include event-loop.h and inf-loop.h.
3769 (record_btrace_resume_exec_dir)
3770 (record_btrace_async_inferior_event_handler)
3771 (record_btrace_handle_async_inferior_event): New.
3772 (record_btrace_open): Create async event handler.
3773 (record_btrace_close): Delete async event handler.
3774 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3775 Mark async event handler.
3776 (record_btrace_execution_direction): New.
3777 (init_record_btrace_ops): Initialize to_execution_direction.
3778
b6210538
DE
37792014-06-03 Doug Evans <xdje42@gmail.com>
3780
3781 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3782 (gdbscm_make_parameter): Ditto.
3783
a5b1fd27
DE
37842014-06-03 Doug Evans <dje@google.com>
3785
3786 * exec.c (exec_close_1): Call clear_section_table instead of
3787 resize_section_table.
3788 (clear_section_table): New function.
3789 (resize_section_table): Make static. Rename arg num_added to
3790 adjustment.
3791 * exec.h (clear_section_table): Declare.
3792 (resize_section_table): Delete.
3793 * progspace.c (release_program_space): Call clear_section_table
3794 instead of resize_section_table.
3795
0c6e92a5
SC
37962014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3797
3798 * NEWS (Python Scripting): Add entry about the new xmethods
3799 feature.
3800
883964a7
SC
38012014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3802
3803 * python/py-xmethods.c: New file.
3804 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3805 (objfpy_dealloc): XDECREF on the new xmethods field.
3806 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3807 field.
3808 (objfpy_get_xmethods): New function.
3809 (objfile_getset): New entry 'xmethods'.
3810 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3811 (pspy_dealloc): XDECREF on the new xmethods field.
3812 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3813 field.
3814 (pspy_get_xmethods): New function.
3815 (pspace_getset): New entry 'xmethods'.
3816 * python/python-internal.h: Add declarations for new functions.
3817 * python/python.c (_initialize_python): Invoke
3818 gdbpy_initialize_xmethods.
3819 * python/lib/gdb/__init__.py (xmethods): New
3820 attribute.
3821 * python/lib/gdb/xmethod.py: New file.
3822 * python/lib/gdb/command/xmethods.py: New file.
3823
58992dc5
SC
38242014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3825
3826 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3827 best match method returned by find_overload_match is an xmethod.
3828 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3829 the best matching operator returned by find_overload_match is an
3830 xmethod.
3831 * valops.c: #include "extension.h".
3832 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3833 Return void. The list of matching source methods is returned in
3834 "fn_list" and a vector of matching debug method workers is
3835 returned in "xm_worker_vec". Update all callers.
3836 (value_find_oload_method_list): Likewise.
3837 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3838 non-NULL, then the index of the best matching method in this
3839 vector is returned. Update all callers.
3840 (find_overload_match): Include xmethods while performing overload
3841 resolution.
3842
e81e7f5e
SC
38432014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3844
3845 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3846 * extension-priv.h (struct extension_language_ops): Add the
3847 xmethod interface.
3848 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3849 get_matching_xmethod_workers, get_xmethod_argtypes,
3850 invoke_xmethod, free_xmethod_worker,
3851 free_xmethod_worker_vec): New functions.
3852 * extension.h: #include "common/vec.h".
3853 New function declarations.
3854 (struct xmethod_worker): New struct.
3855 (VEC (xmethod_worker_ptr)): New vector type.
3856 (xmethod_worker_ptr): New typedef.
3857 (xmethod_worker_vec): Likewise.
3858 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3859 builtin_type.
3860 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3861 (struct builtin_type): New field "xmethod".
3862 * valarith.c (value_ptradd): Assert that the value argument is not
3863 lval_xcallable.
3864 * valops.c (value_must_coerce_to_target): Return 0 for
3865 lval_xcallable values.
3866 * value.c (struct value): New field XM_WORKER in the field
3867 LOCATION.
3868 (value_address, value_raw_address): Return 0 for lval_xcallable
3869 values.
3870 (set_value_address): Assert that the value is not an
3871 lval_xcallable.
3872 (value_free): Free the associated xmethod worker when freeing
3873 lval_xcallable values.
3874 (set_value_component_location): Assert that the WHOLE value is not
3875 lval_xcallable.
3876 (value_of_xmethod, call_xmethod): New functions.
3877 * value.h: Declare "struct xmethod_worker".
3878 Declare new functions value_of_xmethod, call_xmethod.
3879
ef370185
JB
38802014-06-03 Joel Brobecker <brobecker@adacore.com>
3881 Pedro Alves <palves@redhat.com>
3882
3883 PR breakpoints/17000
3884 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3885 New function, extracted from software_breakpoint_inserted_here_p.
3886 (software_breakpoint_inserted_here_p): Replace factored out code
3887 by call to find_non_raw_software_breakpoint_inserted_here.
3888 (bp_target_info_copy_insertion_state): New function.
3889 (bkpt_insert_location): Handle the case of a single-step
3890 breakpoint already inserted at the same address.
3891 (bkpt_remove_location): Handle the case of a single-step
3892 breakpoint still inserted at the same address.
3893 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3894 breakpoint already inserted at the same address.
3895 (deprecated_remove_raw_breakpoint): Handle the case of a
3896 non-raw breakpoint still inserted at the same address.
3897 (find_single_step_breakpoint): New function, extracted from
3898 single_step_breakpoint_inserted_here_p.
3899 (find_single_step_breakpoint): New function,
3900 factored out from single_step_breakpoint_inserted_here_p.
3901 (single_step_breakpoint_inserted_here_p): Reimplement.
3902
1e2ccb61
BM
39032014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3904
3905 Pushed by Joel Brobecker <brobecker@adacore.com>
3906 * source.c (show_substitute_path_command): Fix display of matching
3907 substitution rules.
3908
d3448d85
GB
39092014-06-03 Gary Benson <gbenson@redhat.com>
3910
3911 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3912
06eb1586
DE
39132014-06-02 Doug Evans <xdje42@gmail.com>
3914
3915 Add parameter support for Guile.
3916 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3917 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3918 (scm-param.o): New rule.
3919 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3920 (gdbscm_misc_error): Declare.
3921 (gdbscm_canonicalize_command_name): Declare.
3922 (gdbscm_scm_to_host_string): Declare.
3923 (gdbscm_scm_from_host_string): Declare.
3924 (gdbscm_initialize_parameters): Declare.
3925 * guile/guile.c (initialize_gdb_module): Call
3926 gdbscm_initialize_parameters.
3927 * guile/lib/gdb.scm: Export parameter symbols.
3928 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3929 cmdscm_canonicalize_name and made public. All callers updated.
3930 * guile/scm-exception.c (gdbscm_misc_error): New function.
3931 * guile/scm-param.c: New file.
3932 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3933 (gdbscm_scm_to_host_string): New function.
3934 (gdbscm_scm_from_host_string): New function.
3935 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3936
e698b8c4
DE
39372014-06-02 Doug Evans <xdje42@gmail.com>
3938
3939 Add command support for Guile.
3940 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3941 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3942 (scm-cmd.o): New rule.
3943 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3944 (gdbscm_user_error_p): Declare.
3945 (gdbscm_parse_command_name): Declare.
3946 (gdbscm_valid_command_class_p): Declare.
3947 (gdbscm_initialize_commands): Declare.
3948 * guile/guile.c (initialize_gdb_module): Call
3949 gdbscm_initialize_commands.
3950 * guile/lib/gdb.scm: Export command symbols.
3951 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3952 (throw-user-error): New function.
3953 * guile/scm-cmd.c: New file.
3954 * guile/scm-exception.c (user_error_symbol): New static global.
3955 (gdbscm_user_error_p): New function.
3956 (gdbscm_initialize_exceptions): Set user_error_symbol.
3957 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3958
fb1f94b0
PM
39592014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3960
3961 * top.c (command_loop): Handle comments here...
3962 (command_line_input): ... not here.
3963
ded03782
DE
39642014-06-02 Doug Evans <xdje42@gmail.com>
3965
3966 Add progspace support for Guile.
3967 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3968 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3969 (scm-progspace.o): New rule.
3970 * guile/guile-internal.h (pspace_smob): New typedef.
3971 (psscm_pspace_smob_pretty_printers): Declare.
3972 (psscm_pspace_smob_from_pspace): Declare.
3973 (psscm_scm_from_pspace): Declare.
3974 * guile/guile.c (initialize_gdb_module): Call
3975 gdbscm_initialize_pspaces.
3976 * guile/lib/gdb.scm: Export progspace symbols.
3977 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3978 support.
3979 (append-pretty-printer!): Ditto.
3980 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3981 Implement.
3982 * guile/scm-progspace.c: New file.
3983
397998fc
AM
39842014-06-03 Alan Modra <amodra@gmail.com>
3985
3986 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3987 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3988
6aa5f3a6
DE
39892014-06-02 Doug Evans <dje@google.com>
3990
3991 Add support for skeletonless type units.
3992 * dwarf2read.c (struct dwarf2_per_objfile): New member
3993 n_allocated_type_units.
3994 (struct dwarf2_per_objfile) <tu_stats>: New member
3995 nr_all_type_units_reallocs.
3996 (create_signatured_type_table_from_index): Initialize
3997 n_allocated_type_units
3998 (create_all_type_units): Ditto.
3999 (add_type_unit): Move up in file. New arg slot.
4000 All callers updated. Increase space for all_type_units more
4001 efficiently.
4002 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
4003 (lookup_dwo_signatured_type): Handle skeletonless TUs.
4004 (lookup_dwp_signatured_type): Ditto.
4005 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
4006 All callers updated.
4007 (build_type_psymtabs_1): Leave type_unit_groups as
4008 NULL if no TUs present.
4009 (print_tu_stats): New function.
4010 (process_skeletonless_type_unit): New function.
4011 (process_dwo_file_for_skeletonless_type_units): New
4012 function.
4013 (process_skeletonless_type_units): New function.
4014 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
4015 Call print tu_stats if debugging enabled.
4016
41fac0cf
PA
40172014-06-02 Pedro Alves <palves@redhat.com>
4018
4019 * breakpoint.c (build_target_command_list): Don't build a command
4020 list if we have any duplicate location that isn't a dprintf.
4021
cd1608cc
PA
40222014-06-02 Pedro Alves <palves@redhat.com>
4023
4024 * breakpoint.c (dprintf_breakpoint_hit): New function.
4025 (initialize_breakpoint_ops): Install it as dprintf's
4026 breakpoint_hit method.
4027
486ef3b9
JB
40282014-06-02 Joel Brobecker <brobecker@adacore.com>
4029
4030 * source.c (substitute_path_rule_matches): Simplify using
4031 filename_ncmp instead of FILENAME_CMP.
4032
230cd560
JB
40332014-06-02 Joel Brobecker <brobecker@adacore.com>
4034
4035 * source.c (substitute_path_rule_matches): Remove trailing spaces.
4036
16954d5d
LC
40372014-06-01 Ludovic Courtès <ludo@gnu.org>
4038
4039 * configure.ac: When Guile is available, check for the
4040 availability of 'scm_new_smob'.
4041 * configure, config.h.in: Regenerate.
4042 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
4043 function.
4044
53e8a631
AB
40452014-05-30 Andrew Burgess <aburgess@broadcom.com>
4046
4047 * frame.c (struct frame_info): Add stop_string field.
4048 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
4049 (get_prev_frame_always): Old content moved into
4050 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
4051 TRY_CATCH, handle MEMORY_ERROR exceptions.
4052 (frame_stop_reason_string): New function definition.
4053 * frame.h (unwind_stop_reason_to_string): Extend comment to
4054 mention frame_stop_reason_string.
4055 (frame_stop_reason_string): New function declaration.
4056 * stack.c (frame_info): Switch to frame_stop_reason_string.
4057 (backtrace_command_1): Switch to frame_stop_reason_string.
4058 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
4059 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
4060 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
4061
70e38b8e
AB
40622014-05-30 Andrew Burgess <aburgess@broadcom.com>
4063
4064 * frame.c (frame_stop_reason_string): Rename to ...
4065 (unwind_stop_reason_to_string): this.
4066 * frame.h (frame_stop_reason_string): Rename to ...
4067 (unwind_stop_reason_to_string): this.
4068 * stack.c (frame_info): Update call to frame_stop_reason_string.
4069 (backtrace_command_1): Likewise.
4070 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
4071 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4072
938f0e2f
AB
40732014-05-30 Andrew Burgess <aburgess@broadcom.com>
4074
4075 * frame.c (remove_prev_frame): New function.
4076 (get_prev_frame_if_no_cycle): Create / discard cleanup using
4077 remove_prev_frame.
4078
a09dd441
PA
40792014-05-29 Pedro Alves <palves@redhat.com>
4080
4081 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
4082 and make it const. When a single-step decays to a continue,
4083 clear 'step', not 'hw_step'. Pass whether the caller wanted
4084 to step to user_visible_resume_ptid, not what we ask the
4085 target to do.
4086
bdc36728
PA
40872014-05-29 Pedro Alves <palves@redhat.com>
4088
4089 * infrun.c (process_event_stop_test, handle_step_into_function)
4090 (handle_step_into_function_backward): Adjust.
4091 Don't set the even thread's stop_step and call stop_waiting before
4092 calling end_stepping_range. Instead do that ...
4093 (end_stepping_range): ... here. Take an ecs pointer parameter.
4094
22bcd14b
PA
40952014-05-29 Pedro Alves <palves@redhat.com>
4096
4097 * infrun.c (stop_stepping): Rename to ...
4098 (stop_waiting): ... this.
4099 (proceed): Update comment.
4100 (process_event_stop_test, handle_inferior_event)
4101 (handle_signal_stop, handle_step_into_function)
4102 (handle_step_into_function_backward): Update.
4103
4ae57c05
PA
41042014-05-29 Pedro Alves <palves@redhat.com>
4105
4106 * infcall.c (run_inferior_call): Don't check whether the current
4107 thread is running after the proceed call.
4108
329ea579
PA
41092014-05-29 Pedro Alves <palves@redhat.com>
4110 Tom Tromey <tromey@redhat.com>
4111
4112 * NEWS: Mention "maint set target-async", "set mi-async", and that
4113 background execution commands are now always available.
4114 * target.h (target_async_permitted): Update comment.
4115 * target.c (target_async_permitted, target_async_permitted_1):
4116 Default to 1.
4117 (set_target_async_command): Rename to ...
4118 (maint_set_target_async_command): ... this.
4119 (show_target_async_command): Rename to ...
4120 (maint_show_target_async_command): ... this.
4121 (_initialize_target): Adjust.
4122 * infcmd.c (prepare_execution_command): Make extern.
4123 * inferior.h (prepare_execution_command): Declare.
4124 * infrun.c (set_observer_mode): Leave target async alone.
4125 * mi/mi-interp.c (mi_interpreter_init): Install
4126 mi_on_sync_execution_done as sync_execution_done observer.
4127 (mi_on_sync_execution_done): New function.
4128 (mi_execute_command_input_handler): Don't print the prompt if we
4129 just started a synchronous command with an async target.
4130 (mi_on_resume): Check sync_execution before printing prompt.
4131 * mi/mi-main.h (mi_async_p): Declare.
4132 * mi/mi-main.c: Include gdbcmd.h.
4133 (mi_async_p): New function.
4134 (mi_async, mi_async_1): New globals.
4135 (set_mi_async_command, show_mi_async_command, mi_async): New
4136 functions.
4137 (exec_continue): Call prepare_execution_command.
4138 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
4139 (mi_execute_async_cli_command): Use mi_async_p.
4140 (_initialize_mi_main): Install "set mi-async". Make
4141 "target-async" a deprecated alias.
4142
92bcb5f9
PA
41432014-05-29 Pedro Alves <palves@redhat.com>
4144
4145 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
4146 (_initialize_cli_interp): Adjust.
4147 * event-loop.c: Include "observer.h".
4148 (start_event_loop): Notify 'command_error' observers instead of
4149 calling display_gdb_prompt. Remove FIXME comment.
4150 * event-top.c (display_gdb_prompt): Remove call into the
4151 interpreters.
4152 * inf-loop.c: Include "observer.h".
4153 (inferior_event_handler): Notify 'command_error' observers instead
4154 of calling display_gdb_prompt.
4155 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
4156 observers instead of calling display_gdb_prompt.
4157 * interps.c (interp_set): Don't call display_gdb_prompt.
4158 (current_interp_display_prompt_p): Delete.
4159 * interps.h (interp_prompt_p): Delete declaration.
4160 (interp_prompt_p_ftype): Delete.
4161 (struct interp_procs) <prompt_proc_p>: Delete field.
4162 (current_interp_display_prompt_p): Delete declaration.
4163 * mi-interp.c (mi_interpreter_prompt_p): Delete.
4164 (_initialize_mi_interp): Adjust.
4165 * tui-interp.c (tui_init): Install 'sync_execution_done' and
4166 'command_error' observers.
4167 (tui_on_sync_execution_done, tui_on_command_error): New
4168 functions.
4169 (tui_display_prompt_p): Delete.
4170 (_initialize_tui_interp): Adjust.
4171
fd664c91
PA
41722014-05-29 Pedro Alves <palves@redhat.com>
4173
4174 PR gdb/13860
4175 * cli/cli-interp.c: Include infrun.h and observer.h.
4176 (cli_uiout, cli_interp): New globals.
4177 (cli_on_signal_received, cli_on_end_stepping_range)
4178 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
4179 functions.
4180 (cli_interpreter_init): Install them as 'end_stepping_range',
4181 'signal_received' 'signal_exited', 'exited' and 'no_history'
4182 observers.
4183 (_initialize_cli_interp): Remove cli_interp local.
4184 * infrun.c (handle_inferior_event): Call the several stop reason
4185 observers instead of printing the stop reason directly.
4186 (end_stepping_range): New function.
4187 (print_end_stepping_range_reason, print_signal_exited_reason)
4188 (print_exited_reason, print_signal_received_reason)
4189 (print_no_history_reason): Make static, and add an uiout
4190 parameter. Print to that instead of to CURRENT_UIOUT.
4191 * infrun.h (print_end_stepping_range_reason)
4192 (print_signal_exited_reason, print_exited_reason)
4193 (print_signal_received_reason print_no_history_reason): New
4194 declarations.
4195 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4196 'mi_uiout'.
4197 <cli_uiout>: New field.
4198 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4199 uiout for CLI output. Install 'signal_received',
4200 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4201 observers.
4202 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4203 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4204 (mi_on_no_history): New functions.
4205 (ui_out_free_cleanup): Delete function.
4206 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4207 instead use the one already stored in the MI interpreter data.
4208 (mi_ui_out): Adjust.
4209 * tui/tui-interp.c: Include infrun.h and observer.h.
4210 (tui_interp): New global.
4211 (tui_on_signal_received, tui_on_end_stepping_range)
4212 (tui_on_signal_exited, tui_on_exited)
4213 (tui_on_no_history): New functions.
4214 (tui_init): Install them as 'end_stepping_range',
4215 'signal_received' 'signal_exited', 'exited' and 'no_history'
4216 observers.
4217 (_initialize_tui_interp): Delete tui_interp local.
4218
8817a6f2
PA
42192014-05-29 Pedro Alves <palves@redhat.com>
4220
4221 PR gdb/15713
4222 * linux-nat.c (linux_nat_resume_callback): Rename the second
4223 parameter to 'except'. Skip LP if it points to EXCEPT.
4224 (linux_nat_resume): Don't mark the event lwp as not stopped
4225 before resuming sibling lwps. Instead ask
4226 linux_nat_resume_callback to skip the event lwp. Mark it as not
4227 stopped after actually resuming it.
4228 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4229 resuming it.
4230 (wait_lwp): Mark the lwp as stopped here.
4231 (stop_wait_callback): Mark the lwp as not stopped right after
4232 resuming it. Don't mark lwps as stopped here.
4233 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4234 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4235
251bde03
PA
42362014-05-29 Pedro Alves <palves@redhat.com>
4237
4238 PR PR15693
4239 * infrun.c (resume): Determine how much to resume depending on
4240 whether the caller wanted a step, not whether we can hardware step
4241 the target. Mark all threads that we intend to run as running,
4242 unless we're calling an inferior function.
4243 (normal_stop): If the thread is running an infcall, don't finish
4244 thread state.
4245 * target.c (target_resume): Don't mark threads as running here.
4246
7f3c0343
JB
42472014-05-28 Joel Brobecker <brobecker@adacore.com>
4248
4249 * serial.c (_initialize_serial): Remove support for
4250 the "set remotebaud" and "show remotebaud" commands.
4251 * NEWS: Add entry documenting the removal of that command.
4252
ee34b3f9
YQ
42532014-05-28 Yao Qi <yao@codesourcery.com>
4254
4255 * charset.c: Fix typo in comments.
4256
add6c04d
GB
42572014-05-27 Gary Benson <gbenson@redhat.com>
4258
4259 * utils.c (internal_vproblem): Prompt for a bug report.
4260
92c48fc5
AW
42612014-05-26 Andy Wingo <wingo@igalia.com>
4262
4263 * guile/scm-arch.c (arscm_mark_arch_smob):
4264 * guile/scm-block.c (bkscm_mark_block_smob)
4265 (bkscm_mark_block_syms_progress_smob):
4266 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4267 * guile/scm-exception.c (exscm_mark_exception_smob):
4268 * guile/scm-frame.c (frscm_mark_frame_smob):
4269 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4270 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4271 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4272 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4273 (ppscm_mark_pretty_printer_worker_smob):
4274 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4275 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4276 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4277 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4278 mark functions.
4279 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4280 function.
4281
b2715b27
AW
42822014-05-26 Andy Wingo <wingo@igalia.com>
4283 Doug Evans <xdje42@gmail.com>
4284
4285 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4286 empty_base_class. All uses updated.
4287 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4288 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4289 Adapt all callers.
4290 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4291 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4292 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4293 (gdbscm_gsmob_has_property_p, add_property_name)
4294 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4295 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4296 (gdb-object-has-property?, gdb-object-properties): Remove.
4297 (gdb-object-kind): Renamed from gsmob-kind.
4298
214ab2da
AW
42992014-05-26 Andy Wingo <wingo@igalia.com>
4300
4301 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4302 * configure: Regenerate.
4303
589fdceb
MM
43042014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4305
4306 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4307
67b5c0c1
MM
43082014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4309
4310 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4311 (replay_memory_access_read_only, replay_memory_access_read_write)
4312 (replay_memory_access_types, replay_memory_access)
4313 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4314 (cmd_set_record_btrace, cmd_show_record_btrace)
4315 (cmd_show_replay_memory_access): New.
4316 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4317 (record_btrace_remove_breakpoint): Replace
4318 record_btrace_allow_memory_access with replay_memory_access.
4319 (_initialize_record_btrace): Add commands.
4320 * NEWS: Announce it.
4321
036cd381
RR
43222014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4323
4324 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4325
c77c1e42
RR
43262014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4327
4328 * MAINTAINERS (Write After Approval): Move self back from
4329 paper trail.
4330
45741a9c
PA
43312014-05-22 Pedro Alves <palves@redhat.com>
4332
4333 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4334 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4335 (disable_randomization, enum exec_direction_kind)
4336 (execution_direction, stop_registers, start_remote)
4337 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4338 (wait_for_inferior, normal_stop, get_last_target_status)
4339 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4340 (insert_step_resume_breakpoint_at_sal)
4341 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4342 (set_step_info, print_stop_event, signal_stop_state)
4343 (signal_print_state, signal_pass_state, signal_stop_update)
4344 (signal_print_update, signal_pass_update)
4345 (update_signals_program_target, clear_exit_convenience_vars)
4346 (displaced_step_dump_bytes, update_observer_mode)
4347 (signal_catch_update, gdb_signal_from_command): Move
4348 declarations ...
4349 * infrun.h: ... to this new file.
4350 * amd64-tdep.c: Include infrun.h.
4351 * annotate.c: Include infrun.h.
4352 * arch-utils.c: Include infrun.h.
4353 * arm-linux-tdep.c: Include infrun.h.
4354 * arm-tdep.c: Include infrun.h.
4355 * break-catch-sig.c: Include infrun.h.
4356 * breakpoint.c: Include infrun.h.
4357 * common/agent.c: Include infrun.h instead of inferior.h.
4358 * corelow.c: Include infrun.h.
4359 * event-top.c: Include infrun.h.
4360 * go32-nat.c: Include infrun.h.
4361 * i386-tdep.c: Include infrun.h.
4362 * inf-loop.c: Include infrun.h.
4363 * infcall.c: Include infrun.h.
4364 * infcmd.c: Include infrun.h.
4365 * infrun.c: Include infrun.h.
4366 * linux-fork.c: Include infrun.h.
4367 * linux-nat.c: Include infrun.h.
4368 * linux-thread-db.c: Include infrun.h.
4369 * monitor.c: Include infrun.h.
4370 * nto-tdep.c: Include infrun.h.
4371 * procfs.c: Include infrun.h.
4372 * record-btrace.c: Include infrun.h.
4373 * record-full.c: Include infrun.h.
4374 * remote-m32r-sdi.c: Include infrun.h.
4375 * remote-mips.c: Include infrun.h.
4376 * remote-notif.c: Include infrun.h.
4377 * remote-sim.c: Include infrun.h.
4378 * remote.c: Include infrun.h.
4379 * reverse.c: Include infrun.h.
4380 * rs6000-tdep.c: Include infrun.h.
4381 * s390-linux-tdep.c: Include infrun.h.
4382 * solib-irix.c: Include infrun.h.
4383 * solib-osf.c: Include infrun.h.
4384 * solib-svr4.c: Include infrun.h.
4385 * target.c: Include infrun.h.
4386 * top.c: Include infrun.h.
4387 * windows-nat.c: Include infrun.h.
4388 * mi/mi-interp.c: Include infrun.h.
4389 * mi/mi-main.c: Include infrun.h.
4390 * python/py-threadevent.c: Include infrun.h.
4391
98eb56a4
PA
43922014-05-22 Pedro Alves <palves@redhat.com>
4393
4394 * infrun.c (handle_inferior_event): Store the exit code for
4395 --return-child-result here, instead of ...
4396 (print_exited_reason): ... here.
4397
17b2616c
PA
43982014-05-21 Pedro Alves <palves@redhat.com>
4399
4400 PR gdb/13860
4401 * gdbthread.h (struct thread_control_state): New field
4402 `command_interp'.
4403 * infrun.c (follow_fork): Copy the new thread control field to the
4404 child fork thread.
4405 (clear_proceed_status_thread): Clear the new thread control field.
4406 (proceed): Set the new thread control field.
4407 * interps.h (command_interp): Declare.
4408 * interps.c (command_interpreter): New global.
4409 (command_interp): New function.
4410 (interp_exec): Set `command_interpreter' while here.
4411 * cli-out.c (cli_uiout_dtor): New function.
4412 (cli_ui_out_impl): Install it.
4413 * mi/mi-interp.c: Include cli-out.h.
4414 (mi_cmd_interpreter_exec): Add comment.
4415 (restore_current_uiout_cleanup): New function.
4416 (ui_out_free_cleanup): New function.
4417 (mi_on_normal_stop): If finishing an execution command started by
4418 a CLI command, or any kind of breakpoint-like event triggered,
4419 print the stop event to the output (CLI) stream.
4420 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4421
5166082f
PA
44222014-05-21 Pedro Alves <palves@redhat.com>
4423
4424 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4425 current source line having changed.
4426 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4427 * infrun.c (normal_stop): Adjust call to
4428 set_current_sal_from_frame.
4429 * source.c (clear_lines_listed_range): New function.
4430 (set_current_source_symtab_and_line, identify_source_line): Clear
4431 the lines listed range.
4432 (line_info): Handle the first "info line" after the current source
4433 line having changed.
4434 * stack.c (print_stack_frame): Remove center handling.
4435 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4436 center sal.line.
4437
c1ee2fb3
PA
44382014-05-21 Pedro Alves <palves@redhat.com>
4439
4440 * inf-child.c (inf_child_mourn_inferior): New function.
4441 * inf-child.h (inf_child_mourn_inferior): New declaration.
4442 * darwin-nat.c (darwin_mourn_inferior): Use
4443 inf_child_mourn_inferior.
4444 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4445 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4446 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4447 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4448 * windows-nat.c (windows_mourn_inferior): Likewise.
4449
5c6d4fb2
DE
44502014-05-21 Doug Evans <xdje42@gmail.com>
4451
250748cb 4452 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4453
4a2722c5
DE
44542014-05-21 Doug Evans <xdje42@gmail.com>
4455
17292b30 4456 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4457 (gdbscm_out_of_range_error): Ditto.
4458 (gdbscm_memory_error): Ditto.
250748cb
DE
4459 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4460 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4461 (gdbscm_out_of_range_error): Update.
4462 (gdbscm_memory_error): Update.
4463 (gdbscm_scm_to_target_string_unsafe): Delete.
4464
6a3cb8e8
PA
44652014-05-21 Pedro Alves <palves@redhat.com>
4466
4467 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4468 globals.
4469 (inf_child_open_target): New function.
4470 (inf_child_open): Use inf_child_open_target to push the target
4471 instead of erroring out.
4472 (inf_child_disconnect, inf_child_close)
4473 (inf_child_maybe_unpush_target): New functions.
4474 (inf_child_target): Install inf_child_disconnect and
4475 inf_child_close. Store a pointer to the returned object.
4476 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4477 declarations.
4478 * target.c (auto_connect_native_target): New global.
4479 (show_default_run_target): New function.
4480 (find_default_run_target): Return NULL if automatically connecting
4481 to the native target is disabled.
4482 (_initialize_target): Install set/show auto-connect-native-target.
4483 * NEWS: Mention "set auto-connect-native-target", and "target
4484 native".
4485 * linux-nat.c (super_close): New global.
4486 (linux_nat_close): Call super_close.
4487 (linux_nat_add_target): Store a pointer to the base class's
4488 to_close method.
4489 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4490 inf_child_maybe_unpush.
4491 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4492 already pushed.
4493 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4494 the inferior. Use inf_child_maybe_unpush_target.
4495 (inf_ttrace_attach): Don't push the target if it is already
4496 pushed.
4497 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4498 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4499 after mourning the inferior. Use inf_child_maybe_unpush_target.
4500 (darwin_attach_pid): Don't push the target if it is already
4501 pushed.
4502 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4503 mourning the inferior. Use inf_child_maybe_unpush_target.
4504 (gnu_detach): Use inf_child_maybe_unpush_target.
4505 * go32-nat.c (go32_create_inferior): Don't push the target if it
4506 is already pushed.
4507 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4508 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4509 (procfs_open): Rename to ...
4510 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4511 comments. Can target_preopen before changing node. Call
4512 inf_child_open_target to push the target explicitly.
4513 (procfs_attach): Don't push the target if it is already pushed.
4514 (procfs_detach): Use inf_child_maybe_unpush_target.
4515 (procfs_create_inferior): Don't push the target if it is already
4516 pushed.
4517 (nto_native_ops): New global.
4518 (procfs_open): Reimplement.
4519 (procfs_native_open): New function.
4520 (init_procfs_targets): Install procfs_native_open as to_open of
4521 "target native". Store a pointer to the "native" target in
4522 nto_native_ops.
4523 * procfs.c (procfs_attach): Don't push the target if it is already
4524 pushed.
4525 (procfs_detach): Use inf_child_maybe_unpush_target.
4526 (procfs_mourn_inferior): Only unpush the target after mourning the
4527 inferior. Use inf_child_maybe_unpush_target.
4528 (procfs_init_inferior): Don't push the target if it is already
4529 pushed.
4530 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4531 if it is already pushed.
4532
930ee1b1
PA
45332014-05-21 Pedro Alves <palves@redhat.com>
4534
4535 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4536 and "procfs" targets are now called "native" instead.
4537
1f5d1b13
PA
45382014-05-21 Pedro Alves <palves@redhat.com>
4539
4540 * go32-nat.c (go32_open): Delete.
4541 (go32_target): Don't override the to_open method.
4542
132f8e03
PA
45432014-05-21 Pedro Alves <palves@redhat.com>
4544
4545 * nto-procfs.c (procfs_can_run): New function.
4546 (nto_procfs_ops): New global.
4547 (init_procfs_targets): New, based on procfs_target. Install
4548 "target native" in addition to "target procfs".
4549 (_initialize_procfs): Call init_procfs_targets instead of adding
4550 the target here.
4551
03c136c3
PA
45522014-05-21 Pedro Alves <palves@redhat.com>
4553
4554 * windows-nat.c (windows_target): Don't override to_shortname,
4555 to_longname or to_doc.
4556
a635d0f3
PA
45572014-05-21 Pedro Alves <palves@redhat.com>
4558
4559 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4560 to_doc.
4561
4f9b5133
PA
45622014-05-21 Pedro Alves <palves@redhat.com>
4563
4564 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4565 to_shortname, to_longname or to_doc.
4566
bc85afde
PA
45672014-05-21 Pedro Alves <palves@redhat.com>
4568
4569 * go32-nat.c (go32_target): Don't override to_shortname,
4570 to_longname or to_doc.
4571
4ebfc96e
PA
45722014-05-21 Pedro Alves <palves@redhat.com>
4573
4574 * inf-child.c (inf_child_open): Remove mention of "child".
4575 (inf_child_target): Rename target to "native" instead of "child".
4576
2648dfed
AA
45772014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4578
4579 * Makefile.in (SFILES): Delete "regset.c".
4580 (COMMON_OBS): Delete "regset.o".
4581 * regset.c: Remove.
4582 * regset.h (regset_alloc): Delete prototype.
4583
b13feb94
AA
45842014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4585
4586 * sparc-linux-tdep.c (sparc32_linux_gregset)
4587 (sparc32_linux_fpregset): New static regset structures.
4588 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4589 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4590 'fpregset' fields.
4591 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4592 (sparc64_linux_fpregset): New static regset structures.
4593 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4594 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4595 New static regset structures.
4596 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4597 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4598 New static regset structures.
4599 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4600 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4601 New static regset structures.
4602 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4603 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4604 New static regset structures.
4605 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4606
b4fd25c9
AA
46072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4608
4609 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4610 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4611 register maps ("regmaps") from "*regset" to "*regmap". Do this
4612 for all regmap types and variables.
4613 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4614 (sparc32_linux_supply_core_gregset)
4615 (sparc32_linux_collect_core_gregset)
4616 (sparc32_linux_supply_core_fpregset)
4617 (sparc32_linux_collect_core_fpregset): Likewise.
4618 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4619 (sparc_gregmap, sparc_fpregmap): ... these.
4620 (sparc_supply_gregset, sparc_collect_gregset)
4621 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4622 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4623 (_initialize_sparc_nat): Rename regmaps.
4624 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4625 (sparc_gregmap, sparc_fpregmap): ... these.
4626 (sparc_supply_gregset, sparc_collect_gregset)
4627 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4628 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4629 Rename macros to...
4630 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4631 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4632 Likewise.
4633 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4634 Rename to...
4635 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4636 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4637 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4638 regmaps.
4639 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4640 (sparc32_bsd_fpregset): Rename to...
4641 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4642 (sparc32_bsd_fpregmap): ... these.
4643 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4644 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4645 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4646 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4647 (struct sparc_gregmap, struct sparc_fpregmap)
4648 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4649 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4650 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4651 (sparc32_supply_regset, sparc32_collect_gregset)
4652 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4653 prototypes.
4654 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4655 (sparc64_linux_ptrace_gregmap): ... this.
4656 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4657 (_initialize_sparc64_linux_nat): Rename regmaps.
4658 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4659 (sparc64_linux_core_gregmap): ... this.
4660 (sparc64_linux_supply_core_gregset)
4661 (sparc64_linux_collect_core_gregset)
4662 (sparc64_linux_supply_core_fpregset)
4663 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4664 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4665 (sparc64_sol2_fpregset): Rename to...
4666 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4667 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4668 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4669 regmaps.
4670 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4671 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4672 (sparc64_bsd_fpregset): Rename to...
4673 (struct sparc_gregmap, sparc64_sol2_gregmap)
4674 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4675 (sparc64_bsd_fpregmap): ... these.
4676 (sparc64_supply_gregset, sparc64_collect_gregset)
4677 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4678 prototypes.
4679 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4680 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4681 (sparc64fbsd_gregmap): ... this.
4682 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4683 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4684 Rename regmaps.
4685 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4686 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4687 (sparc64nbsd_collect_fpregset): Likewise.
4688 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4689 (sparc64nbsd_gregmap): ... this.
4690 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4691 regmaps.
4692 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4693 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4694 (sparc64obsd_gregmap): ... this.
4695 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4696 regmaps.
4697 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4698 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4699 (sparc32nbsd_gregmap): ... this.
4700 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4701 regmaps.
4702
8fea3224
AA
47032014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4704
4705 * score-tdep.c (score7_linux_gregset): New static regset
4706 structure.
4707 (score7_linux_regset_from_core_section): Remove dynamic regset
4708 allocation.
4709 (score_gdbarch_init): Drop allocation of tdep structure.
4710 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4711
24534243
AA
47122014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4713
4714 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4715 regset structures.
4716 (am33_regset_from_core_section): Remove dynamic regset
4717 allocations.
4718
b7195f27
AA
47192014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4720
4721 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4722 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4723 structures.
4724 (mips_linux_regset_from_core_section): Remove dynamic regset
4725 allocations.
4726 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4727 'gregset64', 'fpregset', and 'fpregset64'.
4728 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4729 deleted tdep fields.
4730
ecc37a5a
AA
47312014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4732
4733 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4734 regset structures.
4735 (amd64_regset_from_core_section): Remove dynamic regset
4736 allocations.
4737 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4738 structure.
4739 (amd64obsd_regset_from_core_section): Remove dynamic regset
4740 allocation.
4741 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4742 Likewise.
4743 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4744 x86-common regset supply function.
4745 * i386-tdep.c (i386_collect_gregset): Make static.
4746 (i386_gregset): New global regset structure.
4747 (i386_fpregset, i386_xstateregset): New static regset structures.
4748 (i386_regset_from_core_section): Remove dynamic regset
4749 allocations.
4750 (i386_gdbarch_init): Remove initialization of tdep fields
4751 'gregset', 'fpregset', and 'xstateregset'.
4752 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4753 'fpregset', and 'xstateregset'.
4754 (i386_collect_gregset): Remove prototype.
4755 (i386_gregset): New declaration.
4756 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4757 structure.
4758 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4759 allocation.
4760
b7611c43
AA
47612014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4762
4763 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4764 (arm_linux_vfpregset): New static regset structures.
4765 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4766 regset structures.
4767 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4768 and 'vfpregset' fields.
4769
a069a2bd
AA
47702014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4771
4772 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4773 (aarch64_linux_fpregset): New static regset structures.
4774 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4775 of regset structures.
4776 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4777 'fpregset' fields.
4778
09424cff
AA
47792014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4780
4781 * regset.h (struct regset): Remove gdbarch field.
4782 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4783 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4784 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4785 Likewise.
4786 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4787 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4788 (ppc32_linux_vsxregset): Likewise.
4789 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4790 via the regcache instead of the regset.
4791 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4792 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4793 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4794 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4795 Likewise.
4796
3ca7dae4
AA
47972014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4798
4799 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4800 Constify structures.
4801 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4802 (alphanbsd_aout_gregset): Likewise.
4803 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4804 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4805 Likewise.
4806 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4807 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4808 Likewise.
4809 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4810 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4811 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4812 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4813 * m88k-tdep.c (m88k_gregset): Likewise.
4814 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4815 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4816 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4817 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4818 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4819 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4820 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4821 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4822 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4823 Likewise.
4824 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4825 * sh-tdep.h (sh_corefile_gregset): Likewise.
4826 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4827 * vax-tdep.c (vax_gregset): Likewise.
4828
5876f503
JK
48292014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4830
4831 Fix TLS access for -static -pthread.
4832 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4833 (try_thread_db_load_1): Initialize it.
4834 (thread_db_get_thread_local_address): Call it if LM is zero.
4835 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4836 * target.h (struct target_ops) (to_get_thread_local_address): Add
4837 load_module_addr comment.
4838
0256a6ac
PA
48392014-05-21 Pedro Alves <palves@redhat.com>
4840
4841 * dcache.c (dcache_read_memory_partial): If reading the cache line
4842 fails, fallback to reading just the memory the caller wanted.
4843
227533ac
DE
48442014-05-20 Doug Evans <dje@google.com>
4845
4846 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4847 instead of get_current_arch.
4848
936d2992
PA
48492014-05-20 Pedro Alves <palves@redhat.com>
4850
4851 * NEWS: Mention that compare-sections now works with all targets.
4852
4853 * remote.c (PACKET_qCRC): New enum value.
4854 (remote_verify_memory): Don't send qCRC if the target has no
4855 execution. Use packet_support/packet_ok. If the target doesn't
4856 support the qCRC packet, fallback to a deep memory copy.
4857 (compare_sections_command): Say "target image" instead of "remote
4858 executable".
4859 (_initialize_remote): Add PACKET_qCRC to the list of config
4860 packets that have no associated command. Extend comment.
4861 * target.c (simple_verify_memory, default_verify_memory): New
4862 function.
4863 * target.h (struct target_ops) <to_verify_memory>: Default to
4864 default_verify_memory.
4865 (simple_verify_memory): New declaration.
4866 * target-delegates.c: Regenerate.
4867
e59fa00f
MM
48682014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4869
4870 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4871
f2205de0
HZ
48722014-05-20 Hui Zhu <hui@codesourcery.com>
4873 Yao Qi <yao@codesourcery.com>
4874
4875 PR backtrace/16558
4876 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4877 and change address of sp and pc.
4878
c4e54771
TT
48792014-05-19 Tom Tromey <tromey@redhat.com>
4880
4881 * gdbtypes.c (rank_function): Use XNEWVEC.
4882 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4883
73051182
DE
48842014-05-19 Doug Evans <dje@google.com>
4885
4886 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4887 build_type_unit_groups and moved closer to only caller. Remove
4888 arguments. All references updated. Remove outdated .gdb_index
4889 comment.
4890 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4891 build_type_psymtabs_1.
4892
8832e7e3
DE
48932014-05-19 Doug Evans <dje@google.com>
4894
4895 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4896 n_type_unit_groups, all_type_unit_groups. All uses removed.
4897 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4898 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4899 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4900 (add_type_unit_group_to_table): Delete.
4901
cd8ae15e
DE
49022014-05-19 Doug Evans <dje@google.com>
4903
4904 * eval.c (evaluate_subexp_standard): Add some comments.
4905
08f4850b
DE
49062014-05-17 Doug Evans <xdje42@gmail.com>
4907
4908 * progspace.c (remove_program_space): Delete, unused.
4909 * progspace.h (remove_program_space): Ditto.
4910
bed8455c
DE
49112014-05-17 Doug Evans <xdje42@gmail.com>
4912
4913 * inferior.c (prune_inferiors): Fix comment.
4914 (remove_inferior_command): Call prune_program_spaces.
4915
8d551b02
DE
49162014-05-16 Doug Evans <dje@google.com>
4917
4918 New command line option -D.
4919 * NEWS: Mention it.
4920 * main.c (set_gdb_data_directory): New function.
4921 (captured_main): Recognize -D. Flag error for --data-directory "".
4922 Call set_gdb_data_directory.
4923 (print_gdb_help): Print --data-directory, -D.
4924 * main.h (set_gdb_data_directory): Declare.
4925 * top.c (staged_gdb_datadir): New static global.
4926 (set_gdb_datadir): Call set_gdb_data_directory
4927 (show_gdb_datadir): New function.
4928 (init_main): Update init of data-directory parameter.
4929
18848e28
GF
49302014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4931
4932 Import the "dirfd" gnulib module.
4933 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4934 * gnulib/aclocal.m4: Update.
4935 * gnulib/config.in: Update.
4936 * gnulib/configure: Update.
4937 * gnulib/import/Makefile.am: Update.
4938 * gnulib/import/Makefile.in: Update.
4939 * gnulib/import/dirfd.c: New.
4940 * gnulib/import/m4/dirfd.m4: New.
4941 * gnulib/import/m4/gnulib-cache.m4: Update.
4942 * gnulib/import/m4/gnulib-comp.m4: Update.
4943
95c64f92
YQ
49442014-05-16 Pierre Muller <muller@sourceware.org>
4945 Yao Qi <yao@codesourcery.com>
4946
4947 * valprint.c (print_wchar): Move the code on checking whether
4948 W is a printable wide char to the default branch of switch
4949 statement below. Call wchar_printable instead of gdb_iswprint.
4950
cac395ea
TM
49512014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4952
19679eca 4953 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4954 ldr.w and ldrd instructions.
4955
83655187
DE
49562014-05-15 Doug Evans <dje@google.com>
4957
4958 * dwarf2read.c (read_structure_type): Delete outdated comments.
4959
dd756689
TT
49602014-05-14 Tom Tromey <tromey@redhat.com>
4961
4962 * macrocmd.c (print_macro_definition): Reindent.
4963
75ddda77
DE
49642014-05-13 Doug Evans <xdje42@gmail.com>
4965
4966 * python/py-cmd.c (cmdpy_completer): Add comment.
4967 (completers): Make const.
4968
b0f16a3e
SM
49692014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4970
4971 * infrun.c (resume): Remove should_resume (unused). Move up
4972 declaration of resume_ptid.
4973
033c3379
TT
49742014-05-13 Tom Tromey <tromey@redhat.com>
4975
4976 * language.h (unop_type_check): Remove.
4977 (binop_type_check): Don't declare.
4978
9b44a3a5
AA
49792014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4980
4981 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4982 call to regcache_raw_collect.
4983
303a33fa
SM
49842014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4985
4986 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4987 mi_console->quote as the quoting character.
4988
196100a0
SM
49892014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4990
4991 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4992
f989a1c8
TT
49932014-04-29 Tom Tromey <tromey@redhat.com>
4994
4995 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4996 "show debug varobj".
4997
9404b58f
KM
49982014-05-07 Kyle McMartin <kyle@redhat.com>
4999
5000 Pushed by Joel Brobecker <brobecker@adacore.com>.
5001 * aarch64-tdep.c (aarch64_software_single_step): New function.
5002 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
5003 with aarch64_software_single_step.
5004
5e49ba57
JB
50052014-05-05 Joel Brobecker <brobecker@adacore.com>
5006
5007 GDB 7.7.1 released.
5008
c888a17d
KS
50092014-05-05 Keith Seitz <keiths@redhat.com>
5010
5011 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
5012 variable or history value is successfully parsed.
5013
290a839c
YQ
50142014-05-05 Yao Qi <yao@codesourcery.com>
5015 Pedro Alves <palves@redhat.com>
5016
5017 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
5018 address of blocks that intersects the requested range. Trim
5019 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
5020 sections.
5021 * ctf.c (ctf_xfer_partial): Likewise.
5022
91256dc2
YQ
50232014-05-05 Yao Qi <yao@codesourcery.com>
5024
5025 * printcmd.c (display_command): Remove the check to
5026 target_has_execution.
5027
07284463
MK
50282014-05-03 Mark Kettenis <kettenis@gnu.org>
5029
5030 * ppcobsd-nat.c: Include "obsd-nat.h".
5031 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
5032 add_target.
5033 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5034
30a1e6cc
SDJ
50352014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5036
5037 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
5038 and 16-bit signed and unsigned arguments. Update comment.
5039 (stap_parse_probe_arguments): Extend code to handle such
5040 arguments. Use warning instead of complaint to notify about
5041 unrecognized bitness.
5042
f33da99a
SDJ
50432014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
5044
5045 PR breakpoints/16889
5046 * stap-probe.c (stap_parse_probe_arguments): Simplify
5047 check for non-prefixed probes (i.e., probes whose
5048 arguments do not start with "N@"). Always set the
5049 argument type to a sane value.
5050
95cf3b38
DT
50512014-05-01 David Taylor <dtaylor@emc.com>
5052
5053 * remote.c (compare_sections_command): Add -r option to compare
5054 all loadable read-only sections.
5055
1cfdf534
SC
50562014-04-30 Siva Chandra Reddy <sivachandra@google.com>
5057
5058 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
5059 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
5060 Update all callers.
5061 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
5062 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
5063 Remove unused CORE_ADDR argument. Update all callers.
5064
ca4f7f8b
PA
50652014-04-29 Pedro Alves <palves@redhat.com>
5066
5067 * remote.c (struct packet_config) <detect>: Extend comment.
5068 (add_packet_config_cmd): Don't set the config's detect or support
5069 fields here.
5070 (init_all_packet_configs): Also initialize the config's 'detect'
5071 field.
5072 (reset_all_packet_configs_support): New function.
5073 (remote_open_1): Call reset_all_packet_configs_support instead of
5074 init_all_packet_configs.
5075 (_initialize_remote): Initialize all packet configs. Assert that
5076 all packets have an associated command, except a few known
5077 outliers.
5078
11c1ba78
JB
50792014-04-28 Joel Brobecker <brobecker@adacore.com>
5080
5081 * dwarf2read.c (read_subrange_type): Handle dynamic
5082 DW_AT_lower_bound attributes.
5083
8739bc53
JB
50842014-04-28 Joel Brobecker <brobecker@adacore.com>
5085
5086 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
5087 dynamic bounds before computing its upper bound.
5088 (ada_discrete_type_low_bound): Same as above with the lower bound.
5089
6f8a3220
JB
50902014-04-28 Joel Brobecker <brobecker@adacore.com>
5091
5092 * dwarf2read.c (is_dynamic_type): Return true for dynamic
5093 range types. Adjust the array handling implementation to
5094 take advantage of this change.
5095 (resolve_dynamic_range): New function, mostly extracted from
5096 resolve_dynamic_bounds.
5097 (resolve_dynamic_array): New function, mostly extracted from
5098 resolve_dynamic_bounds.
5099 (resolve_dynamic_bounds): Delete.
5100 (resolve_dynamic_type): Reimplement. Add handling of
5101 TYPE_CODE_RANGE types.
5102
4d072ce4
JB
51032014-04-28 Joel Brobecker <brobecker@adacore.com>
5104
5105 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
5106 handling of parallel ___XA types.
5107
52865325
JB
51082014-04-28 Joel Brobecker <brobecker@adacore.com>
5109
5110 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
5111 unnecessary second call to static_unwrap_type.
5112
433e77fa
HZ
51132014-04-27 Hui Zhu <hui@codesourcery.com>
5114
5115 * stack.c (print_frame_info): Call do_gdb_disassembly with
5116 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
5117
b51a69ee
DE
51182014-04-26 Doug Evans <xdje42@gmail.com>
5119
5120 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
5121
7ae1a6a6
PA
51222014-04-25 Pedro Alves <palves@redhat.com>
5123
5124 PR server/16255
5125 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
5126 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
5127 and newline from built string.
5128 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
5129 (linux_ptrace_attach_fail_reason): ... this.
5130 * linux-nat.c (linux_nat_attach): Adjust to use
5131 linux_ptrace_attach_fail_reason.
5132
4082afcc
PA
51332014-04-25 Pedro Alves <palves@redhat.com>
5134
5135 * remote.c (struct remote_state): Remove multi_process_aware,
5136 non_stop_aware, cond_tracepoints, cond_breakpoints,
5137 breakpoint_commands, fast_tracepoints, static_tracepoints,
5138 install_in_trace, disconnected_tracing,
5139 enable_disable_tracepoints, string_tracing, and
5140 augmented_libraries_svr4_read fields.
5141 (remote_multi_process_p): Move further below in the file.
5142 (struct packet_config): Add comments.
5143 (update_packet_config): Delete function.
5144 (show_packet_config_cmd): Use packet_config_support.
5145 (add_packet_config_cmd): Use NULL as set callback.
5146 (packet_ok): "set remote foo-packet"-style commands no longer
5147 change config->supported -- adjust.
5148 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
5149 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
5150 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
5151 (PACKET_QNonStop, PACKET_multiprocess_feature)
5152 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
5153 (PACKET_DisconnectedTracing_feature)
5154 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
5155 (set_remote_protocol_packet_cmd): Delete function.
5156 (packet_config_support, packet_support): New functions.
5157 (set_remote_protocol_Z_packet_cmd): Don't call
5158 update_packet_config.
5159 (remote_query_attached, remote_pass_signals)
5160 (remote_program_signals, remote_threads_info)
5161 (remote_threads_extra_info, remote_start_remote): Use
5162 packet_support.
5163 (remote_start_remote): Use packet_config_support and
5164 packet_support.
5165 (init_all_packet_configs): Set all packets to unknown support,
5166 instead of calling update_packet_config.
5167 (remote_check_symbols): Use packet_support.
5168 (remote_supported_packet): Unconditionally set the packet config's
5169 support status.
5170 (remote_multi_process_feature, remote_non_stop_feature)
5171 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
5172 (remote_breakpoint_commands_feature)
5173 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
5174 (remote_install_in_trace_feature)
5175 (remote_disconnected_tracing_feature)
5176 (remote_enable_disable_tracepoint_feature)
5177 (remote_string_tracing_feature)
5178 (remote_augmented_libraries_svr4_read_feature): Delete functions.
5179 (remote_protocol_features): Adjust to use remote_supported_packet
5180 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
5181 "ConditionalTracepoints", "ConditionalBreakpoints",
5182 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
5183 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
5184 "EnableDisableTracepoints", and "tracenz".
5185 (remote_query_supported): Use packet_support.
5186 (remote_open_1): Adjust.
5187 (extended_remote_attach_1): Use packet_support. Switch on the
5188 result of packet_ok instead of checking whether the packet ended
5189 up disabled.
5190 (remote_vcont_resume): Use packet_support.
5191 (remote_resume, remote_stop_ns, fetch_register_using_p)
5192 (remote_prepare_to_store, store_register_using_P)
5193 (check_binary_download, remote_write_bytes): Use packet_support.
5194 (remote_vkill): Use packet_support. Switch on the result of
5195 packet_ok instead of checking whether the packet ended up
5196 disabled.
5197 (extended_remote_supports_disable_randomization): Use
5198 packet_support.
5199 (extended_remote_run): Switch on the result of packet_ok instead
5200 of checking whether the packet ended up disabled.
5201 (remote_insert_breakpoint, remote_remove_breakpoint)
5202 (remote_insert_watchpoint, remote_remove_watchpoint)
5203 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5204 packet_support.
5205 (remote_search_memory): Use packet_config_support.
5206 (remote_get_thread_local_address, remote_get_tib_address)
5207 (remote_hostio_send_command, remote_can_execute_reverse): Use
5208 packet_support.
5209 (remote_supports_cond_tracepoints)
5210 (remote_supports_cond_breakpoints)
5211 (remote_supports_fast_tracepoints)
5212 (remote_supports_static_tracepoints)
5213 (remote_supports_install_in_trace)
5214 (remote_supports_enable_disable_tracepoint)
5215 (remote_supports_string_tracing)
5216 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5217 the packet config says the feature is enabled or disabled.
5218 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5219 (remote_get_trace_status): Use packet_support.
5220 (remote_set_disconnected_tracing): Adjust to check whether the
5221 feature is enabled with packet_support.
5222 (remote_set_trace_buffer_size, remote_use_agent)
5223 (remote_can_use_agent, remote_supports_btrace): Use
5224 packet_support.
5225 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5226 Use packet_config_support.
5227 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5228 the packet config says the feature is enabled or disabled.
5229 (set_range_stepping): Use packet_support.
5230
bdb52a22
TT
52312014-04-25 Tom Tromey <tromey@redhat.com>
5232
5233 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5234 argument.
5235
e9475ead
SA
52362014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5237
5238 * NEWS: Mention support for C99 variable length arrays.
5239
82eacd52
JB
52402014-04-24 Joel Brobecker <brobecker@adacore.com>
5241
5242 * ada-lang.c (standard_exc): Expand introductory comment.
5243
01f9f808
MS
52442014-04-24 Michael Sturm <michael.sturm@mintel.com>
5245 Walfred Tedeschi <walfred.tedeschi@intel.com>
5246
5247 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5248 AVX512 registers.
5249 (amd64_linux_read_description): Add code to handle AVX512 xstate
5250 mask and return respective tdesc.
5251 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5252 and features/i386/x32-avx512-linux.c.
5253 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5254 (amd64_linux_core_read_description): Add code to handle AVX512
5255 xstate mask and return respective tdesc.
5256 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5257 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5258 calculation.
5259 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5260 (tdesc_amd64_avx512_linux): New prototype.
5261 (tdesc_x32_avx512_linux): Likewise.
5262 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5263 features/i386/x32-avx512.c.
5264 (amd64_ymm_avx512_names): New register names for pseudo
5265 registers YMM16-31.
5266 (amd64_ymmh_avx512_names): New register names for raw registers
5267 YMMH16-31.
5268 (amd64_k_names): New register names for K registers.
5269 (amd64_zmmh_names): New register names for ZMM raw registers.
5270 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5271 (amd64_xmm_avx512_names): New register names for XMM16-31
5272 registers.
5273 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5274 registers.
5275 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5276 if feature is present.
5277 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5278 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5279 (AMD64_NUM_REGS): Adjust to new number of registers.
5280 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5281 registers supplied via XSTATE by AVX512 registers.
5282 (i386_linux_read_description): Add case for AVX512.
5283 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5284 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5285 (i386_linux_core_read_description): Add case for AVX512.
5286 (i386_linux_init_abi): Install supported register note section
5287 for AVX512.
5288 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5289 AVX512.
5290 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5291 registers to be number of zmm7h + 1.
5292 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5293 * i386-tdep.c: Include features/i386/i386-avx512.c.
5294 (i386_zmm_names): Add ZMM pseudo register names array.
5295 (i386_zmmh_names): Add ZMM raw register names array.
5296 (i386_k_names): Add K raw register names array.
5297 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5298 registers. AVX512 has 16 more ZMM registers than there are YMM
5299 registers.
5300 (i386_zmmh_regnum_p): Add function to look up register number of
5301 ZMM raw registers.
5302 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5303 (i386_k_regnum_p): Likewise for K raw registers.
5304 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5305 registers added by AVX512.
5306 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5307 registers added by AVX512.
5308 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5309 added by AVX512.
5310 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5311 (i386_pseudo_register_name): Add ZMM pseudo registers.
5312 (i386_zmm_type): Construct and return vector registers type for ZMM
5313 registers.
5314 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5315 ZMM0-31 pseudo registers and K registers.
5316 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5317 and YMM16-31 registers from register cache.
5318 (i386_pseudo_register_write): Add code to write K, ZMM and
5319 YMM16-31 registers.
5320 (i386_register_reggroup_p): Add code to include/exclude AVX512
5321 registers in/from respective register groups.
5322 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5323 registers if feature is present in xcr0.
5324 (i386_gdbarch_init): Add code to initialize AVX512 feature
5325 variables in tdep structure, wire in pseudo registers and call
5326 initialize_tdesc_i386_avx512.
5327 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5328 variables.
5329 (i386_regnum): Add AVX512 registers.
5330 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5331 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5332 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5333 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5334 512 bits wide.
5335 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5336 (i386_ymm_avx512_regnum_p): Likewise.
5337 (i386_k_regnum_p): Likewise.
5338 (i386_zmm_regnum_p): Likewise.
5339 (i386_zmmh_regnum_p): Likewise.
5340 * i387-tdep.c : Update year in copyright notice.
5341 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5342 XSAVE buffer.
5343 (XSAVE_YMM_AVX512_ADDR): New macro.
5344 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5345 XSAVE buffer.
5346 (XSAVE_XMM_AVX512_ADDR): New macro.
5347 (xsave_avx512_k_offset): New table for K register offsets in
5348 XSAVE buffer.
5349 (XSAVE_AVX512_K_ADDR): New macro.
5350 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5351 in XSAVE buffer.
5352 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5353 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5354 buffer.
5355 (i387_collect_xsave): Add code to collect AVX512 registers from
5356 XSAVE buffer.
5357 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5358 of XMM16-31 registers.
5359 (I387_NUM_K_REGS): New define for number of K registers.
5360 (I387_K0_REGNUM): New define for K0 register number.
5361 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5362 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5363 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5364 registers.
5365 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5366 (I387_XMM16_REGNUM): New define for XMM16 register number.
5367 (I387_YMM0_REGNUM): New define for YMM0 register number.
5368 (I387_KEND_REGNUM): New define for last K register number.
5369 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5370 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5371 number.
5372 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5373 number.
5374 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5375 size.
5376 * features/Makefile: Add AVX512 related files.
5377 * features/i386/32bit-avx512.xml: New file.
5378 * features/i386/64bit-avx512.xml: Likewise.
5379 * features/i386/amd64-avx512-linux.c: Likewise.
5380 * features/i386/amd64-avx512-linux.xml: Likewise.
5381 * features/i386/amd64-avx512.c: Likewise.
5382 * features/i386/amd64-avx512.xml: Likewise.
5383 * features/i386/i386-avx512-linux.c: Likewise.
5384 * features/i386/i386-avx512-linux.xml: Likewise.
5385 * features/i386/i386-avx512.c: Likewise.
5386 * features/i386/i386-avx512.xml: Likewise.
5387 * features/i386/x32-avx512-linux.c: Likewise.
5388 * features/i386/x32-avx512-linux.xml: Likewise.
5389 * features/i386/x32-avx512.c: Likewise.
5390 * features/i386/x32-avx512.xml: Likewise.
5391 * regformats/i386/amd64-avx512-linux.dat: New file.
5392 * regformats/i386/amd64-avx512.dat: Likewise.
5393 * regformats/i386/i386-avx512-linux.dat: Likewise.
5394 * regformats/i386/i386-avx512.dat: Likewise.
5395 * regformats/i386/x32-avx512-linux.dat: Likewise.
5396 * regformats/i386/x32-avx512.dat: Likewise.
5397 * NEWS: Add note about new support for AVX512.
5398
5399
08351840
PA
54002014-04-23 Pedro Alves <palves@redhat.com>
5401
5402 * breakpoint.c (insert_bp_location): Tolerate errors if the
5403 breakpoint is set in a user-loaded objfile.
5404 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5405 location is marked shlib_disabled. If the breakpoint is set in a
5406 user-loaded objfile is a GDB-side memory breakpoint, validate it
5407 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5408 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5409 flag.
5410 * mem-break.c (memory_validate_breakpoint): New function.
5411 * objfiles.c (userloaded_objfile_contains_address_p): New
5412 function.
5413 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5414 * target.h (memory_validate_breakpoint): New declaration.
5415
076855f9
PA
54162014-04-23 Pedro Alves <palves@redhat.com>
5417
5418 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5419 the breakpoint is set in a shared library, only suppress
5420 errors for software breakpoints, not hardware breakpoints.
5421
483805cf
PA
54222014-04-22 Pedro Alves <palves@redhat.com>
5423
5424 * infrun.c (schedlock_applies): New function, factored out from
5425 find_thread_needs_step_over.
5426 (find_thread_needs_step_over): Use it.
5427 (switch_back_to_stepped_thread): Always clear trap_expected if the
5428 step over is finished. Return early if scheduler locking applies.
5429 Look for the stepping thread and a potential step-over thread with
5430 a single loop.
5431 (currently_stepping_or_nexting_callback): Delete.
5432
a75fef0e
NC
54332014-04-22 Nick Clifton <nickc@redhat.com>
5434
5435 * NEWS: Mention that ARM sim now supports tracing.
5436
48b6e87e
YQ
54372014-04-22 Yao Qi <yao@codesourcery.com>
5438
5439 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5440 to ...
5441 * tracefile.c (tracefile_fetch_registers): ... it. New
5442 function.
5443 * tracefile.h (tracefile_fetch_registers): Declare.
5444 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5445 tracefile_fetch_registers.
5446
17617f2d
EZ
54472014-04-19 Eli Zaretskii <eliz@gnu.org>
5448
5449 PR gdb/14018
5450 * windows-nat.c (thread_rec): Don't display a warning when
5451 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5452 fails for any reason, set th->suspended to -1, so that we don't
5453 try to resume such a thread. Also, don't return NULL in these
5454 cases, to avoid completely ruin the session due to "PC register is
5455 not available" error.
5456 (do_windows_fetch_inferior_registers): Check errors in
5457 GetThreadContext call.
5458 (windows_continue): Accept an additional argument KILLED; if not
5459 zero, ignore errors in the SetThreadContext call, since the
5460 inferior was killed and is shutting down.
5461 (windows_resume, get_windows_debug_event)
5462 (windows_create_inferior, windows_mourn_inferior)
5463 (windows_kill_inferior): All callers of windows_continue changed
5464 to adjust to its new calling sequence.
5465
5723a6fd
YQ
54662014-04-19 Yao Qi <yao@codesourcery.com>
5467
5468 * ctf.c (ctf_open): Call post_create_inferior.
5469
614d5099
YQ
54702014-04-19 Yao Qi <yao@codesourcery.com>
5471
5472 * ctf.c (handle_id): New static variable.
5473 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5474 value. Get the declaration of event "register" and get length
5475 of field "contents".
5476
dac3e710
YQ
54772014-04-19 Yao Qi <yao@codesourcery.com>
5478
5479 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5480
2bca57ba
SC
54812014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5482
5483 * valops.c (oload_method_static): Remove unnecessary argument
5484 METHOD. Update all callers.
5485
51d48146
PA
54862014-04-18 Pedro alves <palves@redhat.com>
5487 Tom Tromey <tromey@redhat.com>
5488
5489 PR backtrace/15558
5490 * frame.c (get_prev_frame_1): Rename to ...
5491 (get_prev_frame_always): ... this, and make extern. Adjust.
5492 (skip_artificial_frames): Use get_prev_frame_always.
5493 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5494 (get_frame_unwind_stop_reason): Adjust to rename.
5495 * frame.h (get_prev_frame_always): Declare.
5496 * inline-frame.c: Include frame.h.
5497 (inline_frame_this_id): Use get_prev_frame_always.
5498
1bdad2e0
TG
54992014-04-18 Tristan Gingold <gingold@adacore.com>
5500
5501 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5502 code by using bfd_mach_o_get_base_address.
5503
7ce16bd4
UW
55042014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5505
5506 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5507 (spu_ax_pseudo_register_collect): New function.
5508 (spu_ax_pseudo_register_push_stack): Likewise.
5509 (spu_dwarf_reg_to_regnum): Likewise.
5510 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5511
2ed3c037
UW
55122014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5513
5514 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5515 Replace FRAME argument with FRAME_ID.
5516 * gdbarch.c, gdbarch.h: Regenerate.
5517 * findvar.c (default_value_from_register): Add GDBARCH argument;
5518 replace FRAME by FRAME_ID. No longer call get_frame_id.
5519 (value_from_register): Update call to gdbarch_value_from_register.
5520 * value.h (default_value_from_register): Update prototype.
5521 * s390-linux-tdep.c (s390_value_from_register): Update interface
5522 and call to default_value_from_register.
5523 * spu-tdep.c (spu_value_from_register): Likewise.
5524
5525 * findvar.c (address_from_register): Remove TYPE argument.
5526 Do not call value_from_register; use gdbarch_value_from_register
5527 with null_frame_id instead.
5528 * value.h (address_from_register): Update prototype.
5529 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5530 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5531 address_from_register interface change.
5532
71e50e83
YQ
55332014-04-17 Yao Qi <yao@codesourcery.com>
5534
5535 * gdbtypes.h: Update comments to link to types and macros'
5536 definitions.
5537
7a23c549
SC
55382014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5539
5540 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5541
22869d73
KS
55422014-04-16 Keith Seitz <keiths@redhat.com>
5543
5544 PR gdb/15827
5545 * dwarf2read.c (skip_one_die): Check that all relative-offset
5546 sibling DIEs fall within range of the current reader's buffer.
5547 (read_partial_die): Likewise.
5548
c4f87ca6
KS
55492014-04-16 Keith Seitz <keiths@redhat.com>
5550
5551 PR c++/16597
5552 * cp-namespace.c (lookup_symbol_file): If the type name of
5553 `this' is NULL, return immediately.
5554
b50c8614
KS
55552014-04-14 Keith Seitz <keiths@redhat.com>
5556
5557 PR c++/16253
5558 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5559 from symbol_matches_domain in symtab.c. All local callers
5560 of symbol_matches_domain updated.
5561 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5562 search STRUCT_DOMAIN.
5563 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5564 independently. standard_lookup will do that automatically.
5565 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5566 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5567 (cp_lookup_symbol_in_namespace): Likewise.
5568 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5569 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5570 may return a STRUCT_DOMAIN match.
5571 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5572 * cp-support.c: Include language.h.
5573 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5574 VAR_DOMAIN.
5575 * psymtab.c (match_partial_symbol): Compare the requested
5576 domain with the symbol's domain directly.
5577 (lookup_partial_symbol): Likewise.
5578 * symtab.c (lookup_symbol_in_language): Explain when/why
5579 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5580 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5581 appropriate languages.
5582 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5583 and moved to ada-lang.c
5584 (lookup_block_symbol): Explain that this function only returns
5585 symbol matching the requested DOMAIN.
5586 Compare the requested domain with the symbol's domain directly.
5587 (iterate_over_symbols): Compare the requested domain with the
5588 symbol's domain directly.
5589 * symtab.h (symbol_matches_domain): Remove.
5590
3d567982
TT
55912014-04-14 Tom Tromey <tromey@redhat.com>
5592
5593 PR c++/15246:
5594 * c-exp.y (type_aggregate_p): New function.
5595 (qualified_name, classify_inner_name): Use it.
5596 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5597 and TYPE_TARGET_TYPE of an enum type.
5598 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5599 an enum type.
5600 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5601 handle TYPE_DECLARED_CLASS.
5602 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5603 types.
5604 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5605 * valops.c (enum_constant_from_type): New function.
5606 (value_aggregate_elt): Use it.
5607 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5608 TYPE_CODE_ENUM.
5609
c848d642
TT
56102014-04-14 Tom Tromey <tromey@redhat.com>
5611
5612 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5613 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5614 const.
5615 * value.h (value_aggregate_elt): Update.
5616
0626fc76
TT
56172014-04-14 Tom Tromey <tromey@redhat.com>
5618
5619 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5620
5ecaaa66
SA
56212014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5622
5623 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5624 (evaluate_subexp_standard): Pass noside argument.
5625 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5626 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5627 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5628 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5629 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5630
1612e0c0
SA
56312014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5632
5633 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5634 points to a constant blob.
5635
c451ebe5
SA
56362014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5637
5638 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5639 property and store it as the high bound and flag the range accordingly.
5640 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5641 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5642 * gdbtypes.h (enum range_flags): New enum.
5643 (struct range_bounds): Add flags member.
5644
1d42e4c4
SA
56452014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5646
5647 * c-typeprint.c (c_type_print_varspec_suffix): Added
5648 check for not yet resolved high bound. If unresolved, print
5649 "variable length" string to the console instead of random
5650 length.
5651
9f1f738a
SA
56522014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5653
5654 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5655 value.
5656 (ada_template_to_fixed_record_type_1): Likewise.
5657 (ada_to_fixed_type_1): Likewise.
5658 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5659 (cp_print_value): Likewise.
5660 * d-valprint.c (dynamic_array_type): Likewise.
5661 * findvar.c (address_of_variable): Likewise.
5662 * jv-valprint.c (java_value_print): Likewise.
5663 * valops.c (value_ind): Likewise.
5664 * value.c (coerce_ref): Likewise.
5665
3c8452d4
SA
56662014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5667
5668 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5669 value and retrieve the dynamic type size.
5670
4ad88275
SA
56712014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5672
5673 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5674 passed to sizeof is dynamic evaluate the argument to compute the length.
5675
80180f79
SA
56762014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5677 Joel Brobecker <brobecker@adacore.com>
5678
5679 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5680 (dwarf2_evaluate_property): New function.
5681 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5682 * dwarf2read.c (attr_to_dynamic_prop): New function.
5683 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5684 attribute.
5685 * gdbtypes.c: Include dwarf2loc.h.
5686 (is_dynamic_type): New function.
5687 (resolve_dynamic_type): New function.
5688 (resolve_dynamic_bounds): New function.
5689 (get_type_length): New function.
5690 (check_typedef): Use get_type_length to compute type length.
5691 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5692 (TYPE_LOW_BOUND_KIND): New macro.
5693 (is_dynamic_type): New function prototype.
5694 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5695 to resolve dynamic properties of the type. Update comment.
5696 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5697
a1556843
RH
56982014-04-14 Richard Henderson <rth@redhat.com>
5699
5700 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5701
0be03e84
DE
57022014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5703 Doug Evans <xdje42@gmail.com>
5704
5705 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5706 dereference TYPE_CODE_REF values.
5707
6b662e19
JB
57082014-04-11 Joel Brobecker <brobecker@adacore.com>
5709
5710 Revert the following changes due to regressions:
5711
5712 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5713 (dwarf2_evaluate_property): New function.
5714 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5715 * dwarf2read.c (attr_to_dynamic_prop): New function.
5716 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5717 attribute.
5718 * gdbtypes.c: Include dwarf2loc.h.
5719 (is_dynamic_type): New function.
5720 (resolve_dynamic_type): New function.
5721 (resolve_dynamic_bounds): New function.
5722 (get_type_length): New function.
5723 (check_typedef): Use get_type_length to compute type length.
5724 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5725 (TYPE_LOW_BOUND_KIND): New macro.
5726 (is_dynamic_type): New function prototype.
5727 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5728 to resolve dynamic properties of the type. Update comment.
5729 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5730
5731 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5732 passed to sizeof is dynamic evaluate the argument to compute the length.
5733
5734 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5735 value and retrieve the dynamic type size.
5736
5737 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5738 (ada_template_to_fixed_record_type_1): Likewise.
5739 (ada_to_fixed_type_1): Likewise.
5740 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5741 (cp_print_value): Likewise.
5742 * d-valprint.c (dynamic_array_type): Likewise.
5743 * eval.c (evaluate_subexp_with_coercion): Likewise.
5744 * findvar.c (address_of_variable): Likewise.
5745 * jv-valprint.c (java_value_print): Likewise.
5746 * valops.c (value_ind): Likewise.
5747 * value.c (coerce_ref): Likewise.
5748
5749 * c-typeprint.c (c_type_print_varspec_suffix): Added
5750 check for not yet resolved high bound. If unresolved, print
5751 "variable length" string to the console instead of random
5752 length.
5753
5754 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5755 property and store it as the high bound and flag the range accordingly.
5756 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5757 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5758 * gdbtypes.h (enum range_flags): New enum.
5759 (struct range_bounds): Add flags member.
5760
5761 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5762 points to a constant blob.
5763
5764 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5765 (evaluate_subexp_standard): Pass noside argument.
5766 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5767 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5768 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5769 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5770 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5771
245a5f0b
KS
57722014-04-11 Keith Seitz <keiths@redhat.com>
5773
5774 PR c++/16675
5775 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5776 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5777 reference types.
5778
3bce8237
SA
57792014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5780
5781 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5782 (evaluate_subexp_standard): Pass noside argument.
5783 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5784 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5785 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5786 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5787 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5788
92b09522
SA
57892014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5790
5791 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5792 points to a constant blob.
5793
e1969afb
SA
57942014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5795
5796 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5797 property and store it as the high bound and flag the range accordingly.
5798 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5799 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5800 * gdbtypes.h (enum range_flags): New enum.
5801 (struct range_bounds): Add flags member.
5802
b86138fb
SA
58032014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5804
5805 * c-typeprint.c (c_type_print_varspec_suffix): Added
5806 check for not yet resolved high bound. If unresolved, print
5807 "variable length" string to the console instead of random
5808 length.
5809
bcd629a4
SA
58102014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5811
5812 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5813 (ada_template_to_fixed_record_type_1): Likewise.
5814 (ada_to_fixed_type_1): Likewise.
5815 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5816 (cp_print_value): Likewise.
5817 * d-valprint.c (dynamic_array_type): Likewise.
5818 * eval.c (evaluate_subexp_with_coercion): Likewise.
5819 * findvar.c (address_of_variable): Likewise.
5820 * jv-valprint.c (java_value_print): Likewise.
5821 * valops.c (value_ind): Likewise.
5822 * value.c (coerce_ref): Likewise.
5823
04b19544
SA
58242014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5825
5826 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5827 value and retrieve the dynamic type size.
5828
26cb189f
SA
58292014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5830
5831 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5832 passed to sizeof is dynamic evaluate the argument to compute the length.
5833
37c1ab67
SA
58342014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5835
5836 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5837 (dwarf2_evaluate_property): New function.
5838 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5839 * dwarf2read.c (attr_to_dynamic_prop): New function.
5840 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5841 attribute.
5842 * gdbtypes.c: Include dwarf2loc.h.
5843 (is_dynamic_type): New function.
5844 (resolve_dynamic_type): New function.
5845 (resolve_dynamic_bounds): New function.
5846 (get_type_length): New function.
5847 (check_typedef): Use get_type_length to compute type length.
5848 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5849 (TYPE_LOW_BOUND_KIND): New macro.
5850 (is_dynamic_type): New function prototype.
5851 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5852 to resolve dynamic properties of the type. Update comment.
5853 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5854
729efb13
SA
58552014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5856
5857 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5858 declaring high/low bounds and change uses accordingly. Call
5859 create_range_type instead of create_static_range_type.
5860 * gdbtypes.c (create_range_type): New function.
5861 (create_range_type): Convert bounds into struct bound_prop and pass
5862 them to create_range_type.
5863 * gdbtypes.h (struct bound_prop): New struct.
5864 (create_range_type): New function prototype.
5865 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5866 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5867 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5868 part of the bound.
5869 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5870
0c9c3474
SA
58712014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5872
5873 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5874 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5875 * ada-lang.c: All uses of create_range_type updated.
5876 * coffread.c: All uses of create_range_type updated.
5877 * dwarf2read.c: All uses of create_range_type updated.
5878 * f-exp.y: All uses of create_range_type updated.
5879 * m2-valprint.c: All uses of create_range_type updated.
5880 * mdebugread.c: All uses of create_range_type updated.
5881 * stabsread.c: All uses of create_range_type updated.
5882 * valops.c: All uses of create_range_type updated.
5883 * valprint.c: All uses of create_range_type updated.
5884
9d497a19
PA
58852014-04-10 Pedro Alves <palves@redhat.com>
5886
5887 * breakpoint.c (single_step_breakpoints)
5888 (single_step_gdbarch): Move up in the file.
5889 (one_breakpoint_xfer_memory): New function, factored out from ...
5890 (breakpoint_xfer_memory): ... here. Also process single-step
5891 breakpoints.
5892
15a9128a
TG
58932014-04-09 Tristan Gingold <gingold@adacore.com>
5894
5895 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5896 comments.
5897 (darwin_decode_exception_message): Free port only after use.
5898
9c97a070
PL
58992014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5900
5901 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5902 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5903 when setting the size of call_length.
5904
7af389b8
SC
59052014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5906
5907 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5908 dereference TYPE_CODE_REF values.
5909
86ad98c3
JB
59102014-04-07 Joel Brobecker <brobecker@adacore.com>
5911
5912 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5913 end of warning message.
5914
b0aeadb3
DE
59152014-04-03 Doug Evans <dje@google.com>
5916
5917 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5918 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5919
5979d6b6
AM
59202014-04-02 Alan Modra <amodra@gmail.com>
5921
5922 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5923 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5924 (struct symbol_file_add_from_memory_args): Add size field.
5925 (find_vdso_size): New function.
5926 (add_vsyscall_page): Attempt to find vdso size.
5927
0d60c288
DE
59282014-04-01 Doug Evans <dje@google.com>
5929
5930 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5931
a41f2563
TG
59322014-04-01 Tristan Gingold <gingold@adacore.com>
5933
5934 * darwin-nat.c (darwin_encode_reply): Add prototype.
5935 (darwin_decode_exception_message): Reply to unknown inferiors.
5936 (darwin_decode_message): Handle message by id. Ignore message
5937 to unknown inferior.
5938 (darwin_wait): Discard unknown messages, add debug trace.
5939
11a865c8
DE
59402014-03-31 Doug Evans <dje@google.com>
5941
5942 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5943 comp_dir_string.
5944
770e7fc7
DE
59452014-03-31 Doug Evans <dje@google.com>
5946
5947 New option "set print symbol-loading".
5948 * NEWS: Mention it.
5949 * solib.c (solib_read_symbols): Only print symbol loading messages
5950 if requested.
5951 (solib_add): If symbol loading is in "brief" mode, notify user
5952 symbols are being loaded.
5953 (reload_shared_libraries_1): Ditto.
5954 * symfile.c (print_symbol_loading_off): New static global.
5955 (print_symbol_loading_brief): New static global.
5956 (print_symbol_loading_full): New static global.
5957 (print_symbol_loading_enums): New static global.
5958 (print_symbol_loading): New static global.
5959 (print_symbol_loading_p): New function.
5960 (symbol_file_add_with_addrs): Only print symbol loading messages
5961 if requested.
5962 (_initialize_symfile): Register "print symbol-loading" set/show
5963 command.
5964 * symfile.h (print_symbol_loading_p): Declare.
5965
c32c64b7
DE
59662014-03-30 Doug Evans <xdje42@gmail.com>
5967
5968 * infrun.c (set_last_target_status): New function.
5969 (handle_inferior_event): Call it.
5970
7c0bc051
DE
59712014-03-30 Doug Evans <xdje42@gmail.com>
5972
5973 * inferior.h (enum stop_kind): Improve comment.
5974
8776cfe9
JB
59752014-03-28 Joel Brobecker <brobecker@adacore.com>
5976
5977 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5978 a reference, strip the reference layer before calling
5979 the lang_ops value_has_mutated callback.
5980
410a0ff2
SDJ
59812014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5982
5983 Remove some globals from our parser.
5984 * language.c (unk_lang_parser): Add "struct parser_state"
5985 argument.
5986 * language.h (struct language_defn) <la_parser>: Likewise.
5987 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5988 (initialize_expout): Add "struct parser_state" argument.
5989 Rewrite function to use the parser state.
5990 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5991 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5992 write_exp_elt_longcst, write_exp_elt_dblcst,
5993 write_exp_elt_decfloatcst, write_exp_elt_type,
5994 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5995 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5996 write_dollar_variable): Likewise.
5997 (parse_exp_in_context_1): Use parser state.
5998 (insert_type_address_space): Add "struct parser_state" argument.
5999 Use parser state.
6000 (increase_expout_size): New function.
6001 * parser-defs.h: Forward declare "struct language_defn" and
6002 "struct parser_state".
6003 (expout, expout_size, expout_ptr): Remove extern declarations.
6004 (parse_gdbarch, parse_language): Rewrite macro declarations to
6005 accept the parser state.
6006 (struct parser_state): New struct.
6007 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
6008 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
6009 write_exp_elt_decfloatcst, write_exp_elt_type,
6010 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
6011 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
6012 write_exp_msymbol, write_dollar_variable,
6013 mark_struct_expression, insert_type_address_space): Add "struct
6014 parser_state" argument.
6015 (increase_expout_size): New function.
6016 * utils.c (do_clear_parser_state): New function.
6017 (make_cleanup_clear_parser_state): Likewise.
6018 * utils.h (make_cleanup_clear_parser_state): New function
6019 prototype.
6020 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
6021 Update calls to write_exp* in order to pass the parser state.
6022 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
6023 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
6024 (i386_stap_parse_special_token_three_arg_disp): Likewise.
6025 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
6026 * stap-probe.c (stap_parse_register_operand): Likewise.
6027 (stap_parse_single_operand): Likewise.
6028 (stap_parse_argument_1): Likewise.
6029 (stap_parse_argument): Use parser state.
6030 * stap-probe.h: Include "parser-defs.h".
6031 (struct stap_parse_info) <pstate>: New field.
6032 * c-exp.y (parse_type): Rewrite to use parser state.
6033 (yyparse): Redefine to c_parse_internal.
6034 (pstate): New global variable.
6035 (parse_number): Add "struct parser_state" argument.
6036 (write_destructor_name): Likewise.
6037 (type_exp): Update calls to write_exp* and similars in order to
6038 use parser state.
6039 (exp1, exp, variable, qualified_name, space_identifier,
6040 typename, typebase): Likewise.
6041 (write_destructor_name, parse_number, lex_one_token,
6042 classify_name, classify_inner_name, c_parse): Add "struct
6043 parser_state" argument. Update function to use parser state.
6044 * c-lang.h: Forward declare "struct parser_state".
6045 (c_parse): Add "struct parser_state" argument.
6046 * ada-exp.y (parse_type): Rewrite macro to use parser state.
6047 (yyparse): Redefine macro to ada_parse_internal.
6048 (pstate): New variable.
6049 (write_int, write_object_renaming, write_var_or_type,
6050 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
6051 type_int, type_long, type_long_long, type_float, type_double,
6052 type_long_double, type_char, type_boolean, type_system_address):
6053 Add "struct parser_state" argument.
6054 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
6055 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
6056 var_or_type, aggregate, aggregate_component_list,
6057 positional_list, others, component_group,
6058 component_associations): Update calls to write_exp* and similar
6059 functions in order to use parser state.
6060 (ada_parse, write_var_from_sym, write_int,
6061 write_exp_op_with_string, write_object_renaming,
6062 find_primitive_type, write_selectors, write_ambiguous_var,
6063 write_var_or_type, write_name_assoc, type_int, type_long,
6064 type_long_long, type_float, type_double, type_long_double,
6065 type_char, type_boolean, type_system_address): Add "struct
6066 parser_state" argument. Adjust function to use parser state.
6067 * ada-lang.c (parse): Likewise.
6068 * ada-lang.h: Forward declare "struct parser_state".
6069 (ada_parse): Add "struct parser_state" argument.
6070 * ada-lex.l (processInt, processReal): Likewise. Adjust all
6071 calls to both functions.
6072 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
6073 parser state.
6074 (yyparse): Redefine macro to f_parse_internal.
6075 (pstate): New variable.
6076 (parse_number): Add "struct parser_state" argument.
6077 (type_exp, exp, subrange, typebase): Update calls to write_exp*
6078 and similars in order to use parser state.
6079 (parse_number): Adjust code to use parser state.
6080 (yylex): Likewise.
6081 (f_parse): New function.
6082 * f-lang.h: Forward declare "struct parser_state".
6083 (f_parse): Add "struct parser_state" argument.
6084 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
6085 parser state.
6086 (yyparse): Redefine macro for java_parse_internal.
6087 (pstate): New variable.
6088 (push_expression_name, push_expression_name, insert_exp): Add
6089 "struct parser_state" argument.
6090 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
6091 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
6092 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
6093 PostIncrementExpression, PostDecrementExpression,
6094 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
6095 UnaryExpressionNotPlusMinus, CastExpression,
6096 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
6097 RelationalExpression, EqualityExpression, AndExpression,
6098 ExclusiveOrExpression, InclusiveOrExpression,
6099 ConditionalAndExpression, ConditionalOrExpression,
6100 ConditionalExpression, Assignment, LeftHandSide): Update
6101 calls to write_exp* and similars in order to use parser state.
6102 (parse_number): Ajust code to use parser state.
6103 (yylex): Likewise.
6104 (java_parse): New function.
6105 (push_variable): Add "struct parser_state" argument. Adjust
6106 code to user parser state.
6107 (push_fieldnames, push_qualified_expression_name,
6108 push_expression_name, insert_exp): Likewise.
6109 * jv-lang.h: Forward declare "struct parser_state".
6110 (java_parse): Add "struct parser_state" argument.
6111 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
6112 parser state.
6113 (yyparse): Redefine macro to m2_parse_internal.
6114 (pstate): New variable.
6115 (type_exp, exp, fblock, variable, type): Update calls to
6116 write_exp* and similars to use parser state.
6117 (yylex): Likewise.
6118 (m2_parse): New function.
6119 * m2-lang.h: Forward declare "struct parser_state".
6120 (m2_parse): Add "struct parser_state" argument.
6121 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
6122 * objc-lang.h: Forward declare "struct parser_state".
6123 (end_msglist): Add "struct parser_state" argument.
6124 * p-exp.y (parse_type): Rewrite macro to use parser state.
6125 (yyparse): Redefine macro to pascal_parse_internal.
6126 (pstate): New variable.
6127 (parse_number): Add "struct parser_state" argument.
6128 (type_exp, exp1, exp, qualified_name, variable): Update calls to
6129 write_exp* and similars in order to use parser state.
6130 (parse_number, yylex): Adjust code to use parser state.
6131 (pascal_parse): New function.
6132 * p-lang.h: Forward declare "struct parser_state".
6133 (pascal_parse): Add "struct parser_state" argument.
6134 * go-exp.y (parse_type): Rewrite macro to use parser state.
6135 (yyparse): Redefine macro to go_parse_internal.
6136 (pstate): New variable.
6137 (parse_number): Add "struct parser_state" argument.
6138 (type_exp, exp1, exp, variable, type): Update calls to
6139 write_exp* and similars in order to use parser state.
6140 (parse_number, lex_one_token, classify_name, yylex): Adjust code
6141 to use parser state.
6142 (go_parse): Likewise.
6143 * go-lang.h: Forward declare "struct parser_state".
6144 (go_parse): Add "struct parser_state" argument.
6145
342587c4
DE
61462014-03-27 Doug Evans <dje@google.com>
6147
6148 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
6149
33e80786
DE
61502014-03-27 Doug Evans <dje@google.com>
6151
6152 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
6153 Remove argument abbrev_section. All callers updated.
6154
1dbab08b
DE
61552014-03-27 Doug Evans <dje@google.com>
6156
6157 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
6158 addr_base, ranges_base.
6159
318d3177
KS
61602014-03-26 Keith Seitz <keiths@redhat.com>
6161
6162 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
6163 types, not VAR_DOMAIN.
6164
1e54db15
SL
61652014-03-25 Sandra Loosemore <sandra@codesourcery.com>
6166
6167 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
6168 "ra" registers.
6169 * features/nios2-linux.c: Regenerated.
6170 * features/nios2.c: Regenerated.
6171
d3839ede
PA
61722014-03-25 Pedro Alves <palves@redhat.com>
6173
6174 * cli/cli-script.c (script_from_file): Force the interpreter to
6175 sync mode.
6176
7588d2ec
PL
61772014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
6178
6179 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
6180 small stack allocation.
6181
a6290449
TG
61822014-03-24 Tristan Gingold <gingold@adacore.com>
6183
6184 * darwin-nat.c (exc_server): Remove unused prototype.
6185 (darwin_dump_message): Correctly display data on x86_64.
6186 (darwin_encode_reply): Fix style.
6187 Add comments and fix indentation.
6188
31ae9d24 61892014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
6190
6191 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
6192
6339bfc4
DE
61932014-03-22 Doug Evans <xdje42@gmail.com>
6194
6195 * infcmd.c: Whitespace fixes.
6196 (interrupt_command): Merge two function comments into one.
6197
0a07590b
DE
61982014-03-22 Doug Evans <xdje42@gmail.com>
6199
6200 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6201 All uses updated.
6202
b55fbac4
YQ
62032014-03-22 Yao Qi <yao@codesourcery.com>
6204
6205 * remote.c (target_read_live_memory): Remove.
6206 (memory_xfer_live_readonly_partial): Rename it to
6207 remote_xfer_live_readonly_partial. Remove argument 'object'.
6208 All callers updated. Call remote_read_bytes_1
6209 instead of target_read_live_memory.
6210 * tracepoint.c (set_traceframe_number): Remove.
6211 (make_cleanup_restore_traceframe_number): Likewise .
6212 * tracepoint.h (set_traceframe_number): Remove declaration.
6213 (make_cleanup_restore_traceframe_number): Likewise.
6214
9217e74e
YQ
62152014-03-22 Yao Qi <yao@codesourcery.com>
6216
6217 * remote.c (remote_read_bytes): Move code on reading from the
6218 remote stub to ...
6219 (remote_read_bytes_1): ... here. New function.
6220
8acf9577
YQ
62212014-03-22 Yao Qi <yao@codesourcery.com>
6222
6223 * ctf.c (ctf_xfer_partial): Check the return value of
6224 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6225 return TARGET_XFER_UNAVAILABLE.
6226 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6227 * target.c (target_read_live_memory): Move it to remote.c.
6228 (memory_xfer_live_readonly_partial): Likewise.
6229 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6230 * remote.c (target_read_live_memory): Moved from target.c.
6231 (memory_xfer_live_readonly_partial): Likewise.
6232 (remote_read_bytes): Factored out from
6233 memory_xfer_partial_1.
6234
feef67ab
DE
62352014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6236
6237 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6238 NULL pointer.
6239
b65dc60b
PA
62402014-03-21 Pedro Alves <palves@redhat.com>
6241
6242 * infrun.c (normal_stop): Extend comment.
6243
b4ab256d
HZ
62442014-03-21 Hui Zhu <hui@codesourcery.com>
6245 Pedro Alves <palves@redhat.com>
6246
6247 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6248 static buffer.
6249 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6250 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6251 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6252
deba7593
MR
62532014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6254
6255 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6256 `z' formatted output modifier.
6257
1bff71c3
SDJ
62582014-03-20 Tom Tromey <tromey@redhat.com>
6259 Sergio Durigan Junior <sergiodj@redhat.com>
6260
6261 * probe.c (parse_probes): Turn assert into an ordinary error.
6262 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6263 exceptions when parsing probes. Rearrange the code for clarity.
6264
90e28950
TT
62652014-03-20 Tom Tromey <tromey@redhat.com>
6266
6267 PR gdb/14135
6268 * top.c (execute_command): Only dispatch events if the command
6269 started the target.
6270
beb460e8
PA
62712014-03-20 Tom Tromey <tromey@redhat.com>
6272
6273 PR cli/15718
6274 * infcall.c: Include event-top.h.
6275 (run_inferior_call): Call async_disable_stdin if needed.
6276
99619bea
PA
62772014-03-20 Pedro Alves <palves@redhat.com>
6278
6279 * infrun.c (prepare_to_proceed): Delete.
6280 (thread_still_needs_step_over): New function.
6281 (find_thread_needs_step_over): New function.
6282 (proceed): If the current thread needs a step-over, set its
6283 steping_over_breakpoint flag. Adjust to use
6284 find_thread_needs_step_over instead of prepare_to_proceed.
6285 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6286 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6287 breakpoint.
6288 (switch_back_to_stepped_thread): Step over breakpoints of all
6289 threads not the stepping thread, before switching back to the
6290 stepping thread.
6291
2adfaa28
PA
62922014-03-20 Pedro Alves <palves@redhat.com>
6293
6294 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6295 extern.
6296 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6297 * infrun.c (saved_singlestep_ptid)
6298 (stepping_past_singlestep_breakpoint): Delete.
6299 (resume): Remove stepping_past_singlestep_breakpoint handling.
6300 (proceed): Store the prev_pc of the stepping thread too.
6301 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6302 singlestep_pc.
6303 (enum infwait_states): Delete infwait_thread_hop_state.
6304 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6305 field.
6306 (handle_inferior_event): Adjust.
6307 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6308 handling and the thread-hop code. Before removing single-step
6309 breakpoints, check whether the thread hit a single-step breakpoint
6310 of another thread. If it did, the trap is not a random signal.
6311 (switch_back_to_stepped_thread): If the event thread hit a
6312 single-step breakpoint, unblock it before switching to the
6313 stepping thread. Handle the case of the stepped thread having
6314 advanced already.
6315 (keep_going): Handle the case of the current thread moving past a
6316 single-step breakpoint.
6317
31e77af2
PA
63182014-03-20 Pedro Alves <palves@redhat.com>
6319
6320 PR breakpoints/7143
6321 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6322 are being stepped over.
6323 (breakpoint_address_match): Make extern.
6324 * breakpoint.h (breakpoint_address_match): New declaration.
6325 * inferior.h (stepping_past_instruction_at): New declaration.
6326 * infrun.c (struct step_over_info): New type.
6327 (step_over_info): New global.
6328 (set_step_over_info, clear_step_over_info)
6329 (stepping_past_instruction_at): New functions.
6330 (handle_inferior_event): Clear the step-over info when
6331 trap_expected is cleared.
6332 (resume): Remove now stale comment.
6333 (clear_proceed_status): Clear step-over info.
6334 (proceed): Adjust step-over handling to set or clear the step-over
6335 info instead of removing all breakpoints.
6336 (handle_signal_stop): When setting up a thread-hop, don't remove
6337 breakpoints here.
6338 (stop_stepping): Clear step-over info.
6339 (keep_going): Adjust step-over handling to set or clear step-over
6340 info and then always inserting breakpoints, instead of removing
6341 all breakpoints when stepping over one.
6342
b9f437de
PA
63432014-03-20 Pedro Alves <palves@redhat.com>
6344
6345 * infrun.c (previous_inferior_ptid): Adjust comment.
6346 (deferred_step_ptid): Delete.
6347 (infrun_thread_ptid_changed, prepare_to_proceed)
6348 (init_wait_for_inferior): Adjust.
6349 (handle_signal_stop): Delete deferred_step_ptid handling.
6350
06c868a8
JK
63512014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6352
6353 PR gdb/15358
6354 * defs.h (sync_quit_force_run): New declaration.
6355 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6356 * event-top.c (async_sigterm_handler): New declaration.
6357 (async_sigterm_token): New variable.
6358 (async_init_signals): Create also async_sigterm_token.
6359 (async_sigterm_handler): New function.
6360 (sync_quit_force_run): New variable.
6361 (handle_sigterm): Replace quit_force call by other calls.
6362 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6363
dea80df0
MR
63642014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6365
6366 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6367 offset into SPE pseudo registers.
6368
0c7e1a46
PA
63692014-03-18 Pedro Alves <palves@redhat.com>
6370
6371 PR gdb/13860
6372 * inferior.h (print_stop_event): Declare.
6373 * infrun.c (print_stop_event): New, factored out from ...
6374 (normal_stop): ... this.
6375 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6376 of bpstat_print/print_stack_frame.
6377
9c1fcd01
TT
63782014-03-17 Tom Tromey <tromey@redhat.com>
6379
6380 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6381
11aa919a
PMR
63822014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6383
6384 * ada-lang.c (decode_constrained_packed_array): Perform a
6385 minimal coercion for reference with coerce_ref instead of
6386 ada_coerce_ref.
6387
d4ccb5e0
TG
63882014-03-17 Tristan Gingold <gingold@adacore.com>
6389
6390 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6391 (darwin_solib_create_inferior_hook): Emit a warning if version
6392 is unhandled.
6393
49840f2a
UW
63942014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6395
6396 * python/py-value.c (get_field_flag): Cast flag_name argument to
6397 PyObject_GetAttrString to support Python 2.4.
6398
ed4123e5
JK
63992014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6400
6401 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6402 (Global Maintainers): Remove Jan Kratochvil.
6403
d6b64346
PA
64042014-03-14 Pedro Alves <palves@redhat.com>
6405
6406 * inferior.h (terminal_ours_for_output): Rename to ...
6407 (child_terminal_ours_for_output): ... this.
6408 (terminal_save_ours): Rename to ...
6409 (child_terminal_save_ours): ... this.
6410 (terminal_ours): Rename to ...
6411 (child_terminal_ours): ... this.
6412 (terminal_inferior): Rename to ...
6413 (child_terminal_inferior): ... this.
6414 (terminal_init_inferior): Rename to ...
6415 (child_terminal_init_inferior): ... this.
6416 (terminal_init_inferior_with_pgrp): Rename to ...
6417 (child_terminal_init_inferior_with_pgrp): ... this.
6418 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6419 (child_terminal_init_with_pgrp): ... this.
6420 (terminal_save_ours): Rename to ...
6421 (child_terminal_save_ours): ... this.
6422 (terminal_init_inferior): Rename to ...
6423 (child_terminal_init): ... this. Adjust.
6424 (terminal_inferior): Rename to ...
6425 (child_terminal_inferior): ... this.
6426 (terminal_ours_for_output): Rename to ...
6427 (child_terminal_ours_for_output): ... this. Adjust.
6428 (terminal_ours): Rename to ...
6429 (child_terminal_ours): ... this.
6430 (terminal_ours_1): Rename to ...
6431 (child_terminal_ours_1): ... this. Adjust.
6432 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6433 * windows-nat.c (do_initial_windows_stuff): Adjust.
6434 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6435 (gnu_terminal_init): ... this. Adjust.
6436 (gnu_target): Adjust.
6437 * inf-child.c (inf_child_target): Adjust.
6438
5a1e8c7a
DE
64392014-03-13 Doug Evans <xdje42@gmail.com>
6440
6441 PR guile/16612
6442 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6443 new eq?-hashtab.
6444
350e1a76
DE
64452014-03-13 Doug Evans <xdje42@gmail.com>
6446
6447 * value.c (record_latest_value): Call release_value_or_incref
6448 instead of release_value.
6449
a69900ae
PA
64502014-03-13 Pedro Alves <palves@redhat.com>
6451
6452 * procfs.c (procfs_target): Don't override to_shortname,
6453 to_longname or to_doc.
6454
5db9f0bd
PA
64552014-03-13 Pedro Alves <palves@redhat.com>
6456
6457 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6458 Unix in user visible strings.
6459
5e3a2c38
SS
64602014-03-12 Stan Shebs <stan@codesourcery.com>
6461
6462 * gdbtypes.h: Annotate comments for Doxygen, add a page
6463 block comment with some general info.
6464
8bc2fe48
PA
64652014-03-12 Pedro Alves <palves@redhat.com>
6466
6467 * infcmd.c (prepare_execution_command): New function, factored out
6468 from several execution commands.
6469 (run_command_1, continue_command, step_1, jump_command)
6470 (signal_command, until_command, advance_command, finish_command)
6471 (attach_command): Use prepare_execution_command.
6472
638c5f49
OJ
64732014-03-12 Omair Javaid <omair.javaid@linaro.org>
6474
6475 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6476 (MAX_BPTS): Define.
6477 (MAX_WPTS): Define.
6478 (struct arm_linux_thread_points): Removed.
6479 (struct arm_linux_process_info): New.
6480 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6481 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6482 (arm_linux_find_breakpoints_by_tid): Removed.
6483 (struct arch_lwp_info): New.
6484 (arm_linux_find_process_pid): New functions.
6485 (arm_linux_add_process): New functions.
6486 (arm_linux_process_info_get): New functions.
6487 (arm_linux_forget_process): New function.
6488 (arm_linux_get_debug_reg_state): New function.
6489 (struct update_registers_data): New.
6490 (update_registers_callback): New function.
6491 (arm_linux_insert_hw_breakpoint1): Updated.
6492 (arm_linux_remove_hw_breakpoint1): Updated.
6493 (arm_linux_insert_hw_breakpoint): Updated.
6494 (arm_linux_remove_hw_breakpoint): Updated.
6495 (arm_linux_insert_watchpoint): Updated.
6496 (arm_linux_remove_watchpoint): Updated.
6497 (arm_linux_new_thread): Updated.
6498 (arm_linux_prepare_to_resume): New function.
6499 (arm_linux_new_fork): New function.
6500 (_initialize_arm_linux_nat): Updated.
6501
6d03af93
PA
65022014-03-12 Pedro Alves <palves@redhat.com>
6503
6504 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6505
b3ccfe11
TT
65062014-03-12 Tom Tromey <tromey@redhat.com>
6507
6508 * inf-child.c (return_zero): New function.
6509 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6510 * aix-thread.c (aix_thread_inferior_created): New function.
6511 (aix_thread_attach): Remove.
6512 (init_aix_thread_ops): Don't set to_attach.
6513 (_initialize_aix_thread): Register inferior_created observer.
6514 * corelow.c (init_core_ops): Don't set to_attach or
6515 to_create_inferior.
6516 * exec.c (init_exec_ops): Don't set to_attach or
6517 to_create_inferior.
6518 * infcmd.c (run_command_1): Use find_run_target. Make direct
6519 target calls.
6520 (attach_command): Use find_attach_target. Make direct target
6521 calls.
6522 * record-btrace.c (init_record_btrace_ops): Don't set
6523 to_create_inferior.
6524 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6525 Remove.
6526 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6527 set to_create_inferior.
6528 * target.c (complete_target_initialization): Add assertion.
6529 (target_create_inferior): Remove.
6530 (find_default_attach, find_default_create_inferior): Remove.
6531 (find_attach_target, find_run_target): New functions.
6532 (find_default_is_async_p, find_default_can_async_p)
6533 (target_supports_non_stop, target_attach): Remove.
6534 (init_dummy_target): Don't set to_create_inferior or
6535 to_supports_non_stop.
6536 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6537 TARGET_DEFAULT_FUNC.
6538 <to_create_inferior>: Add comment.
6539 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6540 TARGET_DEFAULT_RETURN.
6541 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6542 (find_attach_target, find_run_target): Declare.
6543 (target_create_inferior): Remove.
6544 (target_has_execution_1): Update comment.
6545 (target_supports_non_stop): Remove.
6546 * target-delegates.c: Rebuild.
6547
91f83b02
PA
65482014-03-12 Pedro Alves <palves@redhat.com>
6549
6550 * inf-child.h: Update comment to not mention Unix.
6551
f1aea813
PA
65522014-03-12 Pedro Alves <palves@redhat.com>
6553
6554 * inf-child.c: Update top comment to not mention Unix. Add
6555 generic comment describing how this target is meant to be used.
6556 (inf_child_post_attach, inf_child_post_startup_inferior)
6557 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6558 Unix in comment.
6559
ee8e9165
PA
65602014-03-12 Pedro Alves <palves@redhat.com>
6561
6562 * nto-procfs.c: Include inf-child.h.
6563 (procfs_ops): Delete global.
6564 (procfs_can_run): Delete method.
6565 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6566 target pointer instead of referencing procfs_ops.
6567 (procfs_prepare_to_store): Delete.
6568 (init_procfs_ops): Delete function.
6569 (procfs_target): New function, based on init_procfs_ops, but
6570 inherit inf_child_target.
6571 (_initialize_procfs): Use procfs_target.
6572
51a9c8c5
PA
65732014-03-12 Pedro Alves <palves@redhat.com>
6574
6575 * windows-nat.c: Include inf-child.h.
6576 (windows_ops): Delete global.
6577 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6578 methods.
6579 (init_windows_ops): Delete function.
6580 (windows_target): New function, based on init_windows_ops, but
6581 inherit inf_child_target.
6582 (_initialize_windows_nat): Use windows_target. Install x86
6583 specific target methods here.
6584
c1966e26
DE
65852014-03-10 Doug Evans <xdje42@gmail.com>
6586
6587 * guile/guile.c (call_initialize_gdb_module): New function.
6588 (initialize_guile): Replace call to scm_init_guile with call to
6589 scm_with_guile.
6590
023db19c
JB
65912014-03-10 Joel Brobecker <brobecker@adacore.com>
6592
6593 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6594 in call to TYPE_CODE macro.
6595
5ec18f2b
JG
65962014-03-10 Jerome Guitton <guitton@adacore.com>
6597
8668be63
JB
6598 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6599 Resolve tagged types to full view.
5ec18f2b 6600
7d03f2eb
HZ
66012014-03-10 Hui Zhu <hui@codesourcery.com>
6602
6603 * target.h (target_insert_breakpoint): Remove "hardware" from its
6604 comments.
6605
c5164cbc
DE
66062014-03-07 Doug Evans <dje@google.com>
6607
6608 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6609
c4a3fee2
DE
66102014-03-07 Doug Evans <dje@google.com>
6611
6612 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6613 Remove unused local comp_dir_attr. Assert exactly one of
6614 stub_comp_unit_die, stub_comp_dir is non-NULL.
6615
3156469c
JB
66162014-03-07 Joel Brobecker <brobecker@adacore.com>
6617
6618 * target.h (complete_target_initialization, add_target):
6619 Add comment.
6620
c1a7b7c6
PA
66212014-03-07 Pedro Alves <palves@redhat.com>
6622
6623 * go32-nat.c: Include inf-child.h.
6624 (go32_ops): Delete global.
6625 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6626 Delete methods.
6627 (go32_create_inferior): Push the passed in target pointer instead
6628 of referencing go32_ops.
6629 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6630 (go32_target): New function, based on init_go32_ops, but inherit
6631 inf_child_target.
6632 (_initialize_go32_nat): Use go32_target. Move parts of
6633 init_go32_ops here.
6634
d3c1a85f
JB
66352014-03-06 Joel Brobecker <brobecker@adacore.com>
6636
6637 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6638 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6639 SYMBOL_VALUE_ADDRESS.
6640 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6641
5fa1d40e
YQ
66422014-03-06 Yao Qi <yao@codesourcery.com>
6643
6644 * breakpoint.c (get_tracepoint_by_number): Remove argument
6645 optional_p. All callers updated. Adjust comments. Update
6646 output message.
6647 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6648
0c13193f
YQ
66492014-03-06 Yao Qi <yao@codesourcery.com>
6650
6651 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6652 early if get_number returns zero. Use 'p' instead of 'args'.
6653
2217da06
YQ
66542014-03-06 Yao Qi <yao@codesourcery.com>
6655
6656 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6657 message.
6658
cc3da688
YQ
66592014-03-06 Yao Qi <yao@codesourcery.com>
6660
6661 PR breakpoints/16508
6662 * tracepoint.c (check_trace_running): New function.
6663 (trace_find_command): Move code to check_trace_running and
6664 call check_trace_running.
6665 (trace_find_pc_command): Likewise.
6666 (trace_find_tracepoint_command): Likewise.
6667 (trace_find_line_command): Likewise.
6668 (trace_find_range_command): Likewise.
6669 * tracepoint.h (check_trace_running): Likewise.
6670 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6671
6a5f844b
YQ
66722014-03-06 Yao Qi <yao@codesourcery.com>
6673
6674 * target.h (struct target_ops) <to_traceframe_info>: Use
6675 TARGET_DEFAULT_NORETURN (tcomplain ()).
6676 * target-delegates.c: Regenerated.
6677
0f26cec1
PA
66782014-03-05 Pedro Alves <palves@redhat.com>
6679
6680 PR gdb/16575
6681 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6682 void. Update comment.
6683 (dcache_xfer_memory): Delete.
6684 (dcache_read_memory_partial): New, based on the read bits of
6685 dcache_xfer_memory.
6686 (dcache_update): Add status parameter. Use ULONGEST for len, and
6687 adjust. Discard cache lines if the reason for the update was
6688 error.
6689 * dcache.h (dcache_xfer_memory): Delete declaration.
6690 (dcache_read_memory_partial): New declaration.
6691 (dcache_update): Update prototype.
6692 * target.c (raw_memory_xfer_partial): Update the dcache here.
6693 (memory_xfer_partial_1): Don't handle dcache writes here.
6694
b2b255bd
MF
66952014-03-05 Mike Frysinger <vapier@gentoo.org>
6696
6697 * remote-sim.c (gdbsim_load): Add const to prog.
6698
5d9cf8a4
TT
66992014-03-03 Tom Tromey <tromey@redhat.com>
6700
6701 * elfread.c (probe_key): Change to bfd_data.
6702 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6703 now per-BFD, not per-objfile.
6704 * stap-probe.c (stap_probe_destroy): Update comment.
6705 (handle_stap_probe): Allocate on the per-BFD obstack.
6706
729662a5
TT
67072014-03-03 Tom Tromey <tromey@redhat.com>
6708
6709 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6710 * breakpoint.c (create_longjmp_master_breakpoint): Use
6711 get_probe_address.
6712 (add_location_to_breakpoint, bkpt_probe_insert_location)
6713 (bkpt_probe_remove_location): Update.
6714 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6715 * elfread.c (elf_symfile_relocate_probe): Remove.
6716 (elf_probe_fns): Update.
6717 (insert_exception_resume_breakpoint): Change type of "probe"
6718 parameter to bound_probe.
6719 (check_exception_resume): Update.
6720 * objfiles.c (objfile_relocate1): Don't relocate probes.
6721 * probe.c (bound_probe_s): New typedef.
6722 (parse_probes): Use get_probe_address. Set sal's objfile.
6723 (find_probe_by_pc): Return a bound_probe.
6724 (collect_probes): Return a VEC(bound_probe_s).
6725 (compare_probes): Update.
6726 (gen_ui_out_table_header_info): Change type of "probes"
6727 parameter. Update.
6728 (info_probes_for_ops): Update.
6729 (get_probe_address): New function.
6730 (probe_safe_evaluate_at_pc): Update.
6731 * probe.h (struct probe_ops) <get_probe_address>: New field.
6732 <set_semaphore, clear_semaphore>: Add objfile parameter.
6733 (struct probe) <objfile>: Remove field.
6734 <arch>: New field.
6735 <address>: Update comment.
6736 (struct bound_probe): New.
6737 (find_probe_by_pc): Return a bound_probe.
6738 (get_probe_address): Declare.
6739 * solib-svr4.c (struct probe_and_action) <address>: New field.
6740 (hash_probe_and_action, equal_probe_and_action): Update.
6741 (register_solib_event_probe): Add address parameter.
6742 (solib_event_probe_at): Update.
6743 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6744 get_probe_address.
6745 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6746 (stap_get_probe_address): New function.
6747 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6748 (compile_probe_arg): Update.
6749 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6750 address.
6751 (handle_stap_probe): Don't relocate the probe.
6752 (stap_relocate): Remove.
6753 (stap_gen_info_probes_table_values): Update.
6754 (stap_probe_ops): Remove stap_relocate.
6755 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6756 (debug_sym_probe_fns): Update.
6757 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6758 * symtab.c (init_sal): Use memset.
6759 * symtab.h (struct symtab_and_line) <objfile>: New field.
6760 * tracepoint.c (start_tracing, stop_tracing): Update.
6761
ff887920
TT
67622014-03-03 Tom Tromey <tromey@redhat.com>
6763
6764 * probe.h (parse_probes, find_probe_by_pc)
6765 (find_probes_in_objfile): Fix comments.
6766
f0407826
DE
67672014-03-02 Doug Evans <xdje42@gmail.com>
6768
6769 * infrun.c (handle_signal_stop): Replace test for
6770 TARGET_WAITKIND_STOPPED with an assert.
6771
35e6a711
DE
67722014-03-02 Doug Evans <xdje42@gmail.com>
6773
6774 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6775
667f9d0b
DE
67762014-03-02 Doug Evans <xdje42@gmail.com>
6777
6778 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6779
dc92ace0
MK
67802014-03-01 Mark Kettenis <kettenis@gnu.org>
6781
6782 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6783
a900370f
MK
67842014-03-01 Mark Kettenis <kettenis@gnu.org>
6785
6786 * i386obsd-nat.c: Include "obsd-nat.h".
6787 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6788 add_target.
6789 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6790
b72a7981
MK
67912014-03-01 Mark Kettenis <kettenis@gnu.org>
6792
6793 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6794
96c70aba
MK
67952014-03-01 Mark Kettenis <kettenis@gnu.org>
6796
6797 * mips64obsd-nat.c: Include "obsd-nath".
6798 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6799 add_target
6800 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6801
874a80af
MK
68022014-03-01 Mark Kettenis <kettenis@gnu.org>
6803
8fd408f1
MK
6804 * amd64obsd-nat.c: Include "obsd-nat,h.
6805 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6806 add_target.
874a80af
MK
6807 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6808
9cf95373
SC
68092014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6810
6811 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6812 (find_overload_match): Update call to find_oload_champ.
6813 (find_oload_champ_namespace_loop): Likewise
6814
863e4da4
MK
68152014-02-28 Mark Kettenis <kettenis@gnu.org>
6816
025cac40
MK
6817 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6818
1ed586ce
MK
6819 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6820 * config/sparc/obsd64.mh: New file.
6821 * sparc64obsd-nat.c: New file.
6822
863e4da4
MK
6823 * obsd-nat.h: New file.
6824 * obsd-nat.c: New file.
6825 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6826 (ALLDEPFILES): Add obsd-nat.c.
6827
89de4da4
TT
68282014-02-28 Tom Tromey <tromey@redhat.com>
6829
6830 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6831 * cli-out.h (cli_ui_out_impl): Now const.
6832 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6833 * ui-out.c (struct ui_out) <impl>: Now const.
6834 (default_ui_out_impl): Now const.
6835 (ui_out_new): Make 'impl' parameter const.
6836 * ui-out.h (ui_out_new): Update.
6837
c725e7b6
MK
68382014-02-27 Mark Kettenis <kettenis@gnu.org>
6839
6840 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6841
670b46b3
MK
68422014-02-27 Mark Kettenis <kettenis@gnu.org>
6843
6844 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6845
c91550fc
JK
68462014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6847
6848 Additional PR 8882 fix.
6849 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6850
2fa0369e
PA
68512014-02-27 Pedro Alves <palves@redhat.com>
6852
6853 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6854 isn't set.
6855
d632a097
PA
68562014-02-27 Pedro Alves <palves@redhat.com>
6857
6858 PR 12702
6859 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6860 * nat/linux-waitpid.c: Include string.h.
6861 (status_to_str): Moved here and made extern.
6862 * nat/linux-waitpid.h (status_to_str): New declaration.
6863
2ebd5a35
HZ
68642014-02-27 Hui Zhu <hui@codesourcery.com>
6865
6866 PR 12702
6867 * infrun.c (ptid_match): Move ...
6868 * common/ptid.c (ptid_match): ... here.
6869 * inferior.h (ptid_match): Move ...
6870 * common/ptid.h (ptid_match): ... here.
6871
3cdd631f
MK
68722014-02-27 Mark Kettenis <kettenis@gnu.org>
6873
6874 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6875 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6876 gdb_target_obs.
6877
bee30a64
MK
68782014-02-27 Mark Kettenis <kettenis@gnu.org>
6879
6880 * obsd-tdep.c (obsd_auxv_parse): New function.
6881 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6882
6883 * gdbarch.sh (auxv_parse): New.
6884 * gdbarch.h: Regenerated.
6885 * gdbarch.c: Regenerated.
6886 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6887
7a5a839f
LC
68882014-02-26 Ludovic Courtès <ludo@gnu.org>
6889
6890 * guile/scm-value.c (gdbscm_history_append_x): New function.
6891 (value_functions): Add it.
6892
31aa7e4e
JB
68932014-02-27 Joel Brobecker <brobecker@adacore.com>
6894
6895 * dwarf2read.c (attr_value_as_address): New function.
6896 (dwarf2_find_base_address, read_call_site_scope): Use
6897 attr_value_as_address in place of DW_ADDR.
6898 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6899 the low and high addresses. Slight rework of the handling
6900 of the high pc being a constant form, and limit it to
6901 DWARF verson 4 or higher.
6902 (dwarf2_record_block_ranges): Likewise.
6903 (read_partial_die): Likewise.
6904 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6905
9b333ba3
TT
69062014-02-26 Tom Tromey <tromey@redhat.com>
6907
6908 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6909
5f6cac40
TT
69102014-02-26 Tom Tromey <tromey@redhat.com>
6911
6912 * elfread.c (elf_read_minimal_symbols): Return early if
6913 minimal symbols have already been read. Add "ei" parameter.
6914 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6915 * minsyms.c (prim_record_minimal_symbol_full): Update.
6916 * objfiles.h (struct objstats) <n_minsyms>: Move...
6917 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6918 * symmisc.c (print_objfile_statistics): Update.
6919
2750ef27
TT
69202014-02-26 Tom Tromey <tromey@redhat.com>
6921
6922 * elfread.c (elf_read_minimal_symbols): New function, from
6923 elf_symfile_read.
6924 (elf_symfile_read): Call it.
6925
34643a32
TT
69262014-02-26 Tom Tromey <tromey@redhat.com>
6927
6928 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6929 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6930 (lookup_minimal_symbol_solib_trampoline)
6931 (lookup_minimal_symbol_by_pc_section_1)
6932 (lookup_minimal_symbol_and_objfile): Update.
6933 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6934 Don't allocate a minimal symbol if minsyms have already been read.
6935 (build_minimal_symbol_hash_tables): Update.
6936 (install_minimal_symbols): Do nothing if minsyms already read.
6937 Use the per-BFD obstack.
6938 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6939 * objfiles.c (allocate_objfile): Call
6940 terminate_minimal_symbol_table later.
6941 (have_minimal_symbols): Update.
6942 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6943 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6944 Move from struct objfile.
6945 <minsyms_read>: New field.
6946 (struct objfile) <msymbols, minimal_symbol_count,
6947 msymbol_hash, msymbol_demangled_hash>: Move.
6948 (ALL_OBJFILE_MSYMBOLS): Update.
6949 * symfile.c (read_symbols): Set minsyms_read.
6950 (reread_symbols): Update.
6951 * symmisc.c (dump_objfile, dump_msymbols): Update.
6952
2273f0ac
TT
69532014-02-26 Tom Tromey <tromey@redhat.com>
6954
6955 * minsyms.c (msymbols_sort): Remove.
6956 * minsyms.h (msymbols_sort): Remove.
6957 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6958 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6959 * elfread.c (elf_symtab_read): Don't add section offsets.
6960 * xcoffread.c (record_minimal_symbol): Don't add section offset
6961 to minimal symbol address.
6962 * somread.c (text_offset, data_offset): Remove.
6963 (som_symtab_read): Don't add section offsets to minimal symbol
6964 addresses.
6965 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6966 Don't add section offsets to minimal symbols.
6967 * coffread.c (coff_symtab_read): Don't add section offsets
6968 to minimal symbol addresses.
6969 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6970 to minimal symbol addresses.
6971 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6972 section offset to minimal symbol addresses.
6973 * mdebugread.c (parse_partial_symbols): Don't add section
6974 offset to minimal symbol addresses.
6975 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6976 offset to minimal symbol addresses.
6977
77e371c0
TT
69782014-02-26 Tom Tromey <tromey@redhat.com>
6979
6980 * ada-lang.c (ada_main_name): Update.
6981 (ada_add_standard_exceptions): Update.
6982 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6983 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6984 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6985 * auxv.c (ld_so_xfer_auxv): Update.
6986 * avr-tdep.c (avr_scan_prologue): Update.
6987 * ax-gdb.c (gen_var_ref): Update.
6988 * blockframe.c (get_pc_function_start)
6989 (find_pc_partial_function_gnu_ifunc): Update.
6990 * breakpoint.c (create_overlay_event_breakpoint)
6991 (create_longjmp_master_breakpoint)
6992 (create_std_terminate_master_breakpoint)
6993 (create_exception_master_breakpoint): Update.
6994 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6995 * c-valprint.c (c_val_print): Update.
6996 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6997 * common/agent.c (agent_look_up_symbols): Update.
6998 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6999 * dwarf2loc.c (call_site_to_target_addr): Update.
7000 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
7001 * elfread.c (elf_gnu_ifunc_record_cache)
7002 (elf_gnu_ifunc_resolve_by_got): Update.
7003 * findvar.c (default_read_var_value): Update.
7004 * frame.c (inside_main_func): Update.
7005 * frv-tdep.c (frv_frame_this_id): Update.
7006 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7007 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7008 Update.
7009 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
7010 (hppa_hpux_find_dummy_bpaddr): Update.
7011 * hppa-tdep.c (hppa_symbol_address): Update.
7012 * infcmd.c (until_next_command): Update.
7013 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
7014 Update.
7015 * linespec.c (minsym_found, add_minsym): Update.
7016 * linux-nat.c (get_signo): Update.
7017 * linux-thread-db.c (inferior_has_bug): Update.
7018 * m32c-tdep.c (m32c_return_value)
7019 (m32c_m16c_address_to_pointer): Update.
7020 * m32r-tdep.c (m32r_frame_this_id): Update.
7021 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7022 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7023 * maint.c (maintenance_translate_address): Update.
7024 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
7025 (frob_address): New function.
7026 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
7027 frob_address. Rename parameter to "pc_in".
7028 (compare_minimal_symbols, compact_minimal_symbols): Use raw
7029 addresses.
7030 (find_solib_trampoline_target, minimal_symbol_upper_bound):
7031 Update.
7032 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7033 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
7034 * objc-lang.c (find_objc_msgsend): Update.
7035 * objfiles.c (objfile_relocate1): Update.
7036 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7037 * p-valprint.c (pascal_val_print): Update.
7038 * parse.c (write_exp_msymbol): Update.
7039 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
7040 (ppc_elfv2_skip_entrypoint): Update.
7041 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7042 * printcmd.c (build_address_symbolic, msym_info)
7043 (address_info): Update.
7044 * proc-service.c (ps_pglobal_lookup): Update.
7045 * psymtab.c (find_pc_sect_psymtab_closer)
7046 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
7047 Change msymbol parameter to bound_minimal_symbol.
7048 * ravenscar-thread.c (get_running_thread_id): Update.
7049 * remote.c (remote_check_symbols): Update.
7050 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
7051 address.
7052 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7053 * solib-dsbt.c (lm_base): Update.
7054 * solib-frv.c (lm_base, main_got): Update.
7055 * solib-irix.c (locate_base): Update.
7056 * solib-som.c (som_solib_create_inferior_hook)
7057 (link_map_start): Update.
7058 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
7059 * solib-svr4.c (elf_locate_base, enable_break): Update.
7060 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7061 (flush_ea_cache): Update.
7062 * stabsread.c (define_symbol, scan_file_globals): Update.
7063 * stack.c (find_frame_funname): Update.
7064 * symfile-debug.c (debug_qf_expand_symtabs_matching)
7065 (debug_qf_find_pc_sect_symtab): Update.
7066 * symfile.c (simple_read_overlay_table)
7067 (simple_overlay_update): Update.
7068 * symfile.h (struct quick_symbol_functions)
7069 <find_pc_sect_symtab>: Change type of msymbol to
7070 bound_minimal_symbol.
7071 * symmisc.c (dump_msymbols): Update.
7072 * symtab.c (find_pc_sect_symtab_via_partial)
7073 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
7074 (search_symbols, print_msymbol_info): Update.
7075 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
7076 (MSYMBOL_VALUE_ADDRESS): Redefine.
7077 (BMSYMBOL_VALUE_ADDRESS): New macro.
7078 * tracepoint.c (scope_info): Update.
7079 * tui/tui-disasm.c (tui_find_disassembly_address)
7080 (tui_get_begin_asm_address): Update.
7081 * valops.c (find_function_in_inferior): Update.
7082 * value.c (value_static_field, value_fn_field): Update.
7083
3b7344d5
TT
70842014-02-26 Tom Tromey <tromey@redhat.com>
7085
7086 * ada-lang.c (ada_update_initial_language): Update.
7087 (ada_main_name, ada_has_this_exception_support): Update.
7088 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
7089 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7090 * arm-tdep.c (arm_skip_stub): Update.
7091 * auxv.c (ld_so_xfer_auxv): Update.
7092 * avr-tdep.c (avr_scan_prologue): Update.
7093 * ax-gdb.c (gen_var_ref): Update.
7094 * breakpoint.c (struct breakpoint_objfile_data)
7095 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
7096 type to bound_minimal_symbol.
7097 (create_overlay_event_breakpoint)
7098 (create_longjmp_master_breakpoint)
7099 (create_std_terminate_master_breakpoint)
7100 (create_exception_master_breakpoint): Update.
7101 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7102 * c-exp.y (classify_name): Update.
7103 * coffread.c (coff_symfile_read): Update.
7104 * common/agent.c (agent_look_up_symbols): Update.
7105 * d-lang.c (d_main_name): Update.
7106 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
7107 * dec-thread.c (enable_dec_thread): Update.
7108 * dwarf2loc.c (call_site_to_target_addr): Update.
7109 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
7110 * eval.c (evaluate_subexp_standard): Update.
7111 * findvar.c (struct minsym_lookup_data) <result>: Change type
7112 to bound_minimal_symbol.
7113 <objfile>: Remove.
7114 (minsym_lookup_iterator_cb, default_read_var_value): Update.
7115 * frame.c (inside_main_func): Update.
7116 * frv-tdep.c (frv_frame_this_id): Update.
7117 * gcore.c (call_target_sbrk): Update.
7118 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7119 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
7120 Update.
7121 * go-lang.c (go_main_name): Update.
7122 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
7123 (hppa_hpux_find_import_stub_for_addr): Update.
7124 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
7125 Update. Change return type.
7126 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
7127 type.
7128 * jit.c (jit_breakpoint_re_set_internal): Update.
7129 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
7130 Update.
7131 * linux-nat.c (get_signo): Update.
7132 * linux-thread-db.c (inferior_has_bug): Update
7133 * m32c-tdep.c (m32c_return_value)
7134 (m32c_m16c_address_to_pointer): Update.
7135 * m32r-tdep.c (m32r_frame_this_id): Update.
7136 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7137 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7138 * minsyms.c (lookup_minimal_symbol_internal): Rename to
7139 lookup_minimal_symbol. Change return type.
7140 (lookup_minimal_symbol): Remove.
7141 (lookup_bound_minimal_symbol): Update.
7142 (lookup_minimal_symbol_text): Change return type.
7143 (lookup_minimal_symbol_solib_trampoline): Change return type.
7144 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
7145 (lookup_minimal_symbol_solib_trampoline): Change return type.
7146 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7147 * objc-lang.c (lookup_objc_class, lookup_child_selector)
7148 (value_nsstring, find_imps): Update.
7149 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7150 * p-lang.c (pascal_main_name): Update.
7151 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
7152 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7153 * proc-service.c (ps_pglobal_lookup): Update.
7154 * ravenscar-thread.c (get_running_thread_msymbol): Change
7155 return type.
7156 (has_ravenscar_runtime, get_running_thread_id): Update.
7157 * remote.c (remote_check_symbols): Update.
7158 * sol-thread.c (ps_pglobal_lookup): Update.
7159 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7160 * solib-dsbt.c (lm_base): Update.
7161 * solib-frv.c (lm_base, frv_relocate_section_addresses):
7162 Update.
7163 * solib-irix.c (locate_base): Update.
7164 * solib-som.c (som_solib_create_inferior_hook)
7165 (som_solib_desire_dynamic_linker_symbols, link_map_start):
7166 Update.
7167 * solib-spu.c (spu_enable_break): Update.
7168 * solib-svr4.c (elf_locate_base, enable_break): Update.
7169 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
7170 (flush_ea_cache): Update.
7171 * stabsread.c (define_symbol): Update.
7172 * symfile.c (simple_read_overlay_table): Update.
7173 * symtab.c (find_pc_sect_line): Update.
7174 * tracepoint.c (scope_info): Update.
7175 * tui-disasm.c (tui_get_begin_asm_address): Update.
7176 * value.c (value_static_field): Update.
7177
40c1a007
TT
71782014-02-26 Tom Tromey <tromey@redhat.com>
7179
7180 * minsyms.c (prim_record_minimal_symbol_full): Use
7181 SET_MSYMBOL_VALUE_ADDRESS.
7182 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
7183 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
7184 SET_MSYMBOL_VALUE_ADDRESS.
7185 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
7186 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
7187
efd66ac6
TT
71882014-02-26 Tom Tromey <tromey@redhat.com>
7189
7190 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
7191 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
7192 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
7193 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
7194 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
7195 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7196 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7197 * ada-lang.c (ada_main_name): Update.
7198 (ada_lookup_simple_minsym): Update.
7199 (ada_make_symbol_completion_list): Update.
7200 (ada_add_standard_exceptions): Update.
7201 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7202 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7203 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7204 * arm-tdep.c (skip_prologue_function): Update.
7205 (arm_skip_stack_protector, arm_skip_stub): Update.
7206 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7207 (arm_wince_skip_main_prologue): Update.
7208 * auxv.c (ld_so_xfer_auxv): Update.
7209 * avr-tdep.c (avr_scan_prologue): Update.
7210 * ax-gdb.c (gen_var_ref): Update.
7211 * block.c (call_site_for_pc): Update.
7212 * blockframe.c (get_pc_function_start): Update.
7213 (find_pc_partial_function_gnu_ifunc): Update.
7214 * breakpoint.c (create_overlay_event_breakpoint): Update.
7215 (create_longjmp_master_breakpoint): Update.
7216 (create_std_terminate_master_breakpoint): Update.
7217 (create_exception_master_breakpoint): Update.
7218 (resolve_sal_pc): Update.
7219 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7220 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7221 Update.
7222 * c-valprint.c (c_val_print): Update.
7223 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7224 * coffread.c (coff_symfile_read): Update.
7225 * common/agent.c (agent_look_up_symbols): Update.
7226 * dbxread.c (find_stab_function_addr): Update.
7227 (end_psymtab): Update.
7228 * dwarf2loc.c (call_site_to_target_addr): Update.
7229 (func_verify_no_selftailcall): Update.
7230 (tailcall_dump): Update.
7231 (call_site_find_chain_1): Update.
7232 (dwarf_expr_reg_to_entry_parameter): Update.
7233 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7234 (elf_gnu_ifunc_resolve_by_got): Update.
7235 * f-valprint.c (info_common_command): Update.
7236 * findvar.c (read_var_value): Update.
7237 * frame.c (get_prev_frame_1): Update.
7238 (inside_main_func): Update.
7239 * frv-tdep.c (frv_skip_main_prologue): Update.
7240 (frv_frame_this_id): Update.
7241 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7242 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7243 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7244 (gnuv3_skip_trampoline): Update.
7245 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7246 (hppa64_hpux_in_solib_call_trampoline): Update.
7247 (hppa_hpux_skip_trampoline_code): Update.
7248 (hppa64_hpux_search_dummy_call_sequence): Update.
7249 (hppa_hpux_find_import_stub_for_addr): Update.
7250 (hppa_hpux_find_dummy_bpaddr): Update.
7251 * hppa-tdep.c (hppa_symbol_address)
7252 (hppa_lookup_stub_minimal_symbol): Update.
7253 * i386-tdep.c (i386_skip_main_prologue): Update.
7254 (i386_pe_skip_trampoline_code): Update.
7255 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7256 * infcall.c (get_function_name): Update.
7257 * infcmd.c (until_next_command): Update.
7258 * jit.c (jit_breakpoint_re_set_internal): Update.
7259 (jit_inferior_init): Update.
7260 * linespec.c (minsym_found): Update.
7261 (add_minsym): Update.
7262 * linux-fork.c (info_checkpoints_command): Update.
7263 * linux-nat.c (get_signo): Update.
7264 * linux-thread-db.c (inferior_has_bug): Update.
7265 * m32c-tdep.c (m32c_return_value): Update.
7266 (m32c_m16c_address_to_pointer): Update.
7267 (m32c_m16c_pointer_to_address): Update.
7268 * m32r-tdep.c (m32r_frame_this_id): Update.
7269 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7270 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7271 * maint.c (maintenance_translate_address): Update.
7272 * minsyms.c (add_minsym_to_hash_table): Update.
7273 (add_minsym_to_demangled_hash_table): Update.
7274 (msymbol_objfile): Update.
7275 (lookup_minimal_symbol): Update.
7276 (iterate_over_minimal_symbols): Update.
7277 (lookup_minimal_symbol_text): Update.
7278 (lookup_minimal_symbol_by_pc_name): Update.
7279 (lookup_minimal_symbol_solib_trampoline): Update.
7280 (lookup_minimal_symbol_by_pc_section_1): Update.
7281 (lookup_minimal_symbol_and_objfile): Update.
7282 (prim_record_minimal_symbol_full): Update.
7283 (compare_minimal_symbols): Update.
7284 (compact_minimal_symbols): Update.
7285 (build_minimal_symbol_hash_tables): Update.
7286 (install_minimal_symbols): Update.
7287 (terminate_minimal_symbol_table): Update.
7288 (find_solib_trampoline_target): Update.
7289 (minimal_symbol_upper_bound): Update.
7290 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7291 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7292 (mips_skip_pic_trampoline_code): Update.
7293 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7294 * objc-lang.c (selectors_info): Update.
7295 (classes_info): Update.
7296 (find_methods): Update.
7297 (find_imps): Update.
7298 (find_objc_msgsend): Update.
7299 * objfiles.c (objfile_relocate1): Update.
7300 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7301 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7302 * p-valprint.c (pascal_val_print): Update.
7303 * parse.c (write_exp_msymbol): Update.
7304 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7305 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7306 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7307 * printcmd.c (build_address_symbolic): Update.
7308 (sym_info): Update.
7309 (address_info): Update.
7310 * proc-service.c (ps_pglobal_lookup): Update.
7311 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7312 (find_pc_sect_psymtab): Update.
7313 * python/py-framefilter.c (py_print_frame): Update.
7314 * ravenscar-thread.c (get_running_thread_id): Update.
7315 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7316 Update.
7317 * remote.c (remote_check_symbols): Update.
7318 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7319 (rs6000_skip_trampoline_code): Update.
7320 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7321 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7322 * solib-dsbt.c (lm_base): Update.
7323 * solib-frv.c (lm_base): Update.
7324 (main_got): Update.
7325 * solib-irix.c (locate_base): Update.
7326 * solib-som.c (som_solib_create_inferior_hook): Update.
7327 (som_solib_desire_dynamic_linker_symbols): Update.
7328 (link_map_start): Update.
7329 * solib-spu.c (spu_enable_break): Update.
7330 (ocl_enable_break): Update.
7331 * solib-svr4.c (elf_locate_base): Update.
7332 (enable_break): Update.
7333 * spu-tdep.c (spu_get_overlay_table): Update.
7334 (spu_catch_start): Update.
7335 (flush_ea_cache): Update.
7336 * stabsread.c (define_symbol): Update.
7337 (scan_file_globals): Update.
7338 * stack.c (find_frame_funname): Update.
7339 (frame_info): Update.
7340 * symfile.c (simple_read_overlay_table): Update.
7341 (simple_overlay_update): Update.
7342 * symmisc.c (dump_msymbols): Update.
7343 * symtab.c (fixup_section): Update.
7344 (find_pc_sect_line): Update.
7345 (skip_prologue_sal): Update.
7346 (search_symbols): Update.
7347 (print_msymbol_info): Update.
7348 (rbreak_command): Update.
7349 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7350 (completion_list_objc_symbol): Update.
7351 (default_make_symbol_completion_list_break_on): Update.
7352 * tracepoint.c (scope_info): Update.
7353 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7354 (tui_get_begin_asm_address): Update.
7355 * valops.c (find_function_in_inferior): Update.
7356 * value.c (value_static_field): Update.
7357 (value_fn_field): Update.
7358
50e65b17
TT
73592014-02-26 Tom Tromey <tromey@redhat.com>
7360
7361 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7362 bound minimal symbols. Move code that knows about minsym
7363 table layout...
7364 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7365 function.
7366 * minsyms.h (minimal_symbol_upper_bound): Declare.
7367 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7368 minimal_symbol_upper_bound.
7369
1b588015
JB
73702014-02-27 Joel Brobecker <brobecker@adacore.com>
7371
7372 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7373 Use the type's name if its basic type does not have a tag.
7374
dbb9c2b1
JB
73752014-02-27 Joel Brobecker <brobecker@adacore.com>
7376
7377 * dwarf2read.c (read_subrange_type): Add comment.
7378
55426c9d
JB
73792014-02-27 Joel Brobecker <brobecker@adacore.com>
7380
7381 * dwarf2read.c (update_enumeration_type_from_children): New
7382 function, mostly extracted from process_structure_scope.
7383 (read_enumeration_type): Call update_enumeration_type_from_children.
7384 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7385 and flag_flag_enum fields.
7386
f2fce0ca
PA
73872014-02-26 Pedro Alves <palves@redhat.com>
7388
7389 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7390 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7391 to_xfer_partial method.
7392
7a44e40e
PA
73932014-02-26 Pedro Alves <palves@redhat.com>
7394
7395 * target.c (complete_target_initialization): Don't install
7396 default_xfer_partial as to_xfer_partial hook.
7397 (nomemory): Delete.
7398 (update_current_target): Don't INHERIT nor de_fault
7399 deprecated_xfer_memory. Delete de_fault macro.
7400 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7401 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7402 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7403 field.
7404
bd265cd0
PA
74052014-02-26 Pedro Alves <palves@redhat.com>
7406
7407 * go32-nat.c (my_write_child): New function.
7408 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7409 (go32_xfer_partial): New function.
7410 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7411 Instead install a to_xfer_partial hook.
7412
9d46c4e5
PA
74132014-02-26 Pedro Alves <palves@redhat.com>
7414
7415 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7416 to_xfer_partial helper. Rewrite.
7417 (procfs_xfer_partial): New function.
7418 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7419 Install a to_xfer_partial hook.
7420
a1583b1f
PA
74212014-02-26 Pedro Alves <palves@redhat.com>
7422
7423 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7424 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7425 (m32r_xfer_partial): New function.
7426 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7427 Install a to_xfer_partial hook.
7428
6df1b29f
PA
74292014-02-26 Pedro Alves <palves@redhat.com>
7430
7431 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7432 helper.
7433 (mips_xfer_partial): New function.
7434 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7435 hook. Install a to_xfer_partial hook.
7436
dc53a7ad
JB
74372014-02-26 Joel Brobecker <brobecker@adacore.com>
7438
7439 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7440 * gdbtypes.c (create_array_type_with_stride): New function,
7441 renaming create_array_type, but with an added parameter
7442 called "bit_stride".
7443 (create_array_type): Re-implement using
7444 create_array_type_with_stride.
7445 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7446 and DW_AT_bit_stride attributes.
7447
12ab52e9
PA
74482014-02-26 Pedro Alves <palves@redhat.com>
7449
7450 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7451 task-specific breakpoints.
7452
d16461ae
PA
74532014-02-25 Pedro Alves <palves@redhat.com>
7454
7455 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7456 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7457
a8b16220
SS
74582014-02-25 Stan Shebs <stan@codesourcery.com>
7459
7460 * defs.h: Annotate comments for Doxygen.
7461
b9e795ee
TT
74622014-02-25 Tom Tromey <tromey@redhat.com>
7463
7464 * target.h (target_ignore): Don't declare.
7465 * target.c (target_ignore): Remove.
7466
849c862e
JK
74672014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7468
7469 PR gdb/16626
7470 * auto-load.c (auto_load_objfile_script_1): Change filename to
7471 debugfile.
7472
475109d8
JB
74732014-02-25 Joel Brobecker <brobecker@adacore.com>
7474
7475 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7476 documentation. Adjust prototype to match the target_ops
7477 to_xfer_partial method. Adjust implementation accordingly.
7478
e186c3bd
HZ
74792014-02-25 Hui Zhu <hui@codesourcery.com>
7480
7481 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7482 to_traceframe_info.
7483
6d451942
KB
74842014-02-25 Kevin Buettner <kevinb@redhat.com>
7485
041ab8b4 7486 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7487 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7488 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7489 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7490 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7491 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7492 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7493 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7494 New constants.
7495 (rl78_register_type): Use a data pointer type for SP and
7496 new pseudo registers mentioned above. Use a 16 bit integer
7497 type for all other register pairs.
7498 (rl78_register_name, rl78_g10_register_name): Update for
7499 new pseudo registers.
7500 (rl78_pseudo_register_read): Likewise.
7501 (rl78_pseudo_register_write): Likewise.
7502 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7503 to the newly added pseudo registers.
7504
eddf0bae
DE
75052014-02-24 Doug Evans <dje@google.com>
7506
7507 * value.c (record_latest_value): Fix comment.
7508 * printcmd.c (print_command_1): Remove code to handle -1 return from
7509 record_latest_value.
7510
e96027e0
PA
75112014-02-24 Pedro Alves <palves@redhat.com>
7512
7513 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7514 deprecated_xfer_memory hook.
7515 (procfs_xfer_partial): Call procfs_xfer_memory instead
7516 of the deprecated_xfer_memory target hook.
7517 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7518 helper.
7519
0837c976
YZ
75202014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7521
7522 * windows-nat.c (windows_xfer_shared_libraries): Return
7523 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7524 requested object is TARGET_OBJECT_LIBRARIES.
7525
bc113b4e
YQ
75262014-02-24 Yao Qi <yao@codesourcery.com>
7527
7528 * target.h (enum target_xfer_status)
7529 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7530 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7531 explicitly. New.
7532 * corefile.c (memory_error_message): User updated.
7533 * exec.c (section_table_read_available_memory): Likewise.
7534 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7535 * target.c (target_xfer_status_to_string): Likewise.
7536 (raw_memory_xfer_partial): Likewise.
7537 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7538 * valops.c (read_value_memory): Likewise.
7539 * exec.h: Update comments.
7540
01cb8804
YQ
75412014-02-24 Yao Qi <yao@codesourcery.com>
7542
7543 * target.c (target_xfer_status_to_string): Rename argument err
7544 to status.
7545 * target.h (target_xfer_status_to_string): Update declaration.
7546 Replace target_xfer_error_to_string with
7547 target_xfer_status_to_string in comment.
7548
93063aa6
YQ
75492014-02-24 Yao Qi <yao@codesourcery.com>
7550
7551 * mips-linux-nat.c (super_close): Update its type.
7552 (mips_linux_close): Pass 'self' to super_close.
7553
5c328c05
YQ
75542014-02-24 Yao Qi <yao@codesourcery.com>
7555
7556 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7557 * corefile.c (read_memory): Adjusted.
7558 * target.c (target_write_with_progress): Adjusted.
7559
f73023dd
YQ
75602014-02-23 Yao Qi <yao@codesourcery.com>
7561
7562 Revert two patches:
7563
7564 2013-10-25 Yao Qi <yao@codesourcery.com>
7565
7566 * remote.c (remote_traceframe_info): Return early if
7567 traceframe is not selected.
7568
7569 2013-07-19 Yao Qi <yao@codesourcery.com>
7570
7571 * target.c (update_current_target): Change the default action
7572 of 'to_traceframe_info' from tcomplain to return_zero.
7573 * target.h (struct target_ops) <to_traceframe_info>: Add more
7574 comments.
7575
5a2eb0ef
YQ
75762014-02-23 Yao Qi <yao@codesourcery.com>
7577
7578 * valops.c (read_value_memory): Rewrite it. Call
7579 target_xfer_partial in a loop.
7580 * exec.h (section_table_available_memory): Remove declaration.
7581 Move comments to ...
7582 * exec.c (section_table_available_memory): ... here. Make it
7583 static.
7584
1ee79381
YQ
75852014-02-23 Yao Qi <yao@codesourcery.com>
7586
7587 * exec.c (section_table_read_available_memory): New function.
7588 * exec.h (section_table_read_available_memory): Declare.
7589 * ctf.c (ctf_xfer_partial): Call
7590 section_table_read_available_memory.
7591 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7592
1ca49d37
YQ
75932014-02-23 Yao Qi <yao@codesourcery.com>
7594
7595 * ctf.c (ctf_xfer_partial): Move code to ...
7596 * exec.c (exec_read_partial_read_only): ... it. New function.
7597 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7598 * tracefile.c: Include "exec.h".
7599 * exec.h (exec_read_partial_read_only): Declare.
7600
a283690e
YQ
76012014-02-23 Yao Qi <yao@codesourcery.com>
7602
7603 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7604 (tfile_has_memory): Remove.
7605 (init_tfile_ops): Don't set fields to_has_all_memory and
7606 to_has_memory of tfile_ops.
7607 * tracefile.c (tracefile_has_all_memory): New function.
7608 (tracefile_has_memory): New function.
7609 (init_tracefile_ops): Initialize fields to_has_all_memory and
7610 to_has_memory of 'ops'.
7611
12e03cd0
YQ
76122014-02-23 Yao Qi <yao@codesourcery.com>
7613
7614 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7615 (ctf_thread_alive, ctf_get_trace_status): Remove.
7616 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7617 init_tracefile_ops.
7618 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7619 (tfile_has_stack, tfile_has_registers): Remove.
7620 (tfile_thread_alive): Remove.
7621 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7622 init_tracefile_ops.
7623 * tracefile.c (tracefile_has_stack): New function.
7624 (tracefile_has_registers): New function.
7625 (tracefile_thread_alive): New function.
7626 (tracefile_get_trace_status): New function.
7627 (init_tracefile_ops): New function.
7628 * tracefile.h (init_tracefile_ops): Declare.
7629
11395323
YQ
76302014-02-23 Yao Qi <yao@codesourcery.com>
7631
7632 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7633 (O_LARGEFILE): Likewise.
7634 (tfile_ops): Likewise.
7635 (TRACE_HEADER_SIZE): Likewise.
7636 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7637 (cur_data_size): Likewise.
7638 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7639 (tfile_close, tfile_files_info): Likewise.
7640 (tfile_get_trace_status): Likewise.
7641 (tfile_get_tracepoint_status): Likewise.
7642 (tfile_get_traceframe_address): Likewise.
7643 (tfile_trace_find, match_blocktype): Likewise.
7644 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7645 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7646 (tfile_get_trace_state_variable_value): Likewise.
7647 (tfile_has_all_memory, tfile_has_memory): Likewise.
7648 (tfile_has_stack, tfile_has_registers): Likewise.
7649 (tfile_thread_alive, build_traceframe_info): Likewise.
7650 (tfile_traceframe_info, init_tfile_ops): Likewise.
7651 (_initialize_tracepoint): Don't call init_tfile_ops
7652 and add_target_with_completer.
7653 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7654 exec.h, completer.h and filenames.h.
7655 (_initialize_tracefile_tfile): New function.
7656
7951c4eb
YQ
76572014-02-23 Yao Qi <yao@codesourcery.com>
7658
7659 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7660 tracefile-tfile.o.
7661 (HFILES_NO_SRCDIR): Add tracefile.h.
7662 * ctf.c: Include "tracefile.h".
7663 * tracefile.h: New file.
7664 * tracefile.c: New file
7665 * tracefile-tfile.c: New file.
7666 * tracepoint.c: Include "tracefile.h".
7667 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7668 (stop_reason_names): Add const.
7669 (trace_file_writer_xfree): Move it to tracefile.c.
7670 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7671 (trace_save_ctf): Likewise.
7672 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7673 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7674 (tfile_write_header, tfile_write_regblock_type): Likewise.
7675 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7676 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7677 (tfile_write_raw_data, tfile_end): Likewise.
7678 (tfile_trace_file_writer_new): Likewise.
7679 (free_uploaded_tp): Make it extern.
7680 (free_uploaded_tsv): Make it extern.
7681 (_initialize_tracepoint): Move code to register command 'tsave'
7682 to tracefile.c.
7683 * tracepoint.h (stop_reason_names): Declare.
7684 (struct trace_frame_write_ops): Move it to tracefile.h.
7685 (struct trace_file_write_ops): Likewise.
7686 (struct trace_file_writer): Likewise.
7687 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7688
184cd072
JK
76892014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7690
7691 PR gdb/16594
7692 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7693 process name.
7694 (get_cores_used_by_process): New parameter num_cores, use it.
7695 (linux_xfer_osdata_processes): Pass num_cores to it.
7696 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7697 process name.
7698
c63528fc
AK
76992014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7700
7701 * target.c (memory_xfer_partial): Fix length arg in call to
7702 breakpoint_xfer_memory.
7703
d7b30f67
SDJ
77042014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7705
7706 PR tdep/16397
7707 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7708 number comes after the + or - signs. Adjust length of register
7709 name to be extracted.
7710
8838afaf
TT
77112014-02-20 Tom Tromey <tromey@redhat.com>
7712
7713 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7714 (ada_varobj_ops): Mark "extern".
7715
05227d14
TT
77162014-02-20 Tom Tromey <tromey@redhat.com>
7717
7718 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7719
1254eefc
DE
77202014-02-20 Doug Evans <xdje42@gmail.com>
7721
7722 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7723 All callers updated.
7724 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7725 All callers updated.
7726 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7727 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7728
adde2bff
DE
77292014-02-20 lin zuojian <manjian2006@gmail.com>
7730 Joel Brobecker <brobecker@adacore.com>
7731 Doug Evans <xdje42@gmail.com>
7732
7733 PR symtab/16581
7734 * dwarf2read.c (struct die_info): New member in_process.
7735 (reset_die_in_process): New function.
7736 (process_die): Set it at the start, reset when returning.
7737 (inherit_abstract_dies): Only call process_die if origin_child_die
7738 not already being processed.
7739
3be75f87
JB
77402014-02-20 Joel Brobecker <brobecker@adacore.com>
7741
7742 * windows-nat.c (handle_unload_dll): Add function documentation.
7743 (do_initial_windows_stuff): Add comment explaining why we wait
7744 until after inferior initialization has finished before
7745 processing all DLLs.
7746
47f7ffdb
JB
77472014-02-20 Joel Brobecker <brobecker@adacore.com>
7748
7749 * windows-nat.c (get_module_name): Delete.
7750 (windows_get_exec_module_filename): New function, mostly
7751 inspired from get_module_name.
7752 (windows_pid_to_exec_file): Replace call to get_module_name
7753 by call to windows_get_exec_module_filename.
7754
1cd9feab
JB
77552014-02-20 Joel Brobecker <brobecker@adacore.com>
7756
7757 * windows-nat.c (handle_load_dll): Rewrite this function's
7758 introductory comment. Remove code using get_module_name
7759 to get the DLL's name.
7760
ea39ad35
JB
77612014-02-20 Joel Brobecker <brobecker@adacore.com>
7762
7763 * windows-nat.c (get_windows_debug_event): Ignore
7764 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7765 if windows_initialization_done == 0.
7766 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7767 Adjust implementation to always load all DLLs.
7768 (do_initial_windows_stuff): Replace call to
7769 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7770
95060284
JB
77712014-02-20 Joel Brobecker <brobecker@adacore.com>
7772
7773 * windows-nat.c (_initialize_windows_nat): Deprecate the
7774 "dll-symbols" command. Turn the "add-shared-symbol-files"
7775 and "assf" aliases into commands, and deprecate them as well.
7776 * NEWS: Add entry explaining that "dll-symbols" and its two
7777 aliases are now deprecated.
7778
8d4fdb12
JB
77792014-02-20 Joel Brobecker <brobecker@adacore.com>
7780
7781 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7782 new-line in debug string. Remove trailing spaces.
7783
1b281443
SS
77842014-02-19 Stan Shebs <stan@codesourcery.com>
7785
7786 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7787
f7bd0f78
SC
77882014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7789
7790 * NEWS: Add entry for the new feature
7791 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7792 and class values.
7793
399ebc3d
SS
77942014-02-19 Stan Shebs <stan@codesourcery.com>
7795
7796 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7797
c658158d
PA
77982014-02-19 Pedro Alves <palves@redhat.com>
7799
7800 * common/ptid.h (struct ptid): Mention that process_stratum
7801 targets should prefer ptid.lwp.
7802
ba348170
PA
78032014-02-19 Pedro Alves <palves@redhat.com>
7804
7805 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7806 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7807 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7808 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7809 store remote thread ids rather than ptid.tid.
7810 (_initialize_remote): Adjust.
7811
ac01945b
TT
78122014-02-19 Tom Tromey <tromey@redhat.com>
7813
7814 * target.c (target_get_unwinder): Rewrite.
7815 (target_get_tailcall_unwinder): Rewrite.
7816 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7817 (record_btrace_to_get_tailcall_unwinder): New function.
7818 (init_record_btrace_ops): Update.
7819 * target.h (struct target_ops) <to_get_unwinder,
7820 to_get_tailcall_unwinder>: Now function pointers. Use
7821 TARGET_DEFAULT_RETURN.
7822
8476dc92
TT
78232014-02-19 Tom Tromey <tromey@redhat.com>
7824
7825 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7826 argument.
7827 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7828
c0eca49f
TT
78292014-02-19 Tom Tromey <tromey@redhat.com>
7830
7831 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7832 directly.
7833 * target-delegates.c: Rebuild.
7834 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7835 TARGET_DEFAULT_FUNC.
7836 * target.c (default_target_decr_pc_after_break): Rename from
7837 forward_target_decr_pc_after_break. Simplify.
7838 (target_decr_pc_after_break): Rely on delegation.
7839
596b6b39
TT
78402014-02-19 Tom Tromey <tromey@redhat.com>
7841
7842 * target.c (update_current_target): Do not INHERIT to_doc or
7843 to_magic. Do not de_fault to_open or to_close.
7844
b427c1bc
TT
78452014-02-19 Tom Tromey <tromey@redhat.com>
7846
7847 * gcore.h (objfile_find_memory_regions): Declare.
7848 * gcore.c (objfile_find_memory_regions): No longer static. Add
7849 "self" argument.
7850 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7851 * exec.c: Include gcore.h.
7852 (exec_set_find_memory_regions): Remove.
7853 (exec_find_memory_regions): Remove.
7854 (exec_do_find_memory_regions): Remove.
7855 (init_exec_ops): Update.
7856 * defs.h (exec_set_find_memory_regions): Remove.
7857
9b144037
TT
78582014-02-19 Tom Tromey <tromey@redhat.com>
7859
7860 * target-delegates.c: Rebuild.
7861 * target.h (struct target_ops) <to_extra_thread_info,
7862 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7863 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7864 not 0, in TARGET_DEFAULT_RETURN.
7865
555bbdeb
TT
78662014-02-19 Tom Tromey <tromey@redhat.com>
7867
7868 * target.c (complete_target_initialization): Remove casts. Use
7869 return_zero_has_execution.
7870 (return_zero): Add "ignore" argument.
7871 (return_zero_has_execution): New function.
7872 (init_dummy_target): Remove casts. Use
7873 return_zero_has_execution.
7874
be4ddd36
TT
78752014-02-19 Tom Tromey <tromey@redhat.com>
7876
7877 * target.c (update_current_target): Update comments. Do not
7878 INHERIT to_stratum.
7879
2117c711
TT
78802014-02-19 Tom Tromey <tromey@redhat.com>
7881
7882 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7883 needed.
7884 * corelow.c (core_read_description): Delegate when needed.
7885 * remote.c (remote_read_description): Delegate when needed.
7886 * target-delegates.c: Rebuild.
7887 * target.c (target_read_description): Rewrite.
7888 * target.h (struct target_ops) <to_read_description>: Update
7889 comment. Use TARGET_DEFAULT_RETURN.
7890
e88ef65c
TT
78912014-02-19 Tom Tromey <tromey@redhat.com>
7892
7893 * target-delegates.c: Rebuild.
7894 * target.c (update_current_target): Don't inherit or default
7895 to_can_run.
7896 (find_default_run_target): Check against delegate_can_run.
7897 * target.h (struct target_ops) <to_can_run>: Use
7898 TARGET_DEFAULT_RETURN.
7899
86a0854a
TT
79002014-02-19 Tom Tromey <tromey@redhat.com>
7901
7902 * target-delegates.c: Rebuild.
7903 * target.c (target_disconnect): Unconditionally delegate.
7904 * target.h (struct target_ops) <to_disconnect>: Use
7905 TARGET_DEFAULT_NORETURN.
7906
ee97f592
TT
79072014-02-19 Tom Tromey <tromey@redhat.com>
7908
7909 * record.c (record_stop): Unconditionally delegate.
7910 * target-delegates.c: Rebuild.
7911 * target.c (target_stop_recording): Unconditionally delegate.
7912 * target.h (struct target_ops) <to_stop_recording>: Use
7913 TARGET_DEFAULT_IGNORE.
7914
6dc7fcf4
TT
79152014-02-19 Tom Tromey <tromey@redhat.com>
7916
7917 * target-delegates.c: Rebuild.
7918 * target.c (target_enable_btrace): Unconditionally delegate.
7919 * target.h (struct target_ops) <to_enable_btrace>: Use
7920 TARGET_DEFAULT_NORETURN.
7921
eb5b20d4
TT
79222014-02-19 Tom Tromey <tromey@redhat.com>
7923
7924 * target-delegates.c: Rebuild.
7925 * target.c (target_read_btrace): Unconditionally delegate.
7926 * target.h (struct target_ops) <to_read_btrace>: Use
7927 TARGET_DEFAULT_NORETURN.
7928
9ace480d
TT
79292014-02-19 Tom Tromey <tromey@redhat.com>
7930
7931 * target-delegates.c: Rebuild.
7932 * target.c (target_teardown_btrace): Unconditionally delegate.
7933 * target.h (struct target_ops) <to_teardown_btrace>: Use
7934 TARGET_DEFAULT_NORETURN.
7935
8dc292d3
TT
79362014-02-19 Tom Tromey <tromey@redhat.com>
7937
7938 * target-delegates.c: Rebuild.
7939 * target.c (target_disable_btrace): Unconditionally delegate.
7940 * target.h (struct target_ops) <to_disable_btrace>: Use
7941 TARGET_DEFAULT_NORETURN.
7942
58a5184e
TT
79432014-02-19 Tom Tromey <tromey@redhat.com>
7944
7945 * target-delegates.c: Rebuild.
7946 * target.c (default_search_memory): New function.
7947 (simple_search_memory): Update comment.
7948 (target_search_memory): Unconditionally delegate.
7949 * target.h (struct target_ops) <to_search_memory>: Use
7950 TARGET_DEFAULT_FUNC.
7951
8de71aab
TT
79522014-02-19 Tom Tromey <tromey@redhat.com>
7953
7954 * auxv.c (default_auxv_parse): No longer static.
7955 (target_auxv_parse): Unconditionally delegate.
7956 * auxv.h (default_auxv_parse): Declare.
7957 * target-delegates.c: Rebuild.
7958 * target.c: Include auxv.h.
7959 * target.h (struct target_ops) <to_auxv_parse>: Use
7960 TARGET_DEFAULT_FUNC.
7961
6b2c5a57
TT
79622014-02-19 Tom Tromey <tromey@redhat.com>
7963
7964 * target-delegates.c: Rebuild.
7965 * target.c (target_memory_map): Unconditionally delegate.
7966 * target.h (struct target_ops) <to_memory_map>: Use
7967 TARGET_DEFAULT_RETURN.
7968
cbffc065
TT
79692014-02-19 Tom Tromey <tromey@redhat.com>
7970
7971 * target-delegates.c: Rebuild.
7972 * target.c (target_thread_alive): Unconditionally delegate.
7973 * target.h (struct target_ops) <to_thread_alive>: Use
7974 TARGET_DEFAULT_RETURN.
7975
f09e2107
TT
79762014-02-19 Tom Tromey <tromey@redhat.com>
7977
7978 * target-delegates.c: Rebuild.
7979 * target.c (target_save_record): Unconditionally delegate.
7980 * target.h (struct target_ops) <to_save_record>: Use
7981 TARGET_DEFAULT_NORETURN.
7982
07366925
TT
79832014-02-19 Tom Tromey <tromey@redhat.com>
7984
7985 * target-delegates.c: Rebuild.
7986 * target.c (target_delete_record): Unconditionally delegate.
7987 * target.h (struct target_ops) <to_delete_record>: Use
7988 TARGET_DEFAULT_NORETURN.
7989
dd2e9d25
TT
79902014-02-19 Tom Tromey <tromey@redhat.com>
7991
7992 * target-delegates.c: Rebuild.
7993 * target.c (target_record_is_replaying): Unconditionally
7994 delegate.
7995 * target.h (struct target_ops) <to_record_is_replaying>: Use
7996 TARGET_DEFAULT_RETURN.
7997
671e76cc
TT
79982014-02-19 Tom Tromey <tromey@redhat.com>
7999
8000 * target-delegates.c: Rebuild.
8001 * target.c (target_goto_record_begin): Unconditionally delegate.
8002 * target.h (struct target_ops) <to_goto_record_begin>: Use
8003 TARGET_DEFAULT_NORETURN.
8004
e9179bb3
TT
80052014-02-19 Tom Tromey <tromey@redhat.com>
8006
8007 * target-delegates.c: Rebuild.
8008 * target.c (target_goto_record_end): Unconditionally delegate.
8009 * target.h (struct target_ops) <to_goto_record_end>: Use
8010 TARGET_DEFAULT_NORETURN.
8011
05969c84
TT
80122014-02-19 Tom Tromey <tromey@redhat.com>
8013
8014 * target-delegates.c: Rebuild.
8015 * target.c (target_goto_record): Unconditionally delegate.
8016 * target.h (struct target_ops) <to_goto_record>: Use
8017 TARGET_DEFAULT_NORETURN.
8018
3679abfa
TT
80192014-02-19 Tom Tromey <tromey@redhat.com>
8020
8021 * target-delegates.c: Rebuild.
8022 * target.c (target_insn_history): Unconditionally delegate.
8023 * target.h (struct target_ops) <to_insn_history>: Use
8024 TARGET_DEFAULT_NORETURN.
8025
8444ab58
TT
80262014-02-19 Tom Tromey <tromey@redhat.com>
8027
8028 * target-delegates.c: Rebuild.
8029 * target.c (target_insn_history_from): Unconditionally delegate.
8030 * target.h (struct target_ops) <to_insn_history_from>: Use
8031 TARGET_DEFAULT_NORETURN.
8032
c29302cc
TT
80332014-02-19 Tom Tromey <tromey@redhat.com>
8034
8035 * target-delegates.c: Rebuild.
8036 * target.c (target_insn_history_range): Unconditionally delegate.
8037 * target.h (struct target_ops) <to_insn_history_range>: Use
8038 TARGET_DEFAULT_NORETURN.
8039
170049d4
TT
80402014-02-19 Tom Tromey <tromey@redhat.com>
8041
8042 * target-delegates.c: Rebuild.
8043 * target.c (target_call_history): Unconditionally delegate.
8044 * target.h (struct target_ops) <to_call_history>: Use
8045 TARGET_DEFAULT_NORETURN.
8046
16fc27d6
TT
80472014-02-19 Tom Tromey <tromey@redhat.com>
8048
8049 * target-delegates.c: Rebuild.
8050 * target.c (target_call_history_from): Unconditionally delegate.
8051 * target.h (struct target_ops) <to_call_history_from>: Use
8052 TARGET_DEFAULT_NORETURN.
8053
115d9817
TT
80542014-02-19 Tom Tromey <tromey@redhat.com>
8055
8056 * target-delegates.c: Rebuild.
8057 * target.c (target_call_history_range): Unconditionally delegate.
8058 * target.h (struct target_ops) <to_call_history_range>: Use
8059 TARGET_DEFAULT_NORETURN.
8060
eb276a6b
TT
80612014-02-19 Tom Tromey <tromey@redhat.com>
8062
8063 * target-delegates.c: Rebuild.
8064 * target.c (target_verify_memory): Unconditionally delegate.
8065 * target.h (struct target_ops) <to_verify_memory>: Use
8066 TARGET_DEFAULT_NORETURN.
8067
9e538d0d
TT
80682014-02-19 Tom Tromey <tromey@redhat.com>
8069
8070 * target-delegates.c: Rebuild.
8071 * target.c (target_core_of_thread): Unconditionally delegate.
8072 * target.h (struct target_ops) <to_core_of_thread>: Use
8073 TARGET_DEFAULT_RETURN.
8074
f6fb2925
TT
80752014-02-19 Tom Tromey <tromey@redhat.com>
8076
8077 * target-delegates.c: Rebuild.
8078 * target.c (target_flash_done): Unconditionally delegate.
8079 * target.h (struct target_ops) <to_flash_done>: Use
8080 TARGET_DEFAULT_NORETURN.
8081
e8a6c6ac
TT
80822014-02-19 Tom Tromey <tromey@redhat.com>
8083
8084 * target-delegates.c: Rebuild.
8085 * target.c (target_flash_erase): Unconditionally delegate.
8086 * target.h (struct target_ops) <to_flash_erase>: Use
8087 TARGET_DEFAULT_NORETURN.
8088
7e35c012
TT
80892014-02-19 Tom Tromey <tromey@redhat.com>
8090
8091 * target-delegates.c: Rebuild.
8092 * target.c (target_get_section_table): Unconditionally delegate.
8093 * target.h (struct target_ops) <to_get_section_table>: Use
8094 TARGET_DEFAULT_RETURN.
8095
770234d3
TT
80962014-02-19 Tom Tromey <tromey@redhat.com>
8097
8098 * target-delegates.c: Rebuild.
8099 * target.c (target_pid_to_str): Unconditionally delegate.
8100 (init_dummy_target): Don't initialize to_pid_to_str.
8101 (default_pid_to_str): Rename from dummy_pid_to_str.
8102 * target.h (struct target_ops) <to_pid_to_str>: Use
8103 TARGET_DEFAULT_FUNC.
8104
09b0dc2b
TT
81052014-02-19 Tom Tromey <tromey@redhat.com>
8106
8107 * target-delegates.c: Rebuild.
8108 * target.c (target_find_new_threads): Unconditionally delegate.
8109 * target.h (struct target_ops) <to_find_new_threads>: Use
8110 TARGET_DEFAULT_RETURN.
8111
7d4f8efa
TT
81122014-02-19 Tom Tromey <tromey@redhat.com>
8113
8114 * target-delegates.c: Rebuild.
8115 * target.c (target_program_signals): Unconditionally delegate.
8116 * target.h (struct target_ops) <to_program_signals>: Use
8117 TARGET_DEFAULT_IGNORE.
8118
035cad7f
TT
81192014-02-19 Tom Tromey <tromey@redhat.com>
8120
8121 * target-delegates.c: Rebuild.
8122 * target.c (target_pass_signals): Unconditionally delegate.
8123 * target.h (struct target_ops) <to_pass_signals>: Use
8124 TARGET_DEFAULT_IGNORE.
8125
8d657035
TT
81262014-02-19 Tom Tromey <tromey@redhat.com>
8127
8128 * target-delegates.c: Rebuild.
8129 * target.c (default_mourn_inferior): New function.
8130 (target_mourn_inferior): Unconditionally delegate.
8131 * target.h (struct target_ops) <to_mourn_inferior>: Use
8132 TARGET_DEFAULT_FUNC.
8133
098dba18
TT
81342014-02-19 Tom Tromey <tromey@redhat.com>
8135
8136 * target-delegates.c: Rebuild.
8137 * target.c (default_follow_fork): New function.
8138 (target_follow_fork): Unconditionally delegate.
8139 * target.h (struct target_ops) <to_follow_fork>: Use
8140 TARGET_DEFAULT_FUNC.
8141
423a4807
TT
81422014-02-19 Tom Tromey <tromey@redhat.com>
8143
8144 * target-delegates.c: Rebuild.
8145 * target.c (target_kill): Unconditionally delegate.
8146 * target.h (struct target_ops) <to_kill>: Use
8147 TARGET_DEFAULT_NORETURN.
8148
6c7e5e5c
TT
81492014-02-19 Tom Tromey <tromey@redhat.com>
8150
8151 * target-delegates.c: Rebuild.
8152 * target.c (target_masked_watch_num_registers): Unconditionally
8153 delegate.
8154 * target.h (struct target_ops) <to_masked_watch_num_registers>:
8155 Use TARGET_DEFAULT_RETURN.
8156
8b1c364c
TT
81572014-02-19 Tom Tromey <tromey@redhat.com>
8158
8159 * target-delegates.c: Rebuild.
8160 * target.c (target_remove_mask_watchpoint): Unconditionally
8161 delegate.
8162 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
8163 TARGET_DEFAULT_RETURN.
8164
cd4ae029
TT
81652014-02-19 Tom Tromey <tromey@redhat.com>
8166
8167 * target-delegates.c: Rebuild.
8168 * target.c (target_insert_mask_watchpoint): Unconditionally
8169 delegate.
8170 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
8171 TARGET_DEFAULT_RETURN.
8172
a134316b
TT
81732014-02-19 Tom Tromey <tromey@redhat.com>
8174
8175 * target-delegates.c: Rebuild.
8176 * target.c (target_ranged_break_num_registers): Unconditionally
8177 delegate.
8178 * target.h (struct target_ops) <to_ranged_break_num_registers>:
8179 Use TARGET_DEFAULT_RETURN.
8180
ad5989bd
TT
81812014-02-19 Tom Tromey <tromey@redhat.com>
8182
8183 * target-delegates.c: Rebuild.
8184 * target.c (target_fetch_registers): Unconditionally delegate.
8185 * target.h (struct target_ops) <to_fetch_registers>: Use
8186 TARGET_DEFAULT_NORETURN.
8187
46ee7e8d
TT
81882014-02-19 Tom Tromey <tromey@redhat.com>
8189
8190 * target-delegates.c: Rebuild.
8191 * target.c (update_current_target): Don't inherit or default
8192 to_stop.
8193 * target.h (struct target_ops) <to_stop>: Use
8194 TARGET_DEFAULT_IGNORE.
8195
843f59ed
TT
81962014-02-19 Tom Tromey <tromey@redhat.com>
8197
8198 * target-delegates.c: Rebuild.
8199 * target.c (update_current_target): Don't inherit or default
8200 to_can_run_breakpoint_commands.
8201 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8202 Use TARGET_DEFAULT_RETURN.
8203
ccfde2a0
TT
82042014-02-19 Tom Tromey <tromey@redhat.com>
8205
8206 * target-delegates.c: Rebuild.
8207 * target.c (update_current_target): Don't inherit or default
8208 to_supports_evaluation_of_breakpoint_conditions.
8209 * target.h (struct target_ops)
8210 <to_supports_evaluation_of_breakpoint_conditions>: Use
8211 TARGET_DEFAULT_RETURN.
8212
0de91722
TT
82132014-02-19 Tom Tromey <tromey@redhat.com>
8214
8215 * target-delegates.c: Rebuild.
8216 * target.c (update_current_target): Don't inherit or default
8217 to_augmented_libraries_svr4_read.
8218 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8219 Use TARGET_DEFAULT_RETURN.
8220
9a7d8b48
TT
82212014-02-19 Tom Tromey <tromey@redhat.com>
8222
8223 * target-delegates.c: Rebuild.
8224 * target.c (update_current_target): Don't inherit or default
8225 to_can_use_agent.
8226 * target.h (struct target_ops) <to_can_use_agent>: Use
8227 TARGET_DEFAULT_RETURN.
8228
d9db5b21
TT
82292014-02-19 Tom Tromey <tromey@redhat.com>
8230
8231 * target-delegates.c: Rebuild.
8232 * target.c (update_current_target): Don't inherit or default
8233 to_use_agent.
8234 * target.h (struct target_ops) <to_use_agent>: Use
8235 TARGET_DEFAULT_NORETURN.
8236
92155eeb
TT
82372014-02-19 Tom Tromey <tromey@redhat.com>
8238
8239 * target-delegates.c: Rebuild.
8240 * target.c (update_current_target): Don't inherit or default
8241 to_traceframe_info.
8242 (return_null): Remove.
8243 * target.h (struct target_ops) <to_traceframe_info>: Use
8244 TARGET_DEFAULT_RETURN.
8245
d6522a22
TT
82462014-02-19 Tom Tromey <tromey@redhat.com>
8247
8248 * target-delegates.c: Rebuild.
8249 * target.c (update_current_target): Don't inherit or default
8250 to_static_tracepoint_markers_by_strid.
8251 * target.h (struct target_ops)
8252 <to_static_tracepoint_markers_by_strid>: Use
8253 TARGET_DEFAULT_NORETURN.
8254
4c3e4425
TT
82552014-02-19 Tom Tromey <tromey@redhat.com>
8256
8257 * target-delegates.c: Rebuild.
8258 * target.c (update_current_target): Don't inherit or default
8259 to_static_tracepoint_marker_at.
8260 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8261 Use TARGET_DEFAULT_RETURN.
8262
dcd6917f
TT
82632014-02-19 Tom Tromey <tromey@redhat.com>
8264
8265 * target-delegates.c: Rebuild.
8266 * target.c (update_current_target): Don't inherit or default
8267 to_set_permissions.
8268 * target.h (struct target_ops) <to_set_permissions>: Use
8269 TARGET_DEFAULT_IGNORE.
8270
22bcceee
TT
82712014-02-19 Tom Tromey <tromey@redhat.com>
8272
8273 * target-delegates.c: Rebuild.
8274 * target.c (update_current_target): Don't inherit or default
8275 to_get_tib_address.
8276 * target.h (struct target_ops) <to_get_tib_address>: Use
8277 TARGET_DEFAULT_NORETURN.
8278
8586ccaa
TT
82792014-02-19 Tom Tromey <tromey@redhat.com>
8280
8281 * target-delegates.c: Rebuild.
8282 * target.c (update_current_target): Don't inherit or default
8283 to_set_trace_notes.
8284 * target.h (struct target_ops) <to_set_trace_notes>: Use
8285 TARGET_DEFAULT_RETURN.
8286
91df8d1d
TT
82872014-02-19 Tom Tromey <tromey@redhat.com>
8288
8289 * target-delegates.c: Rebuild.
8290 * target.c (update_current_target): Don't initialize
8291 to_set_trace_buffer_size.
8292 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8293 TARGET_DEFAULT_IGNORE.
8294
8d526939
TT
82952014-02-19 Tom Tromey <tromey@redhat.com>
8296
8297 * target-delegates.c: Rebuild.
8298 * target.c (update_current_target): Don't inherit or default
8299 to_set_circular_trace_buffer.
8300 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8301 TARGET_DEFAULT_IGNORE.
8302
0bcfeddf
TT
83032014-02-19 Tom Tromey <tromey@redhat.com>
8304
8305 * target-delegates.c: Rebuild.
8306 * target.c (update_current_target): Don't inherit or default
8307 to_set_disconnected_tracing.
8308 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8309 TARGET_DEFAULT_IGNORE.
8310
9249843f
TT
83112014-02-19 Tom Tromey <tromey@redhat.com>
8312
8313 * target-delegates.c: Rebuild.
8314 * target.c (update_current_target): Don't inherit or default
8315 to_get_min_fast_tracepoint_insn_len.
8316 (return_minus_one): Remove.
8317 * target.h (struct target_ops)
8318 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8319
ace92e7d
TT
83202014-02-19 Tom Tromey <tromey@redhat.com>
8321
8322 * target-delegates.c: Rebuild.
8323 * target.c (update_current_target): Don't inherit or default
8324 to_get_raw_trace_data.
8325 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8326 TARGET_DEFAULT_NORETURN.
8327
08120467
TT
83282014-02-19 Tom Tromey <tromey@redhat.com>
8329
8330 * target-delegates.c: Rebuild.
8331 * target.c (update_current_target): Don't inherit or default
8332 to_upload_trace_state_variables.
8333 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8334 Use TARGET_DEFAULT_RETURN.
8335
1e949b00
TT
83362014-02-19 Tom Tromey <tromey@redhat.com>
8337
8338 * target-delegates.c: Rebuild.
8339 * target.c (update_current_target): Don't inherit or default
8340 to_upload_tracepoints.
8341 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8342 TARGET_DEFAULT_RETURN.
8343
a2e6c147
TT
83442014-02-19 Tom Tromey <tromey@redhat.com>
8345
8346 * target-delegates.c: Rebuild.
8347 * target.c (update_current_target): Don't inherit or default
8348 to_save_trace_data.
8349 * target.h (struct target_ops) <to_save_trace_data>: Use
8350 TARGET_DEFAULT_NORETURN.
8351
959bcd0b
TT
83522014-02-19 Tom Tromey <tromey@redhat.com>
8353
8354 * target-delegates.c: Rebuild.
8355 * target.c (update_current_target): Don't inherit or default
8356 to_get_trace_state_variable_value.
8357 * target.h (struct target_ops)
8358 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8359
afc94e66
TT
83602014-02-19 Tom Tromey <tromey@redhat.com>
8361
8362 * target-delegates.c: Rebuild.
8363 * target.c (update_current_target): Don't inherit or default
8364 to_trace_find.
8365 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8366
e51c07ea
TT
83672014-02-19 Tom Tromey <tromey@redhat.com>
8368
8369 * target-delegates.c: Rebuild.
8370 * target.c (update_current_target): Don't inherit or default
8371 to_trace_stop.
8372 * target.h (struct target_ops) <to_trace_stop>: Use
8373 TARGET_DEFAULT_NORETURN.
8374
6fea14cd
TT
83752014-02-19 Tom Tromey <tromey@redhat.com>
8376
8377 * target-delegates.c: Rebuild.
8378 * target.c (update_current_target): Don't inherit or default
8379 to_get_tracepoint_status.
8380 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8381 TARGET_DEFAULT_NORETURN.
8382
4072d4ff
TT
83832014-02-19 Tom Tromey <tromey@redhat.com>
8384
8385 * target-delegates.c: Rebuild.
8386 * target.c (update_current_target): Don't inherit or default
8387 to_get_trace_status.
8388 * target.h (struct target_ops) <to_get_trace_status>: Use
8389 TARGET_DEFAULT_RETURN.
8390
25da2e80
TT
83912014-02-19 Tom Tromey <tromey@redhat.com>
8392
8393 * target-delegates.c: Rebuild.
8394 * target.c (update_current_target): Don't inherit or default
8395 to_trace_start.
8396 * target.h (struct target_ops) <to_trace_start>: Use
8397 TARGET_DEFAULT_NORETURN.
8398
86dd181d
TT
83992014-02-19 Tom Tromey <tromey@redhat.com>
8400
8401 * target-delegates.c: Rebuild.
8402 * target.c (update_current_target): Don't inherit or default
8403 to_trace_set_readonly_regions.
8404 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8405 Use TARGET_DEFAULT_NORETURN.
8406
05c41993
TT
84072014-02-19 Tom Tromey <tromey@redhat.com>
8408
8409 * target-delegates.c: Rebuild.
8410 * target.c (update_current_target): Don't inherit or default
8411 to_disable_tracepoint.
8412 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8413 TARGET_DEFAULT_NORETURN.
8414
151f70f1
TT
84152014-02-19 Tom Tromey <tromey@redhat.com>
8416
8417 * target-delegates.c: Rebuild.
8418 * target.c (update_current_target): Don't inherit or default
8419 to_enable_tracepoint.
8420 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8421 TARGET_DEFAULT_NORETURN.
8422
94eb98b9
TT
84232014-02-19 Tom Tromey <tromey@redhat.com>
8424
8425 * target-delegates.c: Rebuild.
8426 * target.c (update_current_target): Don't inherit or default
8427 to_download_trace_state_variable.
8428 * target.h (struct target_ops) <to_download_trace_state_variable>:
8429 Use TARGET_DEFAULT_NORETURN.
8430
719acc4a
TT
84312014-02-19 Tom Tromey <tromey@redhat.com>
8432
8433 * target-delegates.c: Rebuild.
8434 * target.c (update_current_target): Don't inherit or default
8435 to_can_download_tracepoint.
8436 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8437 TARGET_DEFAULT_RETURN.
8438
9a980a22
TT
84392014-02-19 Tom Tromey <tromey@redhat.com>
8440
8441 * target-delegates.c: Rebuild.
8442 * target.c (update_current_target): Don't inherit or default
8443 to_download_tracepoint.
8444 * target.h (struct target_ops) <to_download_tracepoint>: Use
8445 TARGET_DEFAULT_NORETURN.
8446
5536135b
TT
84472014-02-19 Tom Tromey <tromey@redhat.com>
8448
8449 * target-delegates.c: Rebuild.
8450 * target.c (update_current_target): Don't inherit or default
8451 to_trace_init.
8452 * target.h (struct target_ops) <to_trace_init>: Use
8453 TARGET_DEFAULT_RETURN.
8454
9409d39e
TT
84552014-02-19 Tom Tromey <tromey@redhat.com>
8456
8457 * target-delegates.c: Rebuild.
8458 * target.c (update_current_target): Don't inherit or default
8459 to_supports_string_tracing.
8460 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8461 TARGET_DEFAULT_RETURN.
8462
aab1b22d
TT
84632014-02-19 Tom Tromey <tromey@redhat.com>
8464
8465 * target-delegates.c: Rebuild.
8466 * target.c (update_current_target): Don't inherit or default
8467 to_supports_enable_disable_tracepoint.
8468 * target.h (struct target_ops)
8469 <to_supports_enable_disable_tracepoint>: Use
8470 TARGET_DEFAULT_RETURN.
8471
a7304748
TT
84722014-02-19 Tom Tromey <tromey@redhat.com>
8473
8474 * target-delegates.c: Rebuild.
8475 * target.c (update_current_target): Don't inherit or default
8476 to_supports_multi_process.
8477 * target.h (struct target_ops) <to_supports_multi_process>: Use
8478 TARGET_DEFAULT_RETURN.
8479
4229b31d
TT
84802014-02-19 Tom Tromey <tromey@redhat.com>
8481
8482 * target-delegates.c: Rebuild.
8483 * target.c (update_current_target): Don't inherit or default
8484 to_get_ada_task_ptid.
8485 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8486 TARGET_DEFAULT_FUNC.
8487
43eba180
TT
84882014-02-19 Tom Tromey <tromey@redhat.com>
8489
8490 * target-delegates.c: Rebuild.
8491 * target.c (update_current_target): Don't inherit or default
8492 to_thread_architecture.
8493 * target.h (struct target_ops) <to_thread_architecture>: Use
8494 TARGET_DEFAULT_FUNC.
8495
fe31bf5b
TT
84962014-02-19 Tom Tromey <tromey@redhat.com>
8497
8498 * target-delegates.c: Rebuild.
8499 * target.c (update_current_target): Don't inherit or default
8500 to_execution_direction.
8501 * target.h (struct target_ops) <to_execution_direction>: Use
8502 TARGET_DEFAULT_FUNC.
8503
53e1cfc7
TT
85042014-02-19 Tom Tromey <tromey@redhat.com>
8505
8506 * target-delegates.c: Rebuild.
8507 * target.c (update_current_target): Don't inherit or default
8508 to_can_execute_reverse.
8509 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8510 TARGET_DEFAULT_RETURN.
8511 (target_can_execute_reverse): Unconditionally delegate.
8512
9bb9d61d
TT
85132014-02-19 Tom Tromey <tromey@redhat.com>
8514
8515 * target-delegates.c: Rebuild.
8516 * target.c (update_current_target): Don't inherit or default
8517 to_goto_bookmark.
8518 (dummy_goto_bookmark): Remove.
8519 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8520 * target.h (struct target_ops) <to_goto_bookmark>: Use
8521 TARGET_DEFAULT_NORETURN.
8522
3dbafbbb
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_get_bookmark.
8528 (dummy_get_bookmark): Remove.
8529 (init_dummy_target): Don't inherit or default to_get_bookmark.
8530 * target.h (struct target_ops) <to_get_bookmark>: Use
8531 TARGET_DEFAULT_NORETURN
8532
16f796b1
TT
85332014-02-19 Tom Tromey <tromey@redhat.com>
8534
8535 * target-delegates.c: Rebuild.
8536 * target.c (update_current_target): Don't inherit or default
8537 to_make_corefile_notes.
8538 (init_dummy_target): Don't initialize to_make_corefile_notes.
8539 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8540 TARGET_DEFAULT_FUNC.
8541
0b5a2719
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_find_memory_regions.
8547 (init_dummy_target): Don't initialize to_find_memory_regions.
8548 * target.h (struct target_ops) <to_find_memory_regions>: Use
8549 TARGET_DEFAULT_FUNC.
8550
d9cb0195
TT
85512014-02-19 Tom Tromey <tromey@redhat.com>
8552
8553 * target-delegates.c: Rebuild.
8554 * target.c (update_current_target): Don't inherit or default
8555 to_log_command.
8556 * target.h (struct target_ops) <to_log_command>: Use
8557 TARGET_DEFAULT_IGNORE.
8558 (target_log_command): Unconditionally delegate.
8559
830ca330
TT
85602014-02-19 Tom Tromey <tromey@redhat.com>
8561
8562 * target-delegates.c: Rebuild.
8563 * target.c (update_current_target): Don't inherit or default
8564 to_pid_to_exec_file.
8565 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8566 TARGET_DEFAULT_RETURN.
8567
825828fc
TT
85682014-02-19 Tom Tromey <tromey@redhat.com>
8569
8570 * target-delegates.c: Rebuild.
8571 * target.c (update_current_target): Don't inherit or default
8572 to_thread_name.
8573 (target_thread_name): Unconditionally delegate.
8574 * target.h (struct target_ops) <to_thread_name>: Use
8575 TARGET_DEFAULT_RETURN.
8576
4a7e6dda
TT
85772014-02-19 Tom Tromey <tromey@redhat.com>
8578
8579 * target-delegates.c: Rebuild.
8580 * target.c (update_current_target): Don't inherit or default
8581 to_extra_thread_info.
8582 * target.h (struct target_ops) <to_extra_thread_info>: Use
8583 TARGET_DEFAULT_RETURN.
8584
0db88c1d
TT
85852014-02-19 Tom Tromey <tromey@redhat.com>
8586
8587 * target-delegates.c: Rebuild.
8588 * target.c (update_current_target): Don't inherit or default
8589 to_has_exited.
8590 * target.h (struct target_ops) <to_has_exited>: Use
8591 TARGET_DEFAULT_RETURN..
8592
6a9fa051
TT
85932014-02-19 Tom Tromey <tromey@redhat.com>
8594
8595 * target-delegates.c: Rebuild.
8596 * target.c (update_current_target): Don't inherit or default
8597 to_set_syscall_catchpoint.
8598 (return_one): Remove.
8599 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8600 TARGET_DEFAULT_RETURN.
8601
62f64d7a
TT
86022014-02-19 Tom Tromey <tromey@redhat.com>
8603
8604 * target-delegates.c: Rebuild.
8605 * target.c (update_current_target): Don't inherit or default
8606 to_insert_exec_catchpoint.
8607 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8608 TARGET_DEFAULT_RETURN.
8609
cda0f38c
TT
86102014-01-08 Tom Tromey <tromey@redhat.com>
8611
8612 * target-delegates.c: Rebuild.
8613 * target.c (update_current_target): Don't inherit or default
8614 to_insert_exec_catchpoint.
8615 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8616 TARGET_DEFAULT_RETURN.
8617
95c3375e
TT
86182014-02-19 Tom Tromey <tromey@redhat.com>
8619
8620 * target-delegates.c: Rebuild.
8621 * target.c (update_current_target): Don't inherit or default
8622 to_remove_vfork_catchpoint.
8623 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8624 TARGET_DEFAULT_RETURN.
8625
7e18a8dc
TT
86262014-02-19 Tom Tromey <tromey@redhat.com>
8627
8628 * target-delegates.c: Rebuild.
8629 * target.c (update_current_target): Don't inherit or default
8630 to_insert_vfork_catchpoint.
8631 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8632 TARGET_DEFAULT_RETURN.
8633
e1a21fb7
TT
86342014-02-19 Tom Tromey <tromey@redhat.com>
8635
8636 * target-delegates.c: Rebuild.
8637 * target.c (update_current_target): Don't inherit or default
8638 to_remove_fork_catchpoint.
8639 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8640 TARGET_DEFAULT_RETURN.
8641
5958ebeb
TT
86422014-02-19 Tom Tromey <tromey@redhat.com>
8643
8644 * target-delegates.c: Rebuild.
8645 * target.c (update_current_target): Don't inherit or default
8646 to_insert_fork_catchpoint.
8647 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8648 TARGET_DEFAULT_RETURN.
8649
340ba4bf
TT
86502014-02-19 Tom Tromey <tromey@redhat.com>
8651
8652 * target-delegates.c: Rebuild.
8653 * target.c (update_current_target): Don't inherit or default
8654 to_post_startup_inferior.
8655 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8656 TARGET_DEFAULT_IGNORE.
8657
7634da87
TT
86582014-02-19 Tom Tromey <tromey@redhat.com>
8659
8660 * target-delegates.c: Rebuild.
8661 * target.c (update_current_target): Don't inherit or default
8662 to_load.
8663 * target.h (struct target_ops) <to_load>: Use
8664 TARGET_DEFAULT_NORETURN.
8665
e19e919f
TT
86662014-02-19 Tom Tromey <tromey@redhat.com>
8667
8668 * target-delegates.c: Rebuild.
8669 * target.c (update_current_target): Don't inherit or default
8670 to_terminal_info.
8671 * target.h (struct target_ops) <to_terminal_info>: Use
8672 TARGET_DEFAULT_FUNC.
8673
c6ea8f79
TT
86742014-02-19 Tom Tromey <tromey@redhat.com>
8675
8676 * target-delegates.c: Rebuild.
8677 * target.c (update_current_target): Don't inherit or default
8678 to_terminal_save_ours.
8679 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8680 TARGET_DEFAULT_IGNORE.
8681
e4a733f1
TT
86822014-02-19 Tom Tromey <tromey@redhat.com>
8683
8684 * target-delegates.c: Rebuild.
8685 * target.c (update_current_target): Don't inherit or default
8686 to_terminal_ours.
8687 * target.h (struct target_ops) <to_terminal_ours>: Use
8688 TARGET_DEFAULT_IGNORE.
8689
74fcbef9
TT
86902014-02-19 Tom Tromey <tromey@redhat.com>
8691
8692 * target-delegates.c: Rebuild.
8693 * target.c (update_current_target): Don't inherit or default
8694 to_terminal_ours_for_output.
8695 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8696 TARGET_DEFAULT_IGNORE.
8697
ddeaacc9
TT
86982014-02-19 Tom Tromey <tromey@redhat.com>
8699
8700 * target-delegates.c: Rebuild.
8701 * target.c (update_current_target): Don't inherit or default
8702 to_terminal_inferior.
8703 * target.h (struct target_ops) <to_terminal_inferior>: Use
8704 TARGET_DEFAULT_IGNORE.
8705
0343661d
TT
87062014-02-19 Tom Tromey <tromey@redhat.com>
8707
8708 * target-delegates.c: Rebuild.
8709 * target.c (update_current_target): Don't inherit or default
8710 to_terminal_init.
8711 * target.h (struct target_ops) <to_terminal_init>: Use
8712 TARGET_DEFAULT_IGNORE.
8713
77cdffe9
TT
87142014-02-19 Tom Tromey <tromey@redhat.com>
8715
8716 * target-delegates.c: Rebuild.
8717 * target.c (update_current_target): Don't inherit or default
8718 to_can_accel_watchpoint_condition.
8719 * target.h (struct target_ops)
8720 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8721
d03655e4
TT
87222014-02-19 Tom Tromey <tromey@redhat.com>
8723
8724 * target-delegates.c: Rebuild.
8725 * target.c (update_current_target): Don't inherit or default
8726 to_region_ok_for_hw_watchpoint.
8727 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8728 Use TARGET_DEFAULT_FUNC.
8729
65f160a9
TT
87302014-02-19 Tom Tromey <tromey@redhat.com>
8731
8732 * target-delegates.c: Rebuild.
8733 * target.c (update_current_target): Don't inherit or default
8734 to_watchpoint_addr_within_range.
8735 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8736 Use TARGET_DEFAULT_FUNC.
8737
61dd109f
TT
87382014-02-19 Tom Tromey <tromey@redhat.com>
8739
8740 * target-delegates.c: Rebuild.
8741 * target.c (update_current_target): Don't inherit or default
8742 to_remove_watchpoint.
8743 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8744 TARGET_DEFAULT_NORETURN.
8745
016facd4
TT
87462014-02-19 Tom Tromey <tromey@redhat.com>
8747
8748 * target-delegates.c: Rebuild.
8749 * target.c (update_current_target): Don't inherit or default
8750 to_insert_watchpoint.
8751 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8752 TARGET_DEFAULT_RETURN.
8753
418dabac
TT
87542014-02-19 Tom Tromey <tromey@redhat.com>
8755
8756 * target-delegates.c: Rebuild.
8757 * target.c (update_current_target): Don't inherit or default
8758 to_remove_hw_breakpoint.
8759 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8760 TARGET_DEFAULT_RETURN.
8761
61b371f9
TT
87622014-02-19 Tom Tromey <tromey@redhat.com>
8763
8764 * target-delegates.c: Rebuild.
8765 * target.c (update_current_target): Don't inherit or default
8766 to_insert_hw_breakpoint.
8767 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8768 TARGET_DEFAULT_RETURN.
8769
52b51d06
TT
87702014-02-19 Tom Tromey <tromey@redhat.com>
8771
8772 * target-delegates.c: Rebuild.
8773 * target.c (update_current_target): Don't inherit or default
8774 to_can_use_hw_breakpoint.
8775 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8776 TARGET_DEFAULT_RETURN.
8777
f86e59b2
TT
87782014-02-19 Tom Tromey <tromey@redhat.com>
8779
8780 * target-delegates.c: Rebuild.
8781 * target.c (update_current_target): Don't inherit or default
8782 to_files_info.
8783 * target.h (struct target_ops) <to_files_info>: Use
8784 TARGET_DEFAULT_IGNORE.
8785
6c628163
TT
87862014-02-19 Tom Tromey <tromey@redhat.com>
8787
8788 * target-delegates.c: Rebuild.
8789 * target.c (update_current_target): Don't inherit or default
8790 to_store.
8791 * target.h (struct target_ops) <to_store>: Use
8792 TARGET_DEFAULT_NORETURN.
8793
bebd3233
TT
87942014-02-19 Tom Tromey <tromey@redhat.com>
8795
8796 * target-delegates.c: Rebuild.
8797 * target.c (update_current_target): Don't inherit or default
8798 to_post_attach.
8799 * target.h (struct target_ops) <to_post_attach>: Use
8800 TARGET_DEFAULT_IGNORE.
8801
a53f3625
TT
88022014-02-19 Tom Tromey <tromey@redhat.com>
8803
8804 * target-delegates.c: Rebuild.
8805 * target.c (update_current_target): Don't inherit or default
8806 to_rcmd.
8807 (default_rcmd): New function.
8808 (do_monitor_command): Unconditionally delegate.
8809 * target.h (struct target_ops) <to_rmcd>: Use
8810 TARGET_DEFAULT_FUNC.
8811
e9a29200
TT
88122014-02-19 Tom Tromey <tromey@redhat.com>
8813
8814 * target-delegates.c: Rebuild.
8815 * target.c (init_dummy_target): Don't initialize to_attach.
8816 (target_attach): Unconditionally delegate.
8817 * target.h (struct target_ops) <to_attach>: Use
8818 TARGET_DEFAULT_FUNC.
8819
09da0d0a
TT
88202014-02-19 Tom Tromey <tromey@redhat.com>
8821
8822 * target-delegates.c: Rebuild.
8823 * target.c (target_detach): Unconditionally delegate.
8824 (init_dummy_target): Don't initialize to_detach.
8825 * target.h (struct target_ops) <to_detach>: Use
8826 TARGET_DEFAULT_IGNORE.
8827
5436ff03
TT
88282014-02-19 Tom Tromey <tromey@redhat.com>
8829
8830 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8831 Add argument.
8832 (target_augmented_libraries_svr4_read): Add argument.
8833 * target.c (update_current_target): Update.
8834 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8835 argument.
8836
f0d960ea
TT
88372014-02-19 Tom Tromey <tromey@redhat.com>
8838
8839 * target.h (struct target_ops) <to_call_history_range>: Add
8840 argument.
8841 * target.c (target_call_history_range): Add argument.
8842 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8843 argument.
8844 (record_btrace_call_history_from): Update.
8845
ec0aea04
TT
88462014-02-19 Tom Tromey <tromey@redhat.com>
8847
8848 * target.h (struct target_ops) <to_call_history_from>: Add
8849 argument.
8850 * target.c (target_call_history_from): Add argument.
8851 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8852 argument.
8853
5df2fcba
TT
88542014-02-19 Tom Tromey <tromey@redhat.com>
8855
8856 * target.h (struct target_ops) <to_call_history>: Add argument.
8857 * target.c (target_call_history): Add argument.
8858 * record-btrace.c (record_btrace_call_history): Add 'self'
8859 argument.
8860
4e99c6b7
TT
88612014-02-19 Tom Tromey <tromey@redhat.com>
8862
8863 * target.h (struct target_ops) <to_insn_history_range>: Add
8864 argument.
8865 * target.c (target_insn_history_range): Add argument.
8866 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8867 argument.
8868 (record_btrace_insn_history_from): Update.
8869
9abc3ff3
TT
88702014-02-19 Tom Tromey <tromey@redhat.com>
8871
8872 * target.h (struct target_ops) <to_insn_history_from>: Add
8873 argument.
8874 * target.c (target_insn_history_from): Add argument.
8875 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8876 argument.
8877
7a6c5609
TT
88782014-02-19 Tom Tromey <tromey@redhat.com>
8879
8880 * target.h (struct target_ops) <to_insn_history>: Add argument.
8881 * target.c (target_insn_history): Add argument.
8882 * record-btrace.c (record_btrace_insn_history): Add 'self'
8883 argument.
8884
606183ac
TT
88852014-02-19 Tom Tromey <tromey@redhat.com>
8886
8887 * target.h (struct target_ops) <to_goto_record>: Add argument.
8888 * target.c (target_goto_record): Add argument.
8889 * record-full.c (record_full_goto): Add 'self' argument.
8890 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8891
307a1b91
TT
88922014-02-19 Tom Tromey <tromey@redhat.com>
8893
8894 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8895 * target.c (target_goto_record_end): Add argument.
8896 * record-full.c (record_full_goto_end): Add 'self' argument.
8897 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8898
08475817
TT
88992014-02-19 Tom Tromey <tromey@redhat.com>
8900
8901 * target.h (struct target_ops) <to_goto_record_begin>: Add
8902 argument.
8903 * target.c (target_goto_record_begin): Add argument.
8904 * record-full.c (record_full_goto_begin): Add 'self' argument.
8905 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8906 argument.
8907
1c63c994
TT
89082014-02-19 Tom Tromey <tromey@redhat.com>
8909
8910 * target.h (struct target_ops) <to_record_is_replaying>: Add
8911 argument.
8912 * target.c (target_record_is_replaying): Add argument.
8913 * record-full.c (record_full_is_replaying): Add 'self' argument.
8914 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8915 argument.
8916 (record_btrace_xfer_partial, record_btrace_store_registers)
8917 (record_btrace_prepare_to_store, record_btrace_resume)
8918 (record_btrace_wait, record_btrace_decr_pc_after_break)
8919 (record_btrace_find_new_threads, record_btrace_thread_alive):
8920 Update.
8921
d1b55219
TT
89222014-02-19 Tom Tromey <tromey@redhat.com>
8923
8924 * target.h (struct target_ops) <to_delete_record>: Add argument.
8925 * target.c (target_delete_record): Add argument.
8926 * record-full.c (record_full_delete): Add 'self' argument.
8927
1390f529
TT
89282014-02-19 Tom Tromey <tromey@redhat.com>
8929
8930 * target.h (struct target_ops) <to_save_record>: Add argument.
8931 * target.c (target_save_record): Add argument.
8932 * record-full.c (record_full_save): Add 'self' argument.
8933 (record_full_save): Add 'self' argument.
8934
630d6a4a
TT
89352014-02-19 Tom Tromey <tromey@redhat.com>
8936
8937 * target.h (struct target_ops) <to_info_record>: Add argument.
8938 * target.c (target_info_record): Add argument.
8939 * record.c (info_record_command): Add argument.
8940 * record-full.c (record_full_info): Add 'self' argument.
8941 * record-btrace.c (record_btrace_info): Add 'self' argument.
8942
c6cd7c02
TT
89432014-02-19 Tom Tromey <tromey@redhat.com>
8944
8945 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8946 * target.c (target_stop_recording): Add argument.
8947 * record.c (record_stop): Add argument.
8948 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8949 argument.
8950
39c49f83
TT
89512014-02-19 Tom Tromey <tromey@redhat.com>
8952
8953 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8954 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8955 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8956 argument.
8957 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8958 (_initialize_amd64_linux_nat): Use it.
8959 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8960 (_initialize_i386_linux_nat): Use it.
8961
1777056d
TT
89622014-02-19 Tom Tromey <tromey@redhat.com>
8963
8964 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8965 * target.c (target_teardown_btrace): Add argument.
8966 * remote.c (remote_teardown_btrace): Add 'self' argument.
8967 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8968 argument.
8969 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8970 argument.
8971
25e95349
TT
89722014-02-19 Tom Tromey <tromey@redhat.com>
8973
8974 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8975 * target.c (target_disable_btrace): Add argument.
8976 * remote.c (remote_disable_btrace): Add 'self' argument.
8977 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8978 argument.
8979 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8980 argument.
8981
e3c49f88
TT
89822014-02-19 Tom Tromey <tromey@redhat.com>
8983
8984 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8985 * target.c (target_enable_btrace): Add argument.
8986 * remote.c (remote_enable_btrace): Add 'self' argument.
8987 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8988 argument.
8989 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8990 argument.
8991
fe38f897
TT
89922014-02-19 Tom Tromey <tromey@redhat.com>
8993
8994 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8995 (target_can_use_agent): Add argument.
8996 * target.c (update_current_target): Update.
8997 * remote.c (remote_can_use_agent): Add 'self' argument.
8998 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8999
2c152180
TT
90002014-02-19 Tom Tromey <tromey@redhat.com>
9001
9002 * target.h (struct target_ops) <to_use_agent>: Add argument.
9003 (target_use_agent): Add argument.
9004 * target.c (update_current_target): Update.
9005 * remote.c (remote_use_agent): Add 'self' argument.
9006 * inf-child.c (inf_child_use_agent): Add 'self' argument.
9007
a893e81f
TT
90082014-02-19 Tom Tromey <tromey@redhat.com>
9009
9010 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
9011 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
9012 (target_traceframe_info): Add argument.
9013 * target.c (update_current_target): Update.
9014 * remote.c (remote_traceframe_info): Add 'self' argument.
9015 * ctf.c (ctf_traceframe_info): Add 'self' argument.
9016
c686c57f
TT
90172014-02-19 Tom Tromey <tromey@redhat.com>
9018
9019 * target.h (target_static_tracepoint_markers_by_strid): Add
9020 argument.
9021 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
9022 'self' argument.
9023 * target.c (update_current_target): Update.
9024 * remote.c (struct target_ops)
9025 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9026 * linux-nat.c (struct target_ops)
9027 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
9028
61fc905d
TT
90292014-02-19 Tom Tromey <tromey@redhat.com>
9030
9031 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
9032 Add argument.
9033 (target_static_tracepoint_marker_at): Add argument.
9034 * target.c (update_current_target): Update.
9035 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
9036 argument.
9037
c378d69d
TT
90382014-02-19 Tom Tromey <tromey@redhat.com>
9039
9040 * target.h (struct target_ops) <to_set_permissions>: Add argument.
9041 (target_set_permissions): Add argument.
9042 * target.c (update_current_target): Update.
9043 * remote.c (remote_set_permissions): Add 'self' argument.
9044 (remote_start_remote): Update.
9045
bd7ae0f5
TT
90462014-02-19 Tom Tromey <tromey@redhat.com>
9047
9048 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
9049 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
9050 (target_get_tib_address): Add argument.
9051 * target.c (update_current_target): Update.
9052 * remote.c (remote_get_tib_address): Add 'self' argument.
9053
d9e68a2c
TT
90542014-02-19 Tom Tromey <tromey@redhat.com>
9055
9056 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
9057 (target_set_trace_notes): Add argument.
9058 * target.c (update_current_target): Update.
9059 * remote.c (remote_set_trace_notes): Add 'self' argument.
9060
4da384be
TT
90612014-02-19 Tom Tromey <tromey@redhat.com>
9062
9063 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
9064 argument.
9065 (target_set_trace_buffer_size): Add argument.
9066 * target.c (update_current_target): Update.
9067 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
9068
736d5b1f
TT
90692014-02-19 Tom Tromey <tromey@redhat.com>
9070
9071 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
9072 argument.
9073 (target_set_circular_trace_buffer): Add argument.
9074 * target.c (update_current_target): Update.
9075 * remote.c (remote_set_circular_trace_buffer): Add 'self'
9076 argument.
9077
37b25738
TT
90782014-02-19 Tom Tromey <tromey@redhat.com>
9079
9080 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
9081 argument.
9082 (target_set_disconnected_tracing): Add argument.
9083 * target.c (update_current_target): Update.
9084 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
9085
0e67620a
TT
90862014-02-19 Tom Tromey <tromey@redhat.com>
9087
9088 * target.h (struct target_ops)
9089 <to_get_min_fast_tracepoint_insn_len>: Add argument.
9090 (target_get_min_fast_tracepoint_insn_len): Add argument.
9091 * target.c (update_current_target): Update.
9092 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
9093 argument.
9094
88ee6f45
TT
90952014-02-19 Tom Tromey <tromey@redhat.com>
9096
9097 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
9098 argument.
9099 (target_get_raw_trace_data): Add argument.
9100 * target.c (update_current_target): Update.
9101 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
9102
181e3713
TT
91032014-02-19 Tom Tromey <tromey@redhat.com>
9104
9105 * target.h (struct target_ops) <to_upload_trace_state_variables>:
9106 Add argument.
9107 (target_upload_trace_state_variables): Add argument.
9108 * target.c (update_current_target): Update.
9109 * remote.c (remote_upload_trace_state_variables): Add 'self'
9110 argument.
9111 (remote_start_remote): Update.
9112
ab6617cc
TT
91132014-02-19 Tom Tromey <tromey@redhat.com>
9114
9115 * target.h (struct target_ops) <to_upload_tracepoints>: Add
9116 argument.
9117 (target_upload_tracepoints): Add argument.
9118 * target.c (update_current_target): Update.
9119 * remote.c (remote_upload_tracepoints): Add 'self' argument.
9120 (remote_start_remote): Update.
9121
dc3decaf
TT
91222014-02-19 Tom Tromey <tromey@redhat.com>
9123
9124 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
9125 (target_save_trace_data): Add argument.
9126 * target.c (update_current_target): Update.
9127 * remote.c (remote_save_trace_data): Add 'self' argument.
9128
4011015b
TT
91292014-02-19 Tom Tromey <tromey@redhat.com>
9130
9131 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
9132 argument.
9133 * target.h (struct target_ops)
9134 <to_get_trace_state_variable_value>: Add argument.
9135 (target_get_trace_state_variable_value): Add argument.
9136 * target.c (update_current_target): Update.
9137 * remote.c (remote_get_trace_state_variable_value): Add 'self'
9138 argument.
9139 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
9140
bd4c6793
TT
91412014-02-19 Tom Tromey <tromey@redhat.com>
9142
9143 * tracepoint.c (tfile_trace_find): Add 'self' argument.
9144 * target.h (struct target_ops) <to_trace_find>: Add argument.
9145 (target_trace_find): Add argument.
9146 * target.c (update_current_target): Update.
9147 * remote.c (remote_trace_find): Add 'self' argument.
9148 * ctf.c (ctf_trace_find): Add 'self' argument.
9149
74499f1b
TT
91502014-02-19 Tom Tromey <tromey@redhat.com>
9151
9152 * target.h (struct target_ops) <to_trace_stop>: Add argument.
9153 (target_trace_stop): Add argument.
9154 * target.c (update_current_target): Update.
9155 * remote.c (remote_trace_stop): Add 'self' argument.
9156
db90e85c
TT
91572014-02-19 Tom Tromey <tromey@redhat.com>
9158
9159 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
9160 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
9161 argument.
9162 (target_get_tracepoint_status): Add argument.
9163 * target.c (update_current_target): Update.
9164 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
9165
8bd200f1
TT
91662014-02-19 Tom Tromey <tromey@redhat.com>
9167
9168 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
9169 * target.h (struct target_ops) <to_get_trace_status>: Add
9170 argument.
9171 (target_get_trace_status): Add argument.
9172 * target.c (update_current_target): Update.
9173 * remote.c (remote_get_trace_status): Add 'self' argument.
9174 (remote_start_remote, remote_can_download_tracepoint): Update.
9175 * ctf.c (ctf_get_trace_status): Add 'self' argument.
9176
e2d1aae3
TT
91772014-02-19 Tom Tromey <tromey@redhat.com>
9178
9179 * target.h (struct target_ops) <to_trace_start>: Add argument.
9180 (target_trace_start): Add argument.
9181 * target.c (update_current_target): Update.
9182 * remote.c (remote_trace_start): Add 'self' argument.
9183
583f9a86
TT
91842014-02-19 Tom Tromey <tromey@redhat.com>
9185
9186 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
9187 Add argument.
9188 (target_trace_set_readonly_regions): Add argument.
9189 * target.c (update_current_target): Update.
9190 * remote.c (remote_trace_set_readonly_regions): Add 'self'
9191 argument.
9192
780b049c
TT
91932014-02-19 Tom Tromey <tromey@redhat.com>
9194
9195 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9196 argument.
9197 (target_disable_tracepoint): Add argument.
9198 * target.c (update_current_target): Update.
9199 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9200
46670d57
TT
92012014-02-19 Tom Tromey <tromey@redhat.com>
9202
9203 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9204 argument.
9205 (target_enable_tracepoint): Add argument.
9206 * target.c (update_current_target): Update.
9207 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9208
559d2b81
TT
92092014-02-19 Tom Tromey <tromey@redhat.com>
9210
9211 * target.h (struct target_ops) <to_download_trace_state_variable>:
9212 Add argument.
9213 (target_download_trace_state_variable): Add argument.
9214 * target.c (update_current_target): Update.
9215 * remote.c (remote_download_trace_state_variable): Add 'self'
9216 argument.
9217
a52a8357
TT
92182014-02-19 Tom Tromey <tromey@redhat.com>
9219
9220 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9221 argument.
9222 (target_can_download_tracepoint): Add argument.
9223 * target.c (update_current_target): Update.
9224 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9225
548f7808
TT
92262014-02-19 Tom Tromey <tromey@redhat.com>
9227
9228 * target.h (struct target_ops) <to_download_tracepoint>: Add
9229 argument.
9230 (target_download_tracepoint): Add argument.
9231 * target.c (update_current_target): Update.
9232 * remote.c (remote_download_tracepoint): Add 'self' argument.
9233
ecae04e1
TT
92342014-02-19 Tom Tromey <tromey@redhat.com>
9235
9236 * target.h (struct target_ops) <to_trace_init>: Add argument.
9237 (target_trace_init): Add argument.
9238 * target.c (update_current_target): Update.
9239 * remote.c (remote_trace_init): Add 'self' argument.
9240
fab5aa7c
TT
92412014-02-19 Tom Tromey <tromey@redhat.com>
9242
9243 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9244 * target.c (target_fileio_readlink): Add argument.
9245 * remote.c (remote_hostio_readlink): Add 'self' argument.
9246 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9247
dbbca37d
TT
92482014-02-19 Tom Tromey <tromey@redhat.com>
9249
9250 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9251 * target.c (target_fileio_unlink): Add argument.
9252 * remote.c (remote_hostio_unlink): Add 'self' argument.
9253 (remote_file_delete): Update.
9254 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9255
df39ea25
TT
92562014-02-19 Tom Tromey <tromey@redhat.com>
9257
9258 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9259 * target.c (target_fileio_close): Add argument.
9260 * remote.c (remote_hostio_close): Add 'self' argument.
9261 (remote_hostio_close_cleanup): Update.
9262 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9263 Update.
9264 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9265
a3be983c
TT
92662014-02-19 Tom Tromey <tromey@redhat.com>
9267
9268 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9269 * target.c (target_fileio_pread): Add argument.
9270 * remote.c (remote_hostio_pread): Add 'self' argument.
9271 (remote_bfd_iovec_pread, remote_file_get): Update.
9272 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9273
0d866f62
TT
92742014-02-19 Tom Tromey <tromey@redhat.com>
9275
9276 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9277 * target.c (target_fileio_pwrite): Add argument.
9278 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9279 (remote_file_put): Update.
9280 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9281
cd897586
TT
92822014-02-19 Tom Tromey <tromey@redhat.com>
9283
9284 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9285 * target.c (target_fileio_open): Add argument.
9286 * remote.c (remote_hostio_open): Add 'self' argument.
9287 (remote_bfd_iovec_open): Add 'self' argument.
9288 (remote_file_put): Add 'self' argument.
9289 (remote_file_get): Add 'self' argument.
9290 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9291
78eff0ec
TT
92922014-02-19 Tom Tromey <tromey@redhat.com>
9293
9294 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9295 Add argument.
9296 (target_can_run_breakpoint_commands): Add argument.
9297 * target.c (update_current_target): Update.
9298 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9299 argument.
9300 (remote_insert_breakpoint): Add 'self' argument.
9301 (remote_insert_hw_breakpoint): Add 'self' argument.
9302 (remote_can_run_breakpoint_commands): Add 'self' argument.
9303
efcc2da7
TT
93042014-02-19 Tom Tromey <tromey@redhat.com>
9305
9306 * target.h (struct target_ops)
9307 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9308 (target_supports_evaluation_of_breakpoint_conditions): Add
9309 argument.
9310 * target.c (update_current_target): Update.
9311 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9312 argument.
9313 (remote_insert_breakpoint): Add 'self' argument.
9314 (remote_insert_hw_breakpoint): Add 'self' argument.
9315 (remote_supports_cond_breakpoints): Add 'self' argument.
9316
6de37a3a
TT
93172014-02-19 Tom Tromey <tromey@redhat.com>
9318
9319 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9320 argument.
9321 (target_supports_string_tracing): Add argument.
9322 * target.c (update_current_target): Update.
9323 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9324
2bfc0540
TT
93252014-02-19 Tom Tromey <tromey@redhat.com>
9326
9327 * target.h (struct target_ops)
9328 <to_supports_disable_randomization>: Add argument.
9329 * target.c (find_default_supports_disable_randomization): Add
9330 argument.
9331 (target_supports_disable_randomization): Add argument.
9332 (find_default_supports_disable_randomization): Add 'self'
9333 argument.
9334 * remote.c (extended_remote_supports_disable_randomization): Add
9335 'self' argument.
9336 (remote_supports_disable_randomization): Add 'self' argument.
9337 (extended_remote_create_inferior): Update.
9338 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9339 'self' argument.
9340
7d178d6a
TT
93412014-02-19 Tom Tromey <tromey@redhat.com>
9342
9343 * target.h (struct target_ops)
9344 <to_supports_enable_disable_tracepoint>: Add argument.
9345 (target_supports_enable_disable_tracepoint): Add argument.
9346 * target.c (update_current_target): Update.
9347 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9348 argument.
9349
86ce2668
TT
93502014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * target.h (struct target_ops) <to_supports_multi_process>: Add
9353 argument.
9354 (target_supports_multi_process): Add argument.
9355 * target.c (update_current_target): Update.
9356 * remote.c (remote_supports_multi_process): Add 'self' argument.
9357 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9358 argument.
9359 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9360 argument.
9361
4c612759
TT
93622014-02-19 Tom Tromey <tromey@redhat.com>
9363
9364 * target.h (struct target_ops) <to_execution_direction>: Add
9365 argument.
9366 (target_execution_direction): Add argument.
9367 * target.c (default_execution_direction): Add 'self' argument.
9368 * record-full.c (record_full_execution_direction): Add 'self'
9369 argument.
9370
19db3e69
TT
93712014-02-19 Tom Tromey <tromey@redhat.com>
9372
9373 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9374 argument.
9375 (target_can_execute_reverse): Add argument.
9376 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9377 * record-full.c (record_full_can_execute_reverse): Add 'self'
9378 argument.
9379 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9380 argument.
9381
1e6b91a4
TT
93822014-02-19 Tom Tromey <tromey@redhat.com>
9383
9384 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9385 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9386 argument.
9387 (target_get_ada_task_ptid): Add argument.
9388 * target.c (update_current_target): Update.
9389 (default_get_ada_task_ptid): Add 'self' argument.
9390 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9391 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9392 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9393 argument.
9394 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9395 argument.
9396 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9397 argument.
9398 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9399 argument.
9400 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9401 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9402 argument.
9403
3c80fb48
TT
94042014-02-19 Tom Tromey <tromey@redhat.com>
9405
9406 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9407 (target_goto_bookmark): Add argument.
9408 * target.c (dummy_goto_bookmark): Add 'self' argument.
9409 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9410
dd0e2830
TT
94112014-02-19 Tom Tromey <tromey@redhat.com>
9412
9413 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9414 (target_get_bookmark): Add argument.
9415 * target.c (dummy_get_bookmark): Add 'self' argument.
9416 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9417
fc6691b2
TT
94182014-02-19 Tom Tromey <tromey@redhat.com>
9419
9420 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9421 argument.
9422 (target_make_corefile_notes): Add argument.
9423 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9424 * procfs.c (procfs_make_note_section): Add 'self' argument.
9425 (procfs_make_note_section): Add 'self' argument.
9426 (procfs_make_note_section): Add 'self' argument.
9427 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9428 argument.
9429 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9430 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9431 * exec.c (exec_make_note_section): Add 'self' argument.
9432 (exec_make_note_section): Add 'self' argument.
9433
2e73927c
TT
94342014-02-19 Tom Tromey <tromey@redhat.com>
9435
9436 * target.h (struct target_ops) <to_find_memory_regions>: Add
9437 argument.
9438 (target_find_memory_regions): Add argument.
9439 * target.c (dummy_find_memory_regions): Add 'self' argument.
9440 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9441 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9442 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9443 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9444 * exec. (exec_do_find_memory_regions): New global.
9445 (exec_set_find_memory_regions): Rewrite.
9446 (exec_find_memory_regions): New function.
9447 (init_exec_ops): Use exec_find_memory_regions.
9448
2a9a2795
TT
94492014-02-19 Tom Tromey <tromey@redhat.com>
9450
9451 * target.h (struct target_ops) <to_supports_non_stop>: Add
9452 argument.
9453 * target.c (find_default_supports_non_stop): Add argument.
9454 (target_supports_non_stop): Add argument.
9455 (find_default_supports_non_stop): Add 'self' argument.
9456 * remote.c (remote_supports_non_stop): Add 'self' argument.
9457 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9458
4ab76ea3
TT
94592014-02-19 Tom Tromey <tromey@redhat.com>
9460
9461 * target.h (struct target_ops) <to_log_command>: Add argument.
9462 (target_log_command): Add argument.
9463 * serial.h (serial_log_command): Add 'self' argument.
9464 * serial.c (serial_log_command): Add 'self' argument.
9465
8dd27370
TT
94662014-02-19 Tom Tromey <tromey@redhat.com>
9467
9468 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9469 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9470 argument.
9471 (target_pid_to_exec_file): Add argument.
9472 * target.c (debug_to_pid_to_exec_file): Add argument.
9473 (update_current_target): Update.
9474 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9475 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9476 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9477 (linux_handle_extended_wait): Update.
9478 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9479 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9480 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9481 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9482
1aac633b
TT
94832014-02-19 Tom Tromey <tromey@redhat.com>
9484
9485 * target.h (struct target_ops) <to_rcmd>: Add argument.
9486 (target_rcmd): Add argument.
9487 * target.c (debug_to_rcmd): Add argument.
9488 (update_current_target, do_monitor_command): Update.
9489 * remote.c (remote_rcmd): Add 'self' argument.
9490 * monitor.c (monitor_rcmd): Add 'self' argument.
9491
1eab8a48
TT
94922014-02-19 Tom Tromey <tromey@redhat.com>
9493
9494 * windows-nat.c (windows_stop): Add 'self' argument.
9495 * target.h (struct target_ops) <to_stop>: Add argument.
9496 * target.c (target_stop): Add argument.
9497 (debug_to_stop): Add argument.
9498 (update_current_target): Update.
9499 * remote.c (remote_stop): Add 'self' argument.
9500 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9501 (gdbsim_cntrl_c): Update.
9502 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9503 * procfs.c (procfs_stop): Add 'self' argument.
9504 * nto-procfs.c (procfs_stop): Add 'self' argument.
9505 * monitor.c (monitor_stop): Add 'self' argument.
9506 (monitor_open): Update.
9507 * linux-nat.c (linux_nat_stop): Add argument.
9508 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9509 * gnu-nat.c (gnu_stop): Add 'self' argument.
9510 * darwin-nat.c (darwin_stop): Add 'self' argument.
9511
503a628d
TT
95122014-02-19 Tom Tromey <tromey@redhat.com>
9513
9514 * target.h (struct target_ops) <to_thread_name>: Add argument.
9515 * target.c (target_thread_name): Add argument.
9516 (update_current_target): Update.
9517 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9518
c15906d8
TT
95192014-02-19 Tom Tromey <tromey@redhat.com>
9520
9521 * target.h (struct target_ops) <to_extra_thread_info>: Add
9522 argument.
9523 (target_extra_thread_info): Add argument.
9524 * target.c (update_current_target): Update.
9525 * remote.c (remote_threads_extra_info): Add 'self' argument.
9526 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9527 argument.
9528 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9529 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9530 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9531 argument.
9532 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9533 argument.
9534 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9535 argument.
9536 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9537 argument.
9538
daf5e9b6
TT
95392014-02-19 Tom Tromey <tromey@redhat.com>
9540
9541 * target.h (struct target_ops) <to_program_signals>: Add argument.
9542 * target.c (target_program_signals): Add argument.
9543 * remote.c (remote_program_signals): Add 'self' argument.
9544
94bedb42
TT
95452014-02-19 Tom Tromey <tromey@redhat.com>
9546
9547 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9548 * target.c (target_pass_signals): Add argument.
9549 * remote.c (remote_pass_signals): Add 'self' argument.
9550 (remote_start_remote): Update.
9551 * procfs.c (procfs_pass_signals): Add 'self' argument.
9552 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9553 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9554 (linux_nat_create_inferior, linux_nat_attach): Update.
9555
da82bd6b
TT
95562014-02-19 Tom Tromey <tromey@redhat.com>
9557
9558 * windows-nat.c (windows_can_run): Add 'self' argument.
9559 * target.h (struct target_ops) <to_can_run>: Add argument.
9560 (target_can_run): Add argument.
9561 * target.c (debug_to_can_run): Add argument.
9562 (update_current_target): Update.
9563 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9564 * inf-child.c (inf_child_can_run): Add 'self' argument.
9565 * go32-nat.c (go32_can_run): Add 'self' argument.
9566
d796e1d6
TT
95672014-02-19 Tom Tromey <tromey@redhat.com>
9568
9569 * target.h (struct target_ops) <to_has_exited>: Add argument.
9570 (target_has_exited): Add argument.
9571 * target.c (debug_to_has_exited): Add argument.
9572 (update_current_target): Update.
9573
ff214e67
TT
95742014-02-19 Tom Tromey <tromey@redhat.com>
9575
9576 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9577 argument.
9578 (target_set_syscall_catchpoint): Add argument.
9579 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9580 argument.
9581 * target.c (update_current_target): Update.
9582
758e29d2
TT
95832014-02-19 Tom Tromey <tromey@redhat.com>
9584
9585 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9586 argument.
9587 (target_remove_exec_catchpoint): Add argument.
9588 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9589 (update_current_target): Update.
9590 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9591 argument.
9592
ba025e51
TT
95932014-02-19 Tom Tromey <tromey@redhat.com>
9594
9595 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9596 argument.
9597 (target_insert_exec_catchpoint): Add argument.
9598 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9599 (update_current_target): Update.
9600 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9601 argument.
9602
e98cf0cd
TT
96032014-02-19 Tom Tromey <tromey@redhat.com>
9604
9605 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9606 argument.
9607 (target_remove_vfork_catchpoint): Add argument.
9608 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9609 (update_current_target): Update.
9610 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9611 argument.
9612
3ecc7da0
TT
96132014-02-19 Tom Tromey <tromey@redhat.com>
9614
9615 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9616 argument.
9617 (target_insert_vfork_catchpoint): Add argument.
9618 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9619 (update_current_target): Update.
9620 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9621 argument.
9622
973fc227
TT
96232014-02-19 Tom Tromey <tromey@redhat.com>
9624
9625 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9626 argument.
9627 (target_remove_fork_catchpoint): Add argument.
9628 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9629 (update_current_target): Update.
9630 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9631 argument.
9632
a863b201
TT
96332014-02-19 Tom Tromey <tromey@redhat.com>
9634
9635 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9636 argument.
9637 (target_insert_fork_catchpoint): Add argument.
9638 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9639 (update_current_target): Update.
9640 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9641 argument.
9642
2e97a79e
TT
96432014-02-19 Tom Tromey <tromey@redhat.com>
9644
9645 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9646 argument.
9647 (target_post_startup_inferior): Add argument.
9648 * target.c (debug_to_post_startup_inferior): Add argument.
9649 (update_current_target): Update.
9650 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9651 argument.
9652 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9653 argument.
9654 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9655 argument.
9656 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9657 argument.
9658 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9659 'self' argument.
9660 (super_post_startup_inferior): Likewise.
9661 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9662 'self' argument.
9663 (super_post_startup_inferior): Likewise.
9664 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9665 Add 'self' argument.
9666 (super_post_startup_inferior): Likewise.
9667
71a9f134
TT
96682014-02-19 Tom Tromey <tromey@redhat.com>
9669
9670 * target.h (struct target_ops) <to_load>: Add argument.
9671 * target.c (target_load): Add argument.
9672 (debug_to_load): Add argument.
9673 (update_current_target): Update.
9674 * remote.c (remote_load): Add 'self' argument.
9675 * remote-sim.c (gdbsim_load): Add 'self' argument.
9676 * remote-mips.c (mips_load): Add 'self' argument.
9677 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9678 * monitor.c (monitor_load): Add 'self' argument.
9679 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9680
0a4f40a2
TT
96812014-02-19 Tom Tromey <tromey@redhat.com>
9682
9683 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9684 (target_terminal_info): Add argument.
9685 * target.c (debug_to_terminal_info): Add argument.
9686 (default_terminal_info): Likewise.
9687 * inflow.c (child_terminal_info): Add 'self' argument.
9688 * inferior.h (child_terminal_info): Add 'self' argument.
9689 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9690
ae3bd431
TT
96912014-02-19 Tom Tromey <tromey@redhat.com>
9692
9693 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9694 argument.
9695 (target_terminal_save_ours): Add argument.
9696 * target.c (debug_to_terminal_save_ours): Add argument.
9697 (update_current_target): Update.
9698 * inflow.c (terminal_save_ours): Add 'self' argument.
9699 * inferior.h (terminal_save_ours): Add 'self' argument.
9700
e3594fd1
TT
97012014-02-19 Tom Tromey <tromey@redhat.com>
9702
9703 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9704 (target_terminal_ours): Add argument.
9705 * target.c (debug_to_terminal_ours): Add argument.
9706 (update_current_target): Update.
9707 * remote.c (remote_terminal_ours): Add 'self' argument.
9708 (remote_close): Update.
9709 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9710 * inflow.c (terminal_ours): Add 'self' argument.
9711 * inferior.h (terminal_ours): Add 'self' argument.
9712 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9713
2e1e1a19
TT
97142014-02-19 Pedro Alves <palves@redhat.com>
9715 Tom Tromey <tromey@redhat.com>
9716
9717 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9718 argument.
9719 (target_terminal_ours_for_output): Add argument.
9720 * target.c (debug_to_terminal_ours_for_output): Add argument.
9721 (update_current_target): Update.
9722 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9723 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9724 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9725
d2f640d4
TT
97262014-02-19 Tom Tromey <tromey@redhat.com>
9727
9728 * target.h (struct target_ops) <to_terminal_inferior>: Add
9729 argument.
9730 * target.c (target_terminal_inferior): Add argument.
9731 (update_current_target): Update.
9732 * remote.c (remote_terminal_inferior): Add 'self' argument.
9733 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9734 * inflow.c (terminal_inferior): Add 'self' argument.
9735 * inferior.h (terminal_inferior): Add 'self' argument.
9736 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9737 (go32_terminal_inferior): Add 'self' argument.
9738
c42bf286
TT
97392014-02-19 Tom Tromey <tromey@redhat.com>
9740
9741 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9742 (target_terminal_init): Add argument.
9743 * target.c (debug_to_terminal_init): Add argument.
9744 (update_current_target): Update.
9745 * inflow.c (terminal_init_inferior): Add 'self' argument.
9746 * inferior.h (terminal_init_inferior): Add 'self' argument.
9747 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9748 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9749
c3a5ff89
TT
97502014-02-19 Tom Tromey <tromey@redhat.com>
9751
9752 * target.h (struct target_ops)
9753 <to_can_accel_watchpoint_condition>: Add argument.
9754 (target_can_accel_watchpoint_condition): Add argument.
9755 * target.c (debug_to_can_accel_watchpoint_condition): Add
9756 argument.
9757 (update_current_target): Update.
9758 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9759 'self' argument.
9760
31568a15
TT
97612014-02-19 Tom Tromey <tromey@redhat.com>
9762
9763 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9764 Add argument.
9765 (target_region_ok_for_hw_watchpoint): Add argument.
9766 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9767 (default_region_ok_for_hw_watchpoint): Add argument.
9768 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9769 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9770 argument.
9771 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9772 argument.
9773 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9774 argument.
9775 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9776 'self' argument.
9777 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9778 'self' argument.
9779 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9780 'self' argument.
9781 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9782 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9783 'self' argument.
9784 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9785 Add 'self' argument.
9786
7bb99c53
TT
97872014-02-19 Tom Tromey <tromey@redhat.com>
9788
9789 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9790 argument.
9791 (target_insert_watchpoint): Add argument.
9792 * target.c (debug_to_insert_watchpoint): Add argument.
9793 (update_current_target): Update.
9794 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9795 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9796 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9797 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9798 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9799 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9800 argument.
9801 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9802 (procfs_insert_hw_watchpoint): Add 'self' argument.
9803 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9804 argument.
9805 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9806 argument.
9807 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9808 argument.
9809 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9810 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9811 argument.
9812 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9813 'self' argument.
9814
11b5219a
TT
98152014-02-19 Tom Tromey <tromey@redhat.com>
9816
9817 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9818 argument.
9819 (target_remove_watchpoint): Add argument.
9820 * target.c (debug_to_remove_watchpoint): Add argument.
9821 (update_current_target): Update.
9822 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9823 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9824 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9825 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9826 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9827 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9828 argument.
9829 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9830 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9831 argument.
9832 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9833 argument.
9834 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9835 argument.
9836 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9837 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9838 argument.
9839 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9840 'self' argument.
9841
a64dc96c
TT
98422014-02-19 Tom Tromey <tromey@redhat.com>
9843
9844 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9845 argument.
9846 (target_remove_hw_breakpoint): Add argument.
9847 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9848 (update_current_target): Update.
9849 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9850 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9851 argument.
9852 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9853 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9854 argument.
9855 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9856 'self' argument.
9857
23a26771
TT
98582014-02-19 Tom Tromey <tromey@redhat.com>
9859
9860 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9861 argument.
9862 (target_insert_hw_breakpoint): Add argument.
9863 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9864 (update_current_target): Update.
9865 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9866 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9867 argument.
9868 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9869 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9870 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9871 argument.
9872 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9873 'self' argument.
9874
5461485a
TT
98752014-02-19 Tom Tromey <tromey@redhat.com>
9876
9877 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9878 argument.
9879 (target_can_use_hardware_watchpoint): Add argument.
9880 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9881 (update_current_target): Update.
9882 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9883 argument.
9884 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9885 argument.
9886 * remote.c (remote_check_watch_resources): Add 'self' argument.
9887 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9888 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9889 argument.
9890 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9891 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9892 argument.
9893 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9894 argument.
9895 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9896 argument.
9897 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9898 argument.
9899 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9900 argument.
9901 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9902 argument.
9903 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9904 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9905 argument.
9906 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9907 'self' argument.
9908
f045800c
TT
99092014-02-19 Tom Tromey <tromey@redhat.com>
9910
9911 * target.h (struct target_ops) <to_post_attach>: Add argument.
9912 (target_post_attach): Add argument.
9913 * target.c (debug_to_post_attach): Add argument.
9914 (update_current_target): Update.
9915 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9916 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9917 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9918 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9919 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9920
de90e03d
TT
99212014-02-19 Tom Tromey <tromey@redhat.com>
9922
9923 * windows-nat.c (windows_close): Add 'self' argument.
9924 * tracepoint.c (tfile_close): Add 'self' argument.
9925 * target.h (struct target_ops) <to_close>: Add argument.
9926 * target.c (target_close): Add argument.
9927 (update_current_target): Update.
9928 * remote.c (remote_close): Add 'self' argument.
9929 * remote-sim.c (gdbsim_close): Add 'self' argument.
9930 * remote-mips.c (mips_close): Add 'self' argument.
9931 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9932 * record-full.c (record_full_close): Add 'self' argument.
9933 * record-btrace.c (record_btrace_close): Add 'self' argument.
9934 * monitor.h (monitor_close): Add 'self' argument.
9935 * monitor.c (monitor_close): Add 'self' argument.
9936 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9937 * linux-nat.c (linux_nat_close): Add argument.
9938 * go32-nat.c (go32_close): Add 'self' argument.
9939 * exec.c (exec_close_1): Add 'self' argument.
9940 * ctf.c (ctf_close): Add 'self' argument.
9941 * corelow.c (core_close): Add 'self' argument.
9942 (core_close_cleanup): Update.
9943 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9944 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9945
9dd130a0
TT
99462014-02-19 Tom Tromey <tromey@redhat.com>
9947
9948 * remote.c (remote_load): New function.
9949 (init_remote_ops): Use it.
9950
46917d26
TT
99512014-02-19 Tom Tromey <tromey@redhat.com>
9952
9953 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9954 argument.
9955 * common/linux-btrace.h (linux_supports_btrace): Update.
9956 * remote.c (remote_supports_btrace): Add "self" argument.
9957 * target-delegates.c: Rebuild.
9958 * target.c (target_supports_btrace): Remove.
9959 * target.h (struct target_ops) <to_supports_btrace>: Add
9960 target_ops argument.
9961 (target_supports_btrace): New define.
9962
6b84065d
TT
99632014-02-19 Tom Tromey <tromey@redhat.com>
9964
9965 * record-full.c (record_full_beneath_to_resume_ops)
9966 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9967 (record_full_beneath_to_wait)
9968 (record_full_beneath_to_store_registers_ops)
9969 (record_full_beneath_to_store_registers)
9970 (record_full_beneath_to_xfer_partial_ops)
9971 (record_full_beneath_to_xfer_partial)
9972 (record_full_beneath_to_insert_breakpoint_ops)
9973 (record_full_beneath_to_insert_breakpoint)
9974 (record_full_beneath_to_remove_breakpoint_ops)
9975 (record_full_beneath_to_remove_breakpoint)
9976 (record_full_beneath_to_stopped_by_watchpoint)
9977 (record_full_beneath_to_stopped_data_address)
9978 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9979 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9980 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9981 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9982 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9983 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9984 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9985 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9986 (record_full_resume, record_full_wait_1)
9987 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9988 (record_full_store_registers, record_full_xfer_partial)
9989 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9990 (record_full_async, record_full_core_xfer_partial): Use target
9991 delegation.
9992 * target-delegates.c: Rebuild.
9993 * target.c (current_xfer_partial): Remove.
9994 (update_current_target): Do not INHERIT or de_fault
9995 to_insert_breakpoint, to_remove_breakpoint,
9996 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9997 to_is_async_p, to_async. Do not set to_xfer_partial field.
9998 (default_xfer_partial): Simplify.
9999 (current_xfer_partial): Remove.
10000 (target_wait, target_resume): Simplify.
10001 (find_default_can_async_p, find_default_is_async_p): Update.
10002 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
10003 to_xfer_partial, to_stopped_by_watchpoint,
10004 to_stopped_data_address.
10005 (target_store_registers): Simplify.
10006 (forward_target_remove_breakpoint)
10007 (forward_target_insert_breakpoint): Remove.
10008 (target_remove_breakpoint, target_insert_breakpoint)
10009 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
10010 * target.h (struct target_ops) <to_resume, to_wait,
10011 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
10012 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
10013 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
10014 markup.
10015 (forward_target_remove_breakpoint)
10016 (forward_target_insert_breakpoint): Remove.
10017 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
10018 directly.
10019 (record_btrace_insert_breakpoint): Delegate directly.
10020
1101cb7b
TT
100212014-02-19 Tom Tromey <tromey@redhat.com>
10022
10023 PR build/7701:
10024 * target-delegates.c: New file.
10025 * target.c: Include target-delegates.c.
10026 (init_dummy_target): Call install_dummy_methods.
10027 (complete_target_initialization): Call install_delegators.
10028 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
10029 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
10030 * make-target-delegates: New file.
10031
8b06beed
TT
100322014-02-19 Tom Tromey <tromey@redhat.com>
10033
10034 * record.c (find_record_target): Use find_target_at.
10035 * target.c (find_target_at): New function.
10036 * target.h (find_target_at): Declare.
10037
6a109b6b
TT
100382014-02-19 Tom Tromey <tromey@redhat.com>
10039
10040 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
10041 Add 'ops' argument.
10042 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
10043 'ops' argument.
10044 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
10045 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
10046 'ops' argument.
10047 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
10048 argument.
10049 * linux-nat.c (save_sigtrap): Update.
10050 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
10051 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
10052 (linux_nat_close): Update.
10053 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
10054 argument.
10055 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
10056 argument.
10057 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
10058 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
10059 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
10060 (tmp_to_async): Add 'ops' argument.
10061 (record_full_stopped_by_watchpoint, record_full_async)
10062 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
10063 argument.
10064 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
10065 (m32r_stopped_by_watchpoint): Add 'ops' argument.
10066 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
10067 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
10068 (remote_is_async_p, remote_async): Add 'ops' argument.
10069 (remote_stopped_data_address): Update.
10070 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
10071 * target.c (update_current_target)
10072 (find_default_can_async_p, find_default_is_async_p): Update.
10073 (init_dummy_target): Update.
10074 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
10075 * target.h (struct target_ops) <to_stopped_by_watchpoint,
10076 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
10077 (target_can_async_p, target_is_async_p, target_async)
10078 (target_stopped_by_watchpoint): Update.
10079
e095146b
YQ
100802014-02-19 Yao Qi <yao@codesourcery.com>
10081
10082 PR gdb/16220
10083 * gdbarch.sh: Remove startup_gdbarch.
10084 * gdbarch.c: Regenerated.
10085 * gdbarch.h: Likewise.
10086
bc3c6b36
KB
100872014-02-17 Kevin Buettner <kevinb@redhat.com>
10088
10089 * rl78-tdep.c (rl78_g10_register_name): New function.
10090 (rl78_return_value): Add g10 support.
10091 (rl78_gdbarch_init): Register rl78_g10_register_name for the
10092 g10.
10093
98dc0167 100942014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
10095
10096 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
10097 (SUBDIR_GUILE_SRCS): Ditto.
10098 (scm-gsmob.o): Ditto.
10099
842c05cd
YQ
101002014-02-17 Yao Qi <yao@codesourcery.com>
10101
10102 * gnu-nat.c (ILL_RPC): Declare defined function.
10103
25c0bd04
YQ
101042014-02-17 Yao Qi <yao@codesourcery.com>
10105
10106 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
10107 mach_msg_type_number_t.
10108 (gnu_write_inferior): Likewise.
10109
a9a758e3
YQ
101102014-02-17 Yao Qi <yao@codesourcery.com>
10111
10112 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
10113 in format string.
10114 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
10115 (inf_validate_procs, inf_signal): Likewise.
10116 (S_exception_raise_request): Likewise.
10117 (do_mach_notify_dead_name): Likewise.
10118 (steal_exc_port): Likewise.
10119 (gnu_read_inferior): Change 'copy_count''s type to
10120 mach_msg_type_number_t.
10121 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
10122 format string.
10123
bae8023e
TS
101242014-02-16 Thomas Schwinge <thomas@codesourcery.com>
10125
c82f56d9
TS
10126 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
10127 flag. Adjust all users; in particular...
10128 (gnu_wait): ..., don't decrement its value in here...
10129 (gnu_create_inferior): ..., and instead set the flag in here,
10130 around the startup_inferior call, and call that one with
10131 START_INFERIOR_TRAPS_EXPECTED.
10132
3398af6a
TS
10133 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
10134 (ILL_RPC): ... new macro.
10135 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
10136 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
10137 (do_mach_notify_send_once, S_proc_setmsgport_reply)
10138 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
10139 functions with ILL_RPC macro.
10140 (S_proc_pid2task_reply, S_proc_task2pid_reply)
10141 (S_proc_task2proc_reply, S_proc_proc2task_reply)
10142 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
10143 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
10144 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
10145 (S_proc_getlogin_reply, S_proc_getsid_reply)
10146 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
10147 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
10148 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
10149 (S_proc_getnports_reply, S_proc_is_important_reply)
10150 (S_proc_get_code_reply): New stub functions, generated with
10151 ILL_RPC macro.
10152
d47642c9
TS
10153 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
10154 collected the type check structures.
10155
bae8023e
TS
10156 * reply_mig_hack.awk: Don't expect to see the auto keyword.
10157
8a55ffb0
DE
101582014-02-14 Doug Evans <dje@google.com>
10159
10160 * target.c (target_write_partial): Fix result type.
10161
c2853f3d
JM
101622014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
10163
10164 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
10165 the proper offsets to access fpregset_t.
10166
ac61d2db
SA
101672014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
10168
10169 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
10170 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
10171 * h8300-tdep.c (setmachinelist): Remove global.
10172 * hppa-tdep.c (hppa_sigtramp): Remove global.
10173 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
10174 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
10175 * ravenscar-thread.c (update_target_observer): Remove global.
10176 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
10177
9d2d0b8b
TT
101782014-02-12 Tom Tromey <tromey@redhat.com>
10179
10180 * common/rsp-low.c: Update comments.
10181 * common/rsp-low.h: Update comments.
10182
a7191e8b
TT
101832014-02-12 Tom Tromey <tromey@redhat.com>
10184
10185 * common/rsp-low.c (convert_ascii_to_int): Remove.
10186 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
10187
ff0e980e
TT
101882014-02-12 Tom Tromey <tromey@redhat.com>
10189
10190 * common/rsp-low.h (unhexify): Don't declare.
10191 * common/rsp-low.c (unhexify): Remove.
10192
e9371aff
TT
101932014-02-12 Tom Tromey <tromey@redhat.com>
10194
10195 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10196 * common/rsp-low.c (convert_int_to_ascii): Remove.
10197
971dc0b8
TT
101982014-02-12 Tom Tromey <tromey@redhat.com>
10199
10200 * common/rsp-low.h (hexify): Don't declare.
10201 * common/rsp-low.c (hexify): Remove.
10202
0a822afb
TT
102032014-02-12 Tom Tromey <tromey@redhat.com>
10204
10205 * common/rsp-low.c (hexify): Never take strlen of argument.
10206
9f1b45b0
TT
102072014-02-12 Tom Tromey <tromey@redhat.com>
10208
10209 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10210 * remote.c (extended_remote_run, remote_rcmd)
10211 (remote_download_trace_state_variable, remote_save_trace_data)
10212 (remote_set_trace_notes): Update.
10213 * tracepoint.c (encode_source_string, tfile_write_status)
10214 (tfile_write_uploaded_tsv): Update.
10215
9c3d6531
TT
102162014-02-12 Tom Tromey <tromey@redhat.com>
10217
10218 * tracepoint.c: Include rsp-low.h.
10219 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10220 * remote.c: Include rsp-low.h.
10221 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10222 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10223 (remote_unescape_input): Move to common/rsp-low.c.
10224 * common/rsp-low.h: New file.
10225 * common/rsp-low.c: New file.
10226 * Makefile.in (SFILES): Add common/rsp-low.c.
10227 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10228 (COMMON_OBS): Add rsp-low.o.
10229 (rsp-low.o): New target.
10230
01fd3ea5
TT
102312014-02-12 Tom Tromey <tromey@redhat.com>
10232
10233 * utils.h: Include print-utils.h.
10234 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10235 (int_string, core_addr_to_string, core_addr_to_string_nz)
10236 (hex_string, hex_string_custom): Don't declare.
10237 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10238 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10239 (hex_string_custom, int_string, core_addr_to_string)
10240 (core_addr_to_string_nz, host_address_to_string): Move to
10241 common/print-utils.c.
10242 * common/print-utils.h: New file.
10243 * common/print-utils.c: New file
10244 * Makefile.in (SFILES): Add common/print-utils.c.
10245 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10246 (COMMON_OBS): Add print-utils.o.
10247 (print-utils.o): New target.
10248
9fb50108
TT
102492014-02-12 Tom Tromey <tromey@redhat.com>
10250
10251 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10252
0548b5db
MK
102532014-02-12 Mark Kettenis <kettenis@gnu.org>
10254
10255 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10256
493443a4
MK
102572014-02-12 Mark Kettenis <kettenis@gnu.org>
10258
10259 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10260 if a PT_IO ptrace request returns sucessfully but indicates that 0
10261 bytes were transferred.
10262
706d0883
PA
102632014-02-12 Pedro Alves <palves@redhat.com>
10264 Kevin Buettner <kevinb@redhat.com>
10265
10266 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10267 TYPE_INSTANCE_FLAG_CODE_SPACE.
10268
5caa2f0b
PA
102692014-02-12 Pedro Alves <palves@redhat.com>
10270
10271 * h8300-tdep.c (pseudo_from_raw_register)
10272 (raw_from_pseudo_register): New functions.
10273 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10274 them.
10275
76fd5f74
PA
102762014-02-12 Pedro Alves <palves@redhat.com>
10277
10278 * h8300-tdep.c (h8300_register_sim_regno): New function.
10279 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10280 gdbarch_register_sim_regno hook.
10281
8f008406
SA
102822014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10283
10284 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10285
195abc10
SA
102862014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10287
10288 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10289
93ffa5b9
MK
102902014-02-12 Mark Kettenis <kettenis@gnu.org>
10291
10292 * obsd-tdep.h (obsd_init_abi): New prototype.
10293 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10294 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10295 (obsd_init_abi): New functions.
10296 * i386obsd-tdep.c: Include "obsd-tdep.h".
10297 (i386obsd_init_abi): Call obsd_init_abi.
10298 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10299 (amd64obsd_init_abi): Call obsd_init_abi.
10300 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10301 obsd-tdep.c to gdb_target_obs.
10302
49caec94
JM
103032014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10304
10305 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10306 double float arguments to 16-byte in the argument slots.
10307
e1402065
DE
103082014-02-11 Doug Evans <xdje42@gmail.com>
10309
10310 * configure.ac: Don't crash if pkg-config is not found and guile
10311 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10312 in guile checks.
10313 * configure: Regenerate.
10314
edcc890f
YQ
103152014-02-11 Yao Qi <yao@codesourcery.com>
10316
10317 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10318 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10319 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10320 * gnu-nat.c (gnu_xfer_memory): Likewise.
10321 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10322 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10323 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10324 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10325
9b409511
YQ
103262014-02-11 Yao Qi <yao@codesourcery.com>
10327
10328 * target.h (enum target_xfer_error): Rename to ...
10329 (enum target_xfer_status): ... it. New. All users updated.
10330 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10331 New.
10332 (TARGET_XFER_STATUS_ERROR_P): New macro.
10333 (target_xfer_error_to_string): Remove declaration.
10334 (target_xfer_status_to_string): Declare.
10335 (target_xfer_partial_ftype): Adjust it.
10336 (struct target_ops) <to_xfer_partial>: Return
10337 target_xfer_status. Add argument xfered_len. Update
10338 comments.
10339 * target.c (target_xfer_error_to_string): Rename to ...
10340 (target_xfer_status_to_string): ... it. New. All callers
10341 updated.
10342 (target_read_live_memory): Likewise. Call target_xfer_partial
10343 instead of target_read.
10344 (memory_xfer_live_readonly_partial): Return
10345 target_xfer_status. Add argument xfered_len.
10346 (raw_memory_xfer_partial): Likewise.
10347 (memory_xfer_partial_1): Likewise.
10348 (memory_xfer_partial): Likewise.
10349 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10350 properly. Update debug message.
10351 (default_xfer_partial, current_xfer_partial): Likewise.
10352 (target_write_partial): Likewise.
10353 (target_read_partial): Likewise. All callers updated.
10354 (read_whatever_is_readable): Likewise.
10355 (target_write_with_progress): Likewise.
10356 (target_read_alloc_1): Likewise.
10357
10358 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10359 * auxv.c (procfs_xfer_auxv): Likewise.
10360 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10361 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10362 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10363 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10364 * corefile.c (read_memory): Adjust.
10365 * corelow.c (core_xfer_partial): Likewise.
10366 * ctf.c (ctf_xfer_partial): Likewise.
10367 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10368 updated.
10369 (darwin_xfer_partial): Likewise.
10370 * exec.c (section_table_xfer_memory_partial): Likewise. All
10371 callers updated.
10372 (exec_xfer_partial): Likewise.
10373 * exec.h (section_table_xfer_memory_partial): Update
10374 declaration.
10375 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10376 negative.
10377 (gnu_xfer_partial): Likewise.
10378 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10379 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10380 (ia64_hpux_xfer_solib_got): Likewise.
10381 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10382 type of 'partial_len' to ULONGEST.
10383 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10384 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10385 (linux_nat_xfer_partial): Likewise.
10386 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10387 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10388 * monitor.c (monitor_xfer_memory): Likewise.
10389 (monitor_xfer_partial): Likewise.
10390 * procfs.c (procfs_xfer_partial): Likewise.
10391 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10392 * record-full.c (record_full_xfer_partial): Likewise.
10393 (record_full_core_xfer_partial): Likewise.
10394 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10395 (gdbsim_xfer_partial): Likewise.
10396 * remote.c (remote_write_bytes_aux): Likewise. All callers
10397 updated.
10398 (remote_write_bytes, remote_read_bytes): Likewise. All
10399 callers updated.
10400 (remote_flash_erase): Likewise. All callers updated.
10401 (remote_write_qxfer): Likewise. All callers updated.
10402 (remote_read_qxfer): Likewise. All callers updated.
10403 (remote_xfer_partial): Likewise.
10404 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10405 (rs6000_xfer_shared_libraries): Likewise.
10406 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10407 (sol_thread_xfer_partial): Likewise.
10408 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10409 (sparc_xfer_partial): Likewise.
10410 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10411 updated.
10412 (spu_xfer_partial): Likewise.
10413 * spu-multiarch.c (spu_xfer_partial): Likewise.
10414 * tracepoint.c (tfile_xfer_partial): Likewise.
10415 * windows-nat.c (windows_xfer_memory): Likewise.
10416 (windows_xfer_shared_libraries): Likewise.
10417 (windows_xfer_partial): Likewise.
10418 * valprint.c: Replace 'target_xfer_error' with
10419 'target_xfer_status' in comments.
10420
a8e63083
JB
104212014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10422
10423 Checked in by Joel Brobecker <brobecker@adacore.com>.
10424 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10425
e86b67d3
JB
104262014-02-11 Joel Brobecker <brobecker@adacore.com>
10427
10428 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10429 function parameters.
10430
4b7d1f7f
WN
104312014-02-10 Will Newton <will.newton@linaro.org>
10432
10433 * elfread.c (elf_rel_plt_read): Look for a .got section if
10434 looking up .got.plt fails.
10435 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10436 on address passed to elf_gnu_ifunc_record_cache.
10437 (elf_gnu_ifunc_resolve_addr): Likewise.
10438 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10439
961842b2
JM
104402014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10441
10442 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10443 (X_RETTURN): New macro.
10444 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10445
10446 * sparc64-tdep.c (sparc64_init_abi): Hook
10447 sparc_in_function_epilogue_p.
10448
3f03e7b1
GB
104492014-02-10 Gary Benson <gbenson@redhat.com>
10450
10451 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10452 Rename name_matcher to symbol_matcher.
10453
96f861ef
GB
104542014-02-10 Gary Benson <gbenson@redhat.com>
10455
10456 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10457 Use expand_symtabs_file_matcher_ftype and
10458 expand_symtabs_symbol_matcher_ftype.
10459
ee01b665
JB
104602014-02-10 Joel Brobecker <brobecker@adacore.com>
10461
10462 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10463 (struct ada_symbol_cache): New.
10464 (ada_free_symbol_cache): Forward declare.
10465 (struct ada_pspace_data): New.
10466 (ada_pspace_data_handle): New static global.
10467 (get_ada_pspace_data, ada_pspace_data_cleanup)
10468 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10469 (cache_space, cache): Delete, now folded inside struct
10470 ada_pspace_data.
10471 (ada_get_symbol_cache): New function.
10472 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10473 implementation.
10474 (_initialize_ada_language): Remove initialization of cache_space.
10475 Move call to observer_attach_inferior_exit up, grouping it
10476 with the other observer registrations inside this function.
10477 Rename command to be more general. Add call to
10478 register_program_space_data_with_cleanup.
10479
143adbbf
JB
104802014-02-10 Joel Brobecker <brobecker@adacore.com>
10481
10482 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10483 ada_new_objfile_observer.
10484 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10485 (_initialize_tasks): Update uses of ada_new_objfile_observer
10486 and ada_tasks_normal_stop_observer.
10487
aa4fb036
JB
104882014-02-10 Joel Brobecker <brobecker@adacore.com>
10489
10490 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10491 returned by the 'Length attribute to integer.
10492
9dee8cc6
JB
104932014-02-10 Joel Brobecker <brobecker@adacore.com>
10494
10495 * ada-lang.c (_initialize_ada_language): Initialize
10496 cache_space obstack.
10497
3d9434b5
JB
104982014-02-10 Joel Brobecker <brobecker@adacore.com>
10499
10500 * ada-lang.c (HASH_SIZE): New macro.
10501 (struct cache_entry): New type.
10502 (cache_space, cache): New static globals.
10503 (ada_clear_symbol_cache, find_entry): New functions.
10504 (lookup_cached_symbol, cache_symbol): Implement.
10505 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10506 (_initialize_ada_language): Attach ada_new_objfile_observer
10507 and ada_free_objfile_observer.
10508
f0c5f9b2
JB
105092014-02-10 Joel Brobecker <brobecker@adacore.com>
10510
10511 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10512 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10513 struct block * parameter.
10514 (ada_lookup_symbol_list_worker): Constify local variable "block".
10515 Remove cast which is no longer necessary.
10516
ed3ef339
DE
105172014-02-10 Doug Evans <xdje42@gmail.com>
10518
10519 Add Guile as an extension language.
10520 * NEWS: Mention Guile scripting.
10521 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10522 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10523 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10524 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10525 (CLIBS): Add GUILE_LIBS.
10526 (install-guile): New rule.
10527 (guile.o): New rule.
10528 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10529 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10530 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10531 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10532 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10533 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10534 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10535 * configure.ac: New option --with-guile.
10536 * configure: Regenerate.
10537 * config.in: Regenerate.
10538 * auto-load.c: Remove #include "python/python.h". Add #include
10539 "gdb/section-scripts.h".
10540 (source_section_scripts): Handle Guile scripts.
10541 (_initialize_auto_load): Add name of Guile objfile script to
10542 scripts-directory help text.
10543 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10544 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10545 (struct breakpoint): New member scm_bp_object.
10546 * defs.h (enum command_control_type): New value guile_control.
10547 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10548 "extension.h".
10549 (show_user): Update comment.
10550 (_initialize_cli_cmds): Update help text for "show user". Update help
10551 text for max-user-call-depth.
10552 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10553 "extension.h".
10554 (multi_line_command_p): Add guile_control.
10555 (print_command_lines): Handle guile_control.
10556 (execute_control_command, recurse_read_control_structure): Ditto.
10557 (process_next_line): Recognize "guile" commands.
10558 * disasm.c (gdb_disassemble_info): Make non-static.
10559 * disasm.h: #include "dis-asm.h".
10560 (struct gdbarch): Add forward decl.
10561 (gdb_disassemble_info): Declare.
10562 * extension.c: #include "guile/guile.h".
10563 (extension_languages): Add guile.
10564 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10565 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10566 * gdbtypes.c (get_unsigned_type_max): New function.
10567 (get_signed_type_minmax): New function.
10568 * gdbtypes.h (get_unsigned_type_max): Declare.
10569 (get_signed_type_minmax): Declare.
10570 * guile/README: New file.
10571 * guile/guile-internal.h: New file.
10572 * guile/guile.c: New file.
10573 * guile/guile.h: New file.
10574 * guile/scm-arch.c: New file.
10575 * guile/scm-auto-load.c: New file.
10576 * guile/scm-block.c: New file.
10577 * guile/scm-breakpoint.c: New file.
10578 * guile/scm-disasm.c: New file.
10579 * guile/scm-exception.c: New file.
10580 * guile/scm-frame.c: New file.
10581 * guile/scm-gsmob.c: New file.
10582 * guile/scm-iterator.c: New file.
10583 * guile/scm-lazy-string.c: New file.
10584 * guile/scm-math.c: New file.
10585 * guile/scm-objfile.c: New file.
10586 * guile/scm-ports.c: New file.
10587 * guile/scm-pretty-print.c: New file.
10588 * guile/scm-safe-call.c: New file.
10589 * guile/scm-string.c: New file.
10590 * guile/scm-symbol.c: New file.
10591 * guile/scm-symtab.c: New file.
10592 * guile/scm-type.c: New file.
10593 * guile/scm-utils.c: New file.
10594 * guile/scm-value.c: New file.
10595 * guile/lib/gdb.scm: New file.
10596 * guile/lib/gdb/boot.scm: New file.
10597 * guile/lib/gdb/experimental.scm: New file.
10598 * guile/lib/gdb/init.scm: New file.
10599 * guile/lib/gdb/iterator.scm: New file.
10600 * guile/lib/gdb/printing.scm: New file.
10601 * guile/lib/gdb/types.scm: New file.
10602 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10603 (VPATH): Add $(GUILE_SRCDIR).
10604 (GUILE_DIR): New variable.
10605 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10606 (all): Add stamp-guile dependency.
10607 (stamp-guile): New rule.
10608 (clean-guile, install-guile, uninstall-guile): New rules.
10609 (install-only): Add install-guile dependency.
10610 (uninstall): Add uninstall-guile dependency.
10611 (clean): Add clean-guile dependency.
10612
ac020ec5
DE
106132014-02-09 Doug Evans <xdje42@gmail.com>
10614
10615 Revert this patch (which I approved, mea culpa).
10616
10617 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10618
10619 * Makefile.in (all-lib): Remove.
10620 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10621
2a081c59
JK
106222014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10623
10624 Fix Python stack corruption.
10625 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10626 gdb_py_longest.
10627
0a6bd22d
MK
106282014-02-08 Mark Kettenis <kettenis@gnu.org>
10629
10630 * Makefile.in (all-lib): Remove.
10631 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10632
1a860409
DE
106332014-02-07 Doug Evans <dje@google.com>
10634
10635 * extension-priv.h (extension_language_script_ops): Add comment.
10636 (extension_language_ops): Add comment.
caf5a491 10637 (active_ext_lang_state): Fix typo in comment.
1a860409 10638
d137e6dc
PA
106392014-02-07 Pedro Alves <palves@redhat.com>
10640
0dcb32c3 10641 PR breakpoints/16292
d137e6dc
PA
10642 * infrun.c (handle_signal_stop) <signal arrives while stepping
10643 over a breakpoint>: Switch back to the stepping thread.
10644
ce6d0892
YQ
106452014-02-07 Yao Qi <yao@codesourcery.com>
10646
10647 * target.c (target_xfer_partial): Return zero if LEN is zero.
10648
2ed4b548
YQ
106492014-02-07 Yao Qi <yao@codesourcery.com>
10650
10651 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10652 (ld_so_xfer_auxv): Likewise.
10653 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10654 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10655 * corelow.c (core_xfer_partial): Likewise.
10656 * ctf.c (ctf_xfer_partial): Likewise.
10657 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10658 (darwin_xfer_partial): Likewise.
10659 * exec.c (exec_xfer_partial): Likewise.
10660 * gnu-nat.c (gnu_xfer_partial): Likewise.
10661 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10662 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10663 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10664 * linux-nat.c (linux_xfer_siginfo): Likewise.
10665 (linux_proc_xfer_spu): Likewise.
10666 * procfs.c (procfs_xfer_partial): Likewise.
10667 * record-full.c (record_full_xfer_partial): Likewise.
10668 (record_full_core_xfer_partial): Likewise.
10669 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10670 * remote.c (remote_write_qxfer): Likewise.
10671 (remote_write_qxfer, remote_read_qxfer): Likewise.
10672 (remote_xfer_partial): Likewise.
10673 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10674 (rs6000_xfer_shared_libraries): Likewise.
10675 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10676 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10677 (spu_xfer_partial): Likewise.
10678 * target.c (memory_xfer_partial_1): Likewise.
10679 * tracepoint.c (tfile_xfer_partial): Likewise.
10680 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10681 (windows_xfer_partial): Likewise.
10682
c09f20e4
YQ
106832014-02-07 Yao Qi <yao@codesourcery.com>
10684
10685 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10686 comments.
10687 (core_xfer_shared_libraries_aix): Likewise.
10688 * gdbarch.c, gdbarch.h: Regenerated.
10689 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10690 ULONGEST. Change 'len_avail' type to ULONGEST.
10691 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10692 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10693 declaration.
10694 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10695
8635b3bf
YQ
106962014-02-07 Yao Qi <yao@codesourcery.com>
10697
10698 * corefile.c (memory_error): Get 'exception' from ERR and pass
10699 'exception' to throw_error.
10700
6dddc817
DE
107012014-02-06 Doug Evans <xdje42@gmail.com>
10702
10703 * configure.ac (libpython checking): Remove all but python.o from
10704 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10705 * configure: Regenerate.
10706
10707 * Makefile.in (SFILES): Add extension.c.
10708 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10709 (COMMON_OBS): Add extension.o.
10710 * extension.h: New file.
10711 * extension-priv.h: New file.
10712 * extension.c: New file.
10713
10714 * python/python-internal.h: #include "extension.h".
10715 (gdbpy_auto_load_enabled): Declare.
10716 (gdbpy_apply_val_pretty_printer): Declare.
10717 (gdbpy_apply_frame_filter): Declare.
10718 (gdbpy_preserve_values): Declare.
10719 (gdbpy_breakpoint_cond_says_stop): Declare.
10720 (gdbpy_breakpoint_has_cond): Declare.
10721 (void source_python_script_for_objfile): Delete.
10722 * python/python.c: #include "extension-priv.h".
10723 Delete inclusion of "observer.h".
10724 (extension_language_python): Moved here and renamed from
10725 script_language_python in py-auto-load.c.
10726 Redefined to be of type extension_language_defn.
10727 (python_extension_script_ops): New global.
10728 (python_extension_ops): New global.
10729 (struct python_env): New member previous_active.
10730 (restore_python_env): Call restore_active_ext_lang.
10731 (ensure_python_env): Call set_active_ext_lang.
10732 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10733 New arg extlang.
10734 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10735 New arg extlang.
10736 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10737 New arg extlang.
10738 (gdbpy_eval_from_control_command): Renamed from
10739 eval_python_from_control_command, made static. New arg extlang.
10740 (gdbpy_source_script) Renamed from source_python_script, made static.
10741 New arg extlang.
10742 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10743 result to int. New arg extlang.
10744 (gdbpy_source_objfile_script): Renamed from
10745 source_python_script_for_objfile, made static. New arg extlang.
10746 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10747 static. New args extlang, extlang_printers. Change result type to
10748 "void".
10749 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10750 static. New arg extlang. Rename arg printers to extlang_printers
10751 and change type to ext_lang_type_printers *.
10752 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10753 static. Replace argument arg with extlang, extlang_printers.
10754 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10755 (!HAVE_PYTHON, source_python_script): Delete.
10756 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10757 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10758 (!HAVE_PYTHON, start_type_printers): Delete.
10759 (!HAVE_PYTHON, apply_type_printers): Delete.
10760 (!HAVE_PYTHON, free_type_printers): Delete.
10761 (_initialize_python): Delete call to observer_attach_before_prompt.
10762 (finalize_python): Set/restore active extension language.
10763 (gdbpy_finish_initialization) Renamed from
10764 finish_python_initialization, made static. New arg extlang.
10765 (gdbpy_initialized): New function.
10766 * python/python.h: #include "extension.h". Delete #include
10767 "value.h", "mi/mi-cmds.h".
10768 (extension_language_python): Declare.
10769 (GDBPY_AUTO_FILE_NAME): Delete.
10770 (enum py_bt_status): Moved to extension.h and renamed to
10771 ext_lang_bt_status.
10772 (enum frame_filter_flags): Moved to extension.h.
10773 (enum py_frame_args): Moved to extension.h and renamed to
10774 ext_lang_frame_args.
10775 (finish_python_initialization): Delete.
10776 (eval_python_from_control_command): Delete.
10777 (source_python_script): Delete.
10778 (apply_val_pretty_printer): Delete.
10779 (apply_frame_filter): Delete.
10780 (preserve_python_values): Delete.
10781 (gdbpy_script_language_defn): Delete.
10782 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10783 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10784
10785 * auto-load.c: #include "extension.h".
10786 (GDB_AUTO_FILE_NAME): Delete.
10787 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10788 (script_language_gdb): Delete, moved to extension.c and renamed to
10789 extension_language_gdb.
10790 (source_gdb_script_for_objfile): Delete.
10791 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10792 (loaded_script): Change type of language member to
10793 struct extension_language_defn *.
10794 (init_loaded_scripts_info): Initialize
10795 unsupported_script_warning_printed.
10796 (maybe_add_script): Make static. Change type of language arg to
10797 struct extension_language_defn *.
10798 (clear_section_scripts): Reset unsupported_script_warning_printed.
10799 (auto_load_objfile_script_1): Rewrite to use extension language API.
10800 (auto_load_objfile_script): Make public. Remove support-compiled-in
10801 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10802 (source_section_scripts): Rewrite to use extension language API.
10803 (load_auto_scripts_for_objfile): Rewrite to use
10804 auto_load_scripts_for_objfile.
10805 (collect_matching_scripts_data): Change type of language member to
10806 struct extension_language_defn *.
10807 (auto_load_info_scripts): Change type of language arg to
10808 struct extension_language_defn *.
10809 (unsupported_script_warning_print): New function.
10810 (script_not_found_warning_print): Make static.
10811 (_initialize_auto_load): Rewrite construction of scripts-directory
10812 help.
10813 * auto-load.h (struct objfile): Add forward decl.
10814 (struct script_language): Delete.
10815 (struct auto_load_pspace_info): Add forward decl.
10816 (struct extension_language_defn): Add forward decl.
10817 (maybe_add_script): Delete.
10818 (auto_load_objfile_script): Declare.
10819 (script_not_found_warning_print): Delete.
10820 (auto_load_info_scripts): Update prototype.
10821 (auto_load_gdb_scripts_enabled): Declare.
10822 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10823 auto_load_python_scripts_enabled and made public.
10824 (script_language_python): Delete, moved to python.c.
10825 (gdbpy_script_language_defn): Delete.
10826 (info_auto_load_python_scripts): Update to use
10827 extension_language_python.
10828
10829 * breakpoint.c (condition_command): Replace call to
10830 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10831 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10832 with call to breakpoint_ext_lang_cond_says_stop.
10833 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10834 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10835 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10836 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10837 New arg slang.
10838 (local_setattro): Print name of extension language with existing
10839 stop condition.
10840
10841 * valprint.c (val_print, value_print): Update to call
10842 apply_ext_lang_val_pretty_printer.
10843 * cp-valprint.c (cp_print_value): Update call to
10844 apply_ext_lang_val_pretty_printer.
10845 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10846 (gdbpy_apply_val_pretty_printer): Renamed from
10847 apply_val_pretty_printer. New arg extlang.
10848 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10849
10850 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10851 extension language API.
10852 * cli/cli-script.c (execute_control_command): Update to call
10853 eval_ext_lang_from_control_command.
10854
10855 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10856 enum ext_lang_bt_status values. Update call to
10857 apply_ext_lang_frame_filter.
10858 (mi_cmd_stack_list_locals): Ditto.
10859 (mi_cmd_stack_list_args): Ditto.
10860 (mi_cmd_stack_list_variables): Ditto.
10861 * mi/mi-main.c: Delete #include "python/python-internal.h".
10862 Add #include "extension.h".
10863 (mi_cmd_list_features): Replace reference to python internal variable
10864 gdb_python_initialized with call to ext_lang_initialized_p.
10865
10866 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10867 Update to use enum ext_lang_frame_args. Update to call
10868 apply_ext_lang_frame_filter.
10869 * python/py-framefilter.c (extract_sym): Update to use enum
10870 ext_lang_bt_status.
10871 (extract_value, py_print_type, py_print_value): Ditto.
10872 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10873 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10874 (py_print_frame): Ditto.
10875 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10876 New arg extlang. Update to use enum ext_lang_bt_status.
10877
10878 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10879 finish_python_initialization. Replace with call to
10880 finish_ext_lang_initialization.
10881
10882 * typeprint.c (do_free_global_table): Update to call
10883 free_ext_lang_type_printers.
10884 (create_global_typedef_table): Update to call
10885 start_ext_lang_type_printers.
10886 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10887 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10888 (type_print_options): Change type of global_printers from "void *"
10889 to "struct ext_lang_type_printers *".
10890
10891 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10892 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10893 (gdbpy_preserve_values): Renamed from preserve_python_values.
10894 New arg extlang.
10895 (!HAVE_PYTHON, preserve_python_values): Delete.
10896
10897 * utils.c (quit_flag): Delete, moved to extension.c.
10898 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10899 extension.c.
10900
10901 * eval.c: Delete #include "python/python.h".
10902 * main.c: Delete #include "python/python.h".
10903
10904 * defs.h: Update comment.
10905
6af79985
JB
109062014-02-06 Joel Brobecker <brobecker@adacore.com>
10907
10908 GDB 7.7 released.
10909
12c5175d
MK
109102014-02-05 Mark Kettenis <kettenis@gnu.org>
10911
10912 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10913 defined.
10914
8dc5b319
YQ
109152014-02-05 Yao Qi <yao@codesourcery.com>
10916
10917 * remote.c (remote_pass_signals): Remove local 'buf' and use
10918 rs->buf.
10919 (remote_program_signals): Likewise.
10920
de7b2893
YQ
109212014-02-05 Yao Qi <yao@codesourcery.com>
10922
10923 * ctf.c: Include "inferior.h" and "gdbthread.h".
10924 (CTF_PID): A new macro.
10925 (ctf_open): Call inferior_appeared and add_thread_silent.
10926 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10927 (ctf_thread_alive): New function.
10928 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10929
66d032ac
YQ
109302014-02-05 Yao Qi <yao@codesourcery.com>
10931
10932 Revert this patch:
10933
10934 2013-05-24 Yao Qi <yao@codesourcery.com>
10935
10936 * tracepoint.c (TFILE_PID): Remove.
10937 (tfile_open): Don't add thread and inferior.
10938 (tfile_close): Don't set 'inferior_ptid'. Don't call
10939 exit_inferior_silent.
10940 (tfile_thread_alive): Remove.
10941 (init_tfile_ops): Don't set field 'to_thread_alive' of
10942 tfile_ops.
10943
f4ccffad
CE
109442014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10945
10946 * remote.c (remote_start_remote): Call remote_check_symbols even
10947 if only symbol-file (not file) has been given.
10948
591a12a1
UW
109492014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10950
10951 * gdbarch.sh (skip_entrypoint): New callback.
10952 * gdbarch.c, gdbarch.h: Regenerate.
10953 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10954 * infrun.c (fill_in_stop_func): Likewise.
10955 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10956 (ppc_elfv2_elf_make_msymbol_special): New function.
10957 (ppc_elfv2_skip_entrypoint): Likewise.
10958 (ppc_linux_init_abi): Install them for ELFv2.
10959
cc0e89c5
UW
109602014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10961
10962 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10963 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10964 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10965 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10966 structures returned in GPRs.
10967
52f548e4
UW
109682014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10969
10970 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10971 offset to the stack parameter list for the ELFv2 ABI.
10972
d4094b6a
UW
109732014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10974
10975 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10976 set_gdbarch_convert_from_func_ptr_addr and
10977 set_gdbarch_elf_make_msymbol_special for ELFv1.
10978 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10979 function descriptors on ELFv1.
10980 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10981 set up r12 at function entry.
10982
cd453cd0
UW
109832014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10984
10985 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10986 (struct gdbarch_tdep): New member elf_abi.
10987
10988 * rs6000-tdep.c: Include "elf/ppc64.h".
10989 (rs6000_gdbarch_init): Detect ELF ABI version.
10990
0ff3e01f
UW
109912014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10992
10993 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10994 within a register pair holding a DFP 128-bit value on little-endian.
10995 (ppc64_sysv_abi_return_value_base): Likewise.
10996 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10997 (dfp_pseudo_register_write): Likewise.
10998
5b757e5d
UW
109992014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11000
11001 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
11002 offset on little-endian when passing _Decimal32.
11003 (ppc64_sysv_abi_return_value_base): Likewise for return values.
11004
084ee545
UW
110052014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11006
11007 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
11008 of the overlapped FP register within the VSX register on little-
11009 endian platforms.
11010 (efpr_pseudo_register_write): Likewise.
11011
d63167af
UW
110122014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11013
11014 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
11015 offset on little-endian when passing small structures.
11016
e765b44c
UW
110172014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11018
11019 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
11020 (struct ppc64_sysv_argpos): New data structure.
11021 (ppc64_sysv_abi_push_float): Remove.
11022 (ppc64_sysv_abi_push_val): New function.
11023 (ppc64_sysv_abi_push_integer): Likewise.
11024 (ppc64_sysv_abi_push_freg): Likewise.
11025 (ppc64_sysv_abi_push_vreg): Likewise.
11026 (ppc64_sysv_abi_push_param): Likewise.
11027 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
11028 (ppc64_sysv_abi_return_value_base): New function.
11029 (ppc64_sysv_abi_return_value): Refactor to use it.
11030
36c24d95
UW
110312014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
11032
11033 * NEWS: Document new target powerpc64le-*-linux*.
11034
26fd9228
MK
110352014-02-04 Mark Kettenis <kettenis@gnu.org>
11036
11037 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
11038 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
11039 core dumps.
11040 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
11041 register set used in ELF core dumps. Add floating-point register set.
11042
c5bb7362
KB
110432014-02-03 Kevin Buettner <kevinb@redhat.com>
11044
74228e77 11045 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
11046 dwarf2_to_gdb[] table using symbolic constants. Adjust
11047 penultimate entry from number representing the PC register
11048 to symbolic constant representing the MDR register. Add
11049 constant for the PC register to the end of the table.
11050
af09351e
MK
110512014-02-03 Mark Kettenis <kettenis@gnu.org>
11052
11053 * bsd-kvm.c: Include <sys/param.h>
11054
8507e05d
MK
110552014-02-03 Mark Kettenis <kettenis@gnu.org>
11056
11057 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
11058
ae56bfb8
JB
110592014-01-31 Joel Brobecker <brobecker@adacore.com>
11060
11061 * ada-lang.h (clear_ada_sym_cache): Delete.
11062
718ee4dc
UW
110632014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
11064
11065 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
11066
401e27fd
JM
110672014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
11068
11069 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
11070 the sigreturn register save area only if the syscall is
11071 sigreturn.
11072
a7c88acd
JB
110732014-01-29 Joel Brobecker <brobecker@adacore.com>
11074
11075 * valops.c (value_slice): Minor reformatting.
11076
fa0079ea
UW
110772014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
11078
11079 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
11080
c6044dd1
JB
110812014-01-28 Joel Brobecker <brobecker@adacore.com>
11082
11083 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
11084 New static globals.
11085 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
11086 (ada_ignore_descriptive_types_p): New static global.
11087 (find_parallel_type_by_descriptive_type): Return immediately
11088 if ada_ignore_descriptive_types_p is set.
11089 (_initialize_ada_language): Register new commands "maintenance
11090 set ada", "maintenance show ada", "maintenance set ada
11091 ignore-descriptive-types" and "maintenance show ada
11092 ignore-descriptive-types".
11093 * NEWS: Add entry for new "maint ada set/show
11094 ignore-descriptive-types" commands.
11095
568e808b
MM
110962014-01-27 Markus Metzger <markus.t.metzger@intel.com>
11097
11098 * record-btrace.c (record_btrace_close): Call btrace_teardown
11099 for all threads.
11100
467d141b
JB
111012014-01-27 Joel Brobecker <brobecker@adacore.com>
11102
11103 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
11104 "ui-out.h".
11105
fb151210
JB
111062014-01-27 Joel Brobecker <brobecker@adacore.com>
11107
11108 * ada-typeprint (type_is_full_subrange_of_target_type):
11109 New function.
11110 (print_range): Add parameter bounds_prefered_p. If not set,
11111 try printing range types using the name of their base type.
11112 (print_range_type): Add parameter bounds_prefered_p.
11113 Use it in call to print_range.
11114 (print_array_type, ada_print_type): Update calls to print_range
11115 and print_range_type.
11116
aba02109
JB
111172014-01-27 Joel Brobecker <brobecker@adacore.com>
11118
11119 * ada-typeprint.c (print_array_type, print_choices, print_range)
11120 (print_range_bound, print_dynamic_range_bound, print_range_type):
11121 Remove declaration.
11122
e62e21fd
JB
111232014-01-27 Joel Brobecker <brobecker@adacore.com>
11124
11125 * ada-typeprint.c (print_range): Add missing empty line
11126 after local declaration.
11127
859cf5d1
JB
111282014-01-27 Joel Brobecker <brobecker@adacore.com>
11129
11130 * ada-valprint.c (print_optional_low_bound): Get index_type's
11131 target type for as long as it is a TYPE_CODE_RANGE.
11132
25790f6f
JB
111332014-01-27 Joel Brobecker <brobecker@adacore.com>
11134
11135 * procfs.c (procfs_make_note_section): Remove assertion and
11136 associated comment.
11137
6b6aa828
YQ
111382014-01-24 Yao Qi <yao@codesourcery.com>
11139
11140 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
11141 * corelow.c (get_core_siginfo): Likewise.
11142
5d6df423
YQ
111432014-01-24 Yao Qi <yao@codesourcery.com>
11144
11145 * remote.c (remote_write_bytes_aux): Change type of 'len' to
11146 ULONGEST. Don't check 'len' is negative.
11147 (remote_write_bytes): Change type of 'len' to ULONGEST.
11148
83b645b8
TT
111492014-01-23 Tom Tromey <tromey@redhat.com>
11150
11151 PR python/16485:
11152 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
11153 Handle exception from frame.block.
11154 (FrameVars.fetch_frame_locals): Likewise.
11155
0740f8d8
TT
111562014-01-23 Tom Tromey <tromey@redhat.com>
11157
11158 PR python/16487:
11159 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
11160 on a NULL pointer. Move "goto error" to correct place.
11161
21909fa1
TT
111622014-01-23 Tom Tromey <tromey@redhat.com>
11163
11164 PR python/16491:
11165 * python/py-framefilter.c (apply_frame_filter): Call
11166 ensure_python_env after computing gdbarch.
11167
17fde6d0
YQ
111682014-01-23 Yao Qi <yao@codesourcery.com>
11169
11170 * target.c (raw_memory_xfer_partial): Change argument type
11171 from void * to gdb_byte *.
11172 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
11173
87ce2a04
DE
111742014-01-22 Doug Evans <dje@google.com>
11175
11176 New gdbserver option --debug-format=timestamp.
11177 * NEWS: Mention it.
11178
237b092b
AA
111792014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
11180
11181 * syscalls/s390x-linux.xml: New file.
11182 * syscalls/s390-linux.xml: New file.
11183 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
11184 (XML_SYSCALL_FILENAME_S390X): Likewise.
11185 (op_svc): New enum value for SVC opcode.
11186 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
11187 (s390_linux_get_syscall_number): New function.
11188 (s390_gdbarch_init): Register '*get_syscall_number' and the
11189 syscall xml file name.
11190 * data-directory/Makefile.in (SYSCALLS_FILES): Add
11191 "s390-linux.xml" and "s390x-linux.xml".
11192 * NEWS: Announce new feature.
11193
54bff650
BS
111942014-01-22 Baruch Siach <baruch@tkos.co.il>
11195
11196 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11197
14e361d7
PA
111982014-01-22 Pedro Alves <palves@redhat.com>
11199
11200 * xtensa-config.c: Include defs.h.
11201
46bbb3ed
JB
112022014-01-22 Joel Brobecker <brobecker@adacore.com>
11203
11204 * common/common-utils.h: Add "ARI:" comment beside __func__
11205 reference.
11206
3a80edfc
JB
112072014-01-22 Joel Brobecker <brobecker@adacore.com>
11208
11209 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11210 documentation a bit.
11211
4869db5e
RM
112122014-01-21 Roland McGrath <mcgrathr@google.com>
11213
11214 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11215 * configure: Regenerate.
11216 * aclocal.m4: Regenerate.
11217 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11218 New substituted variables.
11219 (install-strip): New target.
11220 (INSTALL_SCRIPT): New substituted variable.
11221 (FLAGS_TO_PASS): Add it.
11222 (install-only): Use $(INSTALL_SCRIPT) rather than
11223 $(INSTALL_PROGRAM) for gcore.
11224
9ea4267d
TT
112252014-01-20 Tom Tromey <tromey@redhat.com>
11226
11227 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11228 together.
11229
1f2bdf09
TT
112302014-01-20 Tom Tromey <tromey@redhat.com>
11231
11232 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11233 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11234 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11235 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11236 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11237 (struct cmd_list_element) <flags>: Remove.
11238 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11239 doc_allocated>: New fields.
11240 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11241 bitfields.
11242 * maint.c (maintenance_do_deprecate): Update.
11243 * top.c (execute_command): Update.
11244
e671835b
BS
112452014-01-20 Baruch Siach <baruch@tkos.co.il>
11246
11247 * xtensa-linux-nat.c: Include asm/ptrace.h.
11248
50367cd2
IB
112492014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11250
11251 * Makefile.in (SFILES): Add d-support.c.
11252 (COMMON_OBS): Add d-support.o.
11253 * d-lang.h (d_parse_symbol): Add comment, now defined in
11254 d-support.c.
11255 * d-lang.c (parse_call_convention)
11256 (parse_attributes, parse_function_types)
11257 (parse_function_args, parse_type, parse_identifier)
11258 (call_convention_p, d_parse_symbol): Move functions to ...
11259 * d-support.c: ... New file.
11260
ec9f644a
IB
112612014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11262
11263 * d-lang.h (d_parse_symbol): Add declaration.
11264 * d-lang.c (extract_identifiers)
11265 (extract_type_info): Remove functions.
11266 (parse_call_convention, parse_attributes)
11267 (parse_function_types, parse_function_args)
11268 (parse_type, parse_identifier, call_convention_p)
11269 (d_parse_symbol): New functions.
11270 (d_demangle): Use d_parse_symbol to demangle D symbols.
11271
94b1b47e
IB
112722014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11273
11274 * d-lang.h (struct builtin_d_type): New data type.
11275 (builtin_d_type): Add declaration.
11276 * d-lang.c (d_language_arch_info, build_d_types)
11277 (builtin_d_type): New functions.
11278 (enum d_primitive_types): New data type.
11279 (d_language_defn): Change c_language_arch_info to
11280 d_language_arch_info.
11281 (d_type_data): New static variable.
11282 (_initialize_d_language): Initialize d_type_data.
11283
63778547
IB
112842014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11285
11286 * d-lang.h (d_main_name): Add declaration.
11287 * d-lang.c (d_main_name): New function.
11288 * symtab.c (find_main_name): Add call to d_main_name.
11289
3271ba66
IB
112902014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11291
11292 * d-lang.c (d_language_defn): Change macro_expansion_c to
11293 macro_expansion_no.
11294
d36b3012
IB
112952014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11296
11297 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11298
c90a6fb7
SDJ
112992014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11300
11301 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11302 gdb_exception" declaration.
11303 * remote.c (getpkt_or_notif_sane): Likewise.
11304
749234e5
DE
113052014-01-17 Doug Evans <dje@google.com>
11306
11307 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11308 function, contents of dirnames_to_char_ptr_vec_append moved here.
11309 (delim_string_to_char_ptr_vec): New function.
11310 (dirnames_to_char_ptr_vec_append): Rewrite.
11311 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11312
df049a58
DE
113132014-01-17 Doug Evans <dje@google.com>
11314
11315 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11316 and moved here ...
11317 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11318 #include "common-utils.h".
11319 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11320 * common/vec.h (VEC_ASSERT_PASS): Update.
11321 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11322 (MACH_CHECK_ERROR): Update.
11323
69f97648
SM
113242014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11325
11326 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11327 comments.
11328 * gdbarch.h: Regenerate.
11329
98b1cfdc
TT
113302014-01-16 Tom Tromey <tromey@redhat.com>
11331
11332 * value.c (struct value) <regnum>: Move earlier.
11333
77a19445
TT
113342014-01-16 Tom Tromey <tromey@redhat.com>
11335
11336 * remote.c (extended_remote_create_inferior): Rename from
11337 extended_remote_create_inferior_1. Add "ops" argument. Remove
11338 old implementation.
11339
62261490
PA
113402014-01-16 Pedro Alves <palves@redhat.com>
11341
11342 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11343 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11344 the backchain.
11345
4d65956b
DE
113462014-01-16 Doug Evans <dje@google.com>
11347
11348 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11349
52834460
MM
113502014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11351
11352 * btrace.h (btrace_thread_flag): New.
11353 (struct btrace_thread_info) <flags>: New.
11354 * record-btrace.c (record_btrace_resume_thread)
11355 (record_btrace_find_thread_to_move, btrace_step_no_history)
11356 (btrace_step_stopped, record_btrace_start_replaying)
11357 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11358 (record_btrace_find_resume_thread): New.
11359 (record_btrace_resume, record_btrace_wait): Extend.
11360 (record_btrace_can_execute_reverse): New.
11361 (record_btrace_open): Fail in non-stop mode.
11362 (record_btrace_set_replay): Split into this, ...
11363 (record_btrace_stop_replaying): ... this, ...
11364 (record_btrace_clear_histories): ... and this.
11365 (init_record_btrace_ops): Init to_can_execute_reverse.
11366 * NEWS: Announce it.
11367
118e6252
MM
113682014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11369
11370 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11371 (forward_target_decr_pc_after_break)
11372 (target_decr_pc_after_break): New.
11373 * target.c (forward_target_decr_pc_after_break)
11374 (target_decr_pc_after_break): New.
11375 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11376 instead of gdbarch_decr_pc_after_break.
11377 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11378 instead of gdbarch_decr_pc_after_break.
11379 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11380 instead of gdbarch_decr_pc_after_break.
11381 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11382 instead of gdbarch_decr_pc_after_break.
11383 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11384 instead of gdbarch_decr_pc_after_break.
11385 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11386 instead of gdbarch_decr_pc_after_break.
11387
6e07b1d2
MM
113882014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11389
11390 * btrace.c: Include regcache.h.
11391 (btrace_add_pc): New.
11392 (btrace_enable): Call btrace_add_pc.
11393 (btrace_is_empty): New.
11394 * btrace.h (btrace_is_empty): New.
11395 * record-btrace.c (require_btrace, record_btrace_info): Call
11396 btrace_is_empty.
11397
969c39fb
MM
113982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11399
11400 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11401 Support delta reads.
11402 (linux_disable_btrace): Change return type.
11403 * common/linux-btrace.h (linux_read_btrace): Change parameters
11404 and return type to allow error reporting. Update users.
11405 (linux_disable_btrace): Change return type. Update users.
11406 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11407 New.
11408 (btrace_error): New.
11409 (btrace_block) <begin>: Comment on BEGIN == 0.
11410 * btrace.c (btrace_compute_ftrace): Start from the end of
11411 the current trace.
11412 (btrace_stitch_trace, btrace_clear_history): New.
11413 (btrace_fetch): Read delta trace, return if replaying.
11414 (btrace_clear): Move clear history code to btrace_clear_history.
11415 (parse_xml_btrace): Throw an error if parsing failed.
11416 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11417 and return type to allow error reporting.
11418 (target_read_btrace): Change parameters and return type to allow
11419 error reporting.
11420 * target.c (target_read_btrace): Update.
11421 * remote.c (remote_read_btrace): Support delta reads. Pass
11422 errors on.
11423 * NEWS: Announce it.
11424
0b722aec
MM
114252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11426
11427 * record.h (record_btrace_frame_unwind)
11428 (record_btrace_tailcall_frame_unwind): New declarations.
11429 * dwarf2-frame: Include record.h
11430 (dwarf2_frame_cfa): Throw an error for btrace frames.
11431 * record-btrace.c: Include hashtab.h.
11432 (btrace_get_bfun_name): New.
11433 (btrace_call_history): Call btrace_get_bfun_name.
11434 (struct btrace_frame_cache): New.
11435 (bfcache): New.
11436 (bfcache_hash, bfcache_eq, bfcache_new): New.
11437 (btrace_get_frame_function): New.
11438 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11439 (record_btrace_frame_this_id): Compute own id.
11440 (record_btrace_frame_prev_register): Provide PC, throw_error
11441 for all other registers.
11442 (record_btrace_frame_sniffer): Detect btrace frames.
11443 (record_btrace_tailcall_frame_sniffer): New.
11444 (record_btrace_frame_dealloc_cache): New.
11445 (record_btrace_frame_unwind): Add new functions.
11446 (record_btrace_tailcall_frame_unwind): New.
11447 (_initialize_record_btrace): Allocate cache.
11448 * btrace.c (btrace_clear): Call reinit_frame_cache.
11449 * NEWS: Announce it.
11450
066ce621
MM
114512014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11452
11453 * record-btrace.c (record_btrace_set_replay)
11454 (record_btrace_goto_begin, record_btrace_goto_end)
11455 (record_btrace_goto): New.
11456 (init_record_btrace_ops): Initialize them.
11457 * NEWS: Announce it.
11458
e2887aa3
MM
114592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11460
11461 * record-btrace.c (record_btrace_find_new_threads)
11462 (record_btrace_thread_alive): New.
11463 (init_record_btrace_ops): Initialize to_find_new_threads and
11464 to_thread_alive.
11465
b2f4cfde
MM
114662014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11467
11468 * record-btrace.c (record_btrace_resume): New.
11469 (record_btrace_wait): New.
11470 (init_record_btrace_ops): Initialize to_wait and to_resume.
11471
633785ff
MM
114722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11473
11474 * record-btrace.c (record_btrace_xfer_partial)
11475 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11476 (record_btrace_allow_memory_access): New.
11477 (init_record_btrace_ops): Initialize new methods.
11478 * target.c (raw_memory_xfer_partial): Bail out if target reports
11479 that this memory is not available.
11480
3db08215
MM
114812014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11482
11483 * target.h (target_ops) <to_insert_breakpoint>
11484 <to_remove_breakpoint>: Add target_ops parameter.
11485 (forward_target_insert_breakpoint): New.
11486 (forward_target_remove_breakpoint): New.
11487 (memory_remove_breakpoint, memory_insert_breakpoint):
11488 Add target_ops parameter.
11489 * target.c (target_insert_breakpoint): Split into this and ...
11490 (forward_target_insert_breakpoint): ... this.
11491 (target_remove_breakpoint): Split into this and ...
11492 (forward_target_remove_breakpoint): ... this.
11493 (debug_to_insert_breakpoint): Add target_ops parameter.
11494 Call forward_target_insert_breakpoint.
11495 (debug_to_remove_breakpoint): Add target_ops parameter.
11496 Call forward_target_remove_breakpoint.
11497 (update_current_target): Do not inherit or default to_insert_breakpoint
11498 and to_remove_breakpoint.
11499 * corelow.c (ignore): Add target_ops parameter.
11500 * exec.c (ignore): Add target_ops parameter.
11501 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11502 Add target_ops parameter.
11503 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11504 Add target_ops parameter.
11505 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11506 Add target_ops parameter.
11507 * record-full.c (record_full_beneath_to_insert_breakpoint)
11508 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11509 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11510 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11511 (record_full_core_remove_breakpoint): Add target_ops parameter.
11512 Update users.
11513 (record_full_beneath_to_insert_breakpoint_ops)
11514 (record_full_beneath_to_remove_breakpoint_ops)
11515 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11516 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11517 tmp_to_remove_breakpoint_ops,
11518 record_full_beneath_to_insert_breakpoint_ops, and
11519 record_full_beneath_to_remove_breakpoint_ops.
11520 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11521 (m32r_remove_breakpoint): Add target_ops parameter.
11522 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11523 Add target_ops parameter.
11524 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11525 Add target_ops parameter.
11526
cecac1ab
MM
115272014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11528 Markus Metzger <markus.t.metzger@intel.com>
11529
11530 * record-btrace.c: Include frame-unwind.h.
11531 (record_btrace_frame_unwind_stop_reason)
11532 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11533 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11534 New.
11535 (init_record_btrace_ops): Install it.
11536
824344ca
MM
115372014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11538
11539 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11540 get_prev_frame_1.
11541
32261e52
MM
115422014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11543
11544 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11545 earlier.
11546
ea001bdc
MM
115472014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11548
11549 * frame-unwind.c: Include target.h.
11550 (frame_unwind_try_unwinder): New function with code from ...
11551 (frame_unwind_find_by_frame): ... here. New variable
11552 unwinder_from_target, call also target_get_unwinder)
11553 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11554 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11555 * target.h (struct target_ops): New fields to_get_unwinder and
11556 to_get_tailcall_unwinder.
11557 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11558
1f3ef581
MM
115592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11560
11561 * record-btrace.c (record_btrace_fetch_registers)
11562 (record_btrace_store_registers)
11563 (record_btrace_to_prepare_to_store): New.
11564 (init_record_btrace_ops): Add the above.
11565
f32dbf8c
MM
115662014-01-16 Tom Tromey <tromey@redhat.com>
11567
11568 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11569 * target.h (struct target_ops) <to_prepare_to_store>: Add
11570 argument.
11571 (target_prepare_to_store): Add argument.
11572 * target.c (debug_to_prepare_to_store): Add argument.
11573 (update_current_target): Update.
11574 * remote.c (remote_prepare_to_store): Add 'self' argument.
11575 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11576 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11577 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11578 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11579 argument.
11580 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11581 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11582 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11583 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11584 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11585
07bbe694
MM
115862014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11587
11588 * btrace.h (replay) <replay>: New.
11589 (btrace_is_replaying): New.
11590 * btrace.c (btrace_clear): Free replay iterator.
11591 (btrace_is_replaying): New.
11592 * record-btrace.c (record_btrace_is_replaying): New.
11593 (record_btrace_info): Print insn number if replaying.
11594 (record_btrace_insn_history): Start at replay position.
11595 (record_btrace_call_history): Start at replay position.
11596 (init_record_btrace_ops): Init to_record_is_replaying.
11597
0688d04e
MM
115982014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11599
11600 * record-btrace.c (record_btrace_insn_history_range): Include
11601 end.
11602 (record_btrace_insn_history_from): Adjust range.
11603 (record_btrace_call_history_range): Include
11604 end.
11605 (record_btrace_call_history_from): Adjust range.
11606 * NEWS: Announce changes.
11607
8710b709
MM
116082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11609
11610 * record.h (enum record_print_flag)
11611 <record_print_indent_calls>: New.
11612 * record.c (get_call_history_modifiers): Recognize /c modifier.
11613 (_initialize_record): Document /c modifier.
11614 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11615 Reorder fields. Optionally indent the function name. Update
11616 all users.
11617 * NEWS: Announce changes.
11618
d0fa7535
MM
116192014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11620
11621 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11622
5de9129b
MM
116232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11624
11625 * btrace.c (ftrace_new_function): Start counting at one.
11626 * record-btrace.c (record_btrace_info): Adjust number of calls
11627 and insns.
11628 * NEWS: Announce it.
11629
7acbe133
MM
116302014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11631
11632 * record-btrace.c (btrace_call_history_insn_range): Print
11633 insn range as [begin, end].
11634
23a7fe75
MM
116352014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11636
11637 * btrace.h (struct btrace_func_link): New.
11638 (enum btrace_function_flag): New.
11639 (struct btrace_inst): Rename to ...
11640 (struct btrace_insn): ...this. Update all users.
11641 (struct btrace_func) <ibegin, iend>: Remove.
11642 (struct btrace_func_link): New.
11643 (struct btrace_func): Rename to ...
11644 (struct btrace_function): ...this. Update all users.
11645 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11646 (number, level, flags>: New.
11647 (struct btrace_insn_iterator): Rename to ...
11648 (struct btrace_insn_history): ...this.
11649 Update all users.
11650 (struct btrace_insn_iterator, btrace_call_iterator): New.
11651 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11652 (struct btrace_target_info) <begin, end, level>
11653 <insn_history, call_history>: New.
11654 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11655 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11656 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11657 (btrace_call_number, btrace_call_begin, btrace_call_end)
11658 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11659 (btrace_find_function_by_number, btrace_set_insn_history)
11660 (btrace_set_call_history): New.
11661 * btrace.c (btrace_init_insn_iterator)
11662 (btrace_init_func_iterator, compute_itrace): Remove.
11663 (ftrace_print_function_name, ftrace_print_filename)
11664 (ftrace_skip_file): Change
11665 parameter to const.
11666 (ftrace_init_func): Remove.
11667 (ftrace_debug): Use new btrace_function fields.
11668 (ftrace_function_switched): Also consider gaining and
11669 losing symbol information).
11670 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11671 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11672 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11673 New.
11674 (ftrace_new_function): Move. Remove debug print.
11675 (ftrace_update_lines, ftrace_update_insns): New.
11676 (ftrace_update_function): Check for call, ret, and jump.
11677 (compute_ftrace): Renamed to ...
11678 (btrace_compute_ftrace): ...this. Rewritten to compute call
11679 stack.
11680 (btrace_fetch, btrace_clear): Updated.
11681 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11682 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11683 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11684 (btrace_call_number, btrace_call_begin, btrace_call_end)
11685 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11686 (btrace_find_function_by_number, btrace_set_insn_history)
11687 (btrace_set_call_history): New.
11688 * record-btrace.c (require_btrace): Use new btrace thread
11689 info fields.
11690 (record_btrace_info, btrace_insn_history)
11691 (record_btrace_insn_history, record_btrace_insn_history_range):
11692 Use new btrace thread info fields and new iterator.
11693 (btrace_func_history_src_line): Rename to ...
11694 (btrace_call_history_src_line): ...this. Use new btrace
11695 thread info fields.
11696 (btrace_func_history): Rename to ...
11697 (btrace_call_history): ...this. Use new btrace thread info
11698 fields and new iterator.
11699 (record_btrace_call_history, record_btrace_call_history_range):
11700 Use new btrace thread info fields and new iterator.
11701
8372a7cb
MM
117022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11703
11704 * frame.h (frame_id_build_unavailable_stack_special): New.
11705 * frame.c (frame_id_build_unavailable_stack_special): New.
11706
c2170eef
MM
117072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11708
11709 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11710 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11711 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11712 to gdbarch.
11713 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11714 (i386_insn_is_jump, i386_jmp_p): New.
11715 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11716 insn_is_jump to gdbarch.
11717 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11718 * gdbarch.h: Regenerated.
11719 * gdbarch.c: Regenerated.
11720 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11721 (default_insn_is_jump): New.
11722 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11723 (default_insn_is_jump): New.
11724
864089d2
MM
117252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11726
11727 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11728 Change to ...
11729 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11730 (btrace_read_type) <btrace_read_new>: Change to ...
11731 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11732
ed9edfb5
MM
117332014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11734
11735 * common/linux-btrace.c (linux_read_btrace): Free trace from
11736 previous iteration.
11737
fbcbc3fd
DE
117382014-01-15 Doug Evans <dje@google.com>
11739
11740 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11741 uint32_t.
11742
3d548a53
TT
117432014-01-15 Tom Tromey <tromey@redhat.com>
11744
11745 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11746 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11747 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11748 (set_objfile_main_name): New function.
11749 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11750 language_of_main>: New fields.
11751 (set_objfile_main_name): Declare.
11752 * symtab.c (find_main_name): Loop over objfiles to find the main
11753 name and language.
11754 (set_main_name): Now static.
11755 (get_main_info): Add comment.
11756 * symtab.h (set_main_name): Don't declare.
11757
32ac0d11
TT
117582014-01-15 Tom Tromey <tromey@redhat.com>
11759
11760 * symtab.c (main_progspace_key): New global.
11761 (struct main_info): New.
11762 (name_of_main, language_of_main): Remove.
11763 (get_main_info, main_info_cleanup): New function.
11764 (set_main_name, main_name, main_language): Use get_main_info.
11765 (_initialize_symtab): Initialize main_progspace_key.
11766
9e6c82ad
TT
117672014-01-15 Tom Tromey <tromey@redhat.com>
11768
11769 * dbxread.c (process_one_symbol): Update.
11770 * dwarf2read.c (read_partial_die): Update.
11771 * symfile.c (set_initial_language): Call main_language.
11772 * symtab.c (language_of_main): Now static.
11773 (set_main_name): Add 'lang' parameter.
11774 (find_main_name): Update.
11775 (main_language): New function.
11776 (symtab_observer_executable_changed): Update.
11777 * symtab.h (set_main_name): Update.
11778 (language_of_main): Remove.
11779 (main_language): Declare.
11780
6ef55de7
TT
117812014-01-15 Tom Tromey <tromey@redhat.com>
11782
11783 * symfile.c (init_entry_point_info): Use new "initialized" field.
11784 Update.
11785 * objfiles.h (struct entry_point) <initialized>: New field.
11786 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11787 (struct objfile) <ei>: ...here. Remove.
11788 * objfiles.c (entry_point_address_query): Update.
11789
53eddfa6
TT
117902014-01-15 Tom Tromey <tromey@redhat.com>
11791
11792 * objfiles.c (entry_point_address_query): Relocate entry point
11793 address.
11794 (objfile_relocate1): Do not relocate entry point address.
11795 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11796 <the_bfd_section_index>: New field.
11797 * symfile.c (init_entry_point_info): Find the entry point's
11798 section.
11799
d56e56aa
TT
118002014-01-15 Tom Tromey <tromey@redhat.com>
11801
11802 * solib-frv.c (enable_break): Use entry_point_address_query.
11803
33a97bbe
OJ
118042014-01-15 Omair Javaid <omair.javaid@linaro.org>
11805
11806 * NEWS: Add note on improved process record-replay on
11807 arm*-linux* targets.
11808
c6ec2b30
OJ
118092014-01-15 Omair Javaid <omair.javaid@linaro.org>
11810
11811 * arm-tdep.c (enum arm_record_result): New enum.
11812 (arm_record_unsupported_insn): New function.
11813 (arm_record_coproc_data_proc): Removed.
11814 (thumb2_record_ld_st_multiple): New function.
11815 (thumb2_record_ld_st_dual_ex_tbb): New function.
11816 (thumb2_record_data_proc_sreg_mimm): New function.
11817 (thumb2_record_ps_dest_generic): New function.
11818 (thumb2_record_branch_misc_cntrl): New function.
11819 (thumb2_record_str_single_data): New function.
11820 (thumb2_record_ld_mem_hints): New function.
11821 (thumb2_record_ld_word): New function.
11822 (thumb2_record_lmul_lmla_div): New function.
11823 (thumb2_record_decode_insn_handler): New function.
11824 (decode_insn): Add thumb32 instruction handlers.
11825
97dfe206
OJ
118262014-01-15 Omair Javaid <omair.javaid@linaro.org>
11827
11828 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11829 (struct arm_linux_record_tdep): Declare.
11830 (arm_canonicalize_syscall): New function.
11831 (arm_all_but_pc_registers_record): New function.
11832 (arm_linux_syscall_record): New function.
11833 (arm_linux_init_abi): Add syscall recording constructs.
11834 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11835 decoding. (arm_record_coproc_data_proc): Update arm syscall
11836 decoding.
11837 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11838 <arm_syscall_record>: New field.
11839 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11840 gdb_target_obs.
11841
9904a494
OJ
118422014-01-15 Omair Javaid <omair.javaid@linaro.org>
11843
11844 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11845 register for push instruction recording.
11846
f969241e
OJ
118472014-01-15 Omair Javaid <omair.javaid@linaro.org>
11848
11849 * arm-tdep.c (thumb_record_misc): Update to correct logical
11850 error while recording ldm, ldmia and pop instructions.
11851
bfbbec00
OJ
118522014-01-15 Omair Javaid <omair.javaid@linaro.org>
11853
11854 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11855
e40adcc9
PA
118562014-01-15 Pedro Alves <palves@redhat.com>
11857
11858 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11859 (go32_resume, go32_fetch_registers, store_register)
11860 (go32_store_registers, go32_prepare_to_store)
11861 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11862 (go32_create_inferior, go32_can_run, go32_terminal_init)
11863 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11864 declarations.
11865
b0a16e66
TT
118662014-01-15 Tom Tromey <tromey@redhat.com>
11867
11868 * target.h (async_callback_ftype): New typedef.
11869 (struct target_ops) <to_async>: Use it.
11870
bf7105a4
JB
118712014-01-15 Joel Brobecker <brobecker@adacore.com>
11872
11873 * python/py-value.c (get_field_type): Remove unnecessary curly
11874 braces for single-statement if block.
11875
a8f35c2e
JB
118762014-01-15 Joel Brobecker <brobecker@adacore.com>
11877
11878 * python/py-type.c (convert_field): Add missing empty line
11879 after declarations.
11880
bb4142cf
DE
118812014-01-14 Doug Evans <dje@google.com>
11882
11883 * symfile.h (expand_symtabs_matching): Renamed from
11884 expand_partial_symbol_names. Update prototype.
11885 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11886 * symfile.c (expand_symtabs_matching): Renamed from
11887 expand_partial_symbol_names. New args file_matcher, kind.
11888 Rename arg fun to symbol_matcher.
11889 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11890 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11891 ada_expand_partial_symbol_name.
11892 (ada_make_symbol_completion_list): Update to call
11893 expand_symtabs_matching.
11894 (ada_add_global_exceptions): Call expand_symtabs_matching.
11895 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11896 call map_symbol_filenames.
11897 * symtab.c (sources_info): Update to call map_symbol_filenames.
11898 (search_symbols): Call expand_symtabs_matching.
11899 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11900 (default_make_symbol_completion_list_break_on): Update to call
11901 expand_symtabs_matching.
11902 (make_source_files_completion_list): Update to call
11903 map_symbol_filenames.
11904
206f2a57
DE
119052014-01-14 Doug Evans <dje@google.com>
11906
11907 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11908 (expand_symtabs_symbol_matcher_ftype): New typedef.
11909 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11910 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11911 * symfile.c (expand_partial_symbol_names): Update to use
11912 expand_symtabs_symbol_matcher_ftype.
11913 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11914 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11915 Arg name_matcher renamed to symbol_matcher.
11916 * psymtab.c (recursively_search_psymtabs): Update to use
11917 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11918 sym_matcher.
11919 (expand_symtabs_matching_via_partial): Update to use
11920 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11921 Arg name_matcher renamed to symbol_matcher.
11922
540c2971
DE
119232014-01-14 Doug Evans <dje@google.com>
11924
11925 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11926 (map_partial_symbol_filenames): Ditto.
11927 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11928 (map_partial_symbol_filenames): Ditto.
11929 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11930 (map_partial_symbol_filenames): Ditto.
11931 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11932 (map_partial_symbol_filenames): Ditto.
11933 * symtab.c: Delete #include "psymtab.h".
11934
8213266a
PA
119352014-01-14 Pedro Alves <palves@redhat.com>
11936 Tom Tromey <tromey@redhat.com>
11937
11938 * infrun.c (use_displaced_stepping): Use find_record_target
11939 instead of RECORD_IS_USED.
11940 (adjust_pc_after_break): Use record_full_is_used instead of
11941 RECORD_IS_USED.
11942 * record-btrace.c (record_btrace_open): Call record_preopen
11943 instead of checking RECORD_IS_USED.
11944 * record-full.c (record_full_shortname)
11945 (record_full_core_shortname): New globals.
11946 (record_full_is_used): New function.
11947 (find_full_open): Call record_preopen instead of checking
11948 RECORD_IS_USED.
11949 (init_record_full_ops): Set the target's shortname to
11950 record_full_shortname.
11951 (init_record_full_core_ops): Set the target's shortname to
11952 record_full_core_shortname.
11953 * record-full.h (record_full_is_used): Declare.
11954 * record.c (find_record_target): Make extern.
11955 (record_preopen): New function.
11956 * record.h (RECORD_IS_USED): Delete macro.
11957 (find_record_target, record_preopen): Declare functions.
11958
7ec1862d
YQ
119592014-01-14 Yao Qi <yao@codesourcery.com>
11960
11961 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11962 'len''s type to ULONGEST.
11963 (core_xfer_shared_libraries_aix): Likewise.
11964 * gdbarch.c, gdbarch.h: Regenerated.
11965 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11966 Change type of 'len' to ULONGEST.
11967 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11968 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11969
dea80a27
YQ
119702014-01-14 Yao Qi <yao@codesourcery.com>
11971
11972 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11973 type of 'len' to ULONGEST.
11974 (linux_xfer_osdata_processgroups): Likewise.
11975 (linux_xfer_osdata_threads): Likewise.
11976 (linux_xfer_osdata_fds): Likewise.
11977 (linux_xfer_osdata_isockets): Likewise.
11978 (linux_xfer_osdata_shm): Likewise.
11979 (linux_xfer_osdata_sem): Likewise.
11980 (linux_xfer_osdata_msg): Likewise.
11981 (linux_common_xfer_osdata): Likewise.
11982 (struct osdata_type) <getter>: Likewise.
11983 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11984 the declaration.
11985
b55e14c7
YQ
119862014-01-14 Yao Qi <yao@codesourcery.com>
11987
11988 * target.h (target_xfer_partial_ftype): Update.
11989 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11990 ULONGEST.
11991 * aix-thread.c (aix_thread_xfer_partial): Change type of
11992 argument 'len' to ULONGEST.
11993 * auxv.c (procfs_xfer_auxv): Likewise.
11994 (ld_so_xfer_auxv): Likewise.
11995 (memory_xfer_auxv): Likewise.
11996 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11997 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11998 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11999 * corelow.c (core_xfer_partial): Likewise.
12000 * ctf.c (ctf_xfer_partial): Likewise.
12001 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
12002 '%u'.
12003 (darwin_read_dyld_info): Likewise.
12004 (darwin_xfer_partial): Likewise.
12005 * exec.c (section_table_xfer_memory_partial): Likewise.
12006 (exec_xfer_partial): Likewise.
12007 * exec.h (section_table_xfer_memory_partial): Update
12008 declaration.
12009 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
12010 instead of plongest.
12011 (gnu_xfer_partial): Likewise.
12012 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
12013 (ia64_hpux_xfer_solib_got): Likewise.
12014 (ia64_hpux_xfer_partial): Likewise.
12015 * ia64-linux-nat.c (ia64_linux_xfer_partial):
12016 * inf-ptrace.c (inf_ptrace_xfer_partial):
12017 * inf-ttrace.c (inf_ttrace_xfer_partial):
12018 * linux-nat.c (linux_xfer_siginfo): Likewise.
12019 (linux_nat_xfer_partial): Likewise.
12020 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
12021 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
12022 * monitor.c (monitor_xfer_memory): Likewise.
12023 (monitor_xfer_partial): Likewise.
12024 * procfs.c (procfs_xfer_partial): Likewise.
12025 * record-full.c (record_full_xfer_partial): Likewise.
12026 (record_full_core_xfer_partial): Likewise.
12027 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
12028 instead of plongest.
12029 (gdbsim_xfer_partial): Likewise.
12030 * remote.c (remote_xfer_partial): Likewise.
12031 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
12032 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
12033 declaration.
12034 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
12035 (rs6000_xfer_shared_libraries): Likewise.
12036 * sol-thread.c (sol_thread_xfer_partial): Likewise.
12037 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
12038 (sparc_xfer_partial): Likewise.
12039 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
12040 (spu_xfer_partial): Likewise.
12041 * spu-multiarch.c (spu_xfer_partial): Likewise.
12042 * target.c (target_read_live_memory): Likewise.
12043 (memory_xfer_live_readonly_partial): Likewise.
12044 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
12045 (target_xfer_partial, default_xfer_partial): Likewise.
12046 (current_xfer_partial): Likewise.
12047 * tracepoint.c (tfile_xfer_partial): Likewise.
12048 * windows-nat.c (windows_xfer_memory): Likewise. Call
12049 pulongest instead of plongest.
12050 (windows_xfer_partial): Likewise.
12051 (windows_xfer_shared_libraries): Likewise.
12052
05804640
YQ
120532014-01-14 Yao Qi <yao@codesourcery.com>
12054
12055 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
12056 target_xfer_partial_ftype.
12057
b5b08fb4
SC
120582014-01-13 Siva Chandra Reddy <sivachandra@google.com>
12059
12060 PR python/15464
12061 PR python/16113
12062 * valops.c (value_struct_elt_bitpos): New function
12063 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
12064 object to 'None' if the field name is an empty string ("").
12065 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
12066 attribute to look for a field when 'name' is 'None'.
12067 (get_field_type): New function
12068
13aaf454
DE
120692014-01-13 Doug Evans <dje@google.com>
12070
12071 PR symtab/16426
12072 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
12073 (try_open_dwop_file): Ditto.
12074 * gdb_bfd.c: #include "vec.h".
12075 (bfdp): New typedef.
12076 (struct gdb_bfd_data): New member included_bfds.
12077 (gdb_bfd_unref): Unref all included bfds.
12078 (gdb_bfd_record_inclusion): New function.
12079 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
12080
c2cec97c
TT
120812014-01-13 Tom Tromey <tromey@redhat.com>
12082
12083 * gdbcore.h (deprecated_core_resize_section_table): Remove.
12084
78e5999d
TT
120852014-01-13 Tom Tromey <tromey@redhat.com>
12086
12087 * defs.h (use_windows): Remove.
12088 * gdb.c (main): Update.
12089 * main.c (captured_main, gdb_main): Update.
12090 * main.h (struct captured_main_args) <use_windows>: Remove.
12091 * top.c (use_windows): Remove.
12092
f2052bbe
TT
120932014-01-13 Tom Tromey <tromey@redhat.com>
12094
12095 * defs.h (deprecated_flush_hook): Remove.
12096
fde4f8ed
JK
120972014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12098
12099 PR threads/16216
12100 * linux-thread-db.c (try_thread_db_load): Add parameter
12101 check_auto_load_safe. Move here the file_is_auto_load_safe call.
12102 (try_thread_db_load_from_pdir_1): Move it there from here.
12103 (try_thread_db_load_from_sdir): Update caller.
12104 (try_thread_db_load_from_dir): Move it there from here.
12105
bdf61915
PP
121062014-01-13 Patrick Palka <patrick@parcs.ath.cx>
12107
12108 * regformats/regdat.sh: Always rewrite the register file.
12109
f71e1a8d
PA
121102014-01-13 Pedro Alves <palves@redhat.com>
12111
12112 * Makefile.in (CHECK_HEADERS): New variable.
12113 (check-headers:): New rule.
12114
42c85435
TT
121152014-01-13 Tom Tromey <tromey@redhat.com>
12116
12117 * cli/cli-setshow.c (do_set_command): Update.
12118 * defs.h (deprecated_set_hook): Remove.
12119 * top.c (deprecated_set_hook): Remove.
12120
f8de5129
PA
121212014-01-13 Pedro Alves <palves@redhat.com>
12122
12123 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
12124 the tracepoint if the PC is a pseudo-register.
12125
fc270c35
TT
121262014-01-13 Tom Tromey <tromey@redhat.com>
12127
12128 * defs.h (XCALLOC): Remove.
12129 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
12130 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
12131 * dwarf2loc.c (allocate_piece_closure): Likewise.
12132 * elfread.c (elf_symfile_segments): Likewise.
12133 (elf_symfile_segments): Likewise.
12134 * gdbtypes.c (copy_type_recursive): Likewise.
12135 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
12136 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
12137 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
12138 XCALLOC.
12139 * mt-tdep.c (mt_gdbarch_init): Likewise.
12140 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
12141 XCALLOC.
12142 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
12143 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
12144 * registry.c (registry_alloc_data): Likewise.
12145 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
12146 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
12147 * serial.c (serial_fdopen_ops): Likewise.
12148 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
12149 XCALLOC.
12150 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
12151 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
12152 not XCALLOC.
12153
70ba0933
TT
121542014-01-13 Tom Tromey <tromey@redhat.com>
12155
12156 * defs.h (XMALLOC): Remove.
12157 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
12158 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
12159 * cli-out.c (struct ui_out *): Likewise.
12160 * cli/cli-dump.c (add_dump_command): Likewise.
12161 (add_dump_command): Likewise.
12162 * complaints.c (get_complaints): Likewise.
12163 (find_complaint): Likewise.
12164 * dwarf2-frame.c (execute_cfa_program): Likewise.
12165 * dwarf2read.c (abbrev_table_read_table): Likewise.
12166 * gdbarch.sh: Likewise.
12167 * gdbarch.c: Rebuild.
12168 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
12169 * interps.c (interp_new): Likewise.
12170 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
12171 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
12172 * mi/mi-console.c (mi_console_file_new): Likewise.
12173 * mi/mi-interp.c (mi_interpreter_init): Likewise.
12174 * mi/mi-out.c (mi_out_new): Likewise.
12175 * mi/mi-parse.c (mi_parse): Likewise.
12176 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
12177 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
12178 * observer.c (xalloc_observer_list_node): Likewise.
12179 * regcache.c (regcache_xmalloc_1): Likewise.
12180 * reggroups.c (reggroup_new): Likewise.
12181 (_initialize_reggroup): Likewise.
12182 * registry.c (register_data_with_cleanup): Likewise.
12183 * remote.c (remote_notif_stop_alloc_reply): Likewise.
12184 * ser-base.c (serial_ttystate): Likewise.
12185 * ser-mingw.c (make_pipe_state): Likewise.
12186 * ser-pipe.c (pipe_open): Likewise.
12187 * serial.c (serial_open): Likewise.
12188 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
12189 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
12190 (tui_alloc_win_info): Likewise.
12191 (tui_add_content_elements): Likewise.
12192 * tui/tui-file.c (tui_file_new): Likewise.
12193 * tui/tui-out.c (tui_out_new): Likewise.
12194 * ui-file.c (mem_file_new): Likewise.
12195 * ui-out.c (push_level): Likewise.
12196 (make_cleanup_ui_out_end): Likewise.
12197 (append_header_to_list): Likewise.
12198 (ui_out_new): Likewise.
12199 * user-regs.c (user_reg_add_builtin): Likewise.
12200
41bf6aca
TT
122012014-01-13 Tom Tromey <tromey@redhat.com>
12202
12203 * defs.h (XZALLOC): Remove.
12204 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12205 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12206 (get_ada_tasks_inferior_data): Likewise.
12207 * auto-load.c (get_auto_load_pspace_data): Likewise.
12208 * auxv.c (get_auxv_inferior_data): Likewise.
12209 * bfd-target.c (target_bfd_reopen): Likewise.
12210 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12211 (deprecated_insert_raw_breakpoint): Likewise.
12212 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12213 * corelow.c (core_open): Likewise.
12214 * darwin-nat.c (darwin_check_new_threads): Likewise.
12215 (darwin_attach_pid): Likewise.
12216 * dummy-frame.c (dummy_frame_push): Likewise.
12217 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12218 * dwarf2loc.c (allocate_piece_closure): Likewise.
12219 * elfread.c (elf_symfile_segments): Likewise.
12220 * eval.c (ptrmath_type_p): Likewise.
12221 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12222 * gdbtypes.c (alloc_type_arch): Likewise.
12223 (alloc_type_instance): Likewise.
12224 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12225 * inf-child.c (inf_child_can_use_agent): Likewise.
12226 * inflow.c (get_inflow_inferior_data): Likewise.
12227 * infrun.c (save_infcall_suspend_state): Likewise.
12228 * jit.c (jit_reader_load): Likewise.
12229 (get_jit_objfile_data): Likewise.
12230 (get_jit_program_space_data): Likewise.
12231 (jit_object_open_impl): Likewise.
12232 (jit_symtab_open_impl): Likewise.
12233 (jit_block_open_impl): Likewise.
12234 (jit_frame_sniffer): Likewise.
12235 * linux-fork.c (add_fork): Likewise.
12236 * maint.c (make_command_stats_cleanup): Likewise.
12237 * objfiles.c (get_objfile_pspace_data): Likewise.
12238 * opencl-lang.c (struct lval_closure): Likewise.
12239 * osdata.c (osdata_start_osdata): Likewise.
12240 * progspace.c (new_address_space): Likewise.
12241 (add_program_space): Likewise.
12242 * remote-sim.c (get_sim_inferior_data): Likewise.
12243 * sh-tdep.c (sh_gdbarch_init): Likewise.
12244 * skip.c (Ignore): Likewise.
12245 (skip_delete_command): Likewise.
12246 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12247 (library_list_start_library): Likewise.
12248 (solib_aix_current_sos): Likewise.
12249 * solib-darwin.c (get_darwin_info): Likewise.
12250 (darwin_current_sos): Likewise.
12251 * solib-dsbt.c (get_dsbt_info): Likewise.
12252 * solib-ia64-hpux.c (new_so_list): Likewise.
12253 (ia64_hpux_get_solib_linkage_addr): Likewise.
12254 * solib-spu.c (append_ocl_sos): Likewise.
12255 (spu_current_sos): Likewise.
12256 * solib-svr4.c (get_svr4_info): Likewise.
12257 (svr4_keep_data_in_core): Likewise.
12258 (library_list_start_library): Likewise.
12259 (svr4_default_sos): Likewise.
12260 (svr4_read_so_list): Likewise.
12261 * solib-target.c (library_list_start_library): Likewise.
12262 (solib_target_current_sos): Likewise.
12263 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12264 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12265 * symfile.c (default_symfile_segments): Likewise.
12266 * target-descriptions.c (tdesc_data_init): Likewise.
12267 (tdesc_create_reg): Likewise.
12268 (struct tdesc_type *): Likewise.
12269 (tdesc_create_vector): Likewise.
12270 (tdesc_set_struct_size): Likewise.
12271 (struct tdesc_type *): Likewise.
12272 (tdesc_free_feature): Likewise.
12273 (tdesc_create_feature): Likewise.
12274 * windows-nat.c (windows_add_thread): Likewise.
12275 (windows_make_so): Likewise.
12276 * xml-support.c (gdb_xml_body_text): Likewise.
12277 (gdb_xml_create_parser_and_cleanup): Likewise.
12278 (xml_process_xincludes): Likewise.
12279 * xml-syscall.c (allocate_syscalls_info): Likewise.
12280 (syscall_create_syscall_desc): Likewise.
12281
5acfdbae
SDJ
122822014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12283
12284 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12285 function, with code from i386_stap_parse_special_token.
12286 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12287 (i386_stap_parse_special_token): Move code to the two functions
12288 above; simplify it.
12289
0000e5cc
PA
122902014-01-09 Pedro Alves <palves@redhat.com>
12291 Hui Zhu <hui@codesourcery.com>
12292
12293 PR gdb/16101
12294 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12295 bp_err_string. Don't mark the location shlib_disabled if the
12296 error thrown wasn't a generic or memory error. Catch errors
12297 thrown while inserting breakpoints in overlayed code. Output
12298 error message of software breakpoints.
12299 * remote.c (remote_insert_breakpoint): If this breakpoint has
12300 target-side commands but this stub doesn't support Z0 packets,
12301 throw NOT_SUPPORTED_ERROR error.
12302 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12303 * target.h (target_insert_breakpoint): Extend comment.
12304 (target_insert_hw_breakpoint): Add comment.
12305
b7ea362b
PA
123062014-01-08 Pedro Alves <palves@redhat.com>
12307
12308 * remote.c (remote_add_thread): Add threads silently if starting
12309 up.
12310 (remote_notice_new_inferior): If in all-stop, and starting up,
12311 don't call notice_new_inferior.
12312 (get_current_thread): New function, factored out from ...
12313 (add_current_inferior_and_thread): ... this. Adjust.
12314 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12315 found any thread, then select the remote's current thread as GDB's
12316 current thread too.
12317
b7bba001
JB
123182014-01-08 Joel Brobecker <brobecker@adacore.com>
12319
12320 * NEWS: Create a new section for the next release branch.
12321 Rename the section of the current branch, now that it has
12322 been cut.
12323
16dfbded
JB
123242014-01-08 Joel Brobecker <brobecker@adacore.com>
12325
12326 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12327 * version.in: Bump version to 7.7.50.DATE-cvs.
12328
22c90ac1
YQ
123292014-01-08 Yao Qi <yao@codesourcery.com>
12330
12331 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12332 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12333 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12334
d64ad97c
YQ
123352014-01-08 Yao Qi <yao@codesourcery.com>
12336
12337 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12338 return value of bfd_get_filename to symbol_file_add_from_bfd.
12339
f93ba80c
PM
123402014-01-08 Pierre Muller <muller@sourceware.org>
12341
12342 Fix PR16201.
12343 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12344 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12345 to prim_record_mininal_symbol_and_info.
12346 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12347 in call to prim_record_minimal_symbol_and_info.
12348 (read_pe_exported_syms): Set index field of section_data.
12349
a4d9ba85
AP
123502014-01-07 Andrew Pinski <apinski@cavium.com>
12351
12352 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12353 * features/aarch64.c: Regenerate.
12354
1b67eb02
AS
123552014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12356
12357 * target.c (return_null): Define.
12358 (update_current_target): Use it instead of return_zero for
12359 functions that return a pointer.
12360
5e3f4fab
EBM
123612014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12362
12363 * source.c (add_path): Fix check for duplicated paths in the previously
12364 included paths.
12365
e2616788
HK
123662014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12367
12368 * ada-lang.c: Remove duplicated include statements.
12369 * alphabsd-nat.c: Ditto.
12370 * amd64-darwin-tdep.c: Ditto.
12371 * amd64fbsd-nat.c: Ditto.
12372 * auto-load.c: Ditto.
12373 * ax-gdb.c: Ditto.
12374 * breakpoint.c: Ditto.
12375 * dbxread.c: Ditto.
12376 * fork-child.c: Ditto.
12377 * gdb_usleep.c: Ditto.
12378 * i386-darwin-tdep.c: Ditto.
12379 * i386fbsd-nat.c: Ditto.
12380 * infcmd.c: Ditto.
12381 * inferior.c: Ditto.
12382 * jv-lang.c: Ditto.
12383 * linux-nat.c: Ditto.
12384 * linux-tdep.c: Ditto.
12385 * m68kbsd-nat.c: Ditto.
12386 * m68klinux-nat.c: Ditto.
12387 * microblaze-tdep.c: Ditto.
12388 * mips-linux-tdep.c: Ditto.
12389 * mn10300-tdep.c: Ditto.
12390 * nto-tdep.c: Ditto.
12391 * opencl-lang.c: Ditto.
12392 * osdata.c: Ditto.
12393 * printcmd.c: Ditto.
12394 * regcache.c: Ditto.
12395 * remote-m32r-sdi.c: Ditto.
12396 * remote.c: Ditto.
12397 * symfile.c: Ditto.
12398 * symtab.c: Ditto.
12399 * tilegx-linux-nat.c: Ditto.
12400 * tilegx-tdep.c: Ditto.
12401 * tracepoint.c: Ditto.
12402 * valops.c: Ditto.
12403 * vaxbsd-nat.c: Ditto.
12404 * windows-nat.c: Ditto.
12405 * xtensa-tdep.c: Ditto.
12406
bd1f7788
YQ
124072014-01-07 Yao Qi <yao@codesourcery.com>
12408
12409 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12410
79301218
JB
124112014-01-07 Yao Qi <yao@codesourcery.com>
12412 Joel Brobecker <brobecker@adacore.com>
12413
12414 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12415 (pdc_write_regs): Likewise.
12416 (fetch_regs_kernel_thread): Likewise.
12417 (store_regs_kernel_thread): Likewise.
12418
124192014-01-07 Joel Brobecker <brobecker@adacore.com>
12420
12421 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12422 tagged type objects to their actual type.
12423
8e355c5d
JB
124242014-01-07 Joel Brobecker <brobecker@adacore.com>
12425
12426 * ada-valprint.c (print_field_values): Add "language" parameter.
12427 Update calls to print_field_values and print_variant_part.
12428 Pass new parameter "language" in call to val_print instead
12429 of "current_language". Replace call to ada_val_print by call
12430 to val_print.
12431 (print_variant_part): Add "language" parameter.
12432 (ada_val_print_struct_union): Update call to print_field_values.
12433
4fbf5aa5
JB
124342014-01-07 Joel Brobecker <brobecker@adacore.com>
12435
12436 * ada-valprint.c (ui_memcpy): Delete.
12437 (ada_print_floating): Update documentation. Add empty line
12438 between between function documentation and implementation.
12439 Delete variable "buffer". Use ui_file_xstrdup in place of
12440 ui_file_put. Minor adjustments following this change.
12441
71855601
JB
124422014-01-07 Joel Brobecker <brobecker@adacore.com>
12443
12444 * ada-valprint.c (ada_val_print_string): New function,
12445 extracted from ada_val_print_array.
12446 (ada_val_print_array): Replace extracted code by call
12447 to ada_val_print_string followed by a return. Move
12448 "else" branch to the function's top block.
12449
4eb27a30
JB
124502014-01-07 Joel Brobecker <brobecker@adacore.com>
12451
12452 * ada-valprint.c (ada_val_print_array): Move implementation
12453 down. Rename parameter "offset" and "val" into "offset_aligned"
12454 and "original_value" respectively. Add parameter "offset".
12455
34b27950
JB
124562014-01-07 Joel Brobecker <brobecker@adacore.com>
12457
12458 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12459 re-organizing the code. Change the "???" message printed
12460 when target type is a TYPE_CODE_UNDEF into
12461 "<ref to undefined type>".
12462
079e4591
JB
124632014-01-07 Joel Brobecker <brobecker@adacore.com>
12464
12465 * ada-valprint.c (print_record): Delete, implementation inlined...
12466 (ada_val_print_struct_union): ... here. Remove call to
12467 ada_check_typedef in inlined implementation.
12468
8004dfd1
JB
124692014-01-07 Joel Brobecker <brobecker@adacore.com>
12470
12471 * ada-valprint.c (ada_val_print_gnat_array): New function,
12472 extracted from ada_val_print_1;
12473 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12474 (ada_val_print_flt, ada_val_print_struct_union)
12475 (ada_val_print_ref): Likewise.
12476 (ada_val_print_1): Delete variables i and elttype.
12477 Replace extracted-out code by call to corresponding
12478 new functions.
12479
760a2db0
JB
124802014-01-07 Joel Brobecker <brobecker@adacore.com>
12481
12482 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12483
3a92c861
JB
124842014-01-07 Joel Brobecker <brobecker@adacore.com>
12485
12486 * ada-valprint.c (ada_val_print_1): Replace calls to
12487 ada_val_print_1 by calls to val_print.
12488
cd1630f9
JB
124892014-01-07 Joel Brobecker <brobecker@adacore.com>
12490
12491 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12492 Update calls to self accordingly. Replace calls to c_val_print
12493 by calls to val_print.
12494
bdf779a0
JB
124952014-01-07 Joel Brobecker <brobecker@adacore.com>
12496
12497 * ada-valprint.c (print_record): Delete declaration.
12498 (adjust_type_signedness, ada_val_print_1): Likewise.
12499 (ada_val_print): Move function implementation down.
12500 (print_variant_part, print_field_values, print_record):
12501 Move function implementation up.
12502
c0d48811
JB
125032014-01-07 Joel Brobecker <brobecker@adacore.com>
12504
12505 * python/py-type.c (typy_get_name): New function.
12506 (type_object_getset): Add entry for attribute "name".
12507 * NEWS: Add entry mentioning this new attribute.
12508
c26e9cbb
YQ
125092014-01-07 Yao Qi <yao@codesourcery.com>
12510
12511 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12512 statement.
12513
0cc6f43d
YQ
125142014-01-07 Yao Qi <yao@codesourcery.com>
12515
12516 * gnu-nat.c (info_port_rights): Add qualifier const to
12517 argument args.
12518
eec03155
YQ
125192014-01-07 Yao Qi <yao@codesourcery.com>
12520
12521 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12522
f04a82ef
YQ
125232014-01-07 Yao Qi <yao@codesourcery.com>
12524
12525 * gnu-nat.c (make_inf) Update declaration.
12526 (make_inf): Make it static.
12527 (inf_set_traced): Likewise.
12528 (inf_port_to_thread, inf_task_died_status): Likewise.
12529
d57dda0a
YQ
125302014-01-07 Yao Qi <yao@codesourcery.com>
12531
12532 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12533
3aa8c969
YQ
125342014-01-07 Yao Qi <yao@codesourcery.com>
12535
12536 * gnu-nat.c (_initialize_gnu_nat): Declare.
12537
94123b4f
YQ
125382014-01-07 Yao Qi <yao@codesourcery.com>
12539
12540 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12541 'enum bfd_endian'.
12542 (struct gdbarch_info) <byte_order>: Change type to
12543 'enum bfd_endian'.
12544 <byte_order_for_code>: Likewise.
12545 * gdbarch.c, gdbarch.h: Regenerated.
12546
dc81d70a
TT
125472014-01-06 Sasha Smundak <asmundak@google.com>
12548
12549 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12550
cc2f3c35
TT
125512014-01-06 Tom Tromey <tromey@redhat.com>
12552
12553 * doublest.c (convert_doublest_to_floatformat): Use const, not
12554 CONST.
12555 * somread.c (som_symtab_read): Likewise.
12556
adcf2eed
HZ
125572014-01-07 Hui Zhu <hui@codesourcery.com>
12558
12559 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12560 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12561 (gdb_bfd_fopen): Ditto.
12562 (gdb_bfd_openr): Ditto.
12563 (gdb_bfd_openw): Ditto.
12564 (gdb_bfd_openr_iovec): Ditto.
12565 (gdb_bfd_fdopenr): Ditto.
12566 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12567 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12568 with xstrdup.
12569 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12570 with xstrdup.
12571 * symfile-mem.c (symbol_file_add_from_memory): Removed
12572 gdb_bfd_stash_filename.
12573
50722198
DE
125742014-01-03 Doug Evans <dje@google.com>
12575
12576 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12577 output.
12578
2fa4b862
JB
125792014-01-01 Joel Brobecker <brobecker@adacore.com>
12580
12581 Update year range in copyright notice of all files.
12582
28498c42
JB
125832014-01-01 Joel Brobecker <brobecker@adacore.com>
12584
12585 * top.c (print_gdb_version): Set copyright year to 2014.
12586
7b6e1046
JB
125872014-01-01 Joel Brobecker <brobecker@adacore.com>
12588
12589 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12590
df96af55 12591For older changes see ChangeLog-2013.
c906108c
SS
12592\f
12593Local Variables:
12594mode: change-log
12595left-margin: 8
12596fill-column: 74
12597version-control: never
57da7796 12598coding: utf-8
c906108c 12599End:
This page took 2.233666 seconds and 4 git commands to generate.