Unify startup and option-parsing warnings
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
075c7033
GB
12014-08-29 Gary Benson <gbenson@redhat.com>
2
3 * main.c (captured_main): Use warning during startup.
4 Prefix startup warning messages with command name.
5
91b35fd0
GB
62014-08-29 Gary Benson <gbenson@redhat.com>
7
8 * main.c (captured_main): Handle usage errors with error.
9
b1ec390e
GB
102014-08-29 Gary Benson <gbenson@redhat.com>
11
12 * go32-nat.c (go32_create_inferior): Replace a fprintf/
13 exit pair with a call to error. Wrap the message with _().
14
fd0ef3dd
GB
152014-08-29 Gary Benson <gbenson@redhat.com>
16
17 * main.c (captured_main): Replace a fprintf/exit
18 pair with a call to error. Wrap the message with _().
19
e0e6bcab
GB
202014-08-29 Gary Benson <gbenson@redhat.com>
21
22 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
23 pairs with calls to error. Wrap the message with _().
24
0d2f5c07
GB
252014-08-29 Gary Benson <gbenson@redhat.com>
26
27 * utils.c (vwarning): Protect calls to target_terminal_ours
28 and wrap_here.
29
5df43998
GB
302014-08-29 Gary Benson <gbenson@redhat.com>
31
32 * exceptions.c (print_flush): Protect calls to
33 target_terminal_ours and wrap_here.
34
2437fd32
GB
352014-08-29 Gary Benson <gbenson@redhat.com>
36
37 * utils.h (filtered_printing_initialized): New declaration.
38 * utils.c (abort_with_message): New function.
39 (internal_vproblem): Use abort_with_message for first level
40 recursive internal problems, and if gdb_stderr is not set up.
41 Protect calls to target_terminal_ours, begin_line and query.
42
f1f58506
DE
432014-08-28 Doug Evans <dje@google.com>
44
45 * symtab.c (in_prologue): Move definition to better spot.
46 (skip_prologue_using_sal): Ditto.
47
aab2f208
DE
482014-08-28 Doug Evans <dje@google.com>
49
50 * symtab.c (find_function_start_sal): Move definition to better spot.
51
6b65d1b6
YQ
522014-08-28 Yao Qi <yao@codesourcery.com>
53
54 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
55 found_stack_adjust in forward scan. Remove condition check
56 on found_stack_adjust which is always true. Indent the code.
57
a1b34d15
YQ
582014-08-28 Yao Qi <yao@codesourcery.com>
59
60 * dwarf2read.c (dwarf_decode_lines): Update declaration.
61 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
62 (dwarf_decode_lines): Remove argument
63 want_line_info. Remove condition check on want_line_info.
64 Callers update.
65
d5962de5
DE
662014-08-27 Doug Evans <dje@google.com>
67
68 * dwarf2read.c (dwarf_record_line): Fix typo.
69
9b139002
SDJ
702014-08-27 Patrick Palka <patrick@parcs.ath.cx>
71
72 * target.h (struct target_ops::to_terminal_save_ours): Remove
73 declaration.
74 (target_terminal_save_ours): Remove macro.
75 * target-delegates.c: Regenerate.
76 * inf-child.c (inf_child_target): Don't set the nonexistent
77 field to_terminal_save_ours.
78 * inferior.h (child_terminal_save_ours): Remove declaration.
79 * terminal.h (gdb_save_tty_state): New declaration.
80 * inflow.c (child_terminal_save_ours): Rename to ...
81 (gdb_save_tty_state): ... this.
82 * tui/tui.c: Include terminal.h.
83 (tui_enable): Use gdb_save_tty_state instead of
84 target_terminal_save_ours.
85 (tui_disable): Likewise.
86
9debeba0
DE
872014-08-25 Doug Evans <dje@google.com>
88
89 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
90 Pass NULL instead of 0 for context pointer.
91
428fc5fc
YQ
922014-08-25 Yao Qi <yao@codesourcery.com>
93
94 * dwarf2read.c: Fix grammatical error.
95
cdc07690
YQ
962014-08-24 Yao Qi <yao@codesourcery.com>
97
98 * dwarf2read.c (scan_partial_symbols): Update comments.
99 Rename argument 'need_pc' with 'set_addrmap'.
100 (add_partial_namespace): Rename argument 'need_pc' with
101 'set_addrmap'.
102 (add_partial_module): Likewise.
103 (add_partial_subprogram): Likewise. Update comments.
104 (dwarf2_name): Fix typo.
105
a05a36a5
DE
1062014-08-22 Doug Evans <dje@google.com>
107
108 PR 17276
109 * dwarf2read.c (dwarf_record_line_p): New function.
110 (dwarf_decode_lines_1): Ignore subsequent line number entries
111 for the same line if any entry had a non-zero discriminator.
112
252a6764
DE
1132014-08-22 Doug Evans <dje@google.com>
114
115 * buildsym.h (record_line_ftype): New typedef.
116 (record_line): Use it.
117 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
118 (dwarf_decode_lines_1): Call them.
119
510db052
YQ
1202014-08-22 Yao Qi <yao@codesourcery.com>
121
122 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
123 (ctf_end): Remove code.
124
22fd09ae
JK
1252014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
126
127 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
128 (linux_make_corefile_notes): call update_thread_list, protected against
129 exceptions.
130
656e8868
PA
1312014-08-21 Pedro Alves <palves@redhat.com>
132
133 * infcmd.c (attach_command): Remove comment.
134
de589d04
WN
1352014-08-21 Bin Cheng <bin.cheng@arm.com>
136
137 * aarch64-linux-nat.c (dr_changed_t): Change the type from
138 unsigned LONGEST to ULONGEST.
139
2a31c623
PA
1402014-08-20 Pedro Alves <palves@redhat.com>
141
142 * Makefile.in (check-read1): New rule.
143
d36430db
JB
1442014-08-20 Joel Brobecker <brobecker@adacore.com>
145
146 * value.c (value_from_contents_and_address): Strip resolved_type's
147 typedef layers before checking its TYPE_DATA_LOCATION.
148
000339af
PA
1492014-08-20 Pedro Alves <palves@redhat.com>
150
151 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
152
5f52445b
YQ
1532014-08-20 Yao Qi <yao@codesourcery.com>
154
155 * amd64-tdep.c (amd64_classify): Add a blank line after the
156 example. Move "*/" to a new line.
157 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
158 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
159 * dwarf2read.c (psymtab_include_file_name): Likewise.
160
9a0dc9e3
PA
1612014-08-19 Andrew Burgess <aburgess@broadcom.com>
162 Pedro Alves <palves@redhat.com>
163
164 PR symtab/14604
165 PR symtab/14605
166 * ada-lang.c (coerce_unspec_val_to_type): Use
167 value_contents_copy_raw.
168 * ada-valprint.c (val_print_packed_array_elements): Adjust.
169 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
170 * cp-valprint.c (cp_print_value_fields): Let the common printing
171 code handle optimized out values.
172 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
173 * d-valprint.c (dynamic_array_type): Use
174 value_bits_any_optimized_out.
175 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
176 check_any_valid fields.
177 (check_pieced_value_bits): Delete and inline ...
178 (check_pieced_synthetic_pointer): ... here.
179 (check_pieced_value_validity): Delete.
180 (check_pieced_value_invalid): Delete.
181 (pieced_value_funcs): Remove check_validity and check_any_valid
182 fields.
183 (read_pieced_value): Use mark_value_bits_optimized_out.
184 (write_pieced_value): Switch to use
185 mark_value_bytes_optimized_out.
186 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
187 of assuming the whole value is optimized out.
188 * findvar.c (read_frame_register_value): Remove special handling
189 of optimized out registers.
190 (value_from_register): Use mark_value_bytes_optimized_out.
191 * frame-unwind.c (frame_unwind_got_optimized): Use
192 mark_value_bytes_optimized_out.
193 * jv-valprint.c (java_value_print): Adjust.
194 (java_print_value_fields): Let the common printing code handle
195 optimized out values.
196 * mips-tdep.c (mips_print_register): Remove special handling of
197 optimized out registers.
198 * opencl-lang.c (lval_func_check_validity): Delete.
199 (lval_func_check_any_valid): Delete.
200 (opencl_value_funcs): Remove check_validity and check_any_valid
201 fields.
202 * p-valprint.c (pascal_object_print_value_fields): Let the common
203 printing code handle optimized out values.
204 * stack.c (read_frame_arg): Remove special handling of optimized
205 out values. Fetch both VAL and ENTRYVAL before comparing
206 contents. Adjust to value_available_contents_eq rename.
207 * valprint.c (valprint_check_validity)
208 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
209 (val_print_array_elements): Adjust.
210 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
211 (value_bits_any_optimized_out): New function.
212 (value_entirely_covered_by_range_vector): New function, factored
213 out from value_entirely_unavailable.
214 (value_entirely_unavailable): Reimplement.
215 (value_entirely_optimized_out): New function.
216 (insert_into_bit_range_vector): New function, factored out from
217 mark_value_bits_unavailable.
218 (mark_value_bits_unavailable): Reimplement.
219 (struct ranges_and_idx): New struct.
220 (find_first_range_overlap_and_match): New function, factored out
221 from value_available_contents_bits_eq.
222 (value_available_contents_bits_eq): Rename to ...
223 (value_contents_bits_eq): ... this. Check both unavailable
224 contents and optimized out contents.
225 (value_available_contents_eq): Rename to ...
226 (value_contents_eq): ... this.
227 (allocate_value_lazy): Remove reference to the old optimized_out
228 boolean.
229 (allocate_optimized_out_value): Use
230 mark_value_bytes_optimized_out.
231 (require_not_optimized_out): Adjust to check whether the
232 optimized_out vec is empty.
233 (ranges_copy_adjusted): New function, factored out from
234 value_contents_copy_raw.
235 (value_contents_copy_raw): Also copy the optimized out ranges.
236 Assert the destination ranges aren't optimized out.
237 (value_contents_copy): Update comment, remove call to
238 require_not_optimized_out.
239 (value_contents_equal): Adjust to check whether the optimized_out
240 vec is empty.
241 (set_value_optimized_out, value_optimized_out_const): Delete.
242 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
243 New functions.
244 (value_entirely_optimized_out, value_bits_valid): Delete.
245 (value_copy): Take a VEC copy of the 'optimized_out' field.
246 (value_primitive_field): Remove special handling of optimized out.
247 (value_fetch_lazy): Assert that lazy values have no unavailable
248 regions. Use value_bits_any_optimized_out. Remove some special
249 handling for optimized out values.
250 * value.h: Add intro comment about <optimized out> and
251 <unavailable>.
252 (struct lval_funcs): Remove check_validity and check_any_valid
253 fields.
254 (set_value_optimized_out, value_optimized_out_const): Remove.
255 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
256 New declarations.
257 (value_bits_any_optimized_out): New declaration.
258 (value_bits_valid): Delete declaration.
259 (value_available_contents_eq): Rename to ...
260 (value_contents_eq): ... this, and extend comments.
261
6694c411
JK
2622014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
263
264 Fix -fsanitize=address on unreadable inferior strings.
265 * valprint.c (val_print_string): Fix access before BUFFER.
266
89a1c21a
SM
2672014-08-19 Simon Marchi <simon.marchi@ericsson.com>
268
269 * target.c (target_struct_size): Remove.
270 (target_struct_allocsize): Remove.
271 (DEFAULT_ALLOCSIZE): Remove.
272 (target_ops_p): New typedef.
273 (DEF_VEC_P (target_ops_p)): New vector type.
274 (target_structs): Change type to VEC (target_ops_p).
275 (add_target_with_completer): Replace "push" code by VEC_safe_push.
276 (find_default_run_target): Rewrite for loop following changes to
277 target_structs.
278
cb417230
JB
2792014-08-19 Joel Brobecker <brobecker@adacore.com>
280
281 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
282 Adjust code accordingly. Adjust function description comment.
283
817e0957
YQ
2842014-08-19 Yao Qi <yao@codesourcery.com>
285
286 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
287 types.
288
2974be62
AM
2892014-08-19 Alan Modra <amodra@gmail.com>
290
291 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
292 * config.in: Regenerate.
293 * configure: Regenerate.
294
34abf635
GB
2952014-08-19 Tom Tromey <tromey@redhat.com>
296 Gary Benson <gbenson@redhat.com>
297
298 * common/common-debug.h: New file.
299 * common/common-debug.c: Likewise.
300 * debug.c: Likewise.
301 * Makefile.in (SFILES): Add common/common-debug.c.
302 (HFILES_NO_SRCDIR): Add common/common-debug.h.
303 (COMMON_OBS): Add common-debug.o and debug.o.
304 (common-debug.o): New rule.
305 * common/common-defs.h: Include common-debug.h.
306 * common/agent.c (debug_agent_printf): New function.
307 (DEBUG_AGENT): Redefine.
308 * nat/i386-dregs.c (debug_printf): Undefine.
309
f6e94d78
GB
3102014-08-19 Gary Benson <gbenson@redhat.com>
311
312 * common/common-defs.h: Include print-utils.h.
313 * utils.h: Do not include print-utils.h.
314
9239eeab
GB
3152014-08-19 Tom Tromey <tromey@redhat.com>
316 Gary Benson <gbenson@redhat.com>
317
318 * common/common-types.h: New file.
319 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
320 * common/common-defs.h: Include common-types.h.
321 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
322 (ULONGEST): Remove.
323
ef87c8bb
GB
3242014-08-19 Tom Tromey <tromey@redhat.com>
325 Gary Benson <gbenson@redhat.com>
326
327 * common/errors.h: New file.
328 * common/errors.c: Likewise.
329 * Makefile.in (SFILES): Add common/errors.c.
330 (HFILES_NO_SRCDIR): Add common/errors.h.
331 (COMMON_OBS): Add errors.o.
332 (errors.o): New rule.
333 * common/common-defs.h: Include errors.h.
334 * utils.h (perror_with_name, error, verror, warning, vwarning):
335 Don't declare.
336 * common/common-utils.h: (malloc_failure, internal_error):
337 Likewise.
338
196a707b
GB
3392014-08-19 Gary Benson <gbenson@redhat.com>
340
341 * utils.c (internal_vproblem): Always print the message.
342
ded4fc8f
DE
3432014-08-18 Doug Evans <dje@google.com>
344
345 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
346
950c97d8
JB
3472014-08-18 Joel Brobecker <brobecker@adacore.com>
348
349 * ada-typeprint.c (type_is_full_subrange_of_target_type):
350 Return 0 if TYPE is dynamic.
351 (print_range): Add handling of dynamic ranges.
352
3cdcd0ce
JB
3532014-08-18 Keven Boell <keven.boell@intel.com>
354 Joel Brobecker <brobecker@adacore.com>
355
356 * gdbtypes.h (struct main_type): Add field "data_location".
357 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
358 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
359 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
360 a dynamic data location.
361 (resolve_dynamic_type): Add DW_AT_data_location handling.
362 (copy_recursive, copy_type): Copy the data_location information
363 when present.
364 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
365 * value.c (value_from_contents_and_address): Add
366 DW_AT_data_location handling.
367
08412b07
JB
3682014-08-18 Keven Boell <keven.boell@intel.com>
369 Joel Brobecker <brobecker@adacore.com>
370
371 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
372 field "get_object_address".
373 * dwarf2expr.c (execute_stack_op): Add handling for
374 DW_OP_push_object_address.
375 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
376 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
377 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
378 (dwarf_expr_get_obj_addr): New function.
379 (dwarf_expr_ctx_funcs): Add get_object_address field.
380 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
381 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
382 (dwarf2_evaluate_property): Add parameter "address". Use it.
383 (needs_get_obj_addr): New function.
384 (needs_frame_ctx_funcs): Add get_object_address field.
385 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
386 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
387 (resolve_dynamic_array): Likewise.
388
84754697
JB
3892014-08-18 Joel Brobecker <brobecker@adacore.com>
390
391 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
392 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
393 fixed value for records and unions for which some GNAT encodings
394 are present.
395
da5c522f
JB
3962014-08-18 Joel Brobecker <brobecker@adacore.com>
397
398 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
399 rewrite to avoid "else if" and "else" constructs. Should be
400 a no-op in practice.
401
0d72a7c3
JB
4022014-08-18 Joel Brobecker <brobecker@adacore.com>
403
404 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
405 of lexical block.
406
e66d4446
SC
4072014-08-15 Siva Chandra Reddy <sivachandra@google.com>
408
409 PR c++/17132
410 * eval.c: Update all calls to find_overload_match.
411 * valarith.c: Likewise.
412 (value_user_defined_cpp_op, value_user_defined_op): New
413 argument NOSIDE. Update all callers.
414 * valops.c (find_overload_match): New argument NOSIDE.
415 * value.h (find_overload_match): Update signature.
416
940df408
SC
4172014-08-15 Siva Chandra Reddy <sivachandra@google.com>
418
419 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
420 'items' methods instead of 'iteritems' method on dictionaries.
421
699ca60a
DE
4222014-08-15 Doug Evans <dje@google.com>
423
424 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
425 closer to use.
426
37780ee5
DE
4272014-08-15 Doug Evans <dje@google.com>
428
429 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
430
0ad93d4f
DE
4312014-08-15 Doug Evans <dje@google.com>
432
433 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
434
20d8c372
DE
4352014-08-15 Doug Evans <dje@google.com>
436
437 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
438 unused.
439
cb039ba4
EZ
4402014-08-15 Eli Zaretskii <eliz@gnu.org>
441
442 * dcache.h: Include target.h, to avoid compile time warnings.
443
eb7a547a
JB
4442014-08-15 Joel Brobecker <brobecker@adacore.com>
445
446 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
447 frame_info" partial declaration.
448 * gdbarch.h: Regenerate.
449
783cecc8
YQ
4502014-08-15 Yao Qi <yao@codesourcery.com>
451
452 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
453 Add parameter 'decode_for_pst_p'. Callers update.
454
65c749e7
YQ
4552014-08-13 Yao Qi <yao@codesourcery.com>
456
457 PR build/17104
458 * configure.ac: Use local variable 'pos'.
459 * configure: Regenerated.
460
d769e349
DE
4612014-08-11 Doug Evans <dje@google.com>
462
463 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
464 message, it is redundant with "Reading symbols from ..." message.
465
24f1235e
DE
4662014-08-10 Doug Evans <xdje42@gmail.com>
467
468 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
469
dcd2e6ef
YQ
4702014-08-09 Yao Qi <yao@codesourcery.com>
471
472 PR remote/9053
473 * remote.c (remote_xfer_partial): Remove dead code.
474
070bdf0b
AA
4752014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
476
477 * ia64-linux-tdep.c: Include "regset.h".
478 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
479 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
480 (ia64_linux_supply_fpregset): New function.
481 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
482 (ia64_linux_regset_from_core_section): New function.
483 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
484 method.
485
08f9f542
AA
4862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
487
488 * m68klinux-tdep.c: Include "regset.h".
489 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
490 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
491 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
492 (m68k_linux_regset_from_core_section): New function.
493 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
494 method.
495
8f1cee41
AA
4962014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
497
498 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
499 function. Move logic to...
500 (tilegx_linux_regmap): ... this new register map.
501 (tilegx_linux_regset): Refer to register map, replace supply
502 method by regcache_supply_regset, and add collect method.
503 * tilegx-tdep.h (enum tilegx_regnum): New enum value
504 TILEGX_FIRST_EASY_REGNUM.
505
c5741217
AA
5062014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
507
508 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
509 that calls regcache_supply_regset and handles the EPC register
510 separately. Move main logic to...
511 (score7_linux_gregmap): ... this new register map.
512 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
513 (score7_linux_gregset): Refer to register map. Add collect method.
514 (score7_linux_regset_from_core_section): Replace
515 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
516 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
517 (struct regset): Delete unused forward declaraction.
518 (struct pt_regs): Delete structure definition.
519 (elf_gregset_t): Delete typedef.
520
81580573
AA
5212014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
522
523 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
524 (nios2_core_regset): Add collect method.
525
ba199d7d
AA
5262014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
527
528 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
529 platform-independent and don't write to read-only input buffer.
530 (m32r_linux_collect_gregset): New function.
531 (m32r_linux_gregset): Add collect method.
532
0006a9da
AA
5332014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
534
535 * hppa-linux-tdep.c (greg_map): Rename to...
536 (hppa_linux_gregmap): ... this. Also convert to
537 regcache_map_entry format.
538 (hppa_linux_supply_regset): Delete function.
539 (hppa_linux_supply_fpregset): Delete function. Move logic to...
540 (hppa_linux_fpregmap): ... this new register map.
541 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
542 register map, replace supply method by regcache_supply_regset, and
543 add collect method regcache_collect_regset.
544
901e1b23
AA
5452014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
546
547 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
548 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
549 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
550 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
551 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
552 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
553 (frv_linux_supply_gregset): Replace main logic by call to
554 regcache_supply_regset, but keep clearing gr32-gr63.
555 (frv_linux_supply_fpregset): Delete function.
556 (frv_linux_gregset): Refer to appropriate register map and add
557 regcache_collect_regset as the collect method.
558 (frv_linux_fpregset): Likewise. Also exchange the supply method
559 by regcache_supply_regset.
560
1d6e7555
AA
5612014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
562
563 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
564 by call to alpha_supply_int_regs.
565 (alpha_linux_collect_gregset): New function.
566 (alpha_linux_supply_fpregset): Replace logic by call to
567 alpha_supply_fp_regs.
568 (alpha_linux_collect_fpregset): New function.
569 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
570
d4d793bf
AA
5712014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
572
573 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
574 by call to regcache_collect_regset.
575 (supply_gregset, supply_fpregset): Call regcache_supply_regset
576 instead of aarch64_linux_supply_gregset/_fpregset.
577 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
578 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
579 header file instead.
580 (aarch64_linux_supply_gregset, supply_gregset_from_core)
581 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
582 functions. Move logic to ...
583 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
584 register maps.
585 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
586 refer to new register maps, replace *_regset_from_core by
587 regcache_supply_regset, and also use regcache_collect_regset.
588 * aarch64-linux-tdep.h: Include "regset.h".
589 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
590 Delete prototypes.
591 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
592 macros, moved from C source file.
593 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
594 variable declarations.
595
99b7da5d
AA
5962014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
597
598 * s390-linux-nat.c: Include "regset.h".
599 (regmap_gregset): Delete macro.
600 (s390_64_regmap_gregset): New register map for
601 regcache_supply/_collect_regset.
602 (s390_64_gregset): New regset.
603 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
604 (regmap_fpregset): Delete macro.
605 (s390_native_supply, s390_native_collect): Delete functions.
606 (supply_gregset, fill_gregset): Replace s390-specific regmap
607 handling by a call to regcache_supply/_collect_regset.
608 (supply_fpregset, fill_fpregset): Call regcache_supply/
609 _collect_regset instead of s390_native_supply/_collect.
610 (fetch_regset, store_regset): Likewise. Also change the last
611 parameter to a regset instead of a regmap.
612 (s390_linux_fetch_inferior_registers)
613 (390_linux_store_inferior_registers): Adjust last parameter in
614 calls to fetch_regset and store_regset.
615 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
616 (s390_gregmap): ... this. Also make static const and convert to
617 regcache_map_entry format.
618 (s390x_regmap_gregset): Delete.
619 (s390_regmap_fpregset): Rename to...
620 (s390_fpregmap): ... this. Make static const and convert to
621 regcache_map_entry format.
622 (s390_regmap_upper, s390_regmap_last_break)
623 (s390x_regmap_last_break, s390_regmap_system_call)
624 (s390_regmap_tdb): Likewise.
625 (s390_supply_regset, s390_collect_regset): Remove functions.
626 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
627 s390_supply_regset.
628 (s390_gregset, s390_fpregset, s390_upper_regset)
629 (s390_last_break_regset, s390x_last_break_regset)
630 (s390_system_call_regset, s390_tdb_regset): Make global and
631 replace s390_supply/_collect_regset by regcache_supply/
632 _collect_regset.
633 (s390x_gregset): Delete.
634 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
635 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
636 (s390_regmap_fpregset, s390_regmap_last_break)
637 (s390x_regmap_last_break, s390_regmap_system_call)
638 (s390_regmap_tdb): Delete global variable declarations.
639 (s390_gregset, s390_fpregset, s390_last_break_regset)
640 (s390x_last_break_regset, s390_system_call_regset)
641 (s390_tdb_regset): New global variable declarations.
642
0b309272
AA
6432014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
644
645 * regcache.c: Include "regset.h".
646 (regcache_transfer_regset): New local function.
647 (regcache_supply_regset, regcache_collect_regset): New functions.
648 * regcache.h (struct regcache_map_entry): New structure.
649 (REGCACHE_MAP_SKIP): New enum value.
650 (regcache_supply_regset, regcache_collect_regset): New prototypes.
651
7fefa8d7
AA
6522014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
653
654 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
655 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
656 (ppc_linux_collect_gregset ): Likewise.
657 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
658 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
659 (ppc_collect_vrregset): Likewise.
660 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
661 Likewise.
662
96c4f946
YQ
6632014-08-07 Yao Qi <yao@codesourcery.com>
664
665 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
666 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
667 * remote.c (remote_read_bytes): Likewise.
668
fffbe6a8
YQ
6692014-08-07 Yao Qi <yao@codesourcery.com>
670
671 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
672
5ee8a82c
YQ
6732014-08-07 Yao Qi <yao@codesourcery.com>
674
675 PR remote/17230
676 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
677 TARGET_XFER_OK instead of 0.
678
bb974a24
GB
6792014-08-07 Gary Benson <gbenson@redhat.com>
680
681 * common/common-defs.h: Include errno.h.
682 * defs.h: Do not include errno.h.
683 * ada-typeprint.c: Likewise.
684 * c-typeprint.c: Likewise.
685 * core-regset.c: Likewise.
686 * corefile.c: Likewise.
687 * corelow.c: Likewise.
688 * event-loop.c: Likewise.
689 * f-typeprint.c: Likewise.
690 * gnu-nat.c: Likewise.
691 * go32-nat.c: Likewise.
692 * i386gnu-nat.c: Likewise.
693 * m2-typeprint.c: Likewise.
694 * nat/linux-btrace.c: Likewise.
695 * p-typeprint.c: Likewise.
696 * procfs.c: Likewise.
697 * remote-sim.c: Likewise.
698 * rs6000-nat.c: Likewise.
699 * target.c: Likewise.
700 * typeprint.c: Likewise.
701 * ui-file.c: Likewise.
702 * valops.c: Likewise.
703 * valprint.c: Likewise.
704
6d3d12eb
GB
7052014-08-07 Gary Benson <gbenson@redhat.com>
706
707 * common/common-defs.h: Include string.h.
708 * aarch64-tdep.c: Do not include string.h.
709 * ada-exp.y: Likewise.
710 * ada-lang.c: Likewise.
711 * ada-lex.l: Likewise.
712 * ada-typeprint.c: Likewise.
713 * ada-valprint.c: Likewise.
714 * aix-thread.c: Likewise.
715 * alpha-linux-tdep.c: Likewise.
716 * alpha-mdebug-tdep.c: Likewise.
717 * alpha-nat.c: Likewise.
718 * alpha-osf1-tdep.c: Likewise.
719 * alpha-tdep.c: Likewise.
720 * alphanbsd-tdep.c: Likewise.
721 * amd64-dicos-tdep.c: Likewise.
722 * amd64-linux-tdep.c: Likewise.
723 * amd64-nat.c: Likewise.
724 * amd64-sol2-tdep.c: Likewise.
725 * amd64fbsd-tdep.c: Likewise.
726 * amd64obsd-tdep.c: Likewise.
727 * arch-utils.c: Likewise.
728 * arm-linux-nat.c: Likewise.
729 * arm-linux-tdep.c: Likewise.
730 * arm-tdep.c: Likewise.
731 * arm-wince-tdep.c: Likewise.
732 * armbsd-tdep.c: Likewise.
733 * armnbsd-nat.c: Likewise.
734 * armnbsd-tdep.c: Likewise.
735 * armobsd-tdep.c: Likewise.
736 * avr-tdep.c: Likewise.
737 * ax-gdb.c: Likewise.
738 * ax-general.c: Likewise.
739 * bcache.c: Likewise.
740 * bfin-tdep.c: Likewise.
741 * breakpoint.c: Likewise.
742 * build-id.c: Likewise.
743 * buildsym.c: Likewise.
744 * c-exp.y: Likewise.
745 * c-lang.c: Likewise.
746 * c-typeprint.c: Likewise.
747 * c-valprint.c: Likewise.
748 * charset.c: Likewise.
749 * cli-out.c: Likewise.
750 * cli/cli-cmds.c: Likewise.
751 * cli/cli-decode.c: Likewise.
752 * cli/cli-dump.c: Likewise.
753 * cli/cli-interp.c: Likewise.
754 * cli/cli-logging.c: Likewise.
755 * cli/cli-script.c: Likewise.
756 * cli/cli-setshow.c: Likewise.
757 * cli/cli-utils.c: Likewise.
758 * coffread.c: Likewise.
759 * common/agent.c: Likewise.
760 * common/buffer.c: Likewise.
761 * common/buffer.h: Likewise.
762 * common/common-utils.c: Likewise.
763 * common/filestuff.c: Likewise.
764 * common/filestuff.c: Likewise.
765 * common/format.c: Likewise.
766 * common/print-utils.c: Likewise.
767 * common/rsp-low.c: Likewise.
768 * common/signals.c: Likewise.
769 * common/vec.h: Likewise.
770 * common/xml-utils.c: Likewise.
771 * core-regset.c: Likewise.
772 * corefile.c: Likewise.
773 * corelow.c: Likewise.
774 * cp-abi.c: Likewise.
775 * cp-name-parser.y: Likewise.
776 * cp-support.c: Likewise.
777 * cp-valprint.c: Likewise.
778 * cris-tdep.c: Likewise.
779 * d-exp.y: Likewise.
780 * darwin-nat.c: Likewise.
781 * dbxread.c: Likewise.
782 * dcache.c: Likewise.
783 * demangle.c: Likewise.
784 * dicos-tdep.c: Likewise.
785 * disasm.c: Likewise.
786 * doublest.c: Likewise.
787 * dsrec.c: Likewise.
788 * dummy-frame.c: Likewise.
789 * dwarf2-frame.c: Likewise.
790 * dwarf2loc.c: Likewise.
791 * dwarf2read.c: Likewise.
792 * elfread.c: Likewise.
793 * environ.c: Likewise.
794 * eval.c: Likewise.
795 * event-loop.c: Likewise.
796 * exceptions.c: Likewise.
797 * exec.c: Likewise.
798 * expprint.c: Likewise.
799 * f-exp.y: Likewise.
800 * f-lang.c: Likewise.
801 * f-typeprint.c: Likewise.
802 * f-valprint.c: Likewise.
803 * fbsd-nat.c: Likewise.
804 * findcmd.c: Likewise.
805 * findvar.c: Likewise.
806 * fork-child.c: Likewise.
807 * frame.c: Likewise.
808 * frv-linux-tdep.c: Likewise.
809 * frv-tdep.c: Likewise.
810 * gdb.c: Likewise.
811 * gdb_bfd.c: Likewise.
812 * gdbarch.c: Likewise.
813 * gdbarch.sh: Likewise.
814 * gdbtypes.c: Likewise.
815 * gnu-nat.c: Likewise.
816 * gnu-v2-abi.c: Likewise.
817 * gnu-v3-abi.c: Likewise.
818 * go-exp.y: Likewise.
819 * go-lang.c: Likewise.
820 * go32-nat.c: Likewise.
821 * guile/guile.c: Likewise.
822 * guile/scm-auto-load.c: Likewise.
823 * hppa-hpux-tdep.c: Likewise.
824 * hppa-linux-nat.c: Likewise.
825 * hppanbsd-tdep.c: Likewise.
826 * hppaobsd-tdep.c: Likewise.
827 * i386-cygwin-tdep.c: Likewise.
828 * i386-dicos-tdep.c: Likewise.
829 * i386-linux-tdep.c: Likewise.
830 * i386-nto-tdep.c: Likewise.
831 * i386-sol2-tdep.c: Likewise.
832 * i386-tdep.c: Likewise.
833 * i386bsd-tdep.c: Likewise.
834 * i386gnu-nat.c: Likewise.
835 * i386nbsd-tdep.c: Likewise.
836 * i386obsd-tdep.c: Likewise.
837 * i387-tdep.c: Likewise.
838 * ia64-libunwind-tdep.c: Likewise.
839 * ia64-linux-nat.c: Likewise.
840 * inf-child.c: Likewise.
841 * inf-ptrace.c: Likewise.
842 * inf-ttrace.c: Likewise.
843 * infcall.c: Likewise.
844 * infcmd.c: Likewise.
845 * inflow.c: Likewise.
846 * infrun.c: Likewise.
847 * interps.c: Likewise.
848 * iq2000-tdep.c: Likewise.
849 * irix5-nat.c: Likewise.
850 * jv-exp.y: Likewise.
851 * jv-lang.c: Likewise.
852 * jv-typeprint.c: Likewise.
853 * jv-valprint.c: Likewise.
854 * language.c: Likewise.
855 * linux-fork.c: Likewise.
856 * linux-nat.c: Likewise.
857 * lm32-tdep.c: Likewise.
858 * m2-exp.y: Likewise.
859 * m2-typeprint.c: Likewise.
860 * m32c-tdep.c: Likewise.
861 * m32r-linux-nat.c: Likewise.
862 * m32r-linux-tdep.c: Likewise.
863 * m32r-rom.c: Likewise.
864 * m32r-tdep.c: Likewise.
865 * m68hc11-tdep.c: Likewise.
866 * m68k-tdep.c: Likewise.
867 * m68kbsd-tdep.c: Likewise.
868 * m68klinux-nat.c: Likewise.
869 * m68klinux-tdep.c: Likewise.
870 * m88k-tdep.c: Likewise.
871 * machoread.c: Likewise.
872 * macrocmd.c: Likewise.
873 * main.c: Likewise.
874 * mdebugread.c: Likewise.
875 * mem-break.c: Likewise.
876 * memattr.c: Likewise.
877 * memory-map.c: Likewise.
878 * mep-tdep.c: Likewise.
879 * mi/mi-cmd-break.c: Likewise.
880 * mi/mi-cmd-disas.c: Likewise.
881 * mi/mi-cmd-env.c: Likewise.
882 * mi/mi-cmd-stack.c: Likewise.
883 * mi/mi-cmd-var.c: Likewise.
884 * mi/mi-cmds.c: Likewise.
885 * mi/mi-console.c: Likewise.
886 * mi/mi-getopt.c: Likewise.
887 * mi/mi-interp.c: Likewise.
888 * mi/mi-main.c: Likewise.
889 * mi/mi-parse.c: Likewise.
890 * microblaze-rom.c: Likewise.
891 * microblaze-tdep.c: Likewise.
892 * mingw-hdep.c: Likewise.
893 * minidebug.c: Likewise.
894 * minsyms.c: Likewise.
895 * mips-irix-tdep.c: Likewise.
896 * mips-linux-tdep.c: Likewise.
897 * mips-tdep.c: Likewise.
898 * mips64obsd-tdep.c: Likewise.
899 * mipsnbsd-tdep.c: Likewise.
900 * mipsread.c: Likewise.
901 * mn10300-linux-tdep.c: Likewise.
902 * mn10300-tdep.c: Likewise.
903 * monitor.c: Likewise.
904 * moxie-tdep.c: Likewise.
905 * mt-tdep.c: Likewise.
906 * nat/linux-btrace.c: Likewise.
907 * nat/linux-osdata.c: Likewise.
908 * nat/linux-procfs.c: Likewise.
909 * nat/linux-ptrace.c: Likewise.
910 * nat/linux-waitpid.c: Likewise.
911 * nbsd-tdep.c: Likewise.
912 * nios2-linux-tdep.c: Likewise.
913 * nto-procfs.c: Likewise.
914 * nto-tdep.c: Likewise.
915 * objc-lang.c: Likewise.
916 * objfiles.c: Likewise.
917 * opencl-lang.c: Likewise.
918 * osabi.c: Likewise.
919 * osdata.c: Likewise.
920 * p-exp.y: Likewise.
921 * p-lang.c: Likewise.
922 * p-typeprint.c: Likewise.
923 * parse.c: Likewise.
924 * posix-hdep.c: Likewise.
925 * ppc-linux-nat.c: Likewise.
926 * ppc-sysv-tdep.c: Likewise.
927 * ppcfbsd-tdep.c: Likewise.
928 * ppcnbsd-tdep.c: Likewise.
929 * ppcobsd-tdep.c: Likewise.
930 * printcmd.c: Likewise.
931 * procfs.c: Likewise.
932 * prologue-value.c: Likewise.
933 * python/py-auto-load.c: Likewise.
934 * python/py-gdb-readline.c: Likewise.
935 * ravenscar-thread.c: Likewise.
936 * regcache.c: Likewise.
937 * registry.c: Likewise.
938 * remote-fileio.c: Likewise.
939 * remote-m32r-sdi.c: Likewise.
940 * remote-mips.c: Likewise.
941 * remote-notif.c: Likewise.
942 * remote-sim.c: Likewise.
943 * remote.c: Likewise.
944 * reverse.c: Likewise.
945 * rs6000-aix-tdep.c: Likewise.
946 * ser-base.c: Likewise.
947 * ser-go32.c: Likewise.
948 * ser-mingw.c: Likewise.
949 * ser-pipe.c: Likewise.
950 * ser-tcp.c: Likewise.
951 * ser-unix.c: Likewise.
952 * serial.c: Likewise.
953 * sh-tdep.c: Likewise.
954 * sh64-tdep.c: Likewise.
955 * shnbsd-tdep.c: Likewise.
956 * skip.c: Likewise.
957 * sol-thread.c: Likewise.
958 * solib-dsbt.c: Likewise.
959 * solib-frv.c: Likewise.
960 * solib-osf.c: Likewise.
961 * solib-som.c: Likewise.
962 * solib-spu.c: Likewise.
963 * solib-target.c: Likewise.
964 * solib.c: Likewise.
965 * somread.c: Likewise.
966 * source.c: Likewise.
967 * sparc-nat.c: Likewise.
968 * sparc-sol2-tdep.c: Likewise.
969 * sparc-tdep.c: Likewise.
970 * sparc64-tdep.c: Likewise.
971 * sparc64fbsd-tdep.c: Likewise.
972 * sparc64nbsd-tdep.c: Likewise.
973 * sparcnbsd-tdep.c: Likewise.
974 * spu-linux-nat.c: Likewise.
975 * spu-multiarch.c: Likewise.
976 * spu-tdep.c: Likewise.
977 * stabsread.c: Likewise.
978 * stack.c: Likewise.
979 * std-regs.c: Likewise.
980 * symfile.c: Likewise.
981 * symmisc.c: Likewise.
982 * symtab.c: Likewise.
983 * target.c: Likewise.
984 * thread.c: Likewise.
985 * tilegx-linux-nat.c: Likewise.
986 * tilegx-tdep.c: Likewise.
987 * top.c: Likewise.
988 * tracepoint.c: Likewise.
989 * tui/tui-command.c: Likewise.
990 * tui/tui-data.c: Likewise.
991 * tui/tui-disasm.c: Likewise.
992 * tui/tui-file.c: Likewise.
993 * tui/tui-layout.c: Likewise.
994 * tui/tui-out.c: Likewise.
995 * tui/tui-regs.c: Likewise.
996 * tui/tui-source.c: Likewise.
997 * tui/tui-stack.c: Likewise.
998 * tui/tui-win.c: Likewise.
999 * tui/tui-windata.c: Likewise.
1000 * tui/tui-winsource.c: Likewise.
1001 * typeprint.c: Likewise.
1002 * ui-file.c: Likewise.
1003 * ui-out.c: Likewise.
1004 * user-regs.c: Likewise.
1005 * utils.c: Likewise.
1006 * v850-tdep.c: Likewise.
1007 * valarith.c: Likewise.
1008 * valops.c: Likewise.
1009 * valprint.c: Likewise.
1010 * value.c: Likewise.
1011 * varobj.c: Likewise.
1012 * vax-tdep.c: Likewise.
1013 * vaxnbsd-tdep.c: Likewise.
1014 * vaxobsd-tdep.c: Likewise.
1015 * windows-nat.c: Likewise.
1016 * xcoffread.c: Likewise.
1017 * xml-support.c: Likewise.
1018 * xstormy16-tdep.c: Likewise.
1019 * xtensa-linux-nat.c: Likewise.
1020
dccbb609
GB
10212014-08-07 Gary Benson <gbenson@redhat.com>
1022
1023 * common/common-defs.h: Include gdb_assert.h.
1024 * aarch64-tdep.c: Do not include gdb_assert.h.
1025 * addrmap.c: Likewise.
1026 * aix-thread.c: Likewise.
1027 * alpha-linux-tdep.c: Likewise.
1028 * alpha-mdebug-tdep.c: Likewise.
1029 * alphanbsd-tdep.c: Likewise.
1030 * amd64-nat.c: Likewise.
1031 * amd64-tdep.c: Likewise.
1032 * amd64bsd-nat.c: Likewise.
1033 * amd64fbsd-nat.c: Likewise.
1034 * amd64fbsd-tdep.c: Likewise.
1035 * amd64nbsd-nat.c: Likewise.
1036 * amd64nbsd-tdep.c: Likewise.
1037 * amd64obsd-nat.c: Likewise.
1038 * amd64obsd-tdep.c: Likewise.
1039 * arch-utils.c: Likewise.
1040 * arm-tdep.c: Likewise.
1041 * armbsd-tdep.c: Likewise.
1042 * auxv.c: Likewise.
1043 * bcache.c: Likewise.
1044 * bfin-tdep.c: Likewise.
1045 * blockframe.c: Likewise.
1046 * breakpoint.c: Likewise.
1047 * bsd-kvm.c: Likewise.
1048 * bsd-uthread.c: Likewise.
1049 * buildsym.c: Likewise.
1050 * c-exp.y: Likewise.
1051 * c-lang.c: Likewise.
1052 * charset.c: Likewise.
1053 * cleanups.c: Likewise.
1054 * cli-out.c: Likewise.
1055 * cli/cli-decode.c: Likewise.
1056 * cli/cli-dump.c: Likewise.
1057 * cli/cli-logging.c: Likewise.
1058 * cli/cli-script.c: Likewise.
1059 * cli/cli-utils.c: Likewise.
1060 * coffread.c: Likewise.
1061 * common/common-utils.c: Likewise.
1062 * common/queue.h: Likewise.
1063 * common/signals.c: Likewise.
1064 * common/vec.h: Likewise.
1065 * complaints.c: Likewise.
1066 * completer.c: Likewise.
1067 * corelow.c: Likewise.
1068 * cp-abi.c: Likewise.
1069 * cp-name-parser.y: Likewise.
1070 * cp-namespace.c: Likewise.
1071 * cp-support.c: Likewise.
1072 * cris-tdep.c: Likewise.
1073 * dbxread.c: Likewise.
1074 * dictionary.c: Likewise.
1075 * doublest.c: Likewise.
1076 * dsrec.c: Likewise.
1077 * dummy-frame.c: Likewise.
1078 * dwarf2-frame-tailcall.c: Likewise.
1079 * dwarf2-frame.c: Likewise.
1080 * dwarf2expr.c: Likewise.
1081 * dwarf2loc.c: Likewise.
1082 * dwarf2read.c: Likewise.
1083 * eval.c: Likewise.
1084 * event-loop.c: Likewise.
1085 * exceptions.c: Likewise.
1086 * expprint.c: Likewise.
1087 * f-valprint.c: Likewise.
1088 * fbsd-nat.c: Likewise.
1089 * findvar.c: Likewise.
1090 * frame-unwind.c: Likewise.
1091 * frame.c: Likewise.
1092 * frv-tdep.c: Likewise.
1093 * gcore.c: Likewise.
1094 * gdb-dlfcn.c: Likewise.
1095 * gdb_bfd.c: Likewise.
1096 * gdbarch.c: Likewise.
1097 * gdbarch.sh: Likewise.
1098 * gdbtypes.c: Likewise.
1099 * gnu-nat.c: Likewise.
1100 * gnu-v3-abi.c: Likewise.
1101 * go-lang.c: Likewise.
1102 * guile/scm-exception.c: Likewise.
1103 * guile/scm-gsmob.c: Likewise.
1104 * guile/scm-lazy-string.c: Likewise.
1105 * guile/scm-math.c: Likewise.
1106 * guile/scm-pretty-print.c: Likewise.
1107 * guile/scm-safe-call.c: Likewise.
1108 * guile/scm-utils.c: Likewise.
1109 * guile/scm-value.c: Likewise.
1110 * h8300-tdep.c: Likewise.
1111 * hppa-hpux-nat.c: Likewise.
1112 * hppa-tdep.c: Likewise.
1113 * hppanbsd-tdep.c: Likewise.
1114 * hppaobsd-tdep.c: Likewise.
1115 * i386-darwin-nat.c: Likewise.
1116 * i386-darwin-tdep.c: Likewise.
1117 * i386-nto-tdep.c: Likewise.
1118 * i386-tdep.c: Likewise.
1119 * i386bsd-nat.c: Likewise.
1120 * i386fbsd-tdep.c: Likewise.
1121 * i386gnu-nat.c: Likewise.
1122 * i386nbsd-tdep.c: Likewise.
1123 * i386obsd-tdep.c: Likewise.
1124 * i387-tdep.c: Likewise.
1125 * ia64-libunwind-tdep.c: Likewise.
1126 * ia64-tdep.c: Likewise.
1127 * inf-ptrace.c: Likewise.
1128 * inf-ttrace.c: Likewise.
1129 * infcall.c: Likewise.
1130 * infcmd.c: Likewise.
1131 * infrun.c: Likewise.
1132 * inline-frame.c: Likewise.
1133 * interps.c: Likewise.
1134 * jv-lang.c: Likewise.
1135 * jv-typeprint.c: Likewise.
1136 * linux-fork.c: Likewise.
1137 * linux-nat.c: Likewise.
1138 * linux-thread-db.c: Likewise.
1139 * m32c-tdep.c: Likewise.
1140 * m32r-linux-nat.c: Likewise.
1141 * m32r-tdep.c: Likewise.
1142 * m68k-tdep.c: Likewise.
1143 * m68kbsd-nat.c: Likewise.
1144 * m68kbsd-tdep.c: Likewise.
1145 * m88k-tdep.c: Likewise.
1146 * machoread.c: Likewise.
1147 * macroexp.c: Likewise.
1148 * macrotab.c: Likewise.
1149 * maint.c: Likewise.
1150 * mdebugread.c: Likewise.
1151 * memory-map.c: Likewise.
1152 * mep-tdep.c: Likewise.
1153 * mi/mi-common.c: Likewise.
1154 * microblaze-tdep.c: Likewise.
1155 * mingw-hdep.c: Likewise.
1156 * mips-linux-nat.c: Likewise.
1157 * mips-linux-tdep.c: Likewise.
1158 * mips-tdep.c: Likewise.
1159 * mips64obsd-tdep.c: Likewise.
1160 * mipsnbsd-tdep.c: Likewise.
1161 * mn10300-linux-tdep.c: Likewise.
1162 * mn10300-tdep.c: Likewise.
1163 * moxie-tdep.c: Likewise.
1164 * mt-tdep.c: Likewise.
1165 * nat/linux-btrace.c: Likewise.
1166 * nat/linux-osdata.c: Likewise.
1167 * nat/linux-ptrace.c: Likewise.
1168 * nat/mips-linux-watch.c: Likewise.
1169 * nios2-linux-tdep.c: Likewise.
1170 * nios2-tdep.c: Likewise.
1171 * objc-lang.c: Likewise.
1172 * objfiles.c: Likewise.
1173 * obsd-nat.c: Likewise.
1174 * opencl-lang.c: Likewise.
1175 * osabi.c: Likewise.
1176 * parse.c: Likewise.
1177 * ppc-linux-nat.c: Likewise.
1178 * ppc-sysv-tdep.c: Likewise.
1179 * ppcfbsd-nat.c: Likewise.
1180 * ppcfbsd-tdep.c: Likewise.
1181 * ppcnbsd-nat.c: Likewise.
1182 * ppcnbsd-tdep.c: Likewise.
1183 * ppcobsd-nat.c: Likewise.
1184 * ppcobsd-tdep.c: Likewise.
1185 * printcmd.c: Likewise.
1186 * procfs.c: Likewise.
1187 * prologue-value.c: Likewise.
1188 * psymtab.c: Likewise.
1189 * python/py-lazy-string.c: Likewise.
1190 * python/py-value.c: Likewise.
1191 * regcache.c: Likewise.
1192 * reggroups.c: Likewise.
1193 * registry.c: Likewise.
1194 * remote-sim.c: Likewise.
1195 * remote.c: Likewise.
1196 * rs6000-aix-tdep.c: Likewise.
1197 * rs6000-tdep.c: Likewise.
1198 * s390-linux-tdep.c: Likewise.
1199 * score-tdep.c: Likewise.
1200 * ser-base.c: Likewise.
1201 * ser-mingw.c: Likewise.
1202 * sh-tdep.c: Likewise.
1203 * sh64-tdep.c: Likewise.
1204 * solib-darwin.c: Likewise.
1205 * solib-spu.c: Likewise.
1206 * solib-svr4.c: Likewise.
1207 * source.c: Likewise.
1208 * sparc-nat.c: Likewise.
1209 * sparc-sol2-tdep.c: Likewise.
1210 * sparc-tdep.c: Likewise.
1211 * sparc64-sol2-tdep.c: Likewise.
1212 * sparc64-tdep.c: Likewise.
1213 * sparc64fbsd-tdep.c: Likewise.
1214 * sparc64nbsd-tdep.c: Likewise.
1215 * sparc64obsd-tdep.c: Likewise.
1216 * sparcnbsd-tdep.c: Likewise.
1217 * sparcobsd-tdep.c: Likewise.
1218 * spu-multiarch.c: Likewise.
1219 * spu-tdep.c: Likewise.
1220 * stabsread.c: Likewise.
1221 * stack.c: Likewise.
1222 * symfile.c: Likewise.
1223 * symtab.c: Likewise.
1224 * target-descriptions.c: Likewise.
1225 * target-memory.c: Likewise.
1226 * target.c: Likewise.
1227 * tic6x-linux-tdep.c: Likewise.
1228 * tic6x-tdep.c: Likewise.
1229 * tilegx-linux-nat.c: Likewise.
1230 * tilegx-tdep.c: Likewise.
1231 * top.c: Likewise.
1232 * tramp-frame.c: Likewise.
1233 * tui/tui-out.c: Likewise.
1234 * tui/tui-winsource.c: Likewise.
1235 * ui-out.c: Likewise.
1236 * user-regs.c: Likewise.
1237 * utils.c: Likewise.
1238 * v850-tdep.c: Likewise.
1239 * valops.c: Likewise.
1240 * value.c: Likewise.
1241 * varobj.c: Likewise.
1242 * vax-nat.c: Likewise.
1243 * xml-syscall.c: Likewise.
1244 * xml-tdesc.c: Likewise.
1245 * xstormy16-tdep.c: Likewise.
1246 * xtensa-linux-nat.c: Likewise.
1247 * xtensa-tdep.c: Likewise.
1248
e76df0d0
GB
12492014-08-07 Gary Benson <gbenson@redhat.com>
1250
1251 * common/common-defs.h: Include common-utils.h.
1252 * defs.h: Do not include common-utils.h.
1253 * common/gdb_assert.h: Likewise.
1254 * darwin-nat.h: Likewise.
1255 * nat/linux-btrace.c: Likewise.
1256 * target/waitstatus.h: Likewise.
1257
4cb9c816
GB
12582014-08-07 Gary Benson <gbenson@redhat.com>
1259
1260 * common/common-defs.h: Include ptid.h.
1261 * defs.h: Do not include ptid.h.
1262 * inferior.h: Likewise.
1263 * infrun.h: Likewise.
1264 * nat/linux-btrace.h: Likewise.
1265 * nat/linux-osdata.h: Likewise.
1266 * target/waitstatus.h: Likewise.
1267
3995eeee
GB
12682014-08-07 Gary Benson <gbenson@redhat.com>
1269
1270 * common/common-defs.h: Include gdb_locale.h.
1271 * defs.h: Do not include gdb_locale.h.
1272
cb9f1a9b
GB
12732014-08-07 Gary Benson <gbenson@redhat.com>
1274
1275 * common/common-defs.h: Include gdb/signals.h.
1276 * defs.h: Do not include gdb/signals.h.
1277
a5fceff8
GB
12782014-08-07 Gary Benson <gbenson@redhat.com>
1279
1280 * common/common-defs.h: Include pathmax.h.
1281 * defs.h: Do not include pathmax.h.
1282
b9391142
GB
12832014-08-07 Gary Benson <gbenson@redhat.com>
1284
1285 * common/common-defs.h: Include libiberty.h.
1286 * defs.h: Do not include libiberty.h.
1287 * common/queue.h: Likewise.
1288 * cp-name-parser.y: Likewise.
1289 * mi/mi-cmd-catch.c: Likewise.
1290 * python/python.c: Likewise.
1291
0e443c87
GB
12922014-08-07 Gary Benson <gbenson@redhat.com>
1293
1294 * common/common-defs.h: Include ansidecl.h.
1295 * defs.h: Do not include ansidecl.h.
1296 * common/buffer.h: Likewise.
1297 * common/common-utils.h: Likewise.
1298
8ebb3f56
GB
12992014-08-07 Gary Benson <gbenson@redhat.com>
1300
1301 * common/common-defs.h: Include stddef.h.
1302 * defs.h: Do not include stddef.h.
1303 * common/common-utils.h: Likewise.
1304 * amd64fbsd-nat.c: Likewise.
1305 * bcache.c: Likewise.
1306 * charset.c: Likewise.
1307 * common/buffer.h: Likewise.
1308 * common/vec.h: Likewise.
1309 * i386bsd-nat.c: Likewise.
1310 * nat/linux-btrace.h: Likewise.
1311 * ppcfbsd-nat.c: Likewise.
1312 * ppcnbsd-tdep.h: Likewise.
1313 * ppcobsd-nat.c: Likewise.
1314 * ppcobsd-tdep.h: Likewise.
1315 * python/py-gdb-readline.c: Likewise.
1316
8980bdf6
GB
13172014-08-07 Gary Benson <gbenson@redhat.com>
1318
1319 * common/common-defs.h: Include stdarg.h.
1320 * defs.h: Do not include stdarg.h.
1321 * ada-lang.c: Likewise.
1322 * common/common-utils.h: Likewise.
1323 * guile/scm-string.c: Likewise.
1324 * guile/scm-utils.c: Likewise.
1325 * m32c-tdep.c: Likewise.
1326
d7096f71
GB
13272014-08-07 Gary Benson <gbenson@redhat.com>
1328
1329 * common/common-defs.h: Include stdlib.h.
1330 * defs.h: Do not include stdlib.h.
1331 * addrmap.c: Likewise.
1332 * bcache.c: Likewise.
1333 * common/buffer.c: Likewise.
1334 * common/common-utils.c: Likewise.
1335 * cp-name-parser.y: Likewise.
1336 * go32-nat.c: Likewise.
1337 * mn10300-linux-tdep.c: Likewise.
1338 * nat/linux-osdata.c: Likewise.
1339 * tui/tui.c: Likewise.
1340 * windows-nat.c: Likewise.
1341
d02f550d
GB
13422014-08-07 Gary Benson <gbenson@redhat.com>
1343
1344 * common/common-defs.h: Include stdio.h.
1345 * defs.h: Do not include stdio.h.
1346 * ada-lang.c: Likewise.
1347 * common/buffer.c: Likewise.
1348 * common/common-utils.c: Likewise.
1349 * cp-name-parser.y: Likewise.
1350 * gnu-nat.c: Likewise.
1351 * go32-nat.c: Likewise.
1352 * i386gnu-nat.c: Likewise.
1353 * proc-api.c: Likewise.
1354 * proc-events.c: Likewise.
1355 * proc-flags.c: Likewise.
1356 * proc-why.c: Likewise.
1357 * python/python-internal.h: Likewise.
1358 * target-memory.c: Likewise.
1359 * tui/tui-io.c: Likewise.
1360 * tui/tui.c: Likewise.
1361
b6d7a4bf
SM
13622014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1363
1364 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1365 (scan_dyntag_auxv): Same.
1366
af19829b
YQ
13672014-08-06 Yao Qi <yao@codesourcery.com>
1368
1369 * amd64-linux-nat.c: Remove duplicated include
1370 "x86-linux-nat.h".
1371 * i386-linux-nat.c: Likewise.
1372
8e07a239
YQ
13732014-08-06 Yao Qi <yao@codesourcery.com>
1374
1375 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1376 operand" with "Special opcode" in comments.
1377
7bfe8241
GB
13782014-08-05 Gary Benson <gbenson@redhat.com>
1379
1380 * interps.c (initialize_interps): Remove prototype.
1381 (interpreter_initialized): Remove static global.
1382 (interp_add): Do not call initialize_interps.
1383 (initialize_interps): Remove function.
1384
d6c95504
GB
13852014-08-05 Gary Benson <gbenson@redhat.com>
1386
1387 * utils.c (vwarning): Remove spurious va_end.
1388
241fd515
AM
13892014-08-05 Alan Modra <amodra@gmail.com>
1390
1391 * charset.c (convert_between_encodings): Cast result of obstack_base.
1392 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1393 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1394 (read_unwind_info): Use size_t for some locals.
1395 * jit.c (finalize_symtab): Likewise.
1396 * utils.c (hashtab_obstack_allocate): Likewise.
1397 * symmisc.c (print_objfile_statistics): Update format strings.
1398
dc304a94
JK
13992014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1400
1401 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1402 (Changes in GDB 7.8): ... here.
1403
3cecbbbe
TT
14042014-08-04 Tom Tromey <tromey@redhat.com>
1405
1406 * target.c (set_targetdebug): New function.
1407 (initialize_targets): Pass set_targetdebug when creating "set
1408 debug target".
1409
6908c509
JB
14102014-08-01 Joel Brobecker <brobecker@adacore.com>
1411
1412 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1413 if detecting a variable-sized field that is not the last field.
1414 Fix struct type length computation.
1415
53e8f97d
JB
14162014-08-01 Joel Brobecker <brobecker@adacore.com>
1417
1418 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1419 Add debug trace.
1420
e068c55d
JB
14212014-08-01 Joel Brobecker <brobecker@adacore.com>
1422
1423 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1424 Remove "+ 8" offset in computation of CHAIN_VMA.
1425
4d4ca2a1
DE
14262014-07-31 Doug Evans <dje@google.com>
1427
1428 * inflow.c (child_terminal_inferior): Add comment.
1429 (child_terminal_ours_for_output): Add comment.
1430 (child_terminal_ours): Add comment.
1431 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1432 (linux_nat_terminal_ours): Add comment.
1433
462f517e
GB
14342014-07-31 Gary Benson <gbenson@redhat.com>
1435
1436 * common/btrace-common.h: Do not include defs.h or server.h.
1437 * nat/mips-linux-watch.h: Likewise.
1438 * gdb-dlfcn.h: Do not include defs.h.
1439 * tracefile.h: Likewise.
1440
74228e77
RM
14412014-07-30 Roland McGrath <mcgrathr@google.com>
1442
1443 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1444
014f9477
TT
14452014-07-30 Tom Tromey <tromey@redhat.com>
1446
1447 * bsd-kvm.c (bsd_kvm_open): Constify.
1448 * corelow.c (core_open): Constify.
1449 * ctf.c (ctf_open): Constify.
1450 * dbug-rom.c (dbug_open): Constify.
1451 * exec.c (exec_open): Constify.
1452 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1453 * microblaze-rom.c (picobug_open): Constify.
1454 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1455 Constify.
1456 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1457 * record-btrace.c (record_btrace_open): Constify.
1458 * record-full.c (record_full_core_open_1, record_full_open_1)
1459 (record_full_open): Constify.
1460 * remote-m32r-sdi.c (m32r_open): Constify.
1461 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1462 (rockhopper_open, lsi_open): Constify.
1463 * remote-sim.c (gdbsim_open): Constify.
1464 * remote.c (remote_open, extended_remote_open, remote_open_1):
1465 Constify.
1466 * target.h (struct target_ops) <to_open>: Make "arg" const.
1467 * tracefile-tfile.c (tfile_open): Constify.
1468
e799154c
TT
14692014-07-30 Tom Tromey <tromey@redhat.com>
1470
1471 * breakpoint.c (map_breakpoint_numbers): Update.
1472 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1473 (get_number_const): New function.
1474 (get_number): Rewrite using get_number_const.
1475 (init_number_or_range): Make "string" const.
1476 (number_is_in_list): Make "list" const.
1477 * cli/cli-utils.h (get_number_const): Declare.
1478 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1479 (init_number_or_range, number_is_in_list): Update.
1480 * printcmd.c (map_display_numbers): Update.
1481 * value.c (value_from_history_ref): Constify.
1482 * value.h (value_from_history_ref): Update.
1483
5f08566b
TT
14842014-07-30 Tom Tromey <tromey@redhat.com>
1485
1486 * corefile.c (hook_type, call_extra_exec_file_hooks)
1487 (specify_exec_file_hook): Constify.
1488 * exec.c (exec_file_attach): Make "filename" const.
1489 * gdbcore.h (deprecated_exec_file_display_hook)
1490 (specify_exec_file_hook, exec_file_attach): Constify.
1491 * main.c (captured_main): Use catch_command_errors_const.
1492
8981c758
TT
14932014-07-30 Tom Tromey <tromey@redhat.com>
1494
1495 * target.c (open_target): New function.
1496 (add_target_with_completer, add_deprecated_target_alias): Use
1497 set_cmd_sfunc, set_cmd_context.
1498 (debug_to_open): Remove.
1499 (setup_target_debug): Update.
1500
a1c7835a
YQ
15012014-07-30 Yao Qi <yao@codesourcery.com>
1502
1503 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1504 comments.
1505 * parse.c (exp_iterate): Update comments.
1506
976411d6
GB
15072014-07-30 Gary Benson <gbenson@redhat.com>
1508
1509 * common/common-defs.h: New file.
1510 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1511 * defs.h: Include common-defs.h.
1512 Do not include config.h or build-gnulib/config.h.
1513
5d4848a4
GB
15142014-07-30 Gary Benson <gbenson@redhat.com>
1515
1516 * common/common-utils.h: Do not include config.h.
1517 * nat/linux-btrace.h: Likewise.
1518
d41f6d8e
GB
15192014-07-30 Gary Benson <gbenson@redhat.com>
1520
1521 * btrace.c: Include defs.h.
1522 * common/ptid.c: Include defs.h or server.h as appropriate.
1523 * nat/mips-linux-watch.c: Likewise.
1524
84202f9c
TT
15252014-07-29 Tom Tromey <tromey@redhat.com>
1526
1527 * target.c (target_is_pushed): Simplify.
1528
2530441c
JB
15292014-07-29 Joel Brobecker <brobecker@adacore.com>
1530
1531 GDB 7.8 released.
1532
7e09a223
YQ
15332014-07-29 Yao Qi <yao@codesourcery.com>
1534
1535 PR gdb/17206
1536 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1537
7ebdbe92
DE
15382014-07-28 Doug Evans <xdje42@gmail.com>
1539
1540 PR guile/17203
1541 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1542 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1543 parameters.
1544
f347ffc9
WN
15452014-07-28 Will Newton <will.newton@linaro.org>
1546
1547 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1548 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1549 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1550 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1551 (THUMB2_EABI_SYSCALL): Likewise.
1552 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1553 struct tramp_frame.
1554 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1555 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1556
37c5f1f7
DE
15572014-07-27 Doug Evans <xdje42@gmail.com>
1558
1559 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1560
0c3abbc7
DE
15612014-07-27 Doug Evans <xdje42@gmail.com>
1562
1563 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1564
e76c5d17
DE
15652014-07-26 Ludovic Courtès <ludo@gnu.org>
1566 Doug Evans <xdje42@gmail.com>
1567
1568 PR guile/17146
1569 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1570 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1571 * configure.ac: Try to use guild to compile an scm file, if it fails
1572 then disable guile support.
1573 * configure: Regenerate.
1574 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1575 GUILE_FILE_LIST.
1576 (GUILE_COMPILED_FILES): New variable.
1577 (GUILE_FILES) Update.
1578 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1579 (stamp-guile): Compile scm files.
1580 * guile/guile.c (boot_guile_support): New function.
1581 (standard_throw_args_p): New function.
1582 (print_standard_throw_error, print_throw_error): New functions.
1583 (handle_boot_error): New function.
1584 (initialize_scheme_side): Rewrite to call boot_guile_support.
1585 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1586 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1587
186fcde0
DE
15882014-07-26 Ludovic Courtès <ludo@gnu.org>
1589 Doug Evans <xdje42@gmail.com>
1590
1591 PR guile/17146
1592 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1593 * guile/lib/gdb/support.scm: New file.
1594 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1595 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1596 All uses updated.
1597 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1598 All uses updated.
1599 (%assert-type): Ditto, and renamed to assert-type.
1600 (%exception-print-style): Delete.
1601
4df42755
DE
16022014-07-26 Doug Evans <xdje42@gmail.com>
1603
1604 PR build/17105
1605 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1606 * configure: Regenerate.
1607 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1608 PYTHON_FILES.
1609 (PYTHON_FILES): New variable.
1610 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1611 (GUILE_FILES): New variable.
1612 (stamp-python, install-python, uninstall-python): Handle empty
1613 file list.
1614 (stamp-guile, install-guile, uninstall-guile): Ditto.
1615
ee7333ae
DE
16162014-07-26 Doug Evans <xdje42@gmail.com>
1617
1618 PR guile/17177
1619 * guile/lib/gdb.scm (pretty-printers): Export.
1620 (set-pretty-printers!): Export.
1621 * guile/lib/gdb/printing.scm (gdb module): Update.
1622 (prepend-pretty-printer!, append-pretty-printer!): Update.
1623 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1624 (pretty_printer_list_var): Delete.
1625 (pretty_printer_list): New static global.
1626 (gdbscm_pretty_printers): New function.
1627 (gdbscm_set_pretty_printers_x): New function.
1628 (ppscm_find_pretty_printer_from_gdb): Update.
1629 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1630 (gdbscm_initialize_pretty_printers): Update.
1631
74edf516
DE
16322014-07-26 Doug Evans <xdje42@gmail.com>
1633
1634 PR 17185
1635 * configure.ac: Add check for header gc/gc.h.
1636 Add check for function setenv.
1637 * configure: Regenerate.
1638 * config.in: Regenerate.
1639 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1640
d54398a7
MR
16412014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1642
1643 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1644 variation in gdbarch matching.
1645
ab16fce8
TT
16462014-07-25 Tom Tromey <tromey@redhat.com>
1647
1648 * exec.c (using_exec_ops): Remove.
1649 (exec_close_1): Update. Remove extraneous block, reindent.
1650 (add_target_sections): Use target_is_pushed.
1651
88056fbb
PA
16522014-07-25 Pedro Alves <palves@redhat.com>
1653
1654 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1655 * monitor.c (monitor_create_inferior): Likewise.
1656 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1657 * remote-sim.c (gdbsim_create_inferior): Likewise.
1658 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1659 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1660 * windows-nat.c (do_initial_windows_stuff): Likewise.
1661
70509625
PA
16622014-07-25 Pedro Alves <palves@redhat.com>
1663
1664 * NEWS: Mention signal passing and "signal" command changes.
1665 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1666 comment.
1667 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1668 call.
1669 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1670 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1671 (jump_command): Adjust clear_proceed_status call.
1672 (signal_command): Warn if other thread that are resumed have
1673 signals that will be delivered. Adjust clear_proceed_status call.
1674 (until_next_command, finish_command)
1675 (proceed_after_attach_callback, attach_command_post_wait)
1676 (attach_command): Adjust clear_proceed_status call.
1677 * infrun.c (proceed_after_vfork_done): Likewise.
1678 (proceed_after_attach_callback): Adjust comment.
1679 (clear_proceed_status_thread): Clear stop_signal if not in pass
1680 state.
1681 (clear_proceed_status_callback): Delete.
1682 (clear_proceed_status): New 'step' parameter. Only clear the
1683 proceed status of threads the command being prepared is about to
1684 resume.
1685 (proceed): If passed in an explicit signal, override stop_signal
1686 with it. Don't pass the last stop signal to the thread we're
1687 resuming.
1688 (init_wait_for_inferior): Adjust clear_proceed_status call.
1689 (switch_back_to_stepped_thread): Clear the signal if it should not
1690 be passed.
1691 * infrun.h (clear_proceed_status): New 'step' parameter.
1692 (user_visible_resume_ptid): Add comment.
1693 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1694 signal is in pass state.
1695 * remote.c (append_pending_thread_resumptions): Likewise.
1696 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1697
d8be2939
TT
16982014-07-25 Tom Tromey <tromey@redhat.com>
1699
1700 * target.h (target_stopped_data_address)
1701 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1702 parentheses.
1703
7d0d9d2b
PL
17042014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1705
1706 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1707 comments.
1708 (avr_pointer_to_address): Likewise.
1709
e9e7f724
TT
17102014-07-24 Tom Tromey <tromey@redhat.com>
1711
1712 * monitor.c (compile_pattern): Update.
1713 * target.h (struct target_ops) <to_shortname, to_longname,
1714 to_doc>: Now const.
1715
1947513d
TT
17162014-07-24 Tom Tromey <tromey@redhat.com>
1717
1718 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1719 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1720 (add_info_alias, add_com): Make "doc" const.
1721 (print_doc_line): Make "str" const.
1722 (delete_cmd): Update.
1723 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1724 (print_doc_line): Update.
1725 * cli/cli-script.c (document_command): Update.
1726 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1727 (add_com, add_info, add_info_alias): Update.
1728 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1729 * python/py-cmd.c (cmdpy_destroyer): Update.
1730
64e61d29
TT
17312014-07-24 Tom Tromey <tromey@redhat.com>
1732
1733 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1734 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1735 (help_cmd_list): Constify.
1736 (lookup_cmd): Update.
1737 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1738 const.
1739 (help_cmd_list, apropos_cmd): Update.
1740 * cli/cli-script.c (show_user): Update.
1741 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1742 * cli/cli-setshow.h (cmd_show_list): Update.
1743 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1744 (cmd_show_list): Update.
1745 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1746 * python/py-cmd.c (cmdpy_destroyer): Update.
1747
429e55ea
TT
17482014-07-24 Tom Tromey <tromey@redhat.com>
1749
1750 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1751 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1752 const.
1753 * command.h (deprecate_cmd): Update.
1754 * maint.c (maintenance_do_deprecate): Add casts.
1755
64669f3b
TT
17562014-07-24 Tom Tromey <tromey@redhat.com>
1757
1758 * cli/cli-decode.c (help_cmd): Make parameter "const".
1759 * cli/cli-decode.h (help_cmd): Update.
1760
d3d3328b
TT
17612014-07-24 Tom Tromey <tromey@redhat.com>
1762
1763 * stack.c (up_silently_base, down_silently_base): Make argument
1764 const.
1765
414842dc
TT
17662014-07-24 Tom Tromey <tromey@redhat.com>
1767
1768 * solib.c (solib_add): Make "pattern" const.
1769 * solib.h (solib_add): Update.
1770
baa336ce
TT
17712014-07-24 Tom Tromey <tromey@redhat.com>
1772
1773 * remote.c (remote_serial_open, print_packet, putpkt)
1774 (putpkt_binary): Constify.
1775 * remote.h (putpkt): Update.
1776
5a19e2d0
TT
17772014-07-24 Tom Tromey <tromey@redhat.com>
1778
1779 * monitor.c (monitor_open): Make "args" const.
1780 * monitor.h (monitor_open): Update.
1781
fc4baa5e
TT
17822014-07-24 Tom Tromey <tromey@redhat.com>
1783
1784 * maint.c (match_bfd_flags): Make "string" const.
1785 (print_bfd_section_info): Remove casts.
1786 (print_objfile_section_info): Make "string" const.
1787
0d5f0dbe
TT
17882014-07-24 Tom Tromey <tromey@redhat.com>
1789
1790 * inf-child.c (inf_child_open_target): Make "arg" const.
1791 * inf-child.h (inf_child_open_target): Update.
1792
41c77899
TT
17932014-07-24 Tom Tromey <tromey@redhat.com>
1794
1795 * environ.c (unset_in_environ): Make "var" const.
1796 * environ.h (unset_in_environ): Update.
1797
93db0d79
TT
17982014-07-24 Tom Tromey <tromey@redhat.com>
1799
1800 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1801 Make "cmd" const.
1802 (scan_filename_with_cleanup): Likewise.
1803 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1804 Make arguments const.
1805 (restore_command): Update.
1806
36d6eb95
PA
18072014-07-24 Pedro Alves <palves@redhat.com>
1808
1809 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1810
8009206a
TT
18112014-07-24 Tom Tromey <tromey@redhat.com>
1812 Gary Benson <gbenson@redhat.com>
1813
1814 * nat/linux-ptrace.c (additional_flags): New global.
1815 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1816 additional_flags; don't check GDBSERVER.
1817 (linux_ptrace_set_additional_flags): New function.
1818 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1819 Declare.
1820 * linux-nat.c (_initialize_linux_nat): Call
1821 linux_ptrace_set_additional_flags.
1822
a7068b60
TT
18232014-07-24 Tom Tromey <tromey@redhat.com>
1824
1825 * make-target-delegates (munge_type, write_debugmethod): New
1826 functions.
1827 (debug_names): New global.
1828 ($TARGET_DEBUG_PRINTER): New global.
1829 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1830 name.
1831 Write debug methods. Generate init_debug_target.
1832 * target-debug.h: New file.
1833 * target-delegates.c: Rebuild.
1834 * target.c: Include target-debug.h.
1835 (debug_target): Hoist definition.
1836 (target_kill, target_get_section_table, target_memory_map)
1837 (target_flash_erase, target_flash_done, target_detach)
1838 (target_disconnect, target_wait, target_resume)
1839 (target_pass_signals, target_program_signals, target_follow_fork)
1840 (target_mourn_inferior, target_search_memory)
1841 (target_thread_address_space, target_close)
1842 (target_find_new_threads, target_core_of_thread)
1843 (target_verify_memory, target_insert_mask_watchpoint)
1844 (target_remove_mask_watchpoint): Remove targetdebug code.
1845 (debug_to_post_attach, debug_to_prepare_to_store)
1846 (debug_to_files_info, debug_to_insert_breakpoint)
1847 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1848 (debug_to_region_ok_for_hw_watchpoint)
1849 (debug_to_can_accel_watchpoint_condition)
1850 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1851 (debug_to_watchpoint_addr_within_range)
1852 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1853 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1854 (debug_to_terminal_init, debug_to_terminal_inferior)
1855 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1856 (debug_to_terminal_save_ours, debug_to_terminal_info)
1857 (debug_to_load, debug_to_post_startup_inferior)
1858 (debug_to_insert_fork_catchpoint)
1859 (debug_to_remove_fork_catchpoint)
1860 (debug_to_insert_vfork_catchpoint)
1861 (debug_to_remove_vfork_catchpoint)
1862 (debug_to_insert_exec_catchpoint)
1863 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1864 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1865 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1866 (setup_target_debug): Call init_debug_target.
1867 * target.h (TARGET_DEBUG_PRINTER): New macro.
1868 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1869 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1870
2c51604d
GB
18712014-07-24 Gary Benson <gbenson@redhat.com>
1872
1873 * exceptions.h (throw_vfatal): Renamed to...
1874 (throw_vquit): New declaration.
1875 (throw_quit): Likewise.
1876 * exceptions.c (throw_vfatal): Renamed to...
1877 (throw_vquit): New function.
1878 (throw_quit): Likewise.
1879 (throw_error): Call throw_verror rather than throw_it.
1880 * utils.h (vfatal): Removed.
1881 (fatal): Likewise.
1882 * utils.c (vfatal): Removed.
1883 (fatal): Likewise.
1884 (internal_verror): Replaced call to fatal with call to throw_quit.
1885 (quit): Replaced calls to fatal with calls to throw_quit.
1886
34211963
ME
18872014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1888
1889 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1890 target_read_code.
1891
a52b4d3e
ME
18922014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1893
1894 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1895 less than zero in conditional expression.
1896
a8bdc56b
TT
18972014-07-23 Tom Tromey <tromey@redhat.com>
1898
1899 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1900 ($INTRO_PART): Don't match whitespace.
1901 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1902 argument matching.
1903 ($METHOD): Add $METHOD_TRAILER.
1904 (trim): Rewrite.
1905 (scan_target_h): New sub.
1906 Change main loop not to collect state.
1907 * target-delegates.c: Rebuild.
1908
91b52240
GB
19092014-07-23 Gary Benson <gbenson@redhat.com>
1910
1911 * cp-support.c (gdb_demangle): Fix build on systems without
1912 sigaltstack.
1913
45326f6f
JK
19142014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1915
1916 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1917 for reference entry value target data value.
1918
e214cf6c
JK
19192014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1920
1921 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1922 value_available_contents_eq.
1923
bddbbedd
PA
19242014-07-22 Pedro Alves <palves@redhat.com>
1925
1926 * value.c (allocate_optimized_out_value): Don't mark value as
1927 non-lazy.
1928
45c71484
JW
19292014-07-22 Jiong Wang <jiong.wang@arm.com>
1930
1931 * MAINTAINERS (Write After Approval): Update my email address.
1932
9597b22a
DE
19332014-07-20 Doug Evans <dje@google.com>
1934
1935 PR server/17147
1936 * remote.c (putpkt_binary): Add text to error message.
1937
91101fe5
YQ
19382014-07-20 Yao Qi <yao@codesourcery.com>
1939
1940 * eval.c: Remove "Chill" from comments.
1941 * gdbtypes.h: Likewise.
1942 * symtab.h: Likewise.
1943
c9402c95
YQ
19442014-07-20 Yao Qi <yao@codesourcery.com>
1945
1946 * std-operator.def: Update comments to TERNOP_SLICE.
1947
ae8fddda
YQ
19482014-07-20 Yao Qi <yao@codesourcery.com>
1949
1950 * std-operator.def: Remove BINOP_RANGE.
1951 * breakpoint.c (watchpoint_exp_is_const): Update.
1952 * expprint.c (dump_subexp_body_standard): Likewise.
1953 * eval.c (init_array_element): Remove dead code.
1954 (evaluate_subexp_standard): Likewise.
1955
9c816640
YQ
19562014-07-20 Yao Qi <yao@codesourcery.com>
1957
1958 * std-operator.def: Remove BINOP_IN.
1959 * breakpoint.c (watchpoint_exp_is_const): Update.
1960 * eval.c (evaluate_subexp_standard): Likewise.
1961 * expprint.c (dump_subexp_body_standard): Likewise.
1962
164224e9
ME
19632014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1964
1965 * microblaze-tdep.c (microblaze_register_names): Add
1966 the rshr and rslr register names.
1967 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1968 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1969 Use of tdesc_numbered_register. Use of
1970 microblaze_register_g_packet_guesses. Use of
1971 tdesc_use_registers. Use of set_gdbarch_register_type.
1972 (microblaze_register_g_packet_guesses): New.
1973 * microblaze-tdep.h (microblaze_reg_num): Add
1974 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1975 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1976 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1977 * features/microblaze-core.xml: New file.
1978 * features/microblaze-stack-protect.xml: New file.
1979 * features/microblaze-with-stack-protect.c: New file.
1980 * features/microblaze-with-stack-protect.xml: New file.
1981 * features/microblaze.xml: New file.
1982 * features/microblaze.c: New file.
1983 * features/Makefile (microblaze-with-stack-protect): Add
1984 microblaze-with-stack-protect microblaze and microblaze-expedite.
1985 * regformats/microblaze-with-stack-protect.dat: New file.
1986 * regformats/microblaze.dat: New file.
1987 * doc/gdb.texinfo (MicroBlaze Features): Added.
1988
e8b2341c
TT
19892014-07-18 Tom Tromey <tromey@redhat.com>
1990
1991 * exec.c (exec_ops): Now static.
1992 * exec.h (exec_ops): Don't declare.
1993
44e89118
TT
19942014-07-18 Tom Tromey <tromey@redhat.com>
1995
1996 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1997 to find_target_beneath.
1998 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1999 find_target_beneath.
2000 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
2001
b0ed115f
TT
20022014-07-18 Tom Tromey <tromey@redhat.com>
2003
2004 PR gdb/17130:
2005 * utils.c (quit): Use target_supports_terminal_ours.
2006 * target.h (target_supports_terminal_ours): Declare.
2007 * target.c (target_supports_delete_record): Don't check
2008 to_delete_record against NULL.
2009 (target_supports_terminal_ours): New function.
2010
e75fdfca
TT
20112014-07-18 Tom Tromey <tromey@redhat.com>
2012
2013 PR gdb/17130:
2014 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
2015 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
2016 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
2017 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
2018 * windows-nat.c (windows_xfer_partial): Always delegate.
2019 * record-btrace.c (record_btrace_xfer_partial): Simplify
2020 delegation.
2021 (record_btrace_fetch_registers, record_btrace_store_registers)
2022 (record_btrace_prepare_to_store, record_btrace_resume)
2023 (record_btrace_wait, record_btrace_find_new_threads)
2024 (record_btrace_thread_alive): Likewise.
2025 * procfs.c (procfs_xfer_partial): Always delegate.
2026 * corelow.c (core_xfer_partial): Always delegate.
2027 * sol-thread.c (sol_find_new_threads): Simplify delegation.
2028
83814951
TT
20292014-07-18 Tom Tromey <tromey@redhat.com>
2030
2031 * exec.c (exec_make_note_section): Move earlier.
2032
b8b8facf
DE
20332014-07-17 Doug Evans <dje@google.com>
2034
74b49205 2035 PR gdb/17170
b8b8facf
DE
2036 * maint.c (count_symtabs_and_blocks): Handle NULL
2037 current_program_space.
2038 (report_command_stats): Check global enabled flag in addition to
2039 recorded enabled flag.
2040 (make_command_stats_cleanup): Handle msg_type == 0, startup.
2041
69ff6be5
PA
20422014-07-16 Pedro Alves <palves@redhat.com>
2043
2044 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
2045
252db1b5
TT
20462014-07-16 Tom Tromey <tromey@redhat.com>
2047
2048 * target.h (struct target_ops) <to_delete_record>: Reformat
2049 comment.
2050
a432721e
TT
20512014-07-16 Tom Tromey <tromey@redhat.com>
2052
2053 * target-delegates.c: Rebuild.
2054
487d9753
PL
20552014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2056
2057 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2058 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2059 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2060 (avr_pointer_to_address): Likewise.
2061 (avr_address_class_type_flags): New function.
2062 (avr_address_class_type_flags_to_name): Likewise.
2063 (avr_address_class_name_to_type_flags): Likewise.
2064 (avr_gdbarch_init): Set address_class_type_flags,
2065 address_class_type_flags_to_name and
2066 address_class_name_to_type_flags.
2067
57745c90
PA
20682014-07-15 Pedro Alves <palves@redhat.com>
2069
2070 * linux-nat.c (kill_callback): Save errno and work with saved
2071 copy.
2072
2d40be18
SM
20732014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2074
2075 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2076
572f6555
EBM
20772014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2078
2079 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2080 breakpoint support correctly.
2081
cc1c52ad
PA
20822014-07-14 Pedro Alves <palves@redhat.com>
2083
2084 * utils.c (prompt_for_continue): Call target_terminal_ours.
2085
1e973570
PA
20862014-07-14 Pedro Alves <palves@redhat.com>
2087
2088 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2089 catch_errors. Don't re-enable stdin or notify observers where,
2090 and rethrow error.
2091 (fetch_inferior_event_wrapper): Delete.
2092
93d6eb10
PA
20932014-07-14 Pedro Alves <palves@redhat.com>
2094
2095 PR gdb/17072
2096 * top.c: Include "inf-loop.h".
2097 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2098 field.
2099 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2100 was async before.
2101 (gdb_readline_wrapper): Store whether the target is async, and
2102 make it sync.
2103
0017922d
PA
21042014-07-14 Pedro Alves <palves@redhat.com>
2105
2106 PR gdb/17072
2107 * top.c (gdb_readline_wrapper_line): Tweak comment.
2108 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2109 the input handler callback.
2110
94696ad3
PA
21112014-07-14 Pedro Alves <palves@redhat.com>
2112
2113 PR gdb/17072
2114 * main.c: Include event-top.h.
2115 (handle_command_errors): New function.
2116 (catch_command_errors, catch_command_errors_const): Use it.
2117
9d1e69a2
PA
21182014-07-14 Pedro Alves <palves@redhat.com>
2119
2120 * exceptions.c (catch_command_errors, catch_command_errors_const):
2121 Moved to main.c.
2122 * exceptions.h (catch_command_errors_ftype)
2123 (catch_command_errors_const_ftype): Moved to main.c.
2124 (catch_command_errors, catch_command_errors_const): Delete
2125 declarations.
2126 * main.c (catch_command_errors_ftype)
2127 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2128 (catch_command_errors, catch_command_errors_const)): Moved here
2129 from exceptions.c and make static.
2130
feefc97b
PA
21312014-07-14 Pedro Alves <palves@redhat.com>
2132
2133 * exceptions.c (print_any_exception): Delete.
2134 (catch_exceptions_with_msg): Use exception_print instead of
2135 print_any_exception.
2136 (catch_errors): Use exception_fprintf instead of
2137 print_any_exception.
2138 (catch_command_errors, catch_command_errors_const): Use
2139 exception_print instead of print_any_exception.
2140
c933f875
PA
21412014-07-14 Pedro Alves <palves@redhat.com>
2142
2143 * infcall.c (run_inferior_call): Set 'sync_execution' while
2144 running the inferior call.
2145
feb6f816
PA
21462014-07-14 Pedro Alves <palves@redhat.com>
2147
2148 * value.c (value_contents_equal): Delete function.
2149 * value.h (value_contents_equal): Delete declaration.
2150
d98b7a16
TT
21512014-07-14 Tom Tromey <tromey@redhat.com>
2152
2153 PR exp/17106:
2154 * gdbtypes.c (is_dynamic_type_internal): New function, from
2155 is_dynamic_type.
2156 (is_dynamic_type): Rewrite.
2157 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2158 (resolve_dynamic_struct): Likewise.
2159 (resolve_dynamic_type_internal): New function, from
2160 resolve_dynamic_type.
2161 (resolve_dynamic_type): Rewrite.
2162
548740d6
TT
21632014-07-14 Tom Tromey <tromey@redhat.com>
2164
2165 * target.c (target_require_runnable): Also check record_stratum.
2166 Update comment.
2167
808f7ab1
YQ
21682014-07-11 Yao Qi <yao@codesourcery.com>
2169
2170 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2171 thumb_instruction_restores_sp return true.
2172
540314bd
YQ
21732014-07-11 Yao Qi <yao@codesourcery.com>
2174
2175 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2176 (thumb_in_function_epilogue_p): Call
2177 thumb_instruction_restores_sp.
2178
1db01f22
YQ
21792014-07-11 Yao Qi <yao@codesourcery.com>
2180
2181 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2182 'add sp, #imm'.
2183 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2184
3116063b
GB
21852014-07-11 Gary Benson <gbenson@redhat.com>
2186
2187 * amd64-linux-nat.c (gdbcore.h): Remove include.
2188 (regset.h): Likewise.
2189 (nat/linux-btrace.h): Likewise.
2190 (btrace.h): Likewise.
2191 (gdb_assert.h): Likewise.
2192 (string.h): Likewise.
2193 (sys/uio.h): Likewise.
2194 (sys/debugreg.h): Likewise.
2195 (sys/syscall.h): Likewise.
2196 (sys/procfs.h): Likewise.
2197 (sys/user.h): Likewise.
2198 (asm/ptrace.h): Likewise.
2199 (i386-nat.h): Likewise.
2200 * i386-linux-nat.c (i386-nat.h): Likewise.
2201 (regset.h): Likewise.
2202 (target.h): Likewise.
2203 (linux-nat.h): Likewise.
2204 (nat/linux-btrace.h): Likewise.
2205 (btrace.h): Likewise.
2206 (gdb_assert.h): Likewise.
2207 (string.h): Likewise.
2208 (sys/uio.h): Likewise.
2209 (sys/user.h): Likewise.
2210 (sys/procfs.h): Likewise.
2211 (sys/reg.h): Likewise.
2212 (sys/debugreg.h): Likewise.
2213 (ORIG_EAX): Remove definition.
2214
040baaf6
GB
22152014-07-11 Gary Benson <gbenson@redhat.com>
2216
2217 * i386-linux-nat.h: New file.
2218 * x86-linux-nat.h: Likewise.
2219 * x86-linux-nat.c: Likewise.
2220 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2221 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2222 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2223 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2224 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2225 (PTRACE_SETREGSET): Likewise.
2226 (arch_lwp_info): Now in x86-linux-nat.c.
2227 (have_ptrace_getregset): Now in x86-linux-nat.h.
2228 (x86_linux_dr_get): Now in x86-linux-nat.c.
2229 (x86_linux_dr_set): Likewise.
2230 (x86_linux_dr_get_addr): Likewise.
2231 (x86_linux_dr_get_control): Likewise.
2232 (x86_linux_dr_get_status): Likewise.
2233 (update_debug_registers_callback): Likewise.
2234 (x86_linux_dr_set_control): Likewise.
2235 (x86_linux_dr_set_addr): Likewise.
2236 (x86_linux_prepare_to_resume): Likewise.
2237 (x86_linux_new_thread): Likewise.
2238 (x86_linux_new_fork): Likewise.
2239 (x86_linux_get_thread_area): Likewise.
2240 (super_post_startup_inferior): Likewise.
2241 (x86_linux_child_post_startup_inferior): Likewise.
2242 (AMD64_LINUX_USER64_CS): Likewise.
2243 (AMD64_LINUX_X32_DS): Likewise.
2244 (x86_linux_read_description): Likewise.
2245 (x86_linux_enable_btrace): Likewise.
2246 (x86_linux_disable_btrace): Likewise.
2247 (x86_linux_teardown_btrace): Likewise.
2248 (x86_linux_read_btrace): Likewise.
2249 (x86_linux_create_target): Likewise.
2250 (x86_linux_add_target): Likewise.
2251 * i386-linux-nat.c (x86-linux-nat.h): New include.
2252 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2253 (PTRACE_SETREGSET): Likewise.
2254 (arch_lwp_info): Now in x86-linux-nat.c.
2255 (have_ptrace_getregset): Now in x86-linux-nat.h.
2256 (x86_linux_dr_get): Now in x86-linux-nat.c.
2257 (x86_linux_dr_set): Likewise.
2258 (x86_linux_dr_get_addr): Likewise.
2259 (x86_linux_dr_get_control): Likewise.
2260 (x86_linux_dr_get_status): Likewise.
2261 (update_debug_registers_callback): Likewise.
2262 (x86_linux_dr_set_control): Likewise.
2263 (x86_linux_dr_set_addr): Likewise.
2264 (x86_linux_prepare_to_resume): Likewise.
2265 (x86_linux_new_thread): Likewise.
2266 (x86_linux_new_fork): Likewise.
2267 (x86_linux_get_thread_area): Likewise.
2268 (super_post_startup_inferior): Likewise.
2269 (x86_linux_child_post_startup_inferior): Likewise.
2270 (AMD64_LINUX_USER64_CS): Likewise.
2271 (AMD64_LINUX_X32_DS): Likewise.
2272 (x86_linux_read_description): Likewise.
2273 (x86_linux_enable_btrace): Likewise.
2274 (x86_linux_disable_btrace): Likewise.
2275 (x86_linux_teardown_btrace): Likewise.
2276 (x86_linux_read_btrace): Likewise.
2277 (x86_linux_create_target): Likewise.
2278 (x86_linux_add_target): Likewise.
2279
1aa7e42c
GB
22802014-07-11 Gary Benson <gbenson@redhat.com>
2281
2282 * amd64-linux-nat.c: Comment and whitespace changes.
2283 * i386-linux-nat.c: Comment and whitespace changes.
2284
c1e246a0
GB
22852014-07-11 Gary Benson <gbenson@redhat.com>
2286
2287 * amd64-linux-nat.c (x86_linux_create_target): New function.
2288 (x86_linux_add_target): Likewise.
2289 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2290 * i386-linux-nat.c (x86_linux_create_target): New function.
2291 (x86_linux_add_target): Likewise.
2292 (_initialize_i386_linux_nat): Delegate to the above new functions.
2293
8c420b8d
GB
22942014-07-11 Gary Benson <gbenson@redhat.com>
2295
2296 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2297 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2298 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2299 (ps_get_thread_area): Delegate to the above.
2300
cb1da100
GB
23012014-07-11 Gary Benson <gbenson@redhat.com>
2302
2303 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2304 x86_linux_read_description. All uses updated. amd64-specific
2305 code conditionalized. Conditionalized i386-specific code added.
2306 Redundant cast removed.
2307 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2308 x86_linux_read_description. All uses updated. i386-specific
2309 code conditionalized. Conditionalized amd64-specific code added.
2310 One sizeof replaced with the actual type it is describing.
2311
2acf3cd0
GB
23122014-07-11 Gary Benson <gbenson@redhat.com>
2313
2314 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2315 x86_linux_dr_get. All uses updated.
2316 (amd64_linux_dr_set): Renamed to
2317 x86_linux_dr_set. All uses updated.
2318 (amd64_linux_dr_get_addr): Renamed to
2319 x86_linux_dr_get_addr. All uses updated.
2320 (amd64_linux_dr_get_control): Renamed to
2321 x86_linux_dr_get_control. All uses updated.
2322 (amd64_linux_dr_get_status): Renamed to
2323 x86_linux_dr_get_status. All uses updated.
2324 (amd64_linux_dr_set_control): Renamed to
2325 x86_linux_dr_set_control. All uses updated.
2326 (amd64_linux_dr_set_addr): Renamed to
2327 x86_linux_dr_set_addr. All uses updated.
2328 (amd64_linux_prepare_to_resume): Renamed to
2329 x86_linux_prepare_to_resume. All uses updated.
2330 (amd64_linux_new_thread): Renamed to
2331 x86_linux_new_thread. All uses updated.
2332 (amd64_linux_new_fork): Renamed to
2333 x86_linux_new_fork. All uses updated.
2334 (amd64_linux_child_post_startup_inferior): Renamed to
2335 x86_linux_child_post_startup_inferior. All uses updated.
2336 (amd64_linux_enable_btrace): Renamed to
2337 x86_linux_enable_btrace. All uses updated.
2338 (amd64_linux_disable_btrace): Renamed to
2339 x86_linux_disable_btrace. All uses updated.
2340 (amd64_linux_teardown_btrace): Renamed to
2341 x86_linux_teardown_btrace. All uses updated.
2342 (amd64_linux_read_btrace): Renamed to
2343 x86_linux_read_btrace. All uses updated.
2344 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2345 x86_linux_dr_get. All uses updated.
2346 (i386_linux_dr_set): Renamed to
2347 x86_linux_dr_set. All uses updated.
2348 (i386_linux_dr_get_addr): Renamed to
2349 x86_linux_dr_get_addr. All uses updated.
2350 (i386_linux_dr_get_control): Renamed to
2351 x86_linux_dr_get_control. All uses updated.
2352 (i386_linux_dr_get_status): Renamed to
2353 x86_linux_dr_get_status. All uses updated.
2354 (i386_linux_dr_set_control): Renamed to
2355 x86_linux_dr_set_control. All uses updated.
2356 (i386_linux_dr_set_addr): Renamed to
2357 x86_linux_dr_set_addr. All uses updated.
2358 (i386_linux_prepare_to_resume): Renamed to
2359 x86_linux_prepare_to_resume. All uses updated.
2360 (i386_linux_new_thread): Renamed to
2361 x86_linux_new_thread. All uses updated.
2362 (i386_linux_new_fork): Renamed to
2363 x86_linux_new_fork. All uses updated.
2364 (i386_linux_child_post_startup_inferior): Renamed to
2365 x86_linux_child_post_startup_inferior. All uses updated.
2366 (i386_linux_enable_btrace): Renamed to
2367 x86_linux_enable_btrace. All uses updated.
2368 (i386_linux_disable_btrace): Renamed to
2369 x86_linux_disable_btrace. All uses updated.
2370 (i386_linux_teardown_btrace): Renamed to
2371 x86_linux_teardown_btrace. All uses updated.
2372 (i386_linux_read_btrace): Renamed to
2373 x86_linux_read_btrace. All uses updated.
2374
b9c1d481
AS
23752014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2376
2377 * remote.c (extended_remote_post_attach): New function.
2378 (init_extended_remote_ops): Install it as to_post_attach method.
2379
7180e04a
PA
23802014-07-09 Pedro Alves <palves@redhat.com>
2381
2382 * infcmd.c (attach_command_post_wait): Don't call
2383 target_terminal_inferior here.
2384 (attach_command): Call it here instead.
2385
9a9a7608
AB
23862014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2387
2388 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2389 field.
2390 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2391 from varobj.c, with additional checks.
2392 (c_varobj_ops): Fill in is_path_expr_parent field.
2393 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2394 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2395 field.
2396 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2397 ops method.
2398 (varobj_default_is_path_expr_parent): New function.
2399 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2400 (varobj_default_is_path_expr_parent): Declare new function.
2401
1f267ae3
MM
24022014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2403
2404 * infcmd.c (finish_backward): Turn internal error into normal error.
2405
b2ee242b
PA
24062014-07-07 Pedro Alves <palves@redhat.com>
2407
8a869bca 2408 PR gdb/17096
b2ee242b
PA
2409 * remote.c (async_handle_remote_sigint)
2410 (async_handle_remote_sigint_twice): Call
2411 gdb_call_async_signal_handler instead of
2412 mark_async_signal_handler.
2413
38e229b2
TT
24142014-07-07 Tom Tromey <tromey@redhat.com>
2415
2416 * target-delegates.c: Rebuild.
2417 * target.c (target_info_record): Remove.
2418 * record.c (info_record_command): Unconditionally call
2419 to_info_record.
2420 * target.h (struct target_ops) <to_info_record>: Use
2421 TARGET_DEFAULT_IGNORE.
2422 (target_info_record): Remove.
2423
f0f9ff95
TT
24242014-07-07 Tom Tromey <tromey@redhat.com>
2425
2426 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2427 TARGET_DEFAULT_NORETURN.
2428 * target.c (generic_tls_error): New function.
2429 (target_translate_tls_address): Don't search target stack.
2430 * target-delegates.c: Rebuild.
2431 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2432 stack.
2433 * linux-thread-db.c (thread_db_get_thread_local_address):
2434 Unconditionally call beneath target.
2435
4a5be5ee
MK
24362014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2437
2438 * cli/cli-logging.c (pop_output_files): Assign targerr to
2439 gdb_stdtargerr.
2440
92c3b204
AB
24412014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2442
2443 * MAINTAINERS (Write After Approval): Update my email address.
2444
9b11e3a7
GB
24452014-07-02 Gary Benson <gbenson@redhat.com>
2446
2447 * proc-service.c (ps_xfer_memory): Update comment.
2448 (ps_pstop): Remove unused function.
2449 (ps_pcontinue): Likewise.
2450 (ps_lstop): Likewise.
2451 (ps_lcontinue): Likewise.
2452 (ps_lgetxregsize): Likewise.
2453 (ps_lgetxregs): Likewise.
2454 (ps_lsetxregs): Likewise.
2455 (ps_plog): Likewise.
2456 (ps_ptread): Likewise.
2457 (ps_ptwrite): Likewise.
2458
cf363f18
MW
24592014-07-01 Mark Wielaard <mjw@redhat.com>
2460
2461 * dwarf2read.c (add_array_cv_type): New function.
2462 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2463 (read_tag_volatile_type): Likewise.
2464
82ae6c8d
TT
24652014-07-01 Tom Tromey <tromey@redhat.com>
2466
2467 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2468 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2469 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2470 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2471 * command.h (cmd_cfunc_ftype): Move earlier.
2472 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2473 (add_com, add_info): Use cmd_cfunc_ftype.
2474
96142726
TT
24752014-06-30 Tom Tromey <tromey@redhat.com>
2476
2477 * symtab.c (operator_chars): Make parameters and return type
2478 const.
2479 (file_matches): Make "files" const.
2480 (struct search_symbols_data) <files>: Now const.
2481 (search_symbols): Make "regexp" and "files" parameters const.
2482 Update.
2483 (symtab_symbol_info): Remove cast.
2484 (rbreak_command): Update.
2485 * symtab.h (search_symbols): Update.
2486
b67a2c6f
YQ
24872014-06-27 Yao Qi <yao@codesourcery.com>
2488
2489 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2490 Change parameter type to 'struct thread_info *'. Caller
2491 updated.
2492 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2493 Update declaration.
2494 * dummy-frame.c (struct dummy_frame_id): New.
2495 (dummy_frame_id_eq): New function.
2496 (struct dummy_frame) <id>: Change its type to 'struct
2497 dummy_frame_id'.
2498 (dummy_frame_push): Add parameter ptid and save it in
2499 dummy_frame_id.
2500 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2501 inferior_ptid.
2502 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2503 to inferior_ptid.
2504 (lookup_dummy_frame): Change parameter type to 'struct
2505 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2506 instead of frame_id_eq.
2507 (dummy_frame_pop): Add parameter ptid. Callers updated.
2508 Update comments. Compose dummy_frame_id and pass it to
2509 lookup_dummy_frame.
2510 (dummy_frame_discard): Add parameter ptid.
2511 (dummy_frame_sniffer): Compose dummy_frame_id and call
2512 dummy_frame_id_eq instead of frame_id_eq.
2513 (fprint_dummy_frames): Print ptid.
2514 * dummy-frame.h: Remove comments.
2515 (dummy_frame_push): Add ptid in declaration.
2516 (dummy_frame_pop, dummy_frame_discard): Likewise.
2517
5b10184c
TT
25182014-06-26 Tom Tromey <tromey@redhat.com>
2519
2520 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2521 * command.h (error_no_arg): Update.
2522
06900326
TT
25232014-06-26 Tom Tromey <tromey@redhat.com>
2524
2525 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2526 (do_show_command): Make "arg" const.
2527 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2528
c2bcbb1d
TT
25292014-06-26 Tom Tromey <tromey@redhat.com>
2530
2531 * record-full.c (record_full_get_bookmark): Make "args" const.
2532 (record_full_goto_bookmark): Make "raw_bookmark" const.
2533 * record.c (record_goto): New function.
2534 (cmd_record_goto): Use it. Now static.
2535 * record.h (record_goto): Declare.
2536 (cmd_record_goto): Remove declaration.
2537 * target-delegates.c: Rebuild.
2538 * target.h (struct target_ops) <to_get_bookmark,
2539 to_goto_bookmark>: Make parameter const.
2540
9cbe5fff
TT
25412014-06-26 Tom Tromey <tromey@redhat.com>
2542
2543 * defs.h (generic_load): Update.
2544 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2545 * monitor.c (monitor_load): Make "args" const.
2546 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2547 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2548 const.
2549 (mips_load): Make "file" const.
2550 * remote-sim.c (gdbsim_load): Make "args" const.
2551 * remote.c (remote_load): Make "name" const.
2552 * symfile.c (generic_load): Make "args" const.
2553 * target-delegates.c: Rebuild.
2554 * target.c (target_load): Make "arg" const.
2555 (debug_to_load): Make "args" const.
2556 * target.h (struct target_ops) <to_load>: Make parameter const.
2557 (target_load): Update.
2558
34a68019
TT
25592014-06-26 Tom Tromey <tromey@redhat.com>
2560
2561 PR symtab/16902:
2562 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2563 (dwarf2_physname, read_partial_die)
2564 (guess_partial_die_structure_name, fixup_partial_die)
2565 (guess_full_die_structure_name, anonymous_struct_prefix)
2566 (dwarf2_name): Use per-BFD obstack.
2567
efc889c1
YQ
25682014-06-26 Yao Qi <yao@codesourcery.com>
2569
2570 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2571 dummyframe and this_id into inner block below.
2572
4395285e
YQ
25732014-06-26 Yao Qi <yao@codesourcery.com>
2574
2575 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2576 with "signal_pass[0]" in the initialization of signal_pass.
2577
aef92902
MM
25782014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2579
2580 * record-btrace.c (record_btrace_generating_corefile)
2581 (record_btrace_prepare_to_generate_core)
2582 (record_btrace_done_generating_core): New.
2583 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2584 (record_btrace_store_registers, record_btrace_prepare_to_store):
2585 Forward request when generating a core file.
2586 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2587 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2588 to_done_generating_core.
2589
5fff78c4
MM
25902014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2591
2592 * target.h (target_ops) <to_prepare_to_generate_core>
2593 <to_done_generating_core>: New.
2594 (target_prepare_to_generate_core, target_done_generating_core): New.
2595 * target.c (target_prepare_to_generate_core)
2596 (target_done_generating_core): New.
2597 * target-delegates.c: Regenerate.
2598 * gcore.c: (write_gcore_file): Rename to ...
2599 (write_gcore_file_1): ...this.
2600 (write_gcore_file): Call target_prepare_to_generate_core
2601 and target_done_generating_core.
2602
1d1f1ccb
MM
26032014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2604
2605 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2606 * gcore.c (write_gcore_file): Free memory returned from
2607 make_corefile_notes.
2608 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2609 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2610
3343ef86
YQ
26112014-06-24 Yao Qi <yao@codesourcery.com>
2612
2613 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2614 (arm_linux_init_abi): Set skip_trampoline_code with
2615 gdbarch_skip_trampoline_code instead of
2616 find_solib_trampoline_target.
2617
18d18ac8
YQ
26182014-06-24 Yao Qi <yao@codesourcery.com>
2619
2620 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2621 arm_skip_bx_reg returns non-zero.
2622
80d8d390
YQ
26232014-06-24 Yao Qi <yao@codesourcery.com>
2624
2625 * arm-tdep.c (arm_skip_bx_reg): New function.
2626 (arm_skip_stub): Call arm_skip_bx_reg.
2627
6a18a01c
DB
26282014-06-23 Don Breazeal <donb@codesourcery.com>
2629
2630 * MAINTAINERS: Add myself as write-after-approval maintainer.
2631
8e9db26e
PA
26322014-06-23 Pedro Alves <palves@redhat.com>
2633
2634 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2635 DR_CONTROL before setting DR0..DR3.
2636 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2637 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2638 bits of DR_CONTROL related to the debug register slot being
2639 disabled. If all slots are vacant, clear local slowdown as well,
2640 and assert DR_CONTROL is 0.
2641
70afc5b7
SC
26422014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2643
2644 * python/lib/gdb/command/xmethods.py
2645 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2646 current progspace only if the string "progspace" matches LOCUS_RE.
2647
840ed64d
JK
26482014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2649
2650 Fix --with-system-readline with readline-6.3 patch 5.
2651 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2652 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2653 types.
2654
26f2dc30
TT
26552014-06-20 Tom Tromey <tromey@redhat.com>
2656
2657 * dwarf2read.c (dw2_get_real_path): Use correct type in
2658 OBSTACK_CALLOC.
2659 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2660
125f8a3d
GB
26612014-06-20 Gary Benson <gbenson@redhat.com>
2662
2663 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2664 * common/glibc_thread_db.h: Likewise.
2665 * common/i386-cpuid.h: Likewise.
2666 * common/i386-gcc-cpuid.h: Likewise.
2667 * common/linux-btrace.h: Likewise.
2668 * common/linux-osdata.h: Likewise.
2669 * common/linux-procfs.h: Likewise.
2670 * common/linux-ptrace.h: Likewise.
2671 * common/mips-linux-watch.h: Likewise.
2672 * common/linux-btrace.c: Moved to nat.
2673 * common/linux-osdata.c: Likewise.
2674 * common/linux-procfs.c: Likewise.
2675 * common/linux-ptrace.c: Likewise.
2676 * common/mips-linux-watch.c: Likewise.
2677 * nat/gdb_thread_db.h: Moved from common.
2678 * nat/glibc_thread_db.h: Likewise.
2679 * nat/i386-cpuid.h: Likewise.
2680 * nat/i386-gcc-cpuid.h: Likewise.
2681 * nat/linux-btrace.c: Likewise.
2682 * nat/linux-btrace.h: Likewise.
2683 * nat/linux-osdata.c: Likewise.
2684 * nat/linux-osdata.h: Likewise.
2685 * nat/linux-procfs.c: Likewise.
2686 * nat/linux-procfs.h: Likewise.
2687 * nat/linux-ptrace.c: Likewise.
2688 * nat/linux-ptrace.h: Likewise.
2689 * nat/mips-linux-watch.c: Likewise.
2690 * nat/mips-linux-watch.h: Likewise.
2691 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2692 (object file files): Reordered.
2693 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2694 of glibc_thread_db.h.
2695
42995dbd
GB
26962014-06-20 Gary Benson <gbenson@redhat.com>
2697
2698 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2699 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2700 (i386_dr_low): Likewise.
2701 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2702 (i386_dr_low_set_addr): Likewise.
2703 (i386_dr_low_get_addr): Likewise.
2704 (i386_dr_low_can_set_control): Likewise.
2705 (i386_dr_low_set_control): Likewise.
2706 (i386_dr_low_get_control): Likewise.
2707 (i386_dr_low_get_status): Likewise.
2708 (i386_get_debug_register_length): Likewise.
2709 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2710 (i386_dr_low): Likewise.
2711 * nat/i386-dregs.c (i386-low.h): Remove include.
2712 (i386-nat.h): Likewise.
2713 (nat/i386-dregs.h): New include.
2714 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2715 (i386_dr_low_set_addr): Likewise.
2716 (i386_dr_low_get_addr): Likewise.
2717 (i386_dr_low_can_set_control): Likewise.
2718 (i386_dr_low_set_control): Likewise.
2719 (i386_dr_low_get_control): Likewise.
2720 (i386_dr_low_get_status): Likewise.
2721 (i386_get_debug_register_length): Likewise.
2722 (debug_hw_points): Likewise.
2723
3ed9baed
IB
27242014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2725
2726 * Makefile.in (SFILES): Add d-exp.y.
2727 (YYFILES): Add d-exp.c.
2728 (YYOBJ): Add d-exp.o.
2729 (local-maintainer-clean): Delete d-exp.c.
2730 * d-exp.y: New file.
2731 * d-lang.h (d_parse): New declaration.
2732 (d_error): New declaration.
2733 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2734 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2735 PREC_ORDER operators.
2736 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2737
78c164b0
YQ
27382014-06-19 Yao Qi <yao@codesourcery.com>
2739
2740 * gdbthread.h (any_running): Remove the declaration.
2741 * thread.c (any_running): Remove.
2742
f6e29b6e
YQ
27432014-06-19 Yao Qi <yao@codesourcery.com>
2744
2745 * gdbthread.h (struct thread_info) <state>: Change its type to
2746 'enum thread_state'. Update comments.
2747
034f788c
PA
27482014-06-19 Pedro Alves <palves@redhat.com>
2749
2750 * gdbthread.h (ALL_THREADS): Delete.
2751 (ALL_NON_EXITED_THREADS): New macro.
2752 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2753 instead of ALL_THREADS.
2754 * infrun.c (find_thread_needs_step_over)
2755 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2756 instead of ALL_THREADS.
2757 * record-btrace.c (record_btrace_open)
2758 (record_btrace_stop_recording, record_btrace_close)
2759 (record_btrace_is_replaying, record_btrace_resume)
2760 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2761 * remote.c (append_pending_thread_resumptions): Likewise.
2762 * thread.c (thread_apply_all_command): Likewise.
2763
46e33252
GB
27642014-06-19 Gary Benson <gbenson@redhat.com>
2765
2766 * i386-nat.c (i386_stopped_by_watchpoint):
2767 Use i386_dr_stopped_by_watchpoint.
2768 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2769 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2770
3a8ee006
GB
27712014-06-19 Gary Benson <gbenson@redhat.com>
2772
2773 * nat/i386-dregs.c: New file.
2774 * Makefile.in (i386-dregs.o): New rule.
2775 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2776 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2777 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2778 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2779 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2780 * config/i386/go32.mh (NATDEPFILES): Likewise.
2781 * config/i386/linux.mh (NATDEPFILES): Likewise.
2782 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2783 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2784 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2785 * i386-nat.h (debug_hw_points): New declaration.
2786 * i386-nat.c (breakpoint.h): Remove include.
2787 (command.h): Likewise.
2788 (target.h): Likewise.
2789 (gdb_assert.h): Likewise.
2790 (debug_hw_points): Made nonstatic.
2791 (debug_printf): Now in i386-dregs.c.
2792 (TARGET_HAS_DR_LEN_8): Likewise.
2793 (DR_CONTROL_SHIFT): Likewise.
2794 (DR_CONTROL_SIZE): Likewise.
2795 (DR_RW_EXECUTE): Likewise.
2796 (DR_RW_WRITE): Likewise.
2797 (DR_RW_READ): Likewise.
2798 (DR_RW_IORW): Likewise.
2799 (DR_LEN_1): Likewise.
2800 (DR_LEN_2): Likewise.
2801 (DR_LEN_4): Likewise.
2802 (DR_LEN_8): Likewise.
2803 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2804 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2805 (DR_ENABLE_SIZE): Likewise.
2806 (DR_LOCAL_SLOWDOWN): Likewise.
2807 (DR_GLOBAL_SLOWDOWN): Likewise.
2808 (DR_CONTROL_RESERVED): Likewise.
2809 (I386_DR_CONTROL_MASK): Likewise.
2810 (I386_DR_VACANT): Likewise.
2811 (I386_DR_LOCAL_ENABLE): Likewise.
2812 (I386_DR_GLOBAL_ENABLE): Likewise.
2813 (I386_DR_DISABLE): Likewise.
2814 (I386_DR_SET_RW_LEN): Likewise.
2815 (I386_DR_GET_RW_LEN): Likewise.
2816 (I386_DR_WATCH_HIT): Likewise.
2817 (i386_wp_op_t): Likewise.
2818 (i386_show_dr): Likewise.
2819 (i386_length_and_rw_bits): Likewise.
2820 (i386_insert_aligned_watchpoint): Likewise.
2821 (i386_remove_aligned_watchpoint): Likewise.
2822 (i386_handle_nonaligned_watchpoint): Likewise.
2823 (i386_update_inferior_debug_regs): Likewise.
2824 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2825 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2826 (i386_region_ok_for_watchpoint):
2827 Use i386_dr_region_ok_for_watchpoint.
2828 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2829
322a8e06
GB
28302014-06-19 Gary Benson <gbenson@redhat.com>
2831
2832 * i386-nat.c (i386_insert_hw_breakpoint): Use
2833 i386_insert_watchpoint.
2834 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2835
8f26655c
GB
28362014-06-19 Gary Benson <gbenson@redhat.com>
2837
2838 * i386-nat.c (i386_dr_show): Renamed to
2839 i386_show_dr and made static. All uses updated.
2840 (i386_dr_length_and_rw_bits): Renamed to
2841 i386_length_and_rw_bits and made static.
2842 All uses updated.
2843 (i386_dr_insert_aligned_watchpoint): Renamed to
2844 i386_insert_aligned_watchpoint and made static.
2845 All uses updated.
2846 (i386_dr_remove_aligned_watchpoint): Renamed to
2847 i386_remove_aligned_watchpoint and made static.
2848 All uses updated.
2849 (i386_dr_update_inferior_debug_regs): Renamed to
2850 i386_update_inferior_debug_regs and made static.
2851 All uses updated.
2852 * nat/i386-dregs.h (i386_dr_show): Removed.
2853 (i386_dr_length_and_rw_bits): Likewise.
2854 (i386_dr_insert_aligned_watchpoint): Likewise.
2855 (i386_dr_remove_aligned_watchpoint): Likewise.
2856 (i386_dr_update_inferior_debug_regs): Likewise.
2857
992c7d70
GB
28582014-06-19 Gary Benson <gbenson@redhat.com>
2859
2860 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2861 * configure: Regenerate.
2862 * config.in: Likewise.
2863 * main.c (signal.h): New include.
2864 (setup_alternate_signal_stack): New function.
2865 (captured_main): Call the above.
2866 * cp-support.c (signal.h): New include.
2867 (catch_demangler_crashes): New flag.
2868 (SIGJMP_BUF): New define.
2869 (SIGSETJMP): Likewise.
2870 (SIGLONGJMP): Likewise.
2871 (gdb_demangle_jmp_buf): New static global.
2872 (gdb_demangle_attempt_core_dump): Likewise.
2873 (gdb_demangle_signal_handler): New function.
2874 (gdb_demangle): If catch_demangler_crashes is set, install the
2875 above signal handler before calling bfd_demangle, and restore
2876 the original signal handler afterwards. Display the offending
2877 symbol and call demangler_warning the first time a segmentation
2878 fault is caught.
2879 (_initialize_cp_support): New maint set/show command.
2880
eae7090b
GB
28812014-06-19 Gary Benson <gbenson@redhat.com>
2882
2883 * utils.h (resource_limit_kind): New enum.
2884 (can_dump_core): New declaration.
2885 (warn_cant_dump_core): Likewise.
2886 (dump_core): Likewise.
2887 * utils.c (dump_core): Made nonstatic. Added new
2888 parameter "limit_kind".
2889 (can_dump_core): Made nonstatic. Moved printing code to...
2890 (warn_cant_dump_core): New function.
2891 (can_dump_core_warn): Likewise.
2892 (internal_vproblem): Replace calls to can_dump_core with
2893 calls to can_dump_core_warn. Supply new argument to each.
2894
57fcfb1b
GB
28952014-06-19 Gary Benson <gbenson@redhat.com>
2896
2897 * utils.h (demangler_vwarning): New declaration.
2898 (demangler_warning): Likewise.
2899 * utils.c (struct internal_problem)
2900 <user_settable_should_quit>: New field.
2901 <user_settable_should_dump_core>: Likewise
2902 (internal_error_problem): Add values for above new fields.
2903 (internal_warning_problem): Likewise.
2904 (demangler_warning_problem): New static global.
2905 (demangler_vwarning): New function.
2906 (demangler_warning): Likewise.
2907 (add_internal_problem_command): Selectively add commands.
2908 (_initialize_utils): New internal problem command.
2909 * maint.c (maintenance_demangler_warning): New function.
2910 (_initialize_maint_cmds): New command.
2911
17a40b44
TT
29122014-06-18 Tom Tromey <tromey@redhat.com>
2913
2914 * f-valprint.c (info_common_command_for_block): Update.
2915 * symtab.h (struct general_symbol_info) <common_block>: Now
2916 const.
2917
346d1dfe
TT
29182014-06-18 Tom Tromey <tromey@redhat.com>
2919
2920 * symtab.h (struct symtab) <blockvector>: Now const.
2921 * ada-lang.c (ada_add_global_exceptions): Update.
2922 * buildsym.c (augment_type_symtab): Update.
2923 * dwarf2read.c (dw2_lookup_symbol): Update.
2924 * jit.c (finalize_symtab): Update.
2925 * jv-lang.c (add_class_symtab_symbol): Update.
2926 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2927 Update.
2928 * objfiles.c (objfile_relocate1): Update.
2929 * psymtab.c (lookup_symbol_aux_psymtabs)
2930 (maintenance_check_psymtabs): Update.
2931 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2932 Update.
2933 * spu-tdep.c (spu_catch_start): Update.
2934 * symmisc.c (dump_symtab_1): Update.
2935 * symtab.c (lookup_global_symbol_from_objfile)
2936 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2937 (basic_lookup_transparent_type_quick)
2938 (basic_lookup_transparent_type, find_pc_sect_symtab)
2939 (find_pc_sect_line, search_symbols): Update.
2940 * block.c (find_block_in_blockvector): Make "bl" const.
2941 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2942 const.
2943 (blockvector_contains_pc): Make "bv" const.
2944 (block_for_pc_sect): Update.
2945 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2946 (blockvector_contains_pc): Update.
2947 * breakpoint.c (resolve_sal_pc): Update.
2948 * inline-frame.c (block_starting_point_at): Update.
2949
1834676b
TT
29502014-06-18 Tom Tromey <tromey@redhat.com>
2951
2952 * completer.c (complete_line): Make "line_buffer" const.
2953 * completer.h (complete_line): Update.
2954
ac1a991b
TT
29552014-06-18 Tom Tromey <tromey@redhat.com>
2956
2957 * symtab.c (add_macro_name): Remove unneeded cast.
2958
5bc98e52
TT
29592014-06-18 Tom Tromey <tromey@redhat.com>
2960
2961 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2962 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2963
8236def8
TT
29642014-06-18 Tom Tromey <tromey@redhat.com>
2965
2966 * probe.c (info_probes_for_ops): Make "arg" const.
2967 * probe.h (info_probes_for_ops): Update.
2968
3977b71f
TT
29692014-06-18 Tom Tromey <tromey@redhat.com>
2970
2971 * varobj.c (varobj_create): Update.
2972 * valops.c (value_of_this): Update.
2973 * tracepoint.c (add_local_symbols, scope_info): Update.
2974 * symtab.h (struct general_symbol_info) <block>: Now const.
2975 * symtab.c (skip_prologue_sal)
2976 (default_make_symbol_completion_list_break_on)
2977 (skip_prologue_using_sal): Update.
2978 * stack.h (iterate_over_block_locals)
2979 (iterate_over_block_local_vars): Update.
2980 * stack.c (print_frame_args): Update.
2981 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2982 parameter const.
2983 (get_selected_block): Make return type const.
2984 * python/py-frame.c (frapy_block): Update.
2985 * python/py-block.c (gdbpy_block_for_pc): Update.
2986 * p-exp.y (%union) <bval>: Now const.
2987 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2988 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2989 * m2-exp.y (%union) <bval>: Now const.
2990 * linespec.c (get_current_search_block): Make return type const.
2991 (create_sals_line_offset, find_label_symbols): Update.
2992 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2993 Update.
2994 (block_starting_point_at): Make "block" const.
2995 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2996 (check_exception_resume): Update.
2997 * guile/scm-frame.c (gdbscm_frame_block): Update.
2998 * guile/scm-block.c (gdbscm_lookup_block): Update.
2999 * frame.h (get_frame_block): Update.
3000 (get_selected_block): Make return type const.
3001 * frame.c (frame_id_inner): Update.
3002 * f-valprint.c (info_common_command_for_block)
3003 (info_common_command): Update.
3004 * dwarf2loc.c (dwarf2_find_location_expression)
3005 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
3006 (locexpr_describe_location_piece): Update.
3007 * c-exp.y (%union) <bval>: Now const.
3008 * breakpoint.c (resolve_sal_pc): Update.
3009 * blockframe.c (get_frame_block):Make return type const.
3010 (get_pc_function_start, get_frame_function, find_pc_sect_function)
3011 (block_innermost_frame): Update.
3012 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
3013 (block_for_pc, block_for_pc_sect): Update.
3014 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
3015 'pblock' const.
3016 (block_for_pc_sect, block_for_pc): Make return type const.
3017 * ax-gdb.c (gen_expr): Update.
3018 * alpha-mdebug-tdep.c (find_proc_desc): Update.
3019 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
3020 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
3021 (ada_read_var_value): Update.
3022 * ada-exp.y (struct name_info) <block>: Now const.
3023 (%union): Likewise.
3024 (block_lookup): Constify.
3025
b9228891
GB
30262014-06-18 Gary Benson <gbenson@redhat.com>
3027
3028 * nat/i386-dregs.h: New file.
3029 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
3030 * i386-nat.h (i386-dregs.h): New include.
3031 (DR_FIRSTADDR): Now in i386-dregs.h.
3032 (DR_LASTADDR): Likewise.
3033 (DR_NADDR): Likewise.
3034 (DR_STATUS): Likewise.
3035 (DR_CONTROL): Likewise.
3036 (i386_debug_reg_state): Likewise.
3037 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
3038
a1aa2221
LM
30392014-06-18 Don Breazeal <donb@codesourcery.com>
3040
3041 * breakpoint.c (set_longjmp_breakpoint): Call
3042 momentary_breakpoint_from_master with additional argument.
3043 (set_longjmp_breakpoint_for_call_dummy): Call
3044 momentary_breakpoint_from_master with additional argument.
3045 (set_std_terminate_breakpoint): Call
3046 momentary_breakpoint_from_master with additional argument.
3047 (momentary_breakpoint_from_master): Add argument to function
3048 definition and use it to initialize structure member flag.
74228e77 3049 (clone_momentary_breakpoint): Call
a1aa2221
LM
3050 momentary_breakpoint_from_master with additional argument.
3051 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3052 member flags set in momentary_breakpoint_from_master.
3053
4be83cc2
GB
30542014-06-18 Gary Benson <gbenson@redhat.com>
3055
3056 * i386-nat.c (i386_show_dr): Renamed to
3057 i386_dr_show and made nonstatic. All uses updated.
3058 (i386_length_and_rw_bits): Renamed to
3059 i386_dr_length_and_rw_bits and made nonstatic.
3060 All uses updated.
3061 (i386_insert_aligned_watchpoint): Renamed to
3062 i386_dr_insert_aligned_watchpoint and made nonstatic.
3063 All uses updated.
3064 (i386_remove_aligned_watchpoint): Renamed to
3065 i386_dr_remove_aligned_watchpoint and made nonstatic.
3066 All uses updated.
3067 (i386_update_inferior_debug_regs): Renamed to
3068 i386_dr_update_inferior_debug_regs and made nonstatic.
3069 All uses updated.
3070
131aa0d4
GB
30712014-06-18 Gary Benson <gbenson@redhat.com>
3072
3073 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3074 (i386_dr_low_can_set_control): Likewise.
3075 (i386_dr_low_set_addr): Likewise.
3076 (i386_dr_low_set_control): Likewise.
3077 (i386_dr_low_get_addr): Likewise.
3078 (i386_dr_low_get_status): Likewise.
3079 (i386_dr_low_get_control): Likewise.
3080 (i386_insert_aligned_watchpoint): Use new macros.
3081 (i386_update_inferior_debug_regs): Likewise.
3082 (i386_stopped_data_address): Likewise.
3083
d9305f7f
GB
30842014-06-18 Gary Benson <gbenson@redhat.com>
3085
3086 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3087 New parameter. All uses updated.
3088
ea008da4
GB
30892014-06-18 Gary Benson <gbenson@redhat.com>
3090
3091 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3092 All uses updated.
3093
1b6d4134
GB
30942014-06-18 Gary Benson <gbenson@redhat.com>
3095
3096 * i386-nat.c (debug_printf): New macro.
3097 (i386_get_debug_register_length): Likewise.
3098 (TARGET_HAS_DR_LEN_8): Use above macro.
3099 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3100 and printf_unfiltered. Use phex to format values.
3101
9b4550ef
GB
31022014-06-18 Gary Benson <gbenson@redhat.com>
3103
3104 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3105 Make const.
3106
6e62758f
GB
31072014-06-18 Gary Benson <gbenson@redhat.com>
3108
3109 * i386-nat.c: Comment changes.
3110
51c79e94
GB
31112014-06-18 Gary Benson <gbenson@redhat.com>
3112
3113 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3114
3e11889a
GB
31152014-06-18 Gary Benson <gbenson@redhat.com>
3116
3117 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3118 (i386_insert_aligned_watchpoint): Likewise.
3119 (i386_remove_aligned_watchpoint): Likewise.
3120 (i386_handle_nonaligned_watchpoint): Likewise.
3121
fc6e2f03
GB
31222014-06-18 Gary Benson <gbenson@redhat.com>
3123
3124 * i386-nat.c: Whitespace changes.
3125
2afe7d50
SB
31262014-06-17 Samuel Bronson <naesten@gmail.com>
3127
3128 * MAINTAINERS: Update Roland McGrath's email address.
3129 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3130 Red Hat a while ago, and giving me a current address.
2afe7d50 3131
3bca49ee
TT
31322014-06-17 Tom Tromey <tromey@redhat.com>
3133
3134 * utils.h (savestring): Remove declaration.
3135
6e366df1
TT
31362014-06-17 Tom Tromey <tromey@redhat.com>
3137
3138 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3139
6be47f0c
KS
31402014-06-16 Keith Seitz <keiths@redhat.com>
3141
3142 PR mi/15863
3143 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3144 to update the varobj if inferior_ptid is null_ptid.
3145
7bc112c1
TT
31462014-06-16 Tom Tromey <tromey@redhat.com>
3147
3148 * target.h (struct target_ops) <to_info_proc>: Make parameter
3149 const.
3150 (target_info_proc): Update.
3151 * target.c (target_info_proc): Make "args" const.
3152 * procfs.c (procfs_info_proc): Update.
3153 * linux-tdep.c (linux_info_proc): Update.
3154 (linux_core_info_proc_mappings): Make "args" const.
3155 (linux_core_info_proc): Update.
3156 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3157 * gdbarch.c: Rebuild.
3158 * gdbarch.h: Rebuild.
3159 * corelow.c (core_info_proc): Update.
3160
fee354ee
TT
31612014-06-16 Tom Tromey <tromey@redhat.com>
3162
3163 * target.h (struct target_ops) <to_disconnect>: Make parameter
3164 const.
3165 (target_disconnect): Update.
3166 * target.c (target_disconnect): Make "args" const.
3167 * target-delegates.c: Rebuild.
3168 * remote.c (remote_disconnect): Update.
3169 * record.h (record_disconnect): Update.
3170 * record.c (record_disconnect): Update.
3171 * inf-child.c (inf_child_disconnect): Update.
3172
a30bf1f1
TT
31732014-06-16 Tom Tromey <tromey@redhat.com>
3174
3175 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3176 * target.c (debug_to_rcmd, default_rcmd): Update.
3177 * target-delegates.c: Rebuild.
3178 * remote.c (remote_rcmd): Update.
3179 * monitor.c (monitor_rcmd): Update.
3180
d03de421
PA
31812014-06-16 Pedro Alves <palves@redhat.com>
3182
3183 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3184 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3185 have OBJF_SHARED set.
3186 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3187 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3188 instead of OBJF_USERLOADED.
3189 * objfiles.h (OBJF_SHARED): Update comment.
3190 (userloaded_objfile_contains_address_p): Rename to ...
3191 (shared_objfile_contains_address_p): ... this, and update
3192 comments.
3193 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3194 new objfile.
3195 (remove_symbol_file_command): Skip objfiles that don't have
3196 OBJF_SHARED set.
3197
99f4262f
TT
31982014-06-16 Tom Tromey <tromey@redhat.com>
3199
3200 * minsyms.h (prim_record_minimal_symbol)
3201 (prim_record_minimal_symbol_and_info): Update comments.
3202
97d66cc6
EZ
32032014-06-14 Eli Zaretskii <eliz@gnu.org>
3204
3205 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3206 or --without-guile, according to how GDB was built.
3207
635c7e8a
TT
32082014-06-13 Tom Tromey <tromey@redhat.com>
3209
3210 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3211 to help_list.
3212 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3213 to help_list.
3214 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3215 help_list.
3216 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3217 help_list.Pass all_commands, not -1, to help_list.
3218 * cli/cli-dump.c (dump_command, append_command)
3219 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3220 (binary_dump_command, binary_append_command): Pass all_commands,
3221 not -1, to help_list.
3222 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3223 -1, to help_list.
3224 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3225 -1, to help_list.
3226 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3227 help_list.
3228 * top.c (set_history): Pass all_commands, not -1, to help_list.
3229 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3230 all_commands, not -1, to help_list.
3231 * symfile.c (overlay_command): Pass all_commands, not -1, to
3232 help_list.
3233 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3234 help_list.
3235 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3236 help_list.
3237 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3238 -1, to help_list.
3239 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3240 not -1, to help_list.
3241 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3242 not -1, to help_list.
3243 * maint.c (maintenance_command, maintenance_info_command)
3244 (maintenance_print_command, maintenance_set_cmd): Pass
3245 all_commands, not -1, to help_list.
3246 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3247 help_list.
3248 * language.c (set_check): Pass all_commands, not -1, to help_list.
3249 * infcmd.c (unset_command): Pass all_commands, not -1, to
3250 help_list.
3251 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3252 help_list.
3253 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3254 help_list.
3255 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3256 help_list.
3257 * breakpoint.c (save_command): Pass all_commands, not -1, to
3258 help_list.
3259 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3260 all_commands, not -1, to help_list.
3261
b94ade42
PL
32622014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3263
3264 * regcache.c (struct register_to_invalidate): New structure.
3265 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3266 functions.
3267 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3268
31f628ae
YQ
32692014-06-12 Yao Qi <yao@codesourcery.com>
3270
3271 * varobj.c (varobj_get_num_children): Call
3272 varobj_is_dynamic_p.
3273 (varobj_list_children): Likewise.
3274 (varobj_update): Likewise. Update comments.
3275
cde5ef40
YQ
32762014-06-12 Yao Qi <yao@codesourcery.com>
3277
3278 * varobj.c (varobj_pretty_printed_p): Rename to ...
3279 (varobj_is_dynamic_p): ... this. New function.
3280 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3281 (varobj_is_dynamic_p): Declare.
3282 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3283 (mi_print_value_p, varobj_update_one): Likewise.
3284
576ea091
YQ
32852014-06-12 Pedro Alves <pedro@codesourcery.com>
3286 Yao Qi <yao@codesourcery.com>
3287
3288 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3289 (varobj_get_iterator): Wrap up code for pretty-printer by
3290 "#if HAVE_PYTHON" and "#endif".
3291 (update_dynamic_varobj_children): Likewise.
3292
827f100c
YQ
32932014-06-12 Pedro Alves <pedro@codesourcery.com>
3294 Yao Qi <yao@codesourcery.com>
3295
3296 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3297 gdb_python_initialized is false. Move some code from varobj.c.
3298 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3299 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3300 (struct varobj_item): Moved to varobj-iter.h".
3301 (varobj_clear_saved_item): New function.
3302 (update_dynamic_varobj_children): Move python-related code to
3303 py-varobj.c.
3304 (free_variable): Call varobj_clear_saved_item and
3305 varobj_iter_delete.
3306
e5250216
YQ
33072014-06-12 Pedro Alves <pedro@codesourcery.com>
3308 Yao Qi <yao@codesourcery.com>
3309
3310 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3311 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3312 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3313 (py-varobj.o): New rule.
3314 * python/py-varobj.c: New file.
3315 * python/python-internal.h (py_varobj_get_iterator): Declare.
3316 * varobj-iter.h: New file.
3317 * varobj.c: Include "varobj-iter.h"
3318 (struct varobj) <child_iter>: Change its type from "PyObject *"
3319 to "struct varobj_iter *".
3320 <saved_item>: Likewise.
3321 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3322 [HAVE_PYTHON] (varobj_get_iterator): New function.
3323 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3324 python-specific code to python/py-varobj.c.
3325 (install_visualizer): Call varobj_iter_delete instead of
3326 Py_XDECREF.
3327 * varobj.h (varobj_ensure_python_env): Declare.
3328
5a2e0d6e
YQ
33292014-06-12 Yao Qi <yao@codesourcery.com>
3330
3331 * varobj.c (struct varobj_item): New structure.
3332 (create_child_with_value): Update declaration.
3333 (varobj_add_child): Replace arguments 'name' and 'value' with
3334 'item'. All callers updated.
3335 (install_dynamic_child): Likewise.
3336 (update_dynamic_varobj_children): Likewise.
3337 (varobj_add_child): Likewise.
3338 (create_child_with_value): Likewise.
3339
919b9a93
JB
33402014-06-11 Joel Brobecker <brobecker@adacore.com>
3341
3342 * NEWS: Create a new section for the next release branch.
3343 Rename the section of the current branch, now that it has
3344 been cut.
3345
71a55bdf
JB
33462014-06-11 Joel Brobecker <brobecker@adacore.com>
3347
3348 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3349 * version.in: Bump version to 7.8.50.DATE-cvs.
3350
364fe1f7
PA
33512014-06-11 Pedro Alves <palves@redhat.com>
3352
3353 PR remote/17028
3354 * ser-mingw.c (net_windows_socket_check_pending): New function.
3355 (net_windows_select_thread): Ignore spurious wakeups. Use
3356 net_windows_socket_check_pending.
3357 (net_windows_wait_handle): Check for pending events with
3358 ioctlsocket, through net_windows_socket_check_pending, instead of
3359 checking the socket's event.
3360
5a6c7709
SC
33612014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3362
3363 * python/python-internal.h (gdb_PyObject_GetAttrString)
3364 (gdb_PyObject_HasAttrString): New inline function definitions.
3365 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3366 char * of the second argument to PyObject_GetAttrString.
74228e77 3367
0e58ee40
JB
33682014-06-10 Joel Brobecker <brobecker@adacore.com>
3369
3370 * serial.c (serial_write): Fix index of character to be printed
3371 in call to serial_logchar when serial debug traces are enabled.
3372
d190df30
JB
33732014-06-10 Joel Brobecker <brobecker@adacore.com>
3374
3375 * gdbtypes (resolve_dynamic_range): Add function description.
3376
b4b01d36
PA
33772014-06-09 Pedro Alves <palves@redhat.com>
3378
3379 * linux-nat.c (linux_child_follow_fork): Initialize status with
3380 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3381 inner block. Only pass the signal to PTRACE_DETACH if in pass
3382 state.
3383
3657956b
GB
33842014-06-09 Gary Benson <gbenson@redhat.com>
3385
3386 * common/signals.c (gdb_signal_from_host): Reorder to separate
3387 the always-available ANSI-standard signals from the signals that
3388 require checking.
3389 (do_gdb_signal_to_host): Likewise.
3390 * proc-events.c (signal_table): Likewise.
3391
c077881a
HZ
33922014-06-08 Hui Zhu <hui@codesourcery.com>
3393
3394 * common/linux-ptrace.c (linux_disable_event_reporting): New
3395 function.
3396 * common/linux-ptrace.h (linux_disable_event_reporting): New
3397 declaration.
3398 * linux-nat.c (linux_child_follow_fork): Do a single step before
3399 detach.
3400
4186eb54
KS
34012014-06-07 Keith Seitz <keiths@redhat.com>
3402
3403 Revert:
3404 PR c++/16253
3405 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3406 from symbol_matches_domain in symtab.c. All local callers
3407 of symbol_matches_domain updated.
3408 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3409 search STRUCT_DOMAIN.
3410 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3411 independently. standard_lookup will do that automatically.
3412 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3413 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3414 (cp_lookup_symbol_in_namespace): Likewise.
3415 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3416 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3417 may return a STRUCT_DOMAIN match.
3418 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3419 * cp-support.c: Include language.h.
3420 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3421 VAR_DOMAIN.
3422 * psymtab.c (match_partial_symbol): Compare the requested
3423 domain with the symbol's domain directly.
3424 (lookup_partial_symbol): Likewise.
3425 * symtab.c (lookup_symbol_in_language): Explain when/why
3426 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3427 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3428 appropriate languages.
3429 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3430 and moved to ada-lang.c
3431 (lookup_block_symbol): Explain that this function only returns
3432 symbol matching the requested DOMAIN.
3433 Compare the requested domain with the symbol's domain directly.
3434 (iterate_over_symbols): Compare the requested domain with the
3435 symbol's domain directly.
3436 * symtab.h (symbol_matches_domain): Remove.
3437
25326a28 34382014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3439
3440 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3441 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3442 (gdbscm_guile_version_is_at_least): Declare.
3443 (gdbscm_scm_string_to_int): Declare.
3444 * guile/guile.c (gdbscm_guile_major_version): New global.
3445 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3446 (guile_datadir): New static global.
3447 (gdbscm_guile_data_directory): New function.
3448 (initialize_scheme_side): Update.
3449 (misc_guile_functions): Add guile-data-directory.
3450 (initialize_gdb_module): Fetch guile version number.
3451 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3452 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3453 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3454 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3455 comments.
3456 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3457 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3458 * guile/scm-value.c (gdbscm_value_to_string): Only call
3459 scm_port_conversion_strategy if Guile version >= 2.0.6.
3460
0a770bb2 34612014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3462
3463 * main.c (print_gdb_help): Add -q and --silent.
3464
73ba372c
GB
34652014-06-06 Gary Benson <gbenson@redhat.com>
3466
3467 * common/signals.c: Remove preprocessor conditionals for
3468 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3469 SIGSEGV and SIGTERM.
3470 * proc-events.c: Likewise.
3471
c33b2f12
MM
34722014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3473
3474 * symfile.c (symfile_free_objfile): Remove restriction to
3475 OBJF_USERLOADED.
3476 * symfile-mem.c (symbol_file_add_from_memory): Call
3477 add_target_sections_of_objfile.
3478
fb934770
LC
34792014-06-05 Ludovic Courtès <ludo@gnu.org>
3480
3481 * guile/scm-value.c (gdbscm_history_append_x): Use
3482 'vlscm_get_value_smob_arg_unsafe' instead of
3483 'vlscm_scm_to_value'.
3484
6ef284bd
SM
34852014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3486
3487 PR mi/15806
3488 * utils.c (printchar): Don't escape at all if quoter is NUL.
3489 Update function documentation to clarify effect of parameter
3490 QUOTER.
3491 * remote.c (escape_buffer): Pass '\\' as the quoter to
3492 fputstrn_unfiltered.
3493 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3494 generate the output.
3495 (mi_solib_unloaded): Same.
3496
270c9937
JB
34972014-06-05 Joel Brobecker <brobecker@adacore.com>
3498
3499 * development.sh: Delete.
3500 * Makefile.in (config.status): Adjust dependency on development.sh.
3501 * configure.ac: Adjust development.sh source call.
3502 * configure: Regenerate.
3503
16f691fb
DE
35042014-06-04 Doug Evans <xdje42@gmail.com>
3505
3506 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3507 is_scheme_bkpt, spec.
3508 (bpscm_make_breakpoint_smob): Initialize new members.
3509 (gdbscm_create_breakpoint_x): Split into two ...
3510 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3511 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3512 (scheme_function breakpoint_functions): Update.
3513 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3514 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3515 register-breakpoint!.
3516
ef7cab6b
JB
35172014-06-04 Joel Brobecker <brobecker@adacorer.com>
3518
3519 PR server/17023
3520 * mem-break.c (z_type_supported): Return zero if
3521 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3522
012370f6
TT
35232014-06-04 Tom Tromey <tromey@redhat.com>
3524
3525 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3526 value_from_contents_and_address_unresolved.
3527 (ada_template_to_fixed_record_type_1): Likewise.
3528 (ada_which_variant_applies): Likewise.
3529 * value.h (value_from_contents_and_address_unresolved): Declare.
3530 * value.c (value_from_contents_and_address_unresolved): New
3531 function.
3532 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3533 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3534 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3535
92e2a17f
TT
35362014-06-04 Tom Tromey <tromey@redhat.com>
3537
3538 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3539
c0939df1
TT
35402014-06-04 Tom Tromey <tromey@redhat.com>
3541
3542 * procfs.c (procfs_attach): Make "args" const.
3543 * windows-nat.c (windows_attach): Make "args" const.
3544 * nto-procfs.c (procfs_attach): Make "args" const.
3545 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3546 * go32-nat.c (go32_attach): Make "args" const.
3547 * gnu-nat.c (gnu_attach): Make "args" const.
3548 * darwin-nat.c (darwin_attach): Make "args" const.
3549 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3550 * linux-nat.c (linux_nat_attach): Make "args" const.
3551 * remote.c (extended_remote_attach_1, extended_remote_attach):
3552 Make "args" const.
3553 * target.h (struct target_ops) <to_attach>: Make "args" const.
3554 (find_default_attach): Likewise.
3555 * utils.c (parse_pid_to_attach): Make "args" const.
3556 * utils.h (parse_pid_to_attach): Update.
3557
8eaff7cd
TT
35582014-06-04 Tom Tromey <tromey@redhat.com>
3559
3560 * target-delegates.c: Rebuild.
3561 * target.c (default_thread_address_space): New function.
3562 (target_thread_address_space): Simplify.
3563 * target.h (struct target_ops) <to_thread_address_space>: Add
3564 TARGET_DEFAULT_FUNC.
3565
1913f160
DE
35662014-06-04 Doug Evans <xdje42@gmail.com>
3567
3568 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3569
70ad5bff
MM
35702014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3571
3572 * record-btrace.c: Include event-loop.h and inf-loop.h.
3573 (record_btrace_resume_exec_dir)
3574 (record_btrace_async_inferior_event_handler)
3575 (record_btrace_handle_async_inferior_event): New.
3576 (record_btrace_open): Create async event handler.
3577 (record_btrace_close): Delete async event handler.
3578 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3579 Mark async event handler.
3580 (record_btrace_execution_direction): New.
3581 (init_record_btrace_ops): Initialize to_execution_direction.
3582
b6210538
DE
35832014-06-03 Doug Evans <xdje42@gmail.com>
3584
3585 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3586 (gdbscm_make_parameter): Ditto.
3587
a5b1fd27
DE
35882014-06-03 Doug Evans <dje@google.com>
3589
3590 * exec.c (exec_close_1): Call clear_section_table instead of
3591 resize_section_table.
3592 (clear_section_table): New function.
3593 (resize_section_table): Make static. Rename arg num_added to
3594 adjustment.
3595 * exec.h (clear_section_table): Declare.
3596 (resize_section_table): Delete.
3597 * progspace.c (release_program_space): Call clear_section_table
3598 instead of resize_section_table.
3599
0c6e92a5
SC
36002014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3601
3602 * NEWS (Python Scripting): Add entry about the new xmethods
3603 feature.
3604
883964a7
SC
36052014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3606
3607 * python/py-xmethods.c: New file.
3608 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3609 (objfpy_dealloc): XDECREF on the new xmethods field.
3610 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3611 field.
3612 (objfpy_get_xmethods): New function.
3613 (objfile_getset): New entry 'xmethods'.
3614 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3615 (pspy_dealloc): XDECREF on the new xmethods field.
3616 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3617 field.
3618 (pspy_get_xmethods): New function.
3619 (pspace_getset): New entry 'xmethods'.
3620 * python/python-internal.h: Add declarations for new functions.
3621 * python/python.c (_initialize_python): Invoke
3622 gdbpy_initialize_xmethods.
3623 * python/lib/gdb/__init__.py (xmethods): New
3624 attribute.
3625 * python/lib/gdb/xmethod.py: New file.
3626 * python/lib/gdb/command/xmethods.py: New file.
3627
58992dc5
SC
36282014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3629
3630 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3631 best match method returned by find_overload_match is an xmethod.
3632 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3633 the best matching operator returned by find_overload_match is an
3634 xmethod.
3635 * valops.c: #include "extension.h".
3636 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3637 Return void. The list of matching source methods is returned in
3638 "fn_list" and a vector of matching debug method workers is
3639 returned in "xm_worker_vec". Update all callers.
3640 (value_find_oload_method_list): Likewise.
3641 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3642 non-NULL, then the index of the best matching method in this
3643 vector is returned. Update all callers.
3644 (find_overload_match): Include xmethods while performing overload
3645 resolution.
3646
e81e7f5e
SC
36472014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3648
3649 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3650 * extension-priv.h (struct extension_language_ops): Add the
3651 xmethod interface.
3652 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3653 get_matching_xmethod_workers, get_xmethod_argtypes,
3654 invoke_xmethod, free_xmethod_worker,
3655 free_xmethod_worker_vec): New functions.
3656 * extension.h: #include "common/vec.h".
3657 New function declarations.
3658 (struct xmethod_worker): New struct.
3659 (VEC (xmethod_worker_ptr)): New vector type.
3660 (xmethod_worker_ptr): New typedef.
3661 (xmethod_worker_vec): Likewise.
3662 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3663 builtin_type.
3664 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3665 (struct builtin_type): New field "xmethod".
3666 * valarith.c (value_ptradd): Assert that the value argument is not
3667 lval_xcallable.
3668 * valops.c (value_must_coerce_to_target): Return 0 for
3669 lval_xcallable values.
3670 * value.c (struct value): New field XM_WORKER in the field
3671 LOCATION.
3672 (value_address, value_raw_address): Return 0 for lval_xcallable
3673 values.
3674 (set_value_address): Assert that the value is not an
3675 lval_xcallable.
3676 (value_free): Free the associated xmethod worker when freeing
3677 lval_xcallable values.
3678 (set_value_component_location): Assert that the WHOLE value is not
3679 lval_xcallable.
3680 (value_of_xmethod, call_xmethod): New functions.
3681 * value.h: Declare "struct xmethod_worker".
3682 Declare new functions value_of_xmethod, call_xmethod.
3683
ef370185
JB
36842014-06-03 Joel Brobecker <brobecker@adacore.com>
3685 Pedro Alves <palves@redhat.com>
3686
3687 PR breakpoints/17000
3688 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3689 New function, extracted from software_breakpoint_inserted_here_p.
3690 (software_breakpoint_inserted_here_p): Replace factored out code
3691 by call to find_non_raw_software_breakpoint_inserted_here.
3692 (bp_target_info_copy_insertion_state): New function.
3693 (bkpt_insert_location): Handle the case of a single-step
3694 breakpoint already inserted at the same address.
3695 (bkpt_remove_location): Handle the case of a single-step
3696 breakpoint still inserted at the same address.
3697 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3698 breakpoint already inserted at the same address.
3699 (deprecated_remove_raw_breakpoint): Handle the case of a
3700 non-raw breakpoint still inserted at the same address.
3701 (find_single_step_breakpoint): New function, extracted from
3702 single_step_breakpoint_inserted_here_p.
3703 (find_single_step_breakpoint): New function,
3704 factored out from single_step_breakpoint_inserted_here_p.
3705 (single_step_breakpoint_inserted_here_p): Reimplement.
3706
1e2ccb61
BM
37072014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3708
3709 Pushed by Joel Brobecker <brobecker@adacore.com>
3710 * source.c (show_substitute_path_command): Fix display of matching
3711 substitution rules.
3712
d3448d85
GB
37132014-06-03 Gary Benson <gbenson@redhat.com>
3714
3715 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3716
06eb1586
DE
37172014-06-02 Doug Evans <xdje42@gmail.com>
3718
3719 Add parameter support for Guile.
3720 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3721 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3722 (scm-param.o): New rule.
3723 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3724 (gdbscm_misc_error): Declare.
3725 (gdbscm_canonicalize_command_name): Declare.
3726 (gdbscm_scm_to_host_string): Declare.
3727 (gdbscm_scm_from_host_string): Declare.
3728 (gdbscm_initialize_parameters): Declare.
3729 * guile/guile.c (initialize_gdb_module): Call
3730 gdbscm_initialize_parameters.
3731 * guile/lib/gdb.scm: Export parameter symbols.
3732 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3733 cmdscm_canonicalize_name and made public. All callers updated.
3734 * guile/scm-exception.c (gdbscm_misc_error): New function.
3735 * guile/scm-param.c: New file.
3736 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3737 (gdbscm_scm_to_host_string): New function.
3738 (gdbscm_scm_from_host_string): New function.
3739 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3740
e698b8c4
DE
37412014-06-02 Doug Evans <xdje42@gmail.com>
3742
3743 Add command support for Guile.
3744 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3745 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3746 (scm-cmd.o): New rule.
3747 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3748 (gdbscm_user_error_p): Declare.
3749 (gdbscm_parse_command_name): Declare.
3750 (gdbscm_valid_command_class_p): Declare.
3751 (gdbscm_initialize_commands): Declare.
3752 * guile/guile.c (initialize_gdb_module): Call
3753 gdbscm_initialize_commands.
3754 * guile/lib/gdb.scm: Export command symbols.
3755 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3756 (throw-user-error): New function.
3757 * guile/scm-cmd.c: New file.
3758 * guile/scm-exception.c (user_error_symbol): New static global.
3759 (gdbscm_user_error_p): New function.
3760 (gdbscm_initialize_exceptions): Set user_error_symbol.
3761 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3762
fb1f94b0
PM
37632014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3764
3765 * top.c (command_loop): Handle comments here...
3766 (command_line_input): ... not here.
3767
ded03782
DE
37682014-06-02 Doug Evans <xdje42@gmail.com>
3769
3770 Add progspace support for Guile.
3771 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3772 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3773 (scm-progspace.o): New rule.
3774 * guile/guile-internal.h (pspace_smob): New typedef.
3775 (psscm_pspace_smob_pretty_printers): Declare.
3776 (psscm_pspace_smob_from_pspace): Declare.
3777 (psscm_scm_from_pspace): Declare.
3778 * guile/guile.c (initialize_gdb_module): Call
3779 gdbscm_initialize_pspaces.
3780 * guile/lib/gdb.scm: Export progspace symbols.
3781 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3782 support.
3783 (append-pretty-printer!): Ditto.
3784 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3785 Implement.
3786 * guile/scm-progspace.c: New file.
3787
397998fc
AM
37882014-06-03 Alan Modra <amodra@gmail.com>
3789
3790 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3791 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3792
6aa5f3a6
DE
37932014-06-02 Doug Evans <dje@google.com>
3794
3795 Add support for skeletonless type units.
3796 * dwarf2read.c (struct dwarf2_per_objfile): New member
3797 n_allocated_type_units.
3798 (struct dwarf2_per_objfile) <tu_stats>: New member
3799 nr_all_type_units_reallocs.
3800 (create_signatured_type_table_from_index): Initialize
3801 n_allocated_type_units
3802 (create_all_type_units): Ditto.
3803 (add_type_unit): Move up in file. New arg slot.
3804 All callers updated. Increase space for all_type_units more
3805 efficiently.
3806 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3807 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3808 (lookup_dwp_signatured_type): Ditto.
3809 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3810 All callers updated.
3811 (build_type_psymtabs_1): Leave type_unit_groups as
3812 NULL if no TUs present.
3813 (print_tu_stats): New function.
3814 (process_skeletonless_type_unit): New function.
3815 (process_dwo_file_for_skeletonless_type_units): New
3816 function.
3817 (process_skeletonless_type_units): New function.
3818 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3819 Call print tu_stats if debugging enabled.
3820
41fac0cf
PA
38212014-06-02 Pedro Alves <palves@redhat.com>
3822
3823 * breakpoint.c (build_target_command_list): Don't build a command
3824 list if we have any duplicate location that isn't a dprintf.
3825
cd1608cc
PA
38262014-06-02 Pedro Alves <palves@redhat.com>
3827
3828 * breakpoint.c (dprintf_breakpoint_hit): New function.
3829 (initialize_breakpoint_ops): Install it as dprintf's
3830 breakpoint_hit method.
3831
486ef3b9
JB
38322014-06-02 Joel Brobecker <brobecker@adacore.com>
3833
3834 * source.c (substitute_path_rule_matches): Simplify using
3835 filename_ncmp instead of FILENAME_CMP.
3836
230cd560
JB
38372014-06-02 Joel Brobecker <brobecker@adacore.com>
3838
3839 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3840
16954d5d
LC
38412014-06-01 Ludovic Courtès <ludo@gnu.org>
3842
3843 * configure.ac: When Guile is available, check for the
3844 availability of 'scm_new_smob'.
3845 * configure, config.h.in: Regenerate.
3846 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3847 function.
3848
53e8a631
AB
38492014-05-30 Andrew Burgess <aburgess@broadcom.com>
3850
3851 * frame.c (struct frame_info): Add stop_string field.
3852 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3853 (get_prev_frame_always): Old content moved into
3854 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3855 TRY_CATCH, handle MEMORY_ERROR exceptions.
3856 (frame_stop_reason_string): New function definition.
3857 * frame.h (unwind_stop_reason_to_string): Extend comment to
3858 mention frame_stop_reason_string.
3859 (frame_stop_reason_string): New function declaration.
3860 * stack.c (frame_info): Switch to frame_stop_reason_string.
3861 (backtrace_command_1): Switch to frame_stop_reason_string.
3862 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3863 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3864 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3865
70e38b8e
AB
38662014-05-30 Andrew Burgess <aburgess@broadcom.com>
3867
3868 * frame.c (frame_stop_reason_string): Rename to ...
3869 (unwind_stop_reason_to_string): this.
3870 * frame.h (frame_stop_reason_string): Rename to ...
3871 (unwind_stop_reason_to_string): this.
3872 * stack.c (frame_info): Update call to frame_stop_reason_string.
3873 (backtrace_command_1): Likewise.
3874 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3875 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3876
938f0e2f
AB
38772014-05-30 Andrew Burgess <aburgess@broadcom.com>
3878
3879 * frame.c (remove_prev_frame): New function.
3880 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3881 remove_prev_frame.
3882
a09dd441
PA
38832014-05-29 Pedro Alves <palves@redhat.com>
3884
3885 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3886 and make it const. When a single-step decays to a continue,
3887 clear 'step', not 'hw_step'. Pass whether the caller wanted
3888 to step to user_visible_resume_ptid, not what we ask the
3889 target to do.
3890
bdc36728
PA
38912014-05-29 Pedro Alves <palves@redhat.com>
3892
3893 * infrun.c (process_event_stop_test, handle_step_into_function)
3894 (handle_step_into_function_backward): Adjust.
3895 Don't set the even thread's stop_step and call stop_waiting before
3896 calling end_stepping_range. Instead do that ...
3897 (end_stepping_range): ... here. Take an ecs pointer parameter.
3898
22bcd14b
PA
38992014-05-29 Pedro Alves <palves@redhat.com>
3900
3901 * infrun.c (stop_stepping): Rename to ...
3902 (stop_waiting): ... this.
3903 (proceed): Update comment.
3904 (process_event_stop_test, handle_inferior_event)
3905 (handle_signal_stop, handle_step_into_function)
3906 (handle_step_into_function_backward): Update.
3907
4ae57c05
PA
39082014-05-29 Pedro Alves <palves@redhat.com>
3909
3910 * infcall.c (run_inferior_call): Don't check whether the current
3911 thread is running after the proceed call.
3912
329ea579
PA
39132014-05-29 Pedro Alves <palves@redhat.com>
3914 Tom Tromey <tromey@redhat.com>
3915
3916 * NEWS: Mention "maint set target-async", "set mi-async", and that
3917 background execution commands are now always available.
3918 * target.h (target_async_permitted): Update comment.
3919 * target.c (target_async_permitted, target_async_permitted_1):
3920 Default to 1.
3921 (set_target_async_command): Rename to ...
3922 (maint_set_target_async_command): ... this.
3923 (show_target_async_command): Rename to ...
3924 (maint_show_target_async_command): ... this.
3925 (_initialize_target): Adjust.
3926 * infcmd.c (prepare_execution_command): Make extern.
3927 * inferior.h (prepare_execution_command): Declare.
3928 * infrun.c (set_observer_mode): Leave target async alone.
3929 * mi/mi-interp.c (mi_interpreter_init): Install
3930 mi_on_sync_execution_done as sync_execution_done observer.
3931 (mi_on_sync_execution_done): New function.
3932 (mi_execute_command_input_handler): Don't print the prompt if we
3933 just started a synchronous command with an async target.
3934 (mi_on_resume): Check sync_execution before printing prompt.
3935 * mi/mi-main.h (mi_async_p): Declare.
3936 * mi/mi-main.c: Include gdbcmd.h.
3937 (mi_async_p): New function.
3938 (mi_async, mi_async_1): New globals.
3939 (set_mi_async_command, show_mi_async_command, mi_async): New
3940 functions.
3941 (exec_continue): Call prepare_execution_command.
3942 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3943 (mi_execute_async_cli_command): Use mi_async_p.
3944 (_initialize_mi_main): Install "set mi-async". Make
3945 "target-async" a deprecated alias.
3946
92bcb5f9
PA
39472014-05-29 Pedro Alves <palves@redhat.com>
3948
3949 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3950 (_initialize_cli_interp): Adjust.
3951 * event-loop.c: Include "observer.h".
3952 (start_event_loop): Notify 'command_error' observers instead of
3953 calling display_gdb_prompt. Remove FIXME comment.
3954 * event-top.c (display_gdb_prompt): Remove call into the
3955 interpreters.
3956 * inf-loop.c: Include "observer.h".
3957 (inferior_event_handler): Notify 'command_error' observers instead
3958 of calling display_gdb_prompt.
3959 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3960 observers instead of calling display_gdb_prompt.
3961 * interps.c (interp_set): Don't call display_gdb_prompt.
3962 (current_interp_display_prompt_p): Delete.
3963 * interps.h (interp_prompt_p): Delete declaration.
3964 (interp_prompt_p_ftype): Delete.
3965 (struct interp_procs) <prompt_proc_p>: Delete field.
3966 (current_interp_display_prompt_p): Delete declaration.
3967 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3968 (_initialize_mi_interp): Adjust.
3969 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3970 'command_error' observers.
3971 (tui_on_sync_execution_done, tui_on_command_error): New
3972 functions.
3973 (tui_display_prompt_p): Delete.
3974 (_initialize_tui_interp): Adjust.
3975
fd664c91
PA
39762014-05-29 Pedro Alves <palves@redhat.com>
3977
3978 PR gdb/13860
3979 * cli/cli-interp.c: Include infrun.h and observer.h.
3980 (cli_uiout, cli_interp): New globals.
3981 (cli_on_signal_received, cli_on_end_stepping_range)
3982 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3983 functions.
3984 (cli_interpreter_init): Install them as 'end_stepping_range',
3985 'signal_received' 'signal_exited', 'exited' and 'no_history'
3986 observers.
3987 (_initialize_cli_interp): Remove cli_interp local.
3988 * infrun.c (handle_inferior_event): Call the several stop reason
3989 observers instead of printing the stop reason directly.
3990 (end_stepping_range): New function.
3991 (print_end_stepping_range_reason, print_signal_exited_reason)
3992 (print_exited_reason, print_signal_received_reason)
3993 (print_no_history_reason): Make static, and add an uiout
3994 parameter. Print to that instead of to CURRENT_UIOUT.
3995 * infrun.h (print_end_stepping_range_reason)
3996 (print_signal_exited_reason, print_exited_reason)
3997 (print_signal_received_reason print_no_history_reason): New
3998 declarations.
3999 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
4000 'mi_uiout'.
4001 <cli_uiout>: New field.
4002 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
4003 uiout for CLI output. Install 'signal_received',
4004 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
4005 observers.
4006 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
4007 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
4008 (mi_on_no_history): New functions.
4009 (ui_out_free_cleanup): Delete function.
4010 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
4011 instead use the one already stored in the MI interpreter data.
4012 (mi_ui_out): Adjust.
4013 * tui/tui-interp.c: Include infrun.h and observer.h.
4014 (tui_interp): New global.
4015 (tui_on_signal_received, tui_on_end_stepping_range)
4016 (tui_on_signal_exited, tui_on_exited)
4017 (tui_on_no_history): New functions.
4018 (tui_init): Install them as 'end_stepping_range',
4019 'signal_received' 'signal_exited', 'exited' and 'no_history'
4020 observers.
4021 (_initialize_tui_interp): Delete tui_interp local.
4022
8817a6f2
PA
40232014-05-29 Pedro Alves <palves@redhat.com>
4024
4025 PR gdb/15713
4026 * linux-nat.c (linux_nat_resume_callback): Rename the second
4027 parameter to 'except'. Skip LP if it points to EXCEPT.
4028 (linux_nat_resume): Don't mark the event lwp as not stopped
4029 before resuming sibling lwps. Instead ask
4030 linux_nat_resume_callback to skip the event lwp. Mark it as not
4031 stopped after actually resuming it.
4032 (linux_handle_syscall_trap): Mark the lwp as not stopped after
4033 resuming it.
4034 (wait_lwp): Mark the lwp as stopped here.
4035 (stop_wait_callback): Mark the lwp as not stopped right after
4036 resuming it. Don't mark lwps as stopped here.
4037 (linux_nat_filter_event): Mark the lwp as stopped earlier.
4038 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
4039
251bde03
PA
40402014-05-29 Pedro Alves <palves@redhat.com>
4041
4042 PR PR15693
4043 * infrun.c (resume): Determine how much to resume depending on
4044 whether the caller wanted a step, not whether we can hardware step
4045 the target. Mark all threads that we intend to run as running,
4046 unless we're calling an inferior function.
4047 (normal_stop): If the thread is running an infcall, don't finish
4048 thread state.
4049 * target.c (target_resume): Don't mark threads as running here.
4050
7f3c0343
JB
40512014-05-28 Joel Brobecker <brobecker@adacore.com>
4052
4053 * serial.c (_initialize_serial): Remove support for
4054 the "set remotebaud" and "show remotebaud" commands.
4055 * NEWS: Add entry documenting the removal of that command.
4056
ee34b3f9
YQ
40572014-05-28 Yao Qi <yao@codesourcery.com>
4058
4059 * charset.c: Fix typo in comments.
4060
add6c04d
GB
40612014-05-27 Gary Benson <gbenson@redhat.com>
4062
4063 * utils.c (internal_vproblem): Prompt for a bug report.
4064
92c48fc5
AW
40652014-05-26 Andy Wingo <wingo@igalia.com>
4066
4067 * guile/scm-arch.c (arscm_mark_arch_smob):
4068 * guile/scm-block.c (bkscm_mark_block_smob)
4069 (bkscm_mark_block_syms_progress_smob):
4070 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4071 * guile/scm-exception.c (exscm_mark_exception_smob):
4072 * guile/scm-frame.c (frscm_mark_frame_smob):
4073 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4074 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4075 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4076 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4077 (ppscm_mark_pretty_printer_worker_smob):
4078 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4079 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4080 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4081 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4082 mark functions.
4083 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4084 function.
4085
b2715b27
AW
40862014-05-26 Andy Wingo <wingo@igalia.com>
4087 Doug Evans <xdje42@gmail.com>
4088
4089 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4090 empty_base_class. All uses updated.
4091 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4092 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4093 Adapt all callers.
4094 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4095 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4096 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4097 (gdbscm_gsmob_has_property_p, add_property_name)
4098 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4099 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4100 (gdb-object-has-property?, gdb-object-properties): Remove.
4101 (gdb-object-kind): Renamed from gsmob-kind.
4102
214ab2da
AW
41032014-05-26 Andy Wingo <wingo@igalia.com>
4104
4105 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4106 * configure: Regenerate.
4107
589fdceb
MM
41082014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4109
4110 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4111
67b5c0c1
MM
41122014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4113
4114 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4115 (replay_memory_access_read_only, replay_memory_access_read_write)
4116 (replay_memory_access_types, replay_memory_access)
4117 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4118 (cmd_set_record_btrace, cmd_show_record_btrace)
4119 (cmd_show_replay_memory_access): New.
4120 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4121 (record_btrace_remove_breakpoint): Replace
4122 record_btrace_allow_memory_access with replay_memory_access.
4123 (_initialize_record_btrace): Add commands.
4124 * NEWS: Announce it.
4125
036cd381
RR
41262014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4127
4128 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4129
c77c1e42
RR
41302014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4131
4132 * MAINTAINERS (Write After Approval): Move self back from
4133 paper trail.
4134
45741a9c
PA
41352014-05-22 Pedro Alves <palves@redhat.com>
4136
4137 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4138 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4139 (disable_randomization, enum exec_direction_kind)
4140 (execution_direction, stop_registers, start_remote)
4141 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4142 (wait_for_inferior, normal_stop, get_last_target_status)
4143 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4144 (insert_step_resume_breakpoint_at_sal)
4145 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4146 (set_step_info, print_stop_event, signal_stop_state)
4147 (signal_print_state, signal_pass_state, signal_stop_update)
4148 (signal_print_update, signal_pass_update)
4149 (update_signals_program_target, clear_exit_convenience_vars)
4150 (displaced_step_dump_bytes, update_observer_mode)
4151 (signal_catch_update, gdb_signal_from_command): Move
4152 declarations ...
4153 * infrun.h: ... to this new file.
4154 * amd64-tdep.c: Include infrun.h.
4155 * annotate.c: Include infrun.h.
4156 * arch-utils.c: Include infrun.h.
4157 * arm-linux-tdep.c: Include infrun.h.
4158 * arm-tdep.c: Include infrun.h.
4159 * break-catch-sig.c: Include infrun.h.
4160 * breakpoint.c: Include infrun.h.
4161 * common/agent.c: Include infrun.h instead of inferior.h.
4162 * corelow.c: Include infrun.h.
4163 * event-top.c: Include infrun.h.
4164 * go32-nat.c: Include infrun.h.
4165 * i386-tdep.c: Include infrun.h.
4166 * inf-loop.c: Include infrun.h.
4167 * infcall.c: Include infrun.h.
4168 * infcmd.c: Include infrun.h.
4169 * infrun.c: Include infrun.h.
4170 * linux-fork.c: Include infrun.h.
4171 * linux-nat.c: Include infrun.h.
4172 * linux-thread-db.c: Include infrun.h.
4173 * monitor.c: Include infrun.h.
4174 * nto-tdep.c: Include infrun.h.
4175 * procfs.c: Include infrun.h.
4176 * record-btrace.c: Include infrun.h.
4177 * record-full.c: Include infrun.h.
4178 * remote-m32r-sdi.c: Include infrun.h.
4179 * remote-mips.c: Include infrun.h.
4180 * remote-notif.c: Include infrun.h.
4181 * remote-sim.c: Include infrun.h.
4182 * remote.c: Include infrun.h.
4183 * reverse.c: Include infrun.h.
4184 * rs6000-tdep.c: Include infrun.h.
4185 * s390-linux-tdep.c: Include infrun.h.
4186 * solib-irix.c: Include infrun.h.
4187 * solib-osf.c: Include infrun.h.
4188 * solib-svr4.c: Include infrun.h.
4189 * target.c: Include infrun.h.
4190 * top.c: Include infrun.h.
4191 * windows-nat.c: Include infrun.h.
4192 * mi/mi-interp.c: Include infrun.h.
4193 * mi/mi-main.c: Include infrun.h.
4194 * python/py-threadevent.c: Include infrun.h.
4195
98eb56a4
PA
41962014-05-22 Pedro Alves <palves@redhat.com>
4197
4198 * infrun.c (handle_inferior_event): Store the exit code for
4199 --return-child-result here, instead of ...
4200 (print_exited_reason): ... here.
4201
17b2616c
PA
42022014-05-21 Pedro Alves <palves@redhat.com>
4203
4204 PR gdb/13860
4205 * gdbthread.h (struct thread_control_state): New field
4206 `command_interp'.
4207 * infrun.c (follow_fork): Copy the new thread control field to the
4208 child fork thread.
4209 (clear_proceed_status_thread): Clear the new thread control field.
4210 (proceed): Set the new thread control field.
4211 * interps.h (command_interp): Declare.
4212 * interps.c (command_interpreter): New global.
4213 (command_interp): New function.
4214 (interp_exec): Set `command_interpreter' while here.
4215 * cli-out.c (cli_uiout_dtor): New function.
4216 (cli_ui_out_impl): Install it.
4217 * mi/mi-interp.c: Include cli-out.h.
4218 (mi_cmd_interpreter_exec): Add comment.
4219 (restore_current_uiout_cleanup): New function.
4220 (ui_out_free_cleanup): New function.
4221 (mi_on_normal_stop): If finishing an execution command started by
4222 a CLI command, or any kind of breakpoint-like event triggered,
4223 print the stop event to the output (CLI) stream.
4224 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4225
5166082f
PA
42262014-05-21 Pedro Alves <palves@redhat.com>
4227
4228 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4229 current source line having changed.
4230 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4231 * infrun.c (normal_stop): Adjust call to
4232 set_current_sal_from_frame.
4233 * source.c (clear_lines_listed_range): New function.
4234 (set_current_source_symtab_and_line, identify_source_line): Clear
4235 the lines listed range.
4236 (line_info): Handle the first "info line" after the current source
4237 line having changed.
4238 * stack.c (print_stack_frame): Remove center handling.
4239 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4240 center sal.line.
4241
c1ee2fb3
PA
42422014-05-21 Pedro Alves <palves@redhat.com>
4243
4244 * inf-child.c (inf_child_mourn_inferior): New function.
4245 * inf-child.h (inf_child_mourn_inferior): New declaration.
4246 * darwin-nat.c (darwin_mourn_inferior): Use
4247 inf_child_mourn_inferior.
4248 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4249 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4250 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4251 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4252 * windows-nat.c (windows_mourn_inferior): Likewise.
4253
5c6d4fb2
DE
42542014-05-21 Doug Evans <xdje42@gmail.com>
4255
250748cb 4256 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4257
4a2722c5
DE
42582014-05-21 Doug Evans <xdje42@gmail.com>
4259
17292b30 4260 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4261 (gdbscm_out_of_range_error): Ditto.
4262 (gdbscm_memory_error): Ditto.
250748cb
DE
4263 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4264 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4265 (gdbscm_out_of_range_error): Update.
4266 (gdbscm_memory_error): Update.
4267 (gdbscm_scm_to_target_string_unsafe): Delete.
4268
6a3cb8e8
PA
42692014-05-21 Pedro Alves <palves@redhat.com>
4270
4271 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4272 globals.
4273 (inf_child_open_target): New function.
4274 (inf_child_open): Use inf_child_open_target to push the target
4275 instead of erroring out.
4276 (inf_child_disconnect, inf_child_close)
4277 (inf_child_maybe_unpush_target): New functions.
4278 (inf_child_target): Install inf_child_disconnect and
4279 inf_child_close. Store a pointer to the returned object.
4280 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4281 declarations.
4282 * target.c (auto_connect_native_target): New global.
4283 (show_default_run_target): New function.
4284 (find_default_run_target): Return NULL if automatically connecting
4285 to the native target is disabled.
4286 (_initialize_target): Install set/show auto-connect-native-target.
4287 * NEWS: Mention "set auto-connect-native-target", and "target
4288 native".
4289 * linux-nat.c (super_close): New global.
4290 (linux_nat_close): Call super_close.
4291 (linux_nat_add_target): Store a pointer to the base class's
4292 to_close method.
4293 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4294 inf_child_maybe_unpush.
4295 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4296 already pushed.
4297 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4298 the inferior. Use inf_child_maybe_unpush_target.
4299 (inf_ttrace_attach): Don't push the target if it is already
4300 pushed.
4301 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4302 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4303 after mourning the inferior. Use inf_child_maybe_unpush_target.
4304 (darwin_attach_pid): Don't push the target if it is already
4305 pushed.
4306 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4307 mourning the inferior. Use inf_child_maybe_unpush_target.
4308 (gnu_detach): Use inf_child_maybe_unpush_target.
4309 * go32-nat.c (go32_create_inferior): Don't push the target if it
4310 is already pushed.
4311 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4312 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4313 (procfs_open): Rename to ...
4314 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4315 comments. Can target_preopen before changing node. Call
4316 inf_child_open_target to push the target explicitly.
4317 (procfs_attach): Don't push the target if it is already pushed.
4318 (procfs_detach): Use inf_child_maybe_unpush_target.
4319 (procfs_create_inferior): Don't push the target if it is already
4320 pushed.
4321 (nto_native_ops): New global.
4322 (procfs_open): Reimplement.
4323 (procfs_native_open): New function.
4324 (init_procfs_targets): Install procfs_native_open as to_open of
4325 "target native". Store a pointer to the "native" target in
4326 nto_native_ops.
4327 * procfs.c (procfs_attach): Don't push the target if it is already
4328 pushed.
4329 (procfs_detach): Use inf_child_maybe_unpush_target.
4330 (procfs_mourn_inferior): Only unpush the target after mourning the
4331 inferior. Use inf_child_maybe_unpush_target.
4332 (procfs_init_inferior): Don't push the target if it is already
4333 pushed.
4334 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4335 if it is already pushed.
4336
930ee1b1
PA
43372014-05-21 Pedro Alves <palves@redhat.com>
4338
4339 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4340 and "procfs" targets are now called "native" instead.
4341
1f5d1b13
PA
43422014-05-21 Pedro Alves <palves@redhat.com>
4343
4344 * go32-nat.c (go32_open): Delete.
4345 (go32_target): Don't override the to_open method.
4346
132f8e03
PA
43472014-05-21 Pedro Alves <palves@redhat.com>
4348
4349 * nto-procfs.c (procfs_can_run): New function.
4350 (nto_procfs_ops): New global.
4351 (init_procfs_targets): New, based on procfs_target. Install
4352 "target native" in addition to "target procfs".
4353 (_initialize_procfs): Call init_procfs_targets instead of adding
4354 the target here.
4355
03c136c3
PA
43562014-05-21 Pedro Alves <palves@redhat.com>
4357
4358 * windows-nat.c (windows_target): Don't override to_shortname,
4359 to_longname or to_doc.
4360
a635d0f3
PA
43612014-05-21 Pedro Alves <palves@redhat.com>
4362
4363 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4364 to_doc.
4365
4f9b5133
PA
43662014-05-21 Pedro Alves <palves@redhat.com>
4367
4368 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4369 to_shortname, to_longname or to_doc.
4370
bc85afde
PA
43712014-05-21 Pedro Alves <palves@redhat.com>
4372
4373 * go32-nat.c (go32_target): Don't override to_shortname,
4374 to_longname or to_doc.
4375
4ebfc96e
PA
43762014-05-21 Pedro Alves <palves@redhat.com>
4377
4378 * inf-child.c (inf_child_open): Remove mention of "child".
4379 (inf_child_target): Rename target to "native" instead of "child".
4380
2648dfed
AA
43812014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4382
4383 * Makefile.in (SFILES): Delete "regset.c".
4384 (COMMON_OBS): Delete "regset.o".
4385 * regset.c: Remove.
4386 * regset.h (regset_alloc): Delete prototype.
4387
b13feb94
AA
43882014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4389
4390 * sparc-linux-tdep.c (sparc32_linux_gregset)
4391 (sparc32_linux_fpregset): New static regset structures.
4392 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4393 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4394 'fpregset' fields.
4395 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4396 (sparc64_linux_fpregset): New static regset structures.
4397 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4398 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4399 New static regset structures.
4400 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4401 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4402 New static regset structures.
4403 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4404 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4405 New static regset structures.
4406 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4407 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4408 New static regset structures.
4409 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4410
b4fd25c9
AA
44112014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4412
4413 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4414 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4415 register maps ("regmaps") from "*regset" to "*regmap". Do this
4416 for all regmap types and variables.
4417 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4418 (sparc32_linux_supply_core_gregset)
4419 (sparc32_linux_collect_core_gregset)
4420 (sparc32_linux_supply_core_fpregset)
4421 (sparc32_linux_collect_core_fpregset): Likewise.
4422 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4423 (sparc_gregmap, sparc_fpregmap): ... these.
4424 (sparc_supply_gregset, sparc_collect_gregset)
4425 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4426 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4427 (_initialize_sparc_nat): Rename regmaps.
4428 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4429 (sparc_gregmap, sparc_fpregmap): ... these.
4430 (sparc_supply_gregset, sparc_collect_gregset)
4431 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4432 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4433 Rename macros to...
4434 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4435 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4436 Likewise.
4437 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4438 Rename to...
4439 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4440 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4441 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4442 regmaps.
4443 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4444 (sparc32_bsd_fpregset): Rename to...
4445 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4446 (sparc32_bsd_fpregmap): ... these.
4447 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4448 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4449 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4450 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4451 (struct sparc_gregmap, struct sparc_fpregmap)
4452 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4453 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4454 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4455 (sparc32_supply_regset, sparc32_collect_gregset)
4456 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4457 prototypes.
4458 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4459 (sparc64_linux_ptrace_gregmap): ... this.
4460 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4461 (_initialize_sparc64_linux_nat): Rename regmaps.
4462 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4463 (sparc64_linux_core_gregmap): ... this.
4464 (sparc64_linux_supply_core_gregset)
4465 (sparc64_linux_collect_core_gregset)
4466 (sparc64_linux_supply_core_fpregset)
4467 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4468 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4469 (sparc64_sol2_fpregset): Rename to...
4470 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4471 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4472 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4473 regmaps.
4474 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4475 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4476 (sparc64_bsd_fpregset): Rename to...
4477 (struct sparc_gregmap, sparc64_sol2_gregmap)
4478 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4479 (sparc64_bsd_fpregmap): ... these.
4480 (sparc64_supply_gregset, sparc64_collect_gregset)
4481 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4482 prototypes.
4483 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4484 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4485 (sparc64fbsd_gregmap): ... this.
4486 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4487 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4488 Rename regmaps.
4489 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4490 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4491 (sparc64nbsd_collect_fpregset): Likewise.
4492 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4493 (sparc64nbsd_gregmap): ... this.
4494 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4495 regmaps.
4496 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4497 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4498 (sparc64obsd_gregmap): ... this.
4499 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4500 regmaps.
4501 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4502 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4503 (sparc32nbsd_gregmap): ... this.
4504 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4505 regmaps.
4506
8fea3224
AA
45072014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4508
4509 * score-tdep.c (score7_linux_gregset): New static regset
4510 structure.
4511 (score7_linux_regset_from_core_section): Remove dynamic regset
4512 allocation.
4513 (score_gdbarch_init): Drop allocation of tdep structure.
4514 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4515
24534243
AA
45162014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4517
4518 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4519 regset structures.
4520 (am33_regset_from_core_section): Remove dynamic regset
4521 allocations.
4522
b7195f27
AA
45232014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4524
4525 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4526 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4527 structures.
4528 (mips_linux_regset_from_core_section): Remove dynamic regset
4529 allocations.
4530 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4531 'gregset64', 'fpregset', and 'fpregset64'.
4532 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4533 deleted tdep fields.
4534
ecc37a5a
AA
45352014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4536
4537 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4538 regset structures.
4539 (amd64_regset_from_core_section): Remove dynamic regset
4540 allocations.
4541 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4542 structure.
4543 (amd64obsd_regset_from_core_section): Remove dynamic regset
4544 allocation.
4545 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4546 Likewise.
4547 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4548 x86-common regset supply function.
4549 * i386-tdep.c (i386_collect_gregset): Make static.
4550 (i386_gregset): New global regset structure.
4551 (i386_fpregset, i386_xstateregset): New static regset structures.
4552 (i386_regset_from_core_section): Remove dynamic regset
4553 allocations.
4554 (i386_gdbarch_init): Remove initialization of tdep fields
4555 'gregset', 'fpregset', and 'xstateregset'.
4556 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4557 'fpregset', and 'xstateregset'.
4558 (i386_collect_gregset): Remove prototype.
4559 (i386_gregset): New declaration.
4560 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4561 structure.
4562 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4563 allocation.
4564
b7611c43
AA
45652014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4566
4567 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4568 (arm_linux_vfpregset): New static regset structures.
4569 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4570 regset structures.
4571 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4572 and 'vfpregset' fields.
4573
a069a2bd
AA
45742014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4575
4576 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4577 (aarch64_linux_fpregset): New static regset structures.
4578 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4579 of regset structures.
4580 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4581 'fpregset' fields.
4582
09424cff
AA
45832014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4584
4585 * regset.h (struct regset): Remove gdbarch field.
4586 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4587 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4588 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4589 Likewise.
4590 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4591 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4592 (ppc32_linux_vsxregset): Likewise.
4593 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4594 via the regcache instead of the regset.
4595 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4596 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4597 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4598 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4599 Likewise.
4600
3ca7dae4
AA
46012014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4602
4603 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4604 Constify structures.
4605 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4606 (alphanbsd_aout_gregset): Likewise.
4607 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4608 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4609 Likewise.
4610 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4611 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4612 Likewise.
4613 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4614 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4615 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4616 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4617 * m88k-tdep.c (m88k_gregset): Likewise.
4618 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4619 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4620 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4621 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4622 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4623 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4624 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4625 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4626 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4627 Likewise.
4628 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4629 * sh-tdep.h (sh_corefile_gregset): Likewise.
4630 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4631 * vax-tdep.c (vax_gregset): Likewise.
4632
5876f503
JK
46332014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4634
4635 Fix TLS access for -static -pthread.
4636 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4637 (try_thread_db_load_1): Initialize it.
4638 (thread_db_get_thread_local_address): Call it if LM is zero.
4639 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4640 * target.h (struct target_ops) (to_get_thread_local_address): Add
4641 load_module_addr comment.
4642
0256a6ac
PA
46432014-05-21 Pedro Alves <palves@redhat.com>
4644
4645 * dcache.c (dcache_read_memory_partial): If reading the cache line
4646 fails, fallback to reading just the memory the caller wanted.
4647
227533ac
DE
46482014-05-20 Doug Evans <dje@google.com>
4649
4650 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4651 instead of get_current_arch.
4652
936d2992
PA
46532014-05-20 Pedro Alves <palves@redhat.com>
4654
4655 * NEWS: Mention that compare-sections now works with all targets.
4656
4657 * remote.c (PACKET_qCRC): New enum value.
4658 (remote_verify_memory): Don't send qCRC if the target has no
4659 execution. Use packet_support/packet_ok. If the target doesn't
4660 support the qCRC packet, fallback to a deep memory copy.
4661 (compare_sections_command): Say "target image" instead of "remote
4662 executable".
4663 (_initialize_remote): Add PACKET_qCRC to the list of config
4664 packets that have no associated command. Extend comment.
4665 * target.c (simple_verify_memory, default_verify_memory): New
4666 function.
4667 * target.h (struct target_ops) <to_verify_memory>: Default to
4668 default_verify_memory.
4669 (simple_verify_memory): New declaration.
4670 * target-delegates.c: Regenerate.
4671
e59fa00f
MM
46722014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4673
4674 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4675
f2205de0
HZ
46762014-05-20 Hui Zhu <hui@codesourcery.com>
4677 Yao Qi <yao@codesourcery.com>
4678
4679 PR backtrace/16558
4680 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4681 and change address of sp and pc.
4682
c4e54771
TT
46832014-05-19 Tom Tromey <tromey@redhat.com>
4684
4685 * gdbtypes.c (rank_function): Use XNEWVEC.
4686 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4687
73051182
DE
46882014-05-19 Doug Evans <dje@google.com>
4689
4690 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4691 build_type_unit_groups and moved closer to only caller. Remove
4692 arguments. All references updated. Remove outdated .gdb_index
4693 comment.
4694 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4695 build_type_psymtabs_1.
4696
8832e7e3
DE
46972014-05-19 Doug Evans <dje@google.com>
4698
4699 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4700 n_type_unit_groups, all_type_unit_groups. All uses removed.
4701 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4702 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4703 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4704 (add_type_unit_group_to_table): Delete.
4705
cd8ae15e
DE
47062014-05-19 Doug Evans <dje@google.com>
4707
4708 * eval.c (evaluate_subexp_standard): Add some comments.
4709
08f4850b
DE
47102014-05-17 Doug Evans <xdje42@gmail.com>
4711
4712 * progspace.c (remove_program_space): Delete, unused.
4713 * progspace.h (remove_program_space): Ditto.
4714
bed8455c
DE
47152014-05-17 Doug Evans <xdje42@gmail.com>
4716
4717 * inferior.c (prune_inferiors): Fix comment.
4718 (remove_inferior_command): Call prune_program_spaces.
4719
8d551b02
DE
47202014-05-16 Doug Evans <dje@google.com>
4721
4722 New command line option -D.
4723 * NEWS: Mention it.
4724 * main.c (set_gdb_data_directory): New function.
4725 (captured_main): Recognize -D. Flag error for --data-directory "".
4726 Call set_gdb_data_directory.
4727 (print_gdb_help): Print --data-directory, -D.
4728 * main.h (set_gdb_data_directory): Declare.
4729 * top.c (staged_gdb_datadir): New static global.
4730 (set_gdb_datadir): Call set_gdb_data_directory
4731 (show_gdb_datadir): New function.
4732 (init_main): Update init of data-directory parameter.
4733
18848e28
GF
47342014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4735
4736 Import the "dirfd" gnulib module.
4737 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4738 * gnulib/aclocal.m4: Update.
4739 * gnulib/config.in: Update.
4740 * gnulib/configure: Update.
4741 * gnulib/import/Makefile.am: Update.
4742 * gnulib/import/Makefile.in: Update.
4743 * gnulib/import/dirfd.c: New.
4744 * gnulib/import/m4/dirfd.m4: New.
4745 * gnulib/import/m4/gnulib-cache.m4: Update.
4746 * gnulib/import/m4/gnulib-comp.m4: Update.
4747
95c64f92
YQ
47482014-05-16 Pierre Muller <muller@sourceware.org>
4749 Yao Qi <yao@codesourcery.com>
4750
4751 * valprint.c (print_wchar): Move the code on checking whether
4752 W is a printable wide char to the default branch of switch
4753 statement below. Call wchar_printable instead of gdb_iswprint.
4754
cac395ea
TM
47552014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4756
19679eca 4757 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4758 ldr.w and ldrd instructions.
4759
83655187
DE
47602014-05-15 Doug Evans <dje@google.com>
4761
4762 * dwarf2read.c (read_structure_type): Delete outdated comments.
4763
dd756689
TT
47642014-05-14 Tom Tromey <tromey@redhat.com>
4765
4766 * macrocmd.c (print_macro_definition): Reindent.
4767
75ddda77
DE
47682014-05-13 Doug Evans <xdje42@gmail.com>
4769
4770 * python/py-cmd.c (cmdpy_completer): Add comment.
4771 (completers): Make const.
4772
b0f16a3e
SM
47732014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4774
4775 * infrun.c (resume): Remove should_resume (unused). Move up
4776 declaration of resume_ptid.
4777
033c3379
TT
47782014-05-13 Tom Tromey <tromey@redhat.com>
4779
4780 * language.h (unop_type_check): Remove.
4781 (binop_type_check): Don't declare.
4782
9b44a3a5
AA
47832014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4784
4785 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4786 call to regcache_raw_collect.
4787
303a33fa
SM
47882014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4789
4790 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4791 mi_console->quote as the quoting character.
4792
196100a0
SM
47932014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4794
4795 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4796
f989a1c8
TT
47972014-04-29 Tom Tromey <tromey@redhat.com>
4798
4799 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4800 "show debug varobj".
4801
9404b58f
KM
48022014-05-07 Kyle McMartin <kyle@redhat.com>
4803
4804 Pushed by Joel Brobecker <brobecker@adacore.com>.
4805 * aarch64-tdep.c (aarch64_software_single_step): New function.
4806 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4807 with aarch64_software_single_step.
4808
5e49ba57
JB
48092014-05-05 Joel Brobecker <brobecker@adacore.com>
4810
4811 GDB 7.7.1 released.
4812
c888a17d
KS
48132014-05-05 Keith Seitz <keiths@redhat.com>
4814
4815 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4816 variable or history value is successfully parsed.
4817
290a839c
YQ
48182014-05-05 Yao Qi <yao@codesourcery.com>
4819 Pedro Alves <palves@redhat.com>
4820
4821 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4822 address of blocks that intersects the requested range. Trim
4823 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4824 sections.
4825 * ctf.c (ctf_xfer_partial): Likewise.
4826
91256dc2
YQ
48272014-05-05 Yao Qi <yao@codesourcery.com>
4828
4829 * printcmd.c (display_command): Remove the check to
4830 target_has_execution.
4831
07284463
MK
48322014-05-03 Mark Kettenis <kettenis@gnu.org>
4833
4834 * ppcobsd-nat.c: Include "obsd-nat.h".
4835 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4836 add_target.
4837 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4838
30a1e6cc
SDJ
48392014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4840
4841 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4842 and 16-bit signed and unsigned arguments. Update comment.
4843 (stap_parse_probe_arguments): Extend code to handle such
4844 arguments. Use warning instead of complaint to notify about
4845 unrecognized bitness.
4846
f33da99a
SDJ
48472014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4848
4849 PR breakpoints/16889
4850 * stap-probe.c (stap_parse_probe_arguments): Simplify
4851 check for non-prefixed probes (i.e., probes whose
4852 arguments do not start with "N@"). Always set the
4853 argument type to a sane value.
4854
95cf3b38
DT
48552014-05-01 David Taylor <dtaylor@emc.com>
4856
4857 * remote.c (compare_sections_command): Add -r option to compare
4858 all loadable read-only sections.
4859
1cfdf534
SC
48602014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4861
4862 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4863 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4864 Update all callers.
4865 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4866 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4867 Remove unused CORE_ADDR argument. Update all callers.
4868
ca4f7f8b
PA
48692014-04-29 Pedro Alves <palves@redhat.com>
4870
4871 * remote.c (struct packet_config) <detect>: Extend comment.
4872 (add_packet_config_cmd): Don't set the config's detect or support
4873 fields here.
4874 (init_all_packet_configs): Also initialize the config's 'detect'
4875 field.
4876 (reset_all_packet_configs_support): New function.
4877 (remote_open_1): Call reset_all_packet_configs_support instead of
4878 init_all_packet_configs.
4879 (_initialize_remote): Initialize all packet configs. Assert that
4880 all packets have an associated command, except a few known
4881 outliers.
4882
11c1ba78
JB
48832014-04-28 Joel Brobecker <brobecker@adacore.com>
4884
4885 * dwarf2read.c (read_subrange_type): Handle dynamic
4886 DW_AT_lower_bound attributes.
4887
8739bc53
JB
48882014-04-28 Joel Brobecker <brobecker@adacore.com>
4889
4890 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4891 dynamic bounds before computing its upper bound.
4892 (ada_discrete_type_low_bound): Same as above with the lower bound.
4893
6f8a3220
JB
48942014-04-28 Joel Brobecker <brobecker@adacore.com>
4895
4896 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4897 range types. Adjust the array handling implementation to
4898 take advantage of this change.
4899 (resolve_dynamic_range): New function, mostly extracted from
4900 resolve_dynamic_bounds.
4901 (resolve_dynamic_array): New function, mostly extracted from
4902 resolve_dynamic_bounds.
4903 (resolve_dynamic_bounds): Delete.
4904 (resolve_dynamic_type): Reimplement. Add handling of
4905 TYPE_CODE_RANGE types.
4906
4d072ce4
JB
49072014-04-28 Joel Brobecker <brobecker@adacore.com>
4908
4909 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4910 handling of parallel ___XA types.
4911
52865325
JB
49122014-04-28 Joel Brobecker <brobecker@adacore.com>
4913
4914 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4915 unnecessary second call to static_unwrap_type.
4916
433e77fa
HZ
49172014-04-27 Hui Zhu <hui@codesourcery.com>
4918
4919 * stack.c (print_frame_info): Call do_gdb_disassembly with
4920 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4921
b51a69ee
DE
49222014-04-26 Doug Evans <xdje42@gmail.com>
4923
4924 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4925
7ae1a6a6
PA
49262014-04-25 Pedro Alves <palves@redhat.com>
4927
4928 PR server/16255
4929 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4930 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4931 and newline from built string.
4932 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4933 (linux_ptrace_attach_fail_reason): ... this.
4934 * linux-nat.c (linux_nat_attach): Adjust to use
4935 linux_ptrace_attach_fail_reason.
4936
4082afcc
PA
49372014-04-25 Pedro Alves <palves@redhat.com>
4938
4939 * remote.c (struct remote_state): Remove multi_process_aware,
4940 non_stop_aware, cond_tracepoints, cond_breakpoints,
4941 breakpoint_commands, fast_tracepoints, static_tracepoints,
4942 install_in_trace, disconnected_tracing,
4943 enable_disable_tracepoints, string_tracing, and
4944 augmented_libraries_svr4_read fields.
4945 (remote_multi_process_p): Move further below in the file.
4946 (struct packet_config): Add comments.
4947 (update_packet_config): Delete function.
4948 (show_packet_config_cmd): Use packet_config_support.
4949 (add_packet_config_cmd): Use NULL as set callback.
4950 (packet_ok): "set remote foo-packet"-style commands no longer
4951 change config->supported -- adjust.
4952 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4953 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4954 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4955 (PACKET_QNonStop, PACKET_multiprocess_feature)
4956 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4957 (PACKET_DisconnectedTracing_feature)
4958 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4959 (set_remote_protocol_packet_cmd): Delete function.
4960 (packet_config_support, packet_support): New functions.
4961 (set_remote_protocol_Z_packet_cmd): Don't call
4962 update_packet_config.
4963 (remote_query_attached, remote_pass_signals)
4964 (remote_program_signals, remote_threads_info)
4965 (remote_threads_extra_info, remote_start_remote): Use
4966 packet_support.
4967 (remote_start_remote): Use packet_config_support and
4968 packet_support.
4969 (init_all_packet_configs): Set all packets to unknown support,
4970 instead of calling update_packet_config.
4971 (remote_check_symbols): Use packet_support.
4972 (remote_supported_packet): Unconditionally set the packet config's
4973 support status.
4974 (remote_multi_process_feature, remote_non_stop_feature)
4975 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4976 (remote_breakpoint_commands_feature)
4977 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4978 (remote_install_in_trace_feature)
4979 (remote_disconnected_tracing_feature)
4980 (remote_enable_disable_tracepoint_feature)
4981 (remote_string_tracing_feature)
4982 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4983 (remote_protocol_features): Adjust to use remote_supported_packet
4984 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4985 "ConditionalTracepoints", "ConditionalBreakpoints",
4986 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4987 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4988 "EnableDisableTracepoints", and "tracenz".
4989 (remote_query_supported): Use packet_support.
4990 (remote_open_1): Adjust.
4991 (extended_remote_attach_1): Use packet_support. Switch on the
4992 result of packet_ok instead of checking whether the packet ended
4993 up disabled.
4994 (remote_vcont_resume): Use packet_support.
4995 (remote_resume, remote_stop_ns, fetch_register_using_p)
4996 (remote_prepare_to_store, store_register_using_P)
4997 (check_binary_download, remote_write_bytes): Use packet_support.
4998 (remote_vkill): Use packet_support. Switch on the result of
4999 packet_ok instead of checking whether the packet ended up
5000 disabled.
5001 (extended_remote_supports_disable_randomization): Use
5002 packet_support.
5003 (extended_remote_run): Switch on the result of packet_ok instead
5004 of checking whether the packet ended up disabled.
5005 (remote_insert_breakpoint, remote_remove_breakpoint)
5006 (remote_insert_watchpoint, remote_remove_watchpoint)
5007 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
5008 packet_support.
5009 (remote_search_memory): Use packet_config_support.
5010 (remote_get_thread_local_address, remote_get_tib_address)
5011 (remote_hostio_send_command, remote_can_execute_reverse): Use
5012 packet_support.
5013 (remote_supports_cond_tracepoints)
5014 (remote_supports_cond_breakpoints)
5015 (remote_supports_fast_tracepoints)
5016 (remote_supports_static_tracepoints)
5017 (remote_supports_install_in_trace)
5018 (remote_supports_enable_disable_tracepoint)
5019 (remote_supports_string_tracing)
5020 (remote_can_run_breakpoint_commands): Rewrite, checking whether
5021 the packet config says the feature is enabled or disabled.
5022 (remote_download_tracepoint, remote_trace_set_readonly_regions)
5023 (remote_get_trace_status): Use packet_support.
5024 (remote_set_disconnected_tracing): Adjust to check whether the
5025 feature is enabled with packet_support.
5026 (remote_set_trace_buffer_size, remote_use_agent)
5027 (remote_can_use_agent, remote_supports_btrace): Use
5028 packet_support.
5029 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
5030 Use packet_config_support.
5031 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
5032 the packet config says the feature is enabled or disabled.
5033 (set_range_stepping): Use packet_support.
5034
bdb52a22
TT
50352014-04-25 Tom Tromey <tromey@redhat.com>
5036
5037 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
5038 argument.
5039
e9475ead
SA
50402014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
5041
5042 * NEWS: Mention support for C99 variable length arrays.
5043
82eacd52
JB
50442014-04-24 Joel Brobecker <brobecker@adacore.com>
5045
5046 * ada-lang.c (standard_exc): Expand introductory comment.
5047
01f9f808
MS
50482014-04-24 Michael Sturm <michael.sturm@mintel.com>
5049 Walfred Tedeschi <walfred.tedeschi@intel.com>
5050
5051 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5052 AVX512 registers.
5053 (amd64_linux_read_description): Add code to handle AVX512 xstate
5054 mask and return respective tdesc.
5055 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5056 and features/i386/x32-avx512-linux.c.
5057 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5058 (amd64_linux_core_read_description): Add code to handle AVX512
5059 xstate mask and return respective tdesc.
5060 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5061 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5062 calculation.
5063 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5064 (tdesc_amd64_avx512_linux): New prototype.
5065 (tdesc_x32_avx512_linux): Likewise.
5066 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5067 features/i386/x32-avx512.c.
5068 (amd64_ymm_avx512_names): New register names for pseudo
5069 registers YMM16-31.
5070 (amd64_ymmh_avx512_names): New register names for raw registers
5071 YMMH16-31.
5072 (amd64_k_names): New register names for K registers.
5073 (amd64_zmmh_names): New register names for ZMM raw registers.
5074 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5075 (amd64_xmm_avx512_names): New register names for XMM16-31
5076 registers.
5077 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5078 registers.
5079 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5080 if feature is present.
5081 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5082 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5083 (AMD64_NUM_REGS): Adjust to new number of registers.
5084 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5085 registers supplied via XSTATE by AVX512 registers.
5086 (i386_linux_read_description): Add case for AVX512.
5087 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5088 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5089 (i386_linux_core_read_description): Add case for AVX512.
5090 (i386_linux_init_abi): Install supported register note section
5091 for AVX512.
5092 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5093 AVX512.
5094 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5095 registers to be number of zmm7h + 1.
5096 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5097 * i386-tdep.c: Include features/i386/i386-avx512.c.
5098 (i386_zmm_names): Add ZMM pseudo register names array.
5099 (i386_zmmh_names): Add ZMM raw register names array.
5100 (i386_k_names): Add K raw register names array.
5101 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5102 registers. AVX512 has 16 more ZMM registers than there are YMM
5103 registers.
5104 (i386_zmmh_regnum_p): Add function to look up register number of
5105 ZMM raw registers.
5106 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5107 (i386_k_regnum_p): Likewise for K raw registers.
5108 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5109 registers added by AVX512.
5110 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5111 registers added by AVX512.
5112 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5113 added by AVX512.
5114 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5115 (i386_pseudo_register_name): Add ZMM pseudo registers.
5116 (i386_zmm_type): Construct and return vector registers type for ZMM
5117 registers.
5118 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5119 ZMM0-31 pseudo registers and K registers.
5120 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5121 and YMM16-31 registers from register cache.
5122 (i386_pseudo_register_write): Add code to write K, ZMM and
5123 YMM16-31 registers.
5124 (i386_register_reggroup_p): Add code to include/exclude AVX512
5125 registers in/from respective register groups.
5126 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5127 registers if feature is present in xcr0.
5128 (i386_gdbarch_init): Add code to initialize AVX512 feature
5129 variables in tdep structure, wire in pseudo registers and call
5130 initialize_tdesc_i386_avx512.
5131 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5132 variables.
5133 (i386_regnum): Add AVX512 registers.
5134 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5135 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5136 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5137 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5138 512 bits wide.
5139 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5140 (i386_ymm_avx512_regnum_p): Likewise.
5141 (i386_k_regnum_p): Likewise.
5142 (i386_zmm_regnum_p): Likewise.
5143 (i386_zmmh_regnum_p): Likewise.
5144 * i387-tdep.c : Update year in copyright notice.
5145 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5146 XSAVE buffer.
5147 (XSAVE_YMM_AVX512_ADDR): New macro.
5148 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5149 XSAVE buffer.
5150 (XSAVE_XMM_AVX512_ADDR): New macro.
5151 (xsave_avx512_k_offset): New table for K register offsets in
5152 XSAVE buffer.
5153 (XSAVE_AVX512_K_ADDR): New macro.
5154 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5155 in XSAVE buffer.
5156 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5157 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5158 buffer.
5159 (i387_collect_xsave): Add code to collect AVX512 registers from
5160 XSAVE buffer.
5161 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5162 of XMM16-31 registers.
5163 (I387_NUM_K_REGS): New define for number of K registers.
5164 (I387_K0_REGNUM): New define for K0 register number.
5165 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5166 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5167 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5168 registers.
5169 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5170 (I387_XMM16_REGNUM): New define for XMM16 register number.
5171 (I387_YMM0_REGNUM): New define for YMM0 register number.
5172 (I387_KEND_REGNUM): New define for last K register number.
5173 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5174 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5175 number.
5176 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5177 number.
5178 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5179 size.
5180 * features/Makefile: Add AVX512 related files.
5181 * features/i386/32bit-avx512.xml: New file.
5182 * features/i386/64bit-avx512.xml: Likewise.
5183 * features/i386/amd64-avx512-linux.c: Likewise.
5184 * features/i386/amd64-avx512-linux.xml: Likewise.
5185 * features/i386/amd64-avx512.c: Likewise.
5186 * features/i386/amd64-avx512.xml: Likewise.
5187 * features/i386/i386-avx512-linux.c: Likewise.
5188 * features/i386/i386-avx512-linux.xml: Likewise.
5189 * features/i386/i386-avx512.c: Likewise.
5190 * features/i386/i386-avx512.xml: Likewise.
5191 * features/i386/x32-avx512-linux.c: Likewise.
5192 * features/i386/x32-avx512-linux.xml: Likewise.
5193 * features/i386/x32-avx512.c: Likewise.
5194 * features/i386/x32-avx512.xml: Likewise.
5195 * regformats/i386/amd64-avx512-linux.dat: New file.
5196 * regformats/i386/amd64-avx512.dat: Likewise.
5197 * regformats/i386/i386-avx512-linux.dat: Likewise.
5198 * regformats/i386/i386-avx512.dat: Likewise.
5199 * regformats/i386/x32-avx512-linux.dat: Likewise.
5200 * regformats/i386/x32-avx512.dat: Likewise.
5201 * NEWS: Add note about new support for AVX512.
5202
5203
08351840
PA
52042014-04-23 Pedro Alves <palves@redhat.com>
5205
5206 * breakpoint.c (insert_bp_location): Tolerate errors if the
5207 breakpoint is set in a user-loaded objfile.
5208 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5209 location is marked shlib_disabled. If the breakpoint is set in a
5210 user-loaded objfile is a GDB-side memory breakpoint, validate it
5211 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5212 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5213 flag.
5214 * mem-break.c (memory_validate_breakpoint): New function.
5215 * objfiles.c (userloaded_objfile_contains_address_p): New
5216 function.
5217 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5218 * target.h (memory_validate_breakpoint): New declaration.
5219
076855f9
PA
52202014-04-23 Pedro Alves <palves@redhat.com>
5221
5222 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5223 the breakpoint is set in a shared library, only suppress
5224 errors for software breakpoints, not hardware breakpoints.
5225
483805cf
PA
52262014-04-22 Pedro Alves <palves@redhat.com>
5227
5228 * infrun.c (schedlock_applies): New function, factored out from
5229 find_thread_needs_step_over.
5230 (find_thread_needs_step_over): Use it.
5231 (switch_back_to_stepped_thread): Always clear trap_expected if the
5232 step over is finished. Return early if scheduler locking applies.
5233 Look for the stepping thread and a potential step-over thread with
5234 a single loop.
5235 (currently_stepping_or_nexting_callback): Delete.
5236
a75fef0e
NC
52372014-04-22 Nick Clifton <nickc@redhat.com>
5238
5239 * NEWS: Mention that ARM sim now supports tracing.
5240
48b6e87e
YQ
52412014-04-22 Yao Qi <yao@codesourcery.com>
5242
5243 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5244 to ...
5245 * tracefile.c (tracefile_fetch_registers): ... it. New
5246 function.
5247 * tracefile.h (tracefile_fetch_registers): Declare.
5248 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5249 tracefile_fetch_registers.
5250
17617f2d
EZ
52512014-04-19 Eli Zaretskii <eliz@gnu.org>
5252
5253 PR gdb/14018
5254 * windows-nat.c (thread_rec): Don't display a warning when
5255 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5256 fails for any reason, set th->suspended to -1, so that we don't
5257 try to resume such a thread. Also, don't return NULL in these
5258 cases, to avoid completely ruin the session due to "PC register is
5259 not available" error.
5260 (do_windows_fetch_inferior_registers): Check errors in
5261 GetThreadContext call.
5262 (windows_continue): Accept an additional argument KILLED; if not
5263 zero, ignore errors in the SetThreadContext call, since the
5264 inferior was killed and is shutting down.
5265 (windows_resume, get_windows_debug_event)
5266 (windows_create_inferior, windows_mourn_inferior)
5267 (windows_kill_inferior): All callers of windows_continue changed
5268 to adjust to its new calling sequence.
5269
5723a6fd
YQ
52702014-04-19 Yao Qi <yao@codesourcery.com>
5271
5272 * ctf.c (ctf_open): Call post_create_inferior.
5273
614d5099
YQ
52742014-04-19 Yao Qi <yao@codesourcery.com>
5275
5276 * ctf.c (handle_id): New static variable.
5277 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5278 value. Get the declaration of event "register" and get length
5279 of field "contents".
5280
dac3e710
YQ
52812014-04-19 Yao Qi <yao@codesourcery.com>
5282
5283 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5284
2bca57ba
SC
52852014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5286
5287 * valops.c (oload_method_static): Remove unnecessary argument
5288 METHOD. Update all callers.
5289
51d48146
PA
52902014-04-18 Pedro alves <palves@redhat.com>
5291 Tom Tromey <tromey@redhat.com>
5292
5293 PR backtrace/15558
5294 * frame.c (get_prev_frame_1): Rename to ...
5295 (get_prev_frame_always): ... this, and make extern. Adjust.
5296 (skip_artificial_frames): Use get_prev_frame_always.
5297 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5298 (get_frame_unwind_stop_reason): Adjust to rename.
5299 * frame.h (get_prev_frame_always): Declare.
5300 * inline-frame.c: Include frame.h.
5301 (inline_frame_this_id): Use get_prev_frame_always.
5302
1bdad2e0
TG
53032014-04-18 Tristan Gingold <gingold@adacore.com>
5304
5305 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5306 code by using bfd_mach_o_get_base_address.
5307
7ce16bd4
UW
53082014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5309
5310 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5311 (spu_ax_pseudo_register_collect): New function.
5312 (spu_ax_pseudo_register_push_stack): Likewise.
5313 (spu_dwarf_reg_to_regnum): Likewise.
5314 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5315
2ed3c037
UW
53162014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5317
5318 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5319 Replace FRAME argument with FRAME_ID.
5320 * gdbarch.c, gdbarch.h: Regenerate.
5321 * findvar.c (default_value_from_register): Add GDBARCH argument;
5322 replace FRAME by FRAME_ID. No longer call get_frame_id.
5323 (value_from_register): Update call to gdbarch_value_from_register.
5324 * value.h (default_value_from_register): Update prototype.
5325 * s390-linux-tdep.c (s390_value_from_register): Update interface
5326 and call to default_value_from_register.
5327 * spu-tdep.c (spu_value_from_register): Likewise.
5328
5329 * findvar.c (address_from_register): Remove TYPE argument.
5330 Do not call value_from_register; use gdbarch_value_from_register
5331 with null_frame_id instead.
5332 * value.h (address_from_register): Update prototype.
5333 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5334 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5335 address_from_register interface change.
5336
71e50e83
YQ
53372014-04-17 Yao Qi <yao@codesourcery.com>
5338
5339 * gdbtypes.h: Update comments to link to types and macros'
5340 definitions.
5341
7a23c549
SC
53422014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5343
5344 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5345
22869d73
KS
53462014-04-16 Keith Seitz <keiths@redhat.com>
5347
5348 PR gdb/15827
5349 * dwarf2read.c (skip_one_die): Check that all relative-offset
5350 sibling DIEs fall within range of the current reader's buffer.
5351 (read_partial_die): Likewise.
5352
c4f87ca6
KS
53532014-04-16 Keith Seitz <keiths@redhat.com>
5354
5355 PR c++/16597
5356 * cp-namespace.c (lookup_symbol_file): If the type name of
5357 `this' is NULL, return immediately.
5358
b50c8614
KS
53592014-04-14 Keith Seitz <keiths@redhat.com>
5360
5361 PR c++/16253
5362 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5363 from symbol_matches_domain in symtab.c. All local callers
5364 of symbol_matches_domain updated.
5365 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5366 search STRUCT_DOMAIN.
5367 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5368 independently. standard_lookup will do that automatically.
5369 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5370 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5371 (cp_lookup_symbol_in_namespace): Likewise.
5372 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5373 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5374 may return a STRUCT_DOMAIN match.
5375 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5376 * cp-support.c: Include language.h.
5377 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5378 VAR_DOMAIN.
5379 * psymtab.c (match_partial_symbol): Compare the requested
5380 domain with the symbol's domain directly.
5381 (lookup_partial_symbol): Likewise.
5382 * symtab.c (lookup_symbol_in_language): Explain when/why
5383 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5384 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5385 appropriate languages.
5386 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5387 and moved to ada-lang.c
5388 (lookup_block_symbol): Explain that this function only returns
5389 symbol matching the requested DOMAIN.
5390 Compare the requested domain with the symbol's domain directly.
5391 (iterate_over_symbols): Compare the requested domain with the
5392 symbol's domain directly.
5393 * symtab.h (symbol_matches_domain): Remove.
5394
3d567982
TT
53952014-04-14 Tom Tromey <tromey@redhat.com>
5396
5397 PR c++/15246:
5398 * c-exp.y (type_aggregate_p): New function.
5399 (qualified_name, classify_inner_name): Use it.
5400 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5401 and TYPE_TARGET_TYPE of an enum type.
5402 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5403 an enum type.
5404 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5405 handle TYPE_DECLARED_CLASS.
5406 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5407 types.
5408 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5409 * valops.c (enum_constant_from_type): New function.
5410 (value_aggregate_elt): Use it.
5411 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5412 TYPE_CODE_ENUM.
5413
c848d642
TT
54142014-04-14 Tom Tromey <tromey@redhat.com>
5415
5416 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5417 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5418 const.
5419 * value.h (value_aggregate_elt): Update.
5420
0626fc76
TT
54212014-04-14 Tom Tromey <tromey@redhat.com>
5422
5423 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5424
5ecaaa66
SA
54252014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5426
5427 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5428 (evaluate_subexp_standard): Pass noside argument.
5429 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5430 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5431 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5432 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5433 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5434
1612e0c0
SA
54352014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5436
5437 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5438 points to a constant blob.
5439
c451ebe5
SA
54402014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5441
5442 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5443 property and store it as the high bound and flag the range accordingly.
5444 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5445 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5446 * gdbtypes.h (enum range_flags): New enum.
5447 (struct range_bounds): Add flags member.
5448
1d42e4c4
SA
54492014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5450
5451 * c-typeprint.c (c_type_print_varspec_suffix): Added
5452 check for not yet resolved high bound. If unresolved, print
5453 "variable length" string to the console instead of random
5454 length.
5455
9f1f738a
SA
54562014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5457
5458 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5459 value.
5460 (ada_template_to_fixed_record_type_1): Likewise.
5461 (ada_to_fixed_type_1): Likewise.
5462 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5463 (cp_print_value): Likewise.
5464 * d-valprint.c (dynamic_array_type): Likewise.
5465 * findvar.c (address_of_variable): Likewise.
5466 * jv-valprint.c (java_value_print): Likewise.
5467 * valops.c (value_ind): Likewise.
5468 * value.c (coerce_ref): Likewise.
5469
3c8452d4
SA
54702014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5471
5472 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5473 value and retrieve the dynamic type size.
5474
4ad88275
SA
54752014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5476
5477 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5478 passed to sizeof is dynamic evaluate the argument to compute the length.
5479
80180f79
SA
54802014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5481 Joel Brobecker <brobecker@adacore.com>
5482
5483 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5484 (dwarf2_evaluate_property): New function.
5485 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5486 * dwarf2read.c (attr_to_dynamic_prop): New function.
5487 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5488 attribute.
5489 * gdbtypes.c: Include dwarf2loc.h.
5490 (is_dynamic_type): New function.
5491 (resolve_dynamic_type): New function.
5492 (resolve_dynamic_bounds): New function.
5493 (get_type_length): New function.
5494 (check_typedef): Use get_type_length to compute type length.
5495 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5496 (TYPE_LOW_BOUND_KIND): New macro.
5497 (is_dynamic_type): New function prototype.
5498 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5499 to resolve dynamic properties of the type. Update comment.
5500 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5501
a1556843
RH
55022014-04-14 Richard Henderson <rth@redhat.com>
5503
5504 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5505
0be03e84
DE
55062014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5507 Doug Evans <xdje42@gmail.com>
5508
5509 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5510 dereference TYPE_CODE_REF values.
5511
6b662e19
JB
55122014-04-11 Joel Brobecker <brobecker@adacore.com>
5513
5514 Revert the following changes due to regressions:
5515
5516 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5517 (dwarf2_evaluate_property): New function.
5518 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5519 * dwarf2read.c (attr_to_dynamic_prop): New function.
5520 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5521 attribute.
5522 * gdbtypes.c: Include dwarf2loc.h.
5523 (is_dynamic_type): New function.
5524 (resolve_dynamic_type): New function.
5525 (resolve_dynamic_bounds): New function.
5526 (get_type_length): New function.
5527 (check_typedef): Use get_type_length to compute type length.
5528 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5529 (TYPE_LOW_BOUND_KIND): New macro.
5530 (is_dynamic_type): New function prototype.
5531 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5532 to resolve dynamic properties of the type. Update comment.
5533 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5534
5535 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5536 passed to sizeof is dynamic evaluate the argument to compute the length.
5537
5538 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5539 value and retrieve the dynamic type size.
5540
5541 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5542 (ada_template_to_fixed_record_type_1): Likewise.
5543 (ada_to_fixed_type_1): Likewise.
5544 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5545 (cp_print_value): Likewise.
5546 * d-valprint.c (dynamic_array_type): Likewise.
5547 * eval.c (evaluate_subexp_with_coercion): Likewise.
5548 * findvar.c (address_of_variable): Likewise.
5549 * jv-valprint.c (java_value_print): Likewise.
5550 * valops.c (value_ind): Likewise.
5551 * value.c (coerce_ref): Likewise.
5552
5553 * c-typeprint.c (c_type_print_varspec_suffix): Added
5554 check for not yet resolved high bound. If unresolved, print
5555 "variable length" string to the console instead of random
5556 length.
5557
5558 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5559 property and store it as the high bound and flag the range accordingly.
5560 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5561 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5562 * gdbtypes.h (enum range_flags): New enum.
5563 (struct range_bounds): Add flags member.
5564
5565 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5566 points to a constant blob.
5567
5568 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5569 (evaluate_subexp_standard): Pass noside argument.
5570 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5571 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5572 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5573 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5574 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5575
245a5f0b
KS
55762014-04-11 Keith Seitz <keiths@redhat.com>
5577
5578 PR c++/16675
5579 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5580 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5581 reference types.
5582
3bce8237
SA
55832014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5584
5585 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5586 (evaluate_subexp_standard): Pass noside argument.
5587 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5588 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5589 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5590 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5591 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5592
92b09522
SA
55932014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5594
5595 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5596 points to a constant blob.
5597
e1969afb
SA
55982014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5599
5600 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5601 property and store it as the high bound and flag the range accordingly.
5602 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5603 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5604 * gdbtypes.h (enum range_flags): New enum.
5605 (struct range_bounds): Add flags member.
5606
b86138fb
SA
56072014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5608
5609 * c-typeprint.c (c_type_print_varspec_suffix): Added
5610 check for not yet resolved high bound. If unresolved, print
5611 "variable length" string to the console instead of random
5612 length.
5613
bcd629a4
SA
56142014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5615
5616 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5617 (ada_template_to_fixed_record_type_1): Likewise.
5618 (ada_to_fixed_type_1): Likewise.
5619 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5620 (cp_print_value): Likewise.
5621 * d-valprint.c (dynamic_array_type): Likewise.
5622 * eval.c (evaluate_subexp_with_coercion): Likewise.
5623 * findvar.c (address_of_variable): Likewise.
5624 * jv-valprint.c (java_value_print): Likewise.
5625 * valops.c (value_ind): Likewise.
5626 * value.c (coerce_ref): Likewise.
5627
04b19544
SA
56282014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5629
5630 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5631 value and retrieve the dynamic type size.
5632
26cb189f
SA
56332014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5634
5635 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5636 passed to sizeof is dynamic evaluate the argument to compute the length.
5637
37c1ab67
SA
56382014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5639
5640 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5641 (dwarf2_evaluate_property): New function.
5642 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5643 * dwarf2read.c (attr_to_dynamic_prop): New function.
5644 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5645 attribute.
5646 * gdbtypes.c: Include dwarf2loc.h.
5647 (is_dynamic_type): New function.
5648 (resolve_dynamic_type): New function.
5649 (resolve_dynamic_bounds): New function.
5650 (get_type_length): New function.
5651 (check_typedef): Use get_type_length to compute type length.
5652 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5653 (TYPE_LOW_BOUND_KIND): New macro.
5654 (is_dynamic_type): New function prototype.
5655 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5656 to resolve dynamic properties of the type. Update comment.
5657 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5658
729efb13
SA
56592014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5660
5661 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5662 declaring high/low bounds and change uses accordingly. Call
5663 create_range_type instead of create_static_range_type.
5664 * gdbtypes.c (create_range_type): New function.
5665 (create_range_type): Convert bounds into struct bound_prop and pass
5666 them to create_range_type.
5667 * gdbtypes.h (struct bound_prop): New struct.
5668 (create_range_type): New function prototype.
5669 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5670 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5671 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5672 part of the bound.
5673 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5674
0c9c3474
SA
56752014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5676
5677 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5678 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5679 * ada-lang.c: All uses of create_range_type updated.
5680 * coffread.c: All uses of create_range_type updated.
5681 * dwarf2read.c: All uses of create_range_type updated.
5682 * f-exp.y: All uses of create_range_type updated.
5683 * m2-valprint.c: All uses of create_range_type updated.
5684 * mdebugread.c: All uses of create_range_type updated.
5685 * stabsread.c: All uses of create_range_type updated.
5686 * valops.c: All uses of create_range_type updated.
5687 * valprint.c: All uses of create_range_type updated.
5688
9d497a19
PA
56892014-04-10 Pedro Alves <palves@redhat.com>
5690
5691 * breakpoint.c (single_step_breakpoints)
5692 (single_step_gdbarch): Move up in the file.
5693 (one_breakpoint_xfer_memory): New function, factored out from ...
5694 (breakpoint_xfer_memory): ... here. Also process single-step
5695 breakpoints.
5696
15a9128a
TG
56972014-04-09 Tristan Gingold <gingold@adacore.com>
5698
5699 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5700 comments.
5701 (darwin_decode_exception_message): Free port only after use.
5702
9c97a070
PL
57032014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5704
5705 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5706 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5707 when setting the size of call_length.
5708
7af389b8
SC
57092014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5710
5711 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5712 dereference TYPE_CODE_REF values.
5713
86ad98c3
JB
57142014-04-07 Joel Brobecker <brobecker@adacore.com>
5715
5716 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5717 end of warning message.
5718
b0aeadb3
DE
57192014-04-03 Doug Evans <dje@google.com>
5720
5721 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5722 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5723
5979d6b6
AM
57242014-04-02 Alan Modra <amodra@gmail.com>
5725
5726 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5727 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5728 (struct symbol_file_add_from_memory_args): Add size field.
5729 (find_vdso_size): New function.
5730 (add_vsyscall_page): Attempt to find vdso size.
5731
0d60c288
DE
57322014-04-01 Doug Evans <dje@google.com>
5733
5734 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5735
a41f2563
TG
57362014-04-01 Tristan Gingold <gingold@adacore.com>
5737
5738 * darwin-nat.c (darwin_encode_reply): Add prototype.
5739 (darwin_decode_exception_message): Reply to unknown inferiors.
5740 (darwin_decode_message): Handle message by id. Ignore message
5741 to unknown inferior.
5742 (darwin_wait): Discard unknown messages, add debug trace.
5743
11a865c8
DE
57442014-03-31 Doug Evans <dje@google.com>
5745
5746 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5747 comp_dir_string.
5748
770e7fc7
DE
57492014-03-31 Doug Evans <dje@google.com>
5750
5751 New option "set print symbol-loading".
5752 * NEWS: Mention it.
5753 * solib.c (solib_read_symbols): Only print symbol loading messages
5754 if requested.
5755 (solib_add): If symbol loading is in "brief" mode, notify user
5756 symbols are being loaded.
5757 (reload_shared_libraries_1): Ditto.
5758 * symfile.c (print_symbol_loading_off): New static global.
5759 (print_symbol_loading_brief): New static global.
5760 (print_symbol_loading_full): New static global.
5761 (print_symbol_loading_enums): New static global.
5762 (print_symbol_loading): New static global.
5763 (print_symbol_loading_p): New function.
5764 (symbol_file_add_with_addrs): Only print symbol loading messages
5765 if requested.
5766 (_initialize_symfile): Register "print symbol-loading" set/show
5767 command.
5768 * symfile.h (print_symbol_loading_p): Declare.
5769
c32c64b7
DE
57702014-03-30 Doug Evans <xdje42@gmail.com>
5771
5772 * infrun.c (set_last_target_status): New function.
5773 (handle_inferior_event): Call it.
5774
7c0bc051
DE
57752014-03-30 Doug Evans <xdje42@gmail.com>
5776
5777 * inferior.h (enum stop_kind): Improve comment.
5778
8776cfe9
JB
57792014-03-28 Joel Brobecker <brobecker@adacore.com>
5780
5781 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5782 a reference, strip the reference layer before calling
5783 the lang_ops value_has_mutated callback.
5784
410a0ff2
SDJ
57852014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5786
5787 Remove some globals from our parser.
5788 * language.c (unk_lang_parser): Add "struct parser_state"
5789 argument.
5790 * language.h (struct language_defn) <la_parser>: Likewise.
5791 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5792 (initialize_expout): Add "struct parser_state" argument.
5793 Rewrite function to use the parser state.
5794 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5795 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5796 write_exp_elt_longcst, write_exp_elt_dblcst,
5797 write_exp_elt_decfloatcst, write_exp_elt_type,
5798 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5799 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5800 write_dollar_variable): Likewise.
5801 (parse_exp_in_context_1): Use parser state.
5802 (insert_type_address_space): Add "struct parser_state" argument.
5803 Use parser state.
5804 (increase_expout_size): New function.
5805 * parser-defs.h: Forward declare "struct language_defn" and
5806 "struct parser_state".
5807 (expout, expout_size, expout_ptr): Remove extern declarations.
5808 (parse_gdbarch, parse_language): Rewrite macro declarations to
5809 accept the parser state.
5810 (struct parser_state): New struct.
5811 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5812 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5813 write_exp_elt_decfloatcst, write_exp_elt_type,
5814 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5815 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5816 write_exp_msymbol, write_dollar_variable,
5817 mark_struct_expression, insert_type_address_space): Add "struct
5818 parser_state" argument.
5819 (increase_expout_size): New function.
5820 * utils.c (do_clear_parser_state): New function.
5821 (make_cleanup_clear_parser_state): Likewise.
5822 * utils.h (make_cleanup_clear_parser_state): New function
5823 prototype.
5824 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5825 Update calls to write_exp* in order to pass the parser state.
5826 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5827 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5828 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5829 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5830 * stap-probe.c (stap_parse_register_operand): Likewise.
5831 (stap_parse_single_operand): Likewise.
5832 (stap_parse_argument_1): Likewise.
5833 (stap_parse_argument): Use parser state.
5834 * stap-probe.h: Include "parser-defs.h".
5835 (struct stap_parse_info) <pstate>: New field.
5836 * c-exp.y (parse_type): Rewrite to use parser state.
5837 (yyparse): Redefine to c_parse_internal.
5838 (pstate): New global variable.
5839 (parse_number): Add "struct parser_state" argument.
5840 (write_destructor_name): Likewise.
5841 (type_exp): Update calls to write_exp* and similars in order to
5842 use parser state.
5843 (exp1, exp, variable, qualified_name, space_identifier,
5844 typename, typebase): Likewise.
5845 (write_destructor_name, parse_number, lex_one_token,
5846 classify_name, classify_inner_name, c_parse): Add "struct
5847 parser_state" argument. Update function to use parser state.
5848 * c-lang.h: Forward declare "struct parser_state".
5849 (c_parse): Add "struct parser_state" argument.
5850 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5851 (yyparse): Redefine macro to ada_parse_internal.
5852 (pstate): New variable.
5853 (write_int, write_object_renaming, write_var_or_type,
5854 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5855 type_int, type_long, type_long_long, type_float, type_double,
5856 type_long_double, type_char, type_boolean, type_system_address):
5857 Add "struct parser_state" argument.
5858 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5859 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5860 var_or_type, aggregate, aggregate_component_list,
5861 positional_list, others, component_group,
5862 component_associations): Update calls to write_exp* and similar
5863 functions in order to use parser state.
5864 (ada_parse, write_var_from_sym, write_int,
5865 write_exp_op_with_string, write_object_renaming,
5866 find_primitive_type, write_selectors, write_ambiguous_var,
5867 write_var_or_type, write_name_assoc, type_int, type_long,
5868 type_long_long, type_float, type_double, type_long_double,
5869 type_char, type_boolean, type_system_address): Add "struct
5870 parser_state" argument. Adjust function to use parser state.
5871 * ada-lang.c (parse): Likewise.
5872 * ada-lang.h: Forward declare "struct parser_state".
5873 (ada_parse): Add "struct parser_state" argument.
5874 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5875 calls to both functions.
5876 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5877 parser state.
5878 (yyparse): Redefine macro to f_parse_internal.
5879 (pstate): New variable.
5880 (parse_number): Add "struct parser_state" argument.
5881 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5882 and similars in order to use parser state.
5883 (parse_number): Adjust code to use parser state.
5884 (yylex): Likewise.
5885 (f_parse): New function.
5886 * f-lang.h: Forward declare "struct parser_state".
5887 (f_parse): Add "struct parser_state" argument.
5888 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5889 parser state.
5890 (yyparse): Redefine macro for java_parse_internal.
5891 (pstate): New variable.
5892 (push_expression_name, push_expression_name, insert_exp): Add
5893 "struct parser_state" argument.
5894 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5895 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5896 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5897 PostIncrementExpression, PostDecrementExpression,
5898 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5899 UnaryExpressionNotPlusMinus, CastExpression,
5900 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5901 RelationalExpression, EqualityExpression, AndExpression,
5902 ExclusiveOrExpression, InclusiveOrExpression,
5903 ConditionalAndExpression, ConditionalOrExpression,
5904 ConditionalExpression, Assignment, LeftHandSide): Update
5905 calls to write_exp* and similars in order to use parser state.
5906 (parse_number): Ajust code to use parser state.
5907 (yylex): Likewise.
5908 (java_parse): New function.
5909 (push_variable): Add "struct parser_state" argument. Adjust
5910 code to user parser state.
5911 (push_fieldnames, push_qualified_expression_name,
5912 push_expression_name, insert_exp): Likewise.
5913 * jv-lang.h: Forward declare "struct parser_state".
5914 (java_parse): Add "struct parser_state" argument.
5915 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5916 parser state.
5917 (yyparse): Redefine macro to m2_parse_internal.
5918 (pstate): New variable.
5919 (type_exp, exp, fblock, variable, type): Update calls to
5920 write_exp* and similars to use parser state.
5921 (yylex): Likewise.
5922 (m2_parse): New function.
5923 * m2-lang.h: Forward declare "struct parser_state".
5924 (m2_parse): Add "struct parser_state" argument.
5925 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5926 * objc-lang.h: Forward declare "struct parser_state".
5927 (end_msglist): Add "struct parser_state" argument.
5928 * p-exp.y (parse_type): Rewrite macro to use parser state.
5929 (yyparse): Redefine macro to pascal_parse_internal.
5930 (pstate): New variable.
5931 (parse_number): Add "struct parser_state" argument.
5932 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5933 write_exp* and similars in order to use parser state.
5934 (parse_number, yylex): Adjust code to use parser state.
5935 (pascal_parse): New function.
5936 * p-lang.h: Forward declare "struct parser_state".
5937 (pascal_parse): Add "struct parser_state" argument.
5938 * go-exp.y (parse_type): Rewrite macro to use parser state.
5939 (yyparse): Redefine macro to go_parse_internal.
5940 (pstate): New variable.
5941 (parse_number): Add "struct parser_state" argument.
5942 (type_exp, exp1, exp, variable, type): Update calls to
5943 write_exp* and similars in order to use parser state.
5944 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5945 to use parser state.
5946 (go_parse): Likewise.
5947 * go-lang.h: Forward declare "struct parser_state".
5948 (go_parse): Add "struct parser_state" argument.
5949
342587c4
DE
59502014-03-27 Doug Evans <dje@google.com>
5951
5952 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5953
33e80786
DE
59542014-03-27 Doug Evans <dje@google.com>
5955
5956 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5957 Remove argument abbrev_section. All callers updated.
5958
1dbab08b
DE
59592014-03-27 Doug Evans <dje@google.com>
5960
5961 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5962 addr_base, ranges_base.
5963
318d3177
KS
59642014-03-26 Keith Seitz <keiths@redhat.com>
5965
5966 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5967 types, not VAR_DOMAIN.
5968
1e54db15
SL
59692014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5970
5971 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5972 "ra" registers.
5973 * features/nios2-linux.c: Regenerated.
5974 * features/nios2.c: Regenerated.
5975
d3839ede
PA
59762014-03-25 Pedro Alves <palves@redhat.com>
5977
5978 * cli/cli-script.c (script_from_file): Force the interpreter to
5979 sync mode.
5980
7588d2ec
PL
59812014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5982
5983 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5984 small stack allocation.
5985
a6290449
TG
59862014-03-24 Tristan Gingold <gingold@adacore.com>
5987
5988 * darwin-nat.c (exc_server): Remove unused prototype.
5989 (darwin_dump_message): Correctly display data on x86_64.
5990 (darwin_encode_reply): Fix style.
5991 Add comments and fix indentation.
5992
31ae9d24 59932014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5994
5995 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5996
6339bfc4
DE
59972014-03-22 Doug Evans <xdje42@gmail.com>
5998
5999 * infcmd.c: Whitespace fixes.
6000 (interrupt_command): Merge two function comments into one.
6001
0a07590b
DE
60022014-03-22 Doug Evans <xdje42@gmail.com>
6003
6004 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
6005 All uses updated.
6006
b55fbac4
YQ
60072014-03-22 Yao Qi <yao@codesourcery.com>
6008
6009 * remote.c (target_read_live_memory): Remove.
6010 (memory_xfer_live_readonly_partial): Rename it to
6011 remote_xfer_live_readonly_partial. Remove argument 'object'.
6012 All callers updated. Call remote_read_bytes_1
6013 instead of target_read_live_memory.
6014 * tracepoint.c (set_traceframe_number): Remove.
6015 (make_cleanup_restore_traceframe_number): Likewise .
6016 * tracepoint.h (set_traceframe_number): Remove declaration.
6017 (make_cleanup_restore_traceframe_number): Likewise.
6018
9217e74e
YQ
60192014-03-22 Yao Qi <yao@codesourcery.com>
6020
6021 * remote.c (remote_read_bytes): Move code on reading from the
6022 remote stub to ...
6023 (remote_read_bytes_1): ... here. New function.
6024
8acf9577
YQ
60252014-03-22 Yao Qi <yao@codesourcery.com>
6026
6027 * ctf.c (ctf_xfer_partial): Check the return value of
6028 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
6029 return TARGET_XFER_UNAVAILABLE.
6030 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6031 * target.c (target_read_live_memory): Move it to remote.c.
6032 (memory_xfer_live_readonly_partial): Likewise.
6033 (memory_xfer_partial_1): Move some code to remote_read_bytes.
6034 * remote.c (target_read_live_memory): Moved from target.c.
6035 (memory_xfer_live_readonly_partial): Likewise.
6036 (remote_read_bytes): Factored out from
6037 memory_xfer_partial_1.
6038
feef67ab
DE
60392014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
6040
6041 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
6042 NULL pointer.
6043
b65dc60b
PA
60442014-03-21 Pedro Alves <palves@redhat.com>
6045
6046 * infrun.c (normal_stop): Extend comment.
6047
b4ab256d
HZ
60482014-03-21 Hui Zhu <hui@codesourcery.com>
6049 Pedro Alves <palves@redhat.com>
6050
6051 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6052 static buffer.
6053 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6054 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6055 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6056
deba7593
MR
60572014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6058
6059 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6060 `z' formatted output modifier.
6061
1bff71c3
SDJ
60622014-03-20 Tom Tromey <tromey@redhat.com>
6063 Sergio Durigan Junior <sergiodj@redhat.com>
6064
6065 * probe.c (parse_probes): Turn assert into an ordinary error.
6066 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6067 exceptions when parsing probes. Rearrange the code for clarity.
6068
90e28950
TT
60692014-03-20 Tom Tromey <tromey@redhat.com>
6070
6071 PR gdb/14135
6072 * top.c (execute_command): Only dispatch events if the command
6073 started the target.
6074
beb460e8
PA
60752014-03-20 Tom Tromey <tromey@redhat.com>
6076
6077 PR cli/15718
6078 * infcall.c: Include event-top.h.
6079 (run_inferior_call): Call async_disable_stdin if needed.
6080
99619bea
PA
60812014-03-20 Pedro Alves <palves@redhat.com>
6082
6083 * infrun.c (prepare_to_proceed): Delete.
6084 (thread_still_needs_step_over): New function.
6085 (find_thread_needs_step_over): New function.
6086 (proceed): If the current thread needs a step-over, set its
6087 steping_over_breakpoint flag. Adjust to use
6088 find_thread_needs_step_over instead of prepare_to_proceed.
6089 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6090 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6091 breakpoint.
6092 (switch_back_to_stepped_thread): Step over breakpoints of all
6093 threads not the stepping thread, before switching back to the
6094 stepping thread.
6095
2adfaa28
PA
60962014-03-20 Pedro Alves <palves@redhat.com>
6097
6098 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6099 extern.
6100 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6101 * infrun.c (saved_singlestep_ptid)
6102 (stepping_past_singlestep_breakpoint): Delete.
6103 (resume): Remove stepping_past_singlestep_breakpoint handling.
6104 (proceed): Store the prev_pc of the stepping thread too.
6105 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6106 singlestep_pc.
6107 (enum infwait_states): Delete infwait_thread_hop_state.
6108 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6109 field.
6110 (handle_inferior_event): Adjust.
6111 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6112 handling and the thread-hop code. Before removing single-step
6113 breakpoints, check whether the thread hit a single-step breakpoint
6114 of another thread. If it did, the trap is not a random signal.
6115 (switch_back_to_stepped_thread): If the event thread hit a
6116 single-step breakpoint, unblock it before switching to the
6117 stepping thread. Handle the case of the stepped thread having
6118 advanced already.
6119 (keep_going): Handle the case of the current thread moving past a
6120 single-step breakpoint.
6121
31e77af2
PA
61222014-03-20 Pedro Alves <palves@redhat.com>
6123
6124 PR breakpoints/7143
6125 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6126 are being stepped over.
6127 (breakpoint_address_match): Make extern.
6128 * breakpoint.h (breakpoint_address_match): New declaration.
6129 * inferior.h (stepping_past_instruction_at): New declaration.
6130 * infrun.c (struct step_over_info): New type.
6131 (step_over_info): New global.
6132 (set_step_over_info, clear_step_over_info)
6133 (stepping_past_instruction_at): New functions.
6134 (handle_inferior_event): Clear the step-over info when
6135 trap_expected is cleared.
6136 (resume): Remove now stale comment.
6137 (clear_proceed_status): Clear step-over info.
6138 (proceed): Adjust step-over handling to set or clear the step-over
6139 info instead of removing all breakpoints.
6140 (handle_signal_stop): When setting up a thread-hop, don't remove
6141 breakpoints here.
6142 (stop_stepping): Clear step-over info.
6143 (keep_going): Adjust step-over handling to set or clear step-over
6144 info and then always inserting breakpoints, instead of removing
6145 all breakpoints when stepping over one.
6146
b9f437de
PA
61472014-03-20 Pedro Alves <palves@redhat.com>
6148
6149 * infrun.c (previous_inferior_ptid): Adjust comment.
6150 (deferred_step_ptid): Delete.
6151 (infrun_thread_ptid_changed, prepare_to_proceed)
6152 (init_wait_for_inferior): Adjust.
6153 (handle_signal_stop): Delete deferred_step_ptid handling.
6154
06c868a8
JK
61552014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6156
6157 PR gdb/15358
6158 * defs.h (sync_quit_force_run): New declaration.
6159 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6160 * event-top.c (async_sigterm_handler): New declaration.
6161 (async_sigterm_token): New variable.
6162 (async_init_signals): Create also async_sigterm_token.
6163 (async_sigterm_handler): New function.
6164 (sync_quit_force_run): New variable.
6165 (handle_sigterm): Replace quit_force call by other calls.
6166 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6167
dea80df0
MR
61682014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6169
6170 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6171 offset into SPE pseudo registers.
6172
0c7e1a46
PA
61732014-03-18 Pedro Alves <palves@redhat.com>
6174
6175 PR gdb/13860
6176 * inferior.h (print_stop_event): Declare.
6177 * infrun.c (print_stop_event): New, factored out from ...
6178 (normal_stop): ... this.
6179 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6180 of bpstat_print/print_stack_frame.
6181
9c1fcd01
TT
61822014-03-17 Tom Tromey <tromey@redhat.com>
6183
6184 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6185
11aa919a
PMR
61862014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6187
6188 * ada-lang.c (decode_constrained_packed_array): Perform a
6189 minimal coercion for reference with coerce_ref instead of
6190 ada_coerce_ref.
6191
d4ccb5e0
TG
61922014-03-17 Tristan Gingold <gingold@adacore.com>
6193
6194 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6195 (darwin_solib_create_inferior_hook): Emit a warning if version
6196 is unhandled.
6197
49840f2a
UW
61982014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6199
6200 * python/py-value.c (get_field_flag): Cast flag_name argument to
6201 PyObject_GetAttrString to support Python 2.4.
6202
ed4123e5
JK
62032014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6204
6205 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6206 (Global Maintainers): Remove Jan Kratochvil.
6207
d6b64346
PA
62082014-03-14 Pedro Alves <palves@redhat.com>
6209
6210 * inferior.h (terminal_ours_for_output): Rename to ...
6211 (child_terminal_ours_for_output): ... this.
6212 (terminal_save_ours): Rename to ...
6213 (child_terminal_save_ours): ... this.
6214 (terminal_ours): Rename to ...
6215 (child_terminal_ours): ... this.
6216 (terminal_inferior): Rename to ...
6217 (child_terminal_inferior): ... this.
6218 (terminal_init_inferior): Rename to ...
6219 (child_terminal_init_inferior): ... this.
6220 (terminal_init_inferior_with_pgrp): Rename to ...
6221 (child_terminal_init_inferior_with_pgrp): ... this.
6222 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6223 (child_terminal_init_with_pgrp): ... this.
6224 (terminal_save_ours): Rename to ...
6225 (child_terminal_save_ours): ... this.
6226 (terminal_init_inferior): Rename to ...
6227 (child_terminal_init): ... this. Adjust.
6228 (terminal_inferior): Rename to ...
6229 (child_terminal_inferior): ... this.
6230 (terminal_ours_for_output): Rename to ...
6231 (child_terminal_ours_for_output): ... this. Adjust.
6232 (terminal_ours): Rename to ...
6233 (child_terminal_ours): ... this.
6234 (terminal_ours_1): Rename to ...
6235 (child_terminal_ours_1): ... this. Adjust.
6236 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6237 * windows-nat.c (do_initial_windows_stuff): Adjust.
6238 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6239 (gnu_terminal_init): ... this. Adjust.
6240 (gnu_target): Adjust.
6241 * inf-child.c (inf_child_target): Adjust.
6242
5a1e8c7a
DE
62432014-03-13 Doug Evans <xdje42@gmail.com>
6244
6245 PR guile/16612
6246 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6247 new eq?-hashtab.
6248
350e1a76
DE
62492014-03-13 Doug Evans <xdje42@gmail.com>
6250
6251 * value.c (record_latest_value): Call release_value_or_incref
6252 instead of release_value.
6253
a69900ae
PA
62542014-03-13 Pedro Alves <palves@redhat.com>
6255
6256 * procfs.c (procfs_target): Don't override to_shortname,
6257 to_longname or to_doc.
6258
5db9f0bd
PA
62592014-03-13 Pedro Alves <palves@redhat.com>
6260
6261 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6262 Unix in user visible strings.
6263
5e3a2c38
SS
62642014-03-12 Stan Shebs <stan@codesourcery.com>
6265
6266 * gdbtypes.h: Annotate comments for Doxygen, add a page
6267 block comment with some general info.
6268
8bc2fe48
PA
62692014-03-12 Pedro Alves <palves@redhat.com>
6270
6271 * infcmd.c (prepare_execution_command): New function, factored out
6272 from several execution commands.
6273 (run_command_1, continue_command, step_1, jump_command)
6274 (signal_command, until_command, advance_command, finish_command)
6275 (attach_command): Use prepare_execution_command.
6276
638c5f49
OJ
62772014-03-12 Omair Javaid <omair.javaid@linaro.org>
6278
6279 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6280 (MAX_BPTS): Define.
6281 (MAX_WPTS): Define.
6282 (struct arm_linux_thread_points): Removed.
6283 (struct arm_linux_process_info): New.
6284 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6285 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6286 (arm_linux_find_breakpoints_by_tid): Removed.
6287 (struct arch_lwp_info): New.
6288 (arm_linux_find_process_pid): New functions.
6289 (arm_linux_add_process): New functions.
6290 (arm_linux_process_info_get): New functions.
6291 (arm_linux_forget_process): New function.
6292 (arm_linux_get_debug_reg_state): New function.
6293 (struct update_registers_data): New.
6294 (update_registers_callback): New function.
6295 (arm_linux_insert_hw_breakpoint1): Updated.
6296 (arm_linux_remove_hw_breakpoint1): Updated.
6297 (arm_linux_insert_hw_breakpoint): Updated.
6298 (arm_linux_remove_hw_breakpoint): Updated.
6299 (arm_linux_insert_watchpoint): Updated.
6300 (arm_linux_remove_watchpoint): Updated.
6301 (arm_linux_new_thread): Updated.
6302 (arm_linux_prepare_to_resume): New function.
6303 (arm_linux_new_fork): New function.
6304 (_initialize_arm_linux_nat): Updated.
6305
6d03af93
PA
63062014-03-12 Pedro Alves <palves@redhat.com>
6307
6308 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6309
b3ccfe11
TT
63102014-03-12 Tom Tromey <tromey@redhat.com>
6311
6312 * inf-child.c (return_zero): New function.
6313 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6314 * aix-thread.c (aix_thread_inferior_created): New function.
6315 (aix_thread_attach): Remove.
6316 (init_aix_thread_ops): Don't set to_attach.
6317 (_initialize_aix_thread): Register inferior_created observer.
6318 * corelow.c (init_core_ops): Don't set to_attach or
6319 to_create_inferior.
6320 * exec.c (init_exec_ops): Don't set to_attach or
6321 to_create_inferior.
6322 * infcmd.c (run_command_1): Use find_run_target. Make direct
6323 target calls.
6324 (attach_command): Use find_attach_target. Make direct target
6325 calls.
6326 * record-btrace.c (init_record_btrace_ops): Don't set
6327 to_create_inferior.
6328 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6329 Remove.
6330 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6331 set to_create_inferior.
6332 * target.c (complete_target_initialization): Add assertion.
6333 (target_create_inferior): Remove.
6334 (find_default_attach, find_default_create_inferior): Remove.
6335 (find_attach_target, find_run_target): New functions.
6336 (find_default_is_async_p, find_default_can_async_p)
6337 (target_supports_non_stop, target_attach): Remove.
6338 (init_dummy_target): Don't set to_create_inferior or
6339 to_supports_non_stop.
6340 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6341 TARGET_DEFAULT_FUNC.
6342 <to_create_inferior>: Add comment.
6343 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6344 TARGET_DEFAULT_RETURN.
6345 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6346 (find_attach_target, find_run_target): Declare.
6347 (target_create_inferior): Remove.
6348 (target_has_execution_1): Update comment.
6349 (target_supports_non_stop): Remove.
6350 * target-delegates.c: Rebuild.
6351
91f83b02
PA
63522014-03-12 Pedro Alves <palves@redhat.com>
6353
6354 * inf-child.h: Update comment to not mention Unix.
6355
f1aea813
PA
63562014-03-12 Pedro Alves <palves@redhat.com>
6357
6358 * inf-child.c: Update top comment to not mention Unix. Add
6359 generic comment describing how this target is meant to be used.
6360 (inf_child_post_attach, inf_child_post_startup_inferior)
6361 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6362 Unix in comment.
6363
ee8e9165
PA
63642014-03-12 Pedro Alves <palves@redhat.com>
6365
6366 * nto-procfs.c: Include inf-child.h.
6367 (procfs_ops): Delete global.
6368 (procfs_can_run): Delete method.
6369 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6370 target pointer instead of referencing procfs_ops.
6371 (procfs_prepare_to_store): Delete.
6372 (init_procfs_ops): Delete function.
6373 (procfs_target): New function, based on init_procfs_ops, but
6374 inherit inf_child_target.
6375 (_initialize_procfs): Use procfs_target.
6376
51a9c8c5
PA
63772014-03-12 Pedro Alves <palves@redhat.com>
6378
6379 * windows-nat.c: Include inf-child.h.
6380 (windows_ops): Delete global.
6381 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6382 methods.
6383 (init_windows_ops): Delete function.
6384 (windows_target): New function, based on init_windows_ops, but
6385 inherit inf_child_target.
6386 (_initialize_windows_nat): Use windows_target. Install x86
6387 specific target methods here.
6388
c1966e26
DE
63892014-03-10 Doug Evans <xdje42@gmail.com>
6390
6391 * guile/guile.c (call_initialize_gdb_module): New function.
6392 (initialize_guile): Replace call to scm_init_guile with call to
6393 scm_with_guile.
6394
023db19c
JB
63952014-03-10 Joel Brobecker <brobecker@adacore.com>
6396
6397 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6398 in call to TYPE_CODE macro.
6399
5ec18f2b
JG
64002014-03-10 Jerome Guitton <guitton@adacore.com>
6401
8668be63
JB
6402 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6403 Resolve tagged types to full view.
5ec18f2b 6404
7d03f2eb
HZ
64052014-03-10 Hui Zhu <hui@codesourcery.com>
6406
6407 * target.h (target_insert_breakpoint): Remove "hardware" from its
6408 comments.
6409
c5164cbc
DE
64102014-03-07 Doug Evans <dje@google.com>
6411
6412 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6413
c4a3fee2
DE
64142014-03-07 Doug Evans <dje@google.com>
6415
6416 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6417 Remove unused local comp_dir_attr. Assert exactly one of
6418 stub_comp_unit_die, stub_comp_dir is non-NULL.
6419
3156469c
JB
64202014-03-07 Joel Brobecker <brobecker@adacore.com>
6421
6422 * target.h (complete_target_initialization, add_target):
6423 Add comment.
6424
c1a7b7c6
PA
64252014-03-07 Pedro Alves <palves@redhat.com>
6426
6427 * go32-nat.c: Include inf-child.h.
6428 (go32_ops): Delete global.
6429 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6430 Delete methods.
6431 (go32_create_inferior): Push the passed in target pointer instead
6432 of referencing go32_ops.
6433 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6434 (go32_target): New function, based on init_go32_ops, but inherit
6435 inf_child_target.
6436 (_initialize_go32_nat): Use go32_target. Move parts of
6437 init_go32_ops here.
6438
d3c1a85f
JB
64392014-03-06 Joel Brobecker <brobecker@adacore.com>
6440
6441 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6442 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6443 SYMBOL_VALUE_ADDRESS.
6444 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6445
5fa1d40e
YQ
64462014-03-06 Yao Qi <yao@codesourcery.com>
6447
6448 * breakpoint.c (get_tracepoint_by_number): Remove argument
6449 optional_p. All callers updated. Adjust comments. Update
6450 output message.
6451 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6452
0c13193f
YQ
64532014-03-06 Yao Qi <yao@codesourcery.com>
6454
6455 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6456 early if get_number returns zero. Use 'p' instead of 'args'.
6457
2217da06
YQ
64582014-03-06 Yao Qi <yao@codesourcery.com>
6459
6460 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6461 message.
6462
cc3da688
YQ
64632014-03-06 Yao Qi <yao@codesourcery.com>
6464
6465 PR breakpoints/16508
6466 * tracepoint.c (check_trace_running): New function.
6467 (trace_find_command): Move code to check_trace_running and
6468 call check_trace_running.
6469 (trace_find_pc_command): Likewise.
6470 (trace_find_tracepoint_command): Likewise.
6471 (trace_find_line_command): Likewise.
6472 (trace_find_range_command): Likewise.
6473 * tracepoint.h (check_trace_running): Likewise.
6474 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6475
6a5f844b
YQ
64762014-03-06 Yao Qi <yao@codesourcery.com>
6477
6478 * target.h (struct target_ops) <to_traceframe_info>: Use
6479 TARGET_DEFAULT_NORETURN (tcomplain ()).
6480 * target-delegates.c: Regenerated.
6481
0f26cec1
PA
64822014-03-05 Pedro Alves <palves@redhat.com>
6483
6484 PR gdb/16575
6485 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6486 void. Update comment.
6487 (dcache_xfer_memory): Delete.
6488 (dcache_read_memory_partial): New, based on the read bits of
6489 dcache_xfer_memory.
6490 (dcache_update): Add status parameter. Use ULONGEST for len, and
6491 adjust. Discard cache lines if the reason for the update was
6492 error.
6493 * dcache.h (dcache_xfer_memory): Delete declaration.
6494 (dcache_read_memory_partial): New declaration.
6495 (dcache_update): Update prototype.
6496 * target.c (raw_memory_xfer_partial): Update the dcache here.
6497 (memory_xfer_partial_1): Don't handle dcache writes here.
6498
b2b255bd
MF
64992014-03-05 Mike Frysinger <vapier@gentoo.org>
6500
6501 * remote-sim.c (gdbsim_load): Add const to prog.
6502
5d9cf8a4
TT
65032014-03-03 Tom Tromey <tromey@redhat.com>
6504
6505 * elfread.c (probe_key): Change to bfd_data.
6506 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6507 now per-BFD, not per-objfile.
6508 * stap-probe.c (stap_probe_destroy): Update comment.
6509 (handle_stap_probe): Allocate on the per-BFD obstack.
6510
729662a5
TT
65112014-03-03 Tom Tromey <tromey@redhat.com>
6512
6513 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6514 * breakpoint.c (create_longjmp_master_breakpoint): Use
6515 get_probe_address.
6516 (add_location_to_breakpoint, bkpt_probe_insert_location)
6517 (bkpt_probe_remove_location): Update.
6518 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6519 * elfread.c (elf_symfile_relocate_probe): Remove.
6520 (elf_probe_fns): Update.
6521 (insert_exception_resume_breakpoint): Change type of "probe"
6522 parameter to bound_probe.
6523 (check_exception_resume): Update.
6524 * objfiles.c (objfile_relocate1): Don't relocate probes.
6525 * probe.c (bound_probe_s): New typedef.
6526 (parse_probes): Use get_probe_address. Set sal's objfile.
6527 (find_probe_by_pc): Return a bound_probe.
6528 (collect_probes): Return a VEC(bound_probe_s).
6529 (compare_probes): Update.
6530 (gen_ui_out_table_header_info): Change type of "probes"
6531 parameter. Update.
6532 (info_probes_for_ops): Update.
6533 (get_probe_address): New function.
6534 (probe_safe_evaluate_at_pc): Update.
6535 * probe.h (struct probe_ops) <get_probe_address>: New field.
6536 <set_semaphore, clear_semaphore>: Add objfile parameter.
6537 (struct probe) <objfile>: Remove field.
6538 <arch>: New field.
6539 <address>: Update comment.
6540 (struct bound_probe): New.
6541 (find_probe_by_pc): Return a bound_probe.
6542 (get_probe_address): Declare.
6543 * solib-svr4.c (struct probe_and_action) <address>: New field.
6544 (hash_probe_and_action, equal_probe_and_action): Update.
6545 (register_solib_event_probe): Add address parameter.
6546 (solib_event_probe_at): Update.
6547 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6548 get_probe_address.
6549 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6550 (stap_get_probe_address): New function.
6551 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6552 (compile_probe_arg): Update.
6553 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6554 address.
6555 (handle_stap_probe): Don't relocate the probe.
6556 (stap_relocate): Remove.
6557 (stap_gen_info_probes_table_values): Update.
6558 (stap_probe_ops): Remove stap_relocate.
6559 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6560 (debug_sym_probe_fns): Update.
6561 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6562 * symtab.c (init_sal): Use memset.
6563 * symtab.h (struct symtab_and_line) <objfile>: New field.
6564 * tracepoint.c (start_tracing, stop_tracing): Update.
6565
ff887920
TT
65662014-03-03 Tom Tromey <tromey@redhat.com>
6567
6568 * probe.h (parse_probes, find_probe_by_pc)
6569 (find_probes_in_objfile): Fix comments.
6570
f0407826
DE
65712014-03-02 Doug Evans <xdje42@gmail.com>
6572
6573 * infrun.c (handle_signal_stop): Replace test for
6574 TARGET_WAITKIND_STOPPED with an assert.
6575
35e6a711
DE
65762014-03-02 Doug Evans <xdje42@gmail.com>
6577
6578 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6579
667f9d0b
DE
65802014-03-02 Doug Evans <xdje42@gmail.com>
6581
6582 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6583
dc92ace0
MK
65842014-03-01 Mark Kettenis <kettenis@gnu.org>
6585
6586 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6587
a900370f
MK
65882014-03-01 Mark Kettenis <kettenis@gnu.org>
6589
6590 * i386obsd-nat.c: Include "obsd-nat.h".
6591 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6592 add_target.
6593 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6594
b72a7981
MK
65952014-03-01 Mark Kettenis <kettenis@gnu.org>
6596
6597 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6598
96c70aba
MK
65992014-03-01 Mark Kettenis <kettenis@gnu.org>
6600
6601 * mips64obsd-nat.c: Include "obsd-nath".
6602 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6603 add_target
6604 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6605
874a80af
MK
66062014-03-01 Mark Kettenis <kettenis@gnu.org>
6607
8fd408f1
MK
6608 * amd64obsd-nat.c: Include "obsd-nat,h.
6609 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6610 add_target.
874a80af
MK
6611 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6612
9cf95373
SC
66132014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6614
6615 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6616 (find_overload_match): Update call to find_oload_champ.
6617 (find_oload_champ_namespace_loop): Likewise
6618
863e4da4
MK
66192014-02-28 Mark Kettenis <kettenis@gnu.org>
6620
025cac40
MK
6621 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6622
1ed586ce
MK
6623 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6624 * config/sparc/obsd64.mh: New file.
6625 * sparc64obsd-nat.c: New file.
6626
863e4da4
MK
6627 * obsd-nat.h: New file.
6628 * obsd-nat.c: New file.
6629 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6630 (ALLDEPFILES): Add obsd-nat.c.
6631
89de4da4
TT
66322014-02-28 Tom Tromey <tromey@redhat.com>
6633
6634 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6635 * cli-out.h (cli_ui_out_impl): Now const.
6636 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6637 * ui-out.c (struct ui_out) <impl>: Now const.
6638 (default_ui_out_impl): Now const.
6639 (ui_out_new): Make 'impl' parameter const.
6640 * ui-out.h (ui_out_new): Update.
6641
c725e7b6
MK
66422014-02-27 Mark Kettenis <kettenis@gnu.org>
6643
6644 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6645
670b46b3
MK
66462014-02-27 Mark Kettenis <kettenis@gnu.org>
6647
6648 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6649
c91550fc
JK
66502014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6651
6652 Additional PR 8882 fix.
6653 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6654
2fa0369e
PA
66552014-02-27 Pedro Alves <palves@redhat.com>
6656
6657 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6658 isn't set.
6659
d632a097
PA
66602014-02-27 Pedro Alves <palves@redhat.com>
6661
6662 PR 12702
6663 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6664 * nat/linux-waitpid.c: Include string.h.
6665 (status_to_str): Moved here and made extern.
6666 * nat/linux-waitpid.h (status_to_str): New declaration.
6667
2ebd5a35
HZ
66682014-02-27 Hui Zhu <hui@codesourcery.com>
6669
6670 PR 12702
6671 * infrun.c (ptid_match): Move ...
6672 * common/ptid.c (ptid_match): ... here.
6673 * inferior.h (ptid_match): Move ...
6674 * common/ptid.h (ptid_match): ... here.
6675
3cdd631f
MK
66762014-02-27 Mark Kettenis <kettenis@gnu.org>
6677
6678 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6679 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6680 gdb_target_obs.
6681
bee30a64
MK
66822014-02-27 Mark Kettenis <kettenis@gnu.org>
6683
6684 * obsd-tdep.c (obsd_auxv_parse): New function.
6685 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6686
6687 * gdbarch.sh (auxv_parse): New.
6688 * gdbarch.h: Regenerated.
6689 * gdbarch.c: Regenerated.
6690 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6691
7a5a839f
LC
66922014-02-26 Ludovic Courtès <ludo@gnu.org>
6693
6694 * guile/scm-value.c (gdbscm_history_append_x): New function.
6695 (value_functions): Add it.
6696
31aa7e4e
JB
66972014-02-27 Joel Brobecker <brobecker@adacore.com>
6698
6699 * dwarf2read.c (attr_value_as_address): New function.
6700 (dwarf2_find_base_address, read_call_site_scope): Use
6701 attr_value_as_address in place of DW_ADDR.
6702 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6703 the low and high addresses. Slight rework of the handling
6704 of the high pc being a constant form, and limit it to
6705 DWARF verson 4 or higher.
6706 (dwarf2_record_block_ranges): Likewise.
6707 (read_partial_die): Likewise.
6708 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6709
9b333ba3
TT
67102014-02-26 Tom Tromey <tromey@redhat.com>
6711
6712 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6713
5f6cac40
TT
67142014-02-26 Tom Tromey <tromey@redhat.com>
6715
6716 * elfread.c (elf_read_minimal_symbols): Return early if
6717 minimal symbols have already been read. Add "ei" parameter.
6718 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6719 * minsyms.c (prim_record_minimal_symbol_full): Update.
6720 * objfiles.h (struct objstats) <n_minsyms>: Move...
6721 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6722 * symmisc.c (print_objfile_statistics): Update.
6723
2750ef27
TT
67242014-02-26 Tom Tromey <tromey@redhat.com>
6725
6726 * elfread.c (elf_read_minimal_symbols): New function, from
6727 elf_symfile_read.
6728 (elf_symfile_read): Call it.
6729
34643a32
TT
67302014-02-26 Tom Tromey <tromey@redhat.com>
6731
6732 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6733 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6734 (lookup_minimal_symbol_solib_trampoline)
6735 (lookup_minimal_symbol_by_pc_section_1)
6736 (lookup_minimal_symbol_and_objfile): Update.
6737 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6738 Don't allocate a minimal symbol if minsyms have already been read.
6739 (build_minimal_symbol_hash_tables): Update.
6740 (install_minimal_symbols): Do nothing if minsyms already read.
6741 Use the per-BFD obstack.
6742 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6743 * objfiles.c (allocate_objfile): Call
6744 terminate_minimal_symbol_table later.
6745 (have_minimal_symbols): Update.
6746 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6747 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6748 Move from struct objfile.
6749 <minsyms_read>: New field.
6750 (struct objfile) <msymbols, minimal_symbol_count,
6751 msymbol_hash, msymbol_demangled_hash>: Move.
6752 (ALL_OBJFILE_MSYMBOLS): Update.
6753 * symfile.c (read_symbols): Set minsyms_read.
6754 (reread_symbols): Update.
6755 * symmisc.c (dump_objfile, dump_msymbols): Update.
6756
2273f0ac
TT
67572014-02-26 Tom Tromey <tromey@redhat.com>
6758
6759 * minsyms.c (msymbols_sort): Remove.
6760 * minsyms.h (msymbols_sort): Remove.
6761 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6762 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6763 * elfread.c (elf_symtab_read): Don't add section offsets.
6764 * xcoffread.c (record_minimal_symbol): Don't add section offset
6765 to minimal symbol address.
6766 * somread.c (text_offset, data_offset): Remove.
6767 (som_symtab_read): Don't add section offsets to minimal symbol
6768 addresses.
6769 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6770 Don't add section offsets to minimal symbols.
6771 * coffread.c (coff_symtab_read): Don't add section offsets
6772 to minimal symbol addresses.
6773 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6774 to minimal symbol addresses.
6775 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6776 section offset to minimal symbol addresses.
6777 * mdebugread.c (parse_partial_symbols): Don't add section
6778 offset to minimal symbol addresses.
6779 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6780 offset to minimal symbol addresses.
6781
77e371c0
TT
67822014-02-26 Tom Tromey <tromey@redhat.com>
6783
6784 * ada-lang.c (ada_main_name): Update.
6785 (ada_add_standard_exceptions): Update.
6786 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6787 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6788 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6789 * auxv.c (ld_so_xfer_auxv): Update.
6790 * avr-tdep.c (avr_scan_prologue): Update.
6791 * ax-gdb.c (gen_var_ref): Update.
6792 * blockframe.c (get_pc_function_start)
6793 (find_pc_partial_function_gnu_ifunc): Update.
6794 * breakpoint.c (create_overlay_event_breakpoint)
6795 (create_longjmp_master_breakpoint)
6796 (create_std_terminate_master_breakpoint)
6797 (create_exception_master_breakpoint): Update.
6798 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6799 * c-valprint.c (c_val_print): Update.
6800 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6801 * common/agent.c (agent_look_up_symbols): Update.
6802 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6803 * dwarf2loc.c (call_site_to_target_addr): Update.
6804 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6805 * elfread.c (elf_gnu_ifunc_record_cache)
6806 (elf_gnu_ifunc_resolve_by_got): Update.
6807 * findvar.c (default_read_var_value): Update.
6808 * frame.c (inside_main_func): Update.
6809 * frv-tdep.c (frv_frame_this_id): Update.
6810 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6811 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6812 Update.
6813 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6814 (hppa_hpux_find_dummy_bpaddr): Update.
6815 * hppa-tdep.c (hppa_symbol_address): Update.
6816 * infcmd.c (until_next_command): Update.
6817 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6818 Update.
6819 * linespec.c (minsym_found, add_minsym): Update.
6820 * linux-nat.c (get_signo): Update.
6821 * linux-thread-db.c (inferior_has_bug): Update.
6822 * m32c-tdep.c (m32c_return_value)
6823 (m32c_m16c_address_to_pointer): Update.
6824 * m32r-tdep.c (m32r_frame_this_id): Update.
6825 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6826 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6827 * maint.c (maintenance_translate_address): Update.
6828 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6829 (frob_address): New function.
6830 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6831 frob_address. Rename parameter to "pc_in".
6832 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6833 addresses.
6834 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6835 Update.
6836 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6837 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6838 * objc-lang.c (find_objc_msgsend): Update.
6839 * objfiles.c (objfile_relocate1): Update.
6840 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6841 * p-valprint.c (pascal_val_print): Update.
6842 * parse.c (write_exp_msymbol): Update.
6843 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6844 (ppc_elfv2_skip_entrypoint): Update.
6845 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6846 * printcmd.c (build_address_symbolic, msym_info)
6847 (address_info): Update.
6848 * proc-service.c (ps_pglobal_lookup): Update.
6849 * psymtab.c (find_pc_sect_psymtab_closer)
6850 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6851 Change msymbol parameter to bound_minimal_symbol.
6852 * ravenscar-thread.c (get_running_thread_id): Update.
6853 * remote.c (remote_check_symbols): Update.
6854 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6855 address.
6856 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6857 * solib-dsbt.c (lm_base): Update.
6858 * solib-frv.c (lm_base, main_got): Update.
6859 * solib-irix.c (locate_base): Update.
6860 * solib-som.c (som_solib_create_inferior_hook)
6861 (link_map_start): Update.
6862 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6863 * solib-svr4.c (elf_locate_base, enable_break): Update.
6864 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6865 (flush_ea_cache): Update.
6866 * stabsread.c (define_symbol, scan_file_globals): Update.
6867 * stack.c (find_frame_funname): Update.
6868 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6869 (debug_qf_find_pc_sect_symtab): Update.
6870 * symfile.c (simple_read_overlay_table)
6871 (simple_overlay_update): Update.
6872 * symfile.h (struct quick_symbol_functions)
6873 <find_pc_sect_symtab>: Change type of msymbol to
6874 bound_minimal_symbol.
6875 * symmisc.c (dump_msymbols): Update.
6876 * symtab.c (find_pc_sect_symtab_via_partial)
6877 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6878 (search_symbols, print_msymbol_info): Update.
6879 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6880 (MSYMBOL_VALUE_ADDRESS): Redefine.
6881 (BMSYMBOL_VALUE_ADDRESS): New macro.
6882 * tracepoint.c (scope_info): Update.
6883 * tui/tui-disasm.c (tui_find_disassembly_address)
6884 (tui_get_begin_asm_address): Update.
6885 * valops.c (find_function_in_inferior): Update.
6886 * value.c (value_static_field, value_fn_field): Update.
6887
3b7344d5
TT
68882014-02-26 Tom Tromey <tromey@redhat.com>
6889
6890 * ada-lang.c (ada_update_initial_language): Update.
6891 (ada_main_name, ada_has_this_exception_support): Update.
6892 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6893 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6894 * arm-tdep.c (arm_skip_stub): Update.
6895 * auxv.c (ld_so_xfer_auxv): Update.
6896 * avr-tdep.c (avr_scan_prologue): Update.
6897 * ax-gdb.c (gen_var_ref): Update.
6898 * breakpoint.c (struct breakpoint_objfile_data)
6899 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6900 type to bound_minimal_symbol.
6901 (create_overlay_event_breakpoint)
6902 (create_longjmp_master_breakpoint)
6903 (create_std_terminate_master_breakpoint)
6904 (create_exception_master_breakpoint): Update.
6905 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6906 * c-exp.y (classify_name): Update.
6907 * coffread.c (coff_symfile_read): Update.
6908 * common/agent.c (agent_look_up_symbols): Update.
6909 * d-lang.c (d_main_name): Update.
6910 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6911 * dec-thread.c (enable_dec_thread): Update.
6912 * dwarf2loc.c (call_site_to_target_addr): Update.
6913 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6914 * eval.c (evaluate_subexp_standard): Update.
6915 * findvar.c (struct minsym_lookup_data) <result>: Change type
6916 to bound_minimal_symbol.
6917 <objfile>: Remove.
6918 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6919 * frame.c (inside_main_func): Update.
6920 * frv-tdep.c (frv_frame_this_id): Update.
6921 * gcore.c (call_target_sbrk): Update.
6922 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6923 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6924 Update.
6925 * go-lang.c (go_main_name): Update.
6926 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6927 (hppa_hpux_find_import_stub_for_addr): Update.
6928 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6929 Update. Change return type.
6930 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6931 type.
6932 * jit.c (jit_breakpoint_re_set_internal): Update.
6933 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6934 Update.
6935 * linux-nat.c (get_signo): Update.
6936 * linux-thread-db.c (inferior_has_bug): Update
6937 * m32c-tdep.c (m32c_return_value)
6938 (m32c_m16c_address_to_pointer): Update.
6939 * m32r-tdep.c (m32r_frame_this_id): Update.
6940 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6941 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6942 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6943 lookup_minimal_symbol. Change return type.
6944 (lookup_minimal_symbol): Remove.
6945 (lookup_bound_minimal_symbol): Update.
6946 (lookup_minimal_symbol_text): Change return type.
6947 (lookup_minimal_symbol_solib_trampoline): Change return type.
6948 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6949 (lookup_minimal_symbol_solib_trampoline): Change return type.
6950 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6951 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6952 (value_nsstring, find_imps): Update.
6953 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6954 * p-lang.c (pascal_main_name): Update.
6955 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6956 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6957 * proc-service.c (ps_pglobal_lookup): Update.
6958 * ravenscar-thread.c (get_running_thread_msymbol): Change
6959 return type.
6960 (has_ravenscar_runtime, get_running_thread_id): Update.
6961 * remote.c (remote_check_symbols): Update.
6962 * sol-thread.c (ps_pglobal_lookup): Update.
6963 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6964 * solib-dsbt.c (lm_base): Update.
6965 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6966 Update.
6967 * solib-irix.c (locate_base): Update.
6968 * solib-som.c (som_solib_create_inferior_hook)
6969 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6970 Update.
6971 * solib-spu.c (spu_enable_break): Update.
6972 * solib-svr4.c (elf_locate_base, enable_break): Update.
6973 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6974 (flush_ea_cache): Update.
6975 * stabsread.c (define_symbol): Update.
6976 * symfile.c (simple_read_overlay_table): Update.
6977 * symtab.c (find_pc_sect_line): Update.
6978 * tracepoint.c (scope_info): Update.
6979 * tui-disasm.c (tui_get_begin_asm_address): Update.
6980 * value.c (value_static_field): Update.
6981
40c1a007
TT
69822014-02-26 Tom Tromey <tromey@redhat.com>
6983
6984 * minsyms.c (prim_record_minimal_symbol_full): Use
6985 SET_MSYMBOL_VALUE_ADDRESS.
6986 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6987 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6988 SET_MSYMBOL_VALUE_ADDRESS.
6989 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6990 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6991
efd66ac6
TT
69922014-02-26 Tom Tromey <tromey@redhat.com>
6993
6994 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6995 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6996 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6997 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6998 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6999 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
7000 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
7001 * ada-lang.c (ada_main_name): Update.
7002 (ada_lookup_simple_minsym): Update.
7003 (ada_make_symbol_completion_list): Update.
7004 (ada_add_standard_exceptions): Update.
7005 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
7006 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
7007 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
7008 * arm-tdep.c (skip_prologue_function): Update.
7009 (arm_skip_stack_protector, arm_skip_stub): Update.
7010 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
7011 (arm_wince_skip_main_prologue): Update.
7012 * auxv.c (ld_so_xfer_auxv): Update.
7013 * avr-tdep.c (avr_scan_prologue): Update.
7014 * ax-gdb.c (gen_var_ref): Update.
7015 * block.c (call_site_for_pc): Update.
7016 * blockframe.c (get_pc_function_start): Update.
7017 (find_pc_partial_function_gnu_ifunc): Update.
7018 * breakpoint.c (create_overlay_event_breakpoint): Update.
7019 (create_longjmp_master_breakpoint): Update.
7020 (create_std_terminate_master_breakpoint): Update.
7021 (create_exception_master_breakpoint): Update.
7022 (resolve_sal_pc): Update.
7023 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
7024 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
7025 Update.
7026 * c-valprint.c (c_val_print): Update.
7027 * coff-pe-read.c (add_pe_forwarded_sym): Update.
7028 * coffread.c (coff_symfile_read): Update.
7029 * common/agent.c (agent_look_up_symbols): Update.
7030 * dbxread.c (find_stab_function_addr): Update.
7031 (end_psymtab): Update.
7032 * dwarf2loc.c (call_site_to_target_addr): Update.
7033 (func_verify_no_selftailcall): Update.
7034 (tailcall_dump): Update.
7035 (call_site_find_chain_1): Update.
7036 (dwarf_expr_reg_to_entry_parameter): Update.
7037 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7038 (elf_gnu_ifunc_resolve_by_got): Update.
7039 * f-valprint.c (info_common_command): Update.
7040 * findvar.c (read_var_value): Update.
7041 * frame.c (get_prev_frame_1): Update.
7042 (inside_main_func): Update.
7043 * frv-tdep.c (frv_skip_main_prologue): Update.
7044 (frv_frame_this_id): Update.
7045 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
7046 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7047 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7048 (gnuv3_skip_trampoline): Update.
7049 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7050 (hppa64_hpux_in_solib_call_trampoline): Update.
7051 (hppa_hpux_skip_trampoline_code): Update.
7052 (hppa64_hpux_search_dummy_call_sequence): Update.
7053 (hppa_hpux_find_import_stub_for_addr): Update.
7054 (hppa_hpux_find_dummy_bpaddr): Update.
7055 * hppa-tdep.c (hppa_symbol_address)
7056 (hppa_lookup_stub_minimal_symbol): Update.
7057 * i386-tdep.c (i386_skip_main_prologue): Update.
7058 (i386_pe_skip_trampoline_code): Update.
7059 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7060 * infcall.c (get_function_name): Update.
7061 * infcmd.c (until_next_command): Update.
7062 * jit.c (jit_breakpoint_re_set_internal): Update.
7063 (jit_inferior_init): Update.
7064 * linespec.c (minsym_found): Update.
7065 (add_minsym): Update.
7066 * linux-fork.c (info_checkpoints_command): Update.
7067 * linux-nat.c (get_signo): Update.
7068 * linux-thread-db.c (inferior_has_bug): Update.
7069 * m32c-tdep.c (m32c_return_value): Update.
7070 (m32c_m16c_address_to_pointer): Update.
7071 (m32c_m16c_pointer_to_address): Update.
7072 * m32r-tdep.c (m32r_frame_this_id): Update.
7073 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7074 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7075 * maint.c (maintenance_translate_address): Update.
7076 * minsyms.c (add_minsym_to_hash_table): Update.
7077 (add_minsym_to_demangled_hash_table): Update.
7078 (msymbol_objfile): Update.
7079 (lookup_minimal_symbol): Update.
7080 (iterate_over_minimal_symbols): Update.
7081 (lookup_minimal_symbol_text): Update.
7082 (lookup_minimal_symbol_by_pc_name): Update.
7083 (lookup_minimal_symbol_solib_trampoline): Update.
7084 (lookup_minimal_symbol_by_pc_section_1): Update.
7085 (lookup_minimal_symbol_and_objfile): Update.
7086 (prim_record_minimal_symbol_full): Update.
7087 (compare_minimal_symbols): Update.
7088 (compact_minimal_symbols): Update.
7089 (build_minimal_symbol_hash_tables): Update.
7090 (install_minimal_symbols): Update.
7091 (terminate_minimal_symbol_table): Update.
7092 (find_solib_trampoline_target): Update.
7093 (minimal_symbol_upper_bound): Update.
7094 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7095 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7096 (mips_skip_pic_trampoline_code): Update.
7097 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7098 * objc-lang.c (selectors_info): Update.
7099 (classes_info): Update.
7100 (find_methods): Update.
7101 (find_imps): Update.
7102 (find_objc_msgsend): Update.
7103 * objfiles.c (objfile_relocate1): Update.
7104 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7105 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7106 * p-valprint.c (pascal_val_print): Update.
7107 * parse.c (write_exp_msymbol): Update.
7108 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7109 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7110 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7111 * printcmd.c (build_address_symbolic): Update.
7112 (sym_info): Update.
7113 (address_info): Update.
7114 * proc-service.c (ps_pglobal_lookup): Update.
7115 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7116 (find_pc_sect_psymtab): Update.
7117 * python/py-framefilter.c (py_print_frame): Update.
7118 * ravenscar-thread.c (get_running_thread_id): Update.
7119 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7120 Update.
7121 * remote.c (remote_check_symbols): Update.
7122 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7123 (rs6000_skip_trampoline_code): Update.
7124 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7125 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7126 * solib-dsbt.c (lm_base): Update.
7127 * solib-frv.c (lm_base): Update.
7128 (main_got): Update.
7129 * solib-irix.c (locate_base): Update.
7130 * solib-som.c (som_solib_create_inferior_hook): Update.
7131 (som_solib_desire_dynamic_linker_symbols): Update.
7132 (link_map_start): Update.
7133 * solib-spu.c (spu_enable_break): Update.
7134 (ocl_enable_break): Update.
7135 * solib-svr4.c (elf_locate_base): Update.
7136 (enable_break): Update.
7137 * spu-tdep.c (spu_get_overlay_table): Update.
7138 (spu_catch_start): Update.
7139 (flush_ea_cache): Update.
7140 * stabsread.c (define_symbol): Update.
7141 (scan_file_globals): Update.
7142 * stack.c (find_frame_funname): Update.
7143 (frame_info): Update.
7144 * symfile.c (simple_read_overlay_table): Update.
7145 (simple_overlay_update): Update.
7146 * symmisc.c (dump_msymbols): Update.
7147 * symtab.c (fixup_section): Update.
7148 (find_pc_sect_line): Update.
7149 (skip_prologue_sal): Update.
7150 (search_symbols): Update.
7151 (print_msymbol_info): Update.
7152 (rbreak_command): Update.
7153 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7154 (completion_list_objc_symbol): Update.
7155 (default_make_symbol_completion_list_break_on): Update.
7156 * tracepoint.c (scope_info): Update.
7157 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7158 (tui_get_begin_asm_address): Update.
7159 * valops.c (find_function_in_inferior): Update.
7160 * value.c (value_static_field): Update.
7161 (value_fn_field): Update.
7162
50e65b17
TT
71632014-02-26 Tom Tromey <tromey@redhat.com>
7164
7165 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7166 bound minimal symbols. Move code that knows about minsym
7167 table layout...
7168 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7169 function.
7170 * minsyms.h (minimal_symbol_upper_bound): Declare.
7171 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7172 minimal_symbol_upper_bound.
7173
1b588015
JB
71742014-02-27 Joel Brobecker <brobecker@adacore.com>
7175
7176 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7177 Use the type's name if its basic type does not have a tag.
7178
dbb9c2b1
JB
71792014-02-27 Joel Brobecker <brobecker@adacore.com>
7180
7181 * dwarf2read.c (read_subrange_type): Add comment.
7182
55426c9d
JB
71832014-02-27 Joel Brobecker <brobecker@adacore.com>
7184
7185 * dwarf2read.c (update_enumeration_type_from_children): New
7186 function, mostly extracted from process_structure_scope.
7187 (read_enumeration_type): Call update_enumeration_type_from_children.
7188 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7189 and flag_flag_enum fields.
7190
f2fce0ca
PA
71912014-02-26 Pedro Alves <palves@redhat.com>
7192
7193 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7194 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7195 to_xfer_partial method.
7196
7a44e40e
PA
71972014-02-26 Pedro Alves <palves@redhat.com>
7198
7199 * target.c (complete_target_initialization): Don't install
7200 default_xfer_partial as to_xfer_partial hook.
7201 (nomemory): Delete.
7202 (update_current_target): Don't INHERIT nor de_fault
7203 deprecated_xfer_memory. Delete de_fault macro.
7204 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7205 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7206 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7207 field.
7208
bd265cd0
PA
72092014-02-26 Pedro Alves <palves@redhat.com>
7210
7211 * go32-nat.c (my_write_child): New function.
7212 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7213 (go32_xfer_partial): New function.
7214 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7215 Instead install a to_xfer_partial hook.
7216
9d46c4e5
PA
72172014-02-26 Pedro Alves <palves@redhat.com>
7218
7219 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7220 to_xfer_partial helper. Rewrite.
7221 (procfs_xfer_partial): New function.
7222 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7223 Install a to_xfer_partial hook.
7224
a1583b1f
PA
72252014-02-26 Pedro Alves <palves@redhat.com>
7226
7227 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7228 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7229 (m32r_xfer_partial): New function.
7230 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7231 Install a to_xfer_partial hook.
7232
6df1b29f
PA
72332014-02-26 Pedro Alves <palves@redhat.com>
7234
7235 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7236 helper.
7237 (mips_xfer_partial): New function.
7238 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7239 hook. Install a to_xfer_partial hook.
7240
dc53a7ad
JB
72412014-02-26 Joel Brobecker <brobecker@adacore.com>
7242
7243 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7244 * gdbtypes.c (create_array_type_with_stride): New function,
7245 renaming create_array_type, but with an added parameter
7246 called "bit_stride".
7247 (create_array_type): Re-implement using
7248 create_array_type_with_stride.
7249 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7250 and DW_AT_bit_stride attributes.
7251
12ab52e9
PA
72522014-02-26 Pedro Alves <palves@redhat.com>
7253
7254 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7255 task-specific breakpoints.
7256
d16461ae
PA
72572014-02-25 Pedro Alves <palves@redhat.com>
7258
7259 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7260 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7261
a8b16220
SS
72622014-02-25 Stan Shebs <stan@codesourcery.com>
7263
7264 * defs.h: Annotate comments for Doxygen.
7265
b9e795ee
TT
72662014-02-25 Tom Tromey <tromey@redhat.com>
7267
7268 * target.h (target_ignore): Don't declare.
7269 * target.c (target_ignore): Remove.
7270
849c862e
JK
72712014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7272
7273 PR gdb/16626
7274 * auto-load.c (auto_load_objfile_script_1): Change filename to
7275 debugfile.
7276
475109d8
JB
72772014-02-25 Joel Brobecker <brobecker@adacore.com>
7278
7279 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7280 documentation. Adjust prototype to match the target_ops
7281 to_xfer_partial method. Adjust implementation accordingly.
7282
e186c3bd
HZ
72832014-02-25 Hui Zhu <hui@codesourcery.com>
7284
7285 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7286 to_traceframe_info.
7287
6d451942
KB
72882014-02-25 Kevin Buettner <kevinb@redhat.com>
7289
041ab8b4 7290 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7291 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7292 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7293 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7294 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7295 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7296 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7297 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7298 New constants.
7299 (rl78_register_type): Use a data pointer type for SP and
7300 new pseudo registers mentioned above. Use a 16 bit integer
7301 type for all other register pairs.
7302 (rl78_register_name, rl78_g10_register_name): Update for
7303 new pseudo registers.
7304 (rl78_pseudo_register_read): Likewise.
7305 (rl78_pseudo_register_write): Likewise.
7306 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7307 to the newly added pseudo registers.
7308
eddf0bae
DE
73092014-02-24 Doug Evans <dje@google.com>
7310
7311 * value.c (record_latest_value): Fix comment.
7312 * printcmd.c (print_command_1): Remove code to handle -1 return from
7313 record_latest_value.
7314
e96027e0
PA
73152014-02-24 Pedro Alves <palves@redhat.com>
7316
7317 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7318 deprecated_xfer_memory hook.
7319 (procfs_xfer_partial): Call procfs_xfer_memory instead
7320 of the deprecated_xfer_memory target hook.
7321 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7322 helper.
7323
0837c976
YZ
73242014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7325
7326 * windows-nat.c (windows_xfer_shared_libraries): Return
7327 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7328 requested object is TARGET_OBJECT_LIBRARIES.
7329
bc113b4e
YQ
73302014-02-24 Yao Qi <yao@codesourcery.com>
7331
7332 * target.h (enum target_xfer_status)
7333 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7334 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7335 explicitly. New.
7336 * corefile.c (memory_error_message): User updated.
7337 * exec.c (section_table_read_available_memory): Likewise.
7338 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7339 * target.c (target_xfer_status_to_string): Likewise.
7340 (raw_memory_xfer_partial): Likewise.
7341 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7342 * valops.c (read_value_memory): Likewise.
7343 * exec.h: Update comments.
7344
01cb8804
YQ
73452014-02-24 Yao Qi <yao@codesourcery.com>
7346
7347 * target.c (target_xfer_status_to_string): Rename argument err
7348 to status.
7349 * target.h (target_xfer_status_to_string): Update declaration.
7350 Replace target_xfer_error_to_string with
7351 target_xfer_status_to_string in comment.
7352
93063aa6
YQ
73532014-02-24 Yao Qi <yao@codesourcery.com>
7354
7355 * mips-linux-nat.c (super_close): Update its type.
7356 (mips_linux_close): Pass 'self' to super_close.
7357
5c328c05
YQ
73582014-02-24 Yao Qi <yao@codesourcery.com>
7359
7360 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7361 * corefile.c (read_memory): Adjusted.
7362 * target.c (target_write_with_progress): Adjusted.
7363
f73023dd
YQ
73642014-02-23 Yao Qi <yao@codesourcery.com>
7365
7366 Revert two patches:
7367
7368 2013-10-25 Yao Qi <yao@codesourcery.com>
7369
7370 * remote.c (remote_traceframe_info): Return early if
7371 traceframe is not selected.
7372
7373 2013-07-19 Yao Qi <yao@codesourcery.com>
7374
7375 * target.c (update_current_target): Change the default action
7376 of 'to_traceframe_info' from tcomplain to return_zero.
7377 * target.h (struct target_ops) <to_traceframe_info>: Add more
7378 comments.
7379
5a2eb0ef
YQ
73802014-02-23 Yao Qi <yao@codesourcery.com>
7381
7382 * valops.c (read_value_memory): Rewrite it. Call
7383 target_xfer_partial in a loop.
7384 * exec.h (section_table_available_memory): Remove declaration.
7385 Move comments to ...
7386 * exec.c (section_table_available_memory): ... here. Make it
7387 static.
7388
1ee79381
YQ
73892014-02-23 Yao Qi <yao@codesourcery.com>
7390
7391 * exec.c (section_table_read_available_memory): New function.
7392 * exec.h (section_table_read_available_memory): Declare.
7393 * ctf.c (ctf_xfer_partial): Call
7394 section_table_read_available_memory.
7395 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7396
1ca49d37
YQ
73972014-02-23 Yao Qi <yao@codesourcery.com>
7398
7399 * ctf.c (ctf_xfer_partial): Move code to ...
7400 * exec.c (exec_read_partial_read_only): ... it. New function.
7401 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7402 * tracefile.c: Include "exec.h".
7403 * exec.h (exec_read_partial_read_only): Declare.
7404
a283690e
YQ
74052014-02-23 Yao Qi <yao@codesourcery.com>
7406
7407 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7408 (tfile_has_memory): Remove.
7409 (init_tfile_ops): Don't set fields to_has_all_memory and
7410 to_has_memory of tfile_ops.
7411 * tracefile.c (tracefile_has_all_memory): New function.
7412 (tracefile_has_memory): New function.
7413 (init_tracefile_ops): Initialize fields to_has_all_memory and
7414 to_has_memory of 'ops'.
7415
12e03cd0
YQ
74162014-02-23 Yao Qi <yao@codesourcery.com>
7417
7418 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7419 (ctf_thread_alive, ctf_get_trace_status): Remove.
7420 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7421 init_tracefile_ops.
7422 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7423 (tfile_has_stack, tfile_has_registers): Remove.
7424 (tfile_thread_alive): Remove.
7425 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7426 init_tracefile_ops.
7427 * tracefile.c (tracefile_has_stack): New function.
7428 (tracefile_has_registers): New function.
7429 (tracefile_thread_alive): New function.
7430 (tracefile_get_trace_status): New function.
7431 (init_tracefile_ops): New function.
7432 * tracefile.h (init_tracefile_ops): Declare.
7433
11395323
YQ
74342014-02-23 Yao Qi <yao@codesourcery.com>
7435
7436 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7437 (O_LARGEFILE): Likewise.
7438 (tfile_ops): Likewise.
7439 (TRACE_HEADER_SIZE): Likewise.
7440 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7441 (cur_data_size): Likewise.
7442 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7443 (tfile_close, tfile_files_info): Likewise.
7444 (tfile_get_trace_status): Likewise.
7445 (tfile_get_tracepoint_status): Likewise.
7446 (tfile_get_traceframe_address): Likewise.
7447 (tfile_trace_find, match_blocktype): Likewise.
7448 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7449 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7450 (tfile_get_trace_state_variable_value): Likewise.
7451 (tfile_has_all_memory, tfile_has_memory): Likewise.
7452 (tfile_has_stack, tfile_has_registers): Likewise.
7453 (tfile_thread_alive, build_traceframe_info): Likewise.
7454 (tfile_traceframe_info, init_tfile_ops): Likewise.
7455 (_initialize_tracepoint): Don't call init_tfile_ops
7456 and add_target_with_completer.
7457 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7458 exec.h, completer.h and filenames.h.
7459 (_initialize_tracefile_tfile): New function.
7460
7951c4eb
YQ
74612014-02-23 Yao Qi <yao@codesourcery.com>
7462
7463 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7464 tracefile-tfile.o.
7465 (HFILES_NO_SRCDIR): Add tracefile.h.
7466 * ctf.c: Include "tracefile.h".
7467 * tracefile.h: New file.
7468 * tracefile.c: New file
7469 * tracefile-tfile.c: New file.
7470 * tracepoint.c: Include "tracefile.h".
7471 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7472 (stop_reason_names): Add const.
7473 (trace_file_writer_xfree): Move it to tracefile.c.
7474 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7475 (trace_save_ctf): Likewise.
7476 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7477 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7478 (tfile_write_header, tfile_write_regblock_type): Likewise.
7479 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7480 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7481 (tfile_write_raw_data, tfile_end): Likewise.
7482 (tfile_trace_file_writer_new): Likewise.
7483 (free_uploaded_tp): Make it extern.
7484 (free_uploaded_tsv): Make it extern.
7485 (_initialize_tracepoint): Move code to register command 'tsave'
7486 to tracefile.c.
7487 * tracepoint.h (stop_reason_names): Declare.
7488 (struct trace_frame_write_ops): Move it to tracefile.h.
7489 (struct trace_file_write_ops): Likewise.
7490 (struct trace_file_writer): Likewise.
7491 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7492
184cd072
JK
74932014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7494
7495 PR gdb/16594
7496 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7497 process name.
7498 (get_cores_used_by_process): New parameter num_cores, use it.
7499 (linux_xfer_osdata_processes): Pass num_cores to it.
7500 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7501 process name.
7502
c63528fc
AK
75032014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7504
7505 * target.c (memory_xfer_partial): Fix length arg in call to
7506 breakpoint_xfer_memory.
7507
d7b30f67
SDJ
75082014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7509
7510 PR tdep/16397
7511 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7512 number comes after the + or - signs. Adjust length of register
7513 name to be extracted.
7514
8838afaf
TT
75152014-02-20 Tom Tromey <tromey@redhat.com>
7516
7517 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7518 (ada_varobj_ops): Mark "extern".
7519
05227d14
TT
75202014-02-20 Tom Tromey <tromey@redhat.com>
7521
7522 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7523
1254eefc
DE
75242014-02-20 Doug Evans <xdje42@gmail.com>
7525
7526 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7527 All callers updated.
7528 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7529 All callers updated.
7530 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7531 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7532
adde2bff
DE
75332014-02-20 lin zuojian <manjian2006@gmail.com>
7534 Joel Brobecker <brobecker@adacore.com>
7535 Doug Evans <xdje42@gmail.com>
7536
7537 PR symtab/16581
7538 * dwarf2read.c (struct die_info): New member in_process.
7539 (reset_die_in_process): New function.
7540 (process_die): Set it at the start, reset when returning.
7541 (inherit_abstract_dies): Only call process_die if origin_child_die
7542 not already being processed.
7543
3be75f87
JB
75442014-02-20 Joel Brobecker <brobecker@adacore.com>
7545
7546 * windows-nat.c (handle_unload_dll): Add function documentation.
7547 (do_initial_windows_stuff): Add comment explaining why we wait
7548 until after inferior initialization has finished before
7549 processing all DLLs.
7550
47f7ffdb
JB
75512014-02-20 Joel Brobecker <brobecker@adacore.com>
7552
7553 * windows-nat.c (get_module_name): Delete.
7554 (windows_get_exec_module_filename): New function, mostly
7555 inspired from get_module_name.
7556 (windows_pid_to_exec_file): Replace call to get_module_name
7557 by call to windows_get_exec_module_filename.
7558
1cd9feab
JB
75592014-02-20 Joel Brobecker <brobecker@adacore.com>
7560
7561 * windows-nat.c (handle_load_dll): Rewrite this function's
7562 introductory comment. Remove code using get_module_name
7563 to get the DLL's name.
7564
ea39ad35
JB
75652014-02-20 Joel Brobecker <brobecker@adacore.com>
7566
7567 * windows-nat.c (get_windows_debug_event): Ignore
7568 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7569 if windows_initialization_done == 0.
7570 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7571 Adjust implementation to always load all DLLs.
7572 (do_initial_windows_stuff): Replace call to
7573 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7574
95060284
JB
75752014-02-20 Joel Brobecker <brobecker@adacore.com>
7576
7577 * windows-nat.c (_initialize_windows_nat): Deprecate the
7578 "dll-symbols" command. Turn the "add-shared-symbol-files"
7579 and "assf" aliases into commands, and deprecate them as well.
7580 * NEWS: Add entry explaining that "dll-symbols" and its two
7581 aliases are now deprecated.
7582
8d4fdb12
JB
75832014-02-20 Joel Brobecker <brobecker@adacore.com>
7584
7585 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7586 new-line in debug string. Remove trailing spaces.
7587
1b281443
SS
75882014-02-19 Stan Shebs <stan@codesourcery.com>
7589
7590 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7591
f7bd0f78
SC
75922014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7593
7594 * NEWS: Add entry for the new feature
7595 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7596 and class values.
7597
399ebc3d
SS
75982014-02-19 Stan Shebs <stan@codesourcery.com>
7599
7600 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7601
c658158d
PA
76022014-02-19 Pedro Alves <palves@redhat.com>
7603
7604 * common/ptid.h (struct ptid): Mention that process_stratum
7605 targets should prefer ptid.lwp.
7606
ba348170
PA
76072014-02-19 Pedro Alves <palves@redhat.com>
7608
7609 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7610 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7611 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7612 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7613 store remote thread ids rather than ptid.tid.
7614 (_initialize_remote): Adjust.
7615
ac01945b
TT
76162014-02-19 Tom Tromey <tromey@redhat.com>
7617
7618 * target.c (target_get_unwinder): Rewrite.
7619 (target_get_tailcall_unwinder): Rewrite.
7620 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7621 (record_btrace_to_get_tailcall_unwinder): New function.
7622 (init_record_btrace_ops): Update.
7623 * target.h (struct target_ops) <to_get_unwinder,
7624 to_get_tailcall_unwinder>: Now function pointers. Use
7625 TARGET_DEFAULT_RETURN.
7626
8476dc92
TT
76272014-02-19 Tom Tromey <tromey@redhat.com>
7628
7629 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7630 argument.
7631 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7632
c0eca49f
TT
76332014-02-19 Tom Tromey <tromey@redhat.com>
7634
7635 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7636 directly.
7637 * target-delegates.c: Rebuild.
7638 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7639 TARGET_DEFAULT_FUNC.
7640 * target.c (default_target_decr_pc_after_break): Rename from
7641 forward_target_decr_pc_after_break. Simplify.
7642 (target_decr_pc_after_break): Rely on delegation.
7643
596b6b39
TT
76442014-02-19 Tom Tromey <tromey@redhat.com>
7645
7646 * target.c (update_current_target): Do not INHERIT to_doc or
7647 to_magic. Do not de_fault to_open or to_close.
7648
b427c1bc
TT
76492014-02-19 Tom Tromey <tromey@redhat.com>
7650
7651 * gcore.h (objfile_find_memory_regions): Declare.
7652 * gcore.c (objfile_find_memory_regions): No longer static. Add
7653 "self" argument.
7654 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7655 * exec.c: Include gcore.h.
7656 (exec_set_find_memory_regions): Remove.
7657 (exec_find_memory_regions): Remove.
7658 (exec_do_find_memory_regions): Remove.
7659 (init_exec_ops): Update.
7660 * defs.h (exec_set_find_memory_regions): Remove.
7661
9b144037
TT
76622014-02-19 Tom Tromey <tromey@redhat.com>
7663
7664 * target-delegates.c: Rebuild.
7665 * target.h (struct target_ops) <to_extra_thread_info,
7666 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7667 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7668 not 0, in TARGET_DEFAULT_RETURN.
7669
555bbdeb
TT
76702014-02-19 Tom Tromey <tromey@redhat.com>
7671
7672 * target.c (complete_target_initialization): Remove casts. Use
7673 return_zero_has_execution.
7674 (return_zero): Add "ignore" argument.
7675 (return_zero_has_execution): New function.
7676 (init_dummy_target): Remove casts. Use
7677 return_zero_has_execution.
7678
be4ddd36
TT
76792014-02-19 Tom Tromey <tromey@redhat.com>
7680
7681 * target.c (update_current_target): Update comments. Do not
7682 INHERIT to_stratum.
7683
2117c711
TT
76842014-02-19 Tom Tromey <tromey@redhat.com>
7685
7686 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7687 needed.
7688 * corelow.c (core_read_description): Delegate when needed.
7689 * remote.c (remote_read_description): Delegate when needed.
7690 * target-delegates.c: Rebuild.
7691 * target.c (target_read_description): Rewrite.
7692 * target.h (struct target_ops) <to_read_description>: Update
7693 comment. Use TARGET_DEFAULT_RETURN.
7694
e88ef65c
TT
76952014-02-19 Tom Tromey <tromey@redhat.com>
7696
7697 * target-delegates.c: Rebuild.
7698 * target.c (update_current_target): Don't inherit or default
7699 to_can_run.
7700 (find_default_run_target): Check against delegate_can_run.
7701 * target.h (struct target_ops) <to_can_run>: Use
7702 TARGET_DEFAULT_RETURN.
7703
86a0854a
TT
77042014-02-19 Tom Tromey <tromey@redhat.com>
7705
7706 * target-delegates.c: Rebuild.
7707 * target.c (target_disconnect): Unconditionally delegate.
7708 * target.h (struct target_ops) <to_disconnect>: Use
7709 TARGET_DEFAULT_NORETURN.
7710
ee97f592
TT
77112014-02-19 Tom Tromey <tromey@redhat.com>
7712
7713 * record.c (record_stop): Unconditionally delegate.
7714 * target-delegates.c: Rebuild.
7715 * target.c (target_stop_recording): Unconditionally delegate.
7716 * target.h (struct target_ops) <to_stop_recording>: Use
7717 TARGET_DEFAULT_IGNORE.
7718
6dc7fcf4
TT
77192014-02-19 Tom Tromey <tromey@redhat.com>
7720
7721 * target-delegates.c: Rebuild.
7722 * target.c (target_enable_btrace): Unconditionally delegate.
7723 * target.h (struct target_ops) <to_enable_btrace>: Use
7724 TARGET_DEFAULT_NORETURN.
7725
eb5b20d4
TT
77262014-02-19 Tom Tromey <tromey@redhat.com>
7727
7728 * target-delegates.c: Rebuild.
7729 * target.c (target_read_btrace): Unconditionally delegate.
7730 * target.h (struct target_ops) <to_read_btrace>: Use
7731 TARGET_DEFAULT_NORETURN.
7732
9ace480d
TT
77332014-02-19 Tom Tromey <tromey@redhat.com>
7734
7735 * target-delegates.c: Rebuild.
7736 * target.c (target_teardown_btrace): Unconditionally delegate.
7737 * target.h (struct target_ops) <to_teardown_btrace>: Use
7738 TARGET_DEFAULT_NORETURN.
7739
8dc292d3
TT
77402014-02-19 Tom Tromey <tromey@redhat.com>
7741
7742 * target-delegates.c: Rebuild.
7743 * target.c (target_disable_btrace): Unconditionally delegate.
7744 * target.h (struct target_ops) <to_disable_btrace>: Use
7745 TARGET_DEFAULT_NORETURN.
7746
58a5184e
TT
77472014-02-19 Tom Tromey <tromey@redhat.com>
7748
7749 * target-delegates.c: Rebuild.
7750 * target.c (default_search_memory): New function.
7751 (simple_search_memory): Update comment.
7752 (target_search_memory): Unconditionally delegate.
7753 * target.h (struct target_ops) <to_search_memory>: Use
7754 TARGET_DEFAULT_FUNC.
7755
8de71aab
TT
77562014-02-19 Tom Tromey <tromey@redhat.com>
7757
7758 * auxv.c (default_auxv_parse): No longer static.
7759 (target_auxv_parse): Unconditionally delegate.
7760 * auxv.h (default_auxv_parse): Declare.
7761 * target-delegates.c: Rebuild.
7762 * target.c: Include auxv.h.
7763 * target.h (struct target_ops) <to_auxv_parse>: Use
7764 TARGET_DEFAULT_FUNC.
7765
6b2c5a57
TT
77662014-02-19 Tom Tromey <tromey@redhat.com>
7767
7768 * target-delegates.c: Rebuild.
7769 * target.c (target_memory_map): Unconditionally delegate.
7770 * target.h (struct target_ops) <to_memory_map>: Use
7771 TARGET_DEFAULT_RETURN.
7772
cbffc065
TT
77732014-02-19 Tom Tromey <tromey@redhat.com>
7774
7775 * target-delegates.c: Rebuild.
7776 * target.c (target_thread_alive): Unconditionally delegate.
7777 * target.h (struct target_ops) <to_thread_alive>: Use
7778 TARGET_DEFAULT_RETURN.
7779
f09e2107
TT
77802014-02-19 Tom Tromey <tromey@redhat.com>
7781
7782 * target-delegates.c: Rebuild.
7783 * target.c (target_save_record): Unconditionally delegate.
7784 * target.h (struct target_ops) <to_save_record>: Use
7785 TARGET_DEFAULT_NORETURN.
7786
07366925
TT
77872014-02-19 Tom Tromey <tromey@redhat.com>
7788
7789 * target-delegates.c: Rebuild.
7790 * target.c (target_delete_record): Unconditionally delegate.
7791 * target.h (struct target_ops) <to_delete_record>: Use
7792 TARGET_DEFAULT_NORETURN.
7793
dd2e9d25
TT
77942014-02-19 Tom Tromey <tromey@redhat.com>
7795
7796 * target-delegates.c: Rebuild.
7797 * target.c (target_record_is_replaying): Unconditionally
7798 delegate.
7799 * target.h (struct target_ops) <to_record_is_replaying>: Use
7800 TARGET_DEFAULT_RETURN.
7801
671e76cc
TT
78022014-02-19 Tom Tromey <tromey@redhat.com>
7803
7804 * target-delegates.c: Rebuild.
7805 * target.c (target_goto_record_begin): Unconditionally delegate.
7806 * target.h (struct target_ops) <to_goto_record_begin>: Use
7807 TARGET_DEFAULT_NORETURN.
7808
e9179bb3
TT
78092014-02-19 Tom Tromey <tromey@redhat.com>
7810
7811 * target-delegates.c: Rebuild.
7812 * target.c (target_goto_record_end): Unconditionally delegate.
7813 * target.h (struct target_ops) <to_goto_record_end>: Use
7814 TARGET_DEFAULT_NORETURN.
7815
05969c84
TT
78162014-02-19 Tom Tromey <tromey@redhat.com>
7817
7818 * target-delegates.c: Rebuild.
7819 * target.c (target_goto_record): Unconditionally delegate.
7820 * target.h (struct target_ops) <to_goto_record>: Use
7821 TARGET_DEFAULT_NORETURN.
7822
3679abfa
TT
78232014-02-19 Tom Tromey <tromey@redhat.com>
7824
7825 * target-delegates.c: Rebuild.
7826 * target.c (target_insn_history): Unconditionally delegate.
7827 * target.h (struct target_ops) <to_insn_history>: Use
7828 TARGET_DEFAULT_NORETURN.
7829
8444ab58
TT
78302014-02-19 Tom Tromey <tromey@redhat.com>
7831
7832 * target-delegates.c: Rebuild.
7833 * target.c (target_insn_history_from): Unconditionally delegate.
7834 * target.h (struct target_ops) <to_insn_history_from>: Use
7835 TARGET_DEFAULT_NORETURN.
7836
c29302cc
TT
78372014-02-19 Tom Tromey <tromey@redhat.com>
7838
7839 * target-delegates.c: Rebuild.
7840 * target.c (target_insn_history_range): Unconditionally delegate.
7841 * target.h (struct target_ops) <to_insn_history_range>: Use
7842 TARGET_DEFAULT_NORETURN.
7843
170049d4
TT
78442014-02-19 Tom Tromey <tromey@redhat.com>
7845
7846 * target-delegates.c: Rebuild.
7847 * target.c (target_call_history): Unconditionally delegate.
7848 * target.h (struct target_ops) <to_call_history>: Use
7849 TARGET_DEFAULT_NORETURN.
7850
16fc27d6
TT
78512014-02-19 Tom Tromey <tromey@redhat.com>
7852
7853 * target-delegates.c: Rebuild.
7854 * target.c (target_call_history_from): Unconditionally delegate.
7855 * target.h (struct target_ops) <to_call_history_from>: Use
7856 TARGET_DEFAULT_NORETURN.
7857
115d9817
TT
78582014-02-19 Tom Tromey <tromey@redhat.com>
7859
7860 * target-delegates.c: Rebuild.
7861 * target.c (target_call_history_range): Unconditionally delegate.
7862 * target.h (struct target_ops) <to_call_history_range>: Use
7863 TARGET_DEFAULT_NORETURN.
7864
eb276a6b
TT
78652014-02-19 Tom Tromey <tromey@redhat.com>
7866
7867 * target-delegates.c: Rebuild.
7868 * target.c (target_verify_memory): Unconditionally delegate.
7869 * target.h (struct target_ops) <to_verify_memory>: Use
7870 TARGET_DEFAULT_NORETURN.
7871
9e538d0d
TT
78722014-02-19 Tom Tromey <tromey@redhat.com>
7873
7874 * target-delegates.c: Rebuild.
7875 * target.c (target_core_of_thread): Unconditionally delegate.
7876 * target.h (struct target_ops) <to_core_of_thread>: Use
7877 TARGET_DEFAULT_RETURN.
7878
f6fb2925
TT
78792014-02-19 Tom Tromey <tromey@redhat.com>
7880
7881 * target-delegates.c: Rebuild.
7882 * target.c (target_flash_done): Unconditionally delegate.
7883 * target.h (struct target_ops) <to_flash_done>: Use
7884 TARGET_DEFAULT_NORETURN.
7885
e8a6c6ac
TT
78862014-02-19 Tom Tromey <tromey@redhat.com>
7887
7888 * target-delegates.c: Rebuild.
7889 * target.c (target_flash_erase): Unconditionally delegate.
7890 * target.h (struct target_ops) <to_flash_erase>: Use
7891 TARGET_DEFAULT_NORETURN.
7892
7e35c012
TT
78932014-02-19 Tom Tromey <tromey@redhat.com>
7894
7895 * target-delegates.c: Rebuild.
7896 * target.c (target_get_section_table): Unconditionally delegate.
7897 * target.h (struct target_ops) <to_get_section_table>: Use
7898 TARGET_DEFAULT_RETURN.
7899
770234d3
TT
79002014-02-19 Tom Tromey <tromey@redhat.com>
7901
7902 * target-delegates.c: Rebuild.
7903 * target.c (target_pid_to_str): Unconditionally delegate.
7904 (init_dummy_target): Don't initialize to_pid_to_str.
7905 (default_pid_to_str): Rename from dummy_pid_to_str.
7906 * target.h (struct target_ops) <to_pid_to_str>: Use
7907 TARGET_DEFAULT_FUNC.
7908
09b0dc2b
TT
79092014-02-19 Tom Tromey <tromey@redhat.com>
7910
7911 * target-delegates.c: Rebuild.
7912 * target.c (target_find_new_threads): Unconditionally delegate.
7913 * target.h (struct target_ops) <to_find_new_threads>: Use
7914 TARGET_DEFAULT_RETURN.
7915
7d4f8efa
TT
79162014-02-19 Tom Tromey <tromey@redhat.com>
7917
7918 * target-delegates.c: Rebuild.
7919 * target.c (target_program_signals): Unconditionally delegate.
7920 * target.h (struct target_ops) <to_program_signals>: Use
7921 TARGET_DEFAULT_IGNORE.
7922
035cad7f
TT
79232014-02-19 Tom Tromey <tromey@redhat.com>
7924
7925 * target-delegates.c: Rebuild.
7926 * target.c (target_pass_signals): Unconditionally delegate.
7927 * target.h (struct target_ops) <to_pass_signals>: Use
7928 TARGET_DEFAULT_IGNORE.
7929
8d657035
TT
79302014-02-19 Tom Tromey <tromey@redhat.com>
7931
7932 * target-delegates.c: Rebuild.
7933 * target.c (default_mourn_inferior): New function.
7934 (target_mourn_inferior): Unconditionally delegate.
7935 * target.h (struct target_ops) <to_mourn_inferior>: Use
7936 TARGET_DEFAULT_FUNC.
7937
098dba18
TT
79382014-02-19 Tom Tromey <tromey@redhat.com>
7939
7940 * target-delegates.c: Rebuild.
7941 * target.c (default_follow_fork): New function.
7942 (target_follow_fork): Unconditionally delegate.
7943 * target.h (struct target_ops) <to_follow_fork>: Use
7944 TARGET_DEFAULT_FUNC.
7945
423a4807
TT
79462014-02-19 Tom Tromey <tromey@redhat.com>
7947
7948 * target-delegates.c: Rebuild.
7949 * target.c (target_kill): Unconditionally delegate.
7950 * target.h (struct target_ops) <to_kill>: Use
7951 TARGET_DEFAULT_NORETURN.
7952
6c7e5e5c
TT
79532014-02-19 Tom Tromey <tromey@redhat.com>
7954
7955 * target-delegates.c: Rebuild.
7956 * target.c (target_masked_watch_num_registers): Unconditionally
7957 delegate.
7958 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7959 Use TARGET_DEFAULT_RETURN.
7960
8b1c364c
TT
79612014-02-19 Tom Tromey <tromey@redhat.com>
7962
7963 * target-delegates.c: Rebuild.
7964 * target.c (target_remove_mask_watchpoint): Unconditionally
7965 delegate.
7966 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7967 TARGET_DEFAULT_RETURN.
7968
cd4ae029
TT
79692014-02-19 Tom Tromey <tromey@redhat.com>
7970
7971 * target-delegates.c: Rebuild.
7972 * target.c (target_insert_mask_watchpoint): Unconditionally
7973 delegate.
7974 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7975 TARGET_DEFAULT_RETURN.
7976
a134316b
TT
79772014-02-19 Tom Tromey <tromey@redhat.com>
7978
7979 * target-delegates.c: Rebuild.
7980 * target.c (target_ranged_break_num_registers): Unconditionally
7981 delegate.
7982 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7983 Use TARGET_DEFAULT_RETURN.
7984
ad5989bd
TT
79852014-02-19 Tom Tromey <tromey@redhat.com>
7986
7987 * target-delegates.c: Rebuild.
7988 * target.c (target_fetch_registers): Unconditionally delegate.
7989 * target.h (struct target_ops) <to_fetch_registers>: Use
7990 TARGET_DEFAULT_NORETURN.
7991
46ee7e8d
TT
79922014-02-19 Tom Tromey <tromey@redhat.com>
7993
7994 * target-delegates.c: Rebuild.
7995 * target.c (update_current_target): Don't inherit or default
7996 to_stop.
7997 * target.h (struct target_ops) <to_stop>: Use
7998 TARGET_DEFAULT_IGNORE.
7999
843f59ed
TT
80002014-02-19 Tom Tromey <tromey@redhat.com>
8001
8002 * target-delegates.c: Rebuild.
8003 * target.c (update_current_target): Don't inherit or default
8004 to_can_run_breakpoint_commands.
8005 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
8006 Use TARGET_DEFAULT_RETURN.
8007
ccfde2a0
TT
80082014-02-19 Tom Tromey <tromey@redhat.com>
8009
8010 * target-delegates.c: Rebuild.
8011 * target.c (update_current_target): Don't inherit or default
8012 to_supports_evaluation_of_breakpoint_conditions.
8013 * target.h (struct target_ops)
8014 <to_supports_evaluation_of_breakpoint_conditions>: Use
8015 TARGET_DEFAULT_RETURN.
8016
0de91722
TT
80172014-02-19 Tom Tromey <tromey@redhat.com>
8018
8019 * target-delegates.c: Rebuild.
8020 * target.c (update_current_target): Don't inherit or default
8021 to_augmented_libraries_svr4_read.
8022 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8023 Use TARGET_DEFAULT_RETURN.
8024
9a7d8b48
TT
80252014-02-19 Tom Tromey <tromey@redhat.com>
8026
8027 * target-delegates.c: Rebuild.
8028 * target.c (update_current_target): Don't inherit or default
8029 to_can_use_agent.
8030 * target.h (struct target_ops) <to_can_use_agent>: Use
8031 TARGET_DEFAULT_RETURN.
8032
d9db5b21
TT
80332014-02-19 Tom Tromey <tromey@redhat.com>
8034
8035 * target-delegates.c: Rebuild.
8036 * target.c (update_current_target): Don't inherit or default
8037 to_use_agent.
8038 * target.h (struct target_ops) <to_use_agent>: Use
8039 TARGET_DEFAULT_NORETURN.
8040
92155eeb
TT
80412014-02-19 Tom Tromey <tromey@redhat.com>
8042
8043 * target-delegates.c: Rebuild.
8044 * target.c (update_current_target): Don't inherit or default
8045 to_traceframe_info.
8046 (return_null): Remove.
8047 * target.h (struct target_ops) <to_traceframe_info>: Use
8048 TARGET_DEFAULT_RETURN.
8049
d6522a22
TT
80502014-02-19 Tom Tromey <tromey@redhat.com>
8051
8052 * target-delegates.c: Rebuild.
8053 * target.c (update_current_target): Don't inherit or default
8054 to_static_tracepoint_markers_by_strid.
8055 * target.h (struct target_ops)
8056 <to_static_tracepoint_markers_by_strid>: Use
8057 TARGET_DEFAULT_NORETURN.
8058
4c3e4425
TT
80592014-02-19 Tom Tromey <tromey@redhat.com>
8060
8061 * target-delegates.c: Rebuild.
8062 * target.c (update_current_target): Don't inherit or default
8063 to_static_tracepoint_marker_at.
8064 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8065 Use TARGET_DEFAULT_RETURN.
8066
dcd6917f
TT
80672014-02-19 Tom Tromey <tromey@redhat.com>
8068
8069 * target-delegates.c: Rebuild.
8070 * target.c (update_current_target): Don't inherit or default
8071 to_set_permissions.
8072 * target.h (struct target_ops) <to_set_permissions>: Use
8073 TARGET_DEFAULT_IGNORE.
8074
22bcceee
TT
80752014-02-19 Tom Tromey <tromey@redhat.com>
8076
8077 * target-delegates.c: Rebuild.
8078 * target.c (update_current_target): Don't inherit or default
8079 to_get_tib_address.
8080 * target.h (struct target_ops) <to_get_tib_address>: Use
8081 TARGET_DEFAULT_NORETURN.
8082
8586ccaa
TT
80832014-02-19 Tom Tromey <tromey@redhat.com>
8084
8085 * target-delegates.c: Rebuild.
8086 * target.c (update_current_target): Don't inherit or default
8087 to_set_trace_notes.
8088 * target.h (struct target_ops) <to_set_trace_notes>: Use
8089 TARGET_DEFAULT_RETURN.
8090
91df8d1d
TT
80912014-02-19 Tom Tromey <tromey@redhat.com>
8092
8093 * target-delegates.c: Rebuild.
8094 * target.c (update_current_target): Don't initialize
8095 to_set_trace_buffer_size.
8096 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8097 TARGET_DEFAULT_IGNORE.
8098
8d526939
TT
80992014-02-19 Tom Tromey <tromey@redhat.com>
8100
8101 * target-delegates.c: Rebuild.
8102 * target.c (update_current_target): Don't inherit or default
8103 to_set_circular_trace_buffer.
8104 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8105 TARGET_DEFAULT_IGNORE.
8106
0bcfeddf
TT
81072014-02-19 Tom Tromey <tromey@redhat.com>
8108
8109 * target-delegates.c: Rebuild.
8110 * target.c (update_current_target): Don't inherit or default
8111 to_set_disconnected_tracing.
8112 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8113 TARGET_DEFAULT_IGNORE.
8114
9249843f
TT
81152014-02-19 Tom Tromey <tromey@redhat.com>
8116
8117 * target-delegates.c: Rebuild.
8118 * target.c (update_current_target): Don't inherit or default
8119 to_get_min_fast_tracepoint_insn_len.
8120 (return_minus_one): Remove.
8121 * target.h (struct target_ops)
8122 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8123
ace92e7d
TT
81242014-02-19 Tom Tromey <tromey@redhat.com>
8125
8126 * target-delegates.c: Rebuild.
8127 * target.c (update_current_target): Don't inherit or default
8128 to_get_raw_trace_data.
8129 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8130 TARGET_DEFAULT_NORETURN.
8131
08120467
TT
81322014-02-19 Tom Tromey <tromey@redhat.com>
8133
8134 * target-delegates.c: Rebuild.
8135 * target.c (update_current_target): Don't inherit or default
8136 to_upload_trace_state_variables.
8137 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8138 Use TARGET_DEFAULT_RETURN.
8139
1e949b00
TT
81402014-02-19 Tom Tromey <tromey@redhat.com>
8141
8142 * target-delegates.c: Rebuild.
8143 * target.c (update_current_target): Don't inherit or default
8144 to_upload_tracepoints.
8145 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8146 TARGET_DEFAULT_RETURN.
8147
a2e6c147
TT
81482014-02-19 Tom Tromey <tromey@redhat.com>
8149
8150 * target-delegates.c: Rebuild.
8151 * target.c (update_current_target): Don't inherit or default
8152 to_save_trace_data.
8153 * target.h (struct target_ops) <to_save_trace_data>: Use
8154 TARGET_DEFAULT_NORETURN.
8155
959bcd0b
TT
81562014-02-19 Tom Tromey <tromey@redhat.com>
8157
8158 * target-delegates.c: Rebuild.
8159 * target.c (update_current_target): Don't inherit or default
8160 to_get_trace_state_variable_value.
8161 * target.h (struct target_ops)
8162 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8163
afc94e66
TT
81642014-02-19 Tom Tromey <tromey@redhat.com>
8165
8166 * target-delegates.c: Rebuild.
8167 * target.c (update_current_target): Don't inherit or default
8168 to_trace_find.
8169 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8170
e51c07ea
TT
81712014-02-19 Tom Tromey <tromey@redhat.com>
8172
8173 * target-delegates.c: Rebuild.
8174 * target.c (update_current_target): Don't inherit or default
8175 to_trace_stop.
8176 * target.h (struct target_ops) <to_trace_stop>: Use
8177 TARGET_DEFAULT_NORETURN.
8178
6fea14cd
TT
81792014-02-19 Tom Tromey <tromey@redhat.com>
8180
8181 * target-delegates.c: Rebuild.
8182 * target.c (update_current_target): Don't inherit or default
8183 to_get_tracepoint_status.
8184 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8185 TARGET_DEFAULT_NORETURN.
8186
4072d4ff
TT
81872014-02-19 Tom Tromey <tromey@redhat.com>
8188
8189 * target-delegates.c: Rebuild.
8190 * target.c (update_current_target): Don't inherit or default
8191 to_get_trace_status.
8192 * target.h (struct target_ops) <to_get_trace_status>: Use
8193 TARGET_DEFAULT_RETURN.
8194
25da2e80
TT
81952014-02-19 Tom Tromey <tromey@redhat.com>
8196
8197 * target-delegates.c: Rebuild.
8198 * target.c (update_current_target): Don't inherit or default
8199 to_trace_start.
8200 * target.h (struct target_ops) <to_trace_start>: Use
8201 TARGET_DEFAULT_NORETURN.
8202
86dd181d
TT
82032014-02-19 Tom Tromey <tromey@redhat.com>
8204
8205 * target-delegates.c: Rebuild.
8206 * target.c (update_current_target): Don't inherit or default
8207 to_trace_set_readonly_regions.
8208 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8209 Use TARGET_DEFAULT_NORETURN.
8210
05c41993
TT
82112014-02-19 Tom Tromey <tromey@redhat.com>
8212
8213 * target-delegates.c: Rebuild.
8214 * target.c (update_current_target): Don't inherit or default
8215 to_disable_tracepoint.
8216 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8217 TARGET_DEFAULT_NORETURN.
8218
151f70f1
TT
82192014-02-19 Tom Tromey <tromey@redhat.com>
8220
8221 * target-delegates.c: Rebuild.
8222 * target.c (update_current_target): Don't inherit or default
8223 to_enable_tracepoint.
8224 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8225 TARGET_DEFAULT_NORETURN.
8226
94eb98b9
TT
82272014-02-19 Tom Tromey <tromey@redhat.com>
8228
8229 * target-delegates.c: Rebuild.
8230 * target.c (update_current_target): Don't inherit or default
8231 to_download_trace_state_variable.
8232 * target.h (struct target_ops) <to_download_trace_state_variable>:
8233 Use TARGET_DEFAULT_NORETURN.
8234
719acc4a
TT
82352014-02-19 Tom Tromey <tromey@redhat.com>
8236
8237 * target-delegates.c: Rebuild.
8238 * target.c (update_current_target): Don't inherit or default
8239 to_can_download_tracepoint.
8240 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8241 TARGET_DEFAULT_RETURN.
8242
9a980a22
TT
82432014-02-19 Tom Tromey <tromey@redhat.com>
8244
8245 * target-delegates.c: Rebuild.
8246 * target.c (update_current_target): Don't inherit or default
8247 to_download_tracepoint.
8248 * target.h (struct target_ops) <to_download_tracepoint>: Use
8249 TARGET_DEFAULT_NORETURN.
8250
5536135b
TT
82512014-02-19 Tom Tromey <tromey@redhat.com>
8252
8253 * target-delegates.c: Rebuild.
8254 * target.c (update_current_target): Don't inherit or default
8255 to_trace_init.
8256 * target.h (struct target_ops) <to_trace_init>: Use
8257 TARGET_DEFAULT_RETURN.
8258
9409d39e
TT
82592014-02-19 Tom Tromey <tromey@redhat.com>
8260
8261 * target-delegates.c: Rebuild.
8262 * target.c (update_current_target): Don't inherit or default
8263 to_supports_string_tracing.
8264 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8265 TARGET_DEFAULT_RETURN.
8266
aab1b22d
TT
82672014-02-19 Tom Tromey <tromey@redhat.com>
8268
8269 * target-delegates.c: Rebuild.
8270 * target.c (update_current_target): Don't inherit or default
8271 to_supports_enable_disable_tracepoint.
8272 * target.h (struct target_ops)
8273 <to_supports_enable_disable_tracepoint>: Use
8274 TARGET_DEFAULT_RETURN.
8275
a7304748
TT
82762014-02-19 Tom Tromey <tromey@redhat.com>
8277
8278 * target-delegates.c: Rebuild.
8279 * target.c (update_current_target): Don't inherit or default
8280 to_supports_multi_process.
8281 * target.h (struct target_ops) <to_supports_multi_process>: Use
8282 TARGET_DEFAULT_RETURN.
8283
4229b31d
TT
82842014-02-19 Tom Tromey <tromey@redhat.com>
8285
8286 * target-delegates.c: Rebuild.
8287 * target.c (update_current_target): Don't inherit or default
8288 to_get_ada_task_ptid.
8289 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8290 TARGET_DEFAULT_FUNC.
8291
43eba180
TT
82922014-02-19 Tom Tromey <tromey@redhat.com>
8293
8294 * target-delegates.c: Rebuild.
8295 * target.c (update_current_target): Don't inherit or default
8296 to_thread_architecture.
8297 * target.h (struct target_ops) <to_thread_architecture>: Use
8298 TARGET_DEFAULT_FUNC.
8299
fe31bf5b
TT
83002014-02-19 Tom Tromey <tromey@redhat.com>
8301
8302 * target-delegates.c: Rebuild.
8303 * target.c (update_current_target): Don't inherit or default
8304 to_execution_direction.
8305 * target.h (struct target_ops) <to_execution_direction>: Use
8306 TARGET_DEFAULT_FUNC.
8307
53e1cfc7
TT
83082014-02-19 Tom Tromey <tromey@redhat.com>
8309
8310 * target-delegates.c: Rebuild.
8311 * target.c (update_current_target): Don't inherit or default
8312 to_can_execute_reverse.
8313 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8314 TARGET_DEFAULT_RETURN.
8315 (target_can_execute_reverse): Unconditionally delegate.
8316
9bb9d61d
TT
83172014-02-19 Tom Tromey <tromey@redhat.com>
8318
8319 * target-delegates.c: Rebuild.
8320 * target.c (update_current_target): Don't inherit or default
8321 to_goto_bookmark.
8322 (dummy_goto_bookmark): Remove.
8323 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8324 * target.h (struct target_ops) <to_goto_bookmark>: Use
8325 TARGET_DEFAULT_NORETURN.
8326
3dbafbbb
TT
83272014-02-19 Tom Tromey <tromey@redhat.com>
8328
8329 * target-delegates.c: Rebuild.
8330 * target.c (update_current_target): Don't inherit or default
8331 to_get_bookmark.
8332 (dummy_get_bookmark): Remove.
8333 (init_dummy_target): Don't inherit or default to_get_bookmark.
8334 * target.h (struct target_ops) <to_get_bookmark>: Use
8335 TARGET_DEFAULT_NORETURN
8336
16f796b1
TT
83372014-02-19 Tom Tromey <tromey@redhat.com>
8338
8339 * target-delegates.c: Rebuild.
8340 * target.c (update_current_target): Don't inherit or default
8341 to_make_corefile_notes.
8342 (init_dummy_target): Don't initialize to_make_corefile_notes.
8343 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8344 TARGET_DEFAULT_FUNC.
8345
0b5a2719
TT
83462014-02-19 Tom Tromey <tromey@redhat.com>
8347
8348 * target-delegates.c: Rebuild.
8349 * target.c (update_current_target): Don't inherit or default
8350 to_find_memory_regions.
8351 (init_dummy_target): Don't initialize to_find_memory_regions.
8352 * target.h (struct target_ops) <to_find_memory_regions>: Use
8353 TARGET_DEFAULT_FUNC.
8354
d9cb0195
TT
83552014-02-19 Tom Tromey <tromey@redhat.com>
8356
8357 * target-delegates.c: Rebuild.
8358 * target.c (update_current_target): Don't inherit or default
8359 to_log_command.
8360 * target.h (struct target_ops) <to_log_command>: Use
8361 TARGET_DEFAULT_IGNORE.
8362 (target_log_command): Unconditionally delegate.
8363
830ca330
TT
83642014-02-19 Tom Tromey <tromey@redhat.com>
8365
8366 * target-delegates.c: Rebuild.
8367 * target.c (update_current_target): Don't inherit or default
8368 to_pid_to_exec_file.
8369 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8370 TARGET_DEFAULT_RETURN.
8371
825828fc
TT
83722014-02-19 Tom Tromey <tromey@redhat.com>
8373
8374 * target-delegates.c: Rebuild.
8375 * target.c (update_current_target): Don't inherit or default
8376 to_thread_name.
8377 (target_thread_name): Unconditionally delegate.
8378 * target.h (struct target_ops) <to_thread_name>: Use
8379 TARGET_DEFAULT_RETURN.
8380
4a7e6dda
TT
83812014-02-19 Tom Tromey <tromey@redhat.com>
8382
8383 * target-delegates.c: Rebuild.
8384 * target.c (update_current_target): Don't inherit or default
8385 to_extra_thread_info.
8386 * target.h (struct target_ops) <to_extra_thread_info>: Use
8387 TARGET_DEFAULT_RETURN.
8388
0db88c1d
TT
83892014-02-19 Tom Tromey <tromey@redhat.com>
8390
8391 * target-delegates.c: Rebuild.
8392 * target.c (update_current_target): Don't inherit or default
8393 to_has_exited.
8394 * target.h (struct target_ops) <to_has_exited>: Use
8395 TARGET_DEFAULT_RETURN..
8396
6a9fa051
TT
83972014-02-19 Tom Tromey <tromey@redhat.com>
8398
8399 * target-delegates.c: Rebuild.
8400 * target.c (update_current_target): Don't inherit or default
8401 to_set_syscall_catchpoint.
8402 (return_one): Remove.
8403 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8404 TARGET_DEFAULT_RETURN.
8405
62f64d7a
TT
84062014-02-19 Tom Tromey <tromey@redhat.com>
8407
8408 * target-delegates.c: Rebuild.
8409 * target.c (update_current_target): Don't inherit or default
8410 to_insert_exec_catchpoint.
8411 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8412 TARGET_DEFAULT_RETURN.
8413
cda0f38c
TT
84142014-01-08 Tom Tromey <tromey@redhat.com>
8415
8416 * target-delegates.c: Rebuild.
8417 * target.c (update_current_target): Don't inherit or default
8418 to_insert_exec_catchpoint.
8419 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8420 TARGET_DEFAULT_RETURN.
8421
95c3375e
TT
84222014-02-19 Tom Tromey <tromey@redhat.com>
8423
8424 * target-delegates.c: Rebuild.
8425 * target.c (update_current_target): Don't inherit or default
8426 to_remove_vfork_catchpoint.
8427 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8428 TARGET_DEFAULT_RETURN.
8429
7e18a8dc
TT
84302014-02-19 Tom Tromey <tromey@redhat.com>
8431
8432 * target-delegates.c: Rebuild.
8433 * target.c (update_current_target): Don't inherit or default
8434 to_insert_vfork_catchpoint.
8435 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8436 TARGET_DEFAULT_RETURN.
8437
e1a21fb7
TT
84382014-02-19 Tom Tromey <tromey@redhat.com>
8439
8440 * target-delegates.c: Rebuild.
8441 * target.c (update_current_target): Don't inherit or default
8442 to_remove_fork_catchpoint.
8443 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8444 TARGET_DEFAULT_RETURN.
8445
5958ebeb
TT
84462014-02-19 Tom Tromey <tromey@redhat.com>
8447
8448 * target-delegates.c: Rebuild.
8449 * target.c (update_current_target): Don't inherit or default
8450 to_insert_fork_catchpoint.
8451 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8452 TARGET_DEFAULT_RETURN.
8453
340ba4bf
TT
84542014-02-19 Tom Tromey <tromey@redhat.com>
8455
8456 * target-delegates.c: Rebuild.
8457 * target.c (update_current_target): Don't inherit or default
8458 to_post_startup_inferior.
8459 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8460 TARGET_DEFAULT_IGNORE.
8461
7634da87
TT
84622014-02-19 Tom Tromey <tromey@redhat.com>
8463
8464 * target-delegates.c: Rebuild.
8465 * target.c (update_current_target): Don't inherit or default
8466 to_load.
8467 * target.h (struct target_ops) <to_load>: Use
8468 TARGET_DEFAULT_NORETURN.
8469
e19e919f
TT
84702014-02-19 Tom Tromey <tromey@redhat.com>
8471
8472 * target-delegates.c: Rebuild.
8473 * target.c (update_current_target): Don't inherit or default
8474 to_terminal_info.
8475 * target.h (struct target_ops) <to_terminal_info>: Use
8476 TARGET_DEFAULT_FUNC.
8477
c6ea8f79
TT
84782014-02-19 Tom Tromey <tromey@redhat.com>
8479
8480 * target-delegates.c: Rebuild.
8481 * target.c (update_current_target): Don't inherit or default
8482 to_terminal_save_ours.
8483 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8484 TARGET_DEFAULT_IGNORE.
8485
e4a733f1
TT
84862014-02-19 Tom Tromey <tromey@redhat.com>
8487
8488 * target-delegates.c: Rebuild.
8489 * target.c (update_current_target): Don't inherit or default
8490 to_terminal_ours.
8491 * target.h (struct target_ops) <to_terminal_ours>: Use
8492 TARGET_DEFAULT_IGNORE.
8493
74fcbef9
TT
84942014-02-19 Tom Tromey <tromey@redhat.com>
8495
8496 * target-delegates.c: Rebuild.
8497 * target.c (update_current_target): Don't inherit or default
8498 to_terminal_ours_for_output.
8499 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8500 TARGET_DEFAULT_IGNORE.
8501
ddeaacc9
TT
85022014-02-19 Tom Tromey <tromey@redhat.com>
8503
8504 * target-delegates.c: Rebuild.
8505 * target.c (update_current_target): Don't inherit or default
8506 to_terminal_inferior.
8507 * target.h (struct target_ops) <to_terminal_inferior>: Use
8508 TARGET_DEFAULT_IGNORE.
8509
0343661d
TT
85102014-02-19 Tom Tromey <tromey@redhat.com>
8511
8512 * target-delegates.c: Rebuild.
8513 * target.c (update_current_target): Don't inherit or default
8514 to_terminal_init.
8515 * target.h (struct target_ops) <to_terminal_init>: Use
8516 TARGET_DEFAULT_IGNORE.
8517
77cdffe9
TT
85182014-02-19 Tom Tromey <tromey@redhat.com>
8519
8520 * target-delegates.c: Rebuild.
8521 * target.c (update_current_target): Don't inherit or default
8522 to_can_accel_watchpoint_condition.
8523 * target.h (struct target_ops)
8524 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8525
d03655e4
TT
85262014-02-19 Tom Tromey <tromey@redhat.com>
8527
8528 * target-delegates.c: Rebuild.
8529 * target.c (update_current_target): Don't inherit or default
8530 to_region_ok_for_hw_watchpoint.
8531 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8532 Use TARGET_DEFAULT_FUNC.
8533
65f160a9
TT
85342014-02-19 Tom Tromey <tromey@redhat.com>
8535
8536 * target-delegates.c: Rebuild.
8537 * target.c (update_current_target): Don't inherit or default
8538 to_watchpoint_addr_within_range.
8539 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8540 Use TARGET_DEFAULT_FUNC.
8541
61dd109f
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_remove_watchpoint.
8547 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8548 TARGET_DEFAULT_NORETURN.
8549
016facd4
TT
85502014-02-19 Tom Tromey <tromey@redhat.com>
8551
8552 * target-delegates.c: Rebuild.
8553 * target.c (update_current_target): Don't inherit or default
8554 to_insert_watchpoint.
8555 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8556 TARGET_DEFAULT_RETURN.
8557
418dabac
TT
85582014-02-19 Tom Tromey <tromey@redhat.com>
8559
8560 * target-delegates.c: Rebuild.
8561 * target.c (update_current_target): Don't inherit or default
8562 to_remove_hw_breakpoint.
8563 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8564 TARGET_DEFAULT_RETURN.
8565
61b371f9
TT
85662014-02-19 Tom Tromey <tromey@redhat.com>
8567
8568 * target-delegates.c: Rebuild.
8569 * target.c (update_current_target): Don't inherit or default
8570 to_insert_hw_breakpoint.
8571 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8572 TARGET_DEFAULT_RETURN.
8573
52b51d06
TT
85742014-02-19 Tom Tromey <tromey@redhat.com>
8575
8576 * target-delegates.c: Rebuild.
8577 * target.c (update_current_target): Don't inherit or default
8578 to_can_use_hw_breakpoint.
8579 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8580 TARGET_DEFAULT_RETURN.
8581
f86e59b2
TT
85822014-02-19 Tom Tromey <tromey@redhat.com>
8583
8584 * target-delegates.c: Rebuild.
8585 * target.c (update_current_target): Don't inherit or default
8586 to_files_info.
8587 * target.h (struct target_ops) <to_files_info>: Use
8588 TARGET_DEFAULT_IGNORE.
8589
6c628163
TT
85902014-02-19 Tom Tromey <tromey@redhat.com>
8591
8592 * target-delegates.c: Rebuild.
8593 * target.c (update_current_target): Don't inherit or default
8594 to_store.
8595 * target.h (struct target_ops) <to_store>: Use
8596 TARGET_DEFAULT_NORETURN.
8597
bebd3233
TT
85982014-02-19 Tom Tromey <tromey@redhat.com>
8599
8600 * target-delegates.c: Rebuild.
8601 * target.c (update_current_target): Don't inherit or default
8602 to_post_attach.
8603 * target.h (struct target_ops) <to_post_attach>: Use
8604 TARGET_DEFAULT_IGNORE.
8605
a53f3625
TT
86062014-02-19 Tom Tromey <tromey@redhat.com>
8607
8608 * target-delegates.c: Rebuild.
8609 * target.c (update_current_target): Don't inherit or default
8610 to_rcmd.
8611 (default_rcmd): New function.
8612 (do_monitor_command): Unconditionally delegate.
8613 * target.h (struct target_ops) <to_rmcd>: Use
8614 TARGET_DEFAULT_FUNC.
8615
e9a29200
TT
86162014-02-19 Tom Tromey <tromey@redhat.com>
8617
8618 * target-delegates.c: Rebuild.
8619 * target.c (init_dummy_target): Don't initialize to_attach.
8620 (target_attach): Unconditionally delegate.
8621 * target.h (struct target_ops) <to_attach>: Use
8622 TARGET_DEFAULT_FUNC.
8623
09da0d0a
TT
86242014-02-19 Tom Tromey <tromey@redhat.com>
8625
8626 * target-delegates.c: Rebuild.
8627 * target.c (target_detach): Unconditionally delegate.
8628 (init_dummy_target): Don't initialize to_detach.
8629 * target.h (struct target_ops) <to_detach>: Use
8630 TARGET_DEFAULT_IGNORE.
8631
5436ff03
TT
86322014-02-19 Tom Tromey <tromey@redhat.com>
8633
8634 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8635 Add argument.
8636 (target_augmented_libraries_svr4_read): Add argument.
8637 * target.c (update_current_target): Update.
8638 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8639 argument.
8640
f0d960ea
TT
86412014-02-19 Tom Tromey <tromey@redhat.com>
8642
8643 * target.h (struct target_ops) <to_call_history_range>: Add
8644 argument.
8645 * target.c (target_call_history_range): Add argument.
8646 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8647 argument.
8648 (record_btrace_call_history_from): Update.
8649
ec0aea04
TT
86502014-02-19 Tom Tromey <tromey@redhat.com>
8651
8652 * target.h (struct target_ops) <to_call_history_from>: Add
8653 argument.
8654 * target.c (target_call_history_from): Add argument.
8655 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8656 argument.
8657
5df2fcba
TT
86582014-02-19 Tom Tromey <tromey@redhat.com>
8659
8660 * target.h (struct target_ops) <to_call_history>: Add argument.
8661 * target.c (target_call_history): Add argument.
8662 * record-btrace.c (record_btrace_call_history): Add 'self'
8663 argument.
8664
4e99c6b7
TT
86652014-02-19 Tom Tromey <tromey@redhat.com>
8666
8667 * target.h (struct target_ops) <to_insn_history_range>: Add
8668 argument.
8669 * target.c (target_insn_history_range): Add argument.
8670 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8671 argument.
8672 (record_btrace_insn_history_from): Update.
8673
9abc3ff3
TT
86742014-02-19 Tom Tromey <tromey@redhat.com>
8675
8676 * target.h (struct target_ops) <to_insn_history_from>: Add
8677 argument.
8678 * target.c (target_insn_history_from): Add argument.
8679 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8680 argument.
8681
7a6c5609
TT
86822014-02-19 Tom Tromey <tromey@redhat.com>
8683
8684 * target.h (struct target_ops) <to_insn_history>: Add argument.
8685 * target.c (target_insn_history): Add argument.
8686 * record-btrace.c (record_btrace_insn_history): Add 'self'
8687 argument.
8688
606183ac
TT
86892014-02-19 Tom Tromey <tromey@redhat.com>
8690
8691 * target.h (struct target_ops) <to_goto_record>: Add argument.
8692 * target.c (target_goto_record): Add argument.
8693 * record-full.c (record_full_goto): Add 'self' argument.
8694 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8695
307a1b91
TT
86962014-02-19 Tom Tromey <tromey@redhat.com>
8697
8698 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8699 * target.c (target_goto_record_end): Add argument.
8700 * record-full.c (record_full_goto_end): Add 'self' argument.
8701 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8702
08475817
TT
87032014-02-19 Tom Tromey <tromey@redhat.com>
8704
8705 * target.h (struct target_ops) <to_goto_record_begin>: Add
8706 argument.
8707 * target.c (target_goto_record_begin): Add argument.
8708 * record-full.c (record_full_goto_begin): Add 'self' argument.
8709 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8710 argument.
8711
1c63c994
TT
87122014-02-19 Tom Tromey <tromey@redhat.com>
8713
8714 * target.h (struct target_ops) <to_record_is_replaying>: Add
8715 argument.
8716 * target.c (target_record_is_replaying): Add argument.
8717 * record-full.c (record_full_is_replaying): Add 'self' argument.
8718 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8719 argument.
8720 (record_btrace_xfer_partial, record_btrace_store_registers)
8721 (record_btrace_prepare_to_store, record_btrace_resume)
8722 (record_btrace_wait, record_btrace_decr_pc_after_break)
8723 (record_btrace_find_new_threads, record_btrace_thread_alive):
8724 Update.
8725
d1b55219
TT
87262014-02-19 Tom Tromey <tromey@redhat.com>
8727
8728 * target.h (struct target_ops) <to_delete_record>: Add argument.
8729 * target.c (target_delete_record): Add argument.
8730 * record-full.c (record_full_delete): Add 'self' argument.
8731
1390f529
TT
87322014-02-19 Tom Tromey <tromey@redhat.com>
8733
8734 * target.h (struct target_ops) <to_save_record>: Add argument.
8735 * target.c (target_save_record): Add argument.
8736 * record-full.c (record_full_save): Add 'self' argument.
8737 (record_full_save): Add 'self' argument.
8738
630d6a4a
TT
87392014-02-19 Tom Tromey <tromey@redhat.com>
8740
8741 * target.h (struct target_ops) <to_info_record>: Add argument.
8742 * target.c (target_info_record): Add argument.
8743 * record.c (info_record_command): Add argument.
8744 * record-full.c (record_full_info): Add 'self' argument.
8745 * record-btrace.c (record_btrace_info): Add 'self' argument.
8746
c6cd7c02
TT
87472014-02-19 Tom Tromey <tromey@redhat.com>
8748
8749 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8750 * target.c (target_stop_recording): Add argument.
8751 * record.c (record_stop): Add argument.
8752 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8753 argument.
8754
39c49f83
TT
87552014-02-19 Tom Tromey <tromey@redhat.com>
8756
8757 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8758 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8759 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8760 argument.
8761 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8762 (_initialize_amd64_linux_nat): Use it.
8763 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8764 (_initialize_i386_linux_nat): Use it.
8765
1777056d
TT
87662014-02-19 Tom Tromey <tromey@redhat.com>
8767
8768 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8769 * target.c (target_teardown_btrace): Add argument.
8770 * remote.c (remote_teardown_btrace): Add 'self' argument.
8771 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8772 argument.
8773 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8774 argument.
8775
25e95349
TT
87762014-02-19 Tom Tromey <tromey@redhat.com>
8777
8778 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8779 * target.c (target_disable_btrace): Add argument.
8780 * remote.c (remote_disable_btrace): Add 'self' argument.
8781 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8782 argument.
8783 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8784 argument.
8785
e3c49f88
TT
87862014-02-19 Tom Tromey <tromey@redhat.com>
8787
8788 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8789 * target.c (target_enable_btrace): Add argument.
8790 * remote.c (remote_enable_btrace): Add 'self' argument.
8791 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8792 argument.
8793 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8794 argument.
8795
fe38f897
TT
87962014-02-19 Tom Tromey <tromey@redhat.com>
8797
8798 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8799 (target_can_use_agent): Add argument.
8800 * target.c (update_current_target): Update.
8801 * remote.c (remote_can_use_agent): Add 'self' argument.
8802 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8803
2c152180
TT
88042014-02-19 Tom Tromey <tromey@redhat.com>
8805
8806 * target.h (struct target_ops) <to_use_agent>: Add argument.
8807 (target_use_agent): Add argument.
8808 * target.c (update_current_target): Update.
8809 * remote.c (remote_use_agent): Add 'self' argument.
8810 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8811
a893e81f
TT
88122014-02-19 Tom Tromey <tromey@redhat.com>
8813
8814 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8815 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8816 (target_traceframe_info): Add argument.
8817 * target.c (update_current_target): Update.
8818 * remote.c (remote_traceframe_info): Add 'self' argument.
8819 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8820
c686c57f
TT
88212014-02-19 Tom Tromey <tromey@redhat.com>
8822
8823 * target.h (target_static_tracepoint_markers_by_strid): Add
8824 argument.
8825 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8826 'self' argument.
8827 * target.c (update_current_target): Update.
8828 * remote.c (struct target_ops)
8829 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8830 * linux-nat.c (struct target_ops)
8831 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8832
61fc905d
TT
88332014-02-19 Tom Tromey <tromey@redhat.com>
8834
8835 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8836 Add argument.
8837 (target_static_tracepoint_marker_at): Add argument.
8838 * target.c (update_current_target): Update.
8839 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8840 argument.
8841
c378d69d
TT
88422014-02-19 Tom Tromey <tromey@redhat.com>
8843
8844 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8845 (target_set_permissions): Add argument.
8846 * target.c (update_current_target): Update.
8847 * remote.c (remote_set_permissions): Add 'self' argument.
8848 (remote_start_remote): Update.
8849
bd7ae0f5
TT
88502014-02-19 Tom Tromey <tromey@redhat.com>
8851
8852 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8853 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8854 (target_get_tib_address): Add argument.
8855 * target.c (update_current_target): Update.
8856 * remote.c (remote_get_tib_address): Add 'self' argument.
8857
d9e68a2c
TT
88582014-02-19 Tom Tromey <tromey@redhat.com>
8859
8860 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8861 (target_set_trace_notes): Add argument.
8862 * target.c (update_current_target): Update.
8863 * remote.c (remote_set_trace_notes): Add 'self' argument.
8864
4da384be
TT
88652014-02-19 Tom Tromey <tromey@redhat.com>
8866
8867 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8868 argument.
8869 (target_set_trace_buffer_size): Add argument.
8870 * target.c (update_current_target): Update.
8871 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8872
736d5b1f
TT
88732014-02-19 Tom Tromey <tromey@redhat.com>
8874
8875 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8876 argument.
8877 (target_set_circular_trace_buffer): Add argument.
8878 * target.c (update_current_target): Update.
8879 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8880 argument.
8881
37b25738
TT
88822014-02-19 Tom Tromey <tromey@redhat.com>
8883
8884 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8885 argument.
8886 (target_set_disconnected_tracing): Add argument.
8887 * target.c (update_current_target): Update.
8888 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8889
0e67620a
TT
88902014-02-19 Tom Tromey <tromey@redhat.com>
8891
8892 * target.h (struct target_ops)
8893 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8894 (target_get_min_fast_tracepoint_insn_len): Add argument.
8895 * target.c (update_current_target): Update.
8896 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8897 argument.
8898
88ee6f45
TT
88992014-02-19 Tom Tromey <tromey@redhat.com>
8900
8901 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8902 argument.
8903 (target_get_raw_trace_data): Add argument.
8904 * target.c (update_current_target): Update.
8905 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8906
181e3713
TT
89072014-02-19 Tom Tromey <tromey@redhat.com>
8908
8909 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8910 Add argument.
8911 (target_upload_trace_state_variables): Add argument.
8912 * target.c (update_current_target): Update.
8913 * remote.c (remote_upload_trace_state_variables): Add 'self'
8914 argument.
8915 (remote_start_remote): Update.
8916
ab6617cc
TT
89172014-02-19 Tom Tromey <tromey@redhat.com>
8918
8919 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8920 argument.
8921 (target_upload_tracepoints): Add argument.
8922 * target.c (update_current_target): Update.
8923 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8924 (remote_start_remote): Update.
8925
dc3decaf
TT
89262014-02-19 Tom Tromey <tromey@redhat.com>
8927
8928 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8929 (target_save_trace_data): Add argument.
8930 * target.c (update_current_target): Update.
8931 * remote.c (remote_save_trace_data): Add 'self' argument.
8932
4011015b
TT
89332014-02-19 Tom Tromey <tromey@redhat.com>
8934
8935 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8936 argument.
8937 * target.h (struct target_ops)
8938 <to_get_trace_state_variable_value>: Add argument.
8939 (target_get_trace_state_variable_value): Add argument.
8940 * target.c (update_current_target): Update.
8941 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8942 argument.
8943 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8944
bd4c6793
TT
89452014-02-19 Tom Tromey <tromey@redhat.com>
8946
8947 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8948 * target.h (struct target_ops) <to_trace_find>: Add argument.
8949 (target_trace_find): Add argument.
8950 * target.c (update_current_target): Update.
8951 * remote.c (remote_trace_find): Add 'self' argument.
8952 * ctf.c (ctf_trace_find): Add 'self' argument.
8953
74499f1b
TT
89542014-02-19 Tom Tromey <tromey@redhat.com>
8955
8956 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8957 (target_trace_stop): Add argument.
8958 * target.c (update_current_target): Update.
8959 * remote.c (remote_trace_stop): Add 'self' argument.
8960
db90e85c
TT
89612014-02-19 Tom Tromey <tromey@redhat.com>
8962
8963 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8964 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8965 argument.
8966 (target_get_tracepoint_status): Add argument.
8967 * target.c (update_current_target): Update.
8968 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8969
8bd200f1
TT
89702014-02-19 Tom Tromey <tromey@redhat.com>
8971
8972 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8973 * target.h (struct target_ops) <to_get_trace_status>: Add
8974 argument.
8975 (target_get_trace_status): Add argument.
8976 * target.c (update_current_target): Update.
8977 * remote.c (remote_get_trace_status): Add 'self' argument.
8978 (remote_start_remote, remote_can_download_tracepoint): Update.
8979 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8980
e2d1aae3
TT
89812014-02-19 Tom Tromey <tromey@redhat.com>
8982
8983 * target.h (struct target_ops) <to_trace_start>: Add argument.
8984 (target_trace_start): Add argument.
8985 * target.c (update_current_target): Update.
8986 * remote.c (remote_trace_start): Add 'self' argument.
8987
583f9a86
TT
89882014-02-19 Tom Tromey <tromey@redhat.com>
8989
8990 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8991 Add argument.
8992 (target_trace_set_readonly_regions): Add argument.
8993 * target.c (update_current_target): Update.
8994 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8995 argument.
8996
780b049c
TT
89972014-02-19 Tom Tromey <tromey@redhat.com>
8998
8999 * target.h (struct target_ops) <to_disable_tracepoint>: Add
9000 argument.
9001 (target_disable_tracepoint): Add argument.
9002 * target.c (update_current_target): Update.
9003 * remote.c (remote_disable_tracepoint): Add 'self' argument.
9004
46670d57
TT
90052014-02-19 Tom Tromey <tromey@redhat.com>
9006
9007 * target.h (struct target_ops) <to_enable_tracepoint>: Add
9008 argument.
9009 (target_enable_tracepoint): Add argument.
9010 * target.c (update_current_target): Update.
9011 * remote.c (remote_enable_tracepoint): Add 'self' argument.
9012
559d2b81
TT
90132014-02-19 Tom Tromey <tromey@redhat.com>
9014
9015 * target.h (struct target_ops) <to_download_trace_state_variable>:
9016 Add argument.
9017 (target_download_trace_state_variable): Add argument.
9018 * target.c (update_current_target): Update.
9019 * remote.c (remote_download_trace_state_variable): Add 'self'
9020 argument.
9021
a52a8357
TT
90222014-02-19 Tom Tromey <tromey@redhat.com>
9023
9024 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
9025 argument.
9026 (target_can_download_tracepoint): Add argument.
9027 * target.c (update_current_target): Update.
9028 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
9029
548f7808
TT
90302014-02-19 Tom Tromey <tromey@redhat.com>
9031
9032 * target.h (struct target_ops) <to_download_tracepoint>: Add
9033 argument.
9034 (target_download_tracepoint): Add argument.
9035 * target.c (update_current_target): Update.
9036 * remote.c (remote_download_tracepoint): Add 'self' argument.
9037
ecae04e1
TT
90382014-02-19 Tom Tromey <tromey@redhat.com>
9039
9040 * target.h (struct target_ops) <to_trace_init>: Add argument.
9041 (target_trace_init): Add argument.
9042 * target.c (update_current_target): Update.
9043 * remote.c (remote_trace_init): Add 'self' argument.
9044
fab5aa7c
TT
90452014-02-19 Tom Tromey <tromey@redhat.com>
9046
9047 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9048 * target.c (target_fileio_readlink): Add argument.
9049 * remote.c (remote_hostio_readlink): Add 'self' argument.
9050 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9051
dbbca37d
TT
90522014-02-19 Tom Tromey <tromey@redhat.com>
9053
9054 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9055 * target.c (target_fileio_unlink): Add argument.
9056 * remote.c (remote_hostio_unlink): Add 'self' argument.
9057 (remote_file_delete): Update.
9058 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9059
df39ea25
TT
90602014-02-19 Tom Tromey <tromey@redhat.com>
9061
9062 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9063 * target.c (target_fileio_close): Add argument.
9064 * remote.c (remote_hostio_close): Add 'self' argument.
9065 (remote_hostio_close_cleanup): Update.
9066 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9067 Update.
9068 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9069
a3be983c
TT
90702014-02-19 Tom Tromey <tromey@redhat.com>
9071
9072 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9073 * target.c (target_fileio_pread): Add argument.
9074 * remote.c (remote_hostio_pread): Add 'self' argument.
9075 (remote_bfd_iovec_pread, remote_file_get): Update.
9076 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9077
0d866f62
TT
90782014-02-19 Tom Tromey <tromey@redhat.com>
9079
9080 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9081 * target.c (target_fileio_pwrite): Add argument.
9082 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9083 (remote_file_put): Update.
9084 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9085
cd897586
TT
90862014-02-19 Tom Tromey <tromey@redhat.com>
9087
9088 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9089 * target.c (target_fileio_open): Add argument.
9090 * remote.c (remote_hostio_open): Add 'self' argument.
9091 (remote_bfd_iovec_open): Add 'self' argument.
9092 (remote_file_put): Add 'self' argument.
9093 (remote_file_get): Add 'self' argument.
9094 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9095
78eff0ec
TT
90962014-02-19 Tom Tromey <tromey@redhat.com>
9097
9098 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9099 Add argument.
9100 (target_can_run_breakpoint_commands): Add argument.
9101 * target.c (update_current_target): Update.
9102 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9103 argument.
9104 (remote_insert_breakpoint): Add 'self' argument.
9105 (remote_insert_hw_breakpoint): Add 'self' argument.
9106 (remote_can_run_breakpoint_commands): Add 'self' argument.
9107
efcc2da7
TT
91082014-02-19 Tom Tromey <tromey@redhat.com>
9109
9110 * target.h (struct target_ops)
9111 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9112 (target_supports_evaluation_of_breakpoint_conditions): Add
9113 argument.
9114 * target.c (update_current_target): Update.
9115 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9116 argument.
9117 (remote_insert_breakpoint): Add 'self' argument.
9118 (remote_insert_hw_breakpoint): Add 'self' argument.
9119 (remote_supports_cond_breakpoints): Add 'self' argument.
9120
6de37a3a
TT
91212014-02-19 Tom Tromey <tromey@redhat.com>
9122
9123 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9124 argument.
9125 (target_supports_string_tracing): Add argument.
9126 * target.c (update_current_target): Update.
9127 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9128
2bfc0540
TT
91292014-02-19 Tom Tromey <tromey@redhat.com>
9130
9131 * target.h (struct target_ops)
9132 <to_supports_disable_randomization>: Add argument.
9133 * target.c (find_default_supports_disable_randomization): Add
9134 argument.
9135 (target_supports_disable_randomization): Add argument.
9136 (find_default_supports_disable_randomization): Add 'self'
9137 argument.
9138 * remote.c (extended_remote_supports_disable_randomization): Add
9139 'self' argument.
9140 (remote_supports_disable_randomization): Add 'self' argument.
9141 (extended_remote_create_inferior): Update.
9142 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9143 'self' argument.
9144
7d178d6a
TT
91452014-02-19 Tom Tromey <tromey@redhat.com>
9146
9147 * target.h (struct target_ops)
9148 <to_supports_enable_disable_tracepoint>: Add argument.
9149 (target_supports_enable_disable_tracepoint): Add argument.
9150 * target.c (update_current_target): Update.
9151 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9152 argument.
9153
86ce2668
TT
91542014-02-19 Tom Tromey <tromey@redhat.com>
9155
9156 * target.h (struct target_ops) <to_supports_multi_process>: Add
9157 argument.
9158 (target_supports_multi_process): Add argument.
9159 * target.c (update_current_target): Update.
9160 * remote.c (remote_supports_multi_process): Add 'self' argument.
9161 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9162 argument.
9163 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9164 argument.
9165
4c612759
TT
91662014-02-19 Tom Tromey <tromey@redhat.com>
9167
9168 * target.h (struct target_ops) <to_execution_direction>: Add
9169 argument.
9170 (target_execution_direction): Add argument.
9171 * target.c (default_execution_direction): Add 'self' argument.
9172 * record-full.c (record_full_execution_direction): Add 'self'
9173 argument.
9174
19db3e69
TT
91752014-02-19 Tom Tromey <tromey@redhat.com>
9176
9177 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9178 argument.
9179 (target_can_execute_reverse): Add argument.
9180 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9181 * record-full.c (record_full_can_execute_reverse): Add 'self'
9182 argument.
9183 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9184 argument.
9185
1e6b91a4
TT
91862014-02-19 Tom Tromey <tromey@redhat.com>
9187
9188 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9189 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9190 argument.
9191 (target_get_ada_task_ptid): Add argument.
9192 * target.c (update_current_target): Update.
9193 (default_get_ada_task_ptid): Add 'self' argument.
9194 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9195 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9196 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9197 argument.
9198 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9199 argument.
9200 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9201 argument.
9202 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9203 argument.
9204 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9205 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9206 argument.
9207
3c80fb48
TT
92082014-02-19 Tom Tromey <tromey@redhat.com>
9209
9210 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9211 (target_goto_bookmark): Add argument.
9212 * target.c (dummy_goto_bookmark): Add 'self' argument.
9213 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9214
dd0e2830
TT
92152014-02-19 Tom Tromey <tromey@redhat.com>
9216
9217 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9218 (target_get_bookmark): Add argument.
9219 * target.c (dummy_get_bookmark): Add 'self' argument.
9220 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9221
fc6691b2
TT
92222014-02-19 Tom Tromey <tromey@redhat.com>
9223
9224 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9225 argument.
9226 (target_make_corefile_notes): Add argument.
9227 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9228 * procfs.c (procfs_make_note_section): Add 'self' argument.
9229 (procfs_make_note_section): Add 'self' argument.
9230 (procfs_make_note_section): Add 'self' argument.
9231 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9232 argument.
9233 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9234 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9235 * exec.c (exec_make_note_section): Add 'self' argument.
9236 (exec_make_note_section): Add 'self' argument.
9237
2e73927c
TT
92382014-02-19 Tom Tromey <tromey@redhat.com>
9239
9240 * target.h (struct target_ops) <to_find_memory_regions>: Add
9241 argument.
9242 (target_find_memory_regions): Add argument.
9243 * target.c (dummy_find_memory_regions): Add 'self' argument.
9244 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9245 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9246 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9247 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9248 * exec. (exec_do_find_memory_regions): New global.
9249 (exec_set_find_memory_regions): Rewrite.
9250 (exec_find_memory_regions): New function.
9251 (init_exec_ops): Use exec_find_memory_regions.
9252
2a9a2795
TT
92532014-02-19 Tom Tromey <tromey@redhat.com>
9254
9255 * target.h (struct target_ops) <to_supports_non_stop>: Add
9256 argument.
9257 * target.c (find_default_supports_non_stop): Add argument.
9258 (target_supports_non_stop): Add argument.
9259 (find_default_supports_non_stop): Add 'self' argument.
9260 * remote.c (remote_supports_non_stop): Add 'self' argument.
9261 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9262
4ab76ea3
TT
92632014-02-19 Tom Tromey <tromey@redhat.com>
9264
9265 * target.h (struct target_ops) <to_log_command>: Add argument.
9266 (target_log_command): Add argument.
9267 * serial.h (serial_log_command): Add 'self' argument.
9268 * serial.c (serial_log_command): Add 'self' argument.
9269
8dd27370
TT
92702014-02-19 Tom Tromey <tromey@redhat.com>
9271
9272 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9273 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9274 argument.
9275 (target_pid_to_exec_file): Add argument.
9276 * target.c (debug_to_pid_to_exec_file): Add argument.
9277 (update_current_target): Update.
9278 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9279 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9280 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9281 (linux_handle_extended_wait): Update.
9282 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9283 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9284 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9285 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9286
1aac633b
TT
92872014-02-19 Tom Tromey <tromey@redhat.com>
9288
9289 * target.h (struct target_ops) <to_rcmd>: Add argument.
9290 (target_rcmd): Add argument.
9291 * target.c (debug_to_rcmd): Add argument.
9292 (update_current_target, do_monitor_command): Update.
9293 * remote.c (remote_rcmd): Add 'self' argument.
9294 * monitor.c (monitor_rcmd): Add 'self' argument.
9295
1eab8a48
TT
92962014-02-19 Tom Tromey <tromey@redhat.com>
9297
9298 * windows-nat.c (windows_stop): Add 'self' argument.
9299 * target.h (struct target_ops) <to_stop>: Add argument.
9300 * target.c (target_stop): Add argument.
9301 (debug_to_stop): Add argument.
9302 (update_current_target): Update.
9303 * remote.c (remote_stop): Add 'self' argument.
9304 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9305 (gdbsim_cntrl_c): Update.
9306 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9307 * procfs.c (procfs_stop): Add 'self' argument.
9308 * nto-procfs.c (procfs_stop): Add 'self' argument.
9309 * monitor.c (monitor_stop): Add 'self' argument.
9310 (monitor_open): Update.
9311 * linux-nat.c (linux_nat_stop): Add argument.
9312 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9313 * gnu-nat.c (gnu_stop): Add 'self' argument.
9314 * darwin-nat.c (darwin_stop): Add 'self' argument.
9315
503a628d
TT
93162014-02-19 Tom Tromey <tromey@redhat.com>
9317
9318 * target.h (struct target_ops) <to_thread_name>: Add argument.
9319 * target.c (target_thread_name): Add argument.
9320 (update_current_target): Update.
9321 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9322
c15906d8
TT
93232014-02-19 Tom Tromey <tromey@redhat.com>
9324
9325 * target.h (struct target_ops) <to_extra_thread_info>: Add
9326 argument.
9327 (target_extra_thread_info): Add argument.
9328 * target.c (update_current_target): Update.
9329 * remote.c (remote_threads_extra_info): Add 'self' argument.
9330 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9331 argument.
9332 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9333 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9334 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9335 argument.
9336 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9337 argument.
9338 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9339 argument.
9340 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9341 argument.
9342
daf5e9b6
TT
93432014-02-19 Tom Tromey <tromey@redhat.com>
9344
9345 * target.h (struct target_ops) <to_program_signals>: Add argument.
9346 * target.c (target_program_signals): Add argument.
9347 * remote.c (remote_program_signals): Add 'self' argument.
9348
94bedb42
TT
93492014-02-19 Tom Tromey <tromey@redhat.com>
9350
9351 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9352 * target.c (target_pass_signals): Add argument.
9353 * remote.c (remote_pass_signals): Add 'self' argument.
9354 (remote_start_remote): Update.
9355 * procfs.c (procfs_pass_signals): Add 'self' argument.
9356 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9357 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9358 (linux_nat_create_inferior, linux_nat_attach): Update.
9359
da82bd6b
TT
93602014-02-19 Tom Tromey <tromey@redhat.com>
9361
9362 * windows-nat.c (windows_can_run): Add 'self' argument.
9363 * target.h (struct target_ops) <to_can_run>: Add argument.
9364 (target_can_run): Add argument.
9365 * target.c (debug_to_can_run): Add argument.
9366 (update_current_target): Update.
9367 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9368 * inf-child.c (inf_child_can_run): Add 'self' argument.
9369 * go32-nat.c (go32_can_run): Add 'self' argument.
9370
d796e1d6
TT
93712014-02-19 Tom Tromey <tromey@redhat.com>
9372
9373 * target.h (struct target_ops) <to_has_exited>: Add argument.
9374 (target_has_exited): Add argument.
9375 * target.c (debug_to_has_exited): Add argument.
9376 (update_current_target): Update.
9377
ff214e67
TT
93782014-02-19 Tom Tromey <tromey@redhat.com>
9379
9380 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9381 argument.
9382 (target_set_syscall_catchpoint): Add argument.
9383 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9384 argument.
9385 * target.c (update_current_target): Update.
9386
758e29d2
TT
93872014-02-19 Tom Tromey <tromey@redhat.com>
9388
9389 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9390 argument.
9391 (target_remove_exec_catchpoint): Add argument.
9392 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9393 (update_current_target): Update.
9394 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9395 argument.
9396
ba025e51
TT
93972014-02-19 Tom Tromey <tromey@redhat.com>
9398
9399 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9400 argument.
9401 (target_insert_exec_catchpoint): Add argument.
9402 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9403 (update_current_target): Update.
9404 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9405 argument.
9406
e98cf0cd
TT
94072014-02-19 Tom Tromey <tromey@redhat.com>
9408
9409 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9410 argument.
9411 (target_remove_vfork_catchpoint): Add argument.
9412 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9413 (update_current_target): Update.
9414 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9415 argument.
9416
3ecc7da0
TT
94172014-02-19 Tom Tromey <tromey@redhat.com>
9418
9419 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9420 argument.
9421 (target_insert_vfork_catchpoint): Add argument.
9422 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9423 (update_current_target): Update.
9424 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9425 argument.
9426
973fc227
TT
94272014-02-19 Tom Tromey <tromey@redhat.com>
9428
9429 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9430 argument.
9431 (target_remove_fork_catchpoint): Add argument.
9432 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9433 (update_current_target): Update.
9434 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9435 argument.
9436
a863b201
TT
94372014-02-19 Tom Tromey <tromey@redhat.com>
9438
9439 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9440 argument.
9441 (target_insert_fork_catchpoint): Add argument.
9442 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9443 (update_current_target): Update.
9444 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9445 argument.
9446
2e97a79e
TT
94472014-02-19 Tom Tromey <tromey@redhat.com>
9448
9449 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9450 argument.
9451 (target_post_startup_inferior): Add argument.
9452 * target.c (debug_to_post_startup_inferior): Add argument.
9453 (update_current_target): Update.
9454 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9455 argument.
9456 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9457 argument.
9458 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9459 argument.
9460 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9461 argument.
9462 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9463 'self' argument.
9464 (super_post_startup_inferior): Likewise.
9465 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9466 'self' argument.
9467 (super_post_startup_inferior): Likewise.
9468 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9469 Add 'self' argument.
9470 (super_post_startup_inferior): Likewise.
9471
71a9f134
TT
94722014-02-19 Tom Tromey <tromey@redhat.com>
9473
9474 * target.h (struct target_ops) <to_load>: Add argument.
9475 * target.c (target_load): Add argument.
9476 (debug_to_load): Add argument.
9477 (update_current_target): Update.
9478 * remote.c (remote_load): Add 'self' argument.
9479 * remote-sim.c (gdbsim_load): Add 'self' argument.
9480 * remote-mips.c (mips_load): Add 'self' argument.
9481 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9482 * monitor.c (monitor_load): Add 'self' argument.
9483 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9484
0a4f40a2
TT
94852014-02-19 Tom Tromey <tromey@redhat.com>
9486
9487 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9488 (target_terminal_info): Add argument.
9489 * target.c (debug_to_terminal_info): Add argument.
9490 (default_terminal_info): Likewise.
9491 * inflow.c (child_terminal_info): Add 'self' argument.
9492 * inferior.h (child_terminal_info): Add 'self' argument.
9493 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9494
ae3bd431
TT
94952014-02-19 Tom Tromey <tromey@redhat.com>
9496
9497 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9498 argument.
9499 (target_terminal_save_ours): Add argument.
9500 * target.c (debug_to_terminal_save_ours): Add argument.
9501 (update_current_target): Update.
9502 * inflow.c (terminal_save_ours): Add 'self' argument.
9503 * inferior.h (terminal_save_ours): Add 'self' argument.
9504
e3594fd1
TT
95052014-02-19 Tom Tromey <tromey@redhat.com>
9506
9507 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9508 (target_terminal_ours): Add argument.
9509 * target.c (debug_to_terminal_ours): Add argument.
9510 (update_current_target): Update.
9511 * remote.c (remote_terminal_ours): Add 'self' argument.
9512 (remote_close): Update.
9513 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9514 * inflow.c (terminal_ours): Add 'self' argument.
9515 * inferior.h (terminal_ours): Add 'self' argument.
9516 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9517
2e1e1a19
TT
95182014-02-19 Pedro Alves <palves@redhat.com>
9519 Tom Tromey <tromey@redhat.com>
9520
9521 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9522 argument.
9523 (target_terminal_ours_for_output): Add argument.
9524 * target.c (debug_to_terminal_ours_for_output): Add argument.
9525 (update_current_target): Update.
9526 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9527 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9528 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9529
d2f640d4
TT
95302014-02-19 Tom Tromey <tromey@redhat.com>
9531
9532 * target.h (struct target_ops) <to_terminal_inferior>: Add
9533 argument.
9534 * target.c (target_terminal_inferior): Add argument.
9535 (update_current_target): Update.
9536 * remote.c (remote_terminal_inferior): Add 'self' argument.
9537 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9538 * inflow.c (terminal_inferior): Add 'self' argument.
9539 * inferior.h (terminal_inferior): Add 'self' argument.
9540 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9541 (go32_terminal_inferior): Add 'self' argument.
9542
c42bf286
TT
95432014-02-19 Tom Tromey <tromey@redhat.com>
9544
9545 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9546 (target_terminal_init): Add argument.
9547 * target.c (debug_to_terminal_init): Add argument.
9548 (update_current_target): Update.
9549 * inflow.c (terminal_init_inferior): Add 'self' argument.
9550 * inferior.h (terminal_init_inferior): Add 'self' argument.
9551 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9552 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9553
c3a5ff89
TT
95542014-02-19 Tom Tromey <tromey@redhat.com>
9555
9556 * target.h (struct target_ops)
9557 <to_can_accel_watchpoint_condition>: Add argument.
9558 (target_can_accel_watchpoint_condition): Add argument.
9559 * target.c (debug_to_can_accel_watchpoint_condition): Add
9560 argument.
9561 (update_current_target): Update.
9562 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9563 'self' argument.
9564
31568a15
TT
95652014-02-19 Tom Tromey <tromey@redhat.com>
9566
9567 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9568 Add argument.
9569 (target_region_ok_for_hw_watchpoint): Add argument.
9570 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9571 (default_region_ok_for_hw_watchpoint): Add argument.
9572 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9573 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9574 argument.
9575 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9576 argument.
9577 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9578 argument.
9579 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9580 'self' argument.
9581 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9582 'self' argument.
9583 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9584 'self' argument.
9585 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9586 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9587 'self' argument.
9588 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9589 Add 'self' argument.
9590
7bb99c53
TT
95912014-02-19 Tom Tromey <tromey@redhat.com>
9592
9593 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9594 argument.
9595 (target_insert_watchpoint): Add argument.
9596 * target.c (debug_to_insert_watchpoint): Add argument.
9597 (update_current_target): Update.
9598 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9599 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9600 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9601 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9602 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9603 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9604 argument.
9605 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9606 (procfs_insert_hw_watchpoint): Add 'self' argument.
9607 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9608 argument.
9609 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9610 argument.
9611 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9612 argument.
9613 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9614 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9615 argument.
9616 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9617 'self' argument.
9618
11b5219a
TT
96192014-02-19 Tom Tromey <tromey@redhat.com>
9620
9621 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9622 argument.
9623 (target_remove_watchpoint): Add argument.
9624 * target.c (debug_to_remove_watchpoint): Add argument.
9625 (update_current_target): Update.
9626 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9627 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9628 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9629 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9630 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9631 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9632 argument.
9633 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9634 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9635 argument.
9636 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9637 argument.
9638 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9639 argument.
9640 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9641 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9642 argument.
9643 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9644 'self' argument.
9645
a64dc96c
TT
96462014-02-19 Tom Tromey <tromey@redhat.com>
9647
9648 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9649 argument.
9650 (target_remove_hw_breakpoint): Add argument.
9651 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9652 (update_current_target): Update.
9653 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9654 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9655 argument.
9656 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9657 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9658 argument.
9659 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9660 'self' argument.
9661
23a26771
TT
96622014-02-19 Tom Tromey <tromey@redhat.com>
9663
9664 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9665 argument.
9666 (target_insert_hw_breakpoint): Add argument.
9667 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9668 (update_current_target): Update.
9669 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9670 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9671 argument.
9672 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9673 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9674 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9675 argument.
9676 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9677 'self' argument.
9678
5461485a
TT
96792014-02-19 Tom Tromey <tromey@redhat.com>
9680
9681 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9682 argument.
9683 (target_can_use_hardware_watchpoint): Add argument.
9684 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9685 (update_current_target): Update.
9686 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9687 argument.
9688 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9689 argument.
9690 * remote.c (remote_check_watch_resources): Add 'self' argument.
9691 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9692 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9693 argument.
9694 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9695 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9696 argument.
9697 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9698 argument.
9699 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9700 argument.
9701 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9702 argument.
9703 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9704 argument.
9705 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9706 argument.
9707 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9708 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9709 argument.
9710 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9711 'self' argument.
9712
f045800c
TT
97132014-02-19 Tom Tromey <tromey@redhat.com>
9714
9715 * target.h (struct target_ops) <to_post_attach>: Add argument.
9716 (target_post_attach): Add argument.
9717 * target.c (debug_to_post_attach): Add argument.
9718 (update_current_target): Update.
9719 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9720 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9721 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9722 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9723 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9724
de90e03d
TT
97252014-02-19 Tom Tromey <tromey@redhat.com>
9726
9727 * windows-nat.c (windows_close): Add 'self' argument.
9728 * tracepoint.c (tfile_close): Add 'self' argument.
9729 * target.h (struct target_ops) <to_close>: Add argument.
9730 * target.c (target_close): Add argument.
9731 (update_current_target): Update.
9732 * remote.c (remote_close): Add 'self' argument.
9733 * remote-sim.c (gdbsim_close): Add 'self' argument.
9734 * remote-mips.c (mips_close): Add 'self' argument.
9735 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9736 * record-full.c (record_full_close): Add 'self' argument.
9737 * record-btrace.c (record_btrace_close): Add 'self' argument.
9738 * monitor.h (monitor_close): Add 'self' argument.
9739 * monitor.c (monitor_close): Add 'self' argument.
9740 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9741 * linux-nat.c (linux_nat_close): Add argument.
9742 * go32-nat.c (go32_close): Add 'self' argument.
9743 * exec.c (exec_close_1): Add 'self' argument.
9744 * ctf.c (ctf_close): Add 'self' argument.
9745 * corelow.c (core_close): Add 'self' argument.
9746 (core_close_cleanup): Update.
9747 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9748 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9749
9dd130a0
TT
97502014-02-19 Tom Tromey <tromey@redhat.com>
9751
9752 * remote.c (remote_load): New function.
9753 (init_remote_ops): Use it.
9754
46917d26
TT
97552014-02-19 Tom Tromey <tromey@redhat.com>
9756
9757 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9758 argument.
9759 * common/linux-btrace.h (linux_supports_btrace): Update.
9760 * remote.c (remote_supports_btrace): Add "self" argument.
9761 * target-delegates.c: Rebuild.
9762 * target.c (target_supports_btrace): Remove.
9763 * target.h (struct target_ops) <to_supports_btrace>: Add
9764 target_ops argument.
9765 (target_supports_btrace): New define.
9766
6b84065d
TT
97672014-02-19 Tom Tromey <tromey@redhat.com>
9768
9769 * record-full.c (record_full_beneath_to_resume_ops)
9770 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9771 (record_full_beneath_to_wait)
9772 (record_full_beneath_to_store_registers_ops)
9773 (record_full_beneath_to_store_registers)
9774 (record_full_beneath_to_xfer_partial_ops)
9775 (record_full_beneath_to_xfer_partial)
9776 (record_full_beneath_to_insert_breakpoint_ops)
9777 (record_full_beneath_to_insert_breakpoint)
9778 (record_full_beneath_to_remove_breakpoint_ops)
9779 (record_full_beneath_to_remove_breakpoint)
9780 (record_full_beneath_to_stopped_by_watchpoint)
9781 (record_full_beneath_to_stopped_data_address)
9782 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9783 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9784 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9785 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9786 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9787 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9788 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9789 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9790 (record_full_resume, record_full_wait_1)
9791 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9792 (record_full_store_registers, record_full_xfer_partial)
9793 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9794 (record_full_async, record_full_core_xfer_partial): Use target
9795 delegation.
9796 * target-delegates.c: Rebuild.
9797 * target.c (current_xfer_partial): Remove.
9798 (update_current_target): Do not INHERIT or de_fault
9799 to_insert_breakpoint, to_remove_breakpoint,
9800 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9801 to_is_async_p, to_async. Do not set to_xfer_partial field.
9802 (default_xfer_partial): Simplify.
9803 (current_xfer_partial): Remove.
9804 (target_wait, target_resume): Simplify.
9805 (find_default_can_async_p, find_default_is_async_p): Update.
9806 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9807 to_xfer_partial, to_stopped_by_watchpoint,
9808 to_stopped_data_address.
9809 (target_store_registers): Simplify.
9810 (forward_target_remove_breakpoint)
9811 (forward_target_insert_breakpoint): Remove.
9812 (target_remove_breakpoint, target_insert_breakpoint)
9813 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9814 * target.h (struct target_ops) <to_resume, to_wait,
9815 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9816 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9817 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9818 markup.
9819 (forward_target_remove_breakpoint)
9820 (forward_target_insert_breakpoint): Remove.
9821 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9822 directly.
9823 (record_btrace_insert_breakpoint): Delegate directly.
9824
1101cb7b
TT
98252014-02-19 Tom Tromey <tromey@redhat.com>
9826
9827 PR build/7701:
9828 * target-delegates.c: New file.
9829 * target.c: Include target-delegates.c.
9830 (init_dummy_target): Call install_dummy_methods.
9831 (complete_target_initialization): Call install_delegators.
9832 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9833 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9834 * make-target-delegates: New file.
9835
8b06beed
TT
98362014-02-19 Tom Tromey <tromey@redhat.com>
9837
9838 * record.c (find_record_target): Use find_target_at.
9839 * target.c (find_target_at): New function.
9840 * target.h (find_target_at): Declare.
9841
6a109b6b
TT
98422014-02-19 Tom Tromey <tromey@redhat.com>
9843
9844 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9845 Add 'ops' argument.
9846 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9847 'ops' argument.
9848 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9849 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9850 'ops' argument.
9851 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9852 argument.
9853 * linux-nat.c (save_sigtrap): Update.
9854 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9855 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9856 (linux_nat_close): Update.
9857 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9858 argument.
9859 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9860 argument.
9861 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9862 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9863 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9864 (tmp_to_async): Add 'ops' argument.
9865 (record_full_stopped_by_watchpoint, record_full_async)
9866 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9867 argument.
9868 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9869 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9870 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9871 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9872 (remote_is_async_p, remote_async): Add 'ops' argument.
9873 (remote_stopped_data_address): Update.
9874 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9875 * target.c (update_current_target)
9876 (find_default_can_async_p, find_default_is_async_p): Update.
9877 (init_dummy_target): Update.
9878 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9879 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9880 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9881 (target_can_async_p, target_is_async_p, target_async)
9882 (target_stopped_by_watchpoint): Update.
9883
e095146b
YQ
98842014-02-19 Yao Qi <yao@codesourcery.com>
9885
9886 PR gdb/16220
9887 * gdbarch.sh: Remove startup_gdbarch.
9888 * gdbarch.c: Regenerated.
9889 * gdbarch.h: Likewise.
9890
bc3c6b36
KB
98912014-02-17 Kevin Buettner <kevinb@redhat.com>
9892
9893 * rl78-tdep.c (rl78_g10_register_name): New function.
9894 (rl78_return_value): Add g10 support.
9895 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9896 g10.
9897
98dc0167 98982014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9899
9900 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9901 (SUBDIR_GUILE_SRCS): Ditto.
9902 (scm-gsmob.o): Ditto.
9903
842c05cd
YQ
99042014-02-17 Yao Qi <yao@codesourcery.com>
9905
9906 * gnu-nat.c (ILL_RPC): Declare defined function.
9907
25c0bd04
YQ
99082014-02-17 Yao Qi <yao@codesourcery.com>
9909
9910 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9911 mach_msg_type_number_t.
9912 (gnu_write_inferior): Likewise.
9913
a9a758e3
YQ
99142014-02-17 Yao Qi <yao@codesourcery.com>
9915
9916 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9917 in format string.
9918 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9919 (inf_validate_procs, inf_signal): Likewise.
9920 (S_exception_raise_request): Likewise.
9921 (do_mach_notify_dead_name): Likewise.
9922 (steal_exc_port): Likewise.
9923 (gnu_read_inferior): Change 'copy_count''s type to
9924 mach_msg_type_number_t.
9925 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9926 format string.
9927
bae8023e
TS
99282014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9929
c82f56d9
TS
9930 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9931 flag. Adjust all users; in particular...
9932 (gnu_wait): ..., don't decrement its value in here...
9933 (gnu_create_inferior): ..., and instead set the flag in here,
9934 around the startup_inferior call, and call that one with
9935 START_INFERIOR_TRAPS_EXPECTED.
9936
3398af6a
TS
9937 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9938 (ILL_RPC): ... new macro.
9939 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9940 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9941 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9942 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9943 functions with ILL_RPC macro.
9944 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9945 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9946 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9947 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9948 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9949 (S_proc_getlogin_reply, S_proc_getsid_reply)
9950 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9951 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9952 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9953 (S_proc_getnports_reply, S_proc_is_important_reply)
9954 (S_proc_get_code_reply): New stub functions, generated with
9955 ILL_RPC macro.
9956
d47642c9
TS
9957 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9958 collected the type check structures.
9959
bae8023e
TS
9960 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9961
8a55ffb0
DE
99622014-02-14 Doug Evans <dje@google.com>
9963
9964 * target.c (target_write_partial): Fix result type.
9965
c2853f3d
JM
99662014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9967
9968 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9969 the proper offsets to access fpregset_t.
9970
ac61d2db
SA
99712014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9972
9973 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9974 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9975 * h8300-tdep.c (setmachinelist): Remove global.
9976 * hppa-tdep.c (hppa_sigtramp): Remove global.
9977 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9978 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9979 * ravenscar-thread.c (update_target_observer): Remove global.
9980 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9981
9d2d0b8b
TT
99822014-02-12 Tom Tromey <tromey@redhat.com>
9983
9984 * common/rsp-low.c: Update comments.
9985 * common/rsp-low.h: Update comments.
9986
a7191e8b
TT
99872014-02-12 Tom Tromey <tromey@redhat.com>
9988
9989 * common/rsp-low.c (convert_ascii_to_int): Remove.
9990 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9991
ff0e980e
TT
99922014-02-12 Tom Tromey <tromey@redhat.com>
9993
9994 * common/rsp-low.h (unhexify): Don't declare.
9995 * common/rsp-low.c (unhexify): Remove.
9996
e9371aff
TT
99972014-02-12 Tom Tromey <tromey@redhat.com>
9998
9999 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
10000 * common/rsp-low.c (convert_int_to_ascii): Remove.
10001
971dc0b8
TT
100022014-02-12 Tom Tromey <tromey@redhat.com>
10003
10004 * common/rsp-low.h (hexify): Don't declare.
10005 * common/rsp-low.c (hexify): Remove.
10006
0a822afb
TT
100072014-02-12 Tom Tromey <tromey@redhat.com>
10008
10009 * common/rsp-low.c (hexify): Never take strlen of argument.
10010
9f1b45b0
TT
100112014-02-12 Tom Tromey <tromey@redhat.com>
10012
10013 * common/rsp-low.c (bin2hex): Never take strlen of argument.
10014 * remote.c (extended_remote_run, remote_rcmd)
10015 (remote_download_trace_state_variable, remote_save_trace_data)
10016 (remote_set_trace_notes): Update.
10017 * tracepoint.c (encode_source_string, tfile_write_status)
10018 (tfile_write_uploaded_tsv): Update.
10019
9c3d6531
TT
100202014-02-12 Tom Tromey <tromey@redhat.com>
10021
10022 * tracepoint.c: Include rsp-low.h.
10023 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
10024 * remote.c: Include rsp-low.h.
10025 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
10026 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
10027 (remote_unescape_input): Move to common/rsp-low.c.
10028 * common/rsp-low.h: New file.
10029 * common/rsp-low.c: New file.
10030 * Makefile.in (SFILES): Add common/rsp-low.c.
10031 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
10032 (COMMON_OBS): Add rsp-low.o.
10033 (rsp-low.o): New target.
10034
01fd3ea5
TT
100352014-02-12 Tom Tromey <tromey@redhat.com>
10036
10037 * utils.h: Include print-utils.h.
10038 (host_address_to_string, plongest, pulongest, phex, phex_nz)
10039 (int_string, core_addr_to_string, core_addr_to_string_nz)
10040 (hex_string, hex_string_custom): Don't declare.
10041 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
10042 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
10043 (hex_string_custom, int_string, core_addr_to_string)
10044 (core_addr_to_string_nz, host_address_to_string): Move to
10045 common/print-utils.c.
10046 * common/print-utils.h: New file.
10047 * common/print-utils.c: New file
10048 * Makefile.in (SFILES): Add common/print-utils.c.
10049 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10050 (COMMON_OBS): Add print-utils.o.
10051 (print-utils.o): New target.
10052
9fb50108
TT
100532014-02-12 Tom Tromey <tromey@redhat.com>
10054
10055 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10056
0548b5db
MK
100572014-02-12 Mark Kettenis <kettenis@gnu.org>
10058
10059 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10060
493443a4
MK
100612014-02-12 Mark Kettenis <kettenis@gnu.org>
10062
10063 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10064 if a PT_IO ptrace request returns sucessfully but indicates that 0
10065 bytes were transferred.
10066
706d0883
PA
100672014-02-12 Pedro Alves <palves@redhat.com>
10068 Kevin Buettner <kevinb@redhat.com>
10069
10070 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10071 TYPE_INSTANCE_FLAG_CODE_SPACE.
10072
5caa2f0b
PA
100732014-02-12 Pedro Alves <palves@redhat.com>
10074
10075 * h8300-tdep.c (pseudo_from_raw_register)
10076 (raw_from_pseudo_register): New functions.
10077 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10078 them.
10079
76fd5f74
PA
100802014-02-12 Pedro Alves <palves@redhat.com>
10081
10082 * h8300-tdep.c (h8300_register_sim_regno): New function.
10083 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10084 gdbarch_register_sim_regno hook.
10085
8f008406
SA
100862014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10087
10088 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10089
195abc10
SA
100902014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10091
10092 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10093
93ffa5b9
MK
100942014-02-12 Mark Kettenis <kettenis@gnu.org>
10095
10096 * obsd-tdep.h (obsd_init_abi): New prototype.
10097 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10098 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10099 (obsd_init_abi): New functions.
10100 * i386obsd-tdep.c: Include "obsd-tdep.h".
10101 (i386obsd_init_abi): Call obsd_init_abi.
10102 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10103 (amd64obsd_init_abi): Call obsd_init_abi.
10104 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10105 obsd-tdep.c to gdb_target_obs.
10106
49caec94
JM
101072014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10108
10109 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10110 double float arguments to 16-byte in the argument slots.
10111
e1402065
DE
101122014-02-11 Doug Evans <xdje42@gmail.com>
10113
10114 * configure.ac: Don't crash if pkg-config is not found and guile
10115 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10116 in guile checks.
10117 * configure: Regenerate.
10118
edcc890f
YQ
101192014-02-11 Yao Qi <yao@codesourcery.com>
10120
10121 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10122 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10123 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10124 * gnu-nat.c (gnu_xfer_memory): Likewise.
10125 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10126 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10127 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10128 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10129
9b409511
YQ
101302014-02-11 Yao Qi <yao@codesourcery.com>
10131
10132 * target.h (enum target_xfer_error): Rename to ...
10133 (enum target_xfer_status): ... it. New. All users updated.
10134 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10135 New.
10136 (TARGET_XFER_STATUS_ERROR_P): New macro.
10137 (target_xfer_error_to_string): Remove declaration.
10138 (target_xfer_status_to_string): Declare.
10139 (target_xfer_partial_ftype): Adjust it.
10140 (struct target_ops) <to_xfer_partial>: Return
10141 target_xfer_status. Add argument xfered_len. Update
10142 comments.
10143 * target.c (target_xfer_error_to_string): Rename to ...
10144 (target_xfer_status_to_string): ... it. New. All callers
10145 updated.
10146 (target_read_live_memory): Likewise. Call target_xfer_partial
10147 instead of target_read.
10148 (memory_xfer_live_readonly_partial): Return
10149 target_xfer_status. Add argument xfered_len.
10150 (raw_memory_xfer_partial): Likewise.
10151 (memory_xfer_partial_1): Likewise.
10152 (memory_xfer_partial): Likewise.
10153 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10154 properly. Update debug message.
10155 (default_xfer_partial, current_xfer_partial): Likewise.
10156 (target_write_partial): Likewise.
10157 (target_read_partial): Likewise. All callers updated.
10158 (read_whatever_is_readable): Likewise.
10159 (target_write_with_progress): Likewise.
10160 (target_read_alloc_1): Likewise.
10161
10162 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10163 * auxv.c (procfs_xfer_auxv): Likewise.
10164 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10165 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10166 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10167 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10168 * corefile.c (read_memory): Adjust.
10169 * corelow.c (core_xfer_partial): Likewise.
10170 * ctf.c (ctf_xfer_partial): Likewise.
10171 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10172 updated.
10173 (darwin_xfer_partial): Likewise.
10174 * exec.c (section_table_xfer_memory_partial): Likewise. All
10175 callers updated.
10176 (exec_xfer_partial): Likewise.
10177 * exec.h (section_table_xfer_memory_partial): Update
10178 declaration.
10179 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10180 negative.
10181 (gnu_xfer_partial): Likewise.
10182 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10183 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10184 (ia64_hpux_xfer_solib_got): Likewise.
10185 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10186 type of 'partial_len' to ULONGEST.
10187 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10188 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10189 (linux_nat_xfer_partial): Likewise.
10190 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10191 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10192 * monitor.c (monitor_xfer_memory): Likewise.
10193 (monitor_xfer_partial): Likewise.
10194 * procfs.c (procfs_xfer_partial): Likewise.
10195 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10196 * record-full.c (record_full_xfer_partial): Likewise.
10197 (record_full_core_xfer_partial): Likewise.
10198 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10199 (gdbsim_xfer_partial): Likewise.
10200 * remote.c (remote_write_bytes_aux): Likewise. All callers
10201 updated.
10202 (remote_write_bytes, remote_read_bytes): Likewise. All
10203 callers updated.
10204 (remote_flash_erase): Likewise. All callers updated.
10205 (remote_write_qxfer): Likewise. All callers updated.
10206 (remote_read_qxfer): Likewise. All callers updated.
10207 (remote_xfer_partial): Likewise.
10208 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10209 (rs6000_xfer_shared_libraries): Likewise.
10210 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10211 (sol_thread_xfer_partial): Likewise.
10212 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10213 (sparc_xfer_partial): Likewise.
10214 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10215 updated.
10216 (spu_xfer_partial): Likewise.
10217 * spu-multiarch.c (spu_xfer_partial): Likewise.
10218 * tracepoint.c (tfile_xfer_partial): Likewise.
10219 * windows-nat.c (windows_xfer_memory): Likewise.
10220 (windows_xfer_shared_libraries): Likewise.
10221 (windows_xfer_partial): Likewise.
10222 * valprint.c: Replace 'target_xfer_error' with
10223 'target_xfer_status' in comments.
10224
a8e63083
JB
102252014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10226
10227 Checked in by Joel Brobecker <brobecker@adacore.com>.
10228 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10229
e86b67d3
JB
102302014-02-11 Joel Brobecker <brobecker@adacore.com>
10231
10232 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10233 function parameters.
10234
4b7d1f7f
WN
102352014-02-10 Will Newton <will.newton@linaro.org>
10236
10237 * elfread.c (elf_rel_plt_read): Look for a .got section if
10238 looking up .got.plt fails.
10239 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10240 on address passed to elf_gnu_ifunc_record_cache.
10241 (elf_gnu_ifunc_resolve_addr): Likewise.
10242 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10243
961842b2
JM
102442014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10245
10246 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10247 (X_RETTURN): New macro.
10248 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10249
10250 * sparc64-tdep.c (sparc64_init_abi): Hook
10251 sparc_in_function_epilogue_p.
10252
3f03e7b1
GB
102532014-02-10 Gary Benson <gbenson@redhat.com>
10254
10255 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10256 Rename name_matcher to symbol_matcher.
10257
96f861ef
GB
102582014-02-10 Gary Benson <gbenson@redhat.com>
10259
10260 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10261 Use expand_symtabs_file_matcher_ftype and
10262 expand_symtabs_symbol_matcher_ftype.
10263
ee01b665
JB
102642014-02-10 Joel Brobecker <brobecker@adacore.com>
10265
10266 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10267 (struct ada_symbol_cache): New.
10268 (ada_free_symbol_cache): Forward declare.
10269 (struct ada_pspace_data): New.
10270 (ada_pspace_data_handle): New static global.
10271 (get_ada_pspace_data, ada_pspace_data_cleanup)
10272 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10273 (cache_space, cache): Delete, now folded inside struct
10274 ada_pspace_data.
10275 (ada_get_symbol_cache): New function.
10276 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10277 implementation.
10278 (_initialize_ada_language): Remove initialization of cache_space.
10279 Move call to observer_attach_inferior_exit up, grouping it
10280 with the other observer registrations inside this function.
10281 Rename command to be more general. Add call to
10282 register_program_space_data_with_cleanup.
10283
143adbbf
JB
102842014-02-10 Joel Brobecker <brobecker@adacore.com>
10285
10286 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10287 ada_new_objfile_observer.
10288 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10289 (_initialize_tasks): Update uses of ada_new_objfile_observer
10290 and ada_tasks_normal_stop_observer.
10291
aa4fb036
JB
102922014-02-10 Joel Brobecker <brobecker@adacore.com>
10293
10294 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10295 returned by the 'Length attribute to integer.
10296
9dee8cc6
JB
102972014-02-10 Joel Brobecker <brobecker@adacore.com>
10298
10299 * ada-lang.c (_initialize_ada_language): Initialize
10300 cache_space obstack.
10301
3d9434b5
JB
103022014-02-10 Joel Brobecker <brobecker@adacore.com>
10303
10304 * ada-lang.c (HASH_SIZE): New macro.
10305 (struct cache_entry): New type.
10306 (cache_space, cache): New static globals.
10307 (ada_clear_symbol_cache, find_entry): New functions.
10308 (lookup_cached_symbol, cache_symbol): Implement.
10309 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10310 (_initialize_ada_language): Attach ada_new_objfile_observer
10311 and ada_free_objfile_observer.
10312
f0c5f9b2
JB
103132014-02-10 Joel Brobecker <brobecker@adacore.com>
10314
10315 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10316 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10317 struct block * parameter.
10318 (ada_lookup_symbol_list_worker): Constify local variable "block".
10319 Remove cast which is no longer necessary.
10320
ed3ef339
DE
103212014-02-10 Doug Evans <xdje42@gmail.com>
10322
10323 Add Guile as an extension language.
10324 * NEWS: Mention Guile scripting.
10325 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10326 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10327 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10328 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10329 (CLIBS): Add GUILE_LIBS.
10330 (install-guile): New rule.
10331 (guile.o): New rule.
10332 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10333 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10334 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10335 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10336 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10337 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10338 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10339 * configure.ac: New option --with-guile.
10340 * configure: Regenerate.
10341 * config.in: Regenerate.
10342 * auto-load.c: Remove #include "python/python.h". Add #include
10343 "gdb/section-scripts.h".
10344 (source_section_scripts): Handle Guile scripts.
10345 (_initialize_auto_load): Add name of Guile objfile script to
10346 scripts-directory help text.
10347 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10348 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10349 (struct breakpoint): New member scm_bp_object.
10350 * defs.h (enum command_control_type): New value guile_control.
10351 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10352 "extension.h".
10353 (show_user): Update comment.
10354 (_initialize_cli_cmds): Update help text for "show user". Update help
10355 text for max-user-call-depth.
10356 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10357 "extension.h".
10358 (multi_line_command_p): Add guile_control.
10359 (print_command_lines): Handle guile_control.
10360 (execute_control_command, recurse_read_control_structure): Ditto.
10361 (process_next_line): Recognize "guile" commands.
10362 * disasm.c (gdb_disassemble_info): Make non-static.
10363 * disasm.h: #include "dis-asm.h".
10364 (struct gdbarch): Add forward decl.
10365 (gdb_disassemble_info): Declare.
10366 * extension.c: #include "guile/guile.h".
10367 (extension_languages): Add guile.
10368 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10369 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10370 * gdbtypes.c (get_unsigned_type_max): New function.
10371 (get_signed_type_minmax): New function.
10372 * gdbtypes.h (get_unsigned_type_max): Declare.
10373 (get_signed_type_minmax): Declare.
10374 * guile/README: New file.
10375 * guile/guile-internal.h: New file.
10376 * guile/guile.c: New file.
10377 * guile/guile.h: New file.
10378 * guile/scm-arch.c: New file.
10379 * guile/scm-auto-load.c: New file.
10380 * guile/scm-block.c: New file.
10381 * guile/scm-breakpoint.c: New file.
10382 * guile/scm-disasm.c: New file.
10383 * guile/scm-exception.c: New file.
10384 * guile/scm-frame.c: New file.
10385 * guile/scm-gsmob.c: New file.
10386 * guile/scm-iterator.c: New file.
10387 * guile/scm-lazy-string.c: New file.
10388 * guile/scm-math.c: New file.
10389 * guile/scm-objfile.c: New file.
10390 * guile/scm-ports.c: New file.
10391 * guile/scm-pretty-print.c: New file.
10392 * guile/scm-safe-call.c: New file.
10393 * guile/scm-string.c: New file.
10394 * guile/scm-symbol.c: New file.
10395 * guile/scm-symtab.c: New file.
10396 * guile/scm-type.c: New file.
10397 * guile/scm-utils.c: New file.
10398 * guile/scm-value.c: New file.
10399 * guile/lib/gdb.scm: New file.
10400 * guile/lib/gdb/boot.scm: New file.
10401 * guile/lib/gdb/experimental.scm: New file.
10402 * guile/lib/gdb/init.scm: New file.
10403 * guile/lib/gdb/iterator.scm: New file.
10404 * guile/lib/gdb/printing.scm: New file.
10405 * guile/lib/gdb/types.scm: New file.
10406 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10407 (VPATH): Add $(GUILE_SRCDIR).
10408 (GUILE_DIR): New variable.
10409 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10410 (all): Add stamp-guile dependency.
10411 (stamp-guile): New rule.
10412 (clean-guile, install-guile, uninstall-guile): New rules.
10413 (install-only): Add install-guile dependency.
10414 (uninstall): Add uninstall-guile dependency.
10415 (clean): Add clean-guile dependency.
10416
ac020ec5
DE
104172014-02-09 Doug Evans <xdje42@gmail.com>
10418
10419 Revert this patch (which I approved, mea culpa).
10420
10421 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10422
10423 * Makefile.in (all-lib): Remove.
10424 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10425
2a081c59
JK
104262014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10427
10428 Fix Python stack corruption.
10429 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10430 gdb_py_longest.
10431
0a6bd22d
MK
104322014-02-08 Mark Kettenis <kettenis@gnu.org>
10433
10434 * Makefile.in (all-lib): Remove.
10435 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10436
1a860409
DE
104372014-02-07 Doug Evans <dje@google.com>
10438
10439 * extension-priv.h (extension_language_script_ops): Add comment.
10440 (extension_language_ops): Add comment.
caf5a491 10441 (active_ext_lang_state): Fix typo in comment.
1a860409 10442
d137e6dc
PA
104432014-02-07 Pedro Alves <palves@redhat.com>
10444
0dcb32c3 10445 PR breakpoints/16292
d137e6dc
PA
10446 * infrun.c (handle_signal_stop) <signal arrives while stepping
10447 over a breakpoint>: Switch back to the stepping thread.
10448
ce6d0892
YQ
104492014-02-07 Yao Qi <yao@codesourcery.com>
10450
10451 * target.c (target_xfer_partial): Return zero if LEN is zero.
10452
2ed4b548
YQ
104532014-02-07 Yao Qi <yao@codesourcery.com>
10454
10455 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10456 (ld_so_xfer_auxv): Likewise.
10457 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10458 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10459 * corelow.c (core_xfer_partial): Likewise.
10460 * ctf.c (ctf_xfer_partial): Likewise.
10461 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10462 (darwin_xfer_partial): Likewise.
10463 * exec.c (exec_xfer_partial): Likewise.
10464 * gnu-nat.c (gnu_xfer_partial): Likewise.
10465 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10466 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10467 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10468 * linux-nat.c (linux_xfer_siginfo): Likewise.
10469 (linux_proc_xfer_spu): Likewise.
10470 * procfs.c (procfs_xfer_partial): Likewise.
10471 * record-full.c (record_full_xfer_partial): Likewise.
10472 (record_full_core_xfer_partial): Likewise.
10473 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10474 * remote.c (remote_write_qxfer): Likewise.
10475 (remote_write_qxfer, remote_read_qxfer): Likewise.
10476 (remote_xfer_partial): Likewise.
10477 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10478 (rs6000_xfer_shared_libraries): Likewise.
10479 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10480 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10481 (spu_xfer_partial): Likewise.
10482 * target.c (memory_xfer_partial_1): Likewise.
10483 * tracepoint.c (tfile_xfer_partial): Likewise.
10484 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10485 (windows_xfer_partial): Likewise.
10486
c09f20e4
YQ
104872014-02-07 Yao Qi <yao@codesourcery.com>
10488
10489 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10490 comments.
10491 (core_xfer_shared_libraries_aix): Likewise.
10492 * gdbarch.c, gdbarch.h: Regenerated.
10493 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10494 ULONGEST. Change 'len_avail' type to ULONGEST.
10495 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10496 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10497 declaration.
10498 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10499
8635b3bf
YQ
105002014-02-07 Yao Qi <yao@codesourcery.com>
10501
10502 * corefile.c (memory_error): Get 'exception' from ERR and pass
10503 'exception' to throw_error.
10504
6dddc817
DE
105052014-02-06 Doug Evans <xdje42@gmail.com>
10506
10507 * configure.ac (libpython checking): Remove all but python.o from
10508 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10509 * configure: Regenerate.
10510
10511 * Makefile.in (SFILES): Add extension.c.
10512 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10513 (COMMON_OBS): Add extension.o.
10514 * extension.h: New file.
10515 * extension-priv.h: New file.
10516 * extension.c: New file.
10517
10518 * python/python-internal.h: #include "extension.h".
10519 (gdbpy_auto_load_enabled): Declare.
10520 (gdbpy_apply_val_pretty_printer): Declare.
10521 (gdbpy_apply_frame_filter): Declare.
10522 (gdbpy_preserve_values): Declare.
10523 (gdbpy_breakpoint_cond_says_stop): Declare.
10524 (gdbpy_breakpoint_has_cond): Declare.
10525 (void source_python_script_for_objfile): Delete.
10526 * python/python.c: #include "extension-priv.h".
10527 Delete inclusion of "observer.h".
10528 (extension_language_python): Moved here and renamed from
10529 script_language_python in py-auto-load.c.
10530 Redefined to be of type extension_language_defn.
10531 (python_extension_script_ops): New global.
10532 (python_extension_ops): New global.
10533 (struct python_env): New member previous_active.
10534 (restore_python_env): Call restore_active_ext_lang.
10535 (ensure_python_env): Call set_active_ext_lang.
10536 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10537 New arg extlang.
10538 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10539 New arg extlang.
10540 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10541 New arg extlang.
10542 (gdbpy_eval_from_control_command): Renamed from
10543 eval_python_from_control_command, made static. New arg extlang.
10544 (gdbpy_source_script) Renamed from source_python_script, made static.
10545 New arg extlang.
10546 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10547 result to int. New arg extlang.
10548 (gdbpy_source_objfile_script): Renamed from
10549 source_python_script_for_objfile, made static. New arg extlang.
10550 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10551 static. New args extlang, extlang_printers. Change result type to
10552 "void".
10553 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10554 static. New arg extlang. Rename arg printers to extlang_printers
10555 and change type to ext_lang_type_printers *.
10556 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10557 static. Replace argument arg with extlang, extlang_printers.
10558 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10559 (!HAVE_PYTHON, source_python_script): Delete.
10560 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10561 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10562 (!HAVE_PYTHON, start_type_printers): Delete.
10563 (!HAVE_PYTHON, apply_type_printers): Delete.
10564 (!HAVE_PYTHON, free_type_printers): Delete.
10565 (_initialize_python): Delete call to observer_attach_before_prompt.
10566 (finalize_python): Set/restore active extension language.
10567 (gdbpy_finish_initialization) Renamed from
10568 finish_python_initialization, made static. New arg extlang.
10569 (gdbpy_initialized): New function.
10570 * python/python.h: #include "extension.h". Delete #include
10571 "value.h", "mi/mi-cmds.h".
10572 (extension_language_python): Declare.
10573 (GDBPY_AUTO_FILE_NAME): Delete.
10574 (enum py_bt_status): Moved to extension.h and renamed to
10575 ext_lang_bt_status.
10576 (enum frame_filter_flags): Moved to extension.h.
10577 (enum py_frame_args): Moved to extension.h and renamed to
10578 ext_lang_frame_args.
10579 (finish_python_initialization): Delete.
10580 (eval_python_from_control_command): Delete.
10581 (source_python_script): Delete.
10582 (apply_val_pretty_printer): Delete.
10583 (apply_frame_filter): Delete.
10584 (preserve_python_values): Delete.
10585 (gdbpy_script_language_defn): Delete.
10586 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10587 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10588
10589 * auto-load.c: #include "extension.h".
10590 (GDB_AUTO_FILE_NAME): Delete.
10591 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10592 (script_language_gdb): Delete, moved to extension.c and renamed to
10593 extension_language_gdb.
10594 (source_gdb_script_for_objfile): Delete.
10595 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10596 (loaded_script): Change type of language member to
10597 struct extension_language_defn *.
10598 (init_loaded_scripts_info): Initialize
10599 unsupported_script_warning_printed.
10600 (maybe_add_script): Make static. Change type of language arg to
10601 struct extension_language_defn *.
10602 (clear_section_scripts): Reset unsupported_script_warning_printed.
10603 (auto_load_objfile_script_1): Rewrite to use extension language API.
10604 (auto_load_objfile_script): Make public. Remove support-compiled-in
10605 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10606 (source_section_scripts): Rewrite to use extension language API.
10607 (load_auto_scripts_for_objfile): Rewrite to use
10608 auto_load_scripts_for_objfile.
10609 (collect_matching_scripts_data): Change type of language member to
10610 struct extension_language_defn *.
10611 (auto_load_info_scripts): Change type of language arg to
10612 struct extension_language_defn *.
10613 (unsupported_script_warning_print): New function.
10614 (script_not_found_warning_print): Make static.
10615 (_initialize_auto_load): Rewrite construction of scripts-directory
10616 help.
10617 * auto-load.h (struct objfile): Add forward decl.
10618 (struct script_language): Delete.
10619 (struct auto_load_pspace_info): Add forward decl.
10620 (struct extension_language_defn): Add forward decl.
10621 (maybe_add_script): Delete.
10622 (auto_load_objfile_script): Declare.
10623 (script_not_found_warning_print): Delete.
10624 (auto_load_info_scripts): Update prototype.
10625 (auto_load_gdb_scripts_enabled): Declare.
10626 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10627 auto_load_python_scripts_enabled and made public.
10628 (script_language_python): Delete, moved to python.c.
10629 (gdbpy_script_language_defn): Delete.
10630 (info_auto_load_python_scripts): Update to use
10631 extension_language_python.
10632
10633 * breakpoint.c (condition_command): Replace call to
10634 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10635 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10636 with call to breakpoint_ext_lang_cond_says_stop.
10637 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10638 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10639 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10640 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10641 New arg slang.
10642 (local_setattro): Print name of extension language with existing
10643 stop condition.
10644
10645 * valprint.c (val_print, value_print): Update to call
10646 apply_ext_lang_val_pretty_printer.
10647 * cp-valprint.c (cp_print_value): Update call to
10648 apply_ext_lang_val_pretty_printer.
10649 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10650 (gdbpy_apply_val_pretty_printer): Renamed from
10651 apply_val_pretty_printer. New arg extlang.
10652 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10653
10654 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10655 extension language API.
10656 * cli/cli-script.c (execute_control_command): Update to call
10657 eval_ext_lang_from_control_command.
10658
10659 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10660 enum ext_lang_bt_status values. Update call to
10661 apply_ext_lang_frame_filter.
10662 (mi_cmd_stack_list_locals): Ditto.
10663 (mi_cmd_stack_list_args): Ditto.
10664 (mi_cmd_stack_list_variables): Ditto.
10665 * mi/mi-main.c: Delete #include "python/python-internal.h".
10666 Add #include "extension.h".
10667 (mi_cmd_list_features): Replace reference to python internal variable
10668 gdb_python_initialized with call to ext_lang_initialized_p.
10669
10670 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10671 Update to use enum ext_lang_frame_args. Update to call
10672 apply_ext_lang_frame_filter.
10673 * python/py-framefilter.c (extract_sym): Update to use enum
10674 ext_lang_bt_status.
10675 (extract_value, py_print_type, py_print_value): Ditto.
10676 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10677 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10678 (py_print_frame): Ditto.
10679 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10680 New arg extlang. Update to use enum ext_lang_bt_status.
10681
10682 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10683 finish_python_initialization. Replace with call to
10684 finish_ext_lang_initialization.
10685
10686 * typeprint.c (do_free_global_table): Update to call
10687 free_ext_lang_type_printers.
10688 (create_global_typedef_table): Update to call
10689 start_ext_lang_type_printers.
10690 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10691 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10692 (type_print_options): Change type of global_printers from "void *"
10693 to "struct ext_lang_type_printers *".
10694
10695 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10696 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10697 (gdbpy_preserve_values): Renamed from preserve_python_values.
10698 New arg extlang.
10699 (!HAVE_PYTHON, preserve_python_values): Delete.
10700
10701 * utils.c (quit_flag): Delete, moved to extension.c.
10702 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10703 extension.c.
10704
10705 * eval.c: Delete #include "python/python.h".
10706 * main.c: Delete #include "python/python.h".
10707
10708 * defs.h: Update comment.
10709
6af79985
JB
107102014-02-06 Joel Brobecker <brobecker@adacore.com>
10711
10712 GDB 7.7 released.
10713
12c5175d
MK
107142014-02-05 Mark Kettenis <kettenis@gnu.org>
10715
10716 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10717 defined.
10718
8dc5b319
YQ
107192014-02-05 Yao Qi <yao@codesourcery.com>
10720
10721 * remote.c (remote_pass_signals): Remove local 'buf' and use
10722 rs->buf.
10723 (remote_program_signals): Likewise.
10724
de7b2893
YQ
107252014-02-05 Yao Qi <yao@codesourcery.com>
10726
10727 * ctf.c: Include "inferior.h" and "gdbthread.h".
10728 (CTF_PID): A new macro.
10729 (ctf_open): Call inferior_appeared and add_thread_silent.
10730 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10731 (ctf_thread_alive): New function.
10732 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10733
66d032ac
YQ
107342014-02-05 Yao Qi <yao@codesourcery.com>
10735
10736 Revert this patch:
10737
10738 2013-05-24 Yao Qi <yao@codesourcery.com>
10739
10740 * tracepoint.c (TFILE_PID): Remove.
10741 (tfile_open): Don't add thread and inferior.
10742 (tfile_close): Don't set 'inferior_ptid'. Don't call
10743 exit_inferior_silent.
10744 (tfile_thread_alive): Remove.
10745 (init_tfile_ops): Don't set field 'to_thread_alive' of
10746 tfile_ops.
10747
f4ccffad
CE
107482014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10749
10750 * remote.c (remote_start_remote): Call remote_check_symbols even
10751 if only symbol-file (not file) has been given.
10752
591a12a1
UW
107532014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10754
10755 * gdbarch.sh (skip_entrypoint): New callback.
10756 * gdbarch.c, gdbarch.h: Regenerate.
10757 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10758 * infrun.c (fill_in_stop_func): Likewise.
10759 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10760 (ppc_elfv2_elf_make_msymbol_special): New function.
10761 (ppc_elfv2_skip_entrypoint): Likewise.
10762 (ppc_linux_init_abi): Install them for ELFv2.
10763
cc0e89c5
UW
107642014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10765
10766 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10767 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10768 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10769 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10770 structures returned in GPRs.
10771
52f548e4
UW
107722014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10773
10774 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10775 offset to the stack parameter list for the ELFv2 ABI.
10776
d4094b6a
UW
107772014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10778
10779 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10780 set_gdbarch_convert_from_func_ptr_addr and
10781 set_gdbarch_elf_make_msymbol_special for ELFv1.
10782 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10783 function descriptors on ELFv1.
10784 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10785 set up r12 at function entry.
10786
cd453cd0
UW
107872014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10788
10789 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10790 (struct gdbarch_tdep): New member elf_abi.
10791
10792 * rs6000-tdep.c: Include "elf/ppc64.h".
10793 (rs6000_gdbarch_init): Detect ELF ABI version.
10794
0ff3e01f
UW
107952014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10796
10797 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10798 within a register pair holding a DFP 128-bit value on little-endian.
10799 (ppc64_sysv_abi_return_value_base): Likewise.
10800 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10801 (dfp_pseudo_register_write): Likewise.
10802
5b757e5d
UW
108032014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10804
10805 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10806 offset on little-endian when passing _Decimal32.
10807 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10808
084ee545
UW
108092014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10810
10811 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10812 of the overlapped FP register within the VSX register on little-
10813 endian platforms.
10814 (efpr_pseudo_register_write): Likewise.
10815
d63167af
UW
108162014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10817
10818 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10819 offset on little-endian when passing small structures.
10820
e765b44c
UW
108212014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10822
10823 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10824 (struct ppc64_sysv_argpos): New data structure.
10825 (ppc64_sysv_abi_push_float): Remove.
10826 (ppc64_sysv_abi_push_val): New function.
10827 (ppc64_sysv_abi_push_integer): Likewise.
10828 (ppc64_sysv_abi_push_freg): Likewise.
10829 (ppc64_sysv_abi_push_vreg): Likewise.
10830 (ppc64_sysv_abi_push_param): Likewise.
10831 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10832 (ppc64_sysv_abi_return_value_base): New function.
10833 (ppc64_sysv_abi_return_value): Refactor to use it.
10834
36c24d95
UW
108352014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10836
10837 * NEWS: Document new target powerpc64le-*-linux*.
10838
26fd9228
MK
108392014-02-04 Mark Kettenis <kettenis@gnu.org>
10840
10841 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10842 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10843 core dumps.
10844 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10845 register set used in ELF core dumps. Add floating-point register set.
10846
c5bb7362
KB
108472014-02-03 Kevin Buettner <kevinb@redhat.com>
10848
74228e77 10849 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10850 dwarf2_to_gdb[] table using symbolic constants. Adjust
10851 penultimate entry from number representing the PC register
10852 to symbolic constant representing the MDR register. Add
10853 constant for the PC register to the end of the table.
10854
af09351e
MK
108552014-02-03 Mark Kettenis <kettenis@gnu.org>
10856
10857 * bsd-kvm.c: Include <sys/param.h>
10858
8507e05d
MK
108592014-02-03 Mark Kettenis <kettenis@gnu.org>
10860
10861 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10862
ae56bfb8
JB
108632014-01-31 Joel Brobecker <brobecker@adacore.com>
10864
10865 * ada-lang.h (clear_ada_sym_cache): Delete.
10866
718ee4dc
UW
108672014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10868
10869 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10870
401e27fd
JM
108712014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10872
10873 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10874 the sigreturn register save area only if the syscall is
10875 sigreturn.
10876
a7c88acd
JB
108772014-01-29 Joel Brobecker <brobecker@adacore.com>
10878
10879 * valops.c (value_slice): Minor reformatting.
10880
fa0079ea
UW
108812014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10882
10883 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10884
c6044dd1
JB
108852014-01-28 Joel Brobecker <brobecker@adacore.com>
10886
10887 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10888 New static globals.
10889 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10890 (ada_ignore_descriptive_types_p): New static global.
10891 (find_parallel_type_by_descriptive_type): Return immediately
10892 if ada_ignore_descriptive_types_p is set.
10893 (_initialize_ada_language): Register new commands "maintenance
10894 set ada", "maintenance show ada", "maintenance set ada
10895 ignore-descriptive-types" and "maintenance show ada
10896 ignore-descriptive-types".
10897 * NEWS: Add entry for new "maint ada set/show
10898 ignore-descriptive-types" commands.
10899
568e808b
MM
109002014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10901
10902 * record-btrace.c (record_btrace_close): Call btrace_teardown
10903 for all threads.
10904
467d141b
JB
109052014-01-27 Joel Brobecker <brobecker@adacore.com>
10906
10907 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10908 "ui-out.h".
10909
fb151210
JB
109102014-01-27 Joel Brobecker <brobecker@adacore.com>
10911
10912 * ada-typeprint (type_is_full_subrange_of_target_type):
10913 New function.
10914 (print_range): Add parameter bounds_prefered_p. If not set,
10915 try printing range types using the name of their base type.
10916 (print_range_type): Add parameter bounds_prefered_p.
10917 Use it in call to print_range.
10918 (print_array_type, ada_print_type): Update calls to print_range
10919 and print_range_type.
10920
aba02109
JB
109212014-01-27 Joel Brobecker <brobecker@adacore.com>
10922
10923 * ada-typeprint.c (print_array_type, print_choices, print_range)
10924 (print_range_bound, print_dynamic_range_bound, print_range_type):
10925 Remove declaration.
10926
e62e21fd
JB
109272014-01-27 Joel Brobecker <brobecker@adacore.com>
10928
10929 * ada-typeprint.c (print_range): Add missing empty line
10930 after local declaration.
10931
859cf5d1
JB
109322014-01-27 Joel Brobecker <brobecker@adacore.com>
10933
10934 * ada-valprint.c (print_optional_low_bound): Get index_type's
10935 target type for as long as it is a TYPE_CODE_RANGE.
10936
25790f6f
JB
109372014-01-27 Joel Brobecker <brobecker@adacore.com>
10938
10939 * procfs.c (procfs_make_note_section): Remove assertion and
10940 associated comment.
10941
6b6aa828
YQ
109422014-01-24 Yao Qi <yao@codesourcery.com>
10943
10944 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10945 * corelow.c (get_core_siginfo): Likewise.
10946
5d6df423
YQ
109472014-01-24 Yao Qi <yao@codesourcery.com>
10948
10949 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10950 ULONGEST. Don't check 'len' is negative.
10951 (remote_write_bytes): Change type of 'len' to ULONGEST.
10952
83b645b8
TT
109532014-01-23 Tom Tromey <tromey@redhat.com>
10954
10955 PR python/16485:
10956 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10957 Handle exception from frame.block.
10958 (FrameVars.fetch_frame_locals): Likewise.
10959
0740f8d8
TT
109602014-01-23 Tom Tromey <tromey@redhat.com>
10961
10962 PR python/16487:
10963 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10964 on a NULL pointer. Move "goto error" to correct place.
10965
21909fa1
TT
109662014-01-23 Tom Tromey <tromey@redhat.com>
10967
10968 PR python/16491:
10969 * python/py-framefilter.c (apply_frame_filter): Call
10970 ensure_python_env after computing gdbarch.
10971
17fde6d0
YQ
109722014-01-23 Yao Qi <yao@codesourcery.com>
10973
10974 * target.c (raw_memory_xfer_partial): Change argument type
10975 from void * to gdb_byte *.
10976 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10977
87ce2a04
DE
109782014-01-22 Doug Evans <dje@google.com>
10979
10980 New gdbserver option --debug-format=timestamp.
10981 * NEWS: Mention it.
10982
237b092b
AA
109832014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10984
10985 * syscalls/s390x-linux.xml: New file.
10986 * syscalls/s390-linux.xml: New file.
10987 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10988 (XML_SYSCALL_FILENAME_S390X): Likewise.
10989 (op_svc): New enum value for SVC opcode.
10990 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10991 (s390_linux_get_syscall_number): New function.
10992 (s390_gdbarch_init): Register '*get_syscall_number' and the
10993 syscall xml file name.
10994 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10995 "s390-linux.xml" and "s390x-linux.xml".
10996 * NEWS: Announce new feature.
10997
54bff650
BS
109982014-01-22 Baruch Siach <baruch@tkos.co.il>
10999
11000 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
11001
14e361d7
PA
110022014-01-22 Pedro Alves <palves@redhat.com>
11003
11004 * xtensa-config.c: Include defs.h.
11005
46bbb3ed
JB
110062014-01-22 Joel Brobecker <brobecker@adacore.com>
11007
11008 * common/common-utils.h: Add "ARI:" comment beside __func__
11009 reference.
11010
3a80edfc
JB
110112014-01-22 Joel Brobecker <brobecker@adacore.com>
11012
11013 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
11014 documentation a bit.
11015
4869db5e
RM
110162014-01-21 Roland McGrath <mcgrathr@google.com>
11017
11018 * configure.ac: Call AM_PROG_INSTALL_STRIP.
11019 * configure: Regenerate.
11020 * aclocal.m4: Regenerate.
11021 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
11022 New substituted variables.
11023 (install-strip): New target.
11024 (INSTALL_SCRIPT): New substituted variable.
11025 (FLAGS_TO_PASS): Add it.
11026 (install-only): Use $(INSTALL_SCRIPT) rather than
11027 $(INSTALL_PROGRAM) for gcore.
11028
9ea4267d
TT
110292014-01-20 Tom Tromey <tromey@redhat.com>
11030
11031 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
11032 together.
11033
1f2bdf09
TT
110342014-01-20 Tom Tromey <tromey@redhat.com>
11035
11036 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
11037 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
11038 (deprecated_cmd_warning, complete_on_cmdlist): Update.
11039 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
11040 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
11041 (struct cmd_list_element) <flags>: Remove.
11042 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
11043 doc_allocated>: New fields.
11044 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
11045 bitfields.
11046 * maint.c (maintenance_do_deprecate): Update.
11047 * top.c (execute_command): Update.
11048
e671835b
BS
110492014-01-20 Baruch Siach <baruch@tkos.co.il>
11050
11051 * xtensa-linux-nat.c: Include asm/ptrace.h.
11052
50367cd2
IB
110532014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11054
11055 * Makefile.in (SFILES): Add d-support.c.
11056 (COMMON_OBS): Add d-support.o.
11057 * d-lang.h (d_parse_symbol): Add comment, now defined in
11058 d-support.c.
11059 * d-lang.c (parse_call_convention)
11060 (parse_attributes, parse_function_types)
11061 (parse_function_args, parse_type, parse_identifier)
11062 (call_convention_p, d_parse_symbol): Move functions to ...
11063 * d-support.c: ... New file.
11064
ec9f644a
IB
110652014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11066
11067 * d-lang.h (d_parse_symbol): Add declaration.
11068 * d-lang.c (extract_identifiers)
11069 (extract_type_info): Remove functions.
11070 (parse_call_convention, parse_attributes)
11071 (parse_function_types, parse_function_args)
11072 (parse_type, parse_identifier, call_convention_p)
11073 (d_parse_symbol): New functions.
11074 (d_demangle): Use d_parse_symbol to demangle D symbols.
11075
94b1b47e
IB
110762014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11077
11078 * d-lang.h (struct builtin_d_type): New data type.
11079 (builtin_d_type): Add declaration.
11080 * d-lang.c (d_language_arch_info, build_d_types)
11081 (builtin_d_type): New functions.
11082 (enum d_primitive_types): New data type.
11083 (d_language_defn): Change c_language_arch_info to
11084 d_language_arch_info.
11085 (d_type_data): New static variable.
11086 (_initialize_d_language): Initialize d_type_data.
11087
63778547
IB
110882014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11089
11090 * d-lang.h (d_main_name): Add declaration.
11091 * d-lang.c (d_main_name): New function.
11092 * symtab.c (find_main_name): Add call to d_main_name.
11093
3271ba66
IB
110942014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11095
11096 * d-lang.c (d_language_defn): Change macro_expansion_c to
11097 macro_expansion_no.
11098
d36b3012
IB
110992014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11100
11101 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11102
c90a6fb7
SDJ
111032014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11104
11105 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11106 gdb_exception" declaration.
11107 * remote.c (getpkt_or_notif_sane): Likewise.
11108
749234e5
DE
111092014-01-17 Doug Evans <dje@google.com>
11110
11111 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11112 function, contents of dirnames_to_char_ptr_vec_append moved here.
11113 (delim_string_to_char_ptr_vec): New function.
11114 (dirnames_to_char_ptr_vec_append): Rewrite.
11115 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11116
df049a58
DE
111172014-01-17 Doug Evans <dje@google.com>
11118
11119 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11120 and moved here ...
11121 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11122 #include "common-utils.h".
11123 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11124 * common/vec.h (VEC_ASSERT_PASS): Update.
11125 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11126 (MACH_CHECK_ERROR): Update.
11127
69f97648
SM
111282014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11129
11130 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11131 comments.
11132 * gdbarch.h: Regenerate.
11133
98b1cfdc
TT
111342014-01-16 Tom Tromey <tromey@redhat.com>
11135
11136 * value.c (struct value) <regnum>: Move earlier.
11137
77a19445
TT
111382014-01-16 Tom Tromey <tromey@redhat.com>
11139
11140 * remote.c (extended_remote_create_inferior): Rename from
11141 extended_remote_create_inferior_1. Add "ops" argument. Remove
11142 old implementation.
11143
62261490
PA
111442014-01-16 Pedro Alves <palves@redhat.com>
11145
11146 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11147 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11148 the backchain.
11149
4d65956b
DE
111502014-01-16 Doug Evans <dje@google.com>
11151
11152 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11153
52834460
MM
111542014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11155
11156 * btrace.h (btrace_thread_flag): New.
11157 (struct btrace_thread_info) <flags>: New.
11158 * record-btrace.c (record_btrace_resume_thread)
11159 (record_btrace_find_thread_to_move, btrace_step_no_history)
11160 (btrace_step_stopped, record_btrace_start_replaying)
11161 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11162 (record_btrace_find_resume_thread): New.
11163 (record_btrace_resume, record_btrace_wait): Extend.
11164 (record_btrace_can_execute_reverse): New.
11165 (record_btrace_open): Fail in non-stop mode.
11166 (record_btrace_set_replay): Split into this, ...
11167 (record_btrace_stop_replaying): ... this, ...
11168 (record_btrace_clear_histories): ... and this.
11169 (init_record_btrace_ops): Init to_can_execute_reverse.
11170 * NEWS: Announce it.
11171
118e6252
MM
111722014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11173
11174 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11175 (forward_target_decr_pc_after_break)
11176 (target_decr_pc_after_break): New.
11177 * target.c (forward_target_decr_pc_after_break)
11178 (target_decr_pc_after_break): New.
11179 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11180 instead of gdbarch_decr_pc_after_break.
11181 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11182 instead of gdbarch_decr_pc_after_break.
11183 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11184 instead of gdbarch_decr_pc_after_break.
11185 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11186 instead of gdbarch_decr_pc_after_break.
11187 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11188 instead of gdbarch_decr_pc_after_break.
11189 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11190 instead of gdbarch_decr_pc_after_break.
11191
6e07b1d2
MM
111922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11193
11194 * btrace.c: Include regcache.h.
11195 (btrace_add_pc): New.
11196 (btrace_enable): Call btrace_add_pc.
11197 (btrace_is_empty): New.
11198 * btrace.h (btrace_is_empty): New.
11199 * record-btrace.c (require_btrace, record_btrace_info): Call
11200 btrace_is_empty.
11201
969c39fb
MM
112022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11203
11204 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11205 Support delta reads.
11206 (linux_disable_btrace): Change return type.
11207 * common/linux-btrace.h (linux_read_btrace): Change parameters
11208 and return type to allow error reporting. Update users.
11209 (linux_disable_btrace): Change return type. Update users.
11210 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11211 New.
11212 (btrace_error): New.
11213 (btrace_block) <begin>: Comment on BEGIN == 0.
11214 * btrace.c (btrace_compute_ftrace): Start from the end of
11215 the current trace.
11216 (btrace_stitch_trace, btrace_clear_history): New.
11217 (btrace_fetch): Read delta trace, return if replaying.
11218 (btrace_clear): Move clear history code to btrace_clear_history.
11219 (parse_xml_btrace): Throw an error if parsing failed.
11220 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11221 and return type to allow error reporting.
11222 (target_read_btrace): Change parameters and return type to allow
11223 error reporting.
11224 * target.c (target_read_btrace): Update.
11225 * remote.c (remote_read_btrace): Support delta reads. Pass
11226 errors on.
11227 * NEWS: Announce it.
11228
0b722aec
MM
112292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11230
11231 * record.h (record_btrace_frame_unwind)
11232 (record_btrace_tailcall_frame_unwind): New declarations.
11233 * dwarf2-frame: Include record.h
11234 (dwarf2_frame_cfa): Throw an error for btrace frames.
11235 * record-btrace.c: Include hashtab.h.
11236 (btrace_get_bfun_name): New.
11237 (btrace_call_history): Call btrace_get_bfun_name.
11238 (struct btrace_frame_cache): New.
11239 (bfcache): New.
11240 (bfcache_hash, bfcache_eq, bfcache_new): New.
11241 (btrace_get_frame_function): New.
11242 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11243 (record_btrace_frame_this_id): Compute own id.
11244 (record_btrace_frame_prev_register): Provide PC, throw_error
11245 for all other registers.
11246 (record_btrace_frame_sniffer): Detect btrace frames.
11247 (record_btrace_tailcall_frame_sniffer): New.
11248 (record_btrace_frame_dealloc_cache): New.
11249 (record_btrace_frame_unwind): Add new functions.
11250 (record_btrace_tailcall_frame_unwind): New.
11251 (_initialize_record_btrace): Allocate cache.
11252 * btrace.c (btrace_clear): Call reinit_frame_cache.
11253 * NEWS: Announce it.
11254
066ce621
MM
112552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11256
11257 * record-btrace.c (record_btrace_set_replay)
11258 (record_btrace_goto_begin, record_btrace_goto_end)
11259 (record_btrace_goto): New.
11260 (init_record_btrace_ops): Initialize them.
11261 * NEWS: Announce it.
11262
e2887aa3
MM
112632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11264
11265 * record-btrace.c (record_btrace_find_new_threads)
11266 (record_btrace_thread_alive): New.
11267 (init_record_btrace_ops): Initialize to_find_new_threads and
11268 to_thread_alive.
11269
b2f4cfde
MM
112702014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11271
11272 * record-btrace.c (record_btrace_resume): New.
11273 (record_btrace_wait): New.
11274 (init_record_btrace_ops): Initialize to_wait and to_resume.
11275
633785ff
MM
112762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11277
11278 * record-btrace.c (record_btrace_xfer_partial)
11279 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11280 (record_btrace_allow_memory_access): New.
11281 (init_record_btrace_ops): Initialize new methods.
11282 * target.c (raw_memory_xfer_partial): Bail out if target reports
11283 that this memory is not available.
11284
3db08215
MM
112852014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11286
11287 * target.h (target_ops) <to_insert_breakpoint>
11288 <to_remove_breakpoint>: Add target_ops parameter.
11289 (forward_target_insert_breakpoint): New.
11290 (forward_target_remove_breakpoint): New.
11291 (memory_remove_breakpoint, memory_insert_breakpoint):
11292 Add target_ops parameter.
11293 * target.c (target_insert_breakpoint): Split into this and ...
11294 (forward_target_insert_breakpoint): ... this.
11295 (target_remove_breakpoint): Split into this and ...
11296 (forward_target_remove_breakpoint): ... this.
11297 (debug_to_insert_breakpoint): Add target_ops parameter.
11298 Call forward_target_insert_breakpoint.
11299 (debug_to_remove_breakpoint): Add target_ops parameter.
11300 Call forward_target_remove_breakpoint.
11301 (update_current_target): Do not inherit or default to_insert_breakpoint
11302 and to_remove_breakpoint.
11303 * corelow.c (ignore): Add target_ops parameter.
11304 * exec.c (ignore): Add target_ops parameter.
11305 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11306 Add target_ops parameter.
11307 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11308 Add target_ops parameter.
11309 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11310 Add target_ops parameter.
11311 * record-full.c (record_full_beneath_to_insert_breakpoint)
11312 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11313 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11314 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11315 (record_full_core_remove_breakpoint): Add target_ops parameter.
11316 Update users.
11317 (record_full_beneath_to_insert_breakpoint_ops)
11318 (record_full_beneath_to_remove_breakpoint_ops)
11319 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11320 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11321 tmp_to_remove_breakpoint_ops,
11322 record_full_beneath_to_insert_breakpoint_ops, and
11323 record_full_beneath_to_remove_breakpoint_ops.
11324 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11325 (m32r_remove_breakpoint): Add target_ops parameter.
11326 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11327 Add target_ops parameter.
11328 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11329 Add target_ops parameter.
11330
cecac1ab
MM
113312014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11332 Markus Metzger <markus.t.metzger@intel.com>
11333
11334 * record-btrace.c: Include frame-unwind.h.
11335 (record_btrace_frame_unwind_stop_reason)
11336 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11337 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11338 New.
11339 (init_record_btrace_ops): Install it.
11340
824344ca
MM
113412014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11342
11343 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11344 get_prev_frame_1.
11345
32261e52
MM
113462014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11347
11348 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11349 earlier.
11350
ea001bdc
MM
113512014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11352
11353 * frame-unwind.c: Include target.h.
11354 (frame_unwind_try_unwinder): New function with code from ...
11355 (frame_unwind_find_by_frame): ... here. New variable
11356 unwinder_from_target, call also target_get_unwinder)
11357 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11358 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11359 * target.h (struct target_ops): New fields to_get_unwinder and
11360 to_get_tailcall_unwinder.
11361 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11362
1f3ef581
MM
113632014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11364
11365 * record-btrace.c (record_btrace_fetch_registers)
11366 (record_btrace_store_registers)
11367 (record_btrace_to_prepare_to_store): New.
11368 (init_record_btrace_ops): Add the above.
11369
f32dbf8c
MM
113702014-01-16 Tom Tromey <tromey@redhat.com>
11371
11372 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11373 * target.h (struct target_ops) <to_prepare_to_store>: Add
11374 argument.
11375 (target_prepare_to_store): Add argument.
11376 * target.c (debug_to_prepare_to_store): Add argument.
11377 (update_current_target): Update.
11378 * remote.c (remote_prepare_to_store): Add 'self' argument.
11379 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11380 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11381 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11382 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11383 argument.
11384 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11385 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11386 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11387 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11388 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11389
07bbe694
MM
113902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11391
11392 * btrace.h (replay) <replay>: New.
11393 (btrace_is_replaying): New.
11394 * btrace.c (btrace_clear): Free replay iterator.
11395 (btrace_is_replaying): New.
11396 * record-btrace.c (record_btrace_is_replaying): New.
11397 (record_btrace_info): Print insn number if replaying.
11398 (record_btrace_insn_history): Start at replay position.
11399 (record_btrace_call_history): Start at replay position.
11400 (init_record_btrace_ops): Init to_record_is_replaying.
11401
0688d04e
MM
114022014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11403
11404 * record-btrace.c (record_btrace_insn_history_range): Include
11405 end.
11406 (record_btrace_insn_history_from): Adjust range.
11407 (record_btrace_call_history_range): Include
11408 end.
11409 (record_btrace_call_history_from): Adjust range.
11410 * NEWS: Announce changes.
11411
8710b709
MM
114122014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11413
11414 * record.h (enum record_print_flag)
11415 <record_print_indent_calls>: New.
11416 * record.c (get_call_history_modifiers): Recognize /c modifier.
11417 (_initialize_record): Document /c modifier.
11418 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11419 Reorder fields. Optionally indent the function name. Update
11420 all users.
11421 * NEWS: Announce changes.
11422
d0fa7535
MM
114232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11424
11425 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11426
5de9129b
MM
114272014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11428
11429 * btrace.c (ftrace_new_function): Start counting at one.
11430 * record-btrace.c (record_btrace_info): Adjust number of calls
11431 and insns.
11432 * NEWS: Announce it.
11433
7acbe133
MM
114342014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11435
11436 * record-btrace.c (btrace_call_history_insn_range): Print
11437 insn range as [begin, end].
11438
23a7fe75
MM
114392014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11440
11441 * btrace.h (struct btrace_func_link): New.
11442 (enum btrace_function_flag): New.
11443 (struct btrace_inst): Rename to ...
11444 (struct btrace_insn): ...this. Update all users.
11445 (struct btrace_func) <ibegin, iend>: Remove.
11446 (struct btrace_func_link): New.
11447 (struct btrace_func): Rename to ...
11448 (struct btrace_function): ...this. Update all users.
11449 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11450 (number, level, flags>: New.
11451 (struct btrace_insn_iterator): Rename to ...
11452 (struct btrace_insn_history): ...this.
11453 Update all users.
11454 (struct btrace_insn_iterator, btrace_call_iterator): New.
11455 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11456 (struct btrace_target_info) <begin, end, level>
11457 <insn_history, call_history>: New.
11458 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11459 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11460 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11461 (btrace_call_number, btrace_call_begin, btrace_call_end)
11462 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11463 (btrace_find_function_by_number, btrace_set_insn_history)
11464 (btrace_set_call_history): New.
11465 * btrace.c (btrace_init_insn_iterator)
11466 (btrace_init_func_iterator, compute_itrace): Remove.
11467 (ftrace_print_function_name, ftrace_print_filename)
11468 (ftrace_skip_file): Change
11469 parameter to const.
11470 (ftrace_init_func): Remove.
11471 (ftrace_debug): Use new btrace_function fields.
11472 (ftrace_function_switched): Also consider gaining and
11473 losing symbol information).
11474 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11475 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11476 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11477 New.
11478 (ftrace_new_function): Move. Remove debug print.
11479 (ftrace_update_lines, ftrace_update_insns): New.
11480 (ftrace_update_function): Check for call, ret, and jump.
11481 (compute_ftrace): Renamed to ...
11482 (btrace_compute_ftrace): ...this. Rewritten to compute call
11483 stack.
11484 (btrace_fetch, btrace_clear): Updated.
11485 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11486 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11487 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11488 (btrace_call_number, btrace_call_begin, btrace_call_end)
11489 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11490 (btrace_find_function_by_number, btrace_set_insn_history)
11491 (btrace_set_call_history): New.
11492 * record-btrace.c (require_btrace): Use new btrace thread
11493 info fields.
11494 (record_btrace_info, btrace_insn_history)
11495 (record_btrace_insn_history, record_btrace_insn_history_range):
11496 Use new btrace thread info fields and new iterator.
11497 (btrace_func_history_src_line): Rename to ...
11498 (btrace_call_history_src_line): ...this. Use new btrace
11499 thread info fields.
11500 (btrace_func_history): Rename to ...
11501 (btrace_call_history): ...this. Use new btrace thread info
11502 fields and new iterator.
11503 (record_btrace_call_history, record_btrace_call_history_range):
11504 Use new btrace thread info fields and new iterator.
11505
8372a7cb
MM
115062014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11507
11508 * frame.h (frame_id_build_unavailable_stack_special): New.
11509 * frame.c (frame_id_build_unavailable_stack_special): New.
11510
c2170eef
MM
115112014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11512
11513 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11514 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11515 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11516 to gdbarch.
11517 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11518 (i386_insn_is_jump, i386_jmp_p): New.
11519 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11520 insn_is_jump to gdbarch.
11521 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11522 * gdbarch.h: Regenerated.
11523 * gdbarch.c: Regenerated.
11524 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11525 (default_insn_is_jump): New.
11526 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11527 (default_insn_is_jump): New.
11528
864089d2
MM
115292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11530
11531 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11532 Change to ...
11533 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11534 (btrace_read_type) <btrace_read_new>: Change to ...
11535 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11536
ed9edfb5
MM
115372014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11538
11539 * common/linux-btrace.c (linux_read_btrace): Free trace from
11540 previous iteration.
11541
fbcbc3fd
DE
115422014-01-15 Doug Evans <dje@google.com>
11543
11544 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11545 uint32_t.
11546
3d548a53
TT
115472014-01-15 Tom Tromey <tromey@redhat.com>
11548
11549 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11550 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11551 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11552 (set_objfile_main_name): New function.
11553 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11554 language_of_main>: New fields.
11555 (set_objfile_main_name): Declare.
11556 * symtab.c (find_main_name): Loop over objfiles to find the main
11557 name and language.
11558 (set_main_name): Now static.
11559 (get_main_info): Add comment.
11560 * symtab.h (set_main_name): Don't declare.
11561
32ac0d11
TT
115622014-01-15 Tom Tromey <tromey@redhat.com>
11563
11564 * symtab.c (main_progspace_key): New global.
11565 (struct main_info): New.
11566 (name_of_main, language_of_main): Remove.
11567 (get_main_info, main_info_cleanup): New function.
11568 (set_main_name, main_name, main_language): Use get_main_info.
11569 (_initialize_symtab): Initialize main_progspace_key.
11570
9e6c82ad
TT
115712014-01-15 Tom Tromey <tromey@redhat.com>
11572
11573 * dbxread.c (process_one_symbol): Update.
11574 * dwarf2read.c (read_partial_die): Update.
11575 * symfile.c (set_initial_language): Call main_language.
11576 * symtab.c (language_of_main): Now static.
11577 (set_main_name): Add 'lang' parameter.
11578 (find_main_name): Update.
11579 (main_language): New function.
11580 (symtab_observer_executable_changed): Update.
11581 * symtab.h (set_main_name): Update.
11582 (language_of_main): Remove.
11583 (main_language): Declare.
11584
6ef55de7
TT
115852014-01-15 Tom Tromey <tromey@redhat.com>
11586
11587 * symfile.c (init_entry_point_info): Use new "initialized" field.
11588 Update.
11589 * objfiles.h (struct entry_point) <initialized>: New field.
11590 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11591 (struct objfile) <ei>: ...here. Remove.
11592 * objfiles.c (entry_point_address_query): Update.
11593
53eddfa6
TT
115942014-01-15 Tom Tromey <tromey@redhat.com>
11595
11596 * objfiles.c (entry_point_address_query): Relocate entry point
11597 address.
11598 (objfile_relocate1): Do not relocate entry point address.
11599 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11600 <the_bfd_section_index>: New field.
11601 * symfile.c (init_entry_point_info): Find the entry point's
11602 section.
11603
d56e56aa
TT
116042014-01-15 Tom Tromey <tromey@redhat.com>
11605
11606 * solib-frv.c (enable_break): Use entry_point_address_query.
11607
33a97bbe
OJ
116082014-01-15 Omair Javaid <omair.javaid@linaro.org>
11609
11610 * NEWS: Add note on improved process record-replay on
11611 arm*-linux* targets.
11612
c6ec2b30
OJ
116132014-01-15 Omair Javaid <omair.javaid@linaro.org>
11614
11615 * arm-tdep.c (enum arm_record_result): New enum.
11616 (arm_record_unsupported_insn): New function.
11617 (arm_record_coproc_data_proc): Removed.
11618 (thumb2_record_ld_st_multiple): New function.
11619 (thumb2_record_ld_st_dual_ex_tbb): New function.
11620 (thumb2_record_data_proc_sreg_mimm): New function.
11621 (thumb2_record_ps_dest_generic): New function.
11622 (thumb2_record_branch_misc_cntrl): New function.
11623 (thumb2_record_str_single_data): New function.
11624 (thumb2_record_ld_mem_hints): New function.
11625 (thumb2_record_ld_word): New function.
11626 (thumb2_record_lmul_lmla_div): New function.
11627 (thumb2_record_decode_insn_handler): New function.
11628 (decode_insn): Add thumb32 instruction handlers.
11629
97dfe206
OJ
116302014-01-15 Omair Javaid <omair.javaid@linaro.org>
11631
11632 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11633 (struct arm_linux_record_tdep): Declare.
11634 (arm_canonicalize_syscall): New function.
11635 (arm_all_but_pc_registers_record): New function.
11636 (arm_linux_syscall_record): New function.
11637 (arm_linux_init_abi): Add syscall recording constructs.
11638 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11639 decoding. (arm_record_coproc_data_proc): Update arm syscall
11640 decoding.
11641 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11642 <arm_syscall_record>: New field.
11643 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11644 gdb_target_obs.
11645
9904a494
OJ
116462014-01-15 Omair Javaid <omair.javaid@linaro.org>
11647
11648 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11649 register for push instruction recording.
11650
f969241e
OJ
116512014-01-15 Omair Javaid <omair.javaid@linaro.org>
11652
11653 * arm-tdep.c (thumb_record_misc): Update to correct logical
11654 error while recording ldm, ldmia and pop instructions.
11655
bfbbec00
OJ
116562014-01-15 Omair Javaid <omair.javaid@linaro.org>
11657
11658 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11659
e40adcc9
PA
116602014-01-15 Pedro Alves <palves@redhat.com>
11661
11662 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11663 (go32_resume, go32_fetch_registers, store_register)
11664 (go32_store_registers, go32_prepare_to_store)
11665 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11666 (go32_create_inferior, go32_can_run, go32_terminal_init)
11667 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11668 declarations.
11669
b0a16e66
TT
116702014-01-15 Tom Tromey <tromey@redhat.com>
11671
11672 * target.h (async_callback_ftype): New typedef.
11673 (struct target_ops) <to_async>: Use it.
11674
bf7105a4
JB
116752014-01-15 Joel Brobecker <brobecker@adacore.com>
11676
11677 * python/py-value.c (get_field_type): Remove unnecessary curly
11678 braces for single-statement if block.
11679
a8f35c2e
JB
116802014-01-15 Joel Brobecker <brobecker@adacore.com>
11681
11682 * python/py-type.c (convert_field): Add missing empty line
11683 after declarations.
11684
bb4142cf
DE
116852014-01-14 Doug Evans <dje@google.com>
11686
11687 * symfile.h (expand_symtabs_matching): Renamed from
11688 expand_partial_symbol_names. Update prototype.
11689 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11690 * symfile.c (expand_symtabs_matching): Renamed from
11691 expand_partial_symbol_names. New args file_matcher, kind.
11692 Rename arg fun to symbol_matcher.
11693 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11694 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11695 ada_expand_partial_symbol_name.
11696 (ada_make_symbol_completion_list): Update to call
11697 expand_symtabs_matching.
11698 (ada_add_global_exceptions): Call expand_symtabs_matching.
11699 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11700 call map_symbol_filenames.
11701 * symtab.c (sources_info): Update to call map_symbol_filenames.
11702 (search_symbols): Call expand_symtabs_matching.
11703 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11704 (default_make_symbol_completion_list_break_on): Update to call
11705 expand_symtabs_matching.
11706 (make_source_files_completion_list): Update to call
11707 map_symbol_filenames.
11708
206f2a57
DE
117092014-01-14 Doug Evans <dje@google.com>
11710
11711 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11712 (expand_symtabs_symbol_matcher_ftype): New typedef.
11713 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11714 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11715 * symfile.c (expand_partial_symbol_names): Update to use
11716 expand_symtabs_symbol_matcher_ftype.
11717 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11718 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11719 Arg name_matcher renamed to symbol_matcher.
11720 * psymtab.c (recursively_search_psymtabs): Update to use
11721 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11722 sym_matcher.
11723 (expand_symtabs_matching_via_partial): Update to use
11724 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11725 Arg name_matcher renamed to symbol_matcher.
11726
540c2971
DE
117272014-01-14 Doug Evans <dje@google.com>
11728
11729 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11730 (map_partial_symbol_filenames): Ditto.
11731 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11732 (map_partial_symbol_filenames): Ditto.
11733 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11734 (map_partial_symbol_filenames): Ditto.
11735 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11736 (map_partial_symbol_filenames): Ditto.
11737 * symtab.c: Delete #include "psymtab.h".
11738
8213266a
PA
117392014-01-14 Pedro Alves <palves@redhat.com>
11740 Tom Tromey <tromey@redhat.com>
11741
11742 * infrun.c (use_displaced_stepping): Use find_record_target
11743 instead of RECORD_IS_USED.
11744 (adjust_pc_after_break): Use record_full_is_used instead of
11745 RECORD_IS_USED.
11746 * record-btrace.c (record_btrace_open): Call record_preopen
11747 instead of checking RECORD_IS_USED.
11748 * record-full.c (record_full_shortname)
11749 (record_full_core_shortname): New globals.
11750 (record_full_is_used): New function.
11751 (find_full_open): Call record_preopen instead of checking
11752 RECORD_IS_USED.
11753 (init_record_full_ops): Set the target's shortname to
11754 record_full_shortname.
11755 (init_record_full_core_ops): Set the target's shortname to
11756 record_full_core_shortname.
11757 * record-full.h (record_full_is_used): Declare.
11758 * record.c (find_record_target): Make extern.
11759 (record_preopen): New function.
11760 * record.h (RECORD_IS_USED): Delete macro.
11761 (find_record_target, record_preopen): Declare functions.
11762
7ec1862d
YQ
117632014-01-14 Yao Qi <yao@codesourcery.com>
11764
11765 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11766 'len''s type to ULONGEST.
11767 (core_xfer_shared_libraries_aix): Likewise.
11768 * gdbarch.c, gdbarch.h: Regenerated.
11769 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11770 Change type of 'len' to ULONGEST.
11771 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11772 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11773
dea80a27
YQ
117742014-01-14 Yao Qi <yao@codesourcery.com>
11775
11776 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11777 type of 'len' to ULONGEST.
11778 (linux_xfer_osdata_processgroups): Likewise.
11779 (linux_xfer_osdata_threads): Likewise.
11780 (linux_xfer_osdata_fds): Likewise.
11781 (linux_xfer_osdata_isockets): Likewise.
11782 (linux_xfer_osdata_shm): Likewise.
11783 (linux_xfer_osdata_sem): Likewise.
11784 (linux_xfer_osdata_msg): Likewise.
11785 (linux_common_xfer_osdata): Likewise.
11786 (struct osdata_type) <getter>: Likewise.
11787 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11788 the declaration.
11789
b55e14c7
YQ
117902014-01-14 Yao Qi <yao@codesourcery.com>
11791
11792 * target.h (target_xfer_partial_ftype): Update.
11793 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11794 ULONGEST.
11795 * aix-thread.c (aix_thread_xfer_partial): Change type of
11796 argument 'len' to ULONGEST.
11797 * auxv.c (procfs_xfer_auxv): Likewise.
11798 (ld_so_xfer_auxv): Likewise.
11799 (memory_xfer_auxv): Likewise.
11800 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11801 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11802 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11803 * corelow.c (core_xfer_partial): Likewise.
11804 * ctf.c (ctf_xfer_partial): Likewise.
11805 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11806 '%u'.
11807 (darwin_read_dyld_info): Likewise.
11808 (darwin_xfer_partial): Likewise.
11809 * exec.c (section_table_xfer_memory_partial): Likewise.
11810 (exec_xfer_partial): Likewise.
11811 * exec.h (section_table_xfer_memory_partial): Update
11812 declaration.
11813 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11814 instead of plongest.
11815 (gnu_xfer_partial): Likewise.
11816 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11817 (ia64_hpux_xfer_solib_got): Likewise.
11818 (ia64_hpux_xfer_partial): Likewise.
11819 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11820 * inf-ptrace.c (inf_ptrace_xfer_partial):
11821 * inf-ttrace.c (inf_ttrace_xfer_partial):
11822 * linux-nat.c (linux_xfer_siginfo): Likewise.
11823 (linux_nat_xfer_partial): Likewise.
11824 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11825 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11826 * monitor.c (monitor_xfer_memory): Likewise.
11827 (monitor_xfer_partial): Likewise.
11828 * procfs.c (procfs_xfer_partial): Likewise.
11829 * record-full.c (record_full_xfer_partial): Likewise.
11830 (record_full_core_xfer_partial): Likewise.
11831 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11832 instead of plongest.
11833 (gdbsim_xfer_partial): Likewise.
11834 * remote.c (remote_xfer_partial): Likewise.
11835 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11836 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11837 declaration.
11838 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11839 (rs6000_xfer_shared_libraries): Likewise.
11840 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11841 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11842 (sparc_xfer_partial): Likewise.
11843 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11844 (spu_xfer_partial): Likewise.
11845 * spu-multiarch.c (spu_xfer_partial): Likewise.
11846 * target.c (target_read_live_memory): Likewise.
11847 (memory_xfer_live_readonly_partial): Likewise.
11848 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11849 (target_xfer_partial, default_xfer_partial): Likewise.
11850 (current_xfer_partial): Likewise.
11851 * tracepoint.c (tfile_xfer_partial): Likewise.
11852 * windows-nat.c (windows_xfer_memory): Likewise. Call
11853 pulongest instead of plongest.
11854 (windows_xfer_partial): Likewise.
11855 (windows_xfer_shared_libraries): Likewise.
11856
05804640
YQ
118572014-01-14 Yao Qi <yao@codesourcery.com>
11858
11859 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11860 target_xfer_partial_ftype.
11861
b5b08fb4
SC
118622014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11863
11864 PR python/15464
11865 PR python/16113
11866 * valops.c (value_struct_elt_bitpos): New function
11867 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11868 object to 'None' if the field name is an empty string ("").
11869 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11870 attribute to look for a field when 'name' is 'None'.
11871 (get_field_type): New function
11872
13aaf454
DE
118732014-01-13 Doug Evans <dje@google.com>
11874
11875 PR symtab/16426
11876 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11877 (try_open_dwop_file): Ditto.
11878 * gdb_bfd.c: #include "vec.h".
11879 (bfdp): New typedef.
11880 (struct gdb_bfd_data): New member included_bfds.
11881 (gdb_bfd_unref): Unref all included bfds.
11882 (gdb_bfd_record_inclusion): New function.
11883 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11884
c2cec97c
TT
118852014-01-13 Tom Tromey <tromey@redhat.com>
11886
11887 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11888
78e5999d
TT
118892014-01-13 Tom Tromey <tromey@redhat.com>
11890
11891 * defs.h (use_windows): Remove.
11892 * gdb.c (main): Update.
11893 * main.c (captured_main, gdb_main): Update.
11894 * main.h (struct captured_main_args) <use_windows>: Remove.
11895 * top.c (use_windows): Remove.
11896
f2052bbe
TT
118972014-01-13 Tom Tromey <tromey@redhat.com>
11898
11899 * defs.h (deprecated_flush_hook): Remove.
11900
fde4f8ed
JK
119012014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11902
11903 PR threads/16216
11904 * linux-thread-db.c (try_thread_db_load): Add parameter
11905 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11906 (try_thread_db_load_from_pdir_1): Move it there from here.
11907 (try_thread_db_load_from_sdir): Update caller.
11908 (try_thread_db_load_from_dir): Move it there from here.
11909
bdf61915
PP
119102014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11911
11912 * regformats/regdat.sh: Always rewrite the register file.
11913
f71e1a8d
PA
119142014-01-13 Pedro Alves <palves@redhat.com>
11915
11916 * Makefile.in (CHECK_HEADERS): New variable.
11917 (check-headers:): New rule.
11918
42c85435
TT
119192014-01-13 Tom Tromey <tromey@redhat.com>
11920
11921 * cli/cli-setshow.c (do_set_command): Update.
11922 * defs.h (deprecated_set_hook): Remove.
11923 * top.c (deprecated_set_hook): Remove.
11924
f8de5129
PA
119252014-01-13 Pedro Alves <palves@redhat.com>
11926
11927 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11928 the tracepoint if the PC is a pseudo-register.
11929
fc270c35
TT
119302014-01-13 Tom Tromey <tromey@redhat.com>
11931
11932 * defs.h (XCALLOC): Remove.
11933 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11934 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11935 * dwarf2loc.c (allocate_piece_closure): Likewise.
11936 * elfread.c (elf_symfile_segments): Likewise.
11937 (elf_symfile_segments): Likewise.
11938 * gdbtypes.c (copy_type_recursive): Likewise.
11939 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11940 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11941 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11942 XCALLOC.
11943 * mt-tdep.c (mt_gdbarch_init): Likewise.
11944 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11945 XCALLOC.
11946 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11947 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11948 * registry.c (registry_alloc_data): Likewise.
11949 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11950 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11951 * serial.c (serial_fdopen_ops): Likewise.
11952 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11953 XCALLOC.
11954 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11955 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11956 not XCALLOC.
11957
70ba0933
TT
119582014-01-13 Tom Tromey <tromey@redhat.com>
11959
11960 * defs.h (XMALLOC): Remove.
11961 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11962 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11963 * cli-out.c (struct ui_out *): Likewise.
11964 * cli/cli-dump.c (add_dump_command): Likewise.
11965 (add_dump_command): Likewise.
11966 * complaints.c (get_complaints): Likewise.
11967 (find_complaint): Likewise.
11968 * dwarf2-frame.c (execute_cfa_program): Likewise.
11969 * dwarf2read.c (abbrev_table_read_table): Likewise.
11970 * gdbarch.sh: Likewise.
11971 * gdbarch.c: Rebuild.
11972 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11973 * interps.c (interp_new): Likewise.
11974 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11975 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11976 * mi/mi-console.c (mi_console_file_new): Likewise.
11977 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11978 * mi/mi-out.c (mi_out_new): Likewise.
11979 * mi/mi-parse.c (mi_parse): Likewise.
11980 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11981 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11982 * observer.c (xalloc_observer_list_node): Likewise.
11983 * regcache.c (regcache_xmalloc_1): Likewise.
11984 * reggroups.c (reggroup_new): Likewise.
11985 (_initialize_reggroup): Likewise.
11986 * registry.c (register_data_with_cleanup): Likewise.
11987 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11988 * ser-base.c (serial_ttystate): Likewise.
11989 * ser-mingw.c (make_pipe_state): Likewise.
11990 * ser-pipe.c (pipe_open): Likewise.
11991 * serial.c (serial_open): Likewise.
11992 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11993 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11994 (tui_alloc_win_info): Likewise.
11995 (tui_add_content_elements): Likewise.
11996 * tui/tui-file.c (tui_file_new): Likewise.
11997 * tui/tui-out.c (tui_out_new): Likewise.
11998 * ui-file.c (mem_file_new): Likewise.
11999 * ui-out.c (push_level): Likewise.
12000 (make_cleanup_ui_out_end): Likewise.
12001 (append_header_to_list): Likewise.
12002 (ui_out_new): Likewise.
12003 * user-regs.c (user_reg_add_builtin): Likewise.
12004
41bf6aca
TT
120052014-01-13 Tom Tromey <tromey@redhat.com>
12006
12007 * defs.h (XZALLOC): Remove.
12008 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
12009 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
12010 (get_ada_tasks_inferior_data): Likewise.
12011 * auto-load.c (get_auto_load_pspace_data): Likewise.
12012 * auxv.c (get_auxv_inferior_data): Likewise.
12013 * bfd-target.c (target_bfd_reopen): Likewise.
12014 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
12015 (deprecated_insert_raw_breakpoint): Likewise.
12016 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
12017 * corelow.c (core_open): Likewise.
12018 * darwin-nat.c (darwin_check_new_threads): Likewise.
12019 (darwin_attach_pid): Likewise.
12020 * dummy-frame.c (dummy_frame_push): Likewise.
12021 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
12022 * dwarf2loc.c (allocate_piece_closure): Likewise.
12023 * elfread.c (elf_symfile_segments): Likewise.
12024 * eval.c (ptrmath_type_p): Likewise.
12025 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
12026 * gdbtypes.c (alloc_type_arch): Likewise.
12027 (alloc_type_instance): Likewise.
12028 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
12029 * inf-child.c (inf_child_can_use_agent): Likewise.
12030 * inflow.c (get_inflow_inferior_data): Likewise.
12031 * infrun.c (save_infcall_suspend_state): Likewise.
12032 * jit.c (jit_reader_load): Likewise.
12033 (get_jit_objfile_data): Likewise.
12034 (get_jit_program_space_data): Likewise.
12035 (jit_object_open_impl): Likewise.
12036 (jit_symtab_open_impl): Likewise.
12037 (jit_block_open_impl): Likewise.
12038 (jit_frame_sniffer): Likewise.
12039 * linux-fork.c (add_fork): Likewise.
12040 * maint.c (make_command_stats_cleanup): Likewise.
12041 * objfiles.c (get_objfile_pspace_data): Likewise.
12042 * opencl-lang.c (struct lval_closure): Likewise.
12043 * osdata.c (osdata_start_osdata): Likewise.
12044 * progspace.c (new_address_space): Likewise.
12045 (add_program_space): Likewise.
12046 * remote-sim.c (get_sim_inferior_data): Likewise.
12047 * sh-tdep.c (sh_gdbarch_init): Likewise.
12048 * skip.c (Ignore): Likewise.
12049 (skip_delete_command): Likewise.
12050 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12051 (library_list_start_library): Likewise.
12052 (solib_aix_current_sos): Likewise.
12053 * solib-darwin.c (get_darwin_info): Likewise.
12054 (darwin_current_sos): Likewise.
12055 * solib-dsbt.c (get_dsbt_info): Likewise.
12056 * solib-ia64-hpux.c (new_so_list): Likewise.
12057 (ia64_hpux_get_solib_linkage_addr): Likewise.
12058 * solib-spu.c (append_ocl_sos): Likewise.
12059 (spu_current_sos): Likewise.
12060 * solib-svr4.c (get_svr4_info): Likewise.
12061 (svr4_keep_data_in_core): Likewise.
12062 (library_list_start_library): Likewise.
12063 (svr4_default_sos): Likewise.
12064 (svr4_read_so_list): Likewise.
12065 * solib-target.c (library_list_start_library): Likewise.
12066 (solib_target_current_sos): Likewise.
12067 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12068 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12069 * symfile.c (default_symfile_segments): Likewise.
12070 * target-descriptions.c (tdesc_data_init): Likewise.
12071 (tdesc_create_reg): Likewise.
12072 (struct tdesc_type *): Likewise.
12073 (tdesc_create_vector): Likewise.
12074 (tdesc_set_struct_size): Likewise.
12075 (struct tdesc_type *): Likewise.
12076 (tdesc_free_feature): Likewise.
12077 (tdesc_create_feature): Likewise.
12078 * windows-nat.c (windows_add_thread): Likewise.
12079 (windows_make_so): Likewise.
12080 * xml-support.c (gdb_xml_body_text): Likewise.
12081 (gdb_xml_create_parser_and_cleanup): Likewise.
12082 (xml_process_xincludes): Likewise.
12083 * xml-syscall.c (allocate_syscalls_info): Likewise.
12084 (syscall_create_syscall_desc): Likewise.
12085
5acfdbae
SDJ
120862014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12087
12088 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12089 function, with code from i386_stap_parse_special_token.
12090 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12091 (i386_stap_parse_special_token): Move code to the two functions
12092 above; simplify it.
12093
0000e5cc
PA
120942014-01-09 Pedro Alves <palves@redhat.com>
12095 Hui Zhu <hui@codesourcery.com>
12096
12097 PR gdb/16101
12098 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12099 bp_err_string. Don't mark the location shlib_disabled if the
12100 error thrown wasn't a generic or memory error. Catch errors
12101 thrown while inserting breakpoints in overlayed code. Output
12102 error message of software breakpoints.
12103 * remote.c (remote_insert_breakpoint): If this breakpoint has
12104 target-side commands but this stub doesn't support Z0 packets,
12105 throw NOT_SUPPORTED_ERROR error.
12106 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12107 * target.h (target_insert_breakpoint): Extend comment.
12108 (target_insert_hw_breakpoint): Add comment.
12109
b7ea362b
PA
121102014-01-08 Pedro Alves <palves@redhat.com>
12111
12112 * remote.c (remote_add_thread): Add threads silently if starting
12113 up.
12114 (remote_notice_new_inferior): If in all-stop, and starting up,
12115 don't call notice_new_inferior.
12116 (get_current_thread): New function, factored out from ...
12117 (add_current_inferior_and_thread): ... this. Adjust.
12118 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12119 found any thread, then select the remote's current thread as GDB's
12120 current thread too.
12121
b7bba001
JB
121222014-01-08 Joel Brobecker <brobecker@adacore.com>
12123
12124 * NEWS: Create a new section for the next release branch.
12125 Rename the section of the current branch, now that it has
12126 been cut.
12127
16dfbded
JB
121282014-01-08 Joel Brobecker <brobecker@adacore.com>
12129
12130 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12131 * version.in: Bump version to 7.7.50.DATE-cvs.
12132
22c90ac1
YQ
121332014-01-08 Yao Qi <yao@codesourcery.com>
12134
12135 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12136 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12137 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12138
d64ad97c
YQ
121392014-01-08 Yao Qi <yao@codesourcery.com>
12140
12141 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12142 return value of bfd_get_filename to symbol_file_add_from_bfd.
12143
f93ba80c
PM
121442014-01-08 Pierre Muller <muller@sourceware.org>
12145
12146 Fix PR16201.
12147 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12148 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12149 to prim_record_mininal_symbol_and_info.
12150 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12151 in call to prim_record_minimal_symbol_and_info.
12152 (read_pe_exported_syms): Set index field of section_data.
12153
a4d9ba85
AP
121542014-01-07 Andrew Pinski <apinski@cavium.com>
12155
12156 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12157 * features/aarch64.c: Regenerate.
12158
1b67eb02
AS
121592014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12160
12161 * target.c (return_null): Define.
12162 (update_current_target): Use it instead of return_zero for
12163 functions that return a pointer.
12164
5e3f4fab
EBM
121652014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12166
12167 * source.c (add_path): Fix check for duplicated paths in the previously
12168 included paths.
12169
e2616788
HK
121702014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12171
12172 * ada-lang.c: Remove duplicated include statements.
12173 * alphabsd-nat.c: Ditto.
12174 * amd64-darwin-tdep.c: Ditto.
12175 * amd64fbsd-nat.c: Ditto.
12176 * auto-load.c: Ditto.
12177 * ax-gdb.c: Ditto.
12178 * breakpoint.c: Ditto.
12179 * dbxread.c: Ditto.
12180 * fork-child.c: Ditto.
12181 * gdb_usleep.c: Ditto.
12182 * i386-darwin-tdep.c: Ditto.
12183 * i386fbsd-nat.c: Ditto.
12184 * infcmd.c: Ditto.
12185 * inferior.c: Ditto.
12186 * jv-lang.c: Ditto.
12187 * linux-nat.c: Ditto.
12188 * linux-tdep.c: Ditto.
12189 * m68kbsd-nat.c: Ditto.
12190 * m68klinux-nat.c: Ditto.
12191 * microblaze-tdep.c: Ditto.
12192 * mips-linux-tdep.c: Ditto.
12193 * mn10300-tdep.c: Ditto.
12194 * nto-tdep.c: Ditto.
12195 * opencl-lang.c: Ditto.
12196 * osdata.c: Ditto.
12197 * printcmd.c: Ditto.
12198 * regcache.c: Ditto.
12199 * remote-m32r-sdi.c: Ditto.
12200 * remote.c: Ditto.
12201 * symfile.c: Ditto.
12202 * symtab.c: Ditto.
12203 * tilegx-linux-nat.c: Ditto.
12204 * tilegx-tdep.c: Ditto.
12205 * tracepoint.c: Ditto.
12206 * valops.c: Ditto.
12207 * vaxbsd-nat.c: Ditto.
12208 * windows-nat.c: Ditto.
12209 * xtensa-tdep.c: Ditto.
12210
bd1f7788
YQ
122112014-01-07 Yao Qi <yao@codesourcery.com>
12212
12213 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12214
79301218
JB
122152014-01-07 Yao Qi <yao@codesourcery.com>
12216 Joel Brobecker <brobecker@adacore.com>
12217
12218 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12219 (pdc_write_regs): Likewise.
12220 (fetch_regs_kernel_thread): Likewise.
12221 (store_regs_kernel_thread): Likewise.
12222
122232014-01-07 Joel Brobecker <brobecker@adacore.com>
12224
12225 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12226 tagged type objects to their actual type.
12227
8e355c5d
JB
122282014-01-07 Joel Brobecker <brobecker@adacore.com>
12229
12230 * ada-valprint.c (print_field_values): Add "language" parameter.
12231 Update calls to print_field_values and print_variant_part.
12232 Pass new parameter "language" in call to val_print instead
12233 of "current_language". Replace call to ada_val_print by call
12234 to val_print.
12235 (print_variant_part): Add "language" parameter.
12236 (ada_val_print_struct_union): Update call to print_field_values.
12237
4fbf5aa5
JB
122382014-01-07 Joel Brobecker <brobecker@adacore.com>
12239
12240 * ada-valprint.c (ui_memcpy): Delete.
12241 (ada_print_floating): Update documentation. Add empty line
12242 between between function documentation and implementation.
12243 Delete variable "buffer". Use ui_file_xstrdup in place of
12244 ui_file_put. Minor adjustments following this change.
12245
71855601
JB
122462014-01-07 Joel Brobecker <brobecker@adacore.com>
12247
12248 * ada-valprint.c (ada_val_print_string): New function,
12249 extracted from ada_val_print_array.
12250 (ada_val_print_array): Replace extracted code by call
12251 to ada_val_print_string followed by a return. Move
12252 "else" branch to the function's top block.
12253
4eb27a30
JB
122542014-01-07 Joel Brobecker <brobecker@adacore.com>
12255
12256 * ada-valprint.c (ada_val_print_array): Move implementation
12257 down. Rename parameter "offset" and "val" into "offset_aligned"
12258 and "original_value" respectively. Add parameter "offset".
12259
34b27950
JB
122602014-01-07 Joel Brobecker <brobecker@adacore.com>
12261
12262 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12263 re-organizing the code. Change the "???" message printed
12264 when target type is a TYPE_CODE_UNDEF into
12265 "<ref to undefined type>".
12266
079e4591
JB
122672014-01-07 Joel Brobecker <brobecker@adacore.com>
12268
12269 * ada-valprint.c (print_record): Delete, implementation inlined...
12270 (ada_val_print_struct_union): ... here. Remove call to
12271 ada_check_typedef in inlined implementation.
12272
8004dfd1
JB
122732014-01-07 Joel Brobecker <brobecker@adacore.com>
12274
12275 * ada-valprint.c (ada_val_print_gnat_array): New function,
12276 extracted from ada_val_print_1;
12277 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12278 (ada_val_print_flt, ada_val_print_struct_union)
12279 (ada_val_print_ref): Likewise.
12280 (ada_val_print_1): Delete variables i and elttype.
12281 Replace extracted-out code by call to corresponding
12282 new functions.
12283
760a2db0
JB
122842014-01-07 Joel Brobecker <brobecker@adacore.com>
12285
12286 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12287
3a92c861
JB
122882014-01-07 Joel Brobecker <brobecker@adacore.com>
12289
12290 * ada-valprint.c (ada_val_print_1): Replace calls to
12291 ada_val_print_1 by calls to val_print.
12292
cd1630f9
JB
122932014-01-07 Joel Brobecker <brobecker@adacore.com>
12294
12295 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12296 Update calls to self accordingly. Replace calls to c_val_print
12297 by calls to val_print.
12298
bdf779a0
JB
122992014-01-07 Joel Brobecker <brobecker@adacore.com>
12300
12301 * ada-valprint.c (print_record): Delete declaration.
12302 (adjust_type_signedness, ada_val_print_1): Likewise.
12303 (ada_val_print): Move function implementation down.
12304 (print_variant_part, print_field_values, print_record):
12305 Move function implementation up.
12306
c0d48811
JB
123072014-01-07 Joel Brobecker <brobecker@adacore.com>
12308
12309 * python/py-type.c (typy_get_name): New function.
12310 (type_object_getset): Add entry for attribute "name".
12311 * NEWS: Add entry mentioning this new attribute.
12312
c26e9cbb
YQ
123132014-01-07 Yao Qi <yao@codesourcery.com>
12314
12315 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12316 statement.
12317
0cc6f43d
YQ
123182014-01-07 Yao Qi <yao@codesourcery.com>
12319
12320 * gnu-nat.c (info_port_rights): Add qualifier const to
12321 argument args.
12322
eec03155
YQ
123232014-01-07 Yao Qi <yao@codesourcery.com>
12324
12325 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12326
f04a82ef
YQ
123272014-01-07 Yao Qi <yao@codesourcery.com>
12328
12329 * gnu-nat.c (make_inf) Update declaration.
12330 (make_inf): Make it static.
12331 (inf_set_traced): Likewise.
12332 (inf_port_to_thread, inf_task_died_status): Likewise.
12333
d57dda0a
YQ
123342014-01-07 Yao Qi <yao@codesourcery.com>
12335
12336 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12337
3aa8c969
YQ
123382014-01-07 Yao Qi <yao@codesourcery.com>
12339
12340 * gnu-nat.c (_initialize_gnu_nat): Declare.
12341
94123b4f
YQ
123422014-01-07 Yao Qi <yao@codesourcery.com>
12343
12344 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12345 'enum bfd_endian'.
12346 (struct gdbarch_info) <byte_order>: Change type to
12347 'enum bfd_endian'.
12348 <byte_order_for_code>: Likewise.
12349 * gdbarch.c, gdbarch.h: Regenerated.
12350
dc81d70a
TT
123512014-01-06 Sasha Smundak <asmundak@google.com>
12352
12353 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12354
cc2f3c35
TT
123552014-01-06 Tom Tromey <tromey@redhat.com>
12356
12357 * doublest.c (convert_doublest_to_floatformat): Use const, not
12358 CONST.
12359 * somread.c (som_symtab_read): Likewise.
12360
adcf2eed
HZ
123612014-01-07 Hui Zhu <hui@codesourcery.com>
12362
12363 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12364 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12365 (gdb_bfd_fopen): Ditto.
12366 (gdb_bfd_openr): Ditto.
12367 (gdb_bfd_openw): Ditto.
12368 (gdb_bfd_openr_iovec): Ditto.
12369 (gdb_bfd_fdopenr): Ditto.
12370 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12371 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12372 with xstrdup.
12373 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12374 with xstrdup.
12375 * symfile-mem.c (symbol_file_add_from_memory): Removed
12376 gdb_bfd_stash_filename.
12377
50722198
DE
123782014-01-03 Doug Evans <dje@google.com>
12379
12380 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12381 output.
12382
2fa4b862
JB
123832014-01-01 Joel Brobecker <brobecker@adacore.com>
12384
12385 Update year range in copyright notice of all files.
12386
28498c42
JB
123872014-01-01 Joel Brobecker <brobecker@adacore.com>
12388
12389 * top.c (print_gdb_version): Set copyright year to 2014.
12390
7b6e1046
JB
123912014-01-01 Joel Brobecker <brobecker@adacore.com>
12392
12393 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12394
df96af55 12395For older changes see ChangeLog-2013.
c906108c
SS
12396\f
12397Local Variables:
12398mode: change-log
12399left-margin: 8
12400fill-column: 74
12401version-control: never
57da7796 12402coding: utf-8
c906108c 12403End:
This page took 2.736512 seconds and 4 git commands to generate.