symtab.c (find_function_start_sal): Move definition to better spot.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
aab2f208
DE
12014-08-28 Doug Evans <dje@google.com>
2
3 * symtab.c (find_function_start_sal): Move definition to better spot.
4
6b65d1b6
YQ
52014-08-28 Yao Qi <yao@codesourcery.com>
6
7 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
8 found_stack_adjust in forward scan. Remove condition check
9 on found_stack_adjust which is always true. Indent the code.
10
a1b34d15
YQ
112014-08-28 Yao Qi <yao@codesourcery.com>
12
13 * dwarf2read.c (dwarf_decode_lines): Update declaration.
14 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
15 (dwarf_decode_lines): Remove argument
16 want_line_info. Remove condition check on want_line_info.
17 Callers update.
18
d5962de5
DE
192014-08-27 Doug Evans <dje@google.com>
20
21 * dwarf2read.c (dwarf_record_line): Fix typo.
22
9b139002
SDJ
232014-08-27 Patrick Palka <patrick@parcs.ath.cx>
24
25 * target.h (struct target_ops::to_terminal_save_ours): Remove
26 declaration.
27 (target_terminal_save_ours): Remove macro.
28 * target-delegates.c: Regenerate.
29 * inf-child.c (inf_child_target): Don't set the nonexistent
30 field to_terminal_save_ours.
31 * inferior.h (child_terminal_save_ours): Remove declaration.
32 * terminal.h (gdb_save_tty_state): New declaration.
33 * inflow.c (child_terminal_save_ours): Rename to ...
34 (gdb_save_tty_state): ... this.
35 * tui/tui.c: Include terminal.h.
36 (tui_enable): Use gdb_save_tty_state instead of
37 target_terminal_save_ours.
38 (tui_disable): Likewise.
39
9debeba0
DE
402014-08-25 Doug Evans <dje@google.com>
41
42 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
43 Pass NULL instead of 0 for context pointer.
44
428fc5fc
YQ
452014-08-25 Yao Qi <yao@codesourcery.com>
46
47 * dwarf2read.c: Fix grammatical error.
48
cdc07690
YQ
492014-08-24 Yao Qi <yao@codesourcery.com>
50
51 * dwarf2read.c (scan_partial_symbols): Update comments.
52 Rename argument 'need_pc' with 'set_addrmap'.
53 (add_partial_namespace): Rename argument 'need_pc' with
54 'set_addrmap'.
55 (add_partial_module): Likewise.
56 (add_partial_subprogram): Likewise. Update comments.
57 (dwarf2_name): Fix typo.
58
a05a36a5
DE
592014-08-22 Doug Evans <dje@google.com>
60
61 PR 17276
62 * dwarf2read.c (dwarf_record_line_p): New function.
63 (dwarf_decode_lines_1): Ignore subsequent line number entries
64 for the same line if any entry had a non-zero discriminator.
65
252a6764
DE
662014-08-22 Doug Evans <dje@google.com>
67
68 * buildsym.h (record_line_ftype): New typedef.
69 (record_line): Use it.
70 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
71 (dwarf_decode_lines_1): Call them.
72
510db052
YQ
732014-08-22 Yao Qi <yao@codesourcery.com>
74
75 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
76 (ctf_end): Remove code.
77
22fd09ae
JK
782014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
79
80 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
81 (linux_make_corefile_notes): call update_thread_list, protected against
82 exceptions.
83
656e8868
PA
842014-08-21 Pedro Alves <palves@redhat.com>
85
86 * infcmd.c (attach_command): Remove comment.
87
de589d04
WN
882014-08-21 Bin Cheng <bin.cheng@arm.com>
89
90 * aarch64-linux-nat.c (dr_changed_t): Change the type from
91 unsigned LONGEST to ULONGEST.
92
2a31c623
PA
932014-08-20 Pedro Alves <palves@redhat.com>
94
95 * Makefile.in (check-read1): New rule.
96
d36430db
JB
972014-08-20 Joel Brobecker <brobecker@adacore.com>
98
99 * value.c (value_from_contents_and_address): Strip resolved_type's
100 typedef layers before checking its TYPE_DATA_LOCATION.
101
000339af
PA
1022014-08-20 Pedro Alves <palves@redhat.com>
103
104 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
105
5f52445b
YQ
1062014-08-20 Yao Qi <yao@codesourcery.com>
107
108 * amd64-tdep.c (amd64_classify): Add a blank line after the
109 example. Move "*/" to a new line.
110 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
111 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
112 * dwarf2read.c (psymtab_include_file_name): Likewise.
113
9a0dc9e3
PA
1142014-08-19 Andrew Burgess <aburgess@broadcom.com>
115 Pedro Alves <palves@redhat.com>
116
117 PR symtab/14604
118 PR symtab/14605
119 * ada-lang.c (coerce_unspec_val_to_type): Use
120 value_contents_copy_raw.
121 * ada-valprint.c (val_print_packed_array_elements): Adjust.
122 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
123 * cp-valprint.c (cp_print_value_fields): Let the common printing
124 code handle optimized out values.
125 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
126 * d-valprint.c (dynamic_array_type): Use
127 value_bits_any_optimized_out.
128 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
129 check_any_valid fields.
130 (check_pieced_value_bits): Delete and inline ...
131 (check_pieced_synthetic_pointer): ... here.
132 (check_pieced_value_validity): Delete.
133 (check_pieced_value_invalid): Delete.
134 (pieced_value_funcs): Remove check_validity and check_any_valid
135 fields.
136 (read_pieced_value): Use mark_value_bits_optimized_out.
137 (write_pieced_value): Switch to use
138 mark_value_bytes_optimized_out.
139 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
140 of assuming the whole value is optimized out.
141 * findvar.c (read_frame_register_value): Remove special handling
142 of optimized out registers.
143 (value_from_register): Use mark_value_bytes_optimized_out.
144 * frame-unwind.c (frame_unwind_got_optimized): Use
145 mark_value_bytes_optimized_out.
146 * jv-valprint.c (java_value_print): Adjust.
147 (java_print_value_fields): Let the common printing code handle
148 optimized out values.
149 * mips-tdep.c (mips_print_register): Remove special handling of
150 optimized out registers.
151 * opencl-lang.c (lval_func_check_validity): Delete.
152 (lval_func_check_any_valid): Delete.
153 (opencl_value_funcs): Remove check_validity and check_any_valid
154 fields.
155 * p-valprint.c (pascal_object_print_value_fields): Let the common
156 printing code handle optimized out values.
157 * stack.c (read_frame_arg): Remove special handling of optimized
158 out values. Fetch both VAL and ENTRYVAL before comparing
159 contents. Adjust to value_available_contents_eq rename.
160 * valprint.c (valprint_check_validity)
161 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
162 (val_print_array_elements): Adjust.
163 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
164 (value_bits_any_optimized_out): New function.
165 (value_entirely_covered_by_range_vector): New function, factored
166 out from value_entirely_unavailable.
167 (value_entirely_unavailable): Reimplement.
168 (value_entirely_optimized_out): New function.
169 (insert_into_bit_range_vector): New function, factored out from
170 mark_value_bits_unavailable.
171 (mark_value_bits_unavailable): Reimplement.
172 (struct ranges_and_idx): New struct.
173 (find_first_range_overlap_and_match): New function, factored out
174 from value_available_contents_bits_eq.
175 (value_available_contents_bits_eq): Rename to ...
176 (value_contents_bits_eq): ... this. Check both unavailable
177 contents and optimized out contents.
178 (value_available_contents_eq): Rename to ...
179 (value_contents_eq): ... this.
180 (allocate_value_lazy): Remove reference to the old optimized_out
181 boolean.
182 (allocate_optimized_out_value): Use
183 mark_value_bytes_optimized_out.
184 (require_not_optimized_out): Adjust to check whether the
185 optimized_out vec is empty.
186 (ranges_copy_adjusted): New function, factored out from
187 value_contents_copy_raw.
188 (value_contents_copy_raw): Also copy the optimized out ranges.
189 Assert the destination ranges aren't optimized out.
190 (value_contents_copy): Update comment, remove call to
191 require_not_optimized_out.
192 (value_contents_equal): Adjust to check whether the optimized_out
193 vec is empty.
194 (set_value_optimized_out, value_optimized_out_const): Delete.
195 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
196 New functions.
197 (value_entirely_optimized_out, value_bits_valid): Delete.
198 (value_copy): Take a VEC copy of the 'optimized_out' field.
199 (value_primitive_field): Remove special handling of optimized out.
200 (value_fetch_lazy): Assert that lazy values have no unavailable
201 regions. Use value_bits_any_optimized_out. Remove some special
202 handling for optimized out values.
203 * value.h: Add intro comment about <optimized out> and
204 <unavailable>.
205 (struct lval_funcs): Remove check_validity and check_any_valid
206 fields.
207 (set_value_optimized_out, value_optimized_out_const): Remove.
208 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
209 New declarations.
210 (value_bits_any_optimized_out): New declaration.
211 (value_bits_valid): Delete declaration.
212 (value_available_contents_eq): Rename to ...
213 (value_contents_eq): ... this, and extend comments.
214
6694c411
JK
2152014-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
216
217 Fix -fsanitize=address on unreadable inferior strings.
218 * valprint.c (val_print_string): Fix access before BUFFER.
219
89a1c21a
SM
2202014-08-19 Simon Marchi <simon.marchi@ericsson.com>
221
222 * target.c (target_struct_size): Remove.
223 (target_struct_allocsize): Remove.
224 (DEFAULT_ALLOCSIZE): Remove.
225 (target_ops_p): New typedef.
226 (DEF_VEC_P (target_ops_p)): New vector type.
227 (target_structs): Change type to VEC (target_ops_p).
228 (add_target_with_completer): Replace "push" code by VEC_safe_push.
229 (find_default_run_target): Rewrite for loop following changes to
230 target_structs.
231
cb417230
JB
2322014-08-19 Joel Brobecker <brobecker@adacore.com>
233
234 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
235 Adjust code accordingly. Adjust function description comment.
236
817e0957
YQ
2372014-08-19 Yao Qi <yao@codesourcery.com>
238
239 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
240 types.
241
2974be62
AM
2422014-08-19 Alan Modra <amodra@gmail.com>
243
244 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
245 * config.in: Regenerate.
246 * configure: Regenerate.
247
34abf635
GB
2482014-08-19 Tom Tromey <tromey@redhat.com>
249 Gary Benson <gbenson@redhat.com>
250
251 * common/common-debug.h: New file.
252 * common/common-debug.c: Likewise.
253 * debug.c: Likewise.
254 * Makefile.in (SFILES): Add common/common-debug.c.
255 (HFILES_NO_SRCDIR): Add common/common-debug.h.
256 (COMMON_OBS): Add common-debug.o and debug.o.
257 (common-debug.o): New rule.
258 * common/common-defs.h: Include common-debug.h.
259 * common/agent.c (debug_agent_printf): New function.
260 (DEBUG_AGENT): Redefine.
261 * nat/i386-dregs.c (debug_printf): Undefine.
262
f6e94d78
GB
2632014-08-19 Gary Benson <gbenson@redhat.com>
264
265 * common/common-defs.h: Include print-utils.h.
266 * utils.h: Do not include print-utils.h.
267
9239eeab
GB
2682014-08-19 Tom Tromey <tromey@redhat.com>
269 Gary Benson <gbenson@redhat.com>
270
271 * common/common-types.h: New file.
272 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
273 * common/common-defs.h: Include common-types.h.
274 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
275 (ULONGEST): Remove.
276
ef87c8bb
GB
2772014-08-19 Tom Tromey <tromey@redhat.com>
278 Gary Benson <gbenson@redhat.com>
279
280 * common/errors.h: New file.
281 * common/errors.c: Likewise.
282 * Makefile.in (SFILES): Add common/errors.c.
283 (HFILES_NO_SRCDIR): Add common/errors.h.
284 (COMMON_OBS): Add errors.o.
285 (errors.o): New rule.
286 * common/common-defs.h: Include errors.h.
287 * utils.h (perror_with_name, error, verror, warning, vwarning):
288 Don't declare.
289 * common/common-utils.h: (malloc_failure, internal_error):
290 Likewise.
291
196a707b
GB
2922014-08-19 Gary Benson <gbenson@redhat.com>
293
294 * utils.c (internal_vproblem): Always print the message.
295
ded4fc8f
DE
2962014-08-18 Doug Evans <dje@google.com>
297
298 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
299
950c97d8
JB
3002014-08-18 Joel Brobecker <brobecker@adacore.com>
301
302 * ada-typeprint.c (type_is_full_subrange_of_target_type):
303 Return 0 if TYPE is dynamic.
304 (print_range): Add handling of dynamic ranges.
305
3cdcd0ce
JB
3062014-08-18 Keven Boell <keven.boell@intel.com>
307 Joel Brobecker <brobecker@adacore.com>
308
309 * gdbtypes.h (struct main_type): Add field "data_location".
310 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
311 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
312 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
313 a dynamic data location.
314 (resolve_dynamic_type): Add DW_AT_data_location handling.
315 (copy_recursive, copy_type): Copy the data_location information
316 when present.
317 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
318 * value.c (value_from_contents_and_address): Add
319 DW_AT_data_location handling.
320
08412b07
JB
3212014-08-18 Keven Boell <keven.boell@intel.com>
322 Joel Brobecker <brobecker@adacore.com>
323
324 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
325 field "get_object_address".
326 * dwarf2expr.c (execute_stack_op): Add handling for
327 DW_OP_push_object_address.
328 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
329 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
330 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
331 (dwarf_expr_get_obj_addr): New function.
332 (dwarf_expr_ctx_funcs): Add get_object_address field.
333 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
334 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
335 (dwarf2_evaluate_property): Add parameter "address". Use it.
336 (needs_get_obj_addr): New function.
337 (needs_frame_ctx_funcs): Add get_object_address field.
338 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
339 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
340 (resolve_dynamic_array): Likewise.
341
84754697
JB
3422014-08-18 Joel Brobecker <brobecker@adacore.com>
343
344 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
345 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
346 fixed value for records and unions for which some GNAT encodings
347 are present.
348
da5c522f
JB
3492014-08-18 Joel Brobecker <brobecker@adacore.com>
350
351 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
352 rewrite to avoid "else if" and "else" constructs. Should be
353 a no-op in practice.
354
0d72a7c3
JB
3552014-08-18 Joel Brobecker <brobecker@adacore.com>
356
357 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
358 of lexical block.
359
e66d4446
SC
3602014-08-15 Siva Chandra Reddy <sivachandra@google.com>
361
362 PR c++/17132
363 * eval.c: Update all calls to find_overload_match.
364 * valarith.c: Likewise.
365 (value_user_defined_cpp_op, value_user_defined_op): New
366 argument NOSIDE. Update all callers.
367 * valops.c (find_overload_match): New argument NOSIDE.
368 * value.h (find_overload_match): Update signature.
369
940df408
SC
3702014-08-15 Siva Chandra Reddy <sivachandra@google.com>
371
372 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
373 'items' methods instead of 'iteritems' method on dictionaries.
374
699ca60a
DE
3752014-08-15 Doug Evans <dje@google.com>
376
377 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
378 closer to use.
379
37780ee5
DE
3802014-08-15 Doug Evans <dje@google.com>
381
382 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
383
0ad93d4f
DE
3842014-08-15 Doug Evans <dje@google.com>
385
386 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
387
20d8c372
DE
3882014-08-15 Doug Evans <dje@google.com>
389
390 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
391 unused.
392
cb039ba4
EZ
3932014-08-15 Eli Zaretskii <eliz@gnu.org>
394
395 * dcache.h: Include target.h, to avoid compile time warnings.
396
eb7a547a
JB
3972014-08-15 Joel Brobecker <brobecker@adacore.com>
398
399 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
400 frame_info" partial declaration.
401 * gdbarch.h: Regenerate.
402
783cecc8
YQ
4032014-08-15 Yao Qi <yao@codesourcery.com>
404
405 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
406 Add parameter 'decode_for_pst_p'. Callers update.
407
65c749e7
YQ
4082014-08-13 Yao Qi <yao@codesourcery.com>
409
410 PR build/17104
411 * configure.ac: Use local variable 'pos'.
412 * configure: Regenerated.
413
d769e349
DE
4142014-08-11 Doug Evans <dje@google.com>
415
416 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
417 message, it is redundant with "Reading symbols from ..." message.
418
24f1235e
DE
4192014-08-10 Doug Evans <xdje42@gmail.com>
420
421 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
422
dcd2e6ef
YQ
4232014-08-09 Yao Qi <yao@codesourcery.com>
424
425 PR remote/9053
426 * remote.c (remote_xfer_partial): Remove dead code.
427
070bdf0b
AA
4282014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
429
430 * ia64-linux-tdep.c: Include "regset.h".
431 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
432 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
433 (ia64_linux_supply_fpregset): New function.
434 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
435 (ia64_linux_regset_from_core_section): New function.
436 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
437 method.
438
08f9f542
AA
4392014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
440
441 * m68klinux-tdep.c: Include "regset.h".
442 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
443 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
444 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
445 (m68k_linux_regset_from_core_section): New function.
446 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
447 method.
448
8f1cee41
AA
4492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
450
451 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
452 function. Move logic to...
453 (tilegx_linux_regmap): ... this new register map.
454 (tilegx_linux_regset): Refer to register map, replace supply
455 method by regcache_supply_regset, and add collect method.
456 * tilegx-tdep.h (enum tilegx_regnum): New enum value
457 TILEGX_FIRST_EASY_REGNUM.
458
c5741217
AA
4592014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
460
461 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
462 that calls regcache_supply_regset and handles the EPC register
463 separately. Move main logic to...
464 (score7_linux_gregmap): ... this new register map.
465 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
466 (score7_linux_gregset): Refer to register map. Add collect method.
467 (score7_linux_regset_from_core_section): Replace
468 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
469 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
470 (struct regset): Delete unused forward declaraction.
471 (struct pt_regs): Delete structure definition.
472 (elf_gregset_t): Delete typedef.
473
81580573
AA
4742014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
475
476 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
477 (nios2_core_regset): Add collect method.
478
ba199d7d
AA
4792014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
480
481 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
482 platform-independent and don't write to read-only input buffer.
483 (m32r_linux_collect_gregset): New function.
484 (m32r_linux_gregset): Add collect method.
485
0006a9da
AA
4862014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
487
488 * hppa-linux-tdep.c (greg_map): Rename to...
489 (hppa_linux_gregmap): ... this. Also convert to
490 regcache_map_entry format.
491 (hppa_linux_supply_regset): Delete function.
492 (hppa_linux_supply_fpregset): Delete function. Move logic to...
493 (hppa_linux_fpregmap): ... this new register map.
494 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
495 register map, replace supply method by regcache_supply_regset, and
496 add collect method regcache_collect_regset.
497
901e1b23
AA
4982014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
499
500 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
501 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
502 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
503 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
504 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
505 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
506 (frv_linux_supply_gregset): Replace main logic by call to
507 regcache_supply_regset, but keep clearing gr32-gr63.
508 (frv_linux_supply_fpregset): Delete function.
509 (frv_linux_gregset): Refer to appropriate register map and add
510 regcache_collect_regset as the collect method.
511 (frv_linux_fpregset): Likewise. Also exchange the supply method
512 by regcache_supply_regset.
513
1d6e7555
AA
5142014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
515
516 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
517 by call to alpha_supply_int_regs.
518 (alpha_linux_collect_gregset): New function.
519 (alpha_linux_supply_fpregset): Replace logic by call to
520 alpha_supply_fp_regs.
521 (alpha_linux_collect_fpregset): New function.
522 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
523
d4d793bf
AA
5242014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
525
526 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
527 by call to regcache_collect_regset.
528 (supply_gregset, supply_fpregset): Call regcache_supply_regset
529 instead of aarch64_linux_supply_gregset/_fpregset.
530 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
531 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
532 header file instead.
533 (aarch64_linux_supply_gregset, supply_gregset_from_core)
534 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
535 functions. Move logic to ...
536 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
537 register maps.
538 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
539 refer to new register maps, replace *_regset_from_core by
540 regcache_supply_regset, and also use regcache_collect_regset.
541 * aarch64-linux-tdep.h: Include "regset.h".
542 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
543 Delete prototypes.
544 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
545 macros, moved from C source file.
546 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
547 variable declarations.
548
99b7da5d
AA
5492014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
550
551 * s390-linux-nat.c: Include "regset.h".
552 (regmap_gregset): Delete macro.
553 (s390_64_regmap_gregset): New register map for
554 regcache_supply/_collect_regset.
555 (s390_64_gregset): New regset.
556 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
557 (regmap_fpregset): Delete macro.
558 (s390_native_supply, s390_native_collect): Delete functions.
559 (supply_gregset, fill_gregset): Replace s390-specific regmap
560 handling by a call to regcache_supply/_collect_regset.
561 (supply_fpregset, fill_fpregset): Call regcache_supply/
562 _collect_regset instead of s390_native_supply/_collect.
563 (fetch_regset, store_regset): Likewise. Also change the last
564 parameter to a regset instead of a regmap.
565 (s390_linux_fetch_inferior_registers)
566 (390_linux_store_inferior_registers): Adjust last parameter in
567 calls to fetch_regset and store_regset.
568 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
569 (s390_gregmap): ... this. Also make static const and convert to
570 regcache_map_entry format.
571 (s390x_regmap_gregset): Delete.
572 (s390_regmap_fpregset): Rename to...
573 (s390_fpregmap): ... this. Make static const and convert to
574 regcache_map_entry format.
575 (s390_regmap_upper, s390_regmap_last_break)
576 (s390x_regmap_last_break, s390_regmap_system_call)
577 (s390_regmap_tdb): Likewise.
578 (s390_supply_regset, s390_collect_regset): Remove functions.
579 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
580 s390_supply_regset.
581 (s390_gregset, s390_fpregset, s390_upper_regset)
582 (s390_last_break_regset, s390x_last_break_regset)
583 (s390_system_call_regset, s390_tdb_regset): Make global and
584 replace s390_supply/_collect_regset by regcache_supply/
585 _collect_regset.
586 (s390x_gregset): Delete.
587 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
588 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
589 (s390_regmap_fpregset, s390_regmap_last_break)
590 (s390x_regmap_last_break, s390_regmap_system_call)
591 (s390_regmap_tdb): Delete global variable declarations.
592 (s390_gregset, s390_fpregset, s390_last_break_regset)
593 (s390x_last_break_regset, s390_system_call_regset)
594 (s390_tdb_regset): New global variable declarations.
595
0b309272
AA
5962014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
597
598 * regcache.c: Include "regset.h".
599 (regcache_transfer_regset): New local function.
600 (regcache_supply_regset, regcache_collect_regset): New functions.
601 * regcache.h (struct regcache_map_entry): New structure.
602 (REGCACHE_MAP_SKIP): New enum value.
603 (regcache_supply_regset, regcache_collect_regset): New prototypes.
604
7fefa8d7
AA
6052014-08-07 Andreas Arnez <arnez@linux.vnet.ibm.com>
606
607 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
608 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
609 (ppc_linux_collect_gregset ): Likewise.
610 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
611 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
612 (ppc_collect_vrregset): Likewise.
613 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
614 Likewise.
615
96c4f946
YQ
6162014-08-07 Yao Qi <yao@codesourcery.com>
617
618 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
619 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
620 * remote.c (remote_read_bytes): Likewise.
621
fffbe6a8
YQ
6222014-08-07 Yao Qi <yao@codesourcery.com>
623
624 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
625
5ee8a82c
YQ
6262014-08-07 Yao Qi <yao@codesourcery.com>
627
628 PR remote/17230
629 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
630 TARGET_XFER_OK instead of 0.
631
bb974a24
GB
6322014-08-07 Gary Benson <gbenson@redhat.com>
633
634 * common/common-defs.h: Include errno.h.
635 * defs.h: Do not include errno.h.
636 * ada-typeprint.c: Likewise.
637 * c-typeprint.c: Likewise.
638 * core-regset.c: Likewise.
639 * corefile.c: Likewise.
640 * corelow.c: Likewise.
641 * event-loop.c: Likewise.
642 * f-typeprint.c: Likewise.
643 * gnu-nat.c: Likewise.
644 * go32-nat.c: Likewise.
645 * i386gnu-nat.c: Likewise.
646 * m2-typeprint.c: Likewise.
647 * nat/linux-btrace.c: Likewise.
648 * p-typeprint.c: Likewise.
649 * procfs.c: Likewise.
650 * remote-sim.c: Likewise.
651 * rs6000-nat.c: Likewise.
652 * target.c: Likewise.
653 * typeprint.c: Likewise.
654 * ui-file.c: Likewise.
655 * valops.c: Likewise.
656 * valprint.c: Likewise.
657
6d3d12eb
GB
6582014-08-07 Gary Benson <gbenson@redhat.com>
659
660 * common/common-defs.h: Include string.h.
661 * aarch64-tdep.c: Do not include string.h.
662 * ada-exp.y: Likewise.
663 * ada-lang.c: Likewise.
664 * ada-lex.l: Likewise.
665 * ada-typeprint.c: Likewise.
666 * ada-valprint.c: Likewise.
667 * aix-thread.c: Likewise.
668 * alpha-linux-tdep.c: Likewise.
669 * alpha-mdebug-tdep.c: Likewise.
670 * alpha-nat.c: Likewise.
671 * alpha-osf1-tdep.c: Likewise.
672 * alpha-tdep.c: Likewise.
673 * alphanbsd-tdep.c: Likewise.
674 * amd64-dicos-tdep.c: Likewise.
675 * amd64-linux-tdep.c: Likewise.
676 * amd64-nat.c: Likewise.
677 * amd64-sol2-tdep.c: Likewise.
678 * amd64fbsd-tdep.c: Likewise.
679 * amd64obsd-tdep.c: Likewise.
680 * arch-utils.c: Likewise.
681 * arm-linux-nat.c: Likewise.
682 * arm-linux-tdep.c: Likewise.
683 * arm-tdep.c: Likewise.
684 * arm-wince-tdep.c: Likewise.
685 * armbsd-tdep.c: Likewise.
686 * armnbsd-nat.c: Likewise.
687 * armnbsd-tdep.c: Likewise.
688 * armobsd-tdep.c: Likewise.
689 * avr-tdep.c: Likewise.
690 * ax-gdb.c: Likewise.
691 * ax-general.c: Likewise.
692 * bcache.c: Likewise.
693 * bfin-tdep.c: Likewise.
694 * breakpoint.c: Likewise.
695 * build-id.c: Likewise.
696 * buildsym.c: Likewise.
697 * c-exp.y: Likewise.
698 * c-lang.c: Likewise.
699 * c-typeprint.c: Likewise.
700 * c-valprint.c: Likewise.
701 * charset.c: Likewise.
702 * cli-out.c: Likewise.
703 * cli/cli-cmds.c: Likewise.
704 * cli/cli-decode.c: Likewise.
705 * cli/cli-dump.c: Likewise.
706 * cli/cli-interp.c: Likewise.
707 * cli/cli-logging.c: Likewise.
708 * cli/cli-script.c: Likewise.
709 * cli/cli-setshow.c: Likewise.
710 * cli/cli-utils.c: Likewise.
711 * coffread.c: Likewise.
712 * common/agent.c: Likewise.
713 * common/buffer.c: Likewise.
714 * common/buffer.h: Likewise.
715 * common/common-utils.c: Likewise.
716 * common/filestuff.c: Likewise.
717 * common/filestuff.c: Likewise.
718 * common/format.c: Likewise.
719 * common/print-utils.c: Likewise.
720 * common/rsp-low.c: Likewise.
721 * common/signals.c: Likewise.
722 * common/vec.h: Likewise.
723 * common/xml-utils.c: Likewise.
724 * core-regset.c: Likewise.
725 * corefile.c: Likewise.
726 * corelow.c: Likewise.
727 * cp-abi.c: Likewise.
728 * cp-name-parser.y: Likewise.
729 * cp-support.c: Likewise.
730 * cp-valprint.c: Likewise.
731 * cris-tdep.c: Likewise.
732 * d-exp.y: Likewise.
733 * darwin-nat.c: Likewise.
734 * dbxread.c: Likewise.
735 * dcache.c: Likewise.
736 * demangle.c: Likewise.
737 * dicos-tdep.c: Likewise.
738 * disasm.c: Likewise.
739 * doublest.c: Likewise.
740 * dsrec.c: Likewise.
741 * dummy-frame.c: Likewise.
742 * dwarf2-frame.c: Likewise.
743 * dwarf2loc.c: Likewise.
744 * dwarf2read.c: Likewise.
745 * elfread.c: Likewise.
746 * environ.c: Likewise.
747 * eval.c: Likewise.
748 * event-loop.c: Likewise.
749 * exceptions.c: Likewise.
750 * exec.c: Likewise.
751 * expprint.c: Likewise.
752 * f-exp.y: Likewise.
753 * f-lang.c: Likewise.
754 * f-typeprint.c: Likewise.
755 * f-valprint.c: Likewise.
756 * fbsd-nat.c: Likewise.
757 * findcmd.c: Likewise.
758 * findvar.c: Likewise.
759 * fork-child.c: Likewise.
760 * frame.c: Likewise.
761 * frv-linux-tdep.c: Likewise.
762 * frv-tdep.c: Likewise.
763 * gdb.c: Likewise.
764 * gdb_bfd.c: Likewise.
765 * gdbarch.c: Likewise.
766 * gdbarch.sh: Likewise.
767 * gdbtypes.c: Likewise.
768 * gnu-nat.c: Likewise.
769 * gnu-v2-abi.c: Likewise.
770 * gnu-v3-abi.c: Likewise.
771 * go-exp.y: Likewise.
772 * go-lang.c: Likewise.
773 * go32-nat.c: Likewise.
774 * guile/guile.c: Likewise.
775 * guile/scm-auto-load.c: Likewise.
776 * hppa-hpux-tdep.c: Likewise.
777 * hppa-linux-nat.c: Likewise.
778 * hppanbsd-tdep.c: Likewise.
779 * hppaobsd-tdep.c: Likewise.
780 * i386-cygwin-tdep.c: Likewise.
781 * i386-dicos-tdep.c: Likewise.
782 * i386-linux-tdep.c: Likewise.
783 * i386-nto-tdep.c: Likewise.
784 * i386-sol2-tdep.c: Likewise.
785 * i386-tdep.c: Likewise.
786 * i386bsd-tdep.c: Likewise.
787 * i386gnu-nat.c: Likewise.
788 * i386nbsd-tdep.c: Likewise.
789 * i386obsd-tdep.c: Likewise.
790 * i387-tdep.c: Likewise.
791 * ia64-libunwind-tdep.c: Likewise.
792 * ia64-linux-nat.c: Likewise.
793 * inf-child.c: Likewise.
794 * inf-ptrace.c: Likewise.
795 * inf-ttrace.c: Likewise.
796 * infcall.c: Likewise.
797 * infcmd.c: Likewise.
798 * inflow.c: Likewise.
799 * infrun.c: Likewise.
800 * interps.c: Likewise.
801 * iq2000-tdep.c: Likewise.
802 * irix5-nat.c: Likewise.
803 * jv-exp.y: Likewise.
804 * jv-lang.c: Likewise.
805 * jv-typeprint.c: Likewise.
806 * jv-valprint.c: Likewise.
807 * language.c: Likewise.
808 * linux-fork.c: Likewise.
809 * linux-nat.c: Likewise.
810 * lm32-tdep.c: Likewise.
811 * m2-exp.y: Likewise.
812 * m2-typeprint.c: Likewise.
813 * m32c-tdep.c: Likewise.
814 * m32r-linux-nat.c: Likewise.
815 * m32r-linux-tdep.c: Likewise.
816 * m32r-rom.c: Likewise.
817 * m32r-tdep.c: Likewise.
818 * m68hc11-tdep.c: Likewise.
819 * m68k-tdep.c: Likewise.
820 * m68kbsd-tdep.c: Likewise.
821 * m68klinux-nat.c: Likewise.
822 * m68klinux-tdep.c: Likewise.
823 * m88k-tdep.c: Likewise.
824 * machoread.c: Likewise.
825 * macrocmd.c: Likewise.
826 * main.c: Likewise.
827 * mdebugread.c: Likewise.
828 * mem-break.c: Likewise.
829 * memattr.c: Likewise.
830 * memory-map.c: Likewise.
831 * mep-tdep.c: Likewise.
832 * mi/mi-cmd-break.c: Likewise.
833 * mi/mi-cmd-disas.c: Likewise.
834 * mi/mi-cmd-env.c: Likewise.
835 * mi/mi-cmd-stack.c: Likewise.
836 * mi/mi-cmd-var.c: Likewise.
837 * mi/mi-cmds.c: Likewise.
838 * mi/mi-console.c: Likewise.
839 * mi/mi-getopt.c: Likewise.
840 * mi/mi-interp.c: Likewise.
841 * mi/mi-main.c: Likewise.
842 * mi/mi-parse.c: Likewise.
843 * microblaze-rom.c: Likewise.
844 * microblaze-tdep.c: Likewise.
845 * mingw-hdep.c: Likewise.
846 * minidebug.c: Likewise.
847 * minsyms.c: Likewise.
848 * mips-irix-tdep.c: Likewise.
849 * mips-linux-tdep.c: Likewise.
850 * mips-tdep.c: Likewise.
851 * mips64obsd-tdep.c: Likewise.
852 * mipsnbsd-tdep.c: Likewise.
853 * mipsread.c: Likewise.
854 * mn10300-linux-tdep.c: Likewise.
855 * mn10300-tdep.c: Likewise.
856 * monitor.c: Likewise.
857 * moxie-tdep.c: Likewise.
858 * mt-tdep.c: Likewise.
859 * nat/linux-btrace.c: Likewise.
860 * nat/linux-osdata.c: Likewise.
861 * nat/linux-procfs.c: Likewise.
862 * nat/linux-ptrace.c: Likewise.
863 * nat/linux-waitpid.c: Likewise.
864 * nbsd-tdep.c: Likewise.
865 * nios2-linux-tdep.c: Likewise.
866 * nto-procfs.c: Likewise.
867 * nto-tdep.c: Likewise.
868 * objc-lang.c: Likewise.
869 * objfiles.c: Likewise.
870 * opencl-lang.c: Likewise.
871 * osabi.c: Likewise.
872 * osdata.c: Likewise.
873 * p-exp.y: Likewise.
874 * p-lang.c: Likewise.
875 * p-typeprint.c: Likewise.
876 * parse.c: Likewise.
877 * posix-hdep.c: Likewise.
878 * ppc-linux-nat.c: Likewise.
879 * ppc-sysv-tdep.c: Likewise.
880 * ppcfbsd-tdep.c: Likewise.
881 * ppcnbsd-tdep.c: Likewise.
882 * ppcobsd-tdep.c: Likewise.
883 * printcmd.c: Likewise.
884 * procfs.c: Likewise.
885 * prologue-value.c: Likewise.
886 * python/py-auto-load.c: Likewise.
887 * python/py-gdb-readline.c: Likewise.
888 * ravenscar-thread.c: Likewise.
889 * regcache.c: Likewise.
890 * registry.c: Likewise.
891 * remote-fileio.c: Likewise.
892 * remote-m32r-sdi.c: Likewise.
893 * remote-mips.c: Likewise.
894 * remote-notif.c: Likewise.
895 * remote-sim.c: Likewise.
896 * remote.c: Likewise.
897 * reverse.c: Likewise.
898 * rs6000-aix-tdep.c: Likewise.
899 * ser-base.c: Likewise.
900 * ser-go32.c: Likewise.
901 * ser-mingw.c: Likewise.
902 * ser-pipe.c: Likewise.
903 * ser-tcp.c: Likewise.
904 * ser-unix.c: Likewise.
905 * serial.c: Likewise.
906 * sh-tdep.c: Likewise.
907 * sh64-tdep.c: Likewise.
908 * shnbsd-tdep.c: Likewise.
909 * skip.c: Likewise.
910 * sol-thread.c: Likewise.
911 * solib-dsbt.c: Likewise.
912 * solib-frv.c: Likewise.
913 * solib-osf.c: Likewise.
914 * solib-som.c: Likewise.
915 * solib-spu.c: Likewise.
916 * solib-target.c: Likewise.
917 * solib.c: Likewise.
918 * somread.c: Likewise.
919 * source.c: Likewise.
920 * sparc-nat.c: Likewise.
921 * sparc-sol2-tdep.c: Likewise.
922 * sparc-tdep.c: Likewise.
923 * sparc64-tdep.c: Likewise.
924 * sparc64fbsd-tdep.c: Likewise.
925 * sparc64nbsd-tdep.c: Likewise.
926 * sparcnbsd-tdep.c: Likewise.
927 * spu-linux-nat.c: Likewise.
928 * spu-multiarch.c: Likewise.
929 * spu-tdep.c: Likewise.
930 * stabsread.c: Likewise.
931 * stack.c: Likewise.
932 * std-regs.c: Likewise.
933 * symfile.c: Likewise.
934 * symmisc.c: Likewise.
935 * symtab.c: Likewise.
936 * target.c: Likewise.
937 * thread.c: Likewise.
938 * tilegx-linux-nat.c: Likewise.
939 * tilegx-tdep.c: Likewise.
940 * top.c: Likewise.
941 * tracepoint.c: Likewise.
942 * tui/tui-command.c: Likewise.
943 * tui/tui-data.c: Likewise.
944 * tui/tui-disasm.c: Likewise.
945 * tui/tui-file.c: Likewise.
946 * tui/tui-layout.c: Likewise.
947 * tui/tui-out.c: Likewise.
948 * tui/tui-regs.c: Likewise.
949 * tui/tui-source.c: Likewise.
950 * tui/tui-stack.c: Likewise.
951 * tui/tui-win.c: Likewise.
952 * tui/tui-windata.c: Likewise.
953 * tui/tui-winsource.c: Likewise.
954 * typeprint.c: Likewise.
955 * ui-file.c: Likewise.
956 * ui-out.c: Likewise.
957 * user-regs.c: Likewise.
958 * utils.c: Likewise.
959 * v850-tdep.c: Likewise.
960 * valarith.c: Likewise.
961 * valops.c: Likewise.
962 * valprint.c: Likewise.
963 * value.c: Likewise.
964 * varobj.c: Likewise.
965 * vax-tdep.c: Likewise.
966 * vaxnbsd-tdep.c: Likewise.
967 * vaxobsd-tdep.c: Likewise.
968 * windows-nat.c: Likewise.
969 * xcoffread.c: Likewise.
970 * xml-support.c: Likewise.
971 * xstormy16-tdep.c: Likewise.
972 * xtensa-linux-nat.c: Likewise.
973
dccbb609
GB
9742014-08-07 Gary Benson <gbenson@redhat.com>
975
976 * common/common-defs.h: Include gdb_assert.h.
977 * aarch64-tdep.c: Do not include gdb_assert.h.
978 * addrmap.c: Likewise.
979 * aix-thread.c: Likewise.
980 * alpha-linux-tdep.c: Likewise.
981 * alpha-mdebug-tdep.c: Likewise.
982 * alphanbsd-tdep.c: Likewise.
983 * amd64-nat.c: Likewise.
984 * amd64-tdep.c: Likewise.
985 * amd64bsd-nat.c: Likewise.
986 * amd64fbsd-nat.c: Likewise.
987 * amd64fbsd-tdep.c: Likewise.
988 * amd64nbsd-nat.c: Likewise.
989 * amd64nbsd-tdep.c: Likewise.
990 * amd64obsd-nat.c: Likewise.
991 * amd64obsd-tdep.c: Likewise.
992 * arch-utils.c: Likewise.
993 * arm-tdep.c: Likewise.
994 * armbsd-tdep.c: Likewise.
995 * auxv.c: Likewise.
996 * bcache.c: Likewise.
997 * bfin-tdep.c: Likewise.
998 * blockframe.c: Likewise.
999 * breakpoint.c: Likewise.
1000 * bsd-kvm.c: Likewise.
1001 * bsd-uthread.c: Likewise.
1002 * buildsym.c: Likewise.
1003 * c-exp.y: Likewise.
1004 * c-lang.c: Likewise.
1005 * charset.c: Likewise.
1006 * cleanups.c: Likewise.
1007 * cli-out.c: Likewise.
1008 * cli/cli-decode.c: Likewise.
1009 * cli/cli-dump.c: Likewise.
1010 * cli/cli-logging.c: Likewise.
1011 * cli/cli-script.c: Likewise.
1012 * cli/cli-utils.c: Likewise.
1013 * coffread.c: Likewise.
1014 * common/common-utils.c: Likewise.
1015 * common/queue.h: Likewise.
1016 * common/signals.c: Likewise.
1017 * common/vec.h: Likewise.
1018 * complaints.c: Likewise.
1019 * completer.c: Likewise.
1020 * corelow.c: Likewise.
1021 * cp-abi.c: Likewise.
1022 * cp-name-parser.y: Likewise.
1023 * cp-namespace.c: Likewise.
1024 * cp-support.c: Likewise.
1025 * cris-tdep.c: Likewise.
1026 * dbxread.c: Likewise.
1027 * dictionary.c: Likewise.
1028 * doublest.c: Likewise.
1029 * dsrec.c: Likewise.
1030 * dummy-frame.c: Likewise.
1031 * dwarf2-frame-tailcall.c: Likewise.
1032 * dwarf2-frame.c: Likewise.
1033 * dwarf2expr.c: Likewise.
1034 * dwarf2loc.c: Likewise.
1035 * dwarf2read.c: Likewise.
1036 * eval.c: Likewise.
1037 * event-loop.c: Likewise.
1038 * exceptions.c: Likewise.
1039 * expprint.c: Likewise.
1040 * f-valprint.c: Likewise.
1041 * fbsd-nat.c: Likewise.
1042 * findvar.c: Likewise.
1043 * frame-unwind.c: Likewise.
1044 * frame.c: Likewise.
1045 * frv-tdep.c: Likewise.
1046 * gcore.c: Likewise.
1047 * gdb-dlfcn.c: Likewise.
1048 * gdb_bfd.c: Likewise.
1049 * gdbarch.c: Likewise.
1050 * gdbarch.sh: Likewise.
1051 * gdbtypes.c: Likewise.
1052 * gnu-nat.c: Likewise.
1053 * gnu-v3-abi.c: Likewise.
1054 * go-lang.c: Likewise.
1055 * guile/scm-exception.c: Likewise.
1056 * guile/scm-gsmob.c: Likewise.
1057 * guile/scm-lazy-string.c: Likewise.
1058 * guile/scm-math.c: Likewise.
1059 * guile/scm-pretty-print.c: Likewise.
1060 * guile/scm-safe-call.c: Likewise.
1061 * guile/scm-utils.c: Likewise.
1062 * guile/scm-value.c: Likewise.
1063 * h8300-tdep.c: Likewise.
1064 * hppa-hpux-nat.c: Likewise.
1065 * hppa-tdep.c: Likewise.
1066 * hppanbsd-tdep.c: Likewise.
1067 * hppaobsd-tdep.c: Likewise.
1068 * i386-darwin-nat.c: Likewise.
1069 * i386-darwin-tdep.c: Likewise.
1070 * i386-nto-tdep.c: Likewise.
1071 * i386-tdep.c: Likewise.
1072 * i386bsd-nat.c: Likewise.
1073 * i386fbsd-tdep.c: Likewise.
1074 * i386gnu-nat.c: Likewise.
1075 * i386nbsd-tdep.c: Likewise.
1076 * i386obsd-tdep.c: Likewise.
1077 * i387-tdep.c: Likewise.
1078 * ia64-libunwind-tdep.c: Likewise.
1079 * ia64-tdep.c: Likewise.
1080 * inf-ptrace.c: Likewise.
1081 * inf-ttrace.c: Likewise.
1082 * infcall.c: Likewise.
1083 * infcmd.c: Likewise.
1084 * infrun.c: Likewise.
1085 * inline-frame.c: Likewise.
1086 * interps.c: Likewise.
1087 * jv-lang.c: Likewise.
1088 * jv-typeprint.c: Likewise.
1089 * linux-fork.c: Likewise.
1090 * linux-nat.c: Likewise.
1091 * linux-thread-db.c: Likewise.
1092 * m32c-tdep.c: Likewise.
1093 * m32r-linux-nat.c: Likewise.
1094 * m32r-tdep.c: Likewise.
1095 * m68k-tdep.c: Likewise.
1096 * m68kbsd-nat.c: Likewise.
1097 * m68kbsd-tdep.c: Likewise.
1098 * m88k-tdep.c: Likewise.
1099 * machoread.c: Likewise.
1100 * macroexp.c: Likewise.
1101 * macrotab.c: Likewise.
1102 * maint.c: Likewise.
1103 * mdebugread.c: Likewise.
1104 * memory-map.c: Likewise.
1105 * mep-tdep.c: Likewise.
1106 * mi/mi-common.c: Likewise.
1107 * microblaze-tdep.c: Likewise.
1108 * mingw-hdep.c: Likewise.
1109 * mips-linux-nat.c: Likewise.
1110 * mips-linux-tdep.c: Likewise.
1111 * mips-tdep.c: Likewise.
1112 * mips64obsd-tdep.c: Likewise.
1113 * mipsnbsd-tdep.c: Likewise.
1114 * mn10300-linux-tdep.c: Likewise.
1115 * mn10300-tdep.c: Likewise.
1116 * moxie-tdep.c: Likewise.
1117 * mt-tdep.c: Likewise.
1118 * nat/linux-btrace.c: Likewise.
1119 * nat/linux-osdata.c: Likewise.
1120 * nat/linux-ptrace.c: Likewise.
1121 * nat/mips-linux-watch.c: Likewise.
1122 * nios2-linux-tdep.c: Likewise.
1123 * nios2-tdep.c: Likewise.
1124 * objc-lang.c: Likewise.
1125 * objfiles.c: Likewise.
1126 * obsd-nat.c: Likewise.
1127 * opencl-lang.c: Likewise.
1128 * osabi.c: Likewise.
1129 * parse.c: Likewise.
1130 * ppc-linux-nat.c: Likewise.
1131 * ppc-sysv-tdep.c: Likewise.
1132 * ppcfbsd-nat.c: Likewise.
1133 * ppcfbsd-tdep.c: Likewise.
1134 * ppcnbsd-nat.c: Likewise.
1135 * ppcnbsd-tdep.c: Likewise.
1136 * ppcobsd-nat.c: Likewise.
1137 * ppcobsd-tdep.c: Likewise.
1138 * printcmd.c: Likewise.
1139 * procfs.c: Likewise.
1140 * prologue-value.c: Likewise.
1141 * psymtab.c: Likewise.
1142 * python/py-lazy-string.c: Likewise.
1143 * python/py-value.c: Likewise.
1144 * regcache.c: Likewise.
1145 * reggroups.c: Likewise.
1146 * registry.c: Likewise.
1147 * remote-sim.c: Likewise.
1148 * remote.c: Likewise.
1149 * rs6000-aix-tdep.c: Likewise.
1150 * rs6000-tdep.c: Likewise.
1151 * s390-linux-tdep.c: Likewise.
1152 * score-tdep.c: Likewise.
1153 * ser-base.c: Likewise.
1154 * ser-mingw.c: Likewise.
1155 * sh-tdep.c: Likewise.
1156 * sh64-tdep.c: Likewise.
1157 * solib-darwin.c: Likewise.
1158 * solib-spu.c: Likewise.
1159 * solib-svr4.c: Likewise.
1160 * source.c: Likewise.
1161 * sparc-nat.c: Likewise.
1162 * sparc-sol2-tdep.c: Likewise.
1163 * sparc-tdep.c: Likewise.
1164 * sparc64-sol2-tdep.c: Likewise.
1165 * sparc64-tdep.c: Likewise.
1166 * sparc64fbsd-tdep.c: Likewise.
1167 * sparc64nbsd-tdep.c: Likewise.
1168 * sparc64obsd-tdep.c: Likewise.
1169 * sparcnbsd-tdep.c: Likewise.
1170 * sparcobsd-tdep.c: Likewise.
1171 * spu-multiarch.c: Likewise.
1172 * spu-tdep.c: Likewise.
1173 * stabsread.c: Likewise.
1174 * stack.c: Likewise.
1175 * symfile.c: Likewise.
1176 * symtab.c: Likewise.
1177 * target-descriptions.c: Likewise.
1178 * target-memory.c: Likewise.
1179 * target.c: Likewise.
1180 * tic6x-linux-tdep.c: Likewise.
1181 * tic6x-tdep.c: Likewise.
1182 * tilegx-linux-nat.c: Likewise.
1183 * tilegx-tdep.c: Likewise.
1184 * top.c: Likewise.
1185 * tramp-frame.c: Likewise.
1186 * tui/tui-out.c: Likewise.
1187 * tui/tui-winsource.c: Likewise.
1188 * ui-out.c: Likewise.
1189 * user-regs.c: Likewise.
1190 * utils.c: Likewise.
1191 * v850-tdep.c: Likewise.
1192 * valops.c: Likewise.
1193 * value.c: Likewise.
1194 * varobj.c: Likewise.
1195 * vax-nat.c: Likewise.
1196 * xml-syscall.c: Likewise.
1197 * xml-tdesc.c: Likewise.
1198 * xstormy16-tdep.c: Likewise.
1199 * xtensa-linux-nat.c: Likewise.
1200 * xtensa-tdep.c: Likewise.
1201
e76df0d0
GB
12022014-08-07 Gary Benson <gbenson@redhat.com>
1203
1204 * common/common-defs.h: Include common-utils.h.
1205 * defs.h: Do not include common-utils.h.
1206 * common/gdb_assert.h: Likewise.
1207 * darwin-nat.h: Likewise.
1208 * nat/linux-btrace.c: Likewise.
1209 * target/waitstatus.h: Likewise.
1210
4cb9c816
GB
12112014-08-07 Gary Benson <gbenson@redhat.com>
1212
1213 * common/common-defs.h: Include ptid.h.
1214 * defs.h: Do not include ptid.h.
1215 * inferior.h: Likewise.
1216 * infrun.h: Likewise.
1217 * nat/linux-btrace.h: Likewise.
1218 * nat/linux-osdata.h: Likewise.
1219 * target/waitstatus.h: Likewise.
1220
3995eeee
GB
12212014-08-07 Gary Benson <gbenson@redhat.com>
1222
1223 * common/common-defs.h: Include gdb_locale.h.
1224 * defs.h: Do not include gdb_locale.h.
1225
cb9f1a9b
GB
12262014-08-07 Gary Benson <gbenson@redhat.com>
1227
1228 * common/common-defs.h: Include gdb/signals.h.
1229 * defs.h: Do not include gdb/signals.h.
1230
a5fceff8
GB
12312014-08-07 Gary Benson <gbenson@redhat.com>
1232
1233 * common/common-defs.h: Include pathmax.h.
1234 * defs.h: Do not include pathmax.h.
1235
b9391142
GB
12362014-08-07 Gary Benson <gbenson@redhat.com>
1237
1238 * common/common-defs.h: Include libiberty.h.
1239 * defs.h: Do not include libiberty.h.
1240 * common/queue.h: Likewise.
1241 * cp-name-parser.y: Likewise.
1242 * mi/mi-cmd-catch.c: Likewise.
1243 * python/python.c: Likewise.
1244
0e443c87
GB
12452014-08-07 Gary Benson <gbenson@redhat.com>
1246
1247 * common/common-defs.h: Include ansidecl.h.
1248 * defs.h: Do not include ansidecl.h.
1249 * common/buffer.h: Likewise.
1250 * common/common-utils.h: Likewise.
1251
8ebb3f56
GB
12522014-08-07 Gary Benson <gbenson@redhat.com>
1253
1254 * common/common-defs.h: Include stddef.h.
1255 * defs.h: Do not include stddef.h.
1256 * common/common-utils.h: Likewise.
1257 * amd64fbsd-nat.c: Likewise.
1258 * bcache.c: Likewise.
1259 * charset.c: Likewise.
1260 * common/buffer.h: Likewise.
1261 * common/vec.h: Likewise.
1262 * i386bsd-nat.c: Likewise.
1263 * nat/linux-btrace.h: Likewise.
1264 * ppcfbsd-nat.c: Likewise.
1265 * ppcnbsd-tdep.h: Likewise.
1266 * ppcobsd-nat.c: Likewise.
1267 * ppcobsd-tdep.h: Likewise.
1268 * python/py-gdb-readline.c: Likewise.
1269
8980bdf6
GB
12702014-08-07 Gary Benson <gbenson@redhat.com>
1271
1272 * common/common-defs.h: Include stdarg.h.
1273 * defs.h: Do not include stdarg.h.
1274 * ada-lang.c: Likewise.
1275 * common/common-utils.h: Likewise.
1276 * guile/scm-string.c: Likewise.
1277 * guile/scm-utils.c: Likewise.
1278 * m32c-tdep.c: Likewise.
1279
d7096f71
GB
12802014-08-07 Gary Benson <gbenson@redhat.com>
1281
1282 * common/common-defs.h: Include stdlib.h.
1283 * defs.h: Do not include stdlib.h.
1284 * addrmap.c: Likewise.
1285 * bcache.c: Likewise.
1286 * common/buffer.c: Likewise.
1287 * common/common-utils.c: Likewise.
1288 * cp-name-parser.y: Likewise.
1289 * go32-nat.c: Likewise.
1290 * mn10300-linux-tdep.c: Likewise.
1291 * nat/linux-osdata.c: Likewise.
1292 * tui/tui.c: Likewise.
1293 * windows-nat.c: Likewise.
1294
d02f550d
GB
12952014-08-07 Gary Benson <gbenson@redhat.com>
1296
1297 * common/common-defs.h: Include stdio.h.
1298 * defs.h: Do not include stdio.h.
1299 * ada-lang.c: Likewise.
1300 * common/buffer.c: Likewise.
1301 * common/common-utils.c: Likewise.
1302 * cp-name-parser.y: Likewise.
1303 * gnu-nat.c: Likewise.
1304 * go32-nat.c: Likewise.
1305 * i386gnu-nat.c: Likewise.
1306 * proc-api.c: Likewise.
1307 * proc-events.c: Likewise.
1308 * proc-flags.c: Likewise.
1309 * proc-why.c: Likewise.
1310 * python/python-internal.h: Likewise.
1311 * target-memory.c: Likewise.
1312 * tui/tui-io.c: Likewise.
1313 * tui/tui.c: Likewise.
1314
b6d7a4bf
SM
13152014-08-06 Simon Marchi <simon.marchi@ericsson.com>
1316
1317 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
1318 (scan_dyntag_auxv): Same.
1319
af19829b
YQ
13202014-08-06 Yao Qi <yao@codesourcery.com>
1321
1322 * amd64-linux-nat.c: Remove duplicated include
1323 "x86-linux-nat.h".
1324 * i386-linux-nat.c: Likewise.
1325
8e07a239
YQ
13262014-08-06 Yao Qi <yao@codesourcery.com>
1327
1328 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
1329 operand" with "Special opcode" in comments.
1330
7bfe8241
GB
13312014-08-05 Gary Benson <gbenson@redhat.com>
1332
1333 * interps.c (initialize_interps): Remove prototype.
1334 (interpreter_initialized): Remove static global.
1335 (interp_add): Do not call initialize_interps.
1336 (initialize_interps): Remove function.
1337
d6c95504
GB
13382014-08-05 Gary Benson <gbenson@redhat.com>
1339
1340 * utils.c (vwarning): Remove spurious va_end.
1341
241fd515
AM
13422014-08-05 Alan Modra <amodra@gmail.com>
1343
1344 * charset.c (convert_between_encodings): Cast result of obstack_base.
1345 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
1346 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
1347 (read_unwind_info): Use size_t for some locals.
1348 * jit.c (finalize_symtab): Likewise.
1349 * utils.c (hashtab_obstack_allocate): Likewise.
1350 * symmisc.c (print_objfile_statistics): Update format strings.
1351
dc304a94
JK
13522014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1353
1354 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
1355 (Changes in GDB 7.8): ... here.
1356
3cecbbbe
TT
13572014-08-04 Tom Tromey <tromey@redhat.com>
1358
1359 * target.c (set_targetdebug): New function.
1360 (initialize_targets): Pass set_targetdebug when creating "set
1361 debug target".
1362
6908c509
JB
13632014-08-01 Joel Brobecker <brobecker@adacore.com>
1364
1365 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
1366 if detecting a variable-sized field that is not the last field.
1367 Fix struct type length computation.
1368
53e8f97d
JB
13692014-08-01 Joel Brobecker <brobecker@adacore.com>
1370
1371 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1372 Add debug trace.
1373
e068c55d
JB
13742014-08-01 Joel Brobecker <brobecker@adacore.com>
1375
1376 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
1377 Remove "+ 8" offset in computation of CHAIN_VMA.
1378
4d4ca2a1
DE
13792014-07-31 Doug Evans <dje@google.com>
1380
1381 * inflow.c (child_terminal_inferior): Add comment.
1382 (child_terminal_ours_for_output): Add comment.
1383 (child_terminal_ours): Add comment.
1384 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
1385 (linux_nat_terminal_ours): Add comment.
1386
462f517e
GB
13872014-07-31 Gary Benson <gbenson@redhat.com>
1388
1389 * common/btrace-common.h: Do not include defs.h or server.h.
1390 * nat/mips-linux-watch.h: Likewise.
1391 * gdb-dlfcn.h: Do not include defs.h.
1392 * tracefile.h: Likewise.
1393
74228e77
RM
13942014-07-30 Roland McGrath <mcgrathr@google.com>
1395
1396 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
1397
014f9477
TT
13982014-07-30 Tom Tromey <tromey@redhat.com>
1399
1400 * bsd-kvm.c (bsd_kvm_open): Constify.
1401 * corelow.c (core_open): Constify.
1402 * ctf.c (ctf_open): Constify.
1403 * dbug-rom.c (dbug_open): Constify.
1404 * exec.c (exec_open): Constify.
1405 * m32r-rom.c (m32r_open, mon2000_open): Constify.
1406 * microblaze-rom.c (picobug_open): Constify.
1407 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
1408 Constify.
1409 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
1410 * record-btrace.c (record_btrace_open): Constify.
1411 * record-full.c (record_full_core_open_1, record_full_open_1)
1412 (record_full_open): Constify.
1413 * remote-m32r-sdi.c (m32r_open): Constify.
1414 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
1415 (rockhopper_open, lsi_open): Constify.
1416 * remote-sim.c (gdbsim_open): Constify.
1417 * remote.c (remote_open, extended_remote_open, remote_open_1):
1418 Constify.
1419 * target.h (struct target_ops) <to_open>: Make "arg" const.
1420 * tracefile-tfile.c (tfile_open): Constify.
1421
e799154c
TT
14222014-07-30 Tom Tromey <tromey@redhat.com>
1423
1424 * breakpoint.c (map_breakpoint_numbers): Update.
1425 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
1426 (get_number_const): New function.
1427 (get_number): Rewrite using get_number_const.
1428 (init_number_or_range): Make "string" const.
1429 (number_is_in_list): Make "list" const.
1430 * cli/cli-utils.h (get_number_const): Declare.
1431 (struct get_number_or_range_state) <string, end_ptr>: Now const.
1432 (init_number_or_range, number_is_in_list): Update.
1433 * printcmd.c (map_display_numbers): Update.
1434 * value.c (value_from_history_ref): Constify.
1435 * value.h (value_from_history_ref): Update.
1436
5f08566b
TT
14372014-07-30 Tom Tromey <tromey@redhat.com>
1438
1439 * corefile.c (hook_type, call_extra_exec_file_hooks)
1440 (specify_exec_file_hook): Constify.
1441 * exec.c (exec_file_attach): Make "filename" const.
1442 * gdbcore.h (deprecated_exec_file_display_hook)
1443 (specify_exec_file_hook, exec_file_attach): Constify.
1444 * main.c (captured_main): Use catch_command_errors_const.
1445
8981c758
TT
14462014-07-30 Tom Tromey <tromey@redhat.com>
1447
1448 * target.c (open_target): New function.
1449 (add_target_with_completer, add_deprecated_target_alias): Use
1450 set_cmd_sfunc, set_cmd_context.
1451 (debug_to_open): Remove.
1452 (setup_target_debug): Update.
1453
a1c7835a
YQ
14542014-07-30 Yao Qi <yao@codesourcery.com>
1455
1456 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
1457 comments.
1458 * parse.c (exp_iterate): Update comments.
1459
976411d6
GB
14602014-07-30 Gary Benson <gbenson@redhat.com>
1461
1462 * common/common-defs.h: New file.
1463 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
1464 * defs.h: Include common-defs.h.
1465 Do not include config.h or build-gnulib/config.h.
1466
5d4848a4
GB
14672014-07-30 Gary Benson <gbenson@redhat.com>
1468
1469 * common/common-utils.h: Do not include config.h.
1470 * nat/linux-btrace.h: Likewise.
1471
d41f6d8e
GB
14722014-07-30 Gary Benson <gbenson@redhat.com>
1473
1474 * btrace.c: Include defs.h.
1475 * common/ptid.c: Include defs.h or server.h as appropriate.
1476 * nat/mips-linux-watch.c: Likewise.
1477
84202f9c
TT
14782014-07-29 Tom Tromey <tromey@redhat.com>
1479
1480 * target.c (target_is_pushed): Simplify.
1481
2530441c
JB
14822014-07-29 Joel Brobecker <brobecker@adacore.com>
1483
1484 GDB 7.8 released.
1485
7e09a223
YQ
14862014-07-29 Yao Qi <yao@codesourcery.com>
1487
1488 PR gdb/17206
1489 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
1490
7ebdbe92
DE
14912014-07-28 Doug Evans <xdje42@gmail.com>
1492
1493 PR guile/17203
1494 * guile/scm-param.c (pascm_parameter_defined_p): New function.
1495 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
1496 parameters.
1497
f347ffc9
WN
14982014-07-28 Will Newton <will.newton@linaro.org>
1499
1500 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
1501 (THUMB2_SET_R7_SIGRETURN2): Likewise.
1502 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
1503 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
1504 (THUMB2_EABI_SYSCALL): Likewise.
1505 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
1506 struct tramp_frame.
1507 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
1508 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
1509
37c5f1f7
DE
15102014-07-27 Doug Evans <xdje42@gmail.com>
1511
1512 * guile/scm-param.c (pascm_print_param_smob): Fix output.
1513
0c3abbc7
DE
15142014-07-27 Doug Evans <xdje42@gmail.com>
1515
1516 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
1517
e76c5d17
DE
15182014-07-26 Ludovic Courtès <ludo@gnu.org>
1519 Doug Evans <xdje42@gmail.com>
1520
1521 PR guile/17146
1522 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
1523 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
1524 * configure.ac: Try to use guild to compile an scm file, if it fails
1525 then disable guile support.
1526 * configure: Regenerate.
1527 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
1528 GUILE_FILE_LIST.
1529 (GUILE_COMPILED_FILES): New variable.
1530 (GUILE_FILES) Update.
1531 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
1532 (stamp-guile): Compile scm files.
1533 * guile/guile.c (boot_guile_support): New function.
1534 (standard_throw_args_p): New function.
1535 (print_standard_throw_error, print_throw_error): New functions.
1536 (handle_boot_error): New function.
1537 (initialize_scheme_side): Rewrite to call boot_guile_support.
1538 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
1539 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
1540
186fcde0
DE
15412014-07-26 Ludovic Courtès <ludo@gnu.org>
1542 Doug Evans <xdje42@gmail.com>
1543
1544 PR guile/17146
1545 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
1546 * guile/lib/gdb/support.scm: New file.
1547 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
1548 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
1549 All uses updated.
1550 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
1551 All uses updated.
1552 (%assert-type): Ditto, and renamed to assert-type.
1553 (%exception-print-style): Delete.
1554
4df42755
DE
15552014-07-26 Doug Evans <xdje42@gmail.com>
1556
1557 PR build/17105
1558 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
1559 * configure: Regenerate.
1560 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
1561 PYTHON_FILES.
1562 (PYTHON_FILES): New variable.
1563 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
1564 (GUILE_FILES): New variable.
1565 (stamp-python, install-python, uninstall-python): Handle empty
1566 file list.
1567 (stamp-guile, install-guile, uninstall-guile): Ditto.
1568
ee7333ae
DE
15692014-07-26 Doug Evans <xdje42@gmail.com>
1570
1571 PR guile/17177
1572 * guile/lib/gdb.scm (pretty-printers): Export.
1573 (set-pretty-printers!): Export.
1574 * guile/lib/gdb/printing.scm (gdb module): Update.
1575 (prepend-pretty-printer!, append-pretty-printer!): Update.
1576 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
1577 (pretty_printer_list_var): Delete.
1578 (pretty_printer_list): New static global.
1579 (gdbscm_pretty_printers): New function.
1580 (gdbscm_set_pretty_printers_x): New function.
1581 (ppscm_find_pretty_printer_from_gdb): Update.
1582 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
1583 (gdbscm_initialize_pretty_printers): Update.
1584
74edf516
DE
15852014-07-26 Doug Evans <xdje42@gmail.com>
1586
1587 PR 17185
1588 * configure.ac: Add check for header gc/gc.h.
1589 Add check for function setenv.
1590 * configure: Regenerate.
1591 * config.in: Regenerate.
1592 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
1593
d54398a7
MR
15942014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
1595
1596 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
1597 variation in gdbarch matching.
1598
ab16fce8
TT
15992014-07-25 Tom Tromey <tromey@redhat.com>
1600
1601 * exec.c (using_exec_ops): Remove.
1602 (exec_close_1): Update. Remove extraneous block, reindent.
1603 (add_target_sections): Use target_is_pushed.
1604
88056fbb
PA
16052014-07-25 Pedro Alves <palves@redhat.com>
1606
1607 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
1608 * monitor.c (monitor_create_inferior): Likewise.
1609 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
1610 * remote-sim.c (gdbsim_create_inferior): Likewise.
1611 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
1612 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
1613 * windows-nat.c (do_initial_windows_stuff): Likewise.
1614
70509625
PA
16152014-07-25 Pedro Alves <palves@redhat.com>
1616
1617 * NEWS: Mention signal passing and "signal" command changes.
1618 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
1619 comment.
1620 * breakpoint.c (until_break_command): Adjust clear_proceed_status
1621 call.
1622 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
1623 * infcmd.c (proceed_thread_callback, continue_1, step_once)
1624 (jump_command): Adjust clear_proceed_status call.
1625 (signal_command): Warn if other thread that are resumed have
1626 signals that will be delivered. Adjust clear_proceed_status call.
1627 (until_next_command, finish_command)
1628 (proceed_after_attach_callback, attach_command_post_wait)
1629 (attach_command): Adjust clear_proceed_status call.
1630 * infrun.c (proceed_after_vfork_done): Likewise.
1631 (proceed_after_attach_callback): Adjust comment.
1632 (clear_proceed_status_thread): Clear stop_signal if not in pass
1633 state.
1634 (clear_proceed_status_callback): Delete.
1635 (clear_proceed_status): New 'step' parameter. Only clear the
1636 proceed status of threads the command being prepared is about to
1637 resume.
1638 (proceed): If passed in an explicit signal, override stop_signal
1639 with it. Don't pass the last stop signal to the thread we're
1640 resuming.
1641 (init_wait_for_inferior): Adjust clear_proceed_status call.
1642 (switch_back_to_stepped_thread): Clear the signal if it should not
1643 be passed.
1644 * infrun.h (clear_proceed_status): New 'step' parameter.
1645 (user_visible_resume_ptid): Add comment.
1646 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
1647 signal is in pass state.
1648 * remote.c (append_pending_thread_resumptions): Likewise.
1649 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
1650
d8be2939
TT
16512014-07-25 Tom Tromey <tromey@redhat.com>
1652
1653 * target.h (target_stopped_data_address)
1654 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
1655 parentheses.
1656
7d0d9d2b
PL
16572014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
1658
1659 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
1660 comments.
1661 (avr_pointer_to_address): Likewise.
1662
e9e7f724
TT
16632014-07-24 Tom Tromey <tromey@redhat.com>
1664
1665 * monitor.c (compile_pattern): Update.
1666 * target.h (struct target_ops) <to_shortname, to_longname,
1667 to_doc>: Now const.
1668
1947513d
TT
16692014-07-24 Tom Tromey <tromey@redhat.com>
1670
1671 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
1672 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
1673 (add_info_alias, add_com): Make "doc" const.
1674 (print_doc_line): Make "str" const.
1675 (delete_cmd): Update.
1676 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
1677 (print_doc_line): Update.
1678 * cli/cli-script.c (document_command): Update.
1679 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1680 (add_com, add_info, add_info_alias): Update.
1681 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1682 * python/py-cmd.c (cmdpy_destroyer): Update.
1683
64e61d29
TT
16842014-07-24 Tom Tromey <tromey@redhat.com>
1685
1686 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
1687 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
1688 (help_cmd_list): Constify.
1689 (lookup_cmd): Update.
1690 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
1691 const.
1692 (help_cmd_list, apropos_cmd): Update.
1693 * cli/cli-script.c (show_user): Update.
1694 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
1695 * cli/cli-setshow.h (cmd_show_list): Update.
1696 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
1697 (cmd_show_list): Update.
1698 * guile/scm-cmd.c (cmdscm_destroyer): Update.
1699 * python/py-cmd.c (cmdpy_destroyer): Update.
1700
429e55ea
TT
17012014-07-24 Tom Tromey <tromey@redhat.com>
1702
1703 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
1704 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
1705 const.
1706 * command.h (deprecate_cmd): Update.
1707 * maint.c (maintenance_do_deprecate): Add casts.
1708
64669f3b
TT
17092014-07-24 Tom Tromey <tromey@redhat.com>
1710
1711 * cli/cli-decode.c (help_cmd): Make parameter "const".
1712 * cli/cli-decode.h (help_cmd): Update.
1713
d3d3328b
TT
17142014-07-24 Tom Tromey <tromey@redhat.com>
1715
1716 * stack.c (up_silently_base, down_silently_base): Make argument
1717 const.
1718
414842dc
TT
17192014-07-24 Tom Tromey <tromey@redhat.com>
1720
1721 * solib.c (solib_add): Make "pattern" const.
1722 * solib.h (solib_add): Update.
1723
baa336ce
TT
17242014-07-24 Tom Tromey <tromey@redhat.com>
1725
1726 * remote.c (remote_serial_open, print_packet, putpkt)
1727 (putpkt_binary): Constify.
1728 * remote.h (putpkt): Update.
1729
5a19e2d0
TT
17302014-07-24 Tom Tromey <tromey@redhat.com>
1731
1732 * monitor.c (monitor_open): Make "args" const.
1733 * monitor.h (monitor_open): Update.
1734
fc4baa5e
TT
17352014-07-24 Tom Tromey <tromey@redhat.com>
1736
1737 * maint.c (match_bfd_flags): Make "string" const.
1738 (print_bfd_section_info): Remove casts.
1739 (print_objfile_section_info): Make "string" const.
1740
0d5f0dbe
TT
17412014-07-24 Tom Tromey <tromey@redhat.com>
1742
1743 * inf-child.c (inf_child_open_target): Make "arg" const.
1744 * inf-child.h (inf_child_open_target): Update.
1745
41c77899
TT
17462014-07-24 Tom Tromey <tromey@redhat.com>
1747
1748 * environ.c (unset_in_environ): Make "var" const.
1749 * environ.h (unset_in_environ): Update.
1750
93db0d79
TT
17512014-07-24 Tom Tromey <tromey@redhat.com>
1752
1753 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
1754 Make "cmd" const.
1755 (scan_filename_with_cleanup): Likewise.
1756 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
1757 Make arguments const.
1758 (restore_command): Update.
1759
36d6eb95
PA
17602014-07-24 Pedro Alves <palves@redhat.com>
1761
1762 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
1763
8009206a
TT
17642014-07-24 Tom Tromey <tromey@redhat.com>
1765 Gary Benson <gbenson@redhat.com>
1766
1767 * nat/linux-ptrace.c (additional_flags): New global.
1768 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
1769 additional_flags; don't check GDBSERVER.
1770 (linux_ptrace_set_additional_flags): New function.
1771 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
1772 Declare.
1773 * linux-nat.c (_initialize_linux_nat): Call
1774 linux_ptrace_set_additional_flags.
1775
a7068b60
TT
17762014-07-24 Tom Tromey <tromey@redhat.com>
1777
1778 * make-target-delegates (munge_type, write_debugmethod): New
1779 functions.
1780 (debug_names): New global.
1781 ($TARGET_DEBUG_PRINTER): New global.
1782 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
1783 name.
1784 Write debug methods. Generate init_debug_target.
1785 * target-debug.h: New file.
1786 * target-delegates.c: Rebuild.
1787 * target.c: Include target-debug.h.
1788 (debug_target): Hoist definition.
1789 (target_kill, target_get_section_table, target_memory_map)
1790 (target_flash_erase, target_flash_done, target_detach)
1791 (target_disconnect, target_wait, target_resume)
1792 (target_pass_signals, target_program_signals, target_follow_fork)
1793 (target_mourn_inferior, target_search_memory)
1794 (target_thread_address_space, target_close)
1795 (target_find_new_threads, target_core_of_thread)
1796 (target_verify_memory, target_insert_mask_watchpoint)
1797 (target_remove_mask_watchpoint): Remove targetdebug code.
1798 (debug_to_post_attach, debug_to_prepare_to_store)
1799 (debug_to_files_info, debug_to_insert_breakpoint)
1800 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
1801 (debug_to_region_ok_for_hw_watchpoint)
1802 (debug_to_can_accel_watchpoint_condition)
1803 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
1804 (debug_to_watchpoint_addr_within_range)
1805 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
1806 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
1807 (debug_to_terminal_init, debug_to_terminal_inferior)
1808 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
1809 (debug_to_terminal_save_ours, debug_to_terminal_info)
1810 (debug_to_load, debug_to_post_startup_inferior)
1811 (debug_to_insert_fork_catchpoint)
1812 (debug_to_remove_fork_catchpoint)
1813 (debug_to_insert_vfork_catchpoint)
1814 (debug_to_remove_vfork_catchpoint)
1815 (debug_to_insert_exec_catchpoint)
1816 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
1817 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
1818 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
1819 (setup_target_debug): Call init_debug_target.
1820 * target.h (TARGET_DEBUG_PRINTER): New macro.
1821 (struct target_ops) <to_resume, to_wait, to_pass_signals,
1822 to_program_signals>: Use TARGET_DEBUG_PRINTER.
1823
2c51604d
GB
18242014-07-24 Gary Benson <gbenson@redhat.com>
1825
1826 * exceptions.h (throw_vfatal): Renamed to...
1827 (throw_vquit): New declaration.
1828 (throw_quit): Likewise.
1829 * exceptions.c (throw_vfatal): Renamed to...
1830 (throw_vquit): New function.
1831 (throw_quit): Likewise.
1832 (throw_error): Call throw_verror rather than throw_it.
1833 * utils.h (vfatal): Removed.
1834 (fatal): Likewise.
1835 * utils.c (vfatal): Removed.
1836 (fatal): Likewise.
1837 (internal_verror): Replaced call to fatal with call to throw_quit.
1838 (quit): Replaced calls to fatal with calls to throw_quit.
1839
34211963
ME
18402014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
1841
1842 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
1843 target_read_code.
1844
a52b4d3e
ME
18452014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
1846
1847 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
1848 less than zero in conditional expression.
1849
a8bdc56b
TT
18502014-07-23 Tom Tromey <tromey@redhat.com>
1851
1852 * make-target-delegates ($ARGS_PART): Match trailing close paren.
1853 ($INTRO_PART): Don't match whitespace.
1854 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
1855 argument matching.
1856 ($METHOD): Add $METHOD_TRAILER.
1857 (trim): Rewrite.
1858 (scan_target_h): New sub.
1859 Change main loop not to collect state.
1860 * target-delegates.c: Rebuild.
1861
91b52240
GB
18622014-07-23 Gary Benson <gbenson@redhat.com>
1863
1864 * cp-support.c (gdb_demangle): Fix build on systems without
1865 sigaltstack.
1866
45326f6f
JK
18672014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1868
1869 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
1870 for reference entry value target data value.
1871
e214cf6c
JK
18722014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1873
1874 * stack.c (read_frame_arg): Verify value_optimized_out before calling
1875 value_available_contents_eq.
1876
bddbbedd
PA
18772014-07-22 Pedro Alves <palves@redhat.com>
1878
1879 * value.c (allocate_optimized_out_value): Don't mark value as
1880 non-lazy.
1881
45c71484
JW
18822014-07-22 Jiong Wang <jiong.wang@arm.com>
1883
1884 * MAINTAINERS (Write After Approval): Update my email address.
1885
9597b22a
DE
18862014-07-20 Doug Evans <dje@google.com>
1887
1888 PR server/17147
1889 * remote.c (putpkt_binary): Add text to error message.
1890
91101fe5
YQ
18912014-07-20 Yao Qi <yao@codesourcery.com>
1892
1893 * eval.c: Remove "Chill" from comments.
1894 * gdbtypes.h: Likewise.
1895 * symtab.h: Likewise.
1896
c9402c95
YQ
18972014-07-20 Yao Qi <yao@codesourcery.com>
1898
1899 * std-operator.def: Update comments to TERNOP_SLICE.
1900
ae8fddda
YQ
19012014-07-20 Yao Qi <yao@codesourcery.com>
1902
1903 * std-operator.def: Remove BINOP_RANGE.
1904 * breakpoint.c (watchpoint_exp_is_const): Update.
1905 * expprint.c (dump_subexp_body_standard): Likewise.
1906 * eval.c (init_array_element): Remove dead code.
1907 (evaluate_subexp_standard): Likewise.
1908
9c816640
YQ
19092014-07-20 Yao Qi <yao@codesourcery.com>
1910
1911 * std-operator.def: Remove BINOP_IN.
1912 * breakpoint.c (watchpoint_exp_is_const): Update.
1913 * eval.c (evaluate_subexp_standard): Likewise.
1914 * expprint.c (dump_subexp_body_standard): Likewise.
1915
164224e9
ME
19162014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
1917
1918 * microblaze-tdep.c (microblaze_register_names): Add
1919 the rshr and rslr register names.
1920 (microblaze_gdbarch_init): Use of tdesc_has_registers.
1921 Use of tdesc_find_feature. Use of tdesc_data_alloc.
1922 Use of tdesc_numbered_register. Use of
1923 microblaze_register_g_packet_guesses. Use of
1924 tdesc_use_registers. Use of set_gdbarch_register_type.
1925 (microblaze_register_g_packet_guesses): New.
1926 * microblaze-tdep.h (microblaze_reg_num): Add
1927 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
1928 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
1929 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
1930 * features/microblaze-core.xml: New file.
1931 * features/microblaze-stack-protect.xml: New file.
1932 * features/microblaze-with-stack-protect.c: New file.
1933 * features/microblaze-with-stack-protect.xml: New file.
1934 * features/microblaze.xml: New file.
1935 * features/microblaze.c: New file.
1936 * features/Makefile (microblaze-with-stack-protect): Add
1937 microblaze-with-stack-protect microblaze and microblaze-expedite.
1938 * regformats/microblaze-with-stack-protect.dat: New file.
1939 * regformats/microblaze.dat: New file.
1940 * doc/gdb.texinfo (MicroBlaze Features): Added.
1941
e8b2341c
TT
19422014-07-18 Tom Tromey <tromey@redhat.com>
1943
1944 * exec.c (exec_ops): Now static.
1945 * exec.h (exec_ops): Don't declare.
1946
44e89118
TT
19472014-07-18 Tom Tromey <tromey@redhat.com>
1948
1949 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
1950 to find_target_beneath.
1951 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
1952 find_target_beneath.
1953 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
1954
b0ed115f
TT
19552014-07-18 Tom Tromey <tromey@redhat.com>
1956
1957 PR gdb/17130:
1958 * utils.c (quit): Use target_supports_terminal_ours.
1959 * target.h (target_supports_terminal_ours): Declare.
1960 * target.c (target_supports_delete_record): Don't check
1961 to_delete_record against NULL.
1962 (target_supports_terminal_ours): New function.
1963
e75fdfca
TT
19642014-07-18 Tom Tromey <tromey@redhat.com>
1965
1966 PR gdb/17130:
1967 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
1968 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
1969 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
1970 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
1971 * windows-nat.c (windows_xfer_partial): Always delegate.
1972 * record-btrace.c (record_btrace_xfer_partial): Simplify
1973 delegation.
1974 (record_btrace_fetch_registers, record_btrace_store_registers)
1975 (record_btrace_prepare_to_store, record_btrace_resume)
1976 (record_btrace_wait, record_btrace_find_new_threads)
1977 (record_btrace_thread_alive): Likewise.
1978 * procfs.c (procfs_xfer_partial): Always delegate.
1979 * corelow.c (core_xfer_partial): Always delegate.
1980 * sol-thread.c (sol_find_new_threads): Simplify delegation.
1981
83814951
TT
19822014-07-18 Tom Tromey <tromey@redhat.com>
1983
1984 * exec.c (exec_make_note_section): Move earlier.
1985
b8b8facf
DE
19862014-07-17 Doug Evans <dje@google.com>
1987
74b49205 1988 PR gdb/17170
b8b8facf
DE
1989 * maint.c (count_symtabs_and_blocks): Handle NULL
1990 current_program_space.
1991 (report_command_stats): Check global enabled flag in addition to
1992 recorded enabled flag.
1993 (make_command_stats_cleanup): Handle msg_type == 0, startup.
1994
69ff6be5
PA
19952014-07-16 Pedro Alves <palves@redhat.com>
1996
1997 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
1998
252db1b5
TT
19992014-07-16 Tom Tromey <tromey@redhat.com>
2000
2001 * target.h (struct target_ops) <to_delete_record>: Reformat
2002 comment.
2003
a432721e
TT
20042014-07-16 Tom Tromey <tromey@redhat.com>
2005
2006 * target-delegates.c: Rebuild.
2007
487d9753
PL
20082014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
2009
2010 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
2011 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
2012 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
2013 (avr_pointer_to_address): Likewise.
2014 (avr_address_class_type_flags): New function.
2015 (avr_address_class_type_flags_to_name): Likewise.
2016 (avr_address_class_name_to_type_flags): Likewise.
2017 (avr_gdbarch_init): Set address_class_type_flags,
2018 address_class_type_flags_to_name and
2019 address_class_name_to_type_flags.
2020
57745c90
PA
20212014-07-15 Pedro Alves <palves@redhat.com>
2022
2023 * linux-nat.c (kill_callback): Save errno and work with saved
2024 copy.
2025
2d40be18
SM
20262014-07-15 Simon Marchi <simon.marchi@ericsson.com>
2027
2028 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
2029
572f6555
EBM
20302014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2031
2032 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
2033 breakpoint support correctly.
2034
cc1c52ad
PA
20352014-07-14 Pedro Alves <palves@redhat.com>
2036
2037 * utils.c (prompt_for_continue): Call target_terminal_ours.
2038
1e973570
PA
20392014-07-14 Pedro Alves <palves@redhat.com>
2040
2041 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
2042 catch_errors. Don't re-enable stdin or notify observers where,
2043 and rethrow error.
2044 (fetch_inferior_event_wrapper): Delete.
2045
93d6eb10
PA
20462014-07-14 Pedro Alves <palves@redhat.com>
2047
2048 PR gdb/17072
2049 * top.c: Include "inf-loop.h".
2050 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
2051 field.
2052 (gdb_readline_wrapper_cleanup): Make the target async again, if it
2053 was async before.
2054 (gdb_readline_wrapper): Store whether the target is async, and
2055 make it sync.
2056
0017922d
PA
20572014-07-14 Pedro Alves <palves@redhat.com>
2058
2059 PR gdb/17072
2060 * top.c (gdb_readline_wrapper_line): Tweak comment.
2061 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
2062 the input handler callback.
2063
94696ad3
PA
20642014-07-14 Pedro Alves <palves@redhat.com>
2065
2066 PR gdb/17072
2067 * main.c: Include event-top.h.
2068 (handle_command_errors): New function.
2069 (catch_command_errors, catch_command_errors_const): Use it.
2070
9d1e69a2
PA
20712014-07-14 Pedro Alves <palves@redhat.com>
2072
2073 * exceptions.c (catch_command_errors, catch_command_errors_const):
2074 Moved to main.c.
2075 * exceptions.h (catch_command_errors_ftype)
2076 (catch_command_errors_const_ftype): Moved to main.c.
2077 (catch_command_errors, catch_command_errors_const): Delete
2078 declarations.
2079 * main.c (catch_command_errors_ftype)
2080 (catch_command_errors_const_ftype): Moved here from exceptions.h.
2081 (catch_command_errors, catch_command_errors_const)): Moved here
2082 from exceptions.c and make static.
2083
feefc97b
PA
20842014-07-14 Pedro Alves <palves@redhat.com>
2085
2086 * exceptions.c (print_any_exception): Delete.
2087 (catch_exceptions_with_msg): Use exception_print instead of
2088 print_any_exception.
2089 (catch_errors): Use exception_fprintf instead of
2090 print_any_exception.
2091 (catch_command_errors, catch_command_errors_const): Use
2092 exception_print instead of print_any_exception.
2093
c933f875
PA
20942014-07-14 Pedro Alves <palves@redhat.com>
2095
2096 * infcall.c (run_inferior_call): Set 'sync_execution' while
2097 running the inferior call.
2098
feb6f816
PA
20992014-07-14 Pedro Alves <palves@redhat.com>
2100
2101 * value.c (value_contents_equal): Delete function.
2102 * value.h (value_contents_equal): Delete declaration.
2103
d98b7a16
TT
21042014-07-14 Tom Tromey <tromey@redhat.com>
2105
2106 PR exp/17106:
2107 * gdbtypes.c (is_dynamic_type_internal): New function, from
2108 is_dynamic_type.
2109 (is_dynamic_type): Rewrite.
2110 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
2111 (resolve_dynamic_struct): Likewise.
2112 (resolve_dynamic_type_internal): New function, from
2113 resolve_dynamic_type.
2114 (resolve_dynamic_type): Rewrite.
2115
548740d6
TT
21162014-07-14 Tom Tromey <tromey@redhat.com>
2117
2118 * target.c (target_require_runnable): Also check record_stratum.
2119 Update comment.
2120
808f7ab1
YQ
21212014-07-11 Yao Qi <yao@codesourcery.com>
2122
2123 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
2124 thumb_instruction_restores_sp return true.
2125
540314bd
YQ
21262014-07-11 Yao Qi <yao@codesourcery.com>
2127
2128 * arm-tdep.c (thumb_instruction_restores_sp): New function.
2129 (thumb_in_function_epilogue_p): Call
2130 thumb_instruction_restores_sp.
2131
1db01f22
YQ
21322014-07-11 Yao Qi <yao@codesourcery.com>
2133
2134 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
2135 'add sp, #imm'.
2136 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
2137
3116063b
GB
21382014-07-11 Gary Benson <gbenson@redhat.com>
2139
2140 * amd64-linux-nat.c (gdbcore.h): Remove include.
2141 (regset.h): Likewise.
2142 (nat/linux-btrace.h): Likewise.
2143 (btrace.h): Likewise.
2144 (gdb_assert.h): Likewise.
2145 (string.h): Likewise.
2146 (sys/uio.h): Likewise.
2147 (sys/debugreg.h): Likewise.
2148 (sys/syscall.h): Likewise.
2149 (sys/procfs.h): Likewise.
2150 (sys/user.h): Likewise.
2151 (asm/ptrace.h): Likewise.
2152 (i386-nat.h): Likewise.
2153 * i386-linux-nat.c (i386-nat.h): Likewise.
2154 (regset.h): Likewise.
2155 (target.h): Likewise.
2156 (linux-nat.h): Likewise.
2157 (nat/linux-btrace.h): Likewise.
2158 (btrace.h): Likewise.
2159 (gdb_assert.h): Likewise.
2160 (string.h): Likewise.
2161 (sys/uio.h): Likewise.
2162 (sys/user.h): Likewise.
2163 (sys/procfs.h): Likewise.
2164 (sys/reg.h): Likewise.
2165 (sys/debugreg.h): Likewise.
2166 (ORIG_EAX): Remove definition.
2167
040baaf6
GB
21682014-07-11 Gary Benson <gbenson@redhat.com>
2169
2170 * i386-linux-nat.h: New file.
2171 * x86-linux-nat.h: Likewise.
2172 * x86-linux-nat.c: Likewise.
2173 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
2174 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
2175 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2176 * amd64-linux-nat.c (x86-linux-nat.h): New include.
2177 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2178 (PTRACE_SETREGSET): Likewise.
2179 (arch_lwp_info): Now in x86-linux-nat.c.
2180 (have_ptrace_getregset): Now in x86-linux-nat.h.
2181 (x86_linux_dr_get): Now in x86-linux-nat.c.
2182 (x86_linux_dr_set): Likewise.
2183 (x86_linux_dr_get_addr): Likewise.
2184 (x86_linux_dr_get_control): Likewise.
2185 (x86_linux_dr_get_status): Likewise.
2186 (update_debug_registers_callback): Likewise.
2187 (x86_linux_dr_set_control): Likewise.
2188 (x86_linux_dr_set_addr): Likewise.
2189 (x86_linux_prepare_to_resume): Likewise.
2190 (x86_linux_new_thread): Likewise.
2191 (x86_linux_new_fork): Likewise.
2192 (x86_linux_get_thread_area): Likewise.
2193 (super_post_startup_inferior): Likewise.
2194 (x86_linux_child_post_startup_inferior): Likewise.
2195 (AMD64_LINUX_USER64_CS): Likewise.
2196 (AMD64_LINUX_X32_DS): Likewise.
2197 (x86_linux_read_description): Likewise.
2198 (x86_linux_enable_btrace): Likewise.
2199 (x86_linux_disable_btrace): Likewise.
2200 (x86_linux_teardown_btrace): Likewise.
2201 (x86_linux_read_btrace): Likewise.
2202 (x86_linux_create_target): Likewise.
2203 (x86_linux_add_target): Likewise.
2204 * i386-linux-nat.c (x86-linux-nat.h): New include.
2205 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
2206 (PTRACE_SETREGSET): Likewise.
2207 (arch_lwp_info): Now in x86-linux-nat.c.
2208 (have_ptrace_getregset): Now in x86-linux-nat.h.
2209 (x86_linux_dr_get): Now in x86-linux-nat.c.
2210 (x86_linux_dr_set): Likewise.
2211 (x86_linux_dr_get_addr): Likewise.
2212 (x86_linux_dr_get_control): Likewise.
2213 (x86_linux_dr_get_status): Likewise.
2214 (update_debug_registers_callback): Likewise.
2215 (x86_linux_dr_set_control): Likewise.
2216 (x86_linux_dr_set_addr): Likewise.
2217 (x86_linux_prepare_to_resume): Likewise.
2218 (x86_linux_new_thread): Likewise.
2219 (x86_linux_new_fork): Likewise.
2220 (x86_linux_get_thread_area): Likewise.
2221 (super_post_startup_inferior): Likewise.
2222 (x86_linux_child_post_startup_inferior): Likewise.
2223 (AMD64_LINUX_USER64_CS): Likewise.
2224 (AMD64_LINUX_X32_DS): Likewise.
2225 (x86_linux_read_description): Likewise.
2226 (x86_linux_enable_btrace): Likewise.
2227 (x86_linux_disable_btrace): Likewise.
2228 (x86_linux_teardown_btrace): Likewise.
2229 (x86_linux_read_btrace): Likewise.
2230 (x86_linux_create_target): Likewise.
2231 (x86_linux_add_target): Likewise.
2232
1aa7e42c
GB
22332014-07-11 Gary Benson <gbenson@redhat.com>
2234
2235 * amd64-linux-nat.c: Comment and whitespace changes.
2236 * i386-linux-nat.c: Comment and whitespace changes.
2237
c1e246a0
GB
22382014-07-11 Gary Benson <gbenson@redhat.com>
2239
2240 * amd64-linux-nat.c (x86_linux_create_target): New function.
2241 (x86_linux_add_target): Likewise.
2242 (_initialize_amd64_linux_nat): Delegate to the above new functions.
2243 * i386-linux-nat.c (x86_linux_create_target): New function.
2244 (x86_linux_add_target): Likewise.
2245 (_initialize_i386_linux_nat): Delegate to the above new functions.
2246
8c420b8d
GB
22472014-07-11 Gary Benson <gbenson@redhat.com>
2248
2249 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
2250 (ps_get_thread_area): Delegate to the above in 32-bit mode.
2251 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
2252 (ps_get_thread_area): Delegate to the above.
2253
cb1da100
GB
22542014-07-11 Gary Benson <gbenson@redhat.com>
2255
2256 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
2257 x86_linux_read_description. All uses updated. amd64-specific
2258 code conditionalized. Conditionalized i386-specific code added.
2259 Redundant cast removed.
2260 * i386-linux-nat.c (i386_linux_read_description): Renamed to
2261 x86_linux_read_description. All uses updated. i386-specific
2262 code conditionalized. Conditionalized amd64-specific code added.
2263 One sizeof replaced with the actual type it is describing.
2264
2acf3cd0
GB
22652014-07-11 Gary Benson <gbenson@redhat.com>
2266
2267 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
2268 x86_linux_dr_get. All uses updated.
2269 (amd64_linux_dr_set): Renamed to
2270 x86_linux_dr_set. All uses updated.
2271 (amd64_linux_dr_get_addr): Renamed to
2272 x86_linux_dr_get_addr. All uses updated.
2273 (amd64_linux_dr_get_control): Renamed to
2274 x86_linux_dr_get_control. All uses updated.
2275 (amd64_linux_dr_get_status): Renamed to
2276 x86_linux_dr_get_status. All uses updated.
2277 (amd64_linux_dr_set_control): Renamed to
2278 x86_linux_dr_set_control. All uses updated.
2279 (amd64_linux_dr_set_addr): Renamed to
2280 x86_linux_dr_set_addr. All uses updated.
2281 (amd64_linux_prepare_to_resume): Renamed to
2282 x86_linux_prepare_to_resume. All uses updated.
2283 (amd64_linux_new_thread): Renamed to
2284 x86_linux_new_thread. All uses updated.
2285 (amd64_linux_new_fork): Renamed to
2286 x86_linux_new_fork. All uses updated.
2287 (amd64_linux_child_post_startup_inferior): Renamed to
2288 x86_linux_child_post_startup_inferior. All uses updated.
2289 (amd64_linux_enable_btrace): Renamed to
2290 x86_linux_enable_btrace. All uses updated.
2291 (amd64_linux_disable_btrace): Renamed to
2292 x86_linux_disable_btrace. All uses updated.
2293 (amd64_linux_teardown_btrace): Renamed to
2294 x86_linux_teardown_btrace. All uses updated.
2295 (amd64_linux_read_btrace): Renamed to
2296 x86_linux_read_btrace. All uses updated.
2297 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
2298 x86_linux_dr_get. All uses updated.
2299 (i386_linux_dr_set): Renamed to
2300 x86_linux_dr_set. All uses updated.
2301 (i386_linux_dr_get_addr): Renamed to
2302 x86_linux_dr_get_addr. All uses updated.
2303 (i386_linux_dr_get_control): Renamed to
2304 x86_linux_dr_get_control. All uses updated.
2305 (i386_linux_dr_get_status): Renamed to
2306 x86_linux_dr_get_status. All uses updated.
2307 (i386_linux_dr_set_control): Renamed to
2308 x86_linux_dr_set_control. All uses updated.
2309 (i386_linux_dr_set_addr): Renamed to
2310 x86_linux_dr_set_addr. All uses updated.
2311 (i386_linux_prepare_to_resume): Renamed to
2312 x86_linux_prepare_to_resume. All uses updated.
2313 (i386_linux_new_thread): Renamed to
2314 x86_linux_new_thread. All uses updated.
2315 (i386_linux_new_fork): Renamed to
2316 x86_linux_new_fork. All uses updated.
2317 (i386_linux_child_post_startup_inferior): Renamed to
2318 x86_linux_child_post_startup_inferior. All uses updated.
2319 (i386_linux_enable_btrace): Renamed to
2320 x86_linux_enable_btrace. All uses updated.
2321 (i386_linux_disable_btrace): Renamed to
2322 x86_linux_disable_btrace. All uses updated.
2323 (i386_linux_teardown_btrace): Renamed to
2324 x86_linux_teardown_btrace. All uses updated.
2325 (i386_linux_read_btrace): Renamed to
2326 x86_linux_read_btrace. All uses updated.
2327
b9c1d481
AS
23282014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2329
2330 * remote.c (extended_remote_post_attach): New function.
2331 (init_extended_remote_ops): Install it as to_post_attach method.
2332
7180e04a
PA
23332014-07-09 Pedro Alves <palves@redhat.com>
2334
2335 * infcmd.c (attach_command_post_wait): Don't call
2336 target_terminal_inferior here.
2337 (attach_command): Call it here instead.
2338
9a9a7608
AB
23392014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
2340
2341 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
2342 field.
2343 * c-varobj.c (c_is_path_expr_parent): New function, moved core
2344 from varobj.c, with additional checks.
2345 (c_varobj_ops): Fill in is_path_expr_parent field.
2346 (cplus_varobj_ops): Fill in is_path_expr_parent field.
2347 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
2348 field.
2349 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
2350 ops method.
2351 (varobj_default_is_path_expr_parent): New function.
2352 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
2353 (varobj_default_is_path_expr_parent): Declare new function.
2354
1f267ae3
MM
23552014-07-08 Markus Metzger <markus.t.metzger@intel.com>
2356
2357 * infcmd.c (finish_backward): Turn internal error into normal error.
2358
b2ee242b
PA
23592014-07-07 Pedro Alves <palves@redhat.com>
2360
8a869bca 2361 PR gdb/17096
b2ee242b
PA
2362 * remote.c (async_handle_remote_sigint)
2363 (async_handle_remote_sigint_twice): Call
2364 gdb_call_async_signal_handler instead of
2365 mark_async_signal_handler.
2366
38e229b2
TT
23672014-07-07 Tom Tromey <tromey@redhat.com>
2368
2369 * target-delegates.c: Rebuild.
2370 * target.c (target_info_record): Remove.
2371 * record.c (info_record_command): Unconditionally call
2372 to_info_record.
2373 * target.h (struct target_ops) <to_info_record>: Use
2374 TARGET_DEFAULT_IGNORE.
2375 (target_info_record): Remove.
2376
f0f9ff95
TT
23772014-07-07 Tom Tromey <tromey@redhat.com>
2378
2379 * target.h (struct target_ops) <to_get_thread_local_address>: Use
2380 TARGET_DEFAULT_NORETURN.
2381 * target.c (generic_tls_error): New function.
2382 (target_translate_tls_address): Don't search target stack.
2383 * target-delegates.c: Rebuild.
2384 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
2385 stack.
2386 * linux-thread-db.c (thread_db_get_thread_local_address):
2387 Unconditionally call beneath target.
2388
4a5be5ee
MK
23892014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
2390
2391 * cli/cli-logging.c (pop_output_files): Assign targerr to
2392 gdb_stdtargerr.
2393
92c3b204
AB
23942014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
2395
2396 * MAINTAINERS (Write After Approval): Update my email address.
2397
9b11e3a7
GB
23982014-07-02 Gary Benson <gbenson@redhat.com>
2399
2400 * proc-service.c (ps_xfer_memory): Update comment.
2401 (ps_pstop): Remove unused function.
2402 (ps_pcontinue): Likewise.
2403 (ps_lstop): Likewise.
2404 (ps_lcontinue): Likewise.
2405 (ps_lgetxregsize): Likewise.
2406 (ps_lgetxregs): Likewise.
2407 (ps_lsetxregs): Likewise.
2408 (ps_plog): Likewise.
2409 (ps_ptread): Likewise.
2410 (ps_ptwrite): Likewise.
2411
cf363f18
MW
24122014-07-01 Mark Wielaard <mjw@redhat.com>
2413
2414 * dwarf2read.c (add_array_cv_type): New function.
2415 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
2416 (read_tag_volatile_type): Likewise.
2417
82ae6c8d
TT
24182014-07-01 Tom Tromey <tromey@redhat.com>
2419
2420 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
2421 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
2422 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
2423 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
2424 * command.h (cmd_cfunc_ftype): Move earlier.
2425 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
2426 (add_com, add_info): Use cmd_cfunc_ftype.
2427
96142726
TT
24282014-06-30 Tom Tromey <tromey@redhat.com>
2429
2430 * symtab.c (operator_chars): Make parameters and return type
2431 const.
2432 (file_matches): Make "files" const.
2433 (struct search_symbols_data) <files>: Now const.
2434 (search_symbols): Make "regexp" and "files" parameters const.
2435 Update.
2436 (symtab_symbol_info): Remove cast.
2437 (rbreak_command): Update.
2438 * symtab.h (search_symbols): Update.
2439
b67a2c6f
YQ
24402014-06-27 Yao Qi <yao@codesourcery.com>
2441
2442 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
2443 Change parameter type to 'struct thread_info *'. Caller
2444 updated.
2445 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
2446 Update declaration.
2447 * dummy-frame.c (struct dummy_frame_id): New.
2448 (dummy_frame_id_eq): New function.
2449 (struct dummy_frame) <id>: Change its type to 'struct
2450 dummy_frame_id'.
2451 (dummy_frame_push): Add parameter ptid and save it in
2452 dummy_frame_id.
2453 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
2454 inferior_ptid.
2455 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
2456 to inferior_ptid.
2457 (lookup_dummy_frame): Change parameter type to 'struct
2458 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
2459 instead of frame_id_eq.
2460 (dummy_frame_pop): Add parameter ptid. Callers updated.
2461 Update comments. Compose dummy_frame_id and pass it to
2462 lookup_dummy_frame.
2463 (dummy_frame_discard): Add parameter ptid.
2464 (dummy_frame_sniffer): Compose dummy_frame_id and call
2465 dummy_frame_id_eq instead of frame_id_eq.
2466 (fprint_dummy_frames): Print ptid.
2467 * dummy-frame.h: Remove comments.
2468 (dummy_frame_push): Add ptid in declaration.
2469 (dummy_frame_pop, dummy_frame_discard): Likewise.
2470
5b10184c
TT
24712014-06-26 Tom Tromey <tromey@redhat.com>
2472
2473 * cli/cli-cmds.c (error_no_arg): Make "why" const.
2474 * command.h (error_no_arg): Update.
2475
06900326
TT
24762014-06-26 Tom Tromey <tromey@redhat.com>
2477
2478 * cli/cli-setshow.c (do_set_command): Make "arg" const.
2479 (do_show_command): Make "arg" const.
2480 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
2481
c2bcbb1d
TT
24822014-06-26 Tom Tromey <tromey@redhat.com>
2483
2484 * record-full.c (record_full_get_bookmark): Make "args" const.
2485 (record_full_goto_bookmark): Make "raw_bookmark" const.
2486 * record.c (record_goto): New function.
2487 (cmd_record_goto): Use it. Now static.
2488 * record.h (record_goto): Declare.
2489 (cmd_record_goto): Remove declaration.
2490 * target-delegates.c: Rebuild.
2491 * target.h (struct target_ops) <to_get_bookmark,
2492 to_goto_bookmark>: Make parameter const.
2493
9cbe5fff
TT
24942014-06-26 Tom Tromey <tromey@redhat.com>
2495
2496 * defs.h (generic_load): Update.
2497 * m32r-rom.c (m32r_load_gen): Make "filename" const.
2498 * monitor.c (monitor_load): Make "args" const.
2499 * remote-m32r-sdi.c (m32r_load): Make "args" const.
2500 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
2501 const.
2502 (mips_load): Make "file" const.
2503 * remote-sim.c (gdbsim_load): Make "args" const.
2504 * remote.c (remote_load): Make "name" const.
2505 * symfile.c (generic_load): Make "args" const.
2506 * target-delegates.c: Rebuild.
2507 * target.c (target_load): Make "arg" const.
2508 (debug_to_load): Make "args" const.
2509 * target.h (struct target_ops) <to_load>: Make parameter const.
2510 (target_load): Update.
2511
34a68019
TT
25122014-06-26 Tom Tromey <tromey@redhat.com>
2513
2514 PR symtab/16902:
2515 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
2516 (dwarf2_physname, read_partial_die)
2517 (guess_partial_die_structure_name, fixup_partial_die)
2518 (guess_full_die_structure_name, anonymous_struct_prefix)
2519 (dwarf2_name): Use per-BFD obstack.
2520
efc889c1
YQ
25212014-06-26 Yao Qi <yao@codesourcery.com>
2522
2523 * dummy-frame.c (dummy_frame_sniffer): Move local variables
2524 dummyframe and this_id into inner block below.
2525
4395285e
YQ
25262014-06-26 Yao Qi <yao@codesourcery.com>
2527
2528 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
2529 with "signal_pass[0]" in the initialization of signal_pass.
2530
aef92902
MM
25312014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2532
2533 * record-btrace.c (record_btrace_generating_corefile)
2534 (record_btrace_prepare_to_generate_core)
2535 (record_btrace_done_generating_core): New.
2536 (record_btrace_xfer_partial, record_btrace_fetch_registers)
2537 (record_btrace_store_registers, record_btrace_prepare_to_store):
2538 Forward request when generating a core file.
2539 (record_btrace_open): Set record_btrace_generating_corefile to zero.
2540 (init_record_btrace_ops): Set to_prepare_to_generate_core and
2541 to_done_generating_core.
2542
5fff78c4
MM
25432014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2544
2545 * target.h (target_ops) <to_prepare_to_generate_core>
2546 <to_done_generating_core>: New.
2547 (target_prepare_to_generate_core, target_done_generating_core): New.
2548 * target.c (target_prepare_to_generate_core)
2549 (target_done_generating_core): New.
2550 * target-delegates.c: Regenerate.
2551 * gcore.c: (write_gcore_file): Rename to ...
2552 (write_gcore_file_1): ...this.
2553 (write_gcore_file): Call target_prepare_to_generate_core
2554 and target_done_generating_core.
2555
1d1f1ccb
MM
25562014-06-25 Markus Metzger <markus.t.metzger@intel.com>
2557
2558 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
2559 * gcore.c (write_gcore_file): Free memory returned from
2560 make_corefile_notes.
2561 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
2562 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
2563
3343ef86
YQ
25642014-06-24 Yao Qi <yao@codesourcery.com>
2565
2566 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
2567 (arm_linux_init_abi): Set skip_trampoline_code with
2568 gdbarch_skip_trampoline_code instead of
2569 find_solib_trampoline_target.
2570
18d18ac8
YQ
25712014-06-24 Yao Qi <yao@codesourcery.com>
2572
2573 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
2574 arm_skip_bx_reg returns non-zero.
2575
80d8d390
YQ
25762014-06-24 Yao Qi <yao@codesourcery.com>
2577
2578 * arm-tdep.c (arm_skip_bx_reg): New function.
2579 (arm_skip_stub): Call arm_skip_bx_reg.
2580
6a18a01c
DB
25812014-06-23 Don Breazeal <donb@codesourcery.com>
2582
2583 * MAINTAINERS: Add myself as write-after-approval maintainer.
2584
8e9db26e
PA
25852014-06-23 Pedro Alves <palves@redhat.com>
2586
2587 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
2588 DR_CONTROL before setting DR0..DR3.
2589 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
2590 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
2591 bits of DR_CONTROL related to the debug register slot being
2592 disabled. If all slots are vacant, clear local slowdown as well,
2593 and assert DR_CONTROL is 0.
2594
70afc5b7
SC
25952014-06-23 Siva Chandra Reddy <sivachandra@google.com>
2596
2597 * python/lib/gdb/command/xmethods.py
2598 (get_method_matchers_in_loci): Lookup xmethod matchers in the
2599 current progspace only if the string "progspace" matches LOCUS_RE.
2600
840ed64d
JK
26012014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2602
2603 Fix --with-system-readline with readline-6.3 patch 5.
2604 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
2605 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
2606 types.
2607
26f2dc30
TT
26082014-06-20 Tom Tromey <tromey@redhat.com>
2609
2610 * dwarf2read.c (dw2_get_real_path): Use correct type in
2611 OBSTACK_CALLOC.
2612 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
2613
125f8a3d
GB
26142014-06-20 Gary Benson <gbenson@redhat.com>
2615
2616 * common/gdb_thread_db.h: Moved to nat. All includes updated.
2617 * common/glibc_thread_db.h: Likewise.
2618 * common/i386-cpuid.h: Likewise.
2619 * common/i386-gcc-cpuid.h: Likewise.
2620 * common/linux-btrace.h: Likewise.
2621 * common/linux-osdata.h: Likewise.
2622 * common/linux-procfs.h: Likewise.
2623 * common/linux-ptrace.h: Likewise.
2624 * common/mips-linux-watch.h: Likewise.
2625 * common/linux-btrace.c: Moved to nat.
2626 * common/linux-osdata.c: Likewise.
2627 * common/linux-procfs.c: Likewise.
2628 * common/linux-ptrace.c: Likewise.
2629 * common/mips-linux-watch.c: Likewise.
2630 * nat/gdb_thread_db.h: Moved from common.
2631 * nat/glibc_thread_db.h: Likewise.
2632 * nat/i386-cpuid.h: Likewise.
2633 * nat/i386-gcc-cpuid.h: Likewise.
2634 * nat/linux-btrace.c: Likewise.
2635 * nat/linux-btrace.h: Likewise.
2636 * nat/linux-osdata.c: Likewise.
2637 * nat/linux-osdata.h: Likewise.
2638 * nat/linux-procfs.c: Likewise.
2639 * nat/linux-procfs.h: Likewise.
2640 * nat/linux-ptrace.c: Likewise.
2641 * nat/linux-ptrace.h: Likewise.
2642 * nat/mips-linux-watch.c: Likewise.
2643 * nat/mips-linux-watch.h: Likewise.
2644 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
2645 (object file files): Reordered.
2646 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
2647 of glibc_thread_db.h.
2648
42995dbd
GB
26492014-06-20 Gary Benson <gbenson@redhat.com>
2650
2651 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
2652 (i386_dr_low_type): Moved to nat/i386-dregs.h.
2653 (i386_dr_low): Likewise.
2654 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
2655 (i386_dr_low_set_addr): Likewise.
2656 (i386_dr_low_get_addr): Likewise.
2657 (i386_dr_low_can_set_control): Likewise.
2658 (i386_dr_low_set_control): Likewise.
2659 (i386_dr_low_get_control): Likewise.
2660 (i386_dr_low_get_status): Likewise.
2661 (i386_get_debug_register_length): Likewise.
2662 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
2663 (i386_dr_low): Likewise.
2664 * nat/i386-dregs.c (i386-low.h): Remove include.
2665 (i386-nat.h): Likewise.
2666 (nat/i386-dregs.h): New include.
2667 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
2668 (i386_dr_low_set_addr): Likewise.
2669 (i386_dr_low_get_addr): Likewise.
2670 (i386_dr_low_can_set_control): Likewise.
2671 (i386_dr_low_set_control): Likewise.
2672 (i386_dr_low_get_control): Likewise.
2673 (i386_dr_low_get_status): Likewise.
2674 (i386_get_debug_register_length): Likewise.
2675 (debug_hw_points): Likewise.
2676
3ed9baed
IB
26772014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
2678
2679 * Makefile.in (SFILES): Add d-exp.y.
2680 (YYFILES): Add d-exp.c.
2681 (YYOBJ): Add d-exp.o.
2682 (local-maintainer-clean): Delete d-exp.c.
2683 * d-exp.y: New file.
2684 * d-lang.h (d_parse): New declaration.
2685 (d_error): New declaration.
2686 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
2687 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
2688 PREC_ORDER operators.
2689 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
2690
78c164b0
YQ
26912014-06-19 Yao Qi <yao@codesourcery.com>
2692
2693 * gdbthread.h (any_running): Remove the declaration.
2694 * thread.c (any_running): Remove.
2695
f6e29b6e
YQ
26962014-06-19 Yao Qi <yao@codesourcery.com>
2697
2698 * gdbthread.h (struct thread_info) <state>: Change its type to
2699 'enum thread_state'. Update comments.
2700
034f788c
PA
27012014-06-19 Pedro Alves <palves@redhat.com>
2702
2703 * gdbthread.h (ALL_THREADS): Delete.
2704 (ALL_NON_EXITED_THREADS): New macro.
2705 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
2706 instead of ALL_THREADS.
2707 * infrun.c (find_thread_needs_step_over)
2708 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
2709 instead of ALL_THREADS.
2710 * record-btrace.c (record_btrace_open)
2711 (record_btrace_stop_recording, record_btrace_close)
2712 (record_btrace_is_replaying, record_btrace_resume)
2713 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
2714 * remote.c (append_pending_thread_resumptions): Likewise.
2715 * thread.c (thread_apply_all_command): Likewise.
2716
46e33252
GB
27172014-06-19 Gary Benson <gbenson@redhat.com>
2718
2719 * i386-nat.c (i386_stopped_by_watchpoint):
2720 Use i386_dr_stopped_by_watchpoint.
2721 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
2722 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
2723
3a8ee006
GB
27242014-06-19 Gary Benson <gbenson@redhat.com>
2725
2726 * nat/i386-dregs.c: New file.
2727 * Makefile.in (i386-dregs.o): New rule.
2728 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
2729 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
2730 * config/i386/darwin.mh (NATDEPFILES): Likewise.
2731 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
2732 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
2733 * config/i386/go32.mh (NATDEPFILES): Likewise.
2734 * config/i386/linux.mh (NATDEPFILES): Likewise.
2735 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2736 * config/i386/mingw.mh (NATDEPFILES): Likewise.
2737 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
2738 * i386-nat.h (debug_hw_points): New declaration.
2739 * i386-nat.c (breakpoint.h): Remove include.
2740 (command.h): Likewise.
2741 (target.h): Likewise.
2742 (gdb_assert.h): Likewise.
2743 (debug_hw_points): Made nonstatic.
2744 (debug_printf): Now in i386-dregs.c.
2745 (TARGET_HAS_DR_LEN_8): Likewise.
2746 (DR_CONTROL_SHIFT): Likewise.
2747 (DR_CONTROL_SIZE): Likewise.
2748 (DR_RW_EXECUTE): Likewise.
2749 (DR_RW_WRITE): Likewise.
2750 (DR_RW_READ): Likewise.
2751 (DR_RW_IORW): Likewise.
2752 (DR_LEN_1): Likewise.
2753 (DR_LEN_2): Likewise.
2754 (DR_LEN_4): Likewise.
2755 (DR_LEN_8): Likewise.
2756 (DR_LOCAL_ENABLE_SHIFT): Likewise.
2757 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
2758 (DR_ENABLE_SIZE): Likewise.
2759 (DR_LOCAL_SLOWDOWN): Likewise.
2760 (DR_GLOBAL_SLOWDOWN): Likewise.
2761 (DR_CONTROL_RESERVED): Likewise.
2762 (I386_DR_CONTROL_MASK): Likewise.
2763 (I386_DR_VACANT): Likewise.
2764 (I386_DR_LOCAL_ENABLE): Likewise.
2765 (I386_DR_GLOBAL_ENABLE): Likewise.
2766 (I386_DR_DISABLE): Likewise.
2767 (I386_DR_SET_RW_LEN): Likewise.
2768 (I386_DR_GET_RW_LEN): Likewise.
2769 (I386_DR_WATCH_HIT): Likewise.
2770 (i386_wp_op_t): Likewise.
2771 (i386_show_dr): Likewise.
2772 (i386_length_and_rw_bits): Likewise.
2773 (i386_insert_aligned_watchpoint): Likewise.
2774 (i386_remove_aligned_watchpoint): Likewise.
2775 (i386_handle_nonaligned_watchpoint): Likewise.
2776 (i386_update_inferior_debug_regs): Likewise.
2777 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
2778 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
2779 (i386_region_ok_for_watchpoint):
2780 Use i386_dr_region_ok_for_watchpoint.
2781 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
2782
322a8e06
GB
27832014-06-19 Gary Benson <gbenson@redhat.com>
2784
2785 * i386-nat.c (i386_insert_hw_breakpoint): Use
2786 i386_insert_watchpoint.
2787 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
2788
8f26655c
GB
27892014-06-19 Gary Benson <gbenson@redhat.com>
2790
2791 * i386-nat.c (i386_dr_show): Renamed to
2792 i386_show_dr and made static. All uses updated.
2793 (i386_dr_length_and_rw_bits): Renamed to
2794 i386_length_and_rw_bits and made static.
2795 All uses updated.
2796 (i386_dr_insert_aligned_watchpoint): Renamed to
2797 i386_insert_aligned_watchpoint and made static.
2798 All uses updated.
2799 (i386_dr_remove_aligned_watchpoint): Renamed to
2800 i386_remove_aligned_watchpoint and made static.
2801 All uses updated.
2802 (i386_dr_update_inferior_debug_regs): Renamed to
2803 i386_update_inferior_debug_regs and made static.
2804 All uses updated.
2805 * nat/i386-dregs.h (i386_dr_show): Removed.
2806 (i386_dr_length_and_rw_bits): Likewise.
2807 (i386_dr_insert_aligned_watchpoint): Likewise.
2808 (i386_dr_remove_aligned_watchpoint): Likewise.
2809 (i386_dr_update_inferior_debug_regs): Likewise.
2810
992c7d70
GB
28112014-06-19 Gary Benson <gbenson@redhat.com>
2812
2813 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
2814 * configure: Regenerate.
2815 * config.in: Likewise.
2816 * main.c (signal.h): New include.
2817 (setup_alternate_signal_stack): New function.
2818 (captured_main): Call the above.
2819 * cp-support.c (signal.h): New include.
2820 (catch_demangler_crashes): New flag.
2821 (SIGJMP_BUF): New define.
2822 (SIGSETJMP): Likewise.
2823 (SIGLONGJMP): Likewise.
2824 (gdb_demangle_jmp_buf): New static global.
2825 (gdb_demangle_attempt_core_dump): Likewise.
2826 (gdb_demangle_signal_handler): New function.
2827 (gdb_demangle): If catch_demangler_crashes is set, install the
2828 above signal handler before calling bfd_demangle, and restore
2829 the original signal handler afterwards. Display the offending
2830 symbol and call demangler_warning the first time a segmentation
2831 fault is caught.
2832 (_initialize_cp_support): New maint set/show command.
2833
eae7090b
GB
28342014-06-19 Gary Benson <gbenson@redhat.com>
2835
2836 * utils.h (resource_limit_kind): New enum.
2837 (can_dump_core): New declaration.
2838 (warn_cant_dump_core): Likewise.
2839 (dump_core): Likewise.
2840 * utils.c (dump_core): Made nonstatic. Added new
2841 parameter "limit_kind".
2842 (can_dump_core): Made nonstatic. Moved printing code to...
2843 (warn_cant_dump_core): New function.
2844 (can_dump_core_warn): Likewise.
2845 (internal_vproblem): Replace calls to can_dump_core with
2846 calls to can_dump_core_warn. Supply new argument to each.
2847
57fcfb1b
GB
28482014-06-19 Gary Benson <gbenson@redhat.com>
2849
2850 * utils.h (demangler_vwarning): New declaration.
2851 (demangler_warning): Likewise.
2852 * utils.c (struct internal_problem)
2853 <user_settable_should_quit>: New field.
2854 <user_settable_should_dump_core>: Likewise
2855 (internal_error_problem): Add values for above new fields.
2856 (internal_warning_problem): Likewise.
2857 (demangler_warning_problem): New static global.
2858 (demangler_vwarning): New function.
2859 (demangler_warning): Likewise.
2860 (add_internal_problem_command): Selectively add commands.
2861 (_initialize_utils): New internal problem command.
2862 * maint.c (maintenance_demangler_warning): New function.
2863 (_initialize_maint_cmds): New command.
2864
17a40b44
TT
28652014-06-18 Tom Tromey <tromey@redhat.com>
2866
2867 * f-valprint.c (info_common_command_for_block): Update.
2868 * symtab.h (struct general_symbol_info) <common_block>: Now
2869 const.
2870
346d1dfe
TT
28712014-06-18 Tom Tromey <tromey@redhat.com>
2872
2873 * symtab.h (struct symtab) <blockvector>: Now const.
2874 * ada-lang.c (ada_add_global_exceptions): Update.
2875 * buildsym.c (augment_type_symtab): Update.
2876 * dwarf2read.c (dw2_lookup_symbol): Update.
2877 * jit.c (finalize_symtab): Update.
2878 * jv-lang.c (add_class_symtab_symbol): Update.
2879 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
2880 Update.
2881 * objfiles.c (objfile_relocate1): Update.
2882 * psymtab.c (lookup_symbol_aux_psymtabs)
2883 (maintenance_check_psymtabs): Update.
2884 * python/py-symtab.c (stpy_global_block, stpy_static_block):
2885 Update.
2886 * spu-tdep.c (spu_catch_start): Update.
2887 * symmisc.c (dump_symtab_1): Update.
2888 * symtab.c (lookup_global_symbol_from_objfile)
2889 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
2890 (basic_lookup_transparent_type_quick)
2891 (basic_lookup_transparent_type, find_pc_sect_symtab)
2892 (find_pc_sect_line, search_symbols): Update.
2893 * block.c (find_block_in_blockvector): Make "bl" const.
2894 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
2895 const.
2896 (blockvector_contains_pc): Make "bv" const.
2897 (block_for_pc_sect): Update.
2898 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2899 (blockvector_contains_pc): Update.
2900 * breakpoint.c (resolve_sal_pc): Update.
2901 * inline-frame.c (block_starting_point_at): Update.
2902
1834676b
TT
29032014-06-18 Tom Tromey <tromey@redhat.com>
2904
2905 * completer.c (complete_line): Make "line_buffer" const.
2906 * completer.h (complete_line): Update.
2907
ac1a991b
TT
29082014-06-18 Tom Tromey <tromey@redhat.com>
2909
2910 * symtab.c (add_macro_name): Remove unneeded cast.
2911
5bc98e52
TT
29122014-06-18 Tom Tromey <tromey@redhat.com>
2913
2914 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
2915 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
2916
8236def8
TT
29172014-06-18 Tom Tromey <tromey@redhat.com>
2918
2919 * probe.c (info_probes_for_ops): Make "arg" const.
2920 * probe.h (info_probes_for_ops): Update.
2921
3977b71f
TT
29222014-06-18 Tom Tromey <tromey@redhat.com>
2923
2924 * varobj.c (varobj_create): Update.
2925 * valops.c (value_of_this): Update.
2926 * tracepoint.c (add_local_symbols, scope_info): Update.
2927 * symtab.h (struct general_symbol_info) <block>: Now const.
2928 * symtab.c (skip_prologue_sal)
2929 (default_make_symbol_completion_list_break_on)
2930 (skip_prologue_using_sal): Update.
2931 * stack.h (iterate_over_block_locals)
2932 (iterate_over_block_local_vars): Update.
2933 * stack.c (print_frame_args): Update.
2934 (iterate_over_block_locals, iterate_over_block_local_vars): Make
2935 parameter const.
2936 (get_selected_block): Make return type const.
2937 * python/py-frame.c (frapy_block): Update.
2938 * python/py-block.c (gdbpy_block_for_pc): Update.
2939 * p-exp.y (%union) <bval>: Now const.
2940 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2941 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
2942 * m2-exp.y (%union) <bval>: Now const.
2943 * linespec.c (get_current_search_block): Make return type const.
2944 (create_sals_line_offset, find_label_symbols): Update.
2945 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
2946 Update.
2947 (block_starting_point_at): Make "block" const.
2948 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
2949 (check_exception_resume): Update.
2950 * guile/scm-frame.c (gdbscm_frame_block): Update.
2951 * guile/scm-block.c (gdbscm_lookup_block): Update.
2952 * frame.h (get_frame_block): Update.
2953 (get_selected_block): Make return type const.
2954 * frame.c (frame_id_inner): Update.
2955 * f-valprint.c (info_common_command_for_block)
2956 (info_common_command): Update.
2957 * dwarf2loc.c (dwarf2_find_location_expression)
2958 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
2959 (locexpr_describe_location_piece): Update.
2960 * c-exp.y (%union) <bval>: Now const.
2961 * breakpoint.c (resolve_sal_pc): Update.
2962 * blockframe.c (get_frame_block):Make return type const.
2963 (get_pc_function_start, get_frame_function, find_pc_sect_function)
2964 (block_innermost_frame): Update.
2965 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
2966 (block_for_pc, block_for_pc_sect): Update.
2967 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
2968 'pblock' const.
2969 (block_for_pc_sect, block_for_pc): Make return type const.
2970 * ax-gdb.c (gen_expr): Update.
2971 * alpha-mdebug-tdep.c (find_proc_desc): Update.
2972 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
2973 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
2974 (ada_read_var_value): Update.
2975 * ada-exp.y (struct name_info) <block>: Now const.
2976 (%union): Likewise.
2977 (block_lookup): Constify.
2978
b9228891
GB
29792014-06-18 Gary Benson <gbenson@redhat.com>
2980
2981 * nat/i386-dregs.h: New file.
2982 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
2983 * i386-nat.h (i386-dregs.h): New include.
2984 (DR_FIRSTADDR): Now in i386-dregs.h.
2985 (DR_LASTADDR): Likewise.
2986 (DR_NADDR): Likewise.
2987 (DR_STATUS): Likewise.
2988 (DR_CONTROL): Likewise.
2989 (i386_debug_reg_state): Likewise.
2990 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
2991
a1aa2221
LM
29922014-06-18 Don Breazeal <donb@codesourcery.com>
2993
2994 * breakpoint.c (set_longjmp_breakpoint): Call
2995 momentary_breakpoint_from_master with additional argument.
2996 (set_longjmp_breakpoint_for_call_dummy): Call
2997 momentary_breakpoint_from_master with additional argument.
2998 (set_std_terminate_breakpoint): Call
2999 momentary_breakpoint_from_master with additional argument.
3000 (momentary_breakpoint_from_master): Add argument to function
3001 definition and use it to initialize structure member flag.
74228e77 3002 (clone_momentary_breakpoint): Call
a1aa2221
LM
3003 momentary_breakpoint_from_master with additional argument.
3004 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
3005 member flags set in momentary_breakpoint_from_master.
3006
4be83cc2
GB
30072014-06-18 Gary Benson <gbenson@redhat.com>
3008
3009 * i386-nat.c (i386_show_dr): Renamed to
3010 i386_dr_show and made nonstatic. All uses updated.
3011 (i386_length_and_rw_bits): Renamed to
3012 i386_dr_length_and_rw_bits and made nonstatic.
3013 All uses updated.
3014 (i386_insert_aligned_watchpoint): Renamed to
3015 i386_dr_insert_aligned_watchpoint and made nonstatic.
3016 All uses updated.
3017 (i386_remove_aligned_watchpoint): Renamed to
3018 i386_dr_remove_aligned_watchpoint and made nonstatic.
3019 All uses updated.
3020 (i386_update_inferior_debug_regs): Renamed to
3021 i386_dr_update_inferior_debug_regs and made nonstatic.
3022 All uses updated.
3023
131aa0d4
GB
30242014-06-18 Gary Benson <gbenson@redhat.com>
3025
3026 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
3027 (i386_dr_low_can_set_control): Likewise.
3028 (i386_dr_low_set_addr): Likewise.
3029 (i386_dr_low_set_control): Likewise.
3030 (i386_dr_low_get_addr): Likewise.
3031 (i386_dr_low_get_status): Likewise.
3032 (i386_dr_low_get_control): Likewise.
3033 (i386_insert_aligned_watchpoint): Use new macros.
3034 (i386_update_inferior_debug_regs): Likewise.
3035 (i386_stopped_data_address): Likewise.
3036
d9305f7f
GB
30372014-06-18 Gary Benson <gbenson@redhat.com>
3038
3039 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
3040 New parameter. All uses updated.
3041
ea008da4
GB
30422014-06-18 Gary Benson <gbenson@redhat.com>
3043
3044 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
3045 All uses updated.
3046
1b6d4134
GB
30472014-06-18 Gary Benson <gbenson@redhat.com>
3048
3049 * i386-nat.c (debug_printf): New macro.
3050 (i386_get_debug_register_length): Likewise.
3051 (TARGET_HAS_DR_LEN_8): Use above macro.
3052 (i386_show_dr): Use debug_printf instead of puts_unfiltered
3053 and printf_unfiltered. Use phex to format values.
3054
9b4550ef
GB
30552014-06-18 Gary Benson <gbenson@redhat.com>
3056
3057 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
3058 Make const.
3059
6e62758f
GB
30602014-06-18 Gary Benson <gbenson@redhat.com>
3061
3062 * i386-nat.c: Comment changes.
3063
51c79e94
GB
30642014-06-18 Gary Benson <gbenson@redhat.com>
3065
3066 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
3067
3e11889a
GB
30682014-06-18 Gary Benson <gbenson@redhat.com>
3069
3070 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
3071 (i386_insert_aligned_watchpoint): Likewise.
3072 (i386_remove_aligned_watchpoint): Likewise.
3073 (i386_handle_nonaligned_watchpoint): Likewise.
3074
fc6e2f03
GB
30752014-06-18 Gary Benson <gbenson@redhat.com>
3076
3077 * i386-nat.c: Whitespace changes.
3078
2afe7d50
SB
30792014-06-17 Samuel Bronson <naesten@gmail.com>
3080
3081 * MAINTAINERS: Update Roland McGrath's email address.
3082 Thanks to Sergio Durigan Junior for pointing out that he left
6a83deea 3083 Red Hat a while ago, and giving me a current address.
2afe7d50 3084
3bca49ee
TT
30852014-06-17 Tom Tromey <tromey@redhat.com>
3086
3087 * utils.h (savestring): Remove declaration.
3088
6e366df1
TT
30892014-06-17 Tom Tromey <tromey@redhat.com>
3090
3091 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
3092
6be47f0c
KS
30932014-06-16 Keith Seitz <keiths@redhat.com>
3094
3095 PR mi/15863
3096 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
3097 to update the varobj if inferior_ptid is null_ptid.
3098
7bc112c1
TT
30992014-06-16 Tom Tromey <tromey@redhat.com>
3100
3101 * target.h (struct target_ops) <to_info_proc>: Make parameter
3102 const.
3103 (target_info_proc): Update.
3104 * target.c (target_info_proc): Make "args" const.
3105 * procfs.c (procfs_info_proc): Update.
3106 * linux-tdep.c (linux_info_proc): Update.
3107 (linux_core_info_proc_mappings): Make "args" const.
3108 (linux_core_info_proc): Update.
3109 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
3110 * gdbarch.c: Rebuild.
3111 * gdbarch.h: Rebuild.
3112 * corelow.c (core_info_proc): Update.
3113
fee354ee
TT
31142014-06-16 Tom Tromey <tromey@redhat.com>
3115
3116 * target.h (struct target_ops) <to_disconnect>: Make parameter
3117 const.
3118 (target_disconnect): Update.
3119 * target.c (target_disconnect): Make "args" const.
3120 * target-delegates.c: Rebuild.
3121 * remote.c (remote_disconnect): Update.
3122 * record.h (record_disconnect): Update.
3123 * record.c (record_disconnect): Update.
3124 * inf-child.c (inf_child_disconnect): Update.
3125
a30bf1f1
TT
31262014-06-16 Tom Tromey <tromey@redhat.com>
3127
3128 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
3129 * target.c (debug_to_rcmd, default_rcmd): Update.
3130 * target-delegates.c: Rebuild.
3131 * remote.c (remote_rcmd): Update.
3132 * monitor.c (monitor_rcmd): Update.
3133
d03de421
PA
31342014-06-16 Pedro Alves <palves@redhat.com>
3135
3136 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
3137 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
3138 have OBJF_SHARED set.
3139 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
3140 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
3141 instead of OBJF_USERLOADED.
3142 * objfiles.h (OBJF_SHARED): Update comment.
3143 (userloaded_objfile_contains_address_p): Rename to ...
3144 (shared_objfile_contains_address_p): ... this, and update
3145 comments.
3146 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
3147 new objfile.
3148 (remove_symbol_file_command): Skip objfiles that don't have
3149 OBJF_SHARED set.
3150
99f4262f
TT
31512014-06-16 Tom Tromey <tromey@redhat.com>
3152
3153 * minsyms.h (prim_record_minimal_symbol)
3154 (prim_record_minimal_symbol_and_info): Update comments.
3155
97d66cc6
EZ
31562014-06-14 Eli Zaretskii <eliz@gnu.org>
3157
3158 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
3159 or --without-guile, according to how GDB was built.
3160
635c7e8a
TT
31612014-06-13 Tom Tromey <tromey@redhat.com>
3162
3163 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
3164 to help_list.
3165 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
3166 to help_list.
3167 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
3168 help_list.
3169 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
3170 help_list.Pass all_commands, not -1, to help_list.
3171 * cli/cli-dump.c (dump_command, append_command)
3172 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
3173 (binary_dump_command, binary_append_command): Pass all_commands,
3174 not -1, to help_list.
3175 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
3176 -1, to help_list.
3177 * valprint.c (set_print, set_print_raw): Pass all_commands, not
3178 -1, to help_list.
3179 * typeprint.c (set_print_type): Pass all_commands, not -1, to
3180 help_list.
3181 * top.c (set_history): Pass all_commands, not -1, to help_list.
3182 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
3183 all_commands, not -1, to help_list.
3184 * symfile.c (overlay_command): Pass all_commands, not -1, to
3185 help_list.
3186 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
3187 help_list.
3188 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
3189 help_list.
3190 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
3191 -1, to help_list.
3192 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
3193 not -1, to help_list.
3194 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
3195 not -1, to help_list.
3196 * maint.c (maintenance_command, maintenance_info_command)
3197 (maintenance_print_command, maintenance_set_cmd): Pass
3198 all_commands, not -1, to help_list.
3199 * macrocmd.c (macro_command): Pass all_commands, not -1, to
3200 help_list.
3201 * language.c (set_check): Pass all_commands, not -1, to help_list.
3202 * infcmd.c (unset_command): Pass all_commands, not -1, to
3203 help_list.
3204 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
3205 help_list.
3206 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
3207 help_list.
3208 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
3209 help_list.
3210 * breakpoint.c (save_command): Pass all_commands, not -1, to
3211 help_list.
3212 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
3213 all_commands, not -1, to help_list.
3214
b94ade42
PL
32152014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
3216
3217 * regcache.c (struct register_to_invalidate): New structure.
3218 (do_register_invalidate, make_cleanup_regcache_invalidate): New
3219 functions.
3220 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
3221
31f628ae
YQ
32222014-06-12 Yao Qi <yao@codesourcery.com>
3223
3224 * varobj.c (varobj_get_num_children): Call
3225 varobj_is_dynamic_p.
3226 (varobj_list_children): Likewise.
3227 (varobj_update): Likewise. Update comments.
3228
cde5ef40
YQ
32292014-06-12 Yao Qi <yao@codesourcery.com>
3230
3231 * varobj.c (varobj_pretty_printed_p): Rename to ...
3232 (varobj_is_dynamic_p): ... this. New function.
3233 * varobj.h (varobj_pretty_printed_p): Remove declaration.
3234 (varobj_is_dynamic_p): Declare.
3235 * mi/mi-cmd-var.c (print_varobj): All callers updated.
3236 (mi_print_value_p, varobj_update_one): Likewise.
3237
576ea091
YQ
32382014-06-12 Pedro Alves <pedro@codesourcery.com>
3239 Yao Qi <yao@codesourcery.com>
3240
3241 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
3242 (varobj_get_iterator): Wrap up code for pretty-printer by
3243 "#if HAVE_PYTHON" and "#endif".
3244 (update_dynamic_varobj_children): Likewise.
3245
827f100c
YQ
32462014-06-12 Pedro Alves <pedro@codesourcery.com>
3247 Yao Qi <yao@codesourcery.com>
3248
3249 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
3250 gdb_python_initialized is false. Move some code from varobj.c.
3251 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
3252 * varobj.c: Move "varobj-iter.h" inclusion earlier.
3253 (struct varobj_item): Moved to varobj-iter.h".
3254 (varobj_clear_saved_item): New function.
3255 (update_dynamic_varobj_children): Move python-related code to
3256 py-varobj.c.
3257 (free_variable): Call varobj_clear_saved_item and
3258 varobj_iter_delete.
3259
e5250216
YQ
32602014-06-12 Pedro Alves <pedro@codesourcery.com>
3261 Yao Qi <yao@codesourcery.com>
3262
3263 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
3264 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
3265 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
3266 (py-varobj.o): New rule.
3267 * python/py-varobj.c: New file.
3268 * python/python-internal.h (py_varobj_get_iterator): Declare.
3269 * varobj-iter.h: New file.
3270 * varobj.c: Include "varobj-iter.h"
3271 (struct varobj) <child_iter>: Change its type from "PyObject *"
3272 to "struct varobj_iter *".
3273 <saved_item>: Likewise.
3274 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
3275 [HAVE_PYTHON] (varobj_get_iterator): New function.
3276 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
3277 python-specific code to python/py-varobj.c.
3278 (install_visualizer): Call varobj_iter_delete instead of
3279 Py_XDECREF.
3280 * varobj.h (varobj_ensure_python_env): Declare.
3281
5a2e0d6e
YQ
32822014-06-12 Yao Qi <yao@codesourcery.com>
3283
3284 * varobj.c (struct varobj_item): New structure.
3285 (create_child_with_value): Update declaration.
3286 (varobj_add_child): Replace arguments 'name' and 'value' with
3287 'item'. All callers updated.
3288 (install_dynamic_child): Likewise.
3289 (update_dynamic_varobj_children): Likewise.
3290 (varobj_add_child): Likewise.
3291 (create_child_with_value): Likewise.
3292
919b9a93
JB
32932014-06-11 Joel Brobecker <brobecker@adacore.com>
3294
3295 * NEWS: Create a new section for the next release branch.
3296 Rename the section of the current branch, now that it has
3297 been cut.
3298
71a55bdf
JB
32992014-06-11 Joel Brobecker <brobecker@adacore.com>
3300
3301 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
3302 * version.in: Bump version to 7.8.50.DATE-cvs.
3303
364fe1f7
PA
33042014-06-11 Pedro Alves <palves@redhat.com>
3305
3306 PR remote/17028
3307 * ser-mingw.c (net_windows_socket_check_pending): New function.
3308 (net_windows_select_thread): Ignore spurious wakeups. Use
3309 net_windows_socket_check_pending.
3310 (net_windows_wait_handle): Check for pending events with
3311 ioctlsocket, through net_windows_socket_check_pending, instead of
3312 checking the socket's event.
3313
5a6c7709
SC
33142014-06-10 Siva Chandra Reddy <sivachandra@google.com>
3315
3316 * python/python-internal.h (gdb_PyObject_GetAttrString)
3317 (gdb_PyObject_HasAttrString): New inline function definitions.
3318 * py-value.c (get_field_flag): Remove the now unnecessary cast to
3319 char * of the second argument to PyObject_GetAttrString.
74228e77 3320
0e58ee40
JB
33212014-06-10 Joel Brobecker <brobecker@adacore.com>
3322
3323 * serial.c (serial_write): Fix index of character to be printed
3324 in call to serial_logchar when serial debug traces are enabled.
3325
d190df30
JB
33262014-06-10 Joel Brobecker <brobecker@adacore.com>
3327
3328 * gdbtypes (resolve_dynamic_range): Add function description.
3329
b4b01d36
PA
33302014-06-09 Pedro Alves <palves@redhat.com>
3331
3332 * linux-nat.c (linux_child_follow_fork): Initialize status with
3333 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
3334 inner block. Only pass the signal to PTRACE_DETACH if in pass
3335 state.
3336
3657956b
GB
33372014-06-09 Gary Benson <gbenson@redhat.com>
3338
3339 * common/signals.c (gdb_signal_from_host): Reorder to separate
3340 the always-available ANSI-standard signals from the signals that
3341 require checking.
3342 (do_gdb_signal_to_host): Likewise.
3343 * proc-events.c (signal_table): Likewise.
3344
c077881a
HZ
33452014-06-08 Hui Zhu <hui@codesourcery.com>
3346
3347 * common/linux-ptrace.c (linux_disable_event_reporting): New
3348 function.
3349 * common/linux-ptrace.h (linux_disable_event_reporting): New
3350 declaration.
3351 * linux-nat.c (linux_child_follow_fork): Do a single step before
3352 detach.
3353
4186eb54
KS
33542014-06-07 Keith Seitz <keiths@redhat.com>
3355
3356 Revert:
3357 PR c++/16253
3358 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3359 from symbol_matches_domain in symtab.c. All local callers
3360 of symbol_matches_domain updated.
3361 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
3362 search STRUCT_DOMAIN.
3363 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
3364 independently. standard_lookup will do that automatically.
3365 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
3366 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3367 (cp_lookup_symbol_in_namespace): Likewise.
3368 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
3369 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
3370 may return a STRUCT_DOMAIN match.
3371 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
3372 * cp-support.c: Include language.h.
3373 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
3374 VAR_DOMAIN.
3375 * psymtab.c (match_partial_symbol): Compare the requested
3376 domain with the symbol's domain directly.
3377 (lookup_partial_symbol): Likewise.
3378 * symtab.c (lookup_symbol_in_language): Explain when/why
3379 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
3380 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
3381 appropriate languages.
3382 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
3383 and moved to ada-lang.c
3384 (lookup_block_symbol): Explain that this function only returns
3385 symbol matching the requested DOMAIN.
3386 Compare the requested domain with the symbol's domain directly.
3387 (iterate_over_symbols): Compare the requested domain with the
3388 symbol's domain directly.
3389 * symtab.h (symbol_matches_domain): Remove.
3390
25326a28 33912014-06-06 Doug Evans <xdje42@gmail.com>
d2929fdc
DE
3392
3393 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
3394 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
3395 (gdbscm_guile_version_is_at_least): Declare.
3396 (gdbscm_scm_string_to_int): Declare.
3397 * guile/guile.c (gdbscm_guile_major_version): New global.
3398 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
3399 (guile_datadir): New static global.
3400 (gdbscm_guile_data_directory): New function.
3401 (initialize_scheme_side): Update.
3402 (misc_guile_functions): Add guile-data-directory.
3403 (initialize_gdb_module): Fetch guile version number.
3404 * guile/lib/gdb.scm: Remove call to add-to-load-path.
3405 * guile/lib/gdb/init.scm (%initialize!): Ditto.
3406 * guile/lib/gdb/boot.scm: Use guile-data-directory.
3407 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
3408 comments.
3409 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
3410 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
3411 * guile/scm-value.c (gdbscm_value_to_string): Only call
3412 scm_port_conversion_strategy if Guile version >= 2.0.6.
3413
0a770bb2 34142014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
3415
3416 * main.c (print_gdb_help): Add -q and --silent.
3417
73ba372c
GB
34182014-06-06 Gary Benson <gbenson@redhat.com>
3419
3420 * common/signals.c: Remove preprocessor conditionals for
3421 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
3422 SIGSEGV and SIGTERM.
3423 * proc-events.c: Likewise.
3424
c33b2f12
MM
34252014-06-06 Markus Metzger <markus.t.metzger@intel.com>
3426
3427 * symfile.c (symfile_free_objfile): Remove restriction to
3428 OBJF_USERLOADED.
3429 * symfile-mem.c (symbol_file_add_from_memory): Call
3430 add_target_sections_of_objfile.
3431
fb934770
LC
34322014-06-05 Ludovic Courtès <ludo@gnu.org>
3433
3434 * guile/scm-value.c (gdbscm_history_append_x): Use
3435 'vlscm_get_value_smob_arg_unsafe' instead of
3436 'vlscm_scm_to_value'.
3437
6ef284bd
SM
34382014-06-05 Simon Marchi <simon.marchi@ericsson.com>
3439
3440 PR mi/15806
3441 * utils.c (printchar): Don't escape at all if quoter is NUL.
3442 Update function documentation to clarify effect of parameter
3443 QUOTER.
3444 * remote.c (escape_buffer): Pass '\\' as the quoter to
3445 fputstrn_unfiltered.
3446 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
3447 generate the output.
3448 (mi_solib_unloaded): Same.
3449
270c9937
JB
34502014-06-05 Joel Brobecker <brobecker@adacore.com>
3451
3452 * development.sh: Delete.
3453 * Makefile.in (config.status): Adjust dependency on development.sh.
3454 * configure.ac: Adjust development.sh source call.
3455 * configure: Regenerate.
3456
16f691fb
DE
34572014-06-04 Doug Evans <xdje42@gmail.com>
3458
3459 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
3460 is_scheme_bkpt, spec.
3461 (bpscm_make_breakpoint_smob): Initialize new members.
3462 (gdbscm_create_breakpoint_x): Split into two ...
3463 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
3464 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
3465 (scheme_function breakpoint_functions): Update.
3466 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
3467 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
3468 register-breakpoint!.
3469
ef7cab6b
JB
34702014-06-04 Joel Brobecker <brobecker@adacorer.com>
3471
3472 PR server/17023
3473 * mem-break.c (z_type_supported): Return zero if
3474 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
3475
012370f6
TT
34762014-06-04 Tom Tromey <tromey@redhat.com>
3477
3478 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
3479 value_from_contents_and_address_unresolved.
3480 (ada_template_to_fixed_record_type_1): Likewise.
3481 (ada_which_variant_applies): Likewise.
3482 * value.h (value_from_contents_and_address_unresolved): Declare.
3483 * value.c (value_from_contents_and_address_unresolved): New
3484 function.
3485 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
3486 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
3487 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
3488
92e2a17f
TT
34892014-06-04 Tom Tromey <tromey@redhat.com>
3490
3491 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
3492
c0939df1
TT
34932014-06-04 Tom Tromey <tromey@redhat.com>
3494
3495 * procfs.c (procfs_attach): Make "args" const.
3496 * windows-nat.c (windows_attach): Make "args" const.
3497 * nto-procfs.c (procfs_attach): Make "args" const.
3498 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
3499 * go32-nat.c (go32_attach): Make "args" const.
3500 * gnu-nat.c (gnu_attach): Make "args" const.
3501 * darwin-nat.c (darwin_attach): Make "args" const.
3502 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
3503 * linux-nat.c (linux_nat_attach): Make "args" const.
3504 * remote.c (extended_remote_attach_1, extended_remote_attach):
3505 Make "args" const.
3506 * target.h (struct target_ops) <to_attach>: Make "args" const.
3507 (find_default_attach): Likewise.
3508 * utils.c (parse_pid_to_attach): Make "args" const.
3509 * utils.h (parse_pid_to_attach): Update.
3510
8eaff7cd
TT
35112014-06-04 Tom Tromey <tromey@redhat.com>
3512
3513 * target-delegates.c: Rebuild.
3514 * target.c (default_thread_address_space): New function.
3515 (target_thread_address_space): Simplify.
3516 * target.h (struct target_ops) <to_thread_address_space>: Add
3517 TARGET_DEFAULT_FUNC.
3518
1913f160
DE
35192014-06-04 Doug Evans <xdje42@gmail.com>
3520
3521 * guile/scm-type.c (type_smob): Remove duplicate typedef.
3522
70ad5bff
MM
35232014-06-04 Markus Metzger <markus.t.metzger@intel.com>
3524
3525 * record-btrace.c: Include event-loop.h and inf-loop.h.
3526 (record_btrace_resume_exec_dir)
3527 (record_btrace_async_inferior_event_handler)
3528 (record_btrace_handle_async_inferior_event): New.
3529 (record_btrace_open): Create async event handler.
3530 (record_btrace_close): Delete async event handler.
3531 (record_btrace_resume): Set record_btrace_resume_exec_dir,
3532 Mark async event handler.
3533 (record_btrace_execution_direction): New.
3534 (init_record_btrace_ops): Initialize to_execution_direction.
3535
b6210538
DE
35362014-06-03 Doug Evans <xdje42@gmail.com>
3537
3538 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
3539 (gdbscm_make_parameter): Ditto.
3540
a5b1fd27
DE
35412014-06-03 Doug Evans <dje@google.com>
3542
3543 * exec.c (exec_close_1): Call clear_section_table instead of
3544 resize_section_table.
3545 (clear_section_table): New function.
3546 (resize_section_table): Make static. Rename arg num_added to
3547 adjustment.
3548 * exec.h (clear_section_table): Declare.
3549 (resize_section_table): Delete.
3550 * progspace.c (release_program_space): Call clear_section_table
3551 instead of resize_section_table.
3552
0c6e92a5
SC
35532014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3554
3555 * NEWS (Python Scripting): Add entry about the new xmethods
3556 feature.
3557
883964a7
SC
35582014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3559
3560 * python/py-xmethods.c: New file.
3561 * python/py-objfile.c (objfile_object): New field 'xmethods'.
3562 (objfpy_dealloc): XDECREF on the new xmethods field.
3563 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
3564 field.
3565 (objfpy_get_xmethods): New function.
3566 (objfile_getset): New entry 'xmethods'.
3567 * python/py-progspace.c (pspace_object): New field 'xmethods'.
3568 (pspy_dealloc): XDECREF on the new xmethods field.
3569 (pspy_new, pspace_to_pspace_object): Initialize xmethods
3570 field.
3571 (pspy_get_xmethods): New function.
3572 (pspace_getset): New entry 'xmethods'.
3573 * python/python-internal.h: Add declarations for new functions.
3574 * python/python.c (_initialize_python): Invoke
3575 gdbpy_initialize_xmethods.
3576 * python/lib/gdb/__init__.py (xmethods): New
3577 attribute.
3578 * python/lib/gdb/xmethod.py: New file.
3579 * python/lib/gdb/command/xmethods.py: New file.
3580
58992dc5
SC
35812014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3582
3583 * eval.c (evaluate_subexp_standard): Call the xmethod if the
3584 best match method returned by find_overload_match is an xmethod.
3585 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
3586 the best matching operator returned by find_overload_match is an
3587 xmethod.
3588 * valops.c: #include "extension.h".
3589 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
3590 Return void. The list of matching source methods is returned in
3591 "fn_list" and a vector of matching debug method workers is
3592 returned in "xm_worker_vec". Update all callers.
3593 (value_find_oload_method_list): Likewise.
3594 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
3595 non-NULL, then the index of the best matching method in this
3596 vector is returned. Update all callers.
3597 (find_overload_match): Include xmethods while performing overload
3598 resolution.
3599
e81e7f5e
SC
36002014-06-03 Siva Chandra Reddy <sivachandra@google.com>
3601
3602 * defs.h (enum lval_type): New enumerator "lval_xcallable".
3603 * extension-priv.h (struct extension_language_ops): Add the
3604 xmethod interface.
3605 * extension.c (new_xmethod_worker, clone_xmethod_worker,
3606 get_matching_xmethod_workers, get_xmethod_argtypes,
3607 invoke_xmethod, free_xmethod_worker,
3608 free_xmethod_worker_vec): New functions.
3609 * extension.h: #include "common/vec.h".
3610 New function declarations.
3611 (struct xmethod_worker): New struct.
3612 (VEC (xmethod_worker_ptr)): New vector type.
3613 (xmethod_worker_ptr): New typedef.
3614 (xmethod_worker_vec): Likewise.
3615 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
3616 builtin_type.
3617 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
3618 (struct builtin_type): New field "xmethod".
3619 * valarith.c (value_ptradd): Assert that the value argument is not
3620 lval_xcallable.
3621 * valops.c (value_must_coerce_to_target): Return 0 for
3622 lval_xcallable values.
3623 * value.c (struct value): New field XM_WORKER in the field
3624 LOCATION.
3625 (value_address, value_raw_address): Return 0 for lval_xcallable
3626 values.
3627 (set_value_address): Assert that the value is not an
3628 lval_xcallable.
3629 (value_free): Free the associated xmethod worker when freeing
3630 lval_xcallable values.
3631 (set_value_component_location): Assert that the WHOLE value is not
3632 lval_xcallable.
3633 (value_of_xmethod, call_xmethod): New functions.
3634 * value.h: Declare "struct xmethod_worker".
3635 Declare new functions value_of_xmethod, call_xmethod.
3636
ef370185
JB
36372014-06-03 Joel Brobecker <brobecker@adacore.com>
3638 Pedro Alves <palves@redhat.com>
3639
3640 PR breakpoints/17000
3641 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
3642 New function, extracted from software_breakpoint_inserted_here_p.
3643 (software_breakpoint_inserted_here_p): Replace factored out code
3644 by call to find_non_raw_software_breakpoint_inserted_here.
3645 (bp_target_info_copy_insertion_state): New function.
3646 (bkpt_insert_location): Handle the case of a single-step
3647 breakpoint already inserted at the same address.
3648 (bkpt_remove_location): Handle the case of a single-step
3649 breakpoint still inserted at the same address.
3650 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
3651 breakpoint already inserted at the same address.
3652 (deprecated_remove_raw_breakpoint): Handle the case of a
3653 non-raw breakpoint still inserted at the same address.
3654 (find_single_step_breakpoint): New function, extracted from
3655 single_step_breakpoint_inserted_here_p.
3656 (find_single_step_breakpoint): New function,
3657 factored out from single_step_breakpoint_inserted_here_p.
3658 (single_step_breakpoint_inserted_here_p): Reimplement.
3659
1e2ccb61
BM
36602014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
3661
3662 Pushed by Joel Brobecker <brobecker@adacore.com>
3663 * source.c (show_substitute_path_command): Fix display of matching
3664 substitution rules.
3665
d3448d85
GB
36662014-06-03 Gary Benson <gbenson@redhat.com>
3667
3668 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
3669
06eb1586
DE
36702014-06-02 Doug Evans <xdje42@gmail.com>
3671
3672 Add parameter support for Guile.
3673 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
3674 (SUBDIR_GUILE_SRCS): Add scm-param.c.
3675 (scm-param.o): New rule.
3676 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
3677 (gdbscm_misc_error): Declare.
3678 (gdbscm_canonicalize_command_name): Declare.
3679 (gdbscm_scm_to_host_string): Declare.
3680 (gdbscm_scm_from_host_string): Declare.
3681 (gdbscm_initialize_parameters): Declare.
3682 * guile/guile.c (initialize_gdb_module): Call
3683 gdbscm_initialize_parameters.
3684 * guile/lib/gdb.scm: Export parameter symbols.
3685 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
3686 cmdscm_canonicalize_name and made public. All callers updated.
3687 * guile/scm-exception.c (gdbscm_misc_error): New function.
3688 * guile/scm-param.c: New file.
3689 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
3690 (gdbscm_scm_to_host_string): New function.
3691 (gdbscm_scm_from_host_string): New function.
3692 * scm-utils.c (gdbscm_gc_dup_argv): New function.
3693
e698b8c4
DE
36942014-06-02 Doug Evans <xdje42@gmail.com>
3695
3696 Add command support for Guile.
3697 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
3698 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
3699 (scm-cmd.o): New rule.
3700 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
3701 (gdbscm_user_error_p): Declare.
3702 (gdbscm_parse_command_name): Declare.
3703 (gdbscm_valid_command_class_p): Declare.
3704 (gdbscm_initialize_commands): Declare.
3705 * guile/guile.c (initialize_gdb_module): Call
3706 gdbscm_initialize_commands.
3707 * guile/lib/gdb.scm: Export command symbols.
3708 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
3709 (throw-user-error): New function.
3710 * guile/scm-cmd.c: New file.
3711 * guile/scm-exception.c (user_error_symbol): New static global.
3712 (gdbscm_user_error_p): New function.
3713 (gdbscm_initialize_exceptions): Set user_error_symbol.
3714 * scm-utils.c (gdbscm_gc_xstrdup): New function.
3715
fb1f94b0
PM
37162014-06-02 Phil Muldoon <pmuldoon@redhat.com>
3717
3718 * top.c (command_loop): Handle comments here...
3719 (command_line_input): ... not here.
3720
ded03782
DE
37212014-06-02 Doug Evans <xdje42@gmail.com>
3722
3723 Add progspace support for Guile.
3724 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
3725 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
3726 (scm-progspace.o): New rule.
3727 * guile/guile-internal.h (pspace_smob): New typedef.
3728 (psscm_pspace_smob_pretty_printers): Declare.
3729 (psscm_pspace_smob_from_pspace): Declare.
3730 (psscm_scm_from_pspace): Declare.
3731 * guile/guile.c (initialize_gdb_module): Call
3732 gdbscm_initialize_pspaces.
3733 * guile/lib/gdb.scm: Export progspace symbols.
3734 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
3735 support.
3736 (append-pretty-printer!): Ditto.
3737 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
3738 Implement.
3739 * guile/scm-progspace.c: New file.
3740
397998fc
AM
37412014-06-03 Alan Modra <amodra@gmail.com>
3742
3743 * ppc64-tdep.c (ppc64_standard_linkage8): New.
3744 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
3745
6aa5f3a6
DE
37462014-06-02 Doug Evans <dje@google.com>
3747
3748 Add support for skeletonless type units.
3749 * dwarf2read.c (struct dwarf2_per_objfile): New member
3750 n_allocated_type_units.
3751 (struct dwarf2_per_objfile) <tu_stats>: New member
3752 nr_all_type_units_reallocs.
3753 (create_signatured_type_table_from_index): Initialize
3754 n_allocated_type_units
3755 (create_all_type_units): Ditto.
3756 (add_type_unit): Move up in file. New arg slot.
3757 All callers updated. Increase space for all_type_units more
3758 efficiently.
3759 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
3760 (lookup_dwo_signatured_type): Handle skeletonless TUs.
3761 (lookup_dwp_signatured_type): Ditto.
3762 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
3763 All callers updated.
3764 (build_type_psymtabs_1): Leave type_unit_groups as
3765 NULL if no TUs present.
3766 (print_tu_stats): New function.
3767 (process_skeletonless_type_unit): New function.
3768 (process_dwo_file_for_skeletonless_type_units): New
3769 function.
3770 (process_skeletonless_type_units): New function.
3771 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
3772 Call print tu_stats if debugging enabled.
3773
41fac0cf
PA
37742014-06-02 Pedro Alves <palves@redhat.com>
3775
3776 * breakpoint.c (build_target_command_list): Don't build a command
3777 list if we have any duplicate location that isn't a dprintf.
3778
cd1608cc
PA
37792014-06-02 Pedro Alves <palves@redhat.com>
3780
3781 * breakpoint.c (dprintf_breakpoint_hit): New function.
3782 (initialize_breakpoint_ops): Install it as dprintf's
3783 breakpoint_hit method.
3784
486ef3b9
JB
37852014-06-02 Joel Brobecker <brobecker@adacore.com>
3786
3787 * source.c (substitute_path_rule_matches): Simplify using
3788 filename_ncmp instead of FILENAME_CMP.
3789
230cd560
JB
37902014-06-02 Joel Brobecker <brobecker@adacore.com>
3791
3792 * source.c (substitute_path_rule_matches): Remove trailing spaces.
3793
16954d5d
LC
37942014-06-01 Ludovic Courtès <ludo@gnu.org>
3795
3796 * configure.ac: When Guile is available, check for the
3797 availability of 'scm_new_smob'.
3798 * configure, config.h.in: Regenerate.
3799 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
3800 function.
3801
53e8a631
AB
38022014-05-30 Andrew Burgess <aburgess@broadcom.com>
3803
3804 * frame.c (struct frame_info): Add stop_string field.
3805 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
3806 (get_prev_frame_always): Old content moved into
3807 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
3808 TRY_CATCH, handle MEMORY_ERROR exceptions.
3809 (frame_stop_reason_string): New function definition.
3810 * frame.h (unwind_stop_reason_to_string): Extend comment to
3811 mention frame_stop_reason_string.
3812 (frame_stop_reason_string): New function declaration.
3813 * stack.c (frame_info): Switch to frame_stop_reason_string.
3814 (backtrace_command_1): Switch to frame_stop_reason_string.
3815 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
3816 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
3817 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
3818
70e38b8e
AB
38192014-05-30 Andrew Burgess <aburgess@broadcom.com>
3820
3821 * frame.c (frame_stop_reason_string): Rename to ...
3822 (unwind_stop_reason_to_string): this.
3823 * frame.h (frame_stop_reason_string): Rename to ...
3824 (unwind_stop_reason_to_string): this.
3825 * stack.c (frame_info): Update call to frame_stop_reason_string.
3826 (backtrace_command_1): Likewise.
3827 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
3828 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3829
938f0e2f
AB
38302014-05-30 Andrew Burgess <aburgess@broadcom.com>
3831
3832 * frame.c (remove_prev_frame): New function.
3833 (get_prev_frame_if_no_cycle): Create / discard cleanup using
3834 remove_prev_frame.
3835
a09dd441
PA
38362014-05-29 Pedro Alves <palves@redhat.com>
3837
3838 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
3839 and make it const. When a single-step decays to a continue,
3840 clear 'step', not 'hw_step'. Pass whether the caller wanted
3841 to step to user_visible_resume_ptid, not what we ask the
3842 target to do.
3843
bdc36728
PA
38442014-05-29 Pedro Alves <palves@redhat.com>
3845
3846 * infrun.c (process_event_stop_test, handle_step_into_function)
3847 (handle_step_into_function_backward): Adjust.
3848 Don't set the even thread's stop_step and call stop_waiting before
3849 calling end_stepping_range. Instead do that ...
3850 (end_stepping_range): ... here. Take an ecs pointer parameter.
3851
22bcd14b
PA
38522014-05-29 Pedro Alves <palves@redhat.com>
3853
3854 * infrun.c (stop_stepping): Rename to ...
3855 (stop_waiting): ... this.
3856 (proceed): Update comment.
3857 (process_event_stop_test, handle_inferior_event)
3858 (handle_signal_stop, handle_step_into_function)
3859 (handle_step_into_function_backward): Update.
3860
4ae57c05
PA
38612014-05-29 Pedro Alves <palves@redhat.com>
3862
3863 * infcall.c (run_inferior_call): Don't check whether the current
3864 thread is running after the proceed call.
3865
329ea579
PA
38662014-05-29 Pedro Alves <palves@redhat.com>
3867 Tom Tromey <tromey@redhat.com>
3868
3869 * NEWS: Mention "maint set target-async", "set mi-async", and that
3870 background execution commands are now always available.
3871 * target.h (target_async_permitted): Update comment.
3872 * target.c (target_async_permitted, target_async_permitted_1):
3873 Default to 1.
3874 (set_target_async_command): Rename to ...
3875 (maint_set_target_async_command): ... this.
3876 (show_target_async_command): Rename to ...
3877 (maint_show_target_async_command): ... this.
3878 (_initialize_target): Adjust.
3879 * infcmd.c (prepare_execution_command): Make extern.
3880 * inferior.h (prepare_execution_command): Declare.
3881 * infrun.c (set_observer_mode): Leave target async alone.
3882 * mi/mi-interp.c (mi_interpreter_init): Install
3883 mi_on_sync_execution_done as sync_execution_done observer.
3884 (mi_on_sync_execution_done): New function.
3885 (mi_execute_command_input_handler): Don't print the prompt if we
3886 just started a synchronous command with an async target.
3887 (mi_on_resume): Check sync_execution before printing prompt.
3888 * mi/mi-main.h (mi_async_p): Declare.
3889 * mi/mi-main.c: Include gdbcmd.h.
3890 (mi_async_p): New function.
3891 (mi_async, mi_async_1): New globals.
3892 (set_mi_async_command, show_mi_async_command, mi_async): New
3893 functions.
3894 (exec_continue): Call prepare_execution_command.
3895 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
3896 (mi_execute_async_cli_command): Use mi_async_p.
3897 (_initialize_mi_main): Install "set mi-async". Make
3898 "target-async" a deprecated alias.
3899
92bcb5f9
PA
39002014-05-29 Pedro Alves <palves@redhat.com>
3901
3902 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
3903 (_initialize_cli_interp): Adjust.
3904 * event-loop.c: Include "observer.h".
3905 (start_event_loop): Notify 'command_error' observers instead of
3906 calling display_gdb_prompt. Remove FIXME comment.
3907 * event-top.c (display_gdb_prompt): Remove call into the
3908 interpreters.
3909 * inf-loop.c: Include "observer.h".
3910 (inferior_event_handler): Notify 'command_error' observers instead
3911 of calling display_gdb_prompt.
3912 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
3913 observers instead of calling display_gdb_prompt.
3914 * interps.c (interp_set): Don't call display_gdb_prompt.
3915 (current_interp_display_prompt_p): Delete.
3916 * interps.h (interp_prompt_p): Delete declaration.
3917 (interp_prompt_p_ftype): Delete.
3918 (struct interp_procs) <prompt_proc_p>: Delete field.
3919 (current_interp_display_prompt_p): Delete declaration.
3920 * mi-interp.c (mi_interpreter_prompt_p): Delete.
3921 (_initialize_mi_interp): Adjust.
3922 * tui-interp.c (tui_init): Install 'sync_execution_done' and
3923 'command_error' observers.
3924 (tui_on_sync_execution_done, tui_on_command_error): New
3925 functions.
3926 (tui_display_prompt_p): Delete.
3927 (_initialize_tui_interp): Adjust.
3928
fd664c91
PA
39292014-05-29 Pedro Alves <palves@redhat.com>
3930
3931 PR gdb/13860
3932 * cli/cli-interp.c: Include infrun.h and observer.h.
3933 (cli_uiout, cli_interp): New globals.
3934 (cli_on_signal_received, cli_on_end_stepping_range)
3935 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
3936 functions.
3937 (cli_interpreter_init): Install them as 'end_stepping_range',
3938 'signal_received' 'signal_exited', 'exited' and 'no_history'
3939 observers.
3940 (_initialize_cli_interp): Remove cli_interp local.
3941 * infrun.c (handle_inferior_event): Call the several stop reason
3942 observers instead of printing the stop reason directly.
3943 (end_stepping_range): New function.
3944 (print_end_stepping_range_reason, print_signal_exited_reason)
3945 (print_exited_reason, print_signal_received_reason)
3946 (print_no_history_reason): Make static, and add an uiout
3947 parameter. Print to that instead of to CURRENT_UIOUT.
3948 * infrun.h (print_end_stepping_range_reason)
3949 (print_signal_exited_reason, print_exited_reason)
3950 (print_signal_received_reason print_no_history_reason): New
3951 declarations.
3952 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
3953 'mi_uiout'.
3954 <cli_uiout>: New field.
3955 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
3956 uiout for CLI output. Install 'signal_received',
3957 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
3958 observers.
3959 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
3960 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
3961 (mi_on_no_history): New functions.
3962 (ui_out_free_cleanup): Delete function.
3963 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
3964 instead use the one already stored in the MI interpreter data.
3965 (mi_ui_out): Adjust.
3966 * tui/tui-interp.c: Include infrun.h and observer.h.
3967 (tui_interp): New global.
3968 (tui_on_signal_received, tui_on_end_stepping_range)
3969 (tui_on_signal_exited, tui_on_exited)
3970 (tui_on_no_history): New functions.
3971 (tui_init): Install them as 'end_stepping_range',
3972 'signal_received' 'signal_exited', 'exited' and 'no_history'
3973 observers.
3974 (_initialize_tui_interp): Delete tui_interp local.
3975
8817a6f2
PA
39762014-05-29 Pedro Alves <palves@redhat.com>
3977
3978 PR gdb/15713
3979 * linux-nat.c (linux_nat_resume_callback): Rename the second
3980 parameter to 'except'. Skip LP if it points to EXCEPT.
3981 (linux_nat_resume): Don't mark the event lwp as not stopped
3982 before resuming sibling lwps. Instead ask
3983 linux_nat_resume_callback to skip the event lwp. Mark it as not
3984 stopped after actually resuming it.
3985 (linux_handle_syscall_trap): Mark the lwp as not stopped after
3986 resuming it.
3987 (wait_lwp): Mark the lwp as stopped here.
3988 (stop_wait_callback): Mark the lwp as not stopped right after
3989 resuming it. Don't mark lwps as stopped here.
3990 (linux_nat_filter_event): Mark the lwp as stopped earlier.
3991 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
3992
251bde03
PA
39932014-05-29 Pedro Alves <palves@redhat.com>
3994
3995 PR PR15693
3996 * infrun.c (resume): Determine how much to resume depending on
3997 whether the caller wanted a step, not whether we can hardware step
3998 the target. Mark all threads that we intend to run as running,
3999 unless we're calling an inferior function.
4000 (normal_stop): If the thread is running an infcall, don't finish
4001 thread state.
4002 * target.c (target_resume): Don't mark threads as running here.
4003
7f3c0343
JB
40042014-05-28 Joel Brobecker <brobecker@adacore.com>
4005
4006 * serial.c (_initialize_serial): Remove support for
4007 the "set remotebaud" and "show remotebaud" commands.
4008 * NEWS: Add entry documenting the removal of that command.
4009
ee34b3f9
YQ
40102014-05-28 Yao Qi <yao@codesourcery.com>
4011
4012 * charset.c: Fix typo in comments.
4013
add6c04d
GB
40142014-05-27 Gary Benson <gbenson@redhat.com>
4015
4016 * utils.c (internal_vproblem): Prompt for a bug report.
4017
92c48fc5
AW
40182014-05-26 Andy Wingo <wingo@igalia.com>
4019
4020 * guile/scm-arch.c (arscm_mark_arch_smob):
4021 * guile/scm-block.c (bkscm_mark_block_smob)
4022 (bkscm_mark_block_syms_progress_smob):
4023 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
4024 * guile/scm-exception.c (exscm_mark_exception_smob):
4025 * guile/scm-frame.c (frscm_mark_frame_smob):
4026 * guile/scm-iterator.c (itscm_mark_iterator_smob):
4027 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
4028 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
4029 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
4030 (ppscm_mark_pretty_printer_worker_smob):
4031 * guile/scm-symbol.c (syscm_mark_symbol_smob):
4032 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
4033 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
4034 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
4035 mark functions.
4036 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
4037 function.
4038
b2715b27
AW
40392014-05-26 Andy Wingo <wingo@igalia.com>
4040 Doug Evans <xdje42@gmail.com>
4041
4042 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
4043 empty_base_class. All uses updated.
4044 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
4045 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
4046 Adapt all callers.
4047 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
4048 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
4049 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
4050 (gdbscm_gsmob_has_property_p, add_property_name)
4051 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
4052 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
4053 (gdb-object-has-property?, gdb-object-properties): Remove.
4054 (gdb-object-kind): Renamed from gsmob-kind.
4055
214ab2da
AW
40562014-05-26 Andy Wingo <wingo@igalia.com>
4057
4058 * configure.ac (try_guile_versions): Allow building with guile 2.2.
4059 * configure: Regenerate.
4060
589fdceb
MM
40612014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4062
4063 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
4064
67b5c0c1
MM
40652014-05-23 Markus Metzger <markus.t.metzger@intel.com>
4066
4067 * record-btrace.c (record_btrace_allow_memory_access): Remove.
4068 (replay_memory_access_read_only, replay_memory_access_read_write)
4069 (replay_memory_access_types, replay_memory_access)
4070 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
4071 (cmd_set_record_btrace, cmd_show_record_btrace)
4072 (cmd_show_replay_memory_access): New.
4073 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
4074 (record_btrace_remove_breakpoint): Replace
4075 record_btrace_allow_memory_access with replay_memory_access.
4076 (_initialize_record_btrace): Add commands.
4077 * NEWS: Announce it.
4078
036cd381
RR
40792014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4080
4081 * aarch64-linux-nat.c (asm/ptrace.h): Include.
4082
c77c1e42
RR
40832014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4084
4085 * MAINTAINERS (Write After Approval): Move self back from
4086 paper trail.
4087
45741a9c
PA
40882014-05-22 Pedro Alves <palves@redhat.com>
4089
4090 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
4091 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
4092 (disable_randomization, enum exec_direction_kind)
4093 (execution_direction, stop_registers, start_remote)
4094 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
4095 (wait_for_inferior, normal_stop, get_last_target_status)
4096 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
4097 (insert_step_resume_breakpoint_at_sal)
4098 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
4099 (set_step_info, print_stop_event, signal_stop_state)
4100 (signal_print_state, signal_pass_state, signal_stop_update)
4101 (signal_print_update, signal_pass_update)
4102 (update_signals_program_target, clear_exit_convenience_vars)
4103 (displaced_step_dump_bytes, update_observer_mode)
4104 (signal_catch_update, gdb_signal_from_command): Move
4105 declarations ...
4106 * infrun.h: ... to this new file.
4107 * amd64-tdep.c: Include infrun.h.
4108 * annotate.c: Include infrun.h.
4109 * arch-utils.c: Include infrun.h.
4110 * arm-linux-tdep.c: Include infrun.h.
4111 * arm-tdep.c: Include infrun.h.
4112 * break-catch-sig.c: Include infrun.h.
4113 * breakpoint.c: Include infrun.h.
4114 * common/agent.c: Include infrun.h instead of inferior.h.
4115 * corelow.c: Include infrun.h.
4116 * event-top.c: Include infrun.h.
4117 * go32-nat.c: Include infrun.h.
4118 * i386-tdep.c: Include infrun.h.
4119 * inf-loop.c: Include infrun.h.
4120 * infcall.c: Include infrun.h.
4121 * infcmd.c: Include infrun.h.
4122 * infrun.c: Include infrun.h.
4123 * linux-fork.c: Include infrun.h.
4124 * linux-nat.c: Include infrun.h.
4125 * linux-thread-db.c: Include infrun.h.
4126 * monitor.c: Include infrun.h.
4127 * nto-tdep.c: Include infrun.h.
4128 * procfs.c: Include infrun.h.
4129 * record-btrace.c: Include infrun.h.
4130 * record-full.c: Include infrun.h.
4131 * remote-m32r-sdi.c: Include infrun.h.
4132 * remote-mips.c: Include infrun.h.
4133 * remote-notif.c: Include infrun.h.
4134 * remote-sim.c: Include infrun.h.
4135 * remote.c: Include infrun.h.
4136 * reverse.c: Include infrun.h.
4137 * rs6000-tdep.c: Include infrun.h.
4138 * s390-linux-tdep.c: Include infrun.h.
4139 * solib-irix.c: Include infrun.h.
4140 * solib-osf.c: Include infrun.h.
4141 * solib-svr4.c: Include infrun.h.
4142 * target.c: Include infrun.h.
4143 * top.c: Include infrun.h.
4144 * windows-nat.c: Include infrun.h.
4145 * mi/mi-interp.c: Include infrun.h.
4146 * mi/mi-main.c: Include infrun.h.
4147 * python/py-threadevent.c: Include infrun.h.
4148
98eb56a4
PA
41492014-05-22 Pedro Alves <palves@redhat.com>
4150
4151 * infrun.c (handle_inferior_event): Store the exit code for
4152 --return-child-result here, instead of ...
4153 (print_exited_reason): ... here.
4154
17b2616c
PA
41552014-05-21 Pedro Alves <palves@redhat.com>
4156
4157 PR gdb/13860
4158 * gdbthread.h (struct thread_control_state): New field
4159 `command_interp'.
4160 * infrun.c (follow_fork): Copy the new thread control field to the
4161 child fork thread.
4162 (clear_proceed_status_thread): Clear the new thread control field.
4163 (proceed): Set the new thread control field.
4164 * interps.h (command_interp): Declare.
4165 * interps.c (command_interpreter): New global.
4166 (command_interp): New function.
4167 (interp_exec): Set `command_interpreter' while here.
4168 * cli-out.c (cli_uiout_dtor): New function.
4169 (cli_ui_out_impl): Install it.
4170 * mi/mi-interp.c: Include cli-out.h.
4171 (mi_cmd_interpreter_exec): Add comment.
4172 (restore_current_uiout_cleanup): New function.
4173 (ui_out_free_cleanup): New function.
4174 (mi_on_normal_stop): If finishing an execution command started by
4175 a CLI command, or any kind of breakpoint-like event triggered,
4176 print the stop event to the output (CLI) stream.
4177 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
4178
5166082f
PA
41792014-05-21 Pedro Alves <palves@redhat.com>
4180
4181 * cli/cli-cmds.c (list_command): Handle the first "list" after the
4182 current source line having changed.
4183 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
4184 * infrun.c (normal_stop): Adjust call to
4185 set_current_sal_from_frame.
4186 * source.c (clear_lines_listed_range): New function.
4187 (set_current_source_symtab_and_line, identify_source_line): Clear
4188 the lines listed range.
4189 (line_info): Handle the first "info line" after the current source
4190 line having changed.
4191 * stack.c (print_stack_frame): Remove center handling.
4192 (set_current_sal_from_frame): Remove 'center' parameter. Don't
4193 center sal.line.
4194
c1ee2fb3
PA
41952014-05-21 Pedro Alves <palves@redhat.com>
4196
4197 * inf-child.c (inf_child_mourn_inferior): New function.
4198 * inf-child.h (inf_child_mourn_inferior): New declaration.
4199 * darwin-nat.c (darwin_mourn_inferior): Use
4200 inf_child_mourn_inferior.
4201 * gnu-nat.c (gnu_mourn_inferior): Likewise.
4202 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
4203 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
4204 * nto-procfs.c (procfs_mourn_inferior): Likewise.
4205 * windows-nat.c (windows_mourn_inferior): Likewise.
4206
5c6d4fb2
DE
42072014-05-21 Doug Evans <xdje42@gmail.com>
4208
250748cb 4209 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
5c6d4fb2 4210
4a2722c5
DE
42112014-05-21 Doug Evans <xdje42@gmail.com>
4212
17292b30 4213 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
4a2722c5
DE
4214 (gdbscm_out_of_range_error): Ditto.
4215 (gdbscm_memory_error): Ditto.
250748cb
DE
4216 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
4217 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
4a2722c5
DE
4218 (gdbscm_out_of_range_error): Update.
4219 (gdbscm_memory_error): Update.
4220 (gdbscm_scm_to_target_string_unsafe): Delete.
4221
6a3cb8e8
PA
42222014-05-21 Pedro Alves <palves@redhat.com>
4223
4224 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
4225 globals.
4226 (inf_child_open_target): New function.
4227 (inf_child_open): Use inf_child_open_target to push the target
4228 instead of erroring out.
4229 (inf_child_disconnect, inf_child_close)
4230 (inf_child_maybe_unpush_target): New functions.
4231 (inf_child_target): Install inf_child_disconnect and
4232 inf_child_close. Store a pointer to the returned object.
4233 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
4234 declarations.
4235 * target.c (auto_connect_native_target): New global.
4236 (show_default_run_target): New function.
4237 (find_default_run_target): Return NULL if automatically connecting
4238 to the native target is disabled.
4239 (_initialize_target): Install set/show auto-connect-native-target.
4240 * NEWS: Mention "set auto-connect-native-target", and "target
4241 native".
4242 * linux-nat.c (super_close): New global.
4243 (linux_nat_close): Call super_close.
4244 (linux_nat_add_target): Store a pointer to the base class's
4245 to_close method.
4246 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
4247 inf_child_maybe_unpush.
4248 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
4249 already pushed.
4250 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
4251 the inferior. Use inf_child_maybe_unpush_target.
4252 (inf_ttrace_attach): Don't push the target if it is already
4253 pushed.
4254 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
4255 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
4256 after mourning the inferior. Use inf_child_maybe_unpush_target.
4257 (darwin_attach_pid): Don't push the target if it is already
4258 pushed.
4259 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
4260 mourning the inferior. Use inf_child_maybe_unpush_target.
4261 (gnu_detach): Use inf_child_maybe_unpush_target.
4262 * go32-nat.c (go32_create_inferior): Don't push the target if it
4263 is already pushed.
4264 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
4265 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
4266 (procfs_open): Rename to ...
4267 (procfs_open_1): ... this. Add target_ops parameter. Adjust
4268 comments. Can target_preopen before changing node. Call
4269 inf_child_open_target to push the target explicitly.
4270 (procfs_attach): Don't push the target if it is already pushed.
4271 (procfs_detach): Use inf_child_maybe_unpush_target.
4272 (procfs_create_inferior): Don't push the target if it is already
4273 pushed.
4274 (nto_native_ops): New global.
4275 (procfs_open): Reimplement.
4276 (procfs_native_open): New function.
4277 (init_procfs_targets): Install procfs_native_open as to_open of
4278 "target native". Store a pointer to the "native" target in
4279 nto_native_ops.
4280 * procfs.c (procfs_attach): Don't push the target if it is already
4281 pushed.
4282 (procfs_detach): Use inf_child_maybe_unpush_target.
4283 (procfs_mourn_inferior): Only unpush the target after mourning the
4284 inferior. Use inf_child_maybe_unpush_target.
4285 (procfs_init_inferior): Don't push the target if it is already
4286 pushed.
4287 * windows-nat.c (do_initial_windows_stuff): Don't push the target
4288 if it is already pushed.
4289
930ee1b1
PA
42902014-05-21 Pedro Alves <palves@redhat.com>
4291
4292 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
4293 and "procfs" targets are now called "native" instead.
4294
1f5d1b13
PA
42952014-05-21 Pedro Alves <palves@redhat.com>
4296
4297 * go32-nat.c (go32_open): Delete.
4298 (go32_target): Don't override the to_open method.
4299
132f8e03
PA
43002014-05-21 Pedro Alves <palves@redhat.com>
4301
4302 * nto-procfs.c (procfs_can_run): New function.
4303 (nto_procfs_ops): New global.
4304 (init_procfs_targets): New, based on procfs_target. Install
4305 "target native" in addition to "target procfs".
4306 (_initialize_procfs): Call init_procfs_targets instead of adding
4307 the target here.
4308
03c136c3
PA
43092014-05-21 Pedro Alves <palves@redhat.com>
4310
4311 * windows-nat.c (windows_target): Don't override to_shortname,
4312 to_longname or to_doc.
4313
a635d0f3
PA
43142014-05-21 Pedro Alves <palves@redhat.com>
4315
4316 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
4317 to_doc.
4318
4f9b5133
PA
43192014-05-21 Pedro Alves <palves@redhat.com>
4320
4321 * darwin-nat.c (_initialize_darwin_inferior): Don't override
4322 to_shortname, to_longname or to_doc.
4323
bc85afde
PA
43242014-05-21 Pedro Alves <palves@redhat.com>
4325
4326 * go32-nat.c (go32_target): Don't override to_shortname,
4327 to_longname or to_doc.
4328
4ebfc96e
PA
43292014-05-21 Pedro Alves <palves@redhat.com>
4330
4331 * inf-child.c (inf_child_open): Remove mention of "child".
4332 (inf_child_target): Rename target to "native" instead of "child".
4333
2648dfed
AA
43342014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4335
4336 * Makefile.in (SFILES): Delete "regset.c".
4337 (COMMON_OBS): Delete "regset.o".
4338 * regset.c: Remove.
4339 * regset.h (regset_alloc): Delete prototype.
4340
b13feb94
AA
43412014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4342
4343 * sparc-linux-tdep.c (sparc32_linux_gregset)
4344 (sparc32_linux_fpregset): New static regset structures.
4345 (sparc32_linux_init_abi): Drop dynamic regset allocations.
4346 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
4347 'fpregset' fields.
4348 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
4349 (sparc64_linux_fpregset): New static regset structures.
4350 (sparc64_linux_init_abi): Drop dynamic regset allocations.
4351 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
4352 New static regset structures.
4353 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
4354 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
4355 New static regset structures.
4356 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
4357 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
4358 New static regset structures.
4359 (sparc64obsd_init_abi): Drop dynamic regset allocations.
4360 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
4361 New static regset structures.
4362 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
4363
b4fd25c9
AA
43642014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4365
4366 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
4367 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
4368 register maps ("regmaps") from "*regset" to "*regmap". Do this
4369 for all regmap types and variables.
4370 * sparc-linux-tdep.c (sparc32_linux_step_trap)
4371 (sparc32_linux_supply_core_gregset)
4372 (sparc32_linux_collect_core_gregset)
4373 (sparc32_linux_supply_core_fpregset)
4374 (sparc32_linux_collect_core_fpregset): Likewise.
4375 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
4376 (sparc_gregmap, sparc_fpregmap): ... these.
4377 (sparc_supply_gregset, sparc_collect_gregset)
4378 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4379 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
4380 (_initialize_sparc_nat): Rename regmaps.
4381 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
4382 (sparc_gregmap, sparc_fpregmap): ... these.
4383 (sparc_supply_gregset, sparc_collect_gregset)
4384 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
4385 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
4386 Rename macros to...
4387 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
4388 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
4389 Likewise.
4390 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
4391 Rename to...
4392 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
4393 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
4394 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
4395 regmaps.
4396 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4397 (sparc32_bsd_fpregset): Rename to...
4398 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4399 (sparc32_bsd_fpregmap): ... these.
4400 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
4401 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
4402 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
4403 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
4404 (struct sparc_gregmap, struct sparc_fpregmap)
4405 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
4406 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
4407 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
4408 (sparc32_supply_regset, sparc32_collect_gregset)
4409 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
4410 prototypes.
4411 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
4412 (sparc64_linux_ptrace_gregmap): ... this.
4413 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
4414 (_initialize_sparc64_linux_nat): Rename regmaps.
4415 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
4416 (sparc64_linux_core_gregmap): ... this.
4417 (sparc64_linux_supply_core_gregset)
4418 (sparc64_linux_collect_core_gregset)
4419 (sparc64_linux_supply_core_fpregset)
4420 (sparc64_linux_collect_core_fpregset): Rename regmaps.
4421 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
4422 (sparc64_sol2_fpregset): Rename to...
4423 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
4424 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
4425 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
4426 regmaps.
4427 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
4428 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
4429 (sparc64_bsd_fpregset): Rename to...
4430 (struct sparc_gregmap, sparc64_sol2_gregmap)
4431 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
4432 (sparc64_bsd_fpregmap): ... these.
4433 (sparc64_supply_gregset, sparc64_collect_gregset)
4434 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
4435 prototypes.
4436 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
4437 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
4438 (sparc64fbsd_gregmap): ... this.
4439 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
4440 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
4441 Rename regmaps.
4442 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
4443 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
4444 (sparc64nbsd_collect_fpregset): Likewise.
4445 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
4446 (sparc64nbsd_gregmap): ... this.
4447 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
4448 regmaps.
4449 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
4450 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
4451 (sparc64obsd_gregmap): ... this.
4452 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
4453 regmaps.
4454 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
4455 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
4456 (sparc32nbsd_gregmap): ... this.
4457 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
4458 regmaps.
4459
8fea3224
AA
44602014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4461
4462 * score-tdep.c (score7_linux_gregset): New static regset
4463 structure.
4464 (score7_linux_regset_from_core_section): Remove dynamic regset
4465 allocation.
4466 (score_gdbarch_init): Drop allocation of tdep structure.
4467 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
4468
24534243
AA
44692014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4470
4471 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
4472 regset structures.
4473 (am33_regset_from_core_section): Remove dynamic regset
4474 allocations.
4475
b7195f27
AA
44762014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4477
4478 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
4479 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
4480 structures.
4481 (mips_linux_regset_from_core_section): Remove dynamic regset
4482 allocations.
4483 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4484 'gregset64', 'fpregset', and 'fpregset64'.
4485 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
4486 deleted tdep fields.
4487
ecc37a5a
AA
44882014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4489
4490 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
4491 regset structures.
4492 (amd64_regset_from_core_section): Remove dynamic regset
4493 allocations.
4494 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
4495 structure.
4496 (amd64obsd_regset_from_core_section): Remove dynamic regset
4497 allocation.
4498 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
4499 Likewise.
4500 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
4501 x86-common regset supply function.
4502 * i386-tdep.c (i386_collect_gregset): Make static.
4503 (i386_gregset): New global regset structure.
4504 (i386_fpregset, i386_xstateregset): New static regset structures.
4505 (i386_regset_from_core_section): Remove dynamic regset
4506 allocations.
4507 (i386_gdbarch_init): Remove initialization of tdep fields
4508 'gregset', 'fpregset', and 'xstateregset'.
4509 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
4510 'fpregset', and 'xstateregset'.
4511 (i386_collect_gregset): Remove prototype.
4512 (i386_gregset): New declaration.
4513 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
4514 structure.
4515 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
4516 allocation.
4517
b7611c43
AA
45182014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4519
4520 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4521 (arm_linux_vfpregset): New static regset structures.
4522 (arm_linux_regset_from_core_section): Remove dynamic allocation of
4523 regset structures.
4524 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
4525 and 'vfpregset' fields.
4526
a069a2bd
AA
45272014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4528
4529 * aarch64-linux-tdep.c (aarch64_linux_gregset)
4530 (aarch64_linux_fpregset): New static regset structures.
4531 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
4532 of regset structures.
4533 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
4534 'fpregset' fields.
4535
09424cff
AA
45362014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4537
4538 * regset.h (struct regset): Remove gdbarch field.
4539 * regset.c (regset_alloc): Drop initialization of gdbarch field.
4540 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4541 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
4542 Likewise.
4543 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
4544 (ppc32_linux_fpregset, ppc32_linux_vrregset)
4545 (ppc32_linux_vsxregset): Likewise.
4546 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
4547 via the regcache instead of the regset.
4548 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
4549 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
4550 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
4551 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
4552 Likewise.
4553
3ca7dae4
AA
45542014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4555
4556 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
4557 Constify structures.
4558 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
4559 (alphanbsd_aout_gregset): Likewise.
4560 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
4561 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
4562 Likewise.
4563 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
4564 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
4565 Likewise.
4566 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
4567 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
4568 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
4569 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
4570 * m88k-tdep.c (m88k_gregset): Likewise.
4571 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
4572 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
4573 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
4574 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
4575 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4576 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
4577 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4578 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
4579 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
4580 Likewise.
4581 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
4582 * sh-tdep.h (sh_corefile_gregset): Likewise.
4583 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
4584 * vax-tdep.c (vax_gregset): Likewise.
4585
5876f503
JK
45862014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4587
4588 Fix TLS access for -static -pthread.
4589 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
4590 (try_thread_db_load_1): Initialize it.
4591 (thread_db_get_thread_local_address): Call it if LM is zero.
4592 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
4593 * target.h (struct target_ops) (to_get_thread_local_address): Add
4594 load_module_addr comment.
4595
0256a6ac
PA
45962014-05-21 Pedro Alves <palves@redhat.com>
4597
4598 * dcache.c (dcache_read_memory_partial): If reading the cache line
4599 fails, fallback to reading just the memory the caller wanted.
4600
227533ac
DE
46012014-05-20 Doug Evans <dje@google.com>
4602
4603 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
4604 instead of get_current_arch.
4605
936d2992
PA
46062014-05-20 Pedro Alves <palves@redhat.com>
4607
4608 * NEWS: Mention that compare-sections now works with all targets.
4609
4610 * remote.c (PACKET_qCRC): New enum value.
4611 (remote_verify_memory): Don't send qCRC if the target has no
4612 execution. Use packet_support/packet_ok. If the target doesn't
4613 support the qCRC packet, fallback to a deep memory copy.
4614 (compare_sections_command): Say "target image" instead of "remote
4615 executable".
4616 (_initialize_remote): Add PACKET_qCRC to the list of config
4617 packets that have no associated command. Extend comment.
4618 * target.c (simple_verify_memory, default_verify_memory): New
4619 function.
4620 * target.h (struct target_ops) <to_verify_memory>: Default to
4621 default_verify_memory.
4622 (simple_verify_memory): New declaration.
4623 * target-delegates.c: Regenerate.
4624
e59fa00f
MM
46252014-05-20 Markus Metzger <markus.t.metzger@intel.com>
4626
4627 * record-btrace.c (record_btrace_step_thread): Check for empty history.
4628
f2205de0
HZ
46292014-05-20 Hui Zhu <hui@codesourcery.com>
4630 Yao Qi <yao@codesourcery.com>
4631
4632 PR backtrace/16558
4633 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
4634 and change address of sp and pc.
4635
c4e54771
TT
46362014-05-19 Tom Tromey <tromey@redhat.com>
4637
4638 * gdbtypes.c (rank_function): Use XNEWVEC.
4639 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
4640
73051182
DE
46412014-05-19 Doug Evans <dje@google.com>
4642
4643 * dwarf2read.c (build_type_psymtabs_1): Renamed from
4644 build_type_unit_groups and moved closer to only caller. Remove
4645 arguments. All references updated. Remove outdated .gdb_index
4646 comment.
4647 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
4648 build_type_psymtabs_1.
4649
8832e7e3
DE
46502014-05-19 Doug Evans <dje@google.com>
4651
4652 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
4653 n_type_unit_groups, all_type_unit_groups. All uses removed.
4654 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
4655 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
4656 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
4657 (add_type_unit_group_to_table): Delete.
4658
cd8ae15e
DE
46592014-05-19 Doug Evans <dje@google.com>
4660
4661 * eval.c (evaluate_subexp_standard): Add some comments.
4662
08f4850b
DE
46632014-05-17 Doug Evans <xdje42@gmail.com>
4664
4665 * progspace.c (remove_program_space): Delete, unused.
4666 * progspace.h (remove_program_space): Ditto.
4667
bed8455c
DE
46682014-05-17 Doug Evans <xdje42@gmail.com>
4669
4670 * inferior.c (prune_inferiors): Fix comment.
4671 (remove_inferior_command): Call prune_program_spaces.
4672
8d551b02
DE
46732014-05-16 Doug Evans <dje@google.com>
4674
4675 New command line option -D.
4676 * NEWS: Mention it.
4677 * main.c (set_gdb_data_directory): New function.
4678 (captured_main): Recognize -D. Flag error for --data-directory "".
4679 Call set_gdb_data_directory.
4680 (print_gdb_help): Print --data-directory, -D.
4681 * main.h (set_gdb_data_directory): Declare.
4682 * top.c (staged_gdb_datadir): New static global.
4683 (set_gdb_datadir): Call set_gdb_data_directory
4684 (show_gdb_datadir): New function.
4685 (init_main): Update init of data-directory parameter.
4686
18848e28
GF
46872014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
4688
4689 Import the "dirfd" gnulib module.
4690 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
4691 * gnulib/aclocal.m4: Update.
4692 * gnulib/config.in: Update.
4693 * gnulib/configure: Update.
4694 * gnulib/import/Makefile.am: Update.
4695 * gnulib/import/Makefile.in: Update.
4696 * gnulib/import/dirfd.c: New.
4697 * gnulib/import/m4/dirfd.m4: New.
4698 * gnulib/import/m4/gnulib-cache.m4: Update.
4699 * gnulib/import/m4/gnulib-comp.m4: Update.
4700
95c64f92
YQ
47012014-05-16 Pierre Muller <muller@sourceware.org>
4702 Yao Qi <yao@codesourcery.com>
4703
4704 * valprint.c (print_wchar): Move the code on checking whether
4705 W is a printable wide char to the default branch of switch
4706 statement below. Call wchar_printable instead of gdb_iswprint.
4707
cac395ea
TM
47082014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
4709
19679eca 4710 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
cac395ea
TM
4711 ldr.w and ldrd instructions.
4712
83655187
DE
47132014-05-15 Doug Evans <dje@google.com>
4714
4715 * dwarf2read.c (read_structure_type): Delete outdated comments.
4716
dd756689
TT
47172014-05-14 Tom Tromey <tromey@redhat.com>
4718
4719 * macrocmd.c (print_macro_definition): Reindent.
4720
75ddda77
DE
47212014-05-13 Doug Evans <xdje42@gmail.com>
4722
4723 * python/py-cmd.c (cmdpy_completer): Add comment.
4724 (completers): Make const.
4725
b0f16a3e
SM
47262014-05-13 Simon Marchi <simon.marchi@ericsson.com>
4727
4728 * infrun.c (resume): Remove should_resume (unused). Move up
4729 declaration of resume_ptid.
4730
033c3379
TT
47312014-05-13 Tom Tromey <tromey@redhat.com>
4732
4733 * language.h (unop_type_check): Remove.
4734 (binop_type_check): Don't declare.
4735
9b44a3a5
AA
47362014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
4737
4738 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
4739 call to regcache_raw_collect.
4740
303a33fa
SM
47412014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4742
4743 * mi/mi-console.c (mi_console_raw_packet): Use the value from
4744 mi_console->quote as the quoting character.
4745
196100a0
SM
47462014-05-12 Simon Marchi <simon.marchi@ericsson.com>
4747
4748 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
4749
f989a1c8
TT
47502014-04-29 Tom Tromey <tromey@redhat.com>
4751
4752 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
4753 "show debug varobj".
4754
9404b58f
KM
47552014-05-07 Kyle McMartin <kyle@redhat.com>
4756
4757 Pushed by Joel Brobecker <brobecker@adacore.com>.
4758 * aarch64-tdep.c (aarch64_software_single_step): New function.
4759 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
4760 with aarch64_software_single_step.
4761
5e49ba57
JB
47622014-05-05 Joel Brobecker <brobecker@adacore.com>
4763
4764 GDB 7.7.1 released.
4765
c888a17d
KS
47662014-05-05 Keith Seitz <keiths@redhat.com>
4767
4768 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
4769 variable or history value is successfully parsed.
4770
290a839c
YQ
47712014-05-05 Yao Qi <yao@codesourcery.com>
4772 Pedro Alves <palves@redhat.com>
4773
4774 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
4775 address of blocks that intersects the requested range. Trim
4776 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
4777 sections.
4778 * ctf.c (ctf_xfer_partial): Likewise.
4779
91256dc2
YQ
47802014-05-05 Yao Qi <yao@codesourcery.com>
4781
4782 * printcmd.c (display_command): Remove the check to
4783 target_has_execution.
4784
07284463
MK
47852014-05-03 Mark Kettenis <kettenis@gnu.org>
4786
4787 * ppcobsd-nat.c: Include "obsd-nat.h".
4788 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
4789 add_target.
4790 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
4791
30a1e6cc
SDJ
47922014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4793
4794 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
4795 and 16-bit signed and unsigned arguments. Update comment.
4796 (stap_parse_probe_arguments): Extend code to handle such
4797 arguments. Use warning instead of complaint to notify about
4798 unrecognized bitness.
4799
f33da99a
SDJ
48002014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
4801
4802 PR breakpoints/16889
4803 * stap-probe.c (stap_parse_probe_arguments): Simplify
4804 check for non-prefixed probes (i.e., probes whose
4805 arguments do not start with "N@"). Always set the
4806 argument type to a sane value.
4807
95cf3b38
DT
48082014-05-01 David Taylor <dtaylor@emc.com>
4809
4810 * remote.c (compare_sections_command): Add -r option to compare
4811 all loadable read-only sections.
4812
1cfdf534
SC
48132014-04-30 Siva Chandra Reddy <sivachandra@google.com>
4814
4815 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
4816 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
4817 Update all callers.
4818 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
4819 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
4820 Remove unused CORE_ADDR argument. Update all callers.
4821
ca4f7f8b
PA
48222014-04-29 Pedro Alves <palves@redhat.com>
4823
4824 * remote.c (struct packet_config) <detect>: Extend comment.
4825 (add_packet_config_cmd): Don't set the config's detect or support
4826 fields here.
4827 (init_all_packet_configs): Also initialize the config's 'detect'
4828 field.
4829 (reset_all_packet_configs_support): New function.
4830 (remote_open_1): Call reset_all_packet_configs_support instead of
4831 init_all_packet_configs.
4832 (_initialize_remote): Initialize all packet configs. Assert that
4833 all packets have an associated command, except a few known
4834 outliers.
4835
11c1ba78
JB
48362014-04-28 Joel Brobecker <brobecker@adacore.com>
4837
4838 * dwarf2read.c (read_subrange_type): Handle dynamic
4839 DW_AT_lower_bound attributes.
4840
8739bc53
JB
48412014-04-28 Joel Brobecker <brobecker@adacore.com>
4842
4843 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
4844 dynamic bounds before computing its upper bound.
4845 (ada_discrete_type_low_bound): Same as above with the lower bound.
4846
6f8a3220
JB
48472014-04-28 Joel Brobecker <brobecker@adacore.com>
4848
4849 * dwarf2read.c (is_dynamic_type): Return true for dynamic
4850 range types. Adjust the array handling implementation to
4851 take advantage of this change.
4852 (resolve_dynamic_range): New function, mostly extracted from
4853 resolve_dynamic_bounds.
4854 (resolve_dynamic_array): New function, mostly extracted from
4855 resolve_dynamic_bounds.
4856 (resolve_dynamic_bounds): Delete.
4857 (resolve_dynamic_type): Reimplement. Add handling of
4858 TYPE_CODE_RANGE types.
4859
4d072ce4
JB
48602014-04-28 Joel Brobecker <brobecker@adacore.com>
4861
4862 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
4863 handling of parallel ___XA types.
4864
52865325
JB
48652014-04-28 Joel Brobecker <brobecker@adacore.com>
4866
4867 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
4868 unnecessary second call to static_unwrap_type.
4869
433e77fa
HZ
48702014-04-27 Hui Zhu <hui@codesourcery.com>
4871
4872 * stack.c (print_frame_info): Call do_gdb_disassembly with
4873 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
4874
b51a69ee
DE
48752014-04-26 Doug Evans <xdje42@gmail.com>
4876
4877 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
4878
7ae1a6a6
PA
48792014-04-25 Pedro Alves <palves@redhat.com>
4880
4881 PR server/16255
4882 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
4883 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
4884 and newline from built string.
4885 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
4886 (linux_ptrace_attach_fail_reason): ... this.
4887 * linux-nat.c (linux_nat_attach): Adjust to use
4888 linux_ptrace_attach_fail_reason.
4889
4082afcc
PA
48902014-04-25 Pedro Alves <palves@redhat.com>
4891
4892 * remote.c (struct remote_state): Remove multi_process_aware,
4893 non_stop_aware, cond_tracepoints, cond_breakpoints,
4894 breakpoint_commands, fast_tracepoints, static_tracepoints,
4895 install_in_trace, disconnected_tracing,
4896 enable_disable_tracepoints, string_tracing, and
4897 augmented_libraries_svr4_read fields.
4898 (remote_multi_process_p): Move further below in the file.
4899 (struct packet_config): Add comments.
4900 (update_packet_config): Delete function.
4901 (show_packet_config_cmd): Use packet_config_support.
4902 (add_packet_config_cmd): Use NULL as set callback.
4903 (packet_ok): "set remote foo-packet"-style commands no longer
4904 change config->supported -- adjust.
4905 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
4906 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
4907 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
4908 (PACKET_QNonStop, PACKET_multiprocess_feature)
4909 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
4910 (PACKET_DisconnectedTracing_feature)
4911 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
4912 (set_remote_protocol_packet_cmd): Delete function.
4913 (packet_config_support, packet_support): New functions.
4914 (set_remote_protocol_Z_packet_cmd): Don't call
4915 update_packet_config.
4916 (remote_query_attached, remote_pass_signals)
4917 (remote_program_signals, remote_threads_info)
4918 (remote_threads_extra_info, remote_start_remote): Use
4919 packet_support.
4920 (remote_start_remote): Use packet_config_support and
4921 packet_support.
4922 (init_all_packet_configs): Set all packets to unknown support,
4923 instead of calling update_packet_config.
4924 (remote_check_symbols): Use packet_support.
4925 (remote_supported_packet): Unconditionally set the packet config's
4926 support status.
4927 (remote_multi_process_feature, remote_non_stop_feature)
4928 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
4929 (remote_breakpoint_commands_feature)
4930 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
4931 (remote_install_in_trace_feature)
4932 (remote_disconnected_tracing_feature)
4933 (remote_enable_disable_tracepoint_feature)
4934 (remote_string_tracing_feature)
4935 (remote_augmented_libraries_svr4_read_feature): Delete functions.
4936 (remote_protocol_features): Adjust to use remote_supported_packet
4937 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
4938 "ConditionalTracepoints", "ConditionalBreakpoints",
4939 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
4940 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
4941 "EnableDisableTracepoints", and "tracenz".
4942 (remote_query_supported): Use packet_support.
4943 (remote_open_1): Adjust.
4944 (extended_remote_attach_1): Use packet_support. Switch on the
4945 result of packet_ok instead of checking whether the packet ended
4946 up disabled.
4947 (remote_vcont_resume): Use packet_support.
4948 (remote_resume, remote_stop_ns, fetch_register_using_p)
4949 (remote_prepare_to_store, store_register_using_P)
4950 (check_binary_download, remote_write_bytes): Use packet_support.
4951 (remote_vkill): Use packet_support. Switch on the result of
4952 packet_ok instead of checking whether the packet ended up
4953 disabled.
4954 (extended_remote_supports_disable_randomization): Use
4955 packet_support.
4956 (extended_remote_run): Switch on the result of packet_ok instead
4957 of checking whether the packet ended up disabled.
4958 (remote_insert_breakpoint, remote_remove_breakpoint)
4959 (remote_insert_watchpoint, remote_remove_watchpoint)
4960 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
4961 packet_support.
4962 (remote_search_memory): Use packet_config_support.
4963 (remote_get_thread_local_address, remote_get_tib_address)
4964 (remote_hostio_send_command, remote_can_execute_reverse): Use
4965 packet_support.
4966 (remote_supports_cond_tracepoints)
4967 (remote_supports_cond_breakpoints)
4968 (remote_supports_fast_tracepoints)
4969 (remote_supports_static_tracepoints)
4970 (remote_supports_install_in_trace)
4971 (remote_supports_enable_disable_tracepoint)
4972 (remote_supports_string_tracing)
4973 (remote_can_run_breakpoint_commands): Rewrite, checking whether
4974 the packet config says the feature is enabled or disabled.
4975 (remote_download_tracepoint, remote_trace_set_readonly_regions)
4976 (remote_get_trace_status): Use packet_support.
4977 (remote_set_disconnected_tracing): Adjust to check whether the
4978 feature is enabled with packet_support.
4979 (remote_set_trace_buffer_size, remote_use_agent)
4980 (remote_can_use_agent, remote_supports_btrace): Use
4981 packet_support.
4982 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
4983 Use packet_config_support.
4984 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
4985 the packet config says the feature is enabled or disabled.
4986 (set_range_stepping): Use packet_support.
4987
bdb52a22
TT
49882014-04-25 Tom Tromey <tromey@redhat.com>
4989
4990 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
4991 argument.
4992
e9475ead
SA
49932014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
4994
4995 * NEWS: Mention support for C99 variable length arrays.
4996
82eacd52
JB
49972014-04-24 Joel Brobecker <brobecker@adacore.com>
4998
4999 * ada-lang.c (standard_exc): Expand introductory comment.
5000
01f9f808
MS
50012014-04-24 Michael Sturm <michael.sturm@mintel.com>
5002 Walfred Tedeschi <walfred.tedeschi@intel.com>
5003
5004 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
5005 AVX512 registers.
5006 (amd64_linux_read_description): Add code to handle AVX512 xstate
5007 mask and return respective tdesc.
5008 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
5009 and features/i386/x32-avx512-linux.c.
5010 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
5011 (amd64_linux_core_read_description): Add code to handle AVX512
5012 xstate mask and return respective tdesc.
5013 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
5014 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
5015 calculation.
5016 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
5017 (tdesc_amd64_avx512_linux): New prototype.
5018 (tdesc_x32_avx512_linux): Likewise.
5019 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
5020 features/i386/x32-avx512.c.
5021 (amd64_ymm_avx512_names): New register names for pseudo
5022 registers YMM16-31.
5023 (amd64_ymmh_avx512_names): New register names for raw registers
5024 YMMH16-31.
5025 (amd64_k_names): New register names for K registers.
5026 (amd64_zmmh_names): New register names for ZMM raw registers.
5027 (amd64_zmm_names): New registers names for ZMM pseudo registers.
5028 (amd64_xmm_avx512_names): New register names for XMM16-31
5029 registers.
5030 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
5031 registers.
5032 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
5033 if feature is present.
5034 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
5035 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
5036 (AMD64_NUM_REGS): Adjust to new number of registers.
5037 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
5038 registers supplied via XSTATE by AVX512 registers.
5039 (i386_linux_read_description): Add case for AVX512.
5040 * i386-linux-tdep.c: Include i386-avx512-linux.c.
5041 (i386_linux_gregset_reg_offset): Add AVX512 registers.
5042 (i386_linux_core_read_description): Add case for AVX512.
5043 (i386_linux_init_abi): Install supported register note section
5044 for AVX512.
5045 (_initialize_i386_linux_tdep): Add call to tdesc init function for
5046 AVX512.
5047 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
5048 registers to be number of zmm7h + 1.
5049 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
5050 * i386-tdep.c: Include features/i386/i386-avx512.c.
5051 (i386_zmm_names): Add ZMM pseudo register names array.
5052 (i386_zmmh_names): Add ZMM raw register names array.
5053 (i386_k_names): Add K raw register names array.
5054 (num_lower_zmm_regs): Add constant for the number of lower ZMM
5055 registers. AVX512 has 16 more ZMM registers than there are YMM
5056 registers.
5057 (i386_zmmh_regnum_p): Add function to look up register number of
5058 ZMM raw registers.
5059 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
5060 (i386_k_regnum_p): Likewise for K raw registers.
5061 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
5062 registers added by AVX512.
5063 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
5064 registers added by AVX512.
5065 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
5066 added by AVX512.
5067 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
5068 (i386_pseudo_register_name): Add ZMM pseudo registers.
5069 (i386_zmm_type): Construct and return vector registers type for ZMM
5070 registers.
5071 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
5072 ZMM0-31 pseudo registers and K registers.
5073 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
5074 and YMM16-31 registers from register cache.
5075 (i386_pseudo_register_write): Add code to write K, ZMM and
5076 YMM16-31 registers.
5077 (i386_register_reggroup_p): Add code to include/exclude AVX512
5078 registers in/from respective register groups.
5079 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
5080 registers if feature is present in xcr0.
5081 (i386_gdbarch_init): Add code to initialize AVX512 feature
5082 variables in tdep structure, wire in pseudo registers and call
5083 initialize_tdesc_i386_avx512.
5084 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
5085 variables.
5086 (i386_regnum): Add AVX512 registers.
5087 (I386_SSE_NUM_REGS): New define for number of SSE registers.
5088 (I386_AVX_NUM_REGS): Likewise for AVX registers.
5089 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
5090 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
5091 512 bits wide.
5092 (i386_xmm_avx512_regnum_p): New prototype for register look up.
5093 (i386_ymm_avx512_regnum_p): Likewise.
5094 (i386_k_regnum_p): Likewise.
5095 (i386_zmm_regnum_p): Likewise.
5096 (i386_zmmh_regnum_p): Likewise.
5097 * i387-tdep.c : Update year in copyright notice.
5098 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
5099 XSAVE buffer.
5100 (XSAVE_YMM_AVX512_ADDR): New macro.
5101 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
5102 XSAVE buffer.
5103 (XSAVE_XMM_AVX512_ADDR): New macro.
5104 (xsave_avx512_k_offset): New table for K register offsets in
5105 XSAVE buffer.
5106 (XSAVE_AVX512_K_ADDR): New macro.
5107 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
5108 in XSAVE buffer.
5109 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
5110 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
5111 buffer.
5112 (i387_collect_xsave): Add code to collect AVX512 registers from
5113 XSAVE buffer.
5114 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
5115 of XMM16-31 registers.
5116 (I387_NUM_K_REGS): New define for number of K registers.
5117 (I387_K0_REGNUM): New define for K0 register number.
5118 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
5119 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
5120 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
5121 registers.
5122 (I387_YMM16H_REGNUM): New define for YMM16H register number.
5123 (I387_XMM16_REGNUM): New define for XMM16 register number.
5124 (I387_YMM0_REGNUM): New define for YMM0 register number.
5125 (I387_KEND_REGNUM): New define for last K register number.
5126 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
5127 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
5128 number.
5129 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
5130 number.
5131 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
5132 size.
5133 * features/Makefile: Add AVX512 related files.
5134 * features/i386/32bit-avx512.xml: New file.
5135 * features/i386/64bit-avx512.xml: Likewise.
5136 * features/i386/amd64-avx512-linux.c: Likewise.
5137 * features/i386/amd64-avx512-linux.xml: Likewise.
5138 * features/i386/amd64-avx512.c: Likewise.
5139 * features/i386/amd64-avx512.xml: Likewise.
5140 * features/i386/i386-avx512-linux.c: Likewise.
5141 * features/i386/i386-avx512-linux.xml: Likewise.
5142 * features/i386/i386-avx512.c: Likewise.
5143 * features/i386/i386-avx512.xml: Likewise.
5144 * features/i386/x32-avx512-linux.c: Likewise.
5145 * features/i386/x32-avx512-linux.xml: Likewise.
5146 * features/i386/x32-avx512.c: Likewise.
5147 * features/i386/x32-avx512.xml: Likewise.
5148 * regformats/i386/amd64-avx512-linux.dat: New file.
5149 * regformats/i386/amd64-avx512.dat: Likewise.
5150 * regformats/i386/i386-avx512-linux.dat: Likewise.
5151 * regformats/i386/i386-avx512.dat: Likewise.
5152 * regformats/i386/x32-avx512-linux.dat: Likewise.
5153 * regformats/i386/x32-avx512.dat: Likewise.
5154 * NEWS: Add note about new support for AVX512.
5155
5156
08351840
PA
51572014-04-23 Pedro Alves <palves@redhat.com>
5158
5159 * breakpoint.c (insert_bp_location): Tolerate errors if the
5160 breakpoint is set in a user-loaded objfile.
5161 (remove_breakpoint_1): Likewise. Also tolerate errors if the
5162 location is marked shlib_disabled. If the breakpoint is set in a
5163 user-loaded objfile is a GDB-side memory breakpoint, validate it
5164 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
5165 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
5166 flag.
5167 * mem-break.c (memory_validate_breakpoint): New function.
5168 * objfiles.c (userloaded_objfile_contains_address_p): New
5169 function.
5170 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
5171 * target.h (memory_validate_breakpoint): New declaration.
5172
076855f9
PA
51732014-04-23 Pedro Alves <palves@redhat.com>
5174
5175 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
5176 the breakpoint is set in a shared library, only suppress
5177 errors for software breakpoints, not hardware breakpoints.
5178
483805cf
PA
51792014-04-22 Pedro Alves <palves@redhat.com>
5180
5181 * infrun.c (schedlock_applies): New function, factored out from
5182 find_thread_needs_step_over.
5183 (find_thread_needs_step_over): Use it.
5184 (switch_back_to_stepped_thread): Always clear trap_expected if the
5185 step over is finished. Return early if scheduler locking applies.
5186 Look for the stepping thread and a potential step-over thread with
5187 a single loop.
5188 (currently_stepping_or_nexting_callback): Delete.
5189
a75fef0e
NC
51902014-04-22 Nick Clifton <nickc@redhat.com>
5191
5192 * NEWS: Mention that ARM sim now supports tracing.
5193
48b6e87e
YQ
51942014-04-22 Yao Qi <yao@codesourcery.com>
5195
5196 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
5197 to ...
5198 * tracefile.c (tracefile_fetch_registers): ... it. New
5199 function.
5200 * tracefile.h (tracefile_fetch_registers): Declare.
5201 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
5202 tracefile_fetch_registers.
5203
17617f2d
EZ
52042014-04-19 Eli Zaretskii <eliz@gnu.org>
5205
5206 PR gdb/14018
5207 * windows-nat.c (thread_rec): Don't display a warning when
5208 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
5209 fails for any reason, set th->suspended to -1, so that we don't
5210 try to resume such a thread. Also, don't return NULL in these
5211 cases, to avoid completely ruin the session due to "PC register is
5212 not available" error.
5213 (do_windows_fetch_inferior_registers): Check errors in
5214 GetThreadContext call.
5215 (windows_continue): Accept an additional argument KILLED; if not
5216 zero, ignore errors in the SetThreadContext call, since the
5217 inferior was killed and is shutting down.
5218 (windows_resume, get_windows_debug_event)
5219 (windows_create_inferior, windows_mourn_inferior)
5220 (windows_kill_inferior): All callers of windows_continue changed
5221 to adjust to its new calling sequence.
5222
5723a6fd
YQ
52232014-04-19 Yao Qi <yao@codesourcery.com>
5224
5225 * ctf.c (ctf_open): Call post_create_inferior.
5226
614d5099
YQ
52272014-04-19 Yao Qi <yao@codesourcery.com>
5228
5229 * ctf.c (handle_id): New static variable.
5230 (ctf_open_dir): Get handle_id from bt_context_add_trace return
5231 value. Get the declaration of event "register" and get length
5232 of field "contents".
5233
dac3e710
YQ
52342014-04-19 Yao Qi <yao@codesourcery.com>
5235
5236 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
5237
2bca57ba
SC
52382014-04-18 Siva Chandra Reddy <sivachandra@google.com>
5239
5240 * valops.c (oload_method_static): Remove unnecessary argument
5241 METHOD. Update all callers.
5242
51d48146
PA
52432014-04-18 Pedro alves <palves@redhat.com>
5244 Tom Tromey <tromey@redhat.com>
5245
5246 PR backtrace/15558
5247 * frame.c (get_prev_frame_1): Rename to ...
5248 (get_prev_frame_always): ... this, and make extern. Adjust.
5249 (skip_artificial_frames): Use get_prev_frame_always.
5250 (frame_unwind_caller_id, frame_pop, get_prev_frame)
5251 (get_frame_unwind_stop_reason): Adjust to rename.
5252 * frame.h (get_prev_frame_always): Declare.
5253 * inline-frame.c: Include frame.h.
5254 (inline_frame_this_id): Use get_prev_frame_always.
5255
1bdad2e0
TG
52562014-04-18 Tristan Gingold <gingold@adacore.com>
5257
5258 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
5259 code by using bfd_mach_o_get_base_address.
5260
7ce16bd4
UW
52612014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5262
5263 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
5264 (spu_ax_pseudo_register_collect): New function.
5265 (spu_ax_pseudo_register_push_stack): Likewise.
5266 (spu_dwarf_reg_to_regnum): Likewise.
5267 (spu_gdbarch_init): Install them. Append DWARF unwinders.
5268
2ed3c037
UW
52692014-04-17 Ulrich Weigand  <uweigand@de.ibm.com>
5270
5271 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
5272 Replace FRAME argument with FRAME_ID.
5273 * gdbarch.c, gdbarch.h: Regenerate.
5274 * findvar.c (default_value_from_register): Add GDBARCH argument;
5275 replace FRAME by FRAME_ID. No longer call get_frame_id.
5276 (value_from_register): Update call to gdbarch_value_from_register.
5277 * value.h (default_value_from_register): Update prototype.
5278 * s390-linux-tdep.c (s390_value_from_register): Update interface
5279 and call to default_value_from_register.
5280 * spu-tdep.c (spu_value_from_register): Likewise.
5281
5282 * findvar.c (address_from_register): Remove TYPE argument.
5283 Do not call value_from_register; use gdbarch_value_from_register
5284 with null_frame_id instead.
5285 * value.h (address_from_register): Update prototype.
5286 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
5287 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
5288 address_from_register interface change.
5289
71e50e83
YQ
52902014-04-17 Yao Qi <yao@codesourcery.com>
5291
5292 * gdbtypes.h: Update comments to link to types and macros'
5293 definitions.
5294
7a23c549
SC
52952014-04-16 Siva Chandra Reddy <sivachandra@google.com>
5296
5297 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
5298
22869d73
KS
52992014-04-16 Keith Seitz <keiths@redhat.com>
5300
5301 PR gdb/15827
5302 * dwarf2read.c (skip_one_die): Check that all relative-offset
5303 sibling DIEs fall within range of the current reader's buffer.
5304 (read_partial_die): Likewise.
5305
c4f87ca6
KS
53062014-04-16 Keith Seitz <keiths@redhat.com>
5307
5308 PR c++/16597
5309 * cp-namespace.c (lookup_symbol_file): If the type name of
5310 `this' is NULL, return immediately.
5311
b50c8614
KS
53122014-04-14 Keith Seitz <keiths@redhat.com>
5313
5314 PR c++/16253
5315 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
5316 from symbol_matches_domain in symtab.c. All local callers
5317 of symbol_matches_domain updated.
5318 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
5319 search STRUCT_DOMAIN.
5320 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
5321 independently. standard_lookup will do that automatically.
5322 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
5323 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5324 (cp_lookup_symbol_in_namespace): Likewise.
5325 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
5326 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
5327 may return a STRUCT_DOMAIN match.
5328 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
5329 * cp-support.c: Include language.h.
5330 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
5331 VAR_DOMAIN.
5332 * psymtab.c (match_partial_symbol): Compare the requested
5333 domain with the symbol's domain directly.
5334 (lookup_partial_symbol): Likewise.
5335 * symtab.c (lookup_symbol_in_language): Explain when/why
5336 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
5337 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
5338 appropriate languages.
5339 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
5340 and moved to ada-lang.c
5341 (lookup_block_symbol): Explain that this function only returns
5342 symbol matching the requested DOMAIN.
5343 Compare the requested domain with the symbol's domain directly.
5344 (iterate_over_symbols): Compare the requested domain with the
5345 symbol's domain directly.
5346 * symtab.h (symbol_matches_domain): Remove.
5347
3d567982
TT
53482014-04-14 Tom Tromey <tromey@redhat.com>
5349
5350 PR c++/15246:
5351 * c-exp.y (type_aggregate_p): New function.
5352 (qualified_name, classify_inner_name): Use it.
5353 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
5354 and TYPE_TARGET_TYPE of an enum type.
5355 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
5356 an enum type.
5357 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
5358 handle TYPE_DECLARED_CLASS.
5359 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
5360 types.
5361 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
5362 * valops.c (enum_constant_from_type): New function.
5363 (value_aggregate_elt): Use it.
5364 * cp-namespace.c (cp_lookup_nested_symbol): Handle
5365 TYPE_CODE_ENUM.
5366
c848d642
TT
53672014-04-14 Tom Tromey <tromey@redhat.com>
5368
5369 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
5370 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
5371 const.
5372 * value.h (value_aggregate_elt): Update.
5373
0626fc76
TT
53742014-04-14 Tom Tromey <tromey@redhat.com>
5375
5376 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
5377
5ecaaa66
SA
53782014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5379
5380 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5381 (evaluate_subexp_standard): Pass noside argument.
5382 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5383 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5384 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5385 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5386 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5387
1612e0c0
SA
53882014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5389
5390 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5391 points to a constant blob.
5392
c451ebe5
SA
53932014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5394
5395 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5396 property and store it as the high bound and flag the range accordingly.
5397 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5398 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5399 * gdbtypes.h (enum range_flags): New enum.
5400 (struct range_bounds): Add flags member.
5401
1d42e4c4
SA
54022014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5403
5404 * c-typeprint.c (c_type_print_varspec_suffix): Added
5405 check for not yet resolved high bound. If unresolved, print
5406 "variable length" string to the console instead of random
5407 length.
5408
9f1f738a
SA
54092014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5410
5411 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
5412 value.
5413 (ada_template_to_fixed_record_type_1): Likewise.
5414 (ada_to_fixed_type_1): Likewise.
5415 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5416 (cp_print_value): Likewise.
5417 * d-valprint.c (dynamic_array_type): Likewise.
5418 * findvar.c (address_of_variable): Likewise.
5419 * jv-valprint.c (java_value_print): Likewise.
5420 * valops.c (value_ind): Likewise.
5421 * value.c (coerce_ref): Likewise.
5422
3c8452d4
SA
54232014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5424
5425 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5426 value and retrieve the dynamic type size.
5427
4ad88275
SA
54282014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5429
5430 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5431 passed to sizeof is dynamic evaluate the argument to compute the length.
5432
80180f79
SA
54332014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
5434 Joel Brobecker <brobecker@adacore.com>
5435
5436 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5437 (dwarf2_evaluate_property): New function.
5438 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5439 * dwarf2read.c (attr_to_dynamic_prop): New function.
5440 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5441 attribute.
5442 * gdbtypes.c: Include dwarf2loc.h.
5443 (is_dynamic_type): New function.
5444 (resolve_dynamic_type): New function.
5445 (resolve_dynamic_bounds): New function.
5446 (get_type_length): New function.
5447 (check_typedef): Use get_type_length to compute type length.
5448 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5449 (TYPE_LOW_BOUND_KIND): New macro.
5450 (is_dynamic_type): New function prototype.
5451 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5452 to resolve dynamic properties of the type. Update comment.
5453 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5454
a1556843
RH
54552014-04-14 Richard Henderson <rth@redhat.com>
5456
5457 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
5458
0be03e84
DE
54592014-04-12 Siva Chandra Reddy <sivachandra@google.com>
5460 Doug Evans <xdje42@gmail.com>
5461
5462 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
5463 dereference TYPE_CODE_REF values.
5464
6b662e19
JB
54652014-04-11 Joel Brobecker <brobecker@adacore.com>
5466
5467 Revert the following changes due to regressions:
5468
5469 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5470 (dwarf2_evaluate_property): New function.
5471 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5472 * dwarf2read.c (attr_to_dynamic_prop): New function.
5473 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5474 attribute.
5475 * gdbtypes.c: Include dwarf2loc.h.
5476 (is_dynamic_type): New function.
5477 (resolve_dynamic_type): New function.
5478 (resolve_dynamic_bounds): New function.
5479 (get_type_length): New function.
5480 (check_typedef): Use get_type_length to compute type length.
5481 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5482 (TYPE_LOW_BOUND_KIND): New macro.
5483 (is_dynamic_type): New function prototype.
5484 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5485 to resolve dynamic properties of the type. Update comment.
5486 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5487
5488 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5489 passed to sizeof is dynamic evaluate the argument to compute the length.
5490
5491 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5492 value and retrieve the dynamic type size.
5493
5494 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5495 (ada_template_to_fixed_record_type_1): Likewise.
5496 (ada_to_fixed_type_1): Likewise.
5497 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5498 (cp_print_value): Likewise.
5499 * d-valprint.c (dynamic_array_type): Likewise.
5500 * eval.c (evaluate_subexp_with_coercion): Likewise.
5501 * findvar.c (address_of_variable): Likewise.
5502 * jv-valprint.c (java_value_print): Likewise.
5503 * valops.c (value_ind): Likewise.
5504 * value.c (coerce_ref): Likewise.
5505
5506 * c-typeprint.c (c_type_print_varspec_suffix): Added
5507 check for not yet resolved high bound. If unresolved, print
5508 "variable length" string to the console instead of random
5509 length.
5510
5511 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5512 property and store it as the high bound and flag the range accordingly.
5513 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5514 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5515 * gdbtypes.h (enum range_flags): New enum.
5516 (struct range_bounds): Add flags member.
5517
5518 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5519 points to a constant blob.
5520
5521 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5522 (evaluate_subexp_standard): Pass noside argument.
5523 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5524 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5525 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5526 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5527 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5528
245a5f0b
KS
55292014-04-11 Keith Seitz <keiths@redhat.com>
5530
5531 PR c++/16675
5532 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
5533 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
5534 reference types.
5535
3bce8237
SA
55362014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5537
5538 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
5539 (evaluate_subexp_standard): Pass noside argument.
5540 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
5541 if noside equals EVAL_NORMAL. If the subscript yields a vla type
5542 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
5543 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
5544 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
5545
92b09522
SA
55462014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5547
5548 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
5549 points to a constant blob.
5550
e1969afb
SA
55512014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5552
5553 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
5554 property and store it as the high bound and flag the range accordingly.
5555 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
5556 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
5557 * gdbtypes.h (enum range_flags): New enum.
5558 (struct range_bounds): Add flags member.
5559
b86138fb
SA
55602014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5561
5562 * c-typeprint.c (c_type_print_varspec_suffix): Added
5563 check for not yet resolved high bound. If unresolved, print
5564 "variable length" string to the console instead of random
5565 length.
5566
bcd629a4
SA
55672014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5568
5569 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
5570 (ada_template_to_fixed_record_type_1): Likewise.
5571 (ada_to_fixed_type_1): Likewise.
5572 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
5573 (cp_print_value): Likewise.
5574 * d-valprint.c (dynamic_array_type): Likewise.
5575 * eval.c (evaluate_subexp_with_coercion): Likewise.
5576 * findvar.c (address_of_variable): Likewise.
5577 * jv-valprint.c (java_value_print): Likewise.
5578 * valops.c (value_ind): Likewise.
5579 * value.c (coerce_ref): Likewise.
5580
04b19544
SA
55812014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5582
5583 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
5584 value and retrieve the dynamic type size.
5585
26cb189f
SA
55862014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5587
5588 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
5589 passed to sizeof is dynamic evaluate the argument to compute the length.
5590
37c1ab67
SA
55912014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5592
5593 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
5594 (dwarf2_evaluate_property): New function.
5595 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
5596 * dwarf2read.c (attr_to_dynamic_prop): New function.
5597 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
5598 attribute.
5599 * gdbtypes.c: Include dwarf2loc.h.
5600 (is_dynamic_type): New function.
5601 (resolve_dynamic_type): New function.
5602 (resolve_dynamic_bounds): New function.
5603 (get_type_length): New function.
5604 (check_typedef): Use get_type_length to compute type length.
5605 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
5606 (TYPE_LOW_BOUND_KIND): New macro.
5607 (is_dynamic_type): New function prototype.
5608 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
5609 to resolve dynamic properties of the type. Update comment.
5610 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
5611
729efb13
SA
56122014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5613
5614 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
5615 declaring high/low bounds and change uses accordingly. Call
5616 create_range_type instead of create_static_range_type.
5617 * gdbtypes.c (create_range_type): New function.
5618 (create_range_type): Convert bounds into struct bound_prop and pass
5619 them to create_range_type.
5620 * gdbtypes.h (struct bound_prop): New struct.
5621 (create_range_type): New function prototype.
5622 (struct range_bounds): Use struct bound_prop instead of LONGEST for
5623 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
5624 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
5625 part of the bound.
5626 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
5627
0c9c3474
SA
56282014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
5629
5630 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
5631 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
5632 * ada-lang.c: All uses of create_range_type updated.
5633 * coffread.c: All uses of create_range_type updated.
5634 * dwarf2read.c: All uses of create_range_type updated.
5635 * f-exp.y: All uses of create_range_type updated.
5636 * m2-valprint.c: All uses of create_range_type updated.
5637 * mdebugread.c: All uses of create_range_type updated.
5638 * stabsread.c: All uses of create_range_type updated.
5639 * valops.c: All uses of create_range_type updated.
5640 * valprint.c: All uses of create_range_type updated.
5641
9d497a19
PA
56422014-04-10 Pedro Alves <palves@redhat.com>
5643
5644 * breakpoint.c (single_step_breakpoints)
5645 (single_step_gdbarch): Move up in the file.
5646 (one_breakpoint_xfer_memory): New function, factored out from ...
5647 (breakpoint_xfer_memory): ... here. Also process single-step
5648 breakpoints.
5649
15a9128a
TG
56502014-04-09 Tristan Gingold <gingold@adacore.com>
5651
5652 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
5653 comments.
5654 (darwin_decode_exception_message): Free port only after use.
5655
9c97a070
PL
56562014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
5657
5658 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
5659 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
5660 when setting the size of call_length.
5661
7af389b8
SC
56622014-04-07 Siva Chandra Reddy <sivachandra@google.com>
5663
5664 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
5665 dereference TYPE_CODE_REF values.
5666
86ad98c3
JB
56672014-04-07 Joel Brobecker <brobecker@adacore.com>
5668
5669 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
5670 end of warning message.
5671
b0aeadb3
DE
56722014-04-03 Doug Evans <dje@google.com>
5673
5674 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
5675 of stub_comp_unit_die, stub_comp_dir is non-NULL.
5676
5979d6b6
AM
56772014-04-02 Alan Modra <amodra@gmail.com>
5678
5679 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
5680 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
5681 (struct symbol_file_add_from_memory_args): Add size field.
5682 (find_vdso_size): New function.
5683 (add_vsyscall_page): Attempt to find vdso size.
5684
0d60c288
DE
56852014-04-01 Doug Evans <dje@google.com>
5686
5687 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
5688
a41f2563
TG
56892014-04-01 Tristan Gingold <gingold@adacore.com>
5690
5691 * darwin-nat.c (darwin_encode_reply): Add prototype.
5692 (darwin_decode_exception_message): Reply to unknown inferiors.
5693 (darwin_decode_message): Handle message by id. Ignore message
5694 to unknown inferior.
5695 (darwin_wait): Discard unknown messages, add debug trace.
5696
11a865c8
DE
56972014-03-31 Doug Evans <dje@google.com>
5698
5699 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
5700 comp_dir_string.
5701
770e7fc7
DE
57022014-03-31 Doug Evans <dje@google.com>
5703
5704 New option "set print symbol-loading".
5705 * NEWS: Mention it.
5706 * solib.c (solib_read_symbols): Only print symbol loading messages
5707 if requested.
5708 (solib_add): If symbol loading is in "brief" mode, notify user
5709 symbols are being loaded.
5710 (reload_shared_libraries_1): Ditto.
5711 * symfile.c (print_symbol_loading_off): New static global.
5712 (print_symbol_loading_brief): New static global.
5713 (print_symbol_loading_full): New static global.
5714 (print_symbol_loading_enums): New static global.
5715 (print_symbol_loading): New static global.
5716 (print_symbol_loading_p): New function.
5717 (symbol_file_add_with_addrs): Only print symbol loading messages
5718 if requested.
5719 (_initialize_symfile): Register "print symbol-loading" set/show
5720 command.
5721 * symfile.h (print_symbol_loading_p): Declare.
5722
c32c64b7
DE
57232014-03-30 Doug Evans <xdje42@gmail.com>
5724
5725 * infrun.c (set_last_target_status): New function.
5726 (handle_inferior_event): Call it.
5727
7c0bc051
DE
57282014-03-30 Doug Evans <xdje42@gmail.com>
5729
5730 * inferior.h (enum stop_kind): Improve comment.
5731
8776cfe9
JB
57322014-03-28 Joel Brobecker <brobecker@adacore.com>
5733
5734 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
5735 a reference, strip the reference layer before calling
5736 the lang_ops value_has_mutated callback.
5737
410a0ff2
SDJ
57382014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
5739
5740 Remove some globals from our parser.
5741 * language.c (unk_lang_parser): Add "struct parser_state"
5742 argument.
5743 * language.h (struct language_defn) <la_parser>: Likewise.
5744 * parse.c (expout, expout_size, expout_ptr): Remove variables.
5745 (initialize_expout): Add "struct parser_state" argument.
5746 Rewrite function to use the parser state.
5747 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
5748 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
5749 write_exp_elt_longcst, write_exp_elt_dblcst,
5750 write_exp_elt_decfloatcst, write_exp_elt_type,
5751 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5752 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
5753 write_dollar_variable): Likewise.
5754 (parse_exp_in_context_1): Use parser state.
5755 (insert_type_address_space): Add "struct parser_state" argument.
5756 Use parser state.
5757 (increase_expout_size): New function.
5758 * parser-defs.h: Forward declare "struct language_defn" and
5759 "struct parser_state".
5760 (expout, expout_size, expout_ptr): Remove extern declarations.
5761 (parse_gdbarch, parse_language): Rewrite macro declarations to
5762 accept the parser state.
5763 (struct parser_state): New struct.
5764 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
5765 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
5766 write_exp_elt_decfloatcst, write_exp_elt_type,
5767 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
5768 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
5769 write_exp_msymbol, write_dollar_variable,
5770 mark_struct_expression, insert_type_address_space): Add "struct
5771 parser_state" argument.
5772 (increase_expout_size): New function.
5773 * utils.c (do_clear_parser_state): New function.
5774 (make_cleanup_clear_parser_state): Likewise.
5775 * utils.h (make_cleanup_clear_parser_state): New function
5776 prototype.
5777 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
5778 Update calls to write_exp* in order to pass the parser state.
5779 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
5780 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
5781 (i386_stap_parse_special_token_three_arg_disp): Likewise.
5782 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
5783 * stap-probe.c (stap_parse_register_operand): Likewise.
5784 (stap_parse_single_operand): Likewise.
5785 (stap_parse_argument_1): Likewise.
5786 (stap_parse_argument): Use parser state.
5787 * stap-probe.h: Include "parser-defs.h".
5788 (struct stap_parse_info) <pstate>: New field.
5789 * c-exp.y (parse_type): Rewrite to use parser state.
5790 (yyparse): Redefine to c_parse_internal.
5791 (pstate): New global variable.
5792 (parse_number): Add "struct parser_state" argument.
5793 (write_destructor_name): Likewise.
5794 (type_exp): Update calls to write_exp* and similars in order to
5795 use parser state.
5796 (exp1, exp, variable, qualified_name, space_identifier,
5797 typename, typebase): Likewise.
5798 (write_destructor_name, parse_number, lex_one_token,
5799 classify_name, classify_inner_name, c_parse): Add "struct
5800 parser_state" argument. Update function to use parser state.
5801 * c-lang.h: Forward declare "struct parser_state".
5802 (c_parse): Add "struct parser_state" argument.
5803 * ada-exp.y (parse_type): Rewrite macro to use parser state.
5804 (yyparse): Redefine macro to ada_parse_internal.
5805 (pstate): New variable.
5806 (write_int, write_object_renaming, write_var_or_type,
5807 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
5808 type_int, type_long, type_long_long, type_float, type_double,
5809 type_long_double, type_char, type_boolean, type_system_address):
5810 Add "struct parser_state" argument.
5811 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
5812 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
5813 var_or_type, aggregate, aggregate_component_list,
5814 positional_list, others, component_group,
5815 component_associations): Update calls to write_exp* and similar
5816 functions in order to use parser state.
5817 (ada_parse, write_var_from_sym, write_int,
5818 write_exp_op_with_string, write_object_renaming,
5819 find_primitive_type, write_selectors, write_ambiguous_var,
5820 write_var_or_type, write_name_assoc, type_int, type_long,
5821 type_long_long, type_float, type_double, type_long_double,
5822 type_char, type_boolean, type_system_address): Add "struct
5823 parser_state" argument. Adjust function to use parser state.
5824 * ada-lang.c (parse): Likewise.
5825 * ada-lang.h: Forward declare "struct parser_state".
5826 (ada_parse): Add "struct parser_state" argument.
5827 * ada-lex.l (processInt, processReal): Likewise. Adjust all
5828 calls to both functions.
5829 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
5830 parser state.
5831 (yyparse): Redefine macro to f_parse_internal.
5832 (pstate): New variable.
5833 (parse_number): Add "struct parser_state" argument.
5834 (type_exp, exp, subrange, typebase): Update calls to write_exp*
5835 and similars in order to use parser state.
5836 (parse_number): Adjust code to use parser state.
5837 (yylex): Likewise.
5838 (f_parse): New function.
5839 * f-lang.h: Forward declare "struct parser_state".
5840 (f_parse): Add "struct parser_state" argument.
5841 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
5842 parser state.
5843 (yyparse): Redefine macro for java_parse_internal.
5844 (pstate): New variable.
5845 (push_expression_name, push_expression_name, insert_exp): Add
5846 "struct parser_state" argument.
5847 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
5848 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
5849 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
5850 PostIncrementExpression, PostDecrementExpression,
5851 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
5852 UnaryExpressionNotPlusMinus, CastExpression,
5853 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
5854 RelationalExpression, EqualityExpression, AndExpression,
5855 ExclusiveOrExpression, InclusiveOrExpression,
5856 ConditionalAndExpression, ConditionalOrExpression,
5857 ConditionalExpression, Assignment, LeftHandSide): Update
5858 calls to write_exp* and similars in order to use parser state.
5859 (parse_number): Ajust code to use parser state.
5860 (yylex): Likewise.
5861 (java_parse): New function.
5862 (push_variable): Add "struct parser_state" argument. Adjust
5863 code to user parser state.
5864 (push_fieldnames, push_qualified_expression_name,
5865 push_expression_name, insert_exp): Likewise.
5866 * jv-lang.h: Forward declare "struct parser_state".
5867 (java_parse): Add "struct parser_state" argument.
5868 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
5869 parser state.
5870 (yyparse): Redefine macro to m2_parse_internal.
5871 (pstate): New variable.
5872 (type_exp, exp, fblock, variable, type): Update calls to
5873 write_exp* and similars to use parser state.
5874 (yylex): Likewise.
5875 (m2_parse): New function.
5876 * m2-lang.h: Forward declare "struct parser_state".
5877 (m2_parse): Add "struct parser_state" argument.
5878 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
5879 * objc-lang.h: Forward declare "struct parser_state".
5880 (end_msglist): Add "struct parser_state" argument.
5881 * p-exp.y (parse_type): Rewrite macro to use parser state.
5882 (yyparse): Redefine macro to pascal_parse_internal.
5883 (pstate): New variable.
5884 (parse_number): Add "struct parser_state" argument.
5885 (type_exp, exp1, exp, qualified_name, variable): Update calls to
5886 write_exp* and similars in order to use parser state.
5887 (parse_number, yylex): Adjust code to use parser state.
5888 (pascal_parse): New function.
5889 * p-lang.h: Forward declare "struct parser_state".
5890 (pascal_parse): Add "struct parser_state" argument.
5891 * go-exp.y (parse_type): Rewrite macro to use parser state.
5892 (yyparse): Redefine macro to go_parse_internal.
5893 (pstate): New variable.
5894 (parse_number): Add "struct parser_state" argument.
5895 (type_exp, exp1, exp, variable, type): Update calls to
5896 write_exp* and similars in order to use parser state.
5897 (parse_number, lex_one_token, classify_name, yylex): Adjust code
5898 to use parser state.
5899 (go_parse): Likewise.
5900 * go-lang.h: Forward declare "struct parser_state".
5901 (go_parse): Add "struct parser_state" argument.
5902
342587c4
DE
59032014-03-27 Doug Evans <dje@google.com>
5904
5905 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
5906
33e80786
DE
59072014-03-27 Doug Evans <dje@google.com>
5908
5909 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
5910 Remove argument abbrev_section. All callers updated.
5911
1dbab08b
DE
59122014-03-27 Doug Evans <dje@google.com>
5913
5914 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
5915 addr_base, ranges_base.
5916
318d3177
KS
59172014-03-26 Keith Seitz <keiths@redhat.com>
5918
5919 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
5920 types, not VAR_DOMAIN.
5921
1e54db15
SL
59222014-03-25 Sandra Loosemore <sandra@codesourcery.com>
5923
5924 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
5925 "ra" registers.
5926 * features/nios2-linux.c: Regenerated.
5927 * features/nios2.c: Regenerated.
5928
d3839ede
PA
59292014-03-25 Pedro Alves <palves@redhat.com>
5930
5931 * cli/cli-script.c (script_from_file): Force the interpreter to
5932 sync mode.
5933
7588d2ec
PL
59342014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
5935
5936 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
5937 small stack allocation.
5938
a6290449
TG
59392014-03-24 Tristan Gingold <gingold@adacore.com>
5940
5941 * darwin-nat.c (exc_server): Remove unused prototype.
5942 (darwin_dump_message): Correctly display data on x86_64.
5943 (darwin_encode_reply): Fix style.
5944 Add comments and fix indentation.
5945
31ae9d24 59462014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
69fa4030
PL
5947
5948 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
5949
6339bfc4
DE
59502014-03-22 Doug Evans <xdje42@gmail.com>
5951
5952 * infcmd.c: Whitespace fixes.
5953 (interrupt_command): Merge two function comments into one.
5954
0a07590b
DE
59552014-03-22 Doug Evans <xdje42@gmail.com>
5956
5957 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
5958 All uses updated.
5959
b55fbac4
YQ
59602014-03-22 Yao Qi <yao@codesourcery.com>
5961
5962 * remote.c (target_read_live_memory): Remove.
5963 (memory_xfer_live_readonly_partial): Rename it to
5964 remote_xfer_live_readonly_partial. Remove argument 'object'.
5965 All callers updated. Call remote_read_bytes_1
5966 instead of target_read_live_memory.
5967 * tracepoint.c (set_traceframe_number): Remove.
5968 (make_cleanup_restore_traceframe_number): Likewise .
5969 * tracepoint.h (set_traceframe_number): Remove declaration.
5970 (make_cleanup_restore_traceframe_number): Likewise.
5971
9217e74e
YQ
59722014-03-22 Yao Qi <yao@codesourcery.com>
5973
5974 * remote.c (remote_read_bytes): Move code on reading from the
5975 remote stub to ...
5976 (remote_read_bytes_1): ... here. New function.
5977
8acf9577
YQ
59782014-03-22 Yao Qi <yao@codesourcery.com>
5979
5980 * ctf.c (ctf_xfer_partial): Check the return value of
5981 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
5982 return TARGET_XFER_UNAVAILABLE.
5983 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
5984 * target.c (target_read_live_memory): Move it to remote.c.
5985 (memory_xfer_live_readonly_partial): Likewise.
5986 (memory_xfer_partial_1): Move some code to remote_read_bytes.
5987 * remote.c (target_read_live_memory): Moved from target.c.
5988 (memory_xfer_live_readonly_partial): Likewise.
5989 (remote_read_bytes): Factored out from
5990 memory_xfer_partial_1.
5991
feef67ab
DE
59922014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
5993
5994 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
5995 NULL pointer.
5996
b65dc60b
PA
59972014-03-21 Pedro Alves <palves@redhat.com>
5998
5999 * infrun.c (normal_stop): Extend comment.
6000
b4ab256d
HZ
60012014-03-21 Hui Zhu <hui@codesourcery.com>
6002 Pedro Alves <palves@redhat.com>
6003
6004 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
6005 static buffer.
6006 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
6007 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
6008 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
6009
deba7593
MR
60102014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
6011
6012 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
6013 `z' formatted output modifier.
6014
1bff71c3
SDJ
60152014-03-20 Tom Tromey <tromey@redhat.com>
6016 Sergio Durigan Junior <sergiodj@redhat.com>
6017
6018 * probe.c (parse_probes): Turn assert into an ordinary error.
6019 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
6020 exceptions when parsing probes. Rearrange the code for clarity.
6021
90e28950
TT
60222014-03-20 Tom Tromey <tromey@redhat.com>
6023
6024 PR gdb/14135
6025 * top.c (execute_command): Only dispatch events if the command
6026 started the target.
6027
beb460e8
PA
60282014-03-20 Tom Tromey <tromey@redhat.com>
6029
6030 PR cli/15718
6031 * infcall.c: Include event-top.h.
6032 (run_inferior_call): Call async_disable_stdin if needed.
6033
99619bea
PA
60342014-03-20 Pedro Alves <palves@redhat.com>
6035
6036 * infrun.c (prepare_to_proceed): Delete.
6037 (thread_still_needs_step_over): New function.
6038 (find_thread_needs_step_over): New function.
6039 (proceed): If the current thread needs a step-over, set its
6040 steping_over_breakpoint flag. Adjust to use
6041 find_thread_needs_step_over instead of prepare_to_proceed.
6042 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
6043 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
6044 breakpoint.
6045 (switch_back_to_stepped_thread): Step over breakpoints of all
6046 threads not the stepping thread, before switching back to the
6047 stepping thread.
6048
2adfaa28
PA
60492014-03-20 Pedro Alves <palves@redhat.com>
6050
6051 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
6052 extern.
6053 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
6054 * infrun.c (saved_singlestep_ptid)
6055 (stepping_past_singlestep_breakpoint): Delete.
6056 (resume): Remove stepping_past_singlestep_breakpoint handling.
6057 (proceed): Store the prev_pc of the stepping thread too.
6058 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
6059 singlestep_pc.
6060 (enum infwait_states): Delete infwait_thread_hop_state.
6061 (struct execution_control_state) <hit_singlestep_breakpoint>: New
6062 field.
6063 (handle_inferior_event): Adjust.
6064 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
6065 handling and the thread-hop code. Before removing single-step
6066 breakpoints, check whether the thread hit a single-step breakpoint
6067 of another thread. If it did, the trap is not a random signal.
6068 (switch_back_to_stepped_thread): If the event thread hit a
6069 single-step breakpoint, unblock it before switching to the
6070 stepping thread. Handle the case of the stepped thread having
6071 advanced already.
6072 (keep_going): Handle the case of the current thread moving past a
6073 single-step breakpoint.
6074
31e77af2
PA
60752014-03-20 Pedro Alves <palves@redhat.com>
6076
6077 PR breakpoints/7143
6078 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
6079 are being stepped over.
6080 (breakpoint_address_match): Make extern.
6081 * breakpoint.h (breakpoint_address_match): New declaration.
6082 * inferior.h (stepping_past_instruction_at): New declaration.
6083 * infrun.c (struct step_over_info): New type.
6084 (step_over_info): New global.
6085 (set_step_over_info, clear_step_over_info)
6086 (stepping_past_instruction_at): New functions.
6087 (handle_inferior_event): Clear the step-over info when
6088 trap_expected is cleared.
6089 (resume): Remove now stale comment.
6090 (clear_proceed_status): Clear step-over info.
6091 (proceed): Adjust step-over handling to set or clear the step-over
6092 info instead of removing all breakpoints.
6093 (handle_signal_stop): When setting up a thread-hop, don't remove
6094 breakpoints here.
6095 (stop_stepping): Clear step-over info.
6096 (keep_going): Adjust step-over handling to set or clear step-over
6097 info and then always inserting breakpoints, instead of removing
6098 all breakpoints when stepping over one.
6099
b9f437de
PA
61002014-03-20 Pedro Alves <palves@redhat.com>
6101
6102 * infrun.c (previous_inferior_ptid): Adjust comment.
6103 (deferred_step_ptid): Delete.
6104 (infrun_thread_ptid_changed, prepare_to_proceed)
6105 (init_wait_for_inferior): Adjust.
6106 (handle_signal_stop): Delete deferred_step_ptid handling.
6107
06c868a8
JK
61082014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6109
6110 PR gdb/15358
6111 * defs.h (sync_quit_force_run): New declaration.
6112 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
6113 * event-top.c (async_sigterm_handler): New declaration.
6114 (async_sigterm_token): New variable.
6115 (async_init_signals): Create also async_sigterm_token.
6116 (async_sigterm_handler): New function.
6117 (sync_quit_force_run): New variable.
6118 (handle_sigterm): Replace quit_force call by other calls.
6119 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
6120
dea80df0
MR
61212014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
6122
6123 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
6124 offset into SPE pseudo registers.
6125
0c7e1a46
PA
61262014-03-18 Pedro Alves <palves@redhat.com>
6127
6128 PR gdb/13860
6129 * inferior.h (print_stop_event): Declare.
6130 * infrun.c (print_stop_event): New, factored out from ...
6131 (normal_stop): ... this.
6132 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
6133 of bpstat_print/print_stack_frame.
6134
9c1fcd01
TT
61352014-03-17 Tom Tromey <tromey@redhat.com>
6136
6137 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
6138
11aa919a
PMR
61392014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
6140
6141 * ada-lang.c (decode_constrained_packed_array): Perform a
6142 minimal coercion for reference with coerce_ref instead of
6143 ada_coerce_ref.
6144
d4ccb5e0
TG
61452014-03-17 Tristan Gingold <gingold@adacore.com>
6146
6147 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
6148 (darwin_solib_create_inferior_hook): Emit a warning if version
6149 is unhandled.
6150
49840f2a
UW
61512014-03-16 Ulrich Weigand  <uweigand@de.ibm.com>
6152
6153 * python/py-value.c (get_field_flag): Cast flag_name argument to
6154 PyObject_GetAttrString to support Python 2.4.
6155
ed4123e5
JK
61562014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6157
6158 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
6159 (Global Maintainers): Remove Jan Kratochvil.
6160
d6b64346
PA
61612014-03-14 Pedro Alves <palves@redhat.com>
6162
6163 * inferior.h (terminal_ours_for_output): Rename to ...
6164 (child_terminal_ours_for_output): ... this.
6165 (terminal_save_ours): Rename to ...
6166 (child_terminal_save_ours): ... this.
6167 (terminal_ours): Rename to ...
6168 (child_terminal_ours): ... this.
6169 (terminal_inferior): Rename to ...
6170 (child_terminal_inferior): ... this.
6171 (terminal_init_inferior): Rename to ...
6172 (child_terminal_init_inferior): ... this.
6173 (terminal_init_inferior_with_pgrp): Rename to ...
6174 (child_terminal_init_inferior_with_pgrp): ... this.
6175 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
6176 (child_terminal_init_with_pgrp): ... this.
6177 (terminal_save_ours): Rename to ...
6178 (child_terminal_save_ours): ... this.
6179 (terminal_init_inferior): Rename to ...
6180 (child_terminal_init): ... this. Adjust.
6181 (terminal_inferior): Rename to ...
6182 (child_terminal_inferior): ... this.
6183 (terminal_ours_for_output): Rename to ...
6184 (child_terminal_ours_for_output): ... this. Adjust.
6185 (terminal_ours): Rename to ...
6186 (child_terminal_ours): ... this.
6187 (terminal_ours_1): Rename to ...
6188 (child_terminal_ours_1): ... this. Adjust.
6189 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
6190 * windows-nat.c (do_initial_windows_stuff): Adjust.
6191 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
6192 (gnu_terminal_init): ... this. Adjust.
6193 (gnu_target): Adjust.
6194 * inf-child.c (inf_child_target): Adjust.
6195
5a1e8c7a
DE
61962014-03-13 Doug Evans <xdje42@gmail.com>
6197
6198 PR guile/16612
6199 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
6200 new eq?-hashtab.
6201
350e1a76
DE
62022014-03-13 Doug Evans <xdje42@gmail.com>
6203
6204 * value.c (record_latest_value): Call release_value_or_incref
6205 instead of release_value.
6206
a69900ae
PA
62072014-03-13 Pedro Alves <palves@redhat.com>
6208
6209 * procfs.c (procfs_target): Don't override to_shortname,
6210 to_longname or to_doc.
6211
5db9f0bd
PA
62122014-03-13 Pedro Alves <palves@redhat.com>
6213
6214 * inf-child.c (inf_child_open, inf_child_target): Don't mention
6215 Unix in user visible strings.
6216
5e3a2c38
SS
62172014-03-12 Stan Shebs <stan@codesourcery.com>
6218
6219 * gdbtypes.h: Annotate comments for Doxygen, add a page
6220 block comment with some general info.
6221
8bc2fe48
PA
62222014-03-12 Pedro Alves <palves@redhat.com>
6223
6224 * infcmd.c (prepare_execution_command): New function, factored out
6225 from several execution commands.
6226 (run_command_1, continue_command, step_1, jump_command)
6227 (signal_command, until_command, advance_command, finish_command)
6228 (attach_command): Use prepare_execution_command.
6229
638c5f49
OJ
62302014-03-12 Omair Javaid <omair.javaid@linaro.org>
6231
6232 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
6233 (MAX_BPTS): Define.
6234 (MAX_WPTS): Define.
6235 (struct arm_linux_thread_points): Removed.
6236 (struct arm_linux_process_info): New.
6237 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
6238 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
6239 (arm_linux_find_breakpoints_by_tid): Removed.
6240 (struct arch_lwp_info): New.
6241 (arm_linux_find_process_pid): New functions.
6242 (arm_linux_add_process): New functions.
6243 (arm_linux_process_info_get): New functions.
6244 (arm_linux_forget_process): New function.
6245 (arm_linux_get_debug_reg_state): New function.
6246 (struct update_registers_data): New.
6247 (update_registers_callback): New function.
6248 (arm_linux_insert_hw_breakpoint1): Updated.
6249 (arm_linux_remove_hw_breakpoint1): Updated.
6250 (arm_linux_insert_hw_breakpoint): Updated.
6251 (arm_linux_remove_hw_breakpoint): Updated.
6252 (arm_linux_insert_watchpoint): Updated.
6253 (arm_linux_remove_watchpoint): Updated.
6254 (arm_linux_new_thread): Updated.
6255 (arm_linux_prepare_to_resume): New function.
6256 (arm_linux_new_fork): New function.
6257 (_initialize_arm_linux_nat): Updated.
6258
6d03af93
PA
62592014-03-12 Pedro Alves <palves@redhat.com>
6260
6261 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
6262
b3ccfe11
TT
62632014-03-12 Tom Tromey <tromey@redhat.com>
6264
6265 * inf-child.c (return_zero): New function.
6266 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
6267 * aix-thread.c (aix_thread_inferior_created): New function.
6268 (aix_thread_attach): Remove.
6269 (init_aix_thread_ops): Don't set to_attach.
6270 (_initialize_aix_thread): Register inferior_created observer.
6271 * corelow.c (init_core_ops): Don't set to_attach or
6272 to_create_inferior.
6273 * exec.c (init_exec_ops): Don't set to_attach or
6274 to_create_inferior.
6275 * infcmd.c (run_command_1): Use find_run_target. Make direct
6276 target calls.
6277 (attach_command): Use find_attach_target. Make direct target
6278 calls.
6279 * record-btrace.c (init_record_btrace_ops): Don't set
6280 to_create_inferior.
6281 * record-full.c (record_full_can_async_p, record_full_is_async_p):
6282 Remove.
6283 (init_record_full_ops, init_record_full_core_ops): Update. Don't
6284 set to_create_inferior.
6285 * target.c (complete_target_initialization): Add assertion.
6286 (target_create_inferior): Remove.
6287 (find_default_attach, find_default_create_inferior): Remove.
6288 (find_attach_target, find_run_target): New functions.
6289 (find_default_is_async_p, find_default_can_async_p)
6290 (target_supports_non_stop, target_attach): Remove.
6291 (init_dummy_target): Don't set to_create_inferior or
6292 to_supports_non_stop.
6293 * target.h (struct target_ops) <to_attach>: Add comment. Remove
6294 TARGET_DEFAULT_FUNC.
6295 <to_create_inferior>: Add comment.
6296 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
6297 TARGET_DEFAULT_RETURN.
6298 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
6299 (find_attach_target, find_run_target): Declare.
6300 (target_create_inferior): Remove.
6301 (target_has_execution_1): Update comment.
6302 (target_supports_non_stop): Remove.
6303 * target-delegates.c: Rebuild.
6304
91f83b02
PA
63052014-03-12 Pedro Alves <palves@redhat.com>
6306
6307 * inf-child.h: Update comment to not mention Unix.
6308
f1aea813
PA
63092014-03-12 Pedro Alves <palves@redhat.com>
6310
6311 * inf-child.c: Update top comment to not mention Unix. Add
6312 generic comment describing how this target is meant to be used.
6313 (inf_child_post_attach, inf_child_post_startup_inferior)
6314 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
6315 Unix in comment.
6316
ee8e9165
PA
63172014-03-12 Pedro Alves <palves@redhat.com>
6318
6319 * nto-procfs.c: Include inf-child.h.
6320 (procfs_ops): Delete global.
6321 (procfs_can_run): Delete method.
6322 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
6323 target pointer instead of referencing procfs_ops.
6324 (procfs_prepare_to_store): Delete.
6325 (init_procfs_ops): Delete function.
6326 (procfs_target): New function, based on init_procfs_ops, but
6327 inherit inf_child_target.
6328 (_initialize_procfs): Use procfs_target.
6329
51a9c8c5
PA
63302014-03-12 Pedro Alves <palves@redhat.com>
6331
6332 * windows-nat.c: Include inf-child.h.
6333 (windows_ops): Delete global.
6334 (windows_open, windows_prepare_to_store, windows_can_run): Delete
6335 methods.
6336 (init_windows_ops): Delete function.
6337 (windows_target): New function, based on init_windows_ops, but
6338 inherit inf_child_target.
6339 (_initialize_windows_nat): Use windows_target. Install x86
6340 specific target methods here.
6341
c1966e26
DE
63422014-03-10 Doug Evans <xdje42@gmail.com>
6343
6344 * guile/guile.c (call_initialize_gdb_module): New function.
6345 (initialize_guile): Replace call to scm_init_guile with call to
6346 scm_with_guile.
6347
023db19c
JB
63482014-03-10 Joel Brobecker <brobecker@adacore.com>
6349
6350 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
6351 in call to TYPE_CODE macro.
6352
5ec18f2b
JG
63532014-03-10 Jerome Guitton <guitton@adacore.com>
6354
8668be63
JB
6355 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
6356 Resolve tagged types to full view.
5ec18f2b 6357
7d03f2eb
HZ
63582014-03-10 Hui Zhu <hui@codesourcery.com>
6359
6360 * target.h (target_insert_breakpoint): Remove "hardware" from its
6361 comments.
6362
c5164cbc
DE
63632014-03-07 Doug Evans <dje@google.com>
6364
6365 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
6366
c4a3fee2
DE
63672014-03-07 Doug Evans <dje@google.com>
6368
6369 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
6370 Remove unused local comp_dir_attr. Assert exactly one of
6371 stub_comp_unit_die, stub_comp_dir is non-NULL.
6372
3156469c
JB
63732014-03-07 Joel Brobecker <brobecker@adacore.com>
6374
6375 * target.h (complete_target_initialization, add_target):
6376 Add comment.
6377
c1a7b7c6
PA
63782014-03-07 Pedro Alves <palves@redhat.com>
6379
6380 * go32-nat.c: Include inf-child.h.
6381 (go32_ops): Delete global.
6382 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
6383 Delete methods.
6384 (go32_create_inferior): Push the passed in target pointer instead
6385 of referencing go32_ops.
6386 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
6387 (go32_target): New function, based on init_go32_ops, but inherit
6388 inf_child_target.
6389 (_initialize_go32_nat): Use go32_target. Move parts of
6390 init_go32_ops here.
6391
d3c1a85f
JB
63922014-03-06 Joel Brobecker <brobecker@adacore.com>
6393
6394 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
6395 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
6396 SYMBOL_VALUE_ADDRESS.
6397 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
6398
5fa1d40e
YQ
63992014-03-06 Yao Qi <yao@codesourcery.com>
6400
6401 * breakpoint.c (get_tracepoint_by_number): Remove argument
6402 optional_p. All callers updated. Adjust comments. Update
6403 output message.
6404 * breakpoint.h (get_tracepoint_by_number): Update declaration.
6405
0c13193f
YQ
64062014-03-06 Yao Qi <yao@codesourcery.com>
6407
6408 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
6409 early if get_number returns zero. Use 'p' instead of 'args'.
6410
2217da06
YQ
64112014-03-06 Yao Qi <yao@codesourcery.com>
6412
6413 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
6414 message.
6415
cc3da688
YQ
64162014-03-06 Yao Qi <yao@codesourcery.com>
6417
6418 PR breakpoints/16508
6419 * tracepoint.c (check_trace_running): New function.
6420 (trace_find_command): Move code to check_trace_running and
6421 call check_trace_running.
6422 (trace_find_pc_command): Likewise.
6423 (trace_find_tracepoint_command): Likewise.
6424 (trace_find_line_command): Likewise.
6425 (trace_find_range_command): Likewise.
6426 * tracepoint.h (check_trace_running): Likewise.
6427 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
6428
6a5f844b
YQ
64292014-03-06 Yao Qi <yao@codesourcery.com>
6430
6431 * target.h (struct target_ops) <to_traceframe_info>: Use
6432 TARGET_DEFAULT_NORETURN (tcomplain ()).
6433 * target-delegates.c: Regenerated.
6434
0f26cec1
PA
64352014-03-05 Pedro Alves <palves@redhat.com>
6436
6437 PR gdb/16575
6438 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
6439 void. Update comment.
6440 (dcache_xfer_memory): Delete.
6441 (dcache_read_memory_partial): New, based on the read bits of
6442 dcache_xfer_memory.
6443 (dcache_update): Add status parameter. Use ULONGEST for len, and
6444 adjust. Discard cache lines if the reason for the update was
6445 error.
6446 * dcache.h (dcache_xfer_memory): Delete declaration.
6447 (dcache_read_memory_partial): New declaration.
6448 (dcache_update): Update prototype.
6449 * target.c (raw_memory_xfer_partial): Update the dcache here.
6450 (memory_xfer_partial_1): Don't handle dcache writes here.
6451
b2b255bd
MF
64522014-03-05 Mike Frysinger <vapier@gentoo.org>
6453
6454 * remote-sim.c (gdbsim_load): Add const to prog.
6455
5d9cf8a4
TT
64562014-03-03 Tom Tromey <tromey@redhat.com>
6457
6458 * elfread.c (probe_key): Change to bfd_data.
6459 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
6460 now per-BFD, not per-objfile.
6461 * stap-probe.c (stap_probe_destroy): Update comment.
6462 (handle_stap_probe): Allocate on the per-BFD obstack.
6463
729662a5
TT
64642014-03-03 Tom Tromey <tromey@redhat.com>
6465
6466 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
6467 * breakpoint.c (create_longjmp_master_breakpoint): Use
6468 get_probe_address.
6469 (add_location_to_breakpoint, bkpt_probe_insert_location)
6470 (bkpt_probe_remove_location): Update.
6471 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
6472 * elfread.c (elf_symfile_relocate_probe): Remove.
6473 (elf_probe_fns): Update.
6474 (insert_exception_resume_breakpoint): Change type of "probe"
6475 parameter to bound_probe.
6476 (check_exception_resume): Update.
6477 * objfiles.c (objfile_relocate1): Don't relocate probes.
6478 * probe.c (bound_probe_s): New typedef.
6479 (parse_probes): Use get_probe_address. Set sal's objfile.
6480 (find_probe_by_pc): Return a bound_probe.
6481 (collect_probes): Return a VEC(bound_probe_s).
6482 (compare_probes): Update.
6483 (gen_ui_out_table_header_info): Change type of "probes"
6484 parameter. Update.
6485 (info_probes_for_ops): Update.
6486 (get_probe_address): New function.
6487 (probe_safe_evaluate_at_pc): Update.
6488 * probe.h (struct probe_ops) <get_probe_address>: New field.
6489 <set_semaphore, clear_semaphore>: Add objfile parameter.
6490 (struct probe) <objfile>: Remove field.
6491 <arch>: New field.
6492 <address>: Update comment.
6493 (struct bound_probe): New.
6494 (find_probe_by_pc): Return a bound_probe.
6495 (get_probe_address): Declare.
6496 * solib-svr4.c (struct probe_and_action) <address>: New field.
6497 (hash_probe_and_action, equal_probe_and_action): Update.
6498 (register_solib_event_probe): Add address parameter.
6499 (solib_event_probe_at): Update.
6500 (svr4_create_probe_breakpoints): Add objfile parameter. Use
6501 get_probe_address.
6502 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
6503 (stap_get_probe_address): New function.
6504 (stap_can_evaluate_probe_arguments, compute_probe_arg)
6505 (compile_probe_arg): Update.
6506 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
6507 address.
6508 (handle_stap_probe): Don't relocate the probe.
6509 (stap_relocate): Remove.
6510 (stap_gen_info_probes_table_values): Update.
6511 (stap_probe_ops): Remove stap_relocate.
6512 * symfile-debug.c (debug_sym_relocate_probe): Remove.
6513 (debug_sym_probe_fns): Update.
6514 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
6515 * symtab.c (init_sal): Use memset.
6516 * symtab.h (struct symtab_and_line) <objfile>: New field.
6517 * tracepoint.c (start_tracing, stop_tracing): Update.
6518
ff887920
TT
65192014-03-03 Tom Tromey <tromey@redhat.com>
6520
6521 * probe.h (parse_probes, find_probe_by_pc)
6522 (find_probes_in_objfile): Fix comments.
6523
f0407826
DE
65242014-03-02 Doug Evans <xdje42@gmail.com>
6525
6526 * infrun.c (handle_signal_stop): Replace test for
6527 TARGET_WAITKIND_STOPPED with an assert.
6528
35e6a711
DE
65292014-03-02 Doug Evans <xdje42@gmail.com>
6530
6531 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
6532
667f9d0b
DE
65332014-03-02 Doug Evans <xdje42@gmail.com>
6534
6535 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
6536
dc92ace0
MK
65372014-03-01 Mark Kettenis <kettenis@gnu.org>
6538
6539 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6540
a900370f
MK
65412014-03-01 Mark Kettenis <kettenis@gnu.org>
6542
6543 * i386obsd-nat.c: Include "obsd-nat.h".
6544 (_initialize_i386obsd_nat): Call obsd_add_target instead of
6545 add_target.
6546 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
6547
b72a7981
MK
65482014-03-01 Mark Kettenis <kettenis@gnu.org>
6549
6550 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
6551
96c70aba
MK
65522014-03-01 Mark Kettenis <kettenis@gnu.org>
6553
6554 * mips64obsd-nat.c: Include "obsd-nath".
6555 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
6556 add_target
6557 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6558
874a80af
MK
65592014-03-01 Mark Kettenis <kettenis@gnu.org>
6560
8fd408f1
MK
6561 * amd64obsd-nat.c: Include "obsd-nat,h.
6562 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
6563 add_target.
874a80af
MK
6564 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
6565
9cf95373
SC
65662014-02-28 Siva Chandra Reddy <sivachandra@google.com>
6567
6568 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
6569 (find_overload_match): Update call to find_oload_champ.
6570 (find_oload_champ_namespace_loop): Likewise
6571
863e4da4
MK
65722014-02-28 Mark Kettenis <kettenis@gnu.org>
6573
025cac40
MK
6574 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
6575
1ed586ce
MK
6576 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
6577 * config/sparc/obsd64.mh: New file.
6578 * sparc64obsd-nat.c: New file.
6579
863e4da4
MK
6580 * obsd-nat.h: New file.
6581 * obsd-nat.c: New file.
6582 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
6583 (ALLDEPFILES): Add obsd-nat.c.
6584
89de4da4
TT
65852014-02-28 Tom Tromey <tromey@redhat.com>
6586
6587 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
6588 * cli-out.h (cli_ui_out_impl): Now const.
6589 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
6590 * ui-out.c (struct ui_out) <impl>: Now const.
6591 (default_ui_out_impl): Now const.
6592 (ui_out_new): Make 'impl' parameter const.
6593 * ui-out.h (ui_out_new): Update.
6594
c725e7b6
MK
65952014-02-27 Mark Kettenis <kettenis@gnu.org>
6596
6597 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
6598
670b46b3
MK
65992014-02-27 Mark Kettenis <kettenis@gnu.org>
6600
6601 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
6602
c91550fc
JK
66032014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6604
6605 Additional PR 8882 fix.
6606 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
6607
2fa0369e
PA
66082014-02-27 Pedro Alves <palves@redhat.com>
6609
6610 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
6611 isn't set.
6612
d632a097
PA
66132014-02-27 Pedro Alves <palves@redhat.com>
6614
6615 PR 12702
6616 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
6617 * nat/linux-waitpid.c: Include string.h.
6618 (status_to_str): Moved here and made extern.
6619 * nat/linux-waitpid.h (status_to_str): New declaration.
6620
2ebd5a35
HZ
66212014-02-27 Hui Zhu <hui@codesourcery.com>
6622
6623 PR 12702
6624 * infrun.c (ptid_match): Move ...
6625 * common/ptid.c (ptid_match): ... here.
6626 * inferior.h (ptid_match): Move ...
6627 * common/ptid.h (ptid_match): ... here.
6628
3cdd631f
MK
66292014-02-27 Mark Kettenis <kettenis@gnu.org>
6630
6631 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
6632 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
6633 gdb_target_obs.
6634
bee30a64
MK
66352014-02-27 Mark Kettenis <kettenis@gnu.org>
6636
6637 * obsd-tdep.c (obsd_auxv_parse): New function.
6638 (obsd_init_abi): Set auxv_parse.
27a48a92
MK
6639
6640 * gdbarch.sh (auxv_parse): New.
6641 * gdbarch.h: Regenerated.
6642 * gdbarch.c: Regenerated.
6643 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
6644
7a5a839f
LC
66452014-02-26 Ludovic Courtès <ludo@gnu.org>
6646
6647 * guile/scm-value.c (gdbscm_history_append_x): New function.
6648 (value_functions): Add it.
6649
31aa7e4e
JB
66502014-02-27 Joel Brobecker <brobecker@adacore.com>
6651
6652 * dwarf2read.c (attr_value_as_address): New function.
6653 (dwarf2_find_base_address, read_call_site_scope): Use
6654 attr_value_as_address in place of DW_ADDR.
6655 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
6656 the low and high addresses. Slight rework of the handling
6657 of the high pc being a constant form, and limit it to
6658 DWARF verson 4 or higher.
6659 (dwarf2_record_block_ranges): Likewise.
6660 (read_partial_die): Likewise.
6661 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
6662
9b333ba3
TT
66632014-02-26 Tom Tromey <tromey@redhat.com>
6664
6665 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
6666
5f6cac40
TT
66672014-02-26 Tom Tromey <tromey@redhat.com>
6668
6669 * elfread.c (elf_read_minimal_symbols): Return early if
6670 minimal symbols have already been read. Add "ei" parameter.
6671 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
6672 * minsyms.c (prim_record_minimal_symbol_full): Update.
6673 * objfiles.h (struct objstats) <n_minsyms>: Move...
6674 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
6675 * symmisc.c (print_objfile_statistics): Update.
6676
2750ef27
TT
66772014-02-26 Tom Tromey <tromey@redhat.com>
6678
6679 * elfread.c (elf_read_minimal_symbols): New function, from
6680 elf_symfile_read.
6681 (elf_symfile_read): Call it.
6682
34643a32
TT
66832014-02-26 Tom Tromey <tromey@redhat.com>
6684
6685 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
6686 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
6687 (lookup_minimal_symbol_solib_trampoline)
6688 (lookup_minimal_symbol_by_pc_section_1)
6689 (lookup_minimal_symbol_and_objfile): Update.
6690 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
6691 Don't allocate a minimal symbol if minsyms have already been read.
6692 (build_minimal_symbol_hash_tables): Update.
6693 (install_minimal_symbols): Do nothing if minsyms already read.
6694 Use the per-BFD obstack.
6695 (terminate_minimal_symbol_table): Use the per-BFD obstack.
6696 * objfiles.c (allocate_objfile): Call
6697 terminate_minimal_symbol_table later.
6698 (have_minimal_symbols): Update.
6699 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
6700 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
6701 Move from struct objfile.
6702 <minsyms_read>: New field.
6703 (struct objfile) <msymbols, minimal_symbol_count,
6704 msymbol_hash, msymbol_demangled_hash>: Move.
6705 (ALL_OBJFILE_MSYMBOLS): Update.
6706 * symfile.c (read_symbols): Set minsyms_read.
6707 (reread_symbols): Update.
6708 * symmisc.c (dump_objfile, dump_msymbols): Update.
6709
2273f0ac
TT
67102014-02-26 Tom Tromey <tromey@redhat.com>
6711
6712 * minsyms.c (msymbols_sort): Remove.
6713 * minsyms.h (msymbols_sort): Remove.
6714 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
6715 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
6716 * elfread.c (elf_symtab_read): Don't add section offsets.
6717 * xcoffread.c (record_minimal_symbol): Don't add section offset
6718 to minimal symbol address.
6719 * somread.c (text_offset, data_offset): Remove.
6720 (som_symtab_read): Don't add section offsets to minimal symbol
6721 addresses.
6722 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
6723 Don't add section offsets to minimal symbols.
6724 * coffread.c (coff_symtab_read): Don't add section offsets
6725 to minimal symbol addresses.
6726 * machoread.c (macho_symtab_add_minsym): Don't add section offset
6727 to minimal symbol addresses.
6728 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
6729 section offset to minimal symbol addresses.
6730 * mdebugread.c (parse_partial_symbols): Don't add section
6731 offset to minimal symbol addresses.
6732 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
6733 offset to minimal symbol addresses.
6734
77e371c0
TT
67352014-02-26 Tom Tromey <tromey@redhat.com>
6736
6737 * ada-lang.c (ada_main_name): Update.
6738 (ada_add_standard_exceptions): Update.
6739 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6740 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6741 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
6742 * auxv.c (ld_so_xfer_auxv): Update.
6743 * avr-tdep.c (avr_scan_prologue): Update.
6744 * ax-gdb.c (gen_var_ref): Update.
6745 * blockframe.c (get_pc_function_start)
6746 (find_pc_partial_function_gnu_ifunc): Update.
6747 * breakpoint.c (create_overlay_event_breakpoint)
6748 (create_longjmp_master_breakpoint)
6749 (create_std_terminate_master_breakpoint)
6750 (create_exception_master_breakpoint): Update.
6751 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6752 * c-valprint.c (c_val_print): Update.
6753 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6754 * common/agent.c (agent_look_up_symbols): Update.
6755 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6756 * dwarf2loc.c (call_site_to_target_addr): Update.
6757 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
6758 * elfread.c (elf_gnu_ifunc_record_cache)
6759 (elf_gnu_ifunc_resolve_by_got): Update.
6760 * findvar.c (default_read_var_value): Update.
6761 * frame.c (inside_main_func): Update.
6762 * frv-tdep.c (frv_frame_this_id): Update.
6763 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6764 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6765 Update.
6766 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
6767 (hppa_hpux_find_dummy_bpaddr): Update.
6768 * hppa-tdep.c (hppa_symbol_address): Update.
6769 * infcmd.c (until_next_command): Update.
6770 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
6771 Update.
6772 * linespec.c (minsym_found, add_minsym): Update.
6773 * linux-nat.c (get_signo): Update.
6774 * linux-thread-db.c (inferior_has_bug): Update.
6775 * m32c-tdep.c (m32c_return_value)
6776 (m32c_m16c_address_to_pointer): Update.
6777 * m32r-tdep.c (m32r_frame_this_id): Update.
6778 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6779 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6780 * maint.c (maintenance_translate_address): Update.
6781 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
6782 (frob_address): New function.
6783 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
6784 frob_address. Rename parameter to "pc_in".
6785 (compare_minimal_symbols, compact_minimal_symbols): Use raw
6786 addresses.
6787 (find_solib_trampoline_target, minimal_symbol_upper_bound):
6788 Update.
6789 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6790 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
6791 * objc-lang.c (find_objc_msgsend): Update.
6792 * objfiles.c (objfile_relocate1): Update.
6793 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6794 * p-valprint.c (pascal_val_print): Update.
6795 * parse.c (write_exp_msymbol): Update.
6796 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
6797 (ppc_elfv2_skip_entrypoint): Update.
6798 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6799 * printcmd.c (build_address_symbolic, msym_info)
6800 (address_info): Update.
6801 * proc-service.c (ps_pglobal_lookup): Update.
6802 * psymtab.c (find_pc_sect_psymtab_closer)
6803 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
6804 Change msymbol parameter to bound_minimal_symbol.
6805 * ravenscar-thread.c (get_running_thread_id): Update.
6806 * remote.c (remote_check_symbols): Update.
6807 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
6808 address.
6809 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6810 * solib-dsbt.c (lm_base): Update.
6811 * solib-frv.c (lm_base, main_got): Update.
6812 * solib-irix.c (locate_base): Update.
6813 * solib-som.c (som_solib_create_inferior_hook)
6814 (link_map_start): Update.
6815 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
6816 * solib-svr4.c (elf_locate_base, enable_break): Update.
6817 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6818 (flush_ea_cache): Update.
6819 * stabsread.c (define_symbol, scan_file_globals): Update.
6820 * stack.c (find_frame_funname): Update.
6821 * symfile-debug.c (debug_qf_expand_symtabs_matching)
6822 (debug_qf_find_pc_sect_symtab): Update.
6823 * symfile.c (simple_read_overlay_table)
6824 (simple_overlay_update): Update.
6825 * symfile.h (struct quick_symbol_functions)
6826 <find_pc_sect_symtab>: Change type of msymbol to
6827 bound_minimal_symbol.
6828 * symmisc.c (dump_msymbols): Update.
6829 * symtab.c (find_pc_sect_symtab_via_partial)
6830 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
6831 (search_symbols, print_msymbol_info): Update.
6832 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
6833 (MSYMBOL_VALUE_ADDRESS): Redefine.
6834 (BMSYMBOL_VALUE_ADDRESS): New macro.
6835 * tracepoint.c (scope_info): Update.
6836 * tui/tui-disasm.c (tui_find_disassembly_address)
6837 (tui_get_begin_asm_address): Update.
6838 * valops.c (find_function_in_inferior): Update.
6839 * value.c (value_static_field, value_fn_field): Update.
6840
3b7344d5
TT
68412014-02-26 Tom Tromey <tromey@redhat.com>
6842
6843 * ada-lang.c (ada_update_initial_language): Update.
6844 (ada_main_name, ada_has_this_exception_support): Update.
6845 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
6846 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6847 * arm-tdep.c (arm_skip_stub): Update.
6848 * auxv.c (ld_so_xfer_auxv): Update.
6849 * avr-tdep.c (avr_scan_prologue): Update.
6850 * ax-gdb.c (gen_var_ref): Update.
6851 * breakpoint.c (struct breakpoint_objfile_data)
6852 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
6853 type to bound_minimal_symbol.
6854 (create_overlay_event_breakpoint)
6855 (create_longjmp_master_breakpoint)
6856 (create_std_terminate_master_breakpoint)
6857 (create_exception_master_breakpoint): Update.
6858 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6859 * c-exp.y (classify_name): Update.
6860 * coffread.c (coff_symfile_read): Update.
6861 * common/agent.c (agent_look_up_symbols): Update.
6862 * d-lang.c (d_main_name): Update.
6863 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
6864 * dec-thread.c (enable_dec_thread): Update.
6865 * dwarf2loc.c (call_site_to_target_addr): Update.
6866 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
6867 * eval.c (evaluate_subexp_standard): Update.
6868 * findvar.c (struct minsym_lookup_data) <result>: Change type
6869 to bound_minimal_symbol.
6870 <objfile>: Remove.
6871 (minsym_lookup_iterator_cb, default_read_var_value): Update.
6872 * frame.c (inside_main_func): Update.
6873 * frv-tdep.c (frv_frame_this_id): Update.
6874 * gcore.c (call_target_sbrk): Update.
6875 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6876 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
6877 Update.
6878 * go-lang.c (go_main_name): Update.
6879 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
6880 (hppa_hpux_find_import_stub_for_addr): Update.
6881 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
6882 Update. Change return type.
6883 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
6884 type.
6885 * jit.c (jit_breakpoint_re_set_internal): Update.
6886 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
6887 Update.
6888 * linux-nat.c (get_signo): Update.
6889 * linux-thread-db.c (inferior_has_bug): Update
6890 * m32c-tdep.c (m32c_return_value)
6891 (m32c_m16c_address_to_pointer): Update.
6892 * m32r-tdep.c (m32r_frame_this_id): Update.
6893 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
6894 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
6895 * minsyms.c (lookup_minimal_symbol_internal): Rename to
6896 lookup_minimal_symbol. Change return type.
6897 (lookup_minimal_symbol): Remove.
6898 (lookup_bound_minimal_symbol): Update.
6899 (lookup_minimal_symbol_text): Change return type.
6900 (lookup_minimal_symbol_solib_trampoline): Change return type.
6901 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
6902 (lookup_minimal_symbol_solib_trampoline): Change return type.
6903 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
6904 * objc-lang.c (lookup_objc_class, lookup_child_selector)
6905 (value_nsstring, find_imps): Update.
6906 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
6907 * p-lang.c (pascal_main_name): Update.
6908 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
6909 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
6910 * proc-service.c (ps_pglobal_lookup): Update.
6911 * ravenscar-thread.c (get_running_thread_msymbol): Change
6912 return type.
6913 (has_ravenscar_runtime, get_running_thread_id): Update.
6914 * remote.c (remote_check_symbols): Update.
6915 * sol-thread.c (ps_pglobal_lookup): Update.
6916 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
6917 * solib-dsbt.c (lm_base): Update.
6918 * solib-frv.c (lm_base, frv_relocate_section_addresses):
6919 Update.
6920 * solib-irix.c (locate_base): Update.
6921 * solib-som.c (som_solib_create_inferior_hook)
6922 (som_solib_desire_dynamic_linker_symbols, link_map_start):
6923 Update.
6924 * solib-spu.c (spu_enable_break): Update.
6925 * solib-svr4.c (elf_locate_base, enable_break): Update.
6926 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
6927 (flush_ea_cache): Update.
6928 * stabsread.c (define_symbol): Update.
6929 * symfile.c (simple_read_overlay_table): Update.
6930 * symtab.c (find_pc_sect_line): Update.
6931 * tracepoint.c (scope_info): Update.
6932 * tui-disasm.c (tui_get_begin_asm_address): Update.
6933 * value.c (value_static_field): Update.
6934
40c1a007
TT
69352014-02-26 Tom Tromey <tromey@redhat.com>
6936
6937 * minsyms.c (prim_record_minimal_symbol_full): Use
6938 SET_MSYMBOL_VALUE_ADDRESS.
6939 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
6940 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
6941 SET_MSYMBOL_VALUE_ADDRESS.
6942 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
6943 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
6944
efd66ac6
TT
69452014-02-26 Tom Tromey <tromey@redhat.com>
6946
6947 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
6948 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
6949 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
6950 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
6951 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
6952 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
6953 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
6954 * ada-lang.c (ada_main_name): Update.
6955 (ada_lookup_simple_minsym): Update.
6956 (ada_make_symbol_completion_list): Update.
6957 (ada_add_standard_exceptions): Update.
6958 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
6959 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
6960 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
6961 * arm-tdep.c (skip_prologue_function): Update.
6962 (arm_skip_stack_protector, arm_skip_stub): Update.
6963 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
6964 (arm_wince_skip_main_prologue): Update.
6965 * auxv.c (ld_so_xfer_auxv): Update.
6966 * avr-tdep.c (avr_scan_prologue): Update.
6967 * ax-gdb.c (gen_var_ref): Update.
6968 * block.c (call_site_for_pc): Update.
6969 * blockframe.c (get_pc_function_start): Update.
6970 (find_pc_partial_function_gnu_ifunc): Update.
6971 * breakpoint.c (create_overlay_event_breakpoint): Update.
6972 (create_longjmp_master_breakpoint): Update.
6973 (create_std_terminate_master_breakpoint): Update.
6974 (create_exception_master_breakpoint): Update.
6975 (resolve_sal_pc): Update.
6976 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
6977 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
6978 Update.
6979 * c-valprint.c (c_val_print): Update.
6980 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6981 * coffread.c (coff_symfile_read): Update.
6982 * common/agent.c (agent_look_up_symbols): Update.
6983 * dbxread.c (find_stab_function_addr): Update.
6984 (end_psymtab): Update.
6985 * dwarf2loc.c (call_site_to_target_addr): Update.
6986 (func_verify_no_selftailcall): Update.
6987 (tailcall_dump): Update.
6988 (call_site_find_chain_1): Update.
6989 (dwarf_expr_reg_to_entry_parameter): Update.
6990 * elfread.c (elf_gnu_ifunc_record_cache): Update.
6991 (elf_gnu_ifunc_resolve_by_got): Update.
6992 * f-valprint.c (info_common_command): Update.
6993 * findvar.c (read_var_value): Update.
6994 * frame.c (get_prev_frame_1): Update.
6995 (inside_main_func): Update.
6996 * frv-tdep.c (frv_skip_main_prologue): Update.
6997 (frv_frame_this_id): Update.
6998 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
6999 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
7000 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
7001 (gnuv3_skip_trampoline): Update.
7002 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
7003 (hppa64_hpux_in_solib_call_trampoline): Update.
7004 (hppa_hpux_skip_trampoline_code): Update.
7005 (hppa64_hpux_search_dummy_call_sequence): Update.
7006 (hppa_hpux_find_import_stub_for_addr): Update.
7007 (hppa_hpux_find_dummy_bpaddr): Update.
7008 * hppa-tdep.c (hppa_symbol_address)
7009 (hppa_lookup_stub_minimal_symbol): Update.
7010 * i386-tdep.c (i386_skip_main_prologue): Update.
7011 (i386_pe_skip_trampoline_code): Update.
7012 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
7013 * infcall.c (get_function_name): Update.
7014 * infcmd.c (until_next_command): Update.
7015 * jit.c (jit_breakpoint_re_set_internal): Update.
7016 (jit_inferior_init): Update.
7017 * linespec.c (minsym_found): Update.
7018 (add_minsym): Update.
7019 * linux-fork.c (info_checkpoints_command): Update.
7020 * linux-nat.c (get_signo): Update.
7021 * linux-thread-db.c (inferior_has_bug): Update.
7022 * m32c-tdep.c (m32c_return_value): Update.
7023 (m32c_m16c_address_to_pointer): Update.
7024 (m32c_m16c_pointer_to_address): Update.
7025 * m32r-tdep.c (m32r_frame_this_id): Update.
7026 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
7027 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
7028 * maint.c (maintenance_translate_address): Update.
7029 * minsyms.c (add_minsym_to_hash_table): Update.
7030 (add_minsym_to_demangled_hash_table): Update.
7031 (msymbol_objfile): Update.
7032 (lookup_minimal_symbol): Update.
7033 (iterate_over_minimal_symbols): Update.
7034 (lookup_minimal_symbol_text): Update.
7035 (lookup_minimal_symbol_by_pc_name): Update.
7036 (lookup_minimal_symbol_solib_trampoline): Update.
7037 (lookup_minimal_symbol_by_pc_section_1): Update.
7038 (lookup_minimal_symbol_and_objfile): Update.
7039 (prim_record_minimal_symbol_full): Update.
7040 (compare_minimal_symbols): Update.
7041 (compact_minimal_symbols): Update.
7042 (build_minimal_symbol_hash_tables): Update.
7043 (install_minimal_symbols): Update.
7044 (terminate_minimal_symbol_table): Update.
7045 (find_solib_trampoline_target): Update.
7046 (minimal_symbol_upper_bound): Update.
7047 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
7048 * mips-tdep.c (mips_stub_frame_sniffer): Update.
7049 (mips_skip_pic_trampoline_code): Update.
7050 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
7051 * objc-lang.c (selectors_info): Update.
7052 (classes_info): Update.
7053 (find_methods): Update.
7054 (find_imps): Update.
7055 (find_objc_msgsend): Update.
7056 * objfiles.c (objfile_relocate1): Update.
7057 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
7058 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
7059 * p-valprint.c (pascal_val_print): Update.
7060 * parse.c (write_exp_msymbol): Update.
7061 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
7062 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
7063 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
7064 * printcmd.c (build_address_symbolic): Update.
7065 (sym_info): Update.
7066 (address_info): Update.
7067 * proc-service.c (ps_pglobal_lookup): Update.
7068 * psymtab.c (find_pc_sect_psymtab_closer): Update.
7069 (find_pc_sect_psymtab): Update.
7070 * python/py-framefilter.c (py_print_frame): Update.
7071 * ravenscar-thread.c (get_running_thread_id): Update.
7072 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
7073 Update.
7074 * remote.c (remote_check_symbols): Update.
7075 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
7076 (rs6000_skip_trampoline_code): Update.
7077 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
7078 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
7079 * solib-dsbt.c (lm_base): Update.
7080 * solib-frv.c (lm_base): Update.
7081 (main_got): Update.
7082 * solib-irix.c (locate_base): Update.
7083 * solib-som.c (som_solib_create_inferior_hook): Update.
7084 (som_solib_desire_dynamic_linker_symbols): Update.
7085 (link_map_start): Update.
7086 * solib-spu.c (spu_enable_break): Update.
7087 (ocl_enable_break): Update.
7088 * solib-svr4.c (elf_locate_base): Update.
7089 (enable_break): Update.
7090 * spu-tdep.c (spu_get_overlay_table): Update.
7091 (spu_catch_start): Update.
7092 (flush_ea_cache): Update.
7093 * stabsread.c (define_symbol): Update.
7094 (scan_file_globals): Update.
7095 * stack.c (find_frame_funname): Update.
7096 (frame_info): Update.
7097 * symfile.c (simple_read_overlay_table): Update.
7098 (simple_overlay_update): Update.
7099 * symmisc.c (dump_msymbols): Update.
7100 * symtab.c (fixup_section): Update.
7101 (find_pc_sect_line): Update.
7102 (skip_prologue_sal): Update.
7103 (search_symbols): Update.
7104 (print_msymbol_info): Update.
7105 (rbreak_command): Update.
7106 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
7107 (completion_list_objc_symbol): Update.
7108 (default_make_symbol_completion_list_break_on): Update.
7109 * tracepoint.c (scope_info): Update.
7110 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
7111 (tui_get_begin_asm_address): Update.
7112 * valops.c (find_function_in_inferior): Update.
7113 * value.c (value_static_field): Update.
7114 (value_fn_field): Update.
7115
50e65b17
TT
71162014-02-26 Tom Tromey <tromey@redhat.com>
7117
7118 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
7119 bound minimal symbols. Move code that knows about minsym
7120 table layout...
7121 * minsyms.c (minimal_symbol_upper_bound): ... here. New
7122 function.
7123 * minsyms.h (minimal_symbol_upper_bound): Declare.
7124 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
7125 minimal_symbol_upper_bound.
7126
1b588015
JB
71272014-02-27 Joel Brobecker <brobecker@adacore.com>
7128
7129 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
7130 Use the type's name if its basic type does not have a tag.
7131
dbb9c2b1
JB
71322014-02-27 Joel Brobecker <brobecker@adacore.com>
7133
7134 * dwarf2read.c (read_subrange_type): Add comment.
7135
55426c9d
JB
71362014-02-27 Joel Brobecker <brobecker@adacore.com>
7137
7138 * dwarf2read.c (update_enumeration_type_from_children): New
7139 function, mostly extracted from process_structure_scope.
7140 (read_enumeration_type): Call update_enumeration_type_from_children.
7141 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
7142 and flag_flag_enum fields.
7143
f2fce0ca
PA
71442014-02-26 Pedro Alves <palves@redhat.com>
7145
7146 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
7147 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
7148 to_xfer_partial method.
7149
7a44e40e
PA
71502014-02-26 Pedro Alves <palves@redhat.com>
7151
7152 * target.c (complete_target_initialization): Don't install
7153 default_xfer_partial as to_xfer_partial hook.
7154 (nomemory): Delete.
7155 (update_current_target): Don't INHERIT nor de_fault
7156 deprecated_xfer_memory. Delete de_fault macro.
7157 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
7158 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
7159 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
7160 field.
7161
bd265cd0
PA
71622014-02-26 Pedro Alves <palves@redhat.com>
7163
7164 * go32-nat.c (my_write_child): New function.
7165 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
7166 (go32_xfer_partial): New function.
7167 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
7168 Instead install a to_xfer_partial hook.
7169
9d46c4e5
PA
71702014-02-26 Pedro Alves <palves@redhat.com>
7171
7172 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
7173 to_xfer_partial helper. Rewrite.
7174 (procfs_xfer_partial): New function.
7175 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
7176 Install a to_xfer_partial hook.
7177
a1583b1f
PA
71782014-02-26 Pedro Alves <palves@redhat.com>
7179
7180 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
7181 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
7182 (m32r_xfer_partial): New function.
7183 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
7184 Install a to_xfer_partial hook.
7185
6df1b29f
PA
71862014-02-26 Pedro Alves <palves@redhat.com>
7187
7188 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
7189 helper.
7190 (mips_xfer_partial): New function.
7191 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
7192 hook. Install a to_xfer_partial hook.
7193
dc53a7ad
JB
71942014-02-26 Joel Brobecker <brobecker@adacore.com>
7195
7196 * gdbtypes.h (create_array_type_with_stride): Add declaration.
7197 * gdbtypes.c (create_array_type_with_stride): New function,
7198 renaming create_array_type, but with an added parameter
7199 called "bit_stride".
7200 (create_array_type): Re-implement using
7201 create_array_type_with_stride.
7202 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
7203 and DW_AT_bit_stride attributes.
7204
12ab52e9
PA
72052014-02-26 Pedro Alves <palves@redhat.com>
7206
7207 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
7208 task-specific breakpoints.
7209
d16461ae
PA
72102014-02-25 Pedro Alves <palves@redhat.com>
7211
7212 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
7213 handling of object == TARGET_OBJECT_UNWIND_TABLE.
7214
a8b16220
SS
72152014-02-25 Stan Shebs <stan@codesourcery.com>
7216
7217 * defs.h: Annotate comments for Doxygen.
7218
b9e795ee
TT
72192014-02-25 Tom Tromey <tromey@redhat.com>
7220
7221 * target.h (target_ignore): Don't declare.
7222 * target.c (target_ignore): Remove.
7223
849c862e
JK
72242014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7225
7226 PR gdb/16626
7227 * auto-load.c (auto_load_objfile_script_1): Change filename to
7228 debugfile.
7229
475109d8
JB
72302014-02-25 Joel Brobecker <brobecker@adacore.com>
7231
7232 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
7233 documentation. Adjust prototype to match the target_ops
7234 to_xfer_partial method. Adjust implementation accordingly.
7235
e186c3bd
HZ
72362014-02-25 Hui Zhu <hui@codesourcery.com>
7237
7238 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
7239 to_traceframe_info.
7240
6d451942
KB
72412014-02-25 Kevin Buettner <kevinb@redhat.com>
7242
041ab8b4 7243 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
6d451942
KB
7244 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
7245 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
7246 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
7247 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
7248 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
7249 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
7250 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
7251 New constants.
7252 (rl78_register_type): Use a data pointer type for SP and
7253 new pseudo registers mentioned above. Use a 16 bit integer
7254 type for all other register pairs.
7255 (rl78_register_name, rl78_g10_register_name): Update for
7256 new pseudo registers.
7257 (rl78_pseudo_register_read): Likewise.
7258 (rl78_pseudo_register_write): Likewise.
7259 (rl78_dwarf_reg_to_regnum): Return register numbers representing
7260 to the newly added pseudo registers.
7261
eddf0bae
DE
72622014-02-24 Doug Evans <dje@google.com>
7263
7264 * value.c (record_latest_value): Fix comment.
7265 * printcmd.c (print_command_1): Remove code to handle -1 return from
7266 record_latest_value.
7267
e96027e0
PA
72682014-02-24 Pedro Alves <palves@redhat.com>
7269
7270 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
7271 deprecated_xfer_memory hook.
7272 (procfs_xfer_partial): Call procfs_xfer_memory instead
7273 of the deprecated_xfer_memory target hook.
7274 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
7275 helper.
7276
0837c976
YZ
72772014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
7278
7279 * windows-nat.c (windows_xfer_shared_libraries): Return
7280 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
7281 requested object is TARGET_OBJECT_LIBRARIES.
7282
bc113b4e
YQ
72832014-02-24 Yao Qi <yao@codesourcery.com>
7284
7285 * target.h (enum target_xfer_status)
7286 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
7287 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
7288 explicitly. New.
7289 * corefile.c (memory_error_message): User updated.
7290 * exec.c (section_table_read_available_memory): Likewise.
7291 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7292 * target.c (target_xfer_status_to_string): Likewise.
7293 (raw_memory_xfer_partial): Likewise.
7294 (memory_xfer_partial_1, target_xfer_partial): Likewise.
7295 * valops.c (read_value_memory): Likewise.
7296 * exec.h: Update comments.
7297
01cb8804
YQ
72982014-02-24 Yao Qi <yao@codesourcery.com>
7299
7300 * target.c (target_xfer_status_to_string): Rename argument err
7301 to status.
7302 * target.h (target_xfer_status_to_string): Update declaration.
7303 Replace target_xfer_error_to_string with
7304 target_xfer_status_to_string in comment.
7305
93063aa6
YQ
73062014-02-24 Yao Qi <yao@codesourcery.com>
7307
7308 * mips-linux-nat.c (super_close): Update its type.
7309 (mips_linux_close): Pass 'self' to super_close.
7310
5c328c05
YQ
73112014-02-24 Yao Qi <yao@codesourcery.com>
7312
7313 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
7314 * corefile.c (read_memory): Adjusted.
7315 * target.c (target_write_with_progress): Adjusted.
7316
f73023dd
YQ
73172014-02-23 Yao Qi <yao@codesourcery.com>
7318
7319 Revert two patches:
7320
7321 2013-10-25 Yao Qi <yao@codesourcery.com>
7322
7323 * remote.c (remote_traceframe_info): Return early if
7324 traceframe is not selected.
7325
7326 2013-07-19 Yao Qi <yao@codesourcery.com>
7327
7328 * target.c (update_current_target): Change the default action
7329 of 'to_traceframe_info' from tcomplain to return_zero.
7330 * target.h (struct target_ops) <to_traceframe_info>: Add more
7331 comments.
7332
5a2eb0ef
YQ
73332014-02-23 Yao Qi <yao@codesourcery.com>
7334
7335 * valops.c (read_value_memory): Rewrite it. Call
7336 target_xfer_partial in a loop.
7337 * exec.h (section_table_available_memory): Remove declaration.
7338 Move comments to ...
7339 * exec.c (section_table_available_memory): ... here. Make it
7340 static.
7341
1ee79381
YQ
73422014-02-23 Yao Qi <yao@codesourcery.com>
7343
7344 * exec.c (section_table_read_available_memory): New function.
7345 * exec.h (section_table_read_available_memory): Declare.
7346 * ctf.c (ctf_xfer_partial): Call
7347 section_table_read_available_memory.
7348 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7349
1ca49d37
YQ
73502014-02-23 Yao Qi <yao@codesourcery.com>
7351
7352 * ctf.c (ctf_xfer_partial): Move code to ...
7353 * exec.c (exec_read_partial_read_only): ... it. New function.
7354 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
7355 * tracefile.c: Include "exec.h".
7356 * exec.h (exec_read_partial_read_only): Declare.
7357
a283690e
YQ
73582014-02-23 Yao Qi <yao@codesourcery.com>
7359
7360 * tracefile-tfile.c (tfile_has_all_memory): Remove.
7361 (tfile_has_memory): Remove.
7362 (init_tfile_ops): Don't set fields to_has_all_memory and
7363 to_has_memory of tfile_ops.
7364 * tracefile.c (tracefile_has_all_memory): New function.
7365 (tracefile_has_memory): New function.
7366 (init_tracefile_ops): Initialize fields to_has_all_memory and
7367 to_has_memory of 'ops'.
7368
12e03cd0
YQ
73692014-02-23 Yao Qi <yao@codesourcery.com>
7370
7371 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
7372 (ctf_thread_alive, ctf_get_trace_status): Remove.
7373 (init_ctf_ops): Don't set some fields of ctf_ops. Call
7374 init_tracefile_ops.
7375 * tracefile-tfile.c (tfile_get_trace_status): Remove.
7376 (tfile_has_stack, tfile_has_registers): Remove.
7377 (tfile_thread_alive): Remove.
7378 (init_tfile_ops): Don't set some fields of tfile_ops. Call
7379 init_tracefile_ops.
7380 * tracefile.c (tracefile_has_stack): New function.
7381 (tracefile_has_registers): New function.
7382 (tracefile_thread_alive): New function.
7383 (tracefile_get_trace_status): New function.
7384 (init_tracefile_ops): New function.
7385 * tracefile.h (init_tracefile_ops): Declare.
7386
11395323
YQ
73872014-02-23 Yao Qi <yao@codesourcery.com>
7388
7389 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
7390 (O_LARGEFILE): Likewise.
7391 (tfile_ops): Likewise.
7392 (TRACE_HEADER_SIZE): Likewise.
7393 (trace_fd, trace_frames_offset, cur_offset): Likewise.
7394 (cur_data_size): Likewise.
7395 (tfile_read, tfile_open, tfile_interp_line): Likewise.
7396 (tfile_close, tfile_files_info): Likewise.
7397 (tfile_get_trace_status): Likewise.
7398 (tfile_get_tracepoint_status): Likewise.
7399 (tfile_get_traceframe_address): Likewise.
7400 (tfile_trace_find, match_blocktype): Likewise.
7401 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
7402 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
7403 (tfile_get_trace_state_variable_value): Likewise.
7404 (tfile_has_all_memory, tfile_has_memory): Likewise.
7405 (tfile_has_stack, tfile_has_registers): Likewise.
7406 (tfile_thread_alive, build_traceframe_info): Likewise.
7407 (tfile_traceframe_info, init_tfile_ops): Likewise.
7408 (_initialize_tracepoint): Don't call init_tfile_ops
7409 and add_target_with_completer.
7410 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
7411 exec.h, completer.h and filenames.h.
7412 (_initialize_tracefile_tfile): New function.
7413
7951c4eb
YQ
74142014-02-23 Yao Qi <yao@codesourcery.com>
7415
7416 * Makefile.in (REMOTE_OBS): Append tracefile.o and
7417 tracefile-tfile.o.
7418 (HFILES_NO_SRCDIR): Add tracefile.h.
7419 * ctf.c: Include "tracefile.h".
7420 * tracefile.h: New file.
7421 * tracefile.c: New file
7422 * tracefile-tfile.c: New file.
7423 * tracepoint.c: Include "tracefile.h".
7424 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
7425 (stop_reason_names): Add const.
7426 (trace_file_writer_xfree): Move it to tracefile.c.
7427 (trace_save, trace_save_command, trace_save_tfile): Likewise.
7428 (trace_save_ctf): Likewise.
7429 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
7430 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
7431 (tfile_write_header, tfile_write_regblock_type): Likewise.
7432 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
7433 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
7434 (tfile_write_raw_data, tfile_end): Likewise.
7435 (tfile_trace_file_writer_new): Likewise.
7436 (free_uploaded_tp): Make it extern.
7437 (free_uploaded_tsv): Make it extern.
7438 (_initialize_tracepoint): Move code to register command 'tsave'
7439 to tracefile.c.
7440 * tracepoint.h (stop_reason_names): Declare.
7441 (struct trace_frame_write_ops): Move it to tracefile.h.
7442 (struct trace_file_write_ops): Likewise.
7443 (struct trace_file_writer): Likewise.
7444 (free_uploaded_tsvs, free_uploaded_tps): Declare.
7445
184cd072
JK
74462014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7447
7448 PR gdb/16594
7449 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
7450 process name.
7451 (get_cores_used_by_process): New parameter num_cores, use it.
7452 (linux_xfer_osdata_processes): Pass num_cores to it.
7453 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
7454 process name.
7455
c63528fc
AK
74562014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
7457
7458 * target.c (memory_xfer_partial): Fix length arg in call to
7459 breakpoint_xfer_memory.
7460
d7b30f67
SDJ
74612014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
7462
7463 PR tdep/16397
7464 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
7465 number comes after the + or - signs. Adjust length of register
7466 name to be extracted.
7467
8838afaf
TT
74682014-02-20 Tom Tromey <tromey@redhat.com>
7469
7470 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
7471 (ada_varobj_ops): Mark "extern".
7472
05227d14
TT
74732014-02-20 Tom Tromey <tromey@redhat.com>
7474
7475 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
7476
1254eefc
DE
74772014-02-20 Doug Evans <xdje42@gmail.com>
7478
7479 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
7480 All callers updated.
7481 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
7482 All callers updated.
7483 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
7484 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
7485
adde2bff
DE
74862014-02-20 lin zuojian <manjian2006@gmail.com>
7487 Joel Brobecker <brobecker@adacore.com>
7488 Doug Evans <xdje42@gmail.com>
7489
7490 PR symtab/16581
7491 * dwarf2read.c (struct die_info): New member in_process.
7492 (reset_die_in_process): New function.
7493 (process_die): Set it at the start, reset when returning.
7494 (inherit_abstract_dies): Only call process_die if origin_child_die
7495 not already being processed.
7496
3be75f87
JB
74972014-02-20 Joel Brobecker <brobecker@adacore.com>
7498
7499 * windows-nat.c (handle_unload_dll): Add function documentation.
7500 (do_initial_windows_stuff): Add comment explaining why we wait
7501 until after inferior initialization has finished before
7502 processing all DLLs.
7503
47f7ffdb
JB
75042014-02-20 Joel Brobecker <brobecker@adacore.com>
7505
7506 * windows-nat.c (get_module_name): Delete.
7507 (windows_get_exec_module_filename): New function, mostly
7508 inspired from get_module_name.
7509 (windows_pid_to_exec_file): Replace call to get_module_name
7510 by call to windows_get_exec_module_filename.
7511
1cd9feab
JB
75122014-02-20 Joel Brobecker <brobecker@adacore.com>
7513
7514 * windows-nat.c (handle_load_dll): Rewrite this function's
7515 introductory comment. Remove code using get_module_name
7516 to get the DLL's name.
7517
ea39ad35
JB
75182014-02-20 Joel Brobecker <brobecker@adacore.com>
7519
7520 * windows-nat.c (get_windows_debug_event): Ignore
7521 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
7522 if windows_initialization_done == 0.
7523 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
7524 Adjust implementation to always load all DLLs.
7525 (do_initial_windows_stuff): Replace call to
7526 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
7527
95060284
JB
75282014-02-20 Joel Brobecker <brobecker@adacore.com>
7529
7530 * windows-nat.c (_initialize_windows_nat): Deprecate the
7531 "dll-symbols" command. Turn the "add-shared-symbol-files"
7532 and "assf" aliases into commands, and deprecate them as well.
7533 * NEWS: Add entry explaining that "dll-symbols" and its two
7534 aliases are now deprecated.
7535
8d4fdb12
JB
75362014-02-20 Joel Brobecker <brobecker@adacore.com>
7537
7538 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
7539 new-line in debug string. Remove trailing spaces.
7540
1b281443
SS
75412014-02-19 Stan Shebs <stan@codesourcery.com>
7542
7543 * darwin-nat.c (darwin_xfer_partial): Fix return type.
7544
f7bd0f78
SC
75452014-02-19 Siva Chandra Reddy <sivachandra@google.com>
7546
7547 * NEWS: Add entry for the new feature
7548 * python/py-value.c (valpy_binop): Call value_x_binop for struct
7549 and class values.
7550
399ebc3d
SS
75512014-02-19 Stan Shebs <stan@codesourcery.com>
7552
7553 * MAINTAINERS: List Yao Qi as nios2 maintainer.
7554
c658158d
PA
75552014-02-19 Pedro Alves <palves@redhat.com>
7556
7557 * common/ptid.h (struct ptid): Mention that process_stratum
7558 targets should prefer ptid.lwp.
7559
ba348170
PA
75602014-02-19 Pedro Alves <palves@redhat.com>
7561
7562 * remote.c (remote_thread_alive, write_ptid, read_ptid)
7563 (read_ptid, remote_newthread_step, remote_threads_extra_info)
7564 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
7565 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
7566 store remote thread ids rather than ptid.tid.
7567 (_initialize_remote): Adjust.
7568
ac01945b
TT
75692014-02-19 Tom Tromey <tromey@redhat.com>
7570
7571 * target.c (target_get_unwinder): Rewrite.
7572 (target_get_tailcall_unwinder): Rewrite.
7573 * record-btrace.c (record_btrace_to_get_unwinder): New function.
7574 (record_btrace_to_get_tailcall_unwinder): New function.
7575 (init_record_btrace_ops): Update.
7576 * target.h (struct target_ops) <to_get_unwinder,
7577 to_get_tailcall_unwinder>: Now function pointers. Use
7578 TARGET_DEFAULT_RETURN.
7579
8476dc92
TT
75802014-02-19 Tom Tromey <tromey@redhat.com>
7581
7582 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
7583 argument.
7584 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
7585
c0eca49f
TT
75862014-02-19 Tom Tromey <tromey@redhat.com>
7587
7588 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
7589 directly.
7590 * target-delegates.c: Rebuild.
7591 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
7592 TARGET_DEFAULT_FUNC.
7593 * target.c (default_target_decr_pc_after_break): Rename from
7594 forward_target_decr_pc_after_break. Simplify.
7595 (target_decr_pc_after_break): Rely on delegation.
7596
596b6b39
TT
75972014-02-19 Tom Tromey <tromey@redhat.com>
7598
7599 * target.c (update_current_target): Do not INHERIT to_doc or
7600 to_magic. Do not de_fault to_open or to_close.
7601
b427c1bc
TT
76022014-02-19 Tom Tromey <tromey@redhat.com>
7603
7604 * gcore.h (objfile_find_memory_regions): Declare.
7605 * gcore.c (objfile_find_memory_regions): No longer static. Add
7606 "self" argument.
7607 (_initialize_gcore): Don't call exec_set_find_memory_regions.
7608 * exec.c: Include gcore.h.
7609 (exec_set_find_memory_regions): Remove.
7610 (exec_find_memory_regions): Remove.
7611 (exec_do_find_memory_regions): Remove.
7612 (init_exec_ops): Update.
7613 * defs.h (exec_set_find_memory_regions): Remove.
7614
9b144037
TT
76152014-02-19 Tom Tromey <tromey@redhat.com>
7616
7617 * target-delegates.c: Rebuild.
7618 * target.h (struct target_ops) <to_extra_thread_info,
7619 to_thread_name, to_pid_to_exec_file, to_get_section_table,
7620 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
7621 not 0, in TARGET_DEFAULT_RETURN.
7622
555bbdeb
TT
76232014-02-19 Tom Tromey <tromey@redhat.com>
7624
7625 * target.c (complete_target_initialization): Remove casts. Use
7626 return_zero_has_execution.
7627 (return_zero): Add "ignore" argument.
7628 (return_zero_has_execution): New function.
7629 (init_dummy_target): Remove casts. Use
7630 return_zero_has_execution.
7631
be4ddd36
TT
76322014-02-19 Tom Tromey <tromey@redhat.com>
7633
7634 * target.c (update_current_target): Update comments. Do not
7635 INHERIT to_stratum.
7636
2117c711
TT
76372014-02-19 Tom Tromey <tromey@redhat.com>
7638
7639 * arm-linux-nat.c (arm_linux_read_description): Delegate when
7640 needed.
7641 * corelow.c (core_read_description): Delegate when needed.
7642 * remote.c (remote_read_description): Delegate when needed.
7643 * target-delegates.c: Rebuild.
7644 * target.c (target_read_description): Rewrite.
7645 * target.h (struct target_ops) <to_read_description>: Update
7646 comment. Use TARGET_DEFAULT_RETURN.
7647
e88ef65c
TT
76482014-02-19 Tom Tromey <tromey@redhat.com>
7649
7650 * target-delegates.c: Rebuild.
7651 * target.c (update_current_target): Don't inherit or default
7652 to_can_run.
7653 (find_default_run_target): Check against delegate_can_run.
7654 * target.h (struct target_ops) <to_can_run>: Use
7655 TARGET_DEFAULT_RETURN.
7656
86a0854a
TT
76572014-02-19 Tom Tromey <tromey@redhat.com>
7658
7659 * target-delegates.c: Rebuild.
7660 * target.c (target_disconnect): Unconditionally delegate.
7661 * target.h (struct target_ops) <to_disconnect>: Use
7662 TARGET_DEFAULT_NORETURN.
7663
ee97f592
TT
76642014-02-19 Tom Tromey <tromey@redhat.com>
7665
7666 * record.c (record_stop): Unconditionally delegate.
7667 * target-delegates.c: Rebuild.
7668 * target.c (target_stop_recording): Unconditionally delegate.
7669 * target.h (struct target_ops) <to_stop_recording>: Use
7670 TARGET_DEFAULT_IGNORE.
7671
6dc7fcf4
TT
76722014-02-19 Tom Tromey <tromey@redhat.com>
7673
7674 * target-delegates.c: Rebuild.
7675 * target.c (target_enable_btrace): Unconditionally delegate.
7676 * target.h (struct target_ops) <to_enable_btrace>: Use
7677 TARGET_DEFAULT_NORETURN.
7678
eb5b20d4
TT
76792014-02-19 Tom Tromey <tromey@redhat.com>
7680
7681 * target-delegates.c: Rebuild.
7682 * target.c (target_read_btrace): Unconditionally delegate.
7683 * target.h (struct target_ops) <to_read_btrace>: Use
7684 TARGET_DEFAULT_NORETURN.
7685
9ace480d
TT
76862014-02-19 Tom Tromey <tromey@redhat.com>
7687
7688 * target-delegates.c: Rebuild.
7689 * target.c (target_teardown_btrace): Unconditionally delegate.
7690 * target.h (struct target_ops) <to_teardown_btrace>: Use
7691 TARGET_DEFAULT_NORETURN.
7692
8dc292d3
TT
76932014-02-19 Tom Tromey <tromey@redhat.com>
7694
7695 * target-delegates.c: Rebuild.
7696 * target.c (target_disable_btrace): Unconditionally delegate.
7697 * target.h (struct target_ops) <to_disable_btrace>: Use
7698 TARGET_DEFAULT_NORETURN.
7699
58a5184e
TT
77002014-02-19 Tom Tromey <tromey@redhat.com>
7701
7702 * target-delegates.c: Rebuild.
7703 * target.c (default_search_memory): New function.
7704 (simple_search_memory): Update comment.
7705 (target_search_memory): Unconditionally delegate.
7706 * target.h (struct target_ops) <to_search_memory>: Use
7707 TARGET_DEFAULT_FUNC.
7708
8de71aab
TT
77092014-02-19 Tom Tromey <tromey@redhat.com>
7710
7711 * auxv.c (default_auxv_parse): No longer static.
7712 (target_auxv_parse): Unconditionally delegate.
7713 * auxv.h (default_auxv_parse): Declare.
7714 * target-delegates.c: Rebuild.
7715 * target.c: Include auxv.h.
7716 * target.h (struct target_ops) <to_auxv_parse>: Use
7717 TARGET_DEFAULT_FUNC.
7718
6b2c5a57
TT
77192014-02-19 Tom Tromey <tromey@redhat.com>
7720
7721 * target-delegates.c: Rebuild.
7722 * target.c (target_memory_map): Unconditionally delegate.
7723 * target.h (struct target_ops) <to_memory_map>: Use
7724 TARGET_DEFAULT_RETURN.
7725
cbffc065
TT
77262014-02-19 Tom Tromey <tromey@redhat.com>
7727
7728 * target-delegates.c: Rebuild.
7729 * target.c (target_thread_alive): Unconditionally delegate.
7730 * target.h (struct target_ops) <to_thread_alive>: Use
7731 TARGET_DEFAULT_RETURN.
7732
f09e2107
TT
77332014-02-19 Tom Tromey <tromey@redhat.com>
7734
7735 * target-delegates.c: Rebuild.
7736 * target.c (target_save_record): Unconditionally delegate.
7737 * target.h (struct target_ops) <to_save_record>: Use
7738 TARGET_DEFAULT_NORETURN.
7739
07366925
TT
77402014-02-19 Tom Tromey <tromey@redhat.com>
7741
7742 * target-delegates.c: Rebuild.
7743 * target.c (target_delete_record): Unconditionally delegate.
7744 * target.h (struct target_ops) <to_delete_record>: Use
7745 TARGET_DEFAULT_NORETURN.
7746
dd2e9d25
TT
77472014-02-19 Tom Tromey <tromey@redhat.com>
7748
7749 * target-delegates.c: Rebuild.
7750 * target.c (target_record_is_replaying): Unconditionally
7751 delegate.
7752 * target.h (struct target_ops) <to_record_is_replaying>: Use
7753 TARGET_DEFAULT_RETURN.
7754
671e76cc
TT
77552014-02-19 Tom Tromey <tromey@redhat.com>
7756
7757 * target-delegates.c: Rebuild.
7758 * target.c (target_goto_record_begin): Unconditionally delegate.
7759 * target.h (struct target_ops) <to_goto_record_begin>: Use
7760 TARGET_DEFAULT_NORETURN.
7761
e9179bb3
TT
77622014-02-19 Tom Tromey <tromey@redhat.com>
7763
7764 * target-delegates.c: Rebuild.
7765 * target.c (target_goto_record_end): Unconditionally delegate.
7766 * target.h (struct target_ops) <to_goto_record_end>: Use
7767 TARGET_DEFAULT_NORETURN.
7768
05969c84
TT
77692014-02-19 Tom Tromey <tromey@redhat.com>
7770
7771 * target-delegates.c: Rebuild.
7772 * target.c (target_goto_record): Unconditionally delegate.
7773 * target.h (struct target_ops) <to_goto_record>: Use
7774 TARGET_DEFAULT_NORETURN.
7775
3679abfa
TT
77762014-02-19 Tom Tromey <tromey@redhat.com>
7777
7778 * target-delegates.c: Rebuild.
7779 * target.c (target_insn_history): Unconditionally delegate.
7780 * target.h (struct target_ops) <to_insn_history>: Use
7781 TARGET_DEFAULT_NORETURN.
7782
8444ab58
TT
77832014-02-19 Tom Tromey <tromey@redhat.com>
7784
7785 * target-delegates.c: Rebuild.
7786 * target.c (target_insn_history_from): Unconditionally delegate.
7787 * target.h (struct target_ops) <to_insn_history_from>: Use
7788 TARGET_DEFAULT_NORETURN.
7789
c29302cc
TT
77902014-02-19 Tom Tromey <tromey@redhat.com>
7791
7792 * target-delegates.c: Rebuild.
7793 * target.c (target_insn_history_range): Unconditionally delegate.
7794 * target.h (struct target_ops) <to_insn_history_range>: Use
7795 TARGET_DEFAULT_NORETURN.
7796
170049d4
TT
77972014-02-19 Tom Tromey <tromey@redhat.com>
7798
7799 * target-delegates.c: Rebuild.
7800 * target.c (target_call_history): Unconditionally delegate.
7801 * target.h (struct target_ops) <to_call_history>: Use
7802 TARGET_DEFAULT_NORETURN.
7803
16fc27d6
TT
78042014-02-19 Tom Tromey <tromey@redhat.com>
7805
7806 * target-delegates.c: Rebuild.
7807 * target.c (target_call_history_from): Unconditionally delegate.
7808 * target.h (struct target_ops) <to_call_history_from>: Use
7809 TARGET_DEFAULT_NORETURN.
7810
115d9817
TT
78112014-02-19 Tom Tromey <tromey@redhat.com>
7812
7813 * target-delegates.c: Rebuild.
7814 * target.c (target_call_history_range): Unconditionally delegate.
7815 * target.h (struct target_ops) <to_call_history_range>: Use
7816 TARGET_DEFAULT_NORETURN.
7817
eb276a6b
TT
78182014-02-19 Tom Tromey <tromey@redhat.com>
7819
7820 * target-delegates.c: Rebuild.
7821 * target.c (target_verify_memory): Unconditionally delegate.
7822 * target.h (struct target_ops) <to_verify_memory>: Use
7823 TARGET_DEFAULT_NORETURN.
7824
9e538d0d
TT
78252014-02-19 Tom Tromey <tromey@redhat.com>
7826
7827 * target-delegates.c: Rebuild.
7828 * target.c (target_core_of_thread): Unconditionally delegate.
7829 * target.h (struct target_ops) <to_core_of_thread>: Use
7830 TARGET_DEFAULT_RETURN.
7831
f6fb2925
TT
78322014-02-19 Tom Tromey <tromey@redhat.com>
7833
7834 * target-delegates.c: Rebuild.
7835 * target.c (target_flash_done): Unconditionally delegate.
7836 * target.h (struct target_ops) <to_flash_done>: Use
7837 TARGET_DEFAULT_NORETURN.
7838
e8a6c6ac
TT
78392014-02-19 Tom Tromey <tromey@redhat.com>
7840
7841 * target-delegates.c: Rebuild.
7842 * target.c (target_flash_erase): Unconditionally delegate.
7843 * target.h (struct target_ops) <to_flash_erase>: Use
7844 TARGET_DEFAULT_NORETURN.
7845
7e35c012
TT
78462014-02-19 Tom Tromey <tromey@redhat.com>
7847
7848 * target-delegates.c: Rebuild.
7849 * target.c (target_get_section_table): Unconditionally delegate.
7850 * target.h (struct target_ops) <to_get_section_table>: Use
7851 TARGET_DEFAULT_RETURN.
7852
770234d3
TT
78532014-02-19 Tom Tromey <tromey@redhat.com>
7854
7855 * target-delegates.c: Rebuild.
7856 * target.c (target_pid_to_str): Unconditionally delegate.
7857 (init_dummy_target): Don't initialize to_pid_to_str.
7858 (default_pid_to_str): Rename from dummy_pid_to_str.
7859 * target.h (struct target_ops) <to_pid_to_str>: Use
7860 TARGET_DEFAULT_FUNC.
7861
09b0dc2b
TT
78622014-02-19 Tom Tromey <tromey@redhat.com>
7863
7864 * target-delegates.c: Rebuild.
7865 * target.c (target_find_new_threads): Unconditionally delegate.
7866 * target.h (struct target_ops) <to_find_new_threads>: Use
7867 TARGET_DEFAULT_RETURN.
7868
7d4f8efa
TT
78692014-02-19 Tom Tromey <tromey@redhat.com>
7870
7871 * target-delegates.c: Rebuild.
7872 * target.c (target_program_signals): Unconditionally delegate.
7873 * target.h (struct target_ops) <to_program_signals>: Use
7874 TARGET_DEFAULT_IGNORE.
7875
035cad7f
TT
78762014-02-19 Tom Tromey <tromey@redhat.com>
7877
7878 * target-delegates.c: Rebuild.
7879 * target.c (target_pass_signals): Unconditionally delegate.
7880 * target.h (struct target_ops) <to_pass_signals>: Use
7881 TARGET_DEFAULT_IGNORE.
7882
8d657035
TT
78832014-02-19 Tom Tromey <tromey@redhat.com>
7884
7885 * target-delegates.c: Rebuild.
7886 * target.c (default_mourn_inferior): New function.
7887 (target_mourn_inferior): Unconditionally delegate.
7888 * target.h (struct target_ops) <to_mourn_inferior>: Use
7889 TARGET_DEFAULT_FUNC.
7890
098dba18
TT
78912014-02-19 Tom Tromey <tromey@redhat.com>
7892
7893 * target-delegates.c: Rebuild.
7894 * target.c (default_follow_fork): New function.
7895 (target_follow_fork): Unconditionally delegate.
7896 * target.h (struct target_ops) <to_follow_fork>: Use
7897 TARGET_DEFAULT_FUNC.
7898
423a4807
TT
78992014-02-19 Tom Tromey <tromey@redhat.com>
7900
7901 * target-delegates.c: Rebuild.
7902 * target.c (target_kill): Unconditionally delegate.
7903 * target.h (struct target_ops) <to_kill>: Use
7904 TARGET_DEFAULT_NORETURN.
7905
6c7e5e5c
TT
79062014-02-19 Tom Tromey <tromey@redhat.com>
7907
7908 * target-delegates.c: Rebuild.
7909 * target.c (target_masked_watch_num_registers): Unconditionally
7910 delegate.
7911 * target.h (struct target_ops) <to_masked_watch_num_registers>:
7912 Use TARGET_DEFAULT_RETURN.
7913
8b1c364c
TT
79142014-02-19 Tom Tromey <tromey@redhat.com>
7915
7916 * target-delegates.c: Rebuild.
7917 * target.c (target_remove_mask_watchpoint): Unconditionally
7918 delegate.
7919 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
7920 TARGET_DEFAULT_RETURN.
7921
cd4ae029
TT
79222014-02-19 Tom Tromey <tromey@redhat.com>
7923
7924 * target-delegates.c: Rebuild.
7925 * target.c (target_insert_mask_watchpoint): Unconditionally
7926 delegate.
7927 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
7928 TARGET_DEFAULT_RETURN.
7929
a134316b
TT
79302014-02-19 Tom Tromey <tromey@redhat.com>
7931
7932 * target-delegates.c: Rebuild.
7933 * target.c (target_ranged_break_num_registers): Unconditionally
7934 delegate.
7935 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7936 Use TARGET_DEFAULT_RETURN.
7937
ad5989bd
TT
79382014-02-19 Tom Tromey <tromey@redhat.com>
7939
7940 * target-delegates.c: Rebuild.
7941 * target.c (target_fetch_registers): Unconditionally delegate.
7942 * target.h (struct target_ops) <to_fetch_registers>: Use
7943 TARGET_DEFAULT_NORETURN.
7944
46ee7e8d
TT
79452014-02-19 Tom Tromey <tromey@redhat.com>
7946
7947 * target-delegates.c: Rebuild.
7948 * target.c (update_current_target): Don't inherit or default
7949 to_stop.
7950 * target.h (struct target_ops) <to_stop>: Use
7951 TARGET_DEFAULT_IGNORE.
7952
843f59ed
TT
79532014-02-19 Tom Tromey <tromey@redhat.com>
7954
7955 * target-delegates.c: Rebuild.
7956 * target.c (update_current_target): Don't inherit or default
7957 to_can_run_breakpoint_commands.
7958 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7959 Use TARGET_DEFAULT_RETURN.
7960
ccfde2a0
TT
79612014-02-19 Tom Tromey <tromey@redhat.com>
7962
7963 * target-delegates.c: Rebuild.
7964 * target.c (update_current_target): Don't inherit or default
7965 to_supports_evaluation_of_breakpoint_conditions.
7966 * target.h (struct target_ops)
7967 <to_supports_evaluation_of_breakpoint_conditions>: Use
7968 TARGET_DEFAULT_RETURN.
7969
0de91722
TT
79702014-02-19 Tom Tromey <tromey@redhat.com>
7971
7972 * target-delegates.c: Rebuild.
7973 * target.c (update_current_target): Don't inherit or default
7974 to_augmented_libraries_svr4_read.
7975 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7976 Use TARGET_DEFAULT_RETURN.
7977
9a7d8b48
TT
79782014-02-19 Tom Tromey <tromey@redhat.com>
7979
7980 * target-delegates.c: Rebuild.
7981 * target.c (update_current_target): Don't inherit or default
7982 to_can_use_agent.
7983 * target.h (struct target_ops) <to_can_use_agent>: Use
7984 TARGET_DEFAULT_RETURN.
7985
d9db5b21
TT
79862014-02-19 Tom Tromey <tromey@redhat.com>
7987
7988 * target-delegates.c: Rebuild.
7989 * target.c (update_current_target): Don't inherit or default
7990 to_use_agent.
7991 * target.h (struct target_ops) <to_use_agent>: Use
7992 TARGET_DEFAULT_NORETURN.
7993
92155eeb
TT
79942014-02-19 Tom Tromey <tromey@redhat.com>
7995
7996 * target-delegates.c: Rebuild.
7997 * target.c (update_current_target): Don't inherit or default
7998 to_traceframe_info.
7999 (return_null): Remove.
8000 * target.h (struct target_ops) <to_traceframe_info>: Use
8001 TARGET_DEFAULT_RETURN.
8002
d6522a22
TT
80032014-02-19 Tom Tromey <tromey@redhat.com>
8004
8005 * target-delegates.c: Rebuild.
8006 * target.c (update_current_target): Don't inherit or default
8007 to_static_tracepoint_markers_by_strid.
8008 * target.h (struct target_ops)
8009 <to_static_tracepoint_markers_by_strid>: Use
8010 TARGET_DEFAULT_NORETURN.
8011
4c3e4425
TT
80122014-02-19 Tom Tromey <tromey@redhat.com>
8013
8014 * target-delegates.c: Rebuild.
8015 * target.c (update_current_target): Don't inherit or default
8016 to_static_tracepoint_marker_at.
8017 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8018 Use TARGET_DEFAULT_RETURN.
8019
dcd6917f
TT
80202014-02-19 Tom Tromey <tromey@redhat.com>
8021
8022 * target-delegates.c: Rebuild.
8023 * target.c (update_current_target): Don't inherit or default
8024 to_set_permissions.
8025 * target.h (struct target_ops) <to_set_permissions>: Use
8026 TARGET_DEFAULT_IGNORE.
8027
22bcceee
TT
80282014-02-19 Tom Tromey <tromey@redhat.com>
8029
8030 * target-delegates.c: Rebuild.
8031 * target.c (update_current_target): Don't inherit or default
8032 to_get_tib_address.
8033 * target.h (struct target_ops) <to_get_tib_address>: Use
8034 TARGET_DEFAULT_NORETURN.
8035
8586ccaa
TT
80362014-02-19 Tom Tromey <tromey@redhat.com>
8037
8038 * target-delegates.c: Rebuild.
8039 * target.c (update_current_target): Don't inherit or default
8040 to_set_trace_notes.
8041 * target.h (struct target_ops) <to_set_trace_notes>: Use
8042 TARGET_DEFAULT_RETURN.
8043
91df8d1d
TT
80442014-02-19 Tom Tromey <tromey@redhat.com>
8045
8046 * target-delegates.c: Rebuild.
8047 * target.c (update_current_target): Don't initialize
8048 to_set_trace_buffer_size.
8049 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
8050 TARGET_DEFAULT_IGNORE.
8051
8d526939
TT
80522014-02-19 Tom Tromey <tromey@redhat.com>
8053
8054 * target-delegates.c: Rebuild.
8055 * target.c (update_current_target): Don't inherit or default
8056 to_set_circular_trace_buffer.
8057 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
8058 TARGET_DEFAULT_IGNORE.
8059
0bcfeddf
TT
80602014-02-19 Tom Tromey <tromey@redhat.com>
8061
8062 * target-delegates.c: Rebuild.
8063 * target.c (update_current_target): Don't inherit or default
8064 to_set_disconnected_tracing.
8065 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
8066 TARGET_DEFAULT_IGNORE.
8067
9249843f
TT
80682014-02-19 Tom Tromey <tromey@redhat.com>
8069
8070 * target-delegates.c: Rebuild.
8071 * target.c (update_current_target): Don't inherit or default
8072 to_get_min_fast_tracepoint_insn_len.
8073 (return_minus_one): Remove.
8074 * target.h (struct target_ops)
8075 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
8076
ace92e7d
TT
80772014-02-19 Tom Tromey <tromey@redhat.com>
8078
8079 * target-delegates.c: Rebuild.
8080 * target.c (update_current_target): Don't inherit or default
8081 to_get_raw_trace_data.
8082 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
8083 TARGET_DEFAULT_NORETURN.
8084
08120467
TT
80852014-02-19 Tom Tromey <tromey@redhat.com>
8086
8087 * target-delegates.c: Rebuild.
8088 * target.c (update_current_target): Don't inherit or default
8089 to_upload_trace_state_variables.
8090 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8091 Use TARGET_DEFAULT_RETURN.
8092
1e949b00
TT
80932014-02-19 Tom Tromey <tromey@redhat.com>
8094
8095 * target-delegates.c: Rebuild.
8096 * target.c (update_current_target): Don't inherit or default
8097 to_upload_tracepoints.
8098 * target.h (struct target_ops) <to_upload_tracepoints>: Use
8099 TARGET_DEFAULT_RETURN.
8100
a2e6c147
TT
81012014-02-19 Tom Tromey <tromey@redhat.com>
8102
8103 * target-delegates.c: Rebuild.
8104 * target.c (update_current_target): Don't inherit or default
8105 to_save_trace_data.
8106 * target.h (struct target_ops) <to_save_trace_data>: Use
8107 TARGET_DEFAULT_NORETURN.
8108
959bcd0b
TT
81092014-02-19 Tom Tromey <tromey@redhat.com>
8110
8111 * target-delegates.c: Rebuild.
8112 * target.c (update_current_target): Don't inherit or default
8113 to_get_trace_state_variable_value.
8114 * target.h (struct target_ops)
8115 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
8116
afc94e66
TT
81172014-02-19 Tom Tromey <tromey@redhat.com>
8118
8119 * target-delegates.c: Rebuild.
8120 * target.c (update_current_target): Don't inherit or default
8121 to_trace_find.
8122 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
8123
e51c07ea
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_trace_stop.
8129 * target.h (struct target_ops) <to_trace_stop>: Use
8130 TARGET_DEFAULT_NORETURN.
8131
6fea14cd
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_get_tracepoint_status.
8137 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
8138 TARGET_DEFAULT_NORETURN.
8139
4072d4ff
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_get_trace_status.
8145 * target.h (struct target_ops) <to_get_trace_status>: Use
8146 TARGET_DEFAULT_RETURN.
8147
25da2e80
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_trace_start.
8153 * target.h (struct target_ops) <to_trace_start>: Use
8154 TARGET_DEFAULT_NORETURN.
8155
86dd181d
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_trace_set_readonly_regions.
8161 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8162 Use TARGET_DEFAULT_NORETURN.
8163
05c41993
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_disable_tracepoint.
8169 * target.h (struct target_ops) <to_disable_tracepoint>: Use
8170 TARGET_DEFAULT_NORETURN.
8171
151f70f1
TT
81722014-02-19 Tom Tromey <tromey@redhat.com>
8173
8174 * target-delegates.c: Rebuild.
8175 * target.c (update_current_target): Don't inherit or default
8176 to_enable_tracepoint.
8177 * target.h (struct target_ops) <to_enable_tracepoint>: Use
8178 TARGET_DEFAULT_NORETURN.
8179
94eb98b9
TT
81802014-02-19 Tom Tromey <tromey@redhat.com>
8181
8182 * target-delegates.c: Rebuild.
8183 * target.c (update_current_target): Don't inherit or default
8184 to_download_trace_state_variable.
8185 * target.h (struct target_ops) <to_download_trace_state_variable>:
8186 Use TARGET_DEFAULT_NORETURN.
8187
719acc4a
TT
81882014-02-19 Tom Tromey <tromey@redhat.com>
8189
8190 * target-delegates.c: Rebuild.
8191 * target.c (update_current_target): Don't inherit or default
8192 to_can_download_tracepoint.
8193 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
8194 TARGET_DEFAULT_RETURN.
8195
9a980a22
TT
81962014-02-19 Tom Tromey <tromey@redhat.com>
8197
8198 * target-delegates.c: Rebuild.
8199 * target.c (update_current_target): Don't inherit or default
8200 to_download_tracepoint.
8201 * target.h (struct target_ops) <to_download_tracepoint>: Use
8202 TARGET_DEFAULT_NORETURN.
8203
5536135b
TT
82042014-02-19 Tom Tromey <tromey@redhat.com>
8205
8206 * target-delegates.c: Rebuild.
8207 * target.c (update_current_target): Don't inherit or default
8208 to_trace_init.
8209 * target.h (struct target_ops) <to_trace_init>: Use
8210 TARGET_DEFAULT_RETURN.
8211
9409d39e
TT
82122014-02-19 Tom Tromey <tromey@redhat.com>
8213
8214 * target-delegates.c: Rebuild.
8215 * target.c (update_current_target): Don't inherit or default
8216 to_supports_string_tracing.
8217 * target.h (struct target_ops) <to_supports_string_tracing>: Use
8218 TARGET_DEFAULT_RETURN.
8219
aab1b22d
TT
82202014-02-19 Tom Tromey <tromey@redhat.com>
8221
8222 * target-delegates.c: Rebuild.
8223 * target.c (update_current_target): Don't inherit or default
8224 to_supports_enable_disable_tracepoint.
8225 * target.h (struct target_ops)
8226 <to_supports_enable_disable_tracepoint>: Use
8227 TARGET_DEFAULT_RETURN.
8228
a7304748
TT
82292014-02-19 Tom Tromey <tromey@redhat.com>
8230
8231 * target-delegates.c: Rebuild.
8232 * target.c (update_current_target): Don't inherit or default
8233 to_supports_multi_process.
8234 * target.h (struct target_ops) <to_supports_multi_process>: Use
8235 TARGET_DEFAULT_RETURN.
8236
4229b31d
TT
82372014-02-19 Tom Tromey <tromey@redhat.com>
8238
8239 * target-delegates.c: Rebuild.
8240 * target.c (update_current_target): Don't inherit or default
8241 to_get_ada_task_ptid.
8242 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
8243 TARGET_DEFAULT_FUNC.
8244
43eba180
TT
82452014-02-19 Tom Tromey <tromey@redhat.com>
8246
8247 * target-delegates.c: Rebuild.
8248 * target.c (update_current_target): Don't inherit or default
8249 to_thread_architecture.
8250 * target.h (struct target_ops) <to_thread_architecture>: Use
8251 TARGET_DEFAULT_FUNC.
8252
fe31bf5b
TT
82532014-02-19 Tom Tromey <tromey@redhat.com>
8254
8255 * target-delegates.c: Rebuild.
8256 * target.c (update_current_target): Don't inherit or default
8257 to_execution_direction.
8258 * target.h (struct target_ops) <to_execution_direction>: Use
8259 TARGET_DEFAULT_FUNC.
8260
53e1cfc7
TT
82612014-02-19 Tom Tromey <tromey@redhat.com>
8262
8263 * target-delegates.c: Rebuild.
8264 * target.c (update_current_target): Don't inherit or default
8265 to_can_execute_reverse.
8266 * target.h (struct target_ops) <to_can_execute_reverse>: Use
8267 TARGET_DEFAULT_RETURN.
8268 (target_can_execute_reverse): Unconditionally delegate.
8269
9bb9d61d
TT
82702014-02-19 Tom Tromey <tromey@redhat.com>
8271
8272 * target-delegates.c: Rebuild.
8273 * target.c (update_current_target): Don't inherit or default
8274 to_goto_bookmark.
8275 (dummy_goto_bookmark): Remove.
8276 (init_dummy_target): Don't inherit or default to_goto_bookmark.
8277 * target.h (struct target_ops) <to_goto_bookmark>: Use
8278 TARGET_DEFAULT_NORETURN.
8279
3dbafbbb
TT
82802014-02-19 Tom Tromey <tromey@redhat.com>
8281
8282 * target-delegates.c: Rebuild.
8283 * target.c (update_current_target): Don't inherit or default
8284 to_get_bookmark.
8285 (dummy_get_bookmark): Remove.
8286 (init_dummy_target): Don't inherit or default to_get_bookmark.
8287 * target.h (struct target_ops) <to_get_bookmark>: Use
8288 TARGET_DEFAULT_NORETURN
8289
16f796b1
TT
82902014-02-19 Tom Tromey <tromey@redhat.com>
8291
8292 * target-delegates.c: Rebuild.
8293 * target.c (update_current_target): Don't inherit or default
8294 to_make_corefile_notes.
8295 (init_dummy_target): Don't initialize to_make_corefile_notes.
8296 * target.h (struct target_ops) <to_make_corefile_notes>: Use
8297 TARGET_DEFAULT_FUNC.
8298
0b5a2719
TT
82992014-02-19 Tom Tromey <tromey@redhat.com>
8300
8301 * target-delegates.c: Rebuild.
8302 * target.c (update_current_target): Don't inherit or default
8303 to_find_memory_regions.
8304 (init_dummy_target): Don't initialize to_find_memory_regions.
8305 * target.h (struct target_ops) <to_find_memory_regions>: Use
8306 TARGET_DEFAULT_FUNC.
8307
d9cb0195
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_log_command.
8313 * target.h (struct target_ops) <to_log_command>: Use
8314 TARGET_DEFAULT_IGNORE.
8315 (target_log_command): Unconditionally delegate.
8316
830ca330
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_pid_to_exec_file.
8322 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
8323 TARGET_DEFAULT_RETURN.
8324
825828fc
TT
83252014-02-19 Tom Tromey <tromey@redhat.com>
8326
8327 * target-delegates.c: Rebuild.
8328 * target.c (update_current_target): Don't inherit or default
8329 to_thread_name.
8330 (target_thread_name): Unconditionally delegate.
8331 * target.h (struct target_ops) <to_thread_name>: Use
8332 TARGET_DEFAULT_RETURN.
8333
4a7e6dda
TT
83342014-02-19 Tom Tromey <tromey@redhat.com>
8335
8336 * target-delegates.c: Rebuild.
8337 * target.c (update_current_target): Don't inherit or default
8338 to_extra_thread_info.
8339 * target.h (struct target_ops) <to_extra_thread_info>: Use
8340 TARGET_DEFAULT_RETURN.
8341
0db88c1d
TT
83422014-02-19 Tom Tromey <tromey@redhat.com>
8343
8344 * target-delegates.c: Rebuild.
8345 * target.c (update_current_target): Don't inherit or default
8346 to_has_exited.
8347 * target.h (struct target_ops) <to_has_exited>: Use
8348 TARGET_DEFAULT_RETURN..
8349
6a9fa051
TT
83502014-02-19 Tom Tromey <tromey@redhat.com>
8351
8352 * target-delegates.c: Rebuild.
8353 * target.c (update_current_target): Don't inherit or default
8354 to_set_syscall_catchpoint.
8355 (return_one): Remove.
8356 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
8357 TARGET_DEFAULT_RETURN.
8358
62f64d7a
TT
83592014-02-19 Tom Tromey <tromey@redhat.com>
8360
8361 * target-delegates.c: Rebuild.
8362 * target.c (update_current_target): Don't inherit or default
8363 to_insert_exec_catchpoint.
8364 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8365 TARGET_DEFAULT_RETURN.
8366
cda0f38c
TT
83672014-01-08 Tom Tromey <tromey@redhat.com>
8368
8369 * target-delegates.c: Rebuild.
8370 * target.c (update_current_target): Don't inherit or default
8371 to_insert_exec_catchpoint.
8372 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
8373 TARGET_DEFAULT_RETURN.
8374
95c3375e
TT
83752014-02-19 Tom Tromey <tromey@redhat.com>
8376
8377 * target-delegates.c: Rebuild.
8378 * target.c (update_current_target): Don't inherit or default
8379 to_remove_vfork_catchpoint.
8380 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
8381 TARGET_DEFAULT_RETURN.
8382
7e18a8dc
TT
83832014-02-19 Tom Tromey <tromey@redhat.com>
8384
8385 * target-delegates.c: Rebuild.
8386 * target.c (update_current_target): Don't inherit or default
8387 to_insert_vfork_catchpoint.
8388 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
8389 TARGET_DEFAULT_RETURN.
8390
e1a21fb7
TT
83912014-02-19 Tom Tromey <tromey@redhat.com>
8392
8393 * target-delegates.c: Rebuild.
8394 * target.c (update_current_target): Don't inherit or default
8395 to_remove_fork_catchpoint.
8396 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
8397 TARGET_DEFAULT_RETURN.
8398
5958ebeb
TT
83992014-02-19 Tom Tromey <tromey@redhat.com>
8400
8401 * target-delegates.c: Rebuild.
8402 * target.c (update_current_target): Don't inherit or default
8403 to_insert_fork_catchpoint.
8404 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
8405 TARGET_DEFAULT_RETURN.
8406
340ba4bf
TT
84072014-02-19 Tom Tromey <tromey@redhat.com>
8408
8409 * target-delegates.c: Rebuild.
8410 * target.c (update_current_target): Don't inherit or default
8411 to_post_startup_inferior.
8412 * target.h (struct target_ops) <to_post_startup_inferior>: Use
8413 TARGET_DEFAULT_IGNORE.
8414
7634da87
TT
84152014-02-19 Tom Tromey <tromey@redhat.com>
8416
8417 * target-delegates.c: Rebuild.
8418 * target.c (update_current_target): Don't inherit or default
8419 to_load.
8420 * target.h (struct target_ops) <to_load>: Use
8421 TARGET_DEFAULT_NORETURN.
8422
e19e919f
TT
84232014-02-19 Tom Tromey <tromey@redhat.com>
8424
8425 * target-delegates.c: Rebuild.
8426 * target.c (update_current_target): Don't inherit or default
8427 to_terminal_info.
8428 * target.h (struct target_ops) <to_terminal_info>: Use
8429 TARGET_DEFAULT_FUNC.
8430
c6ea8f79
TT
84312014-02-19 Tom Tromey <tromey@redhat.com>
8432
8433 * target-delegates.c: Rebuild.
8434 * target.c (update_current_target): Don't inherit or default
8435 to_terminal_save_ours.
8436 * target.h (struct target_ops) <to_terminal_save_ours>: Use
8437 TARGET_DEFAULT_IGNORE.
8438
e4a733f1
TT
84392014-02-19 Tom Tromey <tromey@redhat.com>
8440
8441 * target-delegates.c: Rebuild.
8442 * target.c (update_current_target): Don't inherit or default
8443 to_terminal_ours.
8444 * target.h (struct target_ops) <to_terminal_ours>: Use
8445 TARGET_DEFAULT_IGNORE.
8446
74fcbef9
TT
84472014-02-19 Tom Tromey <tromey@redhat.com>
8448
8449 * target-delegates.c: Rebuild.
8450 * target.c (update_current_target): Don't inherit or default
8451 to_terminal_ours_for_output.
8452 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
8453 TARGET_DEFAULT_IGNORE.
8454
ddeaacc9
TT
84552014-02-19 Tom Tromey <tromey@redhat.com>
8456
8457 * target-delegates.c: Rebuild.
8458 * target.c (update_current_target): Don't inherit or default
8459 to_terminal_inferior.
8460 * target.h (struct target_ops) <to_terminal_inferior>: Use
8461 TARGET_DEFAULT_IGNORE.
8462
0343661d
TT
84632014-02-19 Tom Tromey <tromey@redhat.com>
8464
8465 * target-delegates.c: Rebuild.
8466 * target.c (update_current_target): Don't inherit or default
8467 to_terminal_init.
8468 * target.h (struct target_ops) <to_terminal_init>: Use
8469 TARGET_DEFAULT_IGNORE.
8470
77cdffe9
TT
84712014-02-19 Tom Tromey <tromey@redhat.com>
8472
8473 * target-delegates.c: Rebuild.
8474 * target.c (update_current_target): Don't inherit or default
8475 to_can_accel_watchpoint_condition.
8476 * target.h (struct target_ops)
8477 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
8478
d03655e4
TT
84792014-02-19 Tom Tromey <tromey@redhat.com>
8480
8481 * target-delegates.c: Rebuild.
8482 * target.c (update_current_target): Don't inherit or default
8483 to_region_ok_for_hw_watchpoint.
8484 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8485 Use TARGET_DEFAULT_FUNC.
8486
65f160a9
TT
84872014-02-19 Tom Tromey <tromey@redhat.com>
8488
8489 * target-delegates.c: Rebuild.
8490 * target.c (update_current_target): Don't inherit or default
8491 to_watchpoint_addr_within_range.
8492 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
8493 Use TARGET_DEFAULT_FUNC.
8494
61dd109f
TT
84952014-02-19 Tom Tromey <tromey@redhat.com>
8496
8497 * target-delegates.c: Rebuild.
8498 * target.c (update_current_target): Don't inherit or default
8499 to_remove_watchpoint.
8500 * target.h (struct target_ops) <to_remove_watchpoint>: Use
8501 TARGET_DEFAULT_NORETURN.
8502
016facd4
TT
85032014-02-19 Tom Tromey <tromey@redhat.com>
8504
8505 * target-delegates.c: Rebuild.
8506 * target.c (update_current_target): Don't inherit or default
8507 to_insert_watchpoint.
8508 * target.h (struct target_ops) <to_insert_watchpoint>: Use
8509 TARGET_DEFAULT_RETURN.
8510
418dabac
TT
85112014-02-19 Tom Tromey <tromey@redhat.com>
8512
8513 * target-delegates.c: Rebuild.
8514 * target.c (update_current_target): Don't inherit or default
8515 to_remove_hw_breakpoint.
8516 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
8517 TARGET_DEFAULT_RETURN.
8518
61b371f9
TT
85192014-02-19 Tom Tromey <tromey@redhat.com>
8520
8521 * target-delegates.c: Rebuild.
8522 * target.c (update_current_target): Don't inherit or default
8523 to_insert_hw_breakpoint.
8524 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
8525 TARGET_DEFAULT_RETURN.
8526
52b51d06
TT
85272014-02-19 Tom Tromey <tromey@redhat.com>
8528
8529 * target-delegates.c: Rebuild.
8530 * target.c (update_current_target): Don't inherit or default
8531 to_can_use_hw_breakpoint.
8532 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
8533 TARGET_DEFAULT_RETURN.
8534
f86e59b2
TT
85352014-02-19 Tom Tromey <tromey@redhat.com>
8536
8537 * target-delegates.c: Rebuild.
8538 * target.c (update_current_target): Don't inherit or default
8539 to_files_info.
8540 * target.h (struct target_ops) <to_files_info>: Use
8541 TARGET_DEFAULT_IGNORE.
8542
6c628163
TT
85432014-02-19 Tom Tromey <tromey@redhat.com>
8544
8545 * target-delegates.c: Rebuild.
8546 * target.c (update_current_target): Don't inherit or default
8547 to_store.
8548 * target.h (struct target_ops) <to_store>: Use
8549 TARGET_DEFAULT_NORETURN.
8550
bebd3233
TT
85512014-02-19 Tom Tromey <tromey@redhat.com>
8552
8553 * target-delegates.c: Rebuild.
8554 * target.c (update_current_target): Don't inherit or default
8555 to_post_attach.
8556 * target.h (struct target_ops) <to_post_attach>: Use
8557 TARGET_DEFAULT_IGNORE.
8558
a53f3625
TT
85592014-02-19 Tom Tromey <tromey@redhat.com>
8560
8561 * target-delegates.c: Rebuild.
8562 * target.c (update_current_target): Don't inherit or default
8563 to_rcmd.
8564 (default_rcmd): New function.
8565 (do_monitor_command): Unconditionally delegate.
8566 * target.h (struct target_ops) <to_rmcd>: Use
8567 TARGET_DEFAULT_FUNC.
8568
e9a29200
TT
85692014-02-19 Tom Tromey <tromey@redhat.com>
8570
8571 * target-delegates.c: Rebuild.
8572 * target.c (init_dummy_target): Don't initialize to_attach.
8573 (target_attach): Unconditionally delegate.
8574 * target.h (struct target_ops) <to_attach>: Use
8575 TARGET_DEFAULT_FUNC.
8576
09da0d0a
TT
85772014-02-19 Tom Tromey <tromey@redhat.com>
8578
8579 * target-delegates.c: Rebuild.
8580 * target.c (target_detach): Unconditionally delegate.
8581 (init_dummy_target): Don't initialize to_detach.
8582 * target.h (struct target_ops) <to_detach>: Use
8583 TARGET_DEFAULT_IGNORE.
8584
5436ff03
TT
85852014-02-19 Tom Tromey <tromey@redhat.com>
8586
8587 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
8588 Add argument.
8589 (target_augmented_libraries_svr4_read): Add argument.
8590 * target.c (update_current_target): Update.
8591 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
8592 argument.
8593
f0d960ea
TT
85942014-02-19 Tom Tromey <tromey@redhat.com>
8595
8596 * target.h (struct target_ops) <to_call_history_range>: Add
8597 argument.
8598 * target.c (target_call_history_range): Add argument.
8599 * record-btrace.c (record_btrace_call_history_range): Add 'self'
8600 argument.
8601 (record_btrace_call_history_from): Update.
8602
ec0aea04
TT
86032014-02-19 Tom Tromey <tromey@redhat.com>
8604
8605 * target.h (struct target_ops) <to_call_history_from>: Add
8606 argument.
8607 * target.c (target_call_history_from): Add argument.
8608 * record-btrace.c (record_btrace_call_history_from): Add 'self'
8609 argument.
8610
5df2fcba
TT
86112014-02-19 Tom Tromey <tromey@redhat.com>
8612
8613 * target.h (struct target_ops) <to_call_history>: Add argument.
8614 * target.c (target_call_history): Add argument.
8615 * record-btrace.c (record_btrace_call_history): Add 'self'
8616 argument.
8617
4e99c6b7
TT
86182014-02-19 Tom Tromey <tromey@redhat.com>
8619
8620 * target.h (struct target_ops) <to_insn_history_range>: Add
8621 argument.
8622 * target.c (target_insn_history_range): Add argument.
8623 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
8624 argument.
8625 (record_btrace_insn_history_from): Update.
8626
9abc3ff3
TT
86272014-02-19 Tom Tromey <tromey@redhat.com>
8628
8629 * target.h (struct target_ops) <to_insn_history_from>: Add
8630 argument.
8631 * target.c (target_insn_history_from): Add argument.
8632 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
8633 argument.
8634
7a6c5609
TT
86352014-02-19 Tom Tromey <tromey@redhat.com>
8636
8637 * target.h (struct target_ops) <to_insn_history>: Add argument.
8638 * target.c (target_insn_history): Add argument.
8639 * record-btrace.c (record_btrace_insn_history): Add 'self'
8640 argument.
8641
606183ac
TT
86422014-02-19 Tom Tromey <tromey@redhat.com>
8643
8644 * target.h (struct target_ops) <to_goto_record>: Add argument.
8645 * target.c (target_goto_record): Add argument.
8646 * record-full.c (record_full_goto): Add 'self' argument.
8647 * record-btrace.c (record_btrace_goto): Add 'self' argument.
8648
307a1b91
TT
86492014-02-19 Tom Tromey <tromey@redhat.com>
8650
8651 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
8652 * target.c (target_goto_record_end): Add argument.
8653 * record-full.c (record_full_goto_end): Add 'self' argument.
8654 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
8655
08475817
TT
86562014-02-19 Tom Tromey <tromey@redhat.com>
8657
8658 * target.h (struct target_ops) <to_goto_record_begin>: Add
8659 argument.
8660 * target.c (target_goto_record_begin): Add argument.
8661 * record-full.c (record_full_goto_begin): Add 'self' argument.
8662 * record-btrace.c (record_btrace_goto_begin): Add 'self'
8663 argument.
8664
1c63c994
TT
86652014-02-19 Tom Tromey <tromey@redhat.com>
8666
8667 * target.h (struct target_ops) <to_record_is_replaying>: Add
8668 argument.
8669 * target.c (target_record_is_replaying): Add argument.
8670 * record-full.c (record_full_is_replaying): Add 'self' argument.
8671 * record-btrace.c (record_btrace_is_replaying): Add 'self'
8672 argument.
8673 (record_btrace_xfer_partial, record_btrace_store_registers)
8674 (record_btrace_prepare_to_store, record_btrace_resume)
8675 (record_btrace_wait, record_btrace_decr_pc_after_break)
8676 (record_btrace_find_new_threads, record_btrace_thread_alive):
8677 Update.
8678
d1b55219
TT
86792014-02-19 Tom Tromey <tromey@redhat.com>
8680
8681 * target.h (struct target_ops) <to_delete_record>: Add argument.
8682 * target.c (target_delete_record): Add argument.
8683 * record-full.c (record_full_delete): Add 'self' argument.
8684
1390f529
TT
86852014-02-19 Tom Tromey <tromey@redhat.com>
8686
8687 * target.h (struct target_ops) <to_save_record>: Add argument.
8688 * target.c (target_save_record): Add argument.
8689 * record-full.c (record_full_save): Add 'self' argument.
8690 (record_full_save): Add 'self' argument.
8691
630d6a4a
TT
86922014-02-19 Tom Tromey <tromey@redhat.com>
8693
8694 * target.h (struct target_ops) <to_info_record>: Add argument.
8695 * target.c (target_info_record): Add argument.
8696 * record.c (info_record_command): Add argument.
8697 * record-full.c (record_full_info): Add 'self' argument.
8698 * record-btrace.c (record_btrace_info): Add 'self' argument.
8699
c6cd7c02
TT
87002014-02-19 Tom Tromey <tromey@redhat.com>
8701
8702 * target.h (struct target_ops) <to_stop_recording>: Add argument.
8703 * target.c (target_stop_recording): Add argument.
8704 * record.c (record_stop): Add argument.
8705 * record-btrace.c (record_btrace_stop_recording): Add 'self'
8706 argument.
8707
39c49f83
TT
87082014-02-19 Tom Tromey <tromey@redhat.com>
8709
8710 * target.h (struct target_ops) <to_read_btrace>: Add argument.
8711 * target.c (struct target_ops) <to_read_btrace>: Add argument.
8712 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
8713 argument.
8714 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
8715 (_initialize_amd64_linux_nat): Use it.
8716 * i386-linux-nat.c (i386_linux_read_btrace): New function.
8717 (_initialize_i386_linux_nat): Use it.
8718
1777056d
TT
87192014-02-19 Tom Tromey <tromey@redhat.com>
8720
8721 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
8722 * target.c (target_teardown_btrace): Add argument.
8723 * remote.c (remote_teardown_btrace): Add 'self' argument.
8724 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
8725 argument.
8726 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
8727 argument.
8728
25e95349
TT
87292014-02-19 Tom Tromey <tromey@redhat.com>
8730
8731 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
8732 * target.c (target_disable_btrace): Add argument.
8733 * remote.c (remote_disable_btrace): Add 'self' argument.
8734 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
8735 argument.
8736 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
8737 argument.
8738
e3c49f88
TT
87392014-02-19 Tom Tromey <tromey@redhat.com>
8740
8741 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
8742 * target.c (target_enable_btrace): Add argument.
8743 * remote.c (remote_enable_btrace): Add 'self' argument.
8744 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
8745 argument.
8746 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
8747 argument.
8748
fe38f897
TT
87492014-02-19 Tom Tromey <tromey@redhat.com>
8750
8751 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
8752 (target_can_use_agent): Add argument.
8753 * target.c (update_current_target): Update.
8754 * remote.c (remote_can_use_agent): Add 'self' argument.
8755 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
8756
2c152180
TT
87572014-02-19 Tom Tromey <tromey@redhat.com>
8758
8759 * target.h (struct target_ops) <to_use_agent>: Add argument.
8760 (target_use_agent): Add argument.
8761 * target.c (update_current_target): Update.
8762 * remote.c (remote_use_agent): Add 'self' argument.
8763 * inf-child.c (inf_child_use_agent): Add 'self' argument.
8764
a893e81f
TT
87652014-02-19 Tom Tromey <tromey@redhat.com>
8766
8767 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
8768 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
8769 (target_traceframe_info): Add argument.
8770 * target.c (update_current_target): Update.
8771 * remote.c (remote_traceframe_info): Add 'self' argument.
8772 * ctf.c (ctf_traceframe_info): Add 'self' argument.
8773
c686c57f
TT
87742014-02-19 Tom Tromey <tromey@redhat.com>
8775
8776 * target.h (target_static_tracepoint_markers_by_strid): Add
8777 argument.
8778 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
8779 'self' argument.
8780 * target.c (update_current_target): Update.
8781 * remote.c (struct target_ops)
8782 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8783 * linux-nat.c (struct target_ops)
8784 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
8785
61fc905d
TT
87862014-02-19 Tom Tromey <tromey@redhat.com>
8787
8788 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
8789 Add argument.
8790 (target_static_tracepoint_marker_at): Add argument.
8791 * target.c (update_current_target): Update.
8792 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
8793 argument.
8794
c378d69d
TT
87952014-02-19 Tom Tromey <tromey@redhat.com>
8796
8797 * target.h (struct target_ops) <to_set_permissions>: Add argument.
8798 (target_set_permissions): Add argument.
8799 * target.c (update_current_target): Update.
8800 * remote.c (remote_set_permissions): Add 'self' argument.
8801 (remote_start_remote): Update.
8802
bd7ae0f5
TT
88032014-02-19 Tom Tromey <tromey@redhat.com>
8804
8805 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
8806 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
8807 (target_get_tib_address): Add argument.
8808 * target.c (update_current_target): Update.
8809 * remote.c (remote_get_tib_address): Add 'self' argument.
8810
d9e68a2c
TT
88112014-02-19 Tom Tromey <tromey@redhat.com>
8812
8813 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
8814 (target_set_trace_notes): Add argument.
8815 * target.c (update_current_target): Update.
8816 * remote.c (remote_set_trace_notes): Add 'self' argument.
8817
4da384be
TT
88182014-02-19 Tom Tromey <tromey@redhat.com>
8819
8820 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
8821 argument.
8822 (target_set_trace_buffer_size): Add argument.
8823 * target.c (update_current_target): Update.
8824 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
8825
736d5b1f
TT
88262014-02-19 Tom Tromey <tromey@redhat.com>
8827
8828 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
8829 argument.
8830 (target_set_circular_trace_buffer): Add argument.
8831 * target.c (update_current_target): Update.
8832 * remote.c (remote_set_circular_trace_buffer): Add 'self'
8833 argument.
8834
37b25738
TT
88352014-02-19 Tom Tromey <tromey@redhat.com>
8836
8837 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
8838 argument.
8839 (target_set_disconnected_tracing): Add argument.
8840 * target.c (update_current_target): Update.
8841 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
8842
0e67620a
TT
88432014-02-19 Tom Tromey <tromey@redhat.com>
8844
8845 * target.h (struct target_ops)
8846 <to_get_min_fast_tracepoint_insn_len>: Add argument.
8847 (target_get_min_fast_tracepoint_insn_len): Add argument.
8848 * target.c (update_current_target): Update.
8849 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
8850 argument.
8851
88ee6f45
TT
88522014-02-19 Tom Tromey <tromey@redhat.com>
8853
8854 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
8855 argument.
8856 (target_get_raw_trace_data): Add argument.
8857 * target.c (update_current_target): Update.
8858 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
8859
181e3713
TT
88602014-02-19 Tom Tromey <tromey@redhat.com>
8861
8862 * target.h (struct target_ops) <to_upload_trace_state_variables>:
8863 Add argument.
8864 (target_upload_trace_state_variables): Add argument.
8865 * target.c (update_current_target): Update.
8866 * remote.c (remote_upload_trace_state_variables): Add 'self'
8867 argument.
8868 (remote_start_remote): Update.
8869
ab6617cc
TT
88702014-02-19 Tom Tromey <tromey@redhat.com>
8871
8872 * target.h (struct target_ops) <to_upload_tracepoints>: Add
8873 argument.
8874 (target_upload_tracepoints): Add argument.
8875 * target.c (update_current_target): Update.
8876 * remote.c (remote_upload_tracepoints): Add 'self' argument.
8877 (remote_start_remote): Update.
8878
dc3decaf
TT
88792014-02-19 Tom Tromey <tromey@redhat.com>
8880
8881 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
8882 (target_save_trace_data): Add argument.
8883 * target.c (update_current_target): Update.
8884 * remote.c (remote_save_trace_data): Add 'self' argument.
8885
4011015b
TT
88862014-02-19 Tom Tromey <tromey@redhat.com>
8887
8888 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
8889 argument.
8890 * target.h (struct target_ops)
8891 <to_get_trace_state_variable_value>: Add argument.
8892 (target_get_trace_state_variable_value): Add argument.
8893 * target.c (update_current_target): Update.
8894 * remote.c (remote_get_trace_state_variable_value): Add 'self'
8895 argument.
8896 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
8897
bd4c6793
TT
88982014-02-19 Tom Tromey <tromey@redhat.com>
8899
8900 * tracepoint.c (tfile_trace_find): Add 'self' argument.
8901 * target.h (struct target_ops) <to_trace_find>: Add argument.
8902 (target_trace_find): Add argument.
8903 * target.c (update_current_target): Update.
8904 * remote.c (remote_trace_find): Add 'self' argument.
8905 * ctf.c (ctf_trace_find): Add 'self' argument.
8906
74499f1b
TT
89072014-02-19 Tom Tromey <tromey@redhat.com>
8908
8909 * target.h (struct target_ops) <to_trace_stop>: Add argument.
8910 (target_trace_stop): Add argument.
8911 * target.c (update_current_target): Update.
8912 * remote.c (remote_trace_stop): Add 'self' argument.
8913
db90e85c
TT
89142014-02-19 Tom Tromey <tromey@redhat.com>
8915
8916 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
8917 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
8918 argument.
8919 (target_get_tracepoint_status): Add argument.
8920 * target.c (update_current_target): Update.
8921 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
8922
8bd200f1
TT
89232014-02-19 Tom Tromey <tromey@redhat.com>
8924
8925 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
8926 * target.h (struct target_ops) <to_get_trace_status>: Add
8927 argument.
8928 (target_get_trace_status): Add argument.
8929 * target.c (update_current_target): Update.
8930 * remote.c (remote_get_trace_status): Add 'self' argument.
8931 (remote_start_remote, remote_can_download_tracepoint): Update.
8932 * ctf.c (ctf_get_trace_status): Add 'self' argument.
8933
e2d1aae3
TT
89342014-02-19 Tom Tromey <tromey@redhat.com>
8935
8936 * target.h (struct target_ops) <to_trace_start>: Add argument.
8937 (target_trace_start): Add argument.
8938 * target.c (update_current_target): Update.
8939 * remote.c (remote_trace_start): Add 'self' argument.
8940
583f9a86
TT
89412014-02-19 Tom Tromey <tromey@redhat.com>
8942
8943 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
8944 Add argument.
8945 (target_trace_set_readonly_regions): Add argument.
8946 * target.c (update_current_target): Update.
8947 * remote.c (remote_trace_set_readonly_regions): Add 'self'
8948 argument.
8949
780b049c
TT
89502014-02-19 Tom Tromey <tromey@redhat.com>
8951
8952 * target.h (struct target_ops) <to_disable_tracepoint>: Add
8953 argument.
8954 (target_disable_tracepoint): Add argument.
8955 * target.c (update_current_target): Update.
8956 * remote.c (remote_disable_tracepoint): Add 'self' argument.
8957
46670d57
TT
89582014-02-19 Tom Tromey <tromey@redhat.com>
8959
8960 * target.h (struct target_ops) <to_enable_tracepoint>: Add
8961 argument.
8962 (target_enable_tracepoint): Add argument.
8963 * target.c (update_current_target): Update.
8964 * remote.c (remote_enable_tracepoint): Add 'self' argument.
8965
559d2b81
TT
89662014-02-19 Tom Tromey <tromey@redhat.com>
8967
8968 * target.h (struct target_ops) <to_download_trace_state_variable>:
8969 Add argument.
8970 (target_download_trace_state_variable): Add argument.
8971 * target.c (update_current_target): Update.
8972 * remote.c (remote_download_trace_state_variable): Add 'self'
8973 argument.
8974
a52a8357
TT
89752014-02-19 Tom Tromey <tromey@redhat.com>
8976
8977 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
8978 argument.
8979 (target_can_download_tracepoint): Add argument.
8980 * target.c (update_current_target): Update.
8981 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
8982
548f7808
TT
89832014-02-19 Tom Tromey <tromey@redhat.com>
8984
8985 * target.h (struct target_ops) <to_download_tracepoint>: Add
8986 argument.
8987 (target_download_tracepoint): Add argument.
8988 * target.c (update_current_target): Update.
8989 * remote.c (remote_download_tracepoint): Add 'self' argument.
8990
ecae04e1
TT
89912014-02-19 Tom Tromey <tromey@redhat.com>
8992
8993 * target.h (struct target_ops) <to_trace_init>: Add argument.
8994 (target_trace_init): Add argument.
8995 * target.c (update_current_target): Update.
8996 * remote.c (remote_trace_init): Add 'self' argument.
8997
fab5aa7c
TT
89982014-02-19 Tom Tromey <tromey@redhat.com>
8999
9000 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
9001 * target.c (target_fileio_readlink): Add argument.
9002 * remote.c (remote_hostio_readlink): Add 'self' argument.
9003 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
9004
dbbca37d
TT
90052014-02-19 Tom Tromey <tromey@redhat.com>
9006
9007 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
9008 * target.c (target_fileio_unlink): Add argument.
9009 * remote.c (remote_hostio_unlink): Add 'self' argument.
9010 (remote_file_delete): Update.
9011 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
9012
df39ea25
TT
90132014-02-19 Tom Tromey <tromey@redhat.com>
9014
9015 * target.h (struct target_ops) <to_fileio_close>: Add argument.
9016 * target.c (target_fileio_close): Add argument.
9017 * remote.c (remote_hostio_close): Add 'self' argument.
9018 (remote_hostio_close_cleanup): Update.
9019 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
9020 Update.
9021 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
9022
a3be983c
TT
90232014-02-19 Tom Tromey <tromey@redhat.com>
9024
9025 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
9026 * target.c (target_fileio_pread): Add argument.
9027 * remote.c (remote_hostio_pread): Add 'self' argument.
9028 (remote_bfd_iovec_pread, remote_file_get): Update.
9029 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
9030
0d866f62
TT
90312014-02-19 Tom Tromey <tromey@redhat.com>
9032
9033 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
9034 * target.c (target_fileio_pwrite): Add argument.
9035 * remote.c (remote_hostio_pwrite): Add 'self' argument.
9036 (remote_file_put): Update.
9037 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
9038
cd897586
TT
90392014-02-19 Tom Tromey <tromey@redhat.com>
9040
9041 * target.h (struct target_ops) <to_fileio_open>: Add argument.
9042 * target.c (target_fileio_open): Add argument.
9043 * remote.c (remote_hostio_open): Add 'self' argument.
9044 (remote_bfd_iovec_open): Add 'self' argument.
9045 (remote_file_put): Add 'self' argument.
9046 (remote_file_get): Add 'self' argument.
9047 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
9048
78eff0ec
TT
90492014-02-19 Tom Tromey <tromey@redhat.com>
9050
9051 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
9052 Add argument.
9053 (target_can_run_breakpoint_commands): Add argument.
9054 * target.c (update_current_target): Update.
9055 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
9056 argument.
9057 (remote_insert_breakpoint): Add 'self' argument.
9058 (remote_insert_hw_breakpoint): Add 'self' argument.
9059 (remote_can_run_breakpoint_commands): Add 'self' argument.
9060
efcc2da7
TT
90612014-02-19 Tom Tromey <tromey@redhat.com>
9062
9063 * target.h (struct target_ops)
9064 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
9065 (target_supports_evaluation_of_breakpoint_conditions): Add
9066 argument.
9067 * target.c (update_current_target): Update.
9068 * remote.c (remote_supports_cond_breakpoints): Add 'self'
9069 argument.
9070 (remote_insert_breakpoint): Add 'self' argument.
9071 (remote_insert_hw_breakpoint): Add 'self' argument.
9072 (remote_supports_cond_breakpoints): Add 'self' argument.
9073
6de37a3a
TT
90742014-02-19 Tom Tromey <tromey@redhat.com>
9075
9076 * target.h (struct target_ops) <to_supports_string_tracing>: Add
9077 argument.
9078 (target_supports_string_tracing): Add argument.
9079 * target.c (update_current_target): Update.
9080 * remote.c (remote_supports_string_tracing): Add 'self' argument.
9081
2bfc0540
TT
90822014-02-19 Tom Tromey <tromey@redhat.com>
9083
9084 * target.h (struct target_ops)
9085 <to_supports_disable_randomization>: Add argument.
9086 * target.c (find_default_supports_disable_randomization): Add
9087 argument.
9088 (target_supports_disable_randomization): Add argument.
9089 (find_default_supports_disable_randomization): Add 'self'
9090 argument.
9091 * remote.c (extended_remote_supports_disable_randomization): Add
9092 'self' argument.
9093 (remote_supports_disable_randomization): Add 'self' argument.
9094 (extended_remote_create_inferior): Update.
9095 * linux-nat.c (linux_nat_supports_disable_randomization): Add
9096 'self' argument.
9097
7d178d6a
TT
90982014-02-19 Tom Tromey <tromey@redhat.com>
9099
9100 * target.h (struct target_ops)
9101 <to_supports_enable_disable_tracepoint>: Add argument.
9102 (target_supports_enable_disable_tracepoint): Add argument.
9103 * target.c (update_current_target): Update.
9104 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
9105 argument.
9106
86ce2668
TT
91072014-02-19 Tom Tromey <tromey@redhat.com>
9108
9109 * target.h (struct target_ops) <to_supports_multi_process>: Add
9110 argument.
9111 (target_supports_multi_process): Add argument.
9112 * target.c (update_current_target): Update.
9113 * remote.c (remote_supports_multi_process): Add 'self' argument.
9114 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
9115 argument.
9116 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
9117 argument.
9118
4c612759
TT
91192014-02-19 Tom Tromey <tromey@redhat.com>
9120
9121 * target.h (struct target_ops) <to_execution_direction>: Add
9122 argument.
9123 (target_execution_direction): Add argument.
9124 * target.c (default_execution_direction): Add 'self' argument.
9125 * record-full.c (record_full_execution_direction): Add 'self'
9126 argument.
9127
19db3e69
TT
91282014-02-19 Tom Tromey <tromey@redhat.com>
9129
9130 * target.h (struct target_ops) <to_can_execute_reverse>: Add
9131 argument.
9132 (target_can_execute_reverse): Add argument.
9133 * remote.c (remote_can_execute_reverse): Add 'self' argument.
9134 * record-full.c (record_full_can_execute_reverse): Add 'self'
9135 argument.
9136 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
9137 argument.
9138
1e6b91a4
TT
91392014-02-19 Tom Tromey <tromey@redhat.com>
9140
9141 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
9142 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
9143 argument.
9144 (target_get_ada_task_ptid): Add argument.
9145 * target.c (update_current_target): Update.
9146 (default_get_ada_task_ptid): Add 'self' argument.
9147 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
9148 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
9149 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
9150 argument.
9151 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
9152 argument.
9153 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
9154 argument.
9155 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
9156 argument.
9157 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
9158 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
9159 argument.
9160
3c80fb48
TT
91612014-02-19 Tom Tromey <tromey@redhat.com>
9162
9163 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
9164 (target_goto_bookmark): Add argument.
9165 * target.c (dummy_goto_bookmark): Add 'self' argument.
9166 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
9167
dd0e2830
TT
91682014-02-19 Tom Tromey <tromey@redhat.com>
9169
9170 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
9171 (target_get_bookmark): Add argument.
9172 * target.c (dummy_get_bookmark): Add 'self' argument.
9173 * record-full.c (record_full_get_bookmark): Add 'self' argument.
9174
fc6691b2
TT
91752014-02-19 Tom Tromey <tromey@redhat.com>
9176
9177 * target.h (struct target_ops) <to_make_corefile_notes>: Add
9178 argument.
9179 (target_make_corefile_notes): Add argument.
9180 * target.c (dummy_make_corefile_notes): Add 'self' argument.
9181 * procfs.c (procfs_make_note_section): Add 'self' argument.
9182 (procfs_make_note_section): Add 'self' argument.
9183 (procfs_make_note_section): Add 'self' argument.
9184 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
9185 argument.
9186 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
9187 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
9188 * exec.c (exec_make_note_section): Add 'self' argument.
9189 (exec_make_note_section): Add 'self' argument.
9190
2e73927c
TT
91912014-02-19 Tom Tromey <tromey@redhat.com>
9192
9193 * target.h (struct target_ops) <to_find_memory_regions>: Add
9194 argument.
9195 (target_find_memory_regions): Add argument.
9196 * target.c (dummy_find_memory_regions): Add 'self' argument.
9197 * procfs.c (proc_find_memory_regions): Add 'self' argument.
9198 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
9199 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
9200 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
9201 * exec. (exec_do_find_memory_regions): New global.
9202 (exec_set_find_memory_regions): Rewrite.
9203 (exec_find_memory_regions): New function.
9204 (init_exec_ops): Use exec_find_memory_regions.
9205
2a9a2795
TT
92062014-02-19 Tom Tromey <tromey@redhat.com>
9207
9208 * target.h (struct target_ops) <to_supports_non_stop>: Add
9209 argument.
9210 * target.c (find_default_supports_non_stop): Add argument.
9211 (target_supports_non_stop): Add argument.
9212 (find_default_supports_non_stop): Add 'self' argument.
9213 * remote.c (remote_supports_non_stop): Add 'self' argument.
9214 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
9215
4ab76ea3
TT
92162014-02-19 Tom Tromey <tromey@redhat.com>
9217
9218 * target.h (struct target_ops) <to_log_command>: Add argument.
9219 (target_log_command): Add argument.
9220 * serial.h (serial_log_command): Add 'self' argument.
9221 * serial.c (serial_log_command): Add 'self' argument.
9222
8dd27370
TT
92232014-02-19 Tom Tromey <tromey@redhat.com>
9224
9225 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
9226 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
9227 argument.
9228 (target_pid_to_exec_file): Add argument.
9229 * target.c (debug_to_pid_to_exec_file): Add argument.
9230 (update_current_target): Update.
9231 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
9232 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
9233 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
9234 (linux_handle_extended_wait): Update.
9235 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
9236 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
9237 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
9238 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
9239
1aac633b
TT
92402014-02-19 Tom Tromey <tromey@redhat.com>
9241
9242 * target.h (struct target_ops) <to_rcmd>: Add argument.
9243 (target_rcmd): Add argument.
9244 * target.c (debug_to_rcmd): Add argument.
9245 (update_current_target, do_monitor_command): Update.
9246 * remote.c (remote_rcmd): Add 'self' argument.
9247 * monitor.c (monitor_rcmd): Add 'self' argument.
9248
1eab8a48
TT
92492014-02-19 Tom Tromey <tromey@redhat.com>
9250
9251 * windows-nat.c (windows_stop): Add 'self' argument.
9252 * target.h (struct target_ops) <to_stop>: Add argument.
9253 * target.c (target_stop): Add argument.
9254 (debug_to_stop): Add argument.
9255 (update_current_target): Update.
9256 * remote.c (remote_stop): Add 'self' argument.
9257 * remote-sim.c (gdbsim_stop): Add 'self' argument.
9258 (gdbsim_cntrl_c): Update.
9259 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
9260 * procfs.c (procfs_stop): Add 'self' argument.
9261 * nto-procfs.c (procfs_stop): Add 'self' argument.
9262 * monitor.c (monitor_stop): Add 'self' argument.
9263 (monitor_open): Update.
9264 * linux-nat.c (linux_nat_stop): Add argument.
9265 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
9266 * gnu-nat.c (gnu_stop): Add 'self' argument.
9267 * darwin-nat.c (darwin_stop): Add 'self' argument.
9268
503a628d
TT
92692014-02-19 Tom Tromey <tromey@redhat.com>
9270
9271 * target.h (struct target_ops) <to_thread_name>: Add argument.
9272 * target.c (target_thread_name): Add argument.
9273 (update_current_target): Update.
9274 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
9275
c15906d8
TT
92762014-02-19 Tom Tromey <tromey@redhat.com>
9277
9278 * target.h (struct target_ops) <to_extra_thread_info>: Add
9279 argument.
9280 (target_extra_thread_info): Add argument.
9281 * target.c (update_current_target): Update.
9282 * remote.c (remote_threads_extra_info): Add 'self' argument.
9283 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
9284 argument.
9285 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
9286 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
9287 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
9288 argument.
9289 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
9290 argument.
9291 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
9292 argument.
9293 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
9294 argument.
9295
daf5e9b6
TT
92962014-02-19 Tom Tromey <tromey@redhat.com>
9297
9298 * target.h (struct target_ops) <to_program_signals>: Add argument.
9299 * target.c (target_program_signals): Add argument.
9300 * remote.c (remote_program_signals): Add 'self' argument.
9301
94bedb42
TT
93022014-02-19 Tom Tromey <tromey@redhat.com>
9303
9304 * target.h (struct target_ops) <to_pass_signals>: Add argument.
9305 * target.c (target_pass_signals): Add argument.
9306 * remote.c (remote_pass_signals): Add 'self' argument.
9307 (remote_start_remote): Update.
9308 * procfs.c (procfs_pass_signals): Add 'self' argument.
9309 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9310 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
9311 (linux_nat_create_inferior, linux_nat_attach): Update.
9312
da82bd6b
TT
93132014-02-19 Tom Tromey <tromey@redhat.com>
9314
9315 * windows-nat.c (windows_can_run): Add 'self' argument.
9316 * target.h (struct target_ops) <to_can_run>: Add argument.
9317 (target_can_run): Add argument.
9318 * target.c (debug_to_can_run): Add argument.
9319 (update_current_target): Update.
9320 * nto-procfs.c (procfs_can_run): Add 'self' argument.
9321 * inf-child.c (inf_child_can_run): Add 'self' argument.
9322 * go32-nat.c (go32_can_run): Add 'self' argument.
9323
d796e1d6
TT
93242014-02-19 Tom Tromey <tromey@redhat.com>
9325
9326 * target.h (struct target_ops) <to_has_exited>: Add argument.
9327 (target_has_exited): Add argument.
9328 * target.c (debug_to_has_exited): Add argument.
9329 (update_current_target): Update.
9330
ff214e67
TT
93312014-02-19 Tom Tromey <tromey@redhat.com>
9332
9333 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
9334 argument.
9335 (target_set_syscall_catchpoint): Add argument.
9336 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
9337 argument.
9338 * target.c (update_current_target): Update.
9339
758e29d2
TT
93402014-02-19 Tom Tromey <tromey@redhat.com>
9341
9342 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
9343 argument.
9344 (target_remove_exec_catchpoint): Add argument.
9345 * target.c (debug_to_remove_exec_catchpoint): Add argument.
9346 (update_current_target): Update.
9347 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
9348 argument.
9349
ba025e51
TT
93502014-02-19 Tom Tromey <tromey@redhat.com>
9351
9352 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
9353 argument.
9354 (target_insert_exec_catchpoint): Add argument.
9355 * target.c (debug_to_insert_exec_catchpoint): Add argument.
9356 (update_current_target): Update.
9357 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
9358 argument.
9359
e98cf0cd
TT
93602014-02-19 Tom Tromey <tromey@redhat.com>
9361
9362 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
9363 argument.
9364 (target_remove_vfork_catchpoint): Add argument.
9365 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
9366 (update_current_target): Update.
9367 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
9368 argument.
9369
3ecc7da0
TT
93702014-02-19 Tom Tromey <tromey@redhat.com>
9371
9372 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
9373 argument.
9374 (target_insert_vfork_catchpoint): Add argument.
9375 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
9376 (update_current_target): Update.
9377 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
9378 argument.
9379
973fc227
TT
93802014-02-19 Tom Tromey <tromey@redhat.com>
9381
9382 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
9383 argument.
9384 (target_remove_fork_catchpoint): Add argument.
9385 * target.c (debug_to_remove_fork_catchpoint): Add argument.
9386 (update_current_target): Update.
9387 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
9388 argument.
9389
a863b201
TT
93902014-02-19 Tom Tromey <tromey@redhat.com>
9391
9392 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
9393 argument.
9394 (target_insert_fork_catchpoint): Add argument.
9395 * target.c (debug_to_insert_fork_catchpoint): Add argument.
9396 (update_current_target): Update.
9397 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
9398 argument.
9399
2e97a79e
TT
94002014-02-19 Tom Tromey <tromey@redhat.com>
9401
9402 * target.h (struct target_ops) <to_post_startup_inferior>: Add
9403 argument.
9404 (target_post_startup_inferior): Add argument.
9405 * target.c (debug_to_post_startup_inferior): Add argument.
9406 (update_current_target): Update.
9407 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
9408 argument.
9409 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
9410 argument.
9411 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
9412 argument.
9413 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
9414 argument.
9415 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
9416 'self' argument.
9417 (super_post_startup_inferior): Likewise.
9418 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
9419 'self' argument.
9420 (super_post_startup_inferior): Likewise.
9421 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
9422 Add 'self' argument.
9423 (super_post_startup_inferior): Likewise.
9424
71a9f134
TT
94252014-02-19 Tom Tromey <tromey@redhat.com>
9426
9427 * target.h (struct target_ops) <to_load>: Add argument.
9428 * target.c (target_load): Add argument.
9429 (debug_to_load): Add argument.
9430 (update_current_target): Update.
9431 * remote.c (remote_load): Add 'self' argument.
9432 * remote-sim.c (gdbsim_load): Add 'self' argument.
9433 * remote-mips.c (mips_load): Add 'self' argument.
9434 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
9435 * monitor.c (monitor_load): Add 'self' argument.
9436 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
9437
0a4f40a2
TT
94382014-02-19 Tom Tromey <tromey@redhat.com>
9439
9440 * target.h (struct target_ops) <to_terminal_info>: Add argument.
9441 (target_terminal_info): Add argument.
9442 * target.c (debug_to_terminal_info): Add argument.
9443 (default_terminal_info): Likewise.
9444 * inflow.c (child_terminal_info): Add 'self' argument.
9445 * inferior.h (child_terminal_info): Add 'self' argument.
9446 * go32-nat.c (go32_terminal_info): Add 'self' argument.
9447
ae3bd431
TT
94482014-02-19 Tom Tromey <tromey@redhat.com>
9449
9450 * target.h (struct target_ops) <to_terminal_save_ours>: Add
9451 argument.
9452 (target_terminal_save_ours): Add argument.
9453 * target.c (debug_to_terminal_save_ours): Add argument.
9454 (update_current_target): Update.
9455 * inflow.c (terminal_save_ours): Add 'self' argument.
9456 * inferior.h (terminal_save_ours): Add 'self' argument.
9457
e3594fd1
TT
94582014-02-19 Tom Tromey <tromey@redhat.com>
9459
9460 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
9461 (target_terminal_ours): Add argument.
9462 * target.c (debug_to_terminal_ours): Add argument.
9463 (update_current_target): Update.
9464 * remote.c (remote_terminal_ours): Add 'self' argument.
9465 (remote_close): Update.
9466 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
9467 * inflow.c (terminal_ours): Add 'self' argument.
9468 * inferior.h (terminal_ours): Add 'self' argument.
9469 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9470
2e1e1a19
TT
94712014-02-19 Pedro Alves <palves@redhat.com>
9472 Tom Tromey <tromey@redhat.com>
9473
9474 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
9475 argument.
9476 (target_terminal_ours_for_output): Add argument.
9477 * target.c (debug_to_terminal_ours_for_output): Add argument.
9478 (update_current_target): Update.
9479 * inflow.c (terminal_ours_for_output): Add 'self' argument.
9480 * inferior.h (terminal_ours_for_output): Add 'self' argument.
9481 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
9482
d2f640d4
TT
94832014-02-19 Tom Tromey <tromey@redhat.com>
9484
9485 * target.h (struct target_ops) <to_terminal_inferior>: Add
9486 argument.
9487 * target.c (target_terminal_inferior): Add argument.
9488 (update_current_target): Update.
9489 * remote.c (remote_terminal_inferior): Add 'self' argument.
9490 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
9491 * inflow.c (terminal_inferior): Add 'self' argument.
9492 * inferior.h (terminal_inferior): Add 'self' argument.
9493 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
9494 (go32_terminal_inferior): Add 'self' argument.
9495
c42bf286
TT
94962014-02-19 Tom Tromey <tromey@redhat.com>
9497
9498 * target.h (struct target_ops) <to_terminal_init>: Add argument.
9499 (target_terminal_init): Add argument.
9500 * target.c (debug_to_terminal_init): Add argument.
9501 (update_current_target): Update.
9502 * inflow.c (terminal_init_inferior): Add 'self' argument.
9503 * inferior.h (terminal_init_inferior): Add 'self' argument.
9504 * go32-nat.c (go32_terminal_init): Add 'self' argument.
9505 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
9506
c3a5ff89
TT
95072014-02-19 Tom Tromey <tromey@redhat.com>
9508
9509 * target.h (struct target_ops)
9510 <to_can_accel_watchpoint_condition>: Add argument.
9511 (target_can_accel_watchpoint_condition): Add argument.
9512 * target.c (debug_to_can_accel_watchpoint_condition): Add
9513 argument.
9514 (update_current_target): Update.
9515 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
9516 'self' argument.
9517
31568a15
TT
95182014-02-19 Tom Tromey <tromey@redhat.com>
9519
9520 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
9521 Add argument.
9522 (target_region_ok_for_hw_watchpoint): Add argument.
9523 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
9524 (default_region_ok_for_hw_watchpoint): Add argument.
9525 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
9526 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
9527 argument.
9528 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
9529 argument.
9530 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
9531 argument.
9532 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
9533 'self' argument.
9534 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
9535 'self' argument.
9536 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
9537 'self' argument.
9538 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
9539 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
9540 'self' argument.
9541 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
9542 Add 'self' argument.
9543
7bb99c53
TT
95442014-02-19 Tom Tromey <tromey@redhat.com>
9545
9546 * target.h (struct target_ops) <to_insert_watchpoint>: Add
9547 argument.
9548 (target_insert_watchpoint): Add argument.
9549 * target.c (debug_to_insert_watchpoint): Add argument.
9550 (update_current_target): Update.
9551 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
9552 * remote.c (remote_insert_watchpoint): Add 'self' argument.
9553 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
9554 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
9555 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
9556 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
9557 argument.
9558 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
9559 (procfs_insert_hw_watchpoint): Add 'self' argument.
9560 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
9561 argument.
9562 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
9563 argument.
9564 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
9565 argument.
9566 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
9567 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
9568 argument.
9569 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
9570 'self' argument.
9571
11b5219a
TT
95722014-02-19 Tom Tromey <tromey@redhat.com>
9573
9574 * target.h (struct target_ops) <to_remove_watchpoint>: Add
9575 argument.
9576 (target_remove_watchpoint): Add argument.
9577 * target.c (debug_to_remove_watchpoint): Add argument.
9578 (update_current_target): Update.
9579 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
9580 * remote.c (remote_remove_watchpoint): Add 'self' argument.
9581 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
9582 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
9583 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
9584 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
9585 argument.
9586 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
9587 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
9588 argument.
9589 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
9590 argument.
9591 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
9592 argument.
9593 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
9594 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
9595 argument.
9596 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
9597 'self' argument.
9598
a64dc96c
TT
95992014-02-19 Tom Tromey <tromey@redhat.com>
9600
9601 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
9602 argument.
9603 (target_remove_hw_breakpoint): Add argument.
9604 * target.c (debug_to_remove_hw_breakpoint): Add argument.
9605 (update_current_target): Update.
9606 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
9607 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
9608 argument.
9609 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
9610 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
9611 argument.
9612 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
9613 'self' argument.
9614
23a26771
TT
96152014-02-19 Tom Tromey <tromey@redhat.com>
9616
9617 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
9618 argument.
9619 (target_insert_hw_breakpoint): Add argument.
9620 * target.c (debug_to_insert_hw_breakpoint): Add argument.
9621 (update_current_target): Update.
9622 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
9623 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
9624 argument.
9625 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
9626 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
9627 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
9628 argument.
9629 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
9630 'self' argument.
9631
5461485a
TT
96322014-02-19 Tom Tromey <tromey@redhat.com>
9633
9634 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
9635 argument.
9636 (target_can_use_hardware_watchpoint): Add argument.
9637 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
9638 (update_current_target): Update.
9639 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
9640 argument.
9641 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
9642 argument.
9643 * remote.c (remote_check_watch_resources): Add 'self' argument.
9644 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
9645 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
9646 argument.
9647 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
9648 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
9649 argument.
9650 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
9651 argument.
9652 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
9653 argument.
9654 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
9655 argument.
9656 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
9657 argument.
9658 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
9659 argument.
9660 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
9661 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
9662 argument.
9663 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
9664 'self' argument.
9665
f045800c
TT
96662014-02-19 Tom Tromey <tromey@redhat.com>
9667
9668 * target.h (struct target_ops) <to_post_attach>: Add argument.
9669 (target_post_attach): Add argument.
9670 * target.c (debug_to_post_attach): Add argument.
9671 (update_current_target): Update.
9672 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
9673 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
9674 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
9675 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
9676 * inf-child.c (inf_child_post_attach): Add 'self' argument.
9677
de90e03d
TT
96782014-02-19 Tom Tromey <tromey@redhat.com>
9679
9680 * windows-nat.c (windows_close): Add 'self' argument.
9681 * tracepoint.c (tfile_close): Add 'self' argument.
9682 * target.h (struct target_ops) <to_close>: Add argument.
9683 * target.c (target_close): Add argument.
9684 (update_current_target): Update.
9685 * remote.c (remote_close): Add 'self' argument.
9686 * remote-sim.c (gdbsim_close): Add 'self' argument.
9687 * remote-mips.c (mips_close): Add 'self' argument.
9688 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
9689 * record-full.c (record_full_close): Add 'self' argument.
9690 * record-btrace.c (record_btrace_close): Add 'self' argument.
9691 * monitor.h (monitor_close): Add 'self' argument.
9692 * monitor.c (monitor_close): Add 'self' argument.
9693 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
9694 * linux-nat.c (linux_nat_close): Add argument.
9695 * go32-nat.c (go32_close): Add 'self' argument.
9696 * exec.c (exec_close_1): Add 'self' argument.
9697 * ctf.c (ctf_close): Add 'self' argument.
9698 * corelow.c (core_close): Add 'self' argument.
9699 (core_close_cleanup): Update.
9700 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
9701 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
9702
9dd130a0
TT
97032014-02-19 Tom Tromey <tromey@redhat.com>
9704
9705 * remote.c (remote_load): New function.
9706 (init_remote_ops): Use it.
9707
46917d26
TT
97082014-02-19 Tom Tromey <tromey@redhat.com>
9709
9710 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
9711 argument.
9712 * common/linux-btrace.h (linux_supports_btrace): Update.
9713 * remote.c (remote_supports_btrace): Add "self" argument.
9714 * target-delegates.c: Rebuild.
9715 * target.c (target_supports_btrace): Remove.
9716 * target.h (struct target_ops) <to_supports_btrace>: Add
9717 target_ops argument.
9718 (target_supports_btrace): New define.
9719
6b84065d
TT
97202014-02-19 Tom Tromey <tromey@redhat.com>
9721
9722 * record-full.c (record_full_beneath_to_resume_ops)
9723 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
9724 (record_full_beneath_to_wait)
9725 (record_full_beneath_to_store_registers_ops)
9726 (record_full_beneath_to_store_registers)
9727 (record_full_beneath_to_xfer_partial_ops)
9728 (record_full_beneath_to_xfer_partial)
9729 (record_full_beneath_to_insert_breakpoint_ops)
9730 (record_full_beneath_to_insert_breakpoint)
9731 (record_full_beneath_to_remove_breakpoint_ops)
9732 (record_full_beneath_to_remove_breakpoint)
9733 (record_full_beneath_to_stopped_by_watchpoint)
9734 (record_full_beneath_to_stopped_data_address)
9735 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
9736 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
9737 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
9738 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
9739 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
9740 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
9741 (tmp_to_stopped_data_address, tmp_to_async): Remove.
9742 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
9743 (record_full_resume, record_full_wait_1)
9744 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
9745 (record_full_store_registers, record_full_xfer_partial)
9746 (record_full_insert_breakpoint, record_full_remove_breakpoint)
9747 (record_full_async, record_full_core_xfer_partial): Use target
9748 delegation.
9749 * target-delegates.c: Rebuild.
9750 * target.c (current_xfer_partial): Remove.
9751 (update_current_target): Do not INHERIT or de_fault
9752 to_insert_breakpoint, to_remove_breakpoint,
9753 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
9754 to_is_async_p, to_async. Do not set to_xfer_partial field.
9755 (default_xfer_partial): Simplify.
9756 (current_xfer_partial): Remove.
9757 (target_wait, target_resume): Simplify.
9758 (find_default_can_async_p, find_default_is_async_p): Update.
9759 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
9760 to_xfer_partial, to_stopped_by_watchpoint,
9761 to_stopped_data_address.
9762 (target_store_registers): Simplify.
9763 (forward_target_remove_breakpoint)
9764 (forward_target_insert_breakpoint): Remove.
9765 (target_remove_breakpoint, target_insert_breakpoint)
9766 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
9767 * target.h (struct target_ops) <to_resume, to_wait,
9768 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
9769 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
9770 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
9771 markup.
9772 (forward_target_remove_breakpoint)
9773 (forward_target_insert_breakpoint): Remove.
9774 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
9775 directly.
9776 (record_btrace_insert_breakpoint): Delegate directly.
9777
1101cb7b
TT
97782014-02-19 Tom Tromey <tromey@redhat.com>
9779
9780 PR build/7701:
9781 * target-delegates.c: New file.
9782 * target.c: Include target-delegates.c.
9783 (init_dummy_target): Call install_dummy_methods.
9784 (complete_target_initialization): Call install_delegators.
9785 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
9786 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
9787 * make-target-delegates: New file.
9788
8b06beed
TT
97892014-02-19 Tom Tromey <tromey@redhat.com>
9790
9791 * record.c (find_record_target): Use find_target_at.
9792 * target.c (find_target_at): New function.
9793 * target.h (find_target_at): Declare.
9794
6a109b6b
TT
97952014-02-19 Tom Tromey <tromey@redhat.com>
9796
9797 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
9798 Add 'ops' argument.
9799 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
9800 'ops' argument.
9801 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
9802 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
9803 'ops' argument.
9804 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
9805 argument.
9806 * linux-nat.c (save_sigtrap): Update.
9807 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
9808 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
9809 (linux_nat_close): Update.
9810 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
9811 argument.
9812 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
9813 argument.
9814 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
9815 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
9816 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
9817 (tmp_to_async): Add 'ops' argument.
9818 (record_full_stopped_by_watchpoint, record_full_async)
9819 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
9820 argument.
9821 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
9822 (m32r_stopped_by_watchpoint): Add 'ops' argument.
9823 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
9824 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
9825 (remote_is_async_p, remote_async): Add 'ops' argument.
9826 (remote_stopped_data_address): Update.
9827 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
9828 * target.c (update_current_target)
9829 (find_default_can_async_p, find_default_is_async_p): Update.
9830 (init_dummy_target): Update.
9831 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
9832 * target.h (struct target_ops) <to_stopped_by_watchpoint,
9833 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
9834 (target_can_async_p, target_is_async_p, target_async)
9835 (target_stopped_by_watchpoint): Update.
9836
e095146b
YQ
98372014-02-19 Yao Qi <yao@codesourcery.com>
9838
9839 PR gdb/16220
9840 * gdbarch.sh: Remove startup_gdbarch.
9841 * gdbarch.c: Regenerated.
9842 * gdbarch.h: Likewise.
9843
bc3c6b36
KB
98442014-02-17 Kevin Buettner <kevinb@redhat.com>
9845
9846 * rl78-tdep.c (rl78_g10_register_name): New function.
9847 (rl78_return_value): Add g10 support.
9848 (rl78_gdbarch_init): Register rl78_g10_register_name for the
9849 g10.
9850
98dc0167 98512014-02-17 Doug Evans <xdje42@gmail.com>
f01c1940
DE
9852
9853 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
9854 (SUBDIR_GUILE_SRCS): Ditto.
9855 (scm-gsmob.o): Ditto.
9856
842c05cd
YQ
98572014-02-17 Yao Qi <yao@codesourcery.com>
9858
9859 * gnu-nat.c (ILL_RPC): Declare defined function.
9860
25c0bd04
YQ
98612014-02-17 Yao Qi <yao@codesourcery.com>
9862
9863 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
9864 mach_msg_type_number_t.
9865 (gnu_write_inferior): Likewise.
9866
a9a758e3
YQ
98672014-02-17 Yao Qi <yao@codesourcery.com>
9868
9869 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
9870 in format string.
9871 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
9872 (inf_validate_procs, inf_signal): Likewise.
9873 (S_exception_raise_request): Likewise.
9874 (do_mach_notify_dead_name): Likewise.
9875 (steal_exc_port): Likewise.
9876 (gnu_read_inferior): Change 'copy_count''s type to
9877 mach_msg_type_number_t.
9878 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
9879 format string.
9880
bae8023e
TS
98812014-02-16 Thomas Schwinge <thomas@codesourcery.com>
9882
c82f56d9
TS
9883 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
9884 flag. Adjust all users; in particular...
9885 (gnu_wait): ..., don't decrement its value in here...
9886 (gnu_create_inferior): ..., and instead set the flag in here,
9887 around the startup_inferior call, and call that one with
9888 START_INFERIOR_TRAPS_EXPECTED.
9889
3398af6a
TS
9890 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
9891 (ILL_RPC): ... new macro.
9892 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
9893 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
9894 (do_mach_notify_send_once, S_proc_setmsgport_reply)
9895 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
9896 functions with ILL_RPC macro.
9897 (S_proc_pid2task_reply, S_proc_task2pid_reply)
9898 (S_proc_task2proc_reply, S_proc_proc2task_reply)
9899 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
9900 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
9901 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
9902 (S_proc_getlogin_reply, S_proc_getsid_reply)
9903 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
9904 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
9905 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
9906 (S_proc_getnports_reply, S_proc_is_important_reply)
9907 (S_proc_get_code_reply): New stub functions, generated with
9908 ILL_RPC macro.
9909
d47642c9
TS
9910 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
9911 collected the type check structures.
9912
bae8023e
TS
9913 * reply_mig_hack.awk: Don't expect to see the auto keyword.
9914
8a55ffb0
DE
99152014-02-14 Doug Evans <dje@google.com>
9916
9917 * target.c (target_write_partial): Fix result type.
9918
c2853f3d
JM
99192014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
9920
9921 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
9922 the proper offsets to access fpregset_t.
9923
ac61d2db
SA
99242014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
9925
9926 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
9927 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
9928 * h8300-tdep.c (setmachinelist): Remove global.
9929 * hppa-tdep.c (hppa_sigtramp): Remove global.
9930 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
9931 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
9932 * ravenscar-thread.c (update_target_observer): Remove global.
9933 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
9934
9d2d0b8b
TT
99352014-02-12 Tom Tromey <tromey@redhat.com>
9936
9937 * common/rsp-low.c: Update comments.
9938 * common/rsp-low.h: Update comments.
9939
a7191e8b
TT
99402014-02-12 Tom Tromey <tromey@redhat.com>
9941
9942 * common/rsp-low.c (convert_ascii_to_int): Remove.
9943 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
9944
ff0e980e
TT
99452014-02-12 Tom Tromey <tromey@redhat.com>
9946
9947 * common/rsp-low.h (unhexify): Don't declare.
9948 * common/rsp-low.c (unhexify): Remove.
9949
e9371aff
TT
99502014-02-12 Tom Tromey <tromey@redhat.com>
9951
9952 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
9953 * common/rsp-low.c (convert_int_to_ascii): Remove.
9954
971dc0b8
TT
99552014-02-12 Tom Tromey <tromey@redhat.com>
9956
9957 * common/rsp-low.h (hexify): Don't declare.
9958 * common/rsp-low.c (hexify): Remove.
9959
0a822afb
TT
99602014-02-12 Tom Tromey <tromey@redhat.com>
9961
9962 * common/rsp-low.c (hexify): Never take strlen of argument.
9963
9f1b45b0
TT
99642014-02-12 Tom Tromey <tromey@redhat.com>
9965
9966 * common/rsp-low.c (bin2hex): Never take strlen of argument.
9967 * remote.c (extended_remote_run, remote_rcmd)
9968 (remote_download_trace_state_variable, remote_save_trace_data)
9969 (remote_set_trace_notes): Update.
9970 * tracepoint.c (encode_source_string, tfile_write_status)
9971 (tfile_write_uploaded_tsv): Update.
9972
9c3d6531
TT
99732014-02-12 Tom Tromey <tromey@redhat.com>
9974
9975 * tracepoint.c: Include rsp-low.h.
9976 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
9977 * remote.c: Include rsp-low.h.
9978 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
9979 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
9980 (remote_unescape_input): Move to common/rsp-low.c.
9981 * common/rsp-low.h: New file.
9982 * common/rsp-low.c: New file.
9983 * Makefile.in (SFILES): Add common/rsp-low.c.
9984 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
9985 (COMMON_OBS): Add rsp-low.o.
9986 (rsp-low.o): New target.
9987
01fd3ea5
TT
99882014-02-12 Tom Tromey <tromey@redhat.com>
9989
9990 * utils.h: Include print-utils.h.
9991 (host_address_to_string, plongest, pulongest, phex, phex_nz)
9992 (int_string, core_addr_to_string, core_addr_to_string_nz)
9993 (hex_string, hex_string_custom): Don't declare.
9994 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9995 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
9996 (hex_string_custom, int_string, core_addr_to_string)
9997 (core_addr_to_string_nz, host_address_to_string): Move to
9998 common/print-utils.c.
9999 * common/print-utils.h: New file.
10000 * common/print-utils.c: New file
10001 * Makefile.in (SFILES): Add common/print-utils.c.
10002 (HFILES_NO_SRCDIR): Add common/print-utils.h.
10003 (COMMON_OBS): Add print-utils.o.
10004 (print-utils.o): New target.
10005
9fb50108
TT
100062014-02-12 Tom Tromey <tromey@redhat.com>
10007
10008 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
10009
0548b5db
MK
100102014-02-12 Mark Kettenis <kettenis@gnu.org>
10011
10012 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
10013
493443a4
MK
100142014-02-12 Mark Kettenis <kettenis@gnu.org>
10015
10016 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
10017 if a PT_IO ptrace request returns sucessfully but indicates that 0
10018 bytes were transferred.
10019
706d0883
PA
100202014-02-12 Pedro Alves <palves@redhat.com>
10021 Kevin Buettner <kevinb@redhat.com>
10022
10023 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
10024 TYPE_INSTANCE_FLAG_CODE_SPACE.
10025
5caa2f0b
PA
100262014-02-12 Pedro Alves <palves@redhat.com>
10027
10028 * h8300-tdep.c (pseudo_from_raw_register)
10029 (raw_from_pseudo_register): New functions.
10030 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
10031 them.
10032
76fd5f74
PA
100332014-02-12 Pedro Alves <palves@redhat.com>
10034
10035 * h8300-tdep.c (h8300_register_sim_regno): New function.
10036 (h8300_gdbarch_init): Install h8300_register_sim_regno as
10037 gdbarch_register_sim_regno hook.
10038
8f008406
SA
100392014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10040
10041 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
10042
195abc10
SA
100432014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
10044
10045 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
10046
93ffa5b9
MK
100472014-02-12 Mark Kettenis <kettenis@gnu.org>
10048
10049 * obsd-tdep.h (obsd_init_abi): New prototype.
10050 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
10051 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
10052 (obsd_init_abi): New functions.
10053 * i386obsd-tdep.c: Include "obsd-tdep.h".
10054 (i386obsd_init_abi): Call obsd_init_abi.
10055 * amd64obsd-tdep.c: Include "obsd-tdep.h".
10056 (amd64obsd_init_abi): Call obsd_init_abi.
10057 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
10058 obsd-tdep.c to gdb_target_obs.
10059
49caec94
JM
100602014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
10061
10062 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
10063 double float arguments to 16-byte in the argument slots.
10064
e1402065
DE
100652014-02-11 Doug Evans <xdje42@gmail.com>
10066
10067 * configure.ac: Don't crash if pkg-config is not found and guile
10068 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
10069 in guile checks.
10070 * configure: Regenerate.
10071
edcc890f
YQ
100722014-02-11 Yao Qi <yao@codesourcery.com>
10073
10074 * aix-thread.c (aix_thread_xfer_partial): Update comments.
10075 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
10076 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10077 * gnu-nat.c (gnu_xfer_memory): Likewise.
10078 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10079 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10080 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10081 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10082
9b409511
YQ
100832014-02-11 Yao Qi <yao@codesourcery.com>
10084
10085 * target.h (enum target_xfer_error): Rename to ...
10086 (enum target_xfer_status): ... it. New. All users updated.
10087 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
10088 New.
10089 (TARGET_XFER_STATUS_ERROR_P): New macro.
10090 (target_xfer_error_to_string): Remove declaration.
10091 (target_xfer_status_to_string): Declare.
10092 (target_xfer_partial_ftype): Adjust it.
10093 (struct target_ops) <to_xfer_partial>: Return
10094 target_xfer_status. Add argument xfered_len. Update
10095 comments.
10096 * target.c (target_xfer_error_to_string): Rename to ...
10097 (target_xfer_status_to_string): ... it. New. All callers
10098 updated.
10099 (target_read_live_memory): Likewise. Call target_xfer_partial
10100 instead of target_read.
10101 (memory_xfer_live_readonly_partial): Return
10102 target_xfer_status. Add argument xfered_len.
10103 (raw_memory_xfer_partial): Likewise.
10104 (memory_xfer_partial_1): Likewise.
10105 (memory_xfer_partial): Likewise.
10106 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
10107 properly. Update debug message.
10108 (default_xfer_partial, current_xfer_partial): Likewise.
10109 (target_write_partial): Likewise.
10110 (target_read_partial): Likewise. All callers updated.
10111 (read_whatever_is_readable): Likewise.
10112 (target_write_with_progress): Likewise.
10113 (target_read_alloc_1): Likewise.
10114
10115 * aix-thread.c (aix_thread_xfer_partial): Likewise.
10116 * auxv.c (procfs_xfer_auxv): Likewise.
10117 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
10118 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10119 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10120 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
10121 * corefile.c (read_memory): Adjust.
10122 * corelow.c (core_xfer_partial): Likewise.
10123 * ctf.c (ctf_xfer_partial): Likewise.
10124 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
10125 updated.
10126 (darwin_xfer_partial): Likewise.
10127 * exec.c (section_table_xfer_memory_partial): Likewise. All
10128 callers updated.
10129 (exec_xfer_partial): Likewise.
10130 * exec.h (section_table_xfer_memory_partial): Update
10131 declaration.
10132 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
10133 negative.
10134 (gnu_xfer_partial): Likewise.
10135 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
10136 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
10137 (ia64_hpux_xfer_solib_got): Likewise.
10138 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
10139 type of 'partial_len' to ULONGEST.
10140 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10141 * linux-nat.c (linux_xfer_siginfo ): Likewise.
10142 (linux_nat_xfer_partial): Likewise.
10143 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
10144 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
10145 * monitor.c (monitor_xfer_memory): Likewise.
10146 (monitor_xfer_partial): Likewise.
10147 * procfs.c (procfs_xfer_partial): Likewise.
10148 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10149 * record-full.c (record_full_xfer_partial): Likewise.
10150 (record_full_core_xfer_partial): Likewise.
10151 * remote-sim.c (gdbsim_xfer_memory): Likewise.
10152 (gdbsim_xfer_partial): Likewise.
10153 * remote.c (remote_write_bytes_aux): Likewise. All callers
10154 updated.
10155 (remote_write_bytes, remote_read_bytes): Likewise. All
10156 callers updated.
10157 (remote_flash_erase): Likewise. All callers updated.
10158 (remote_write_qxfer): Likewise. All callers updated.
10159 (remote_read_qxfer): Likewise. All callers updated.
10160 (remote_xfer_partial): Likewise.
10161 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10162 (rs6000_xfer_shared_libraries): Likewise.
10163 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10164 (sol_thread_xfer_partial): Likewise.
10165 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10166 (sparc_xfer_partial): Likewise.
10167 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
10168 updated.
10169 (spu_xfer_partial): Likewise.
10170 * spu-multiarch.c (spu_xfer_partial): Likewise.
10171 * tracepoint.c (tfile_xfer_partial): Likewise.
10172 * windows-nat.c (windows_xfer_memory): Likewise.
10173 (windows_xfer_shared_libraries): Likewise.
10174 (windows_xfer_partial): Likewise.
10175 * valprint.c: Replace 'target_xfer_error' with
10176 'target_xfer_status' in comments.
10177
a8e63083
JB
101782014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
10179
10180 Checked in by Joel Brobecker <brobecker@adacore.com>.
10181 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
10182
e86b67d3
JB
101832014-02-11 Joel Brobecker <brobecker@adacore.com>
10184
10185 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
10186 function parameters.
10187
4b7d1f7f
WN
101882014-02-10 Will Newton <will.newton@linaro.org>
10189
10190 * elfread.c (elf_rel_plt_read): Look for a .got section if
10191 looking up .got.plt fails.
10192 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
10193 on address passed to elf_gnu_ifunc_record_cache.
10194 (elf_gnu_ifunc_resolve_addr): Likewise.
10195 (elf_gnu_ifunc_resolver_return_stop): Likewise.
10196
961842b2
JM
101972014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
10198
10199 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
10200 (X_RETTURN): New macro.
10201 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
10202
10203 * sparc64-tdep.c (sparc64_init_abi): Hook
10204 sparc_in_function_epilogue_p.
10205
3f03e7b1
GB
102062014-02-10 Gary Benson <gbenson@redhat.com>
10207
10208 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10209 Rename name_matcher to symbol_matcher.
10210
96f861ef
GB
102112014-02-10 Gary Benson <gbenson@redhat.com>
10212
10213 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10214 Use expand_symtabs_file_matcher_ftype and
10215 expand_symtabs_symbol_matcher_ftype.
10216
ee01b665
JB
102172014-02-10 Joel Brobecker <brobecker@adacore.com>
10218
10219 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
10220 (struct ada_symbol_cache): New.
10221 (ada_free_symbol_cache): Forward declare.
10222 (struct ada_pspace_data): New.
10223 (ada_pspace_data_handle): New static global.
10224 (get_ada_pspace_data, ada_pspace_data_cleanup)
10225 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
10226 (cache_space, cache): Delete, now folded inside struct
10227 ada_pspace_data.
10228 (ada_get_symbol_cache): New function.
10229 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
10230 implementation.
10231 (_initialize_ada_language): Remove initialization of cache_space.
10232 Move call to observer_attach_inferior_exit up, grouping it
10233 with the other observer registrations inside this function.
10234 Rename command to be more general. Add call to
10235 register_program_space_data_with_cleanup.
10236
143adbbf
JB
102372014-02-10 Joel Brobecker <brobecker@adacore.com>
10238
10239 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
10240 ada_new_objfile_observer.
10241 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
10242 (_initialize_tasks): Update uses of ada_new_objfile_observer
10243 and ada_tasks_normal_stop_observer.
10244
aa4fb036
JB
102452014-02-10 Joel Brobecker <brobecker@adacore.com>
10246
10247 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
10248 returned by the 'Length attribute to integer.
10249
9dee8cc6
JB
102502014-02-10 Joel Brobecker <brobecker@adacore.com>
10251
10252 * ada-lang.c (_initialize_ada_language): Initialize
10253 cache_space obstack.
10254
3d9434b5
JB
102552014-02-10 Joel Brobecker <brobecker@adacore.com>
10256
10257 * ada-lang.c (HASH_SIZE): New macro.
10258 (struct cache_entry): New type.
10259 (cache_space, cache): New static globals.
10260 (ada_clear_symbol_cache, find_entry): New functions.
10261 (lookup_cached_symbol, cache_symbol): Implement.
10262 (ada_new_objfile_observer, ada_free_objfile_observer): New.
10263 (_initialize_ada_language): Attach ada_new_objfile_observer
10264 and ada_free_objfile_observer.
10265
f0c5f9b2
JB
102662014-02-10 Joel Brobecker <brobecker@adacore.com>
10267
10268 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
10269 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
10270 struct block * parameter.
10271 (ada_lookup_symbol_list_worker): Constify local variable "block".
10272 Remove cast which is no longer necessary.
10273
ed3ef339
DE
102742014-02-10 Doug Evans <xdje42@gmail.com>
10275
10276 Add Guile as an extension language.
10277 * NEWS: Mention Guile scripting.
10278 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
10279 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
10280 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
10281 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
10282 (CLIBS): Add GUILE_LIBS.
10283 (install-guile): New rule.
10284 (guile.o): New rule.
10285 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
10286 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
10287 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
10288 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
10289 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
10290 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
10291 (scm-type.o, scm-utils.o, scm-value.o): New rules.
10292 * configure.ac: New option --with-guile.
10293 * configure: Regenerate.
10294 * config.in: Regenerate.
10295 * auto-load.c: Remove #include "python/python.h". Add #include
10296 "gdb/section-scripts.h".
10297 (source_section_scripts): Handle Guile scripts.
10298 (_initialize_auto_load): Add name of Guile objfile script to
10299 scripts-directory help text.
10300 * breakpoint.c (condition_command): Tweak comment to include Scheme.
10301 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
10302 (struct breakpoint): New member scm_bp_object.
10303 * defs.h (enum command_control_type): New value guile_control.
10304 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
10305 "extension.h".
10306 (show_user): Update comment.
10307 (_initialize_cli_cmds): Update help text for "show user". Update help
10308 text for max-user-call-depth.
10309 * cli/cli-script.c: Remove #include "python/python.h". Add #include
10310 "extension.h".
10311 (multi_line_command_p): Add guile_control.
10312 (print_command_lines): Handle guile_control.
10313 (execute_control_command, recurse_read_control_structure): Ditto.
10314 (process_next_line): Recognize "guile" commands.
10315 * disasm.c (gdb_disassemble_info): Make non-static.
10316 * disasm.h: #include "dis-asm.h".
10317 (struct gdbarch): Add forward decl.
10318 (gdb_disassemble_info): Declare.
10319 * extension.c: #include "guile/guile.h".
10320 (extension_languages): Add guile.
10321 (get_ext_lang_defn): Handle EXT_LANG_GDB.
10322 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
10323 * gdbtypes.c (get_unsigned_type_max): New function.
10324 (get_signed_type_minmax): New function.
10325 * gdbtypes.h (get_unsigned_type_max): Declare.
10326 (get_signed_type_minmax): Declare.
10327 * guile/README: New file.
10328 * guile/guile-internal.h: New file.
10329 * guile/guile.c: New file.
10330 * guile/guile.h: New file.
10331 * guile/scm-arch.c: New file.
10332 * guile/scm-auto-load.c: New file.
10333 * guile/scm-block.c: New file.
10334 * guile/scm-breakpoint.c: New file.
10335 * guile/scm-disasm.c: New file.
10336 * guile/scm-exception.c: New file.
10337 * guile/scm-frame.c: New file.
10338 * guile/scm-gsmob.c: New file.
10339 * guile/scm-iterator.c: New file.
10340 * guile/scm-lazy-string.c: New file.
10341 * guile/scm-math.c: New file.
10342 * guile/scm-objfile.c: New file.
10343 * guile/scm-ports.c: New file.
10344 * guile/scm-pretty-print.c: New file.
10345 * guile/scm-safe-call.c: New file.
10346 * guile/scm-string.c: New file.
10347 * guile/scm-symbol.c: New file.
10348 * guile/scm-symtab.c: New file.
10349 * guile/scm-type.c: New file.
10350 * guile/scm-utils.c: New file.
10351 * guile/scm-value.c: New file.
10352 * guile/lib/gdb.scm: New file.
10353 * guile/lib/gdb/boot.scm: New file.
10354 * guile/lib/gdb/experimental.scm: New file.
10355 * guile/lib/gdb/init.scm: New file.
10356 * guile/lib/gdb/iterator.scm: New file.
10357 * guile/lib/gdb/printing.scm: New file.
10358 * guile/lib/gdb/types.scm: New file.
10359 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
10360 (VPATH): Add $(GUILE_SRCDIR).
10361 (GUILE_DIR): New variable.
10362 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
10363 (all): Add stamp-guile dependency.
10364 (stamp-guile): New rule.
10365 (clean-guile, install-guile, uninstall-guile): New rules.
10366 (install-only): Add install-guile dependency.
10367 (uninstall): Add uninstall-guile dependency.
10368 (clean): Add clean-guile dependency.
10369
ac020ec5
DE
103702014-02-09 Doug Evans <xdje42@gmail.com>
10371
10372 Revert this patch (which I approved, mea culpa).
10373
10374 2014-02-08 Mark Kettenis <kettenis@gnu.org>
10375
10376 * Makefile.in (all-lib): Remove.
10377 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10378
2a081c59
JK
103792014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10380
10381 Fix Python stack corruption.
10382 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
10383 gdb_py_longest.
10384
0a6bd22d
MK
103852014-02-08 Mark Kettenis <kettenis@gnu.org>
10386
10387 * Makefile.in (all-lib): Remove.
10388 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
10389
1a860409
DE
103902014-02-07 Doug Evans <dje@google.com>
10391
10392 * extension-priv.h (extension_language_script_ops): Add comment.
10393 (extension_language_ops): Add comment.
caf5a491 10394 (active_ext_lang_state): Fix typo in comment.
1a860409 10395
d137e6dc
PA
103962014-02-07 Pedro Alves <palves@redhat.com>
10397
0dcb32c3 10398 PR breakpoints/16292
d137e6dc
PA
10399 * infrun.c (handle_signal_stop) <signal arrives while stepping
10400 over a breakpoint>: Switch back to the stepping thread.
10401
ce6d0892
YQ
104022014-02-07 Yao Qi <yao@codesourcery.com>
10403
10404 * target.c (target_xfer_partial): Return zero if LEN is zero.
10405
2ed4b548
YQ
104062014-02-07 Yao Qi <yao@codesourcery.com>
10407
10408 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
10409 (ld_so_xfer_auxv): Likewise.
10410 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10411 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10412 * corelow.c (core_xfer_partial): Likewise.
10413 * ctf.c (ctf_xfer_partial): Likewise.
10414 * darwin-nat.c (darwin_read_dyld_info): Likewise.
10415 (darwin_xfer_partial): Likewise.
10416 * exec.c (exec_xfer_partial): Likewise.
10417 * gnu-nat.c (gnu_xfer_partial): Likewise.
10418 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
10419 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
10420 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
10421 * linux-nat.c (linux_xfer_siginfo): Likewise.
10422 (linux_proc_xfer_spu): Likewise.
10423 * procfs.c (procfs_xfer_partial): Likewise.
10424 * record-full.c (record_full_xfer_partial): Likewise.
10425 (record_full_core_xfer_partial): Likewise.
10426 * remote-sim.c (gdbsim_xfer_partial): Likewise.
10427 * remote.c (remote_write_qxfer): Likewise.
10428 (remote_write_qxfer, remote_read_qxfer): Likewise.
10429 (remote_xfer_partial): Likewise.
10430 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10431 (rs6000_xfer_shared_libraries): Likewise.
10432 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10433 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10434 (spu_xfer_partial): Likewise.
10435 * target.c (memory_xfer_partial_1): Likewise.
10436 * tracepoint.c (tfile_xfer_partial): Likewise.
10437 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
10438 (windows_xfer_partial): Likewise.
10439
c09f20e4
YQ
104402014-02-07 Yao Qi <yao@codesourcery.com>
10441
10442 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
10443 comments.
10444 (core_xfer_shared_libraries_aix): Likewise.
10445 * gdbarch.c, gdbarch.h: Regenerated.
10446 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
10447 ULONGEST. Change 'len_avail' type to ULONGEST.
10448 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10449 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10450 declaration.
10451 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
10452
8635b3bf
YQ
104532014-02-07 Yao Qi <yao@codesourcery.com>
10454
10455 * corefile.c (memory_error): Get 'exception' from ERR and pass
10456 'exception' to throw_error.
10457
6dddc817
DE
104582014-02-06 Doug Evans <xdje42@gmail.com>
10459
10460 * configure.ac (libpython checking): Remove all but python.o from
10461 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
10462 * configure: Regenerate.
10463
10464 * Makefile.in (SFILES): Add extension.c.
10465 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
10466 (COMMON_OBS): Add extension.o.
10467 * extension.h: New file.
10468 * extension-priv.h: New file.
10469 * extension.c: New file.
10470
10471 * python/python-internal.h: #include "extension.h".
10472 (gdbpy_auto_load_enabled): Declare.
10473 (gdbpy_apply_val_pretty_printer): Declare.
10474 (gdbpy_apply_frame_filter): Declare.
10475 (gdbpy_preserve_values): Declare.
10476 (gdbpy_breakpoint_cond_says_stop): Declare.
10477 (gdbpy_breakpoint_has_cond): Declare.
10478 (void source_python_script_for_objfile): Delete.
10479 * python/python.c: #include "extension-priv.h".
10480 Delete inclusion of "observer.h".
10481 (extension_language_python): Moved here and renamed from
10482 script_language_python in py-auto-load.c.
10483 Redefined to be of type extension_language_defn.
10484 (python_extension_script_ops): New global.
10485 (python_extension_ops): New global.
10486 (struct python_env): New member previous_active.
10487 (restore_python_env): Call restore_active_ext_lang.
10488 (ensure_python_env): Call set_active_ext_lang.
10489 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
10490 New arg extlang.
10491 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
10492 New arg extlang.
10493 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
10494 New arg extlang.
10495 (gdbpy_eval_from_control_command): Renamed from
10496 eval_python_from_control_command, made static. New arg extlang.
10497 (gdbpy_source_script) Renamed from source_python_script, made static.
10498 New arg extlang.
10499 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
10500 result to int. New arg extlang.
10501 (gdbpy_source_objfile_script): Renamed from
10502 source_python_script_for_objfile, made static. New arg extlang.
10503 (gdbpy_start_type_printers): Renamed from start_type_printers, made
10504 static. New args extlang, extlang_printers. Change result type to
10505 "void".
10506 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
10507 static. New arg extlang. Rename arg printers to extlang_printers
10508 and change type to ext_lang_type_printers *.
10509 (gdbpy_free_type_printers): Renamed from free_type_printers, made
10510 static. Replace argument arg with extlang, extlang_printers.
10511 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
10512 (!HAVE_PYTHON, source_python_script): Delete.
10513 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
10514 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
10515 (!HAVE_PYTHON, start_type_printers): Delete.
10516 (!HAVE_PYTHON, apply_type_printers): Delete.
10517 (!HAVE_PYTHON, free_type_printers): Delete.
10518 (_initialize_python): Delete call to observer_attach_before_prompt.
10519 (finalize_python): Set/restore active extension language.
10520 (gdbpy_finish_initialization) Renamed from
10521 finish_python_initialization, made static. New arg extlang.
10522 (gdbpy_initialized): New function.
10523 * python/python.h: #include "extension.h". Delete #include
10524 "value.h", "mi/mi-cmds.h".
10525 (extension_language_python): Declare.
10526 (GDBPY_AUTO_FILE_NAME): Delete.
10527 (enum py_bt_status): Moved to extension.h and renamed to
10528 ext_lang_bt_status.
10529 (enum frame_filter_flags): Moved to extension.h.
10530 (enum py_frame_args): Moved to extension.h and renamed to
10531 ext_lang_frame_args.
10532 (finish_python_initialization): Delete.
10533 (eval_python_from_control_command): Delete.
10534 (source_python_script): Delete.
10535 (apply_val_pretty_printer): Delete.
10536 (apply_frame_filter): Delete.
10537 (preserve_python_values): Delete.
10538 (gdbpy_script_language_defn): Delete.
10539 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
10540 (start_type_printers, apply_type_printers, free_type_printers): Delete.
10541
10542 * auto-load.c: #include "extension.h".
10543 (GDB_AUTO_FILE_NAME): Delete.
10544 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
10545 (script_language_gdb): Delete, moved to extension.c and renamed to
10546 extension_language_gdb.
10547 (source_gdb_script_for_objfile): Delete.
10548 (auto_load_pspace_info): New member unsupported_script_warning_printed.
10549 (loaded_script): Change type of language member to
10550 struct extension_language_defn *.
10551 (init_loaded_scripts_info): Initialize
10552 unsupported_script_warning_printed.
10553 (maybe_add_script): Make static. Change type of language arg to
10554 struct extension_language_defn *.
10555 (clear_section_scripts): Reset unsupported_script_warning_printed.
10556 (auto_load_objfile_script_1): Rewrite to use extension language API.
10557 (auto_load_objfile_script): Make public. Remove support-compiled-in
10558 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
10559 (source_section_scripts): Rewrite to use extension language API.
10560 (load_auto_scripts_for_objfile): Rewrite to use
10561 auto_load_scripts_for_objfile.
10562 (collect_matching_scripts_data): Change type of language member to
10563 struct extension_language_defn *.
10564 (auto_load_info_scripts): Change type of language arg to
10565 struct extension_language_defn *.
10566 (unsupported_script_warning_print): New function.
10567 (script_not_found_warning_print): Make static.
10568 (_initialize_auto_load): Rewrite construction of scripts-directory
10569 help.
10570 * auto-load.h (struct objfile): Add forward decl.
10571 (struct script_language): Delete.
10572 (struct auto_load_pspace_info): Add forward decl.
10573 (struct extension_language_defn): Add forward decl.
10574 (maybe_add_script): Delete.
10575 (auto_load_objfile_script): Declare.
10576 (script_not_found_warning_print): Delete.
10577 (auto_load_info_scripts): Update prototype.
10578 (auto_load_gdb_scripts_enabled): Declare.
10579 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
10580 auto_load_python_scripts_enabled and made public.
10581 (script_language_python): Delete, moved to python.c.
10582 (gdbpy_script_language_defn): Delete.
10583 (info_auto_load_python_scripts): Update to use
10584 extension_language_python.
10585
10586 * breakpoint.c (condition_command): Replace call to
10587 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
10588 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
10589 with call to breakpoint_ext_lang_cond_says_stop.
10590 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
10591 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
10592 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
10593 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
10594 New arg slang.
10595 (local_setattro): Print name of extension language with existing
10596 stop condition.
10597
10598 * valprint.c (val_print, value_print): Update to call
10599 apply_ext_lang_val_pretty_printer.
10600 * cp-valprint.c (cp_print_value): Update call to
10601 apply_ext_lang_val_pretty_printer.
10602 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
10603 (gdbpy_apply_val_pretty_printer): Renamed from
10604 apply_val_pretty_printer. New arg extlang.
10605 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
10606
10607 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
10608 extension language API.
10609 * cli/cli-script.c (execute_control_command): Update to call
10610 eval_ext_lang_from_control_command.
10611
10612 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
10613 enum ext_lang_bt_status values. Update call to
10614 apply_ext_lang_frame_filter.
10615 (mi_cmd_stack_list_locals): Ditto.
10616 (mi_cmd_stack_list_args): Ditto.
10617 (mi_cmd_stack_list_variables): Ditto.
10618 * mi/mi-main.c: Delete #include "python/python-internal.h".
10619 Add #include "extension.h".
10620 (mi_cmd_list_features): Replace reference to python internal variable
10621 gdb_python_initialized with call to ext_lang_initialized_p.
10622
10623 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
10624 Update to use enum ext_lang_frame_args. Update to call
10625 apply_ext_lang_frame_filter.
10626 * python/py-framefilter.c (extract_sym): Update to use enum
10627 ext_lang_bt_status.
10628 (extract_value, py_print_type, py_print_value): Ditto.
10629 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
10630 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
10631 (py_print_frame): Ditto.
10632 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
10633 New arg extlang. Update to use enum ext_lang_bt_status.
10634
10635 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
10636 finish_python_initialization. Replace with call to
10637 finish_ext_lang_initialization.
10638
10639 * typeprint.c (do_free_global_table): Update to call
10640 free_ext_lang_type_printers.
10641 (create_global_typedef_table): Update to call
10642 start_ext_lang_type_printers.
10643 (find_global_typedef): Update to call apply_ext_lang_type_printers.
10644 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
10645 (type_print_options): Change type of global_printers from "void *"
10646 to "struct ext_lang_type_printers *".
10647
10648 * value.c (preserve_values): Update to call preserve_ext_lang_values.
10649 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
10650 (gdbpy_preserve_values): Renamed from preserve_python_values.
10651 New arg extlang.
10652 (!HAVE_PYTHON, preserve_python_values): Delete.
10653
10654 * utils.c (quit_flag): Delete, moved to extension.c.
10655 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
10656 extension.c.
10657
10658 * eval.c: Delete #include "python/python.h".
10659 * main.c: Delete #include "python/python.h".
10660
10661 * defs.h: Update comment.
10662
6af79985
JB
106632014-02-06 Joel Brobecker <brobecker@adacore.com>
10664
10665 GDB 7.7 released.
10666
12c5175d
MK
106672014-02-05 Mark Kettenis <kettenis@gnu.org>
10668
10669 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
10670 defined.
10671
8dc5b319
YQ
106722014-02-05 Yao Qi <yao@codesourcery.com>
10673
10674 * remote.c (remote_pass_signals): Remove local 'buf' and use
10675 rs->buf.
10676 (remote_program_signals): Likewise.
10677
de7b2893
YQ
106782014-02-05 Yao Qi <yao@codesourcery.com>
10679
10680 * ctf.c: Include "inferior.h" and "gdbthread.h".
10681 (CTF_PID): A new macro.
10682 (ctf_open): Call inferior_appeared and add_thread_silent.
10683 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
10684 (ctf_thread_alive): New function.
10685 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
10686
66d032ac
YQ
106872014-02-05 Yao Qi <yao@codesourcery.com>
10688
10689 Revert this patch:
10690
10691 2013-05-24 Yao Qi <yao@codesourcery.com>
10692
10693 * tracepoint.c (TFILE_PID): Remove.
10694 (tfile_open): Don't add thread and inferior.
10695 (tfile_close): Don't set 'inferior_ptid'. Don't call
10696 exit_inferior_silent.
10697 (tfile_thread_alive): Remove.
10698 (init_tfile_ops): Don't set field 'to_thread_alive' of
10699 tfile_ops.
10700
f4ccffad
CE
107012014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
10702
10703 * remote.c (remote_start_remote): Call remote_check_symbols even
10704 if only symbol-file (not file) has been given.
10705
591a12a1
UW
107062014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10707
10708 * gdbarch.sh (skip_entrypoint): New callback.
10709 * gdbarch.c, gdbarch.h: Regenerate.
10710 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
10711 * infrun.c (fill_in_stop_func): Likewise.
10712 * ppc-linux-tdep.c: Include "elf/ppc64.h".
10713 (ppc_elfv2_elf_make_msymbol_special): New function.
10714 (ppc_elfv2_skip_entrypoint): Likewise.
10715 (ppc_linux_init_abi): Install them for ELFv2.
10716
cc0e89c5
UW
107172014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10718
10719 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
10720 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
10721 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
10722 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
10723 structures returned in GPRs.
10724
52f548e4
UW
107252014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10726
10727 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
10728 offset to the stack parameter list for the ELFv2 ABI.
10729
d4094b6a
UW
107302014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10731
10732 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
10733 set_gdbarch_convert_from_func_ptr_addr and
10734 set_gdbarch_elf_make_msymbol_special for ELFv1.
10735 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
10736 function descriptors on ELFv1.
10737 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
10738 set up r12 at function entry.
10739
cd453cd0
UW
107402014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10741
10742 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
10743 (struct gdbarch_tdep): New member elf_abi.
10744
10745 * rs6000-tdep.c: Include "elf/ppc64.h".
10746 (rs6000_gdbarch_init): Detect ELF ABI version.
10747
0ff3e01f
UW
107482014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10749
10750 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
10751 within a register pair holding a DFP 128-bit value on little-endian.
10752 (ppc64_sysv_abi_return_value_base): Likewise.
10753 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
10754 (dfp_pseudo_register_write): Likewise.
10755
5b757e5d
UW
107562014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10757
10758 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
10759 offset on little-endian when passing _Decimal32.
10760 (ppc64_sysv_abi_return_value_base): Likewise for return values.
10761
084ee545
UW
107622014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10763
10764 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
10765 of the overlapped FP register within the VSX register on little-
10766 endian platforms.
10767 (efpr_pseudo_register_write): Likewise.
10768
d63167af
UW
107692014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10770
10771 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
10772 offset on little-endian when passing small structures.
10773
e765b44c
UW
107742014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10775
10776 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
10777 (struct ppc64_sysv_argpos): New data structure.
10778 (ppc64_sysv_abi_push_float): Remove.
10779 (ppc64_sysv_abi_push_val): New function.
10780 (ppc64_sysv_abi_push_integer): Likewise.
10781 (ppc64_sysv_abi_push_freg): Likewise.
10782 (ppc64_sysv_abi_push_vreg): Likewise.
10783 (ppc64_sysv_abi_push_param): Likewise.
10784 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
10785 (ppc64_sysv_abi_return_value_base): New function.
10786 (ppc64_sysv_abi_return_value): Refactor to use it.
10787
36c24d95
UW
107882014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
10789
10790 * NEWS: Document new target powerpc64le-*-linux*.
10791
26fd9228
MK
107922014-02-04 Mark Kettenis <kettenis@gnu.org>
10793
10794 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
10795 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
10796 core dumps.
10797 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
10798 register set used in ELF core dumps. Add floating-point register set.
10799
c5bb7362
KB
108002014-02-03 Kevin Buettner <kevinb@redhat.com>
10801
74228e77 10802 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
c5bb7362
KB
10803 dwarf2_to_gdb[] table using symbolic constants. Adjust
10804 penultimate entry from number representing the PC register
10805 to symbolic constant representing the MDR register. Add
10806 constant for the PC register to the end of the table.
10807
af09351e
MK
108082014-02-03 Mark Kettenis <kettenis@gnu.org>
10809
10810 * bsd-kvm.c: Include <sys/param.h>
10811
8507e05d
MK
108122014-02-03 Mark Kettenis <kettenis@gnu.org>
10813
10814 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
10815
ae56bfb8
JB
108162014-01-31 Joel Brobecker <brobecker@adacore.com>
10817
10818 * ada-lang.h (clear_ada_sym_cache): Delete.
10819
718ee4dc
UW
108202014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
10821
10822 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
10823
401e27fd
JM
108242014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
10825
10826 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
10827 the sigreturn register save area only if the syscall is
10828 sigreturn.
10829
a7c88acd
JB
108302014-01-29 Joel Brobecker <brobecker@adacore.com>
10831
10832 * valops.c (value_slice): Minor reformatting.
10833
fa0079ea
UW
108342014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
10835
10836 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
10837
c6044dd1
JB
108382014-01-28 Joel Brobecker <brobecker@adacore.com>
10839
10840 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
10841 New static globals.
10842 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
10843 (ada_ignore_descriptive_types_p): New static global.
10844 (find_parallel_type_by_descriptive_type): Return immediately
10845 if ada_ignore_descriptive_types_p is set.
10846 (_initialize_ada_language): Register new commands "maintenance
10847 set ada", "maintenance show ada", "maintenance set ada
10848 ignore-descriptive-types" and "maintenance show ada
10849 ignore-descriptive-types".
10850 * NEWS: Add entry for new "maint ada set/show
10851 ignore-descriptive-types" commands.
10852
568e808b
MM
108532014-01-27 Markus Metzger <markus.t.metzger@intel.com>
10854
10855 * record-btrace.c (record_btrace_close): Call btrace_teardown
10856 for all threads.
10857
467d141b
JB
108582014-01-27 Joel Brobecker <brobecker@adacore.com>
10859
10860 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
10861 "ui-out.h".
10862
fb151210
JB
108632014-01-27 Joel Brobecker <brobecker@adacore.com>
10864
10865 * ada-typeprint (type_is_full_subrange_of_target_type):
10866 New function.
10867 (print_range): Add parameter bounds_prefered_p. If not set,
10868 try printing range types using the name of their base type.
10869 (print_range_type): Add parameter bounds_prefered_p.
10870 Use it in call to print_range.
10871 (print_array_type, ada_print_type): Update calls to print_range
10872 and print_range_type.
10873
aba02109
JB
108742014-01-27 Joel Brobecker <brobecker@adacore.com>
10875
10876 * ada-typeprint.c (print_array_type, print_choices, print_range)
10877 (print_range_bound, print_dynamic_range_bound, print_range_type):
10878 Remove declaration.
10879
e62e21fd
JB
108802014-01-27 Joel Brobecker <brobecker@adacore.com>
10881
10882 * ada-typeprint.c (print_range): Add missing empty line
10883 after local declaration.
10884
859cf5d1
JB
108852014-01-27 Joel Brobecker <brobecker@adacore.com>
10886
10887 * ada-valprint.c (print_optional_low_bound): Get index_type's
10888 target type for as long as it is a TYPE_CODE_RANGE.
10889
25790f6f
JB
108902014-01-27 Joel Brobecker <brobecker@adacore.com>
10891
10892 * procfs.c (procfs_make_note_section): Remove assertion and
10893 associated comment.
10894
6b6aa828
YQ
108952014-01-24 Yao Qi <yao@codesourcery.com>
10896
10897 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
10898 * corelow.c (get_core_siginfo): Likewise.
10899
5d6df423
YQ
109002014-01-24 Yao Qi <yao@codesourcery.com>
10901
10902 * remote.c (remote_write_bytes_aux): Change type of 'len' to
10903 ULONGEST. Don't check 'len' is negative.
10904 (remote_write_bytes): Change type of 'len' to ULONGEST.
10905
83b645b8
TT
109062014-01-23 Tom Tromey <tromey@redhat.com>
10907
10908 PR python/16485:
10909 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
10910 Handle exception from frame.block.
10911 (FrameVars.fetch_frame_locals): Likewise.
10912
0740f8d8
TT
109132014-01-23 Tom Tromey <tromey@redhat.com>
10914
10915 PR python/16487:
10916 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
10917 on a NULL pointer. Move "goto error" to correct place.
10918
21909fa1
TT
109192014-01-23 Tom Tromey <tromey@redhat.com>
10920
10921 PR python/16491:
10922 * python/py-framefilter.c (apply_frame_filter): Call
10923 ensure_python_env after computing gdbarch.
10924
17fde6d0
YQ
109252014-01-23 Yao Qi <yao@codesourcery.com>
10926
10927 * target.c (raw_memory_xfer_partial): Change argument type
10928 from void * to gdb_byte *.
10929 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
10930
87ce2a04
DE
109312014-01-22 Doug Evans <dje@google.com>
10932
10933 New gdbserver option --debug-format=timestamp.
10934 * NEWS: Mention it.
10935
237b092b
AA
109362014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
10937
10938 * syscalls/s390x-linux.xml: New file.
10939 * syscalls/s390-linux.xml: New file.
10940 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
10941 (XML_SYSCALL_FILENAME_S390X): Likewise.
10942 (op_svc): New enum value for SVC opcode.
10943 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
10944 (s390_linux_get_syscall_number): New function.
10945 (s390_gdbarch_init): Register '*get_syscall_number' and the
10946 syscall xml file name.
10947 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10948 "s390-linux.xml" and "s390x-linux.xml".
10949 * NEWS: Announce new feature.
10950
54bff650
BS
109512014-01-22 Baruch Siach <baruch@tkos.co.il>
10952
10953 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
10954
14e361d7
PA
109552014-01-22 Pedro Alves <palves@redhat.com>
10956
10957 * xtensa-config.c: Include defs.h.
10958
46bbb3ed
JB
109592014-01-22 Joel Brobecker <brobecker@adacore.com>
10960
10961 * common/common-utils.h: Add "ARI:" comment beside __func__
10962 reference.
10963
3a80edfc
JB
109642014-01-22 Joel Brobecker <brobecker@adacore.com>
10965
10966 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
10967 documentation a bit.
10968
4869db5e
RM
109692014-01-21 Roland McGrath <mcgrathr@google.com>
10970
10971 * configure.ac: Call AM_PROG_INSTALL_STRIP.
10972 * configure: Regenerate.
10973 * aclocal.m4: Regenerate.
10974 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
10975 New substituted variables.
10976 (install-strip): New target.
10977 (INSTALL_SCRIPT): New substituted variable.
10978 (FLAGS_TO_PASS): Add it.
10979 (install-only): Use $(INSTALL_SCRIPT) rather than
10980 $(INSTALL_PROGRAM) for gcore.
10981
9ea4267d
TT
109822014-01-20 Tom Tromey <tromey@redhat.com>
10983
10984 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
10985 together.
10986
1f2bdf09
TT
109872014-01-20 Tom Tromey <tromey@redhat.com>
10988
10989 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
10990 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
10991 (deprecated_cmd_warning, complete_on_cmdlist): Update.
10992 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
10993 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
10994 (struct cmd_list_element) <flags>: Remove.
10995 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
10996 doc_allocated>: New fields.
10997 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
10998 bitfields.
10999 * maint.c (maintenance_do_deprecate): Update.
11000 * top.c (execute_command): Update.
11001
e671835b
BS
110022014-01-20 Baruch Siach <baruch@tkos.co.il>
11003
11004 * xtensa-linux-nat.c: Include asm/ptrace.h.
11005
50367cd2
IB
110062014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11007
11008 * Makefile.in (SFILES): Add d-support.c.
11009 (COMMON_OBS): Add d-support.o.
11010 * d-lang.h (d_parse_symbol): Add comment, now defined in
11011 d-support.c.
11012 * d-lang.c (parse_call_convention)
11013 (parse_attributes, parse_function_types)
11014 (parse_function_args, parse_type, parse_identifier)
11015 (call_convention_p, d_parse_symbol): Move functions to ...
11016 * d-support.c: ... New file.
11017
ec9f644a
IB
110182014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11019
11020 * d-lang.h (d_parse_symbol): Add declaration.
11021 * d-lang.c (extract_identifiers)
11022 (extract_type_info): Remove functions.
11023 (parse_call_convention, parse_attributes)
11024 (parse_function_types, parse_function_args)
11025 (parse_type, parse_identifier, call_convention_p)
11026 (d_parse_symbol): New functions.
11027 (d_demangle): Use d_parse_symbol to demangle D symbols.
11028
94b1b47e
IB
110292014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11030
11031 * d-lang.h (struct builtin_d_type): New data type.
11032 (builtin_d_type): Add declaration.
11033 * d-lang.c (d_language_arch_info, build_d_types)
11034 (builtin_d_type): New functions.
11035 (enum d_primitive_types): New data type.
11036 (d_language_defn): Change c_language_arch_info to
11037 d_language_arch_info.
11038 (d_type_data): New static variable.
11039 (_initialize_d_language): Initialize d_type_data.
11040
63778547
IB
110412014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11042
11043 * d-lang.h (d_main_name): Add declaration.
11044 * d-lang.c (d_main_name): New function.
11045 * symtab.c (find_main_name): Add call to d_main_name.
11046
3271ba66
IB
110472014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11048
11049 * d-lang.c (d_language_defn): Change macro_expansion_c to
11050 macro_expansion_no.
11051
d36b3012
IB
110522014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
11053
11054 * MAINTAINERS: Add myself as a write-after-approval maintainer.
11055
c90a6fb7
SDJ
110562014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
11057
11058 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
11059 gdb_exception" declaration.
11060 * remote.c (getpkt_or_notif_sane): Likewise.
11061
749234e5
DE
110622014-01-17 Doug Evans <dje@google.com>
11063
11064 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
11065 function, contents of dirnames_to_char_ptr_vec_append moved here.
11066 (delim_string_to_char_ptr_vec): New function.
11067 (dirnames_to_char_ptr_vec_append): Rewrite.
11068 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
11069
df049a58
DE
110702014-01-17 Doug Evans <dje@google.com>
11071
11072 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
11073 and moved here ...
11074 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
11075 #include "common-utils.h".
11076 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
11077 * common/vec.h (VEC_ASSERT_PASS): Update.
11078 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
11079 (MACH_CHECK_ERROR): Update.
11080
69f97648
SM
110812014-01-17 Simon Marchi <simon.marchi@ericsson.com>
11082
11083 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
11084 comments.
11085 * gdbarch.h: Regenerate.
11086
98b1cfdc
TT
110872014-01-16 Tom Tromey <tromey@redhat.com>
11088
11089 * value.c (struct value) <regnum>: Move earlier.
11090
77a19445
TT
110912014-01-16 Tom Tromey <tromey@redhat.com>
11092
11093 * remote.c (extended_remote_create_inferior): Rename from
11094 extended_remote_create_inferior_1. Add "ops" argument. Remove
11095 old implementation.
11096
62261490
PA
110972014-01-16 Pedro Alves <palves@redhat.com>
11098
11099 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
11100 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
11101 the backchain.
11102
4d65956b
DE
111032014-01-16 Doug Evans <dje@google.com>
11104
11105 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
11106
52834460
MM
111072014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11108
11109 * btrace.h (btrace_thread_flag): New.
11110 (struct btrace_thread_info) <flags>: New.
11111 * record-btrace.c (record_btrace_resume_thread)
11112 (record_btrace_find_thread_to_move, btrace_step_no_history)
11113 (btrace_step_stopped, record_btrace_start_replaying)
11114 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
11115 (record_btrace_find_resume_thread): New.
11116 (record_btrace_resume, record_btrace_wait): Extend.
11117 (record_btrace_can_execute_reverse): New.
11118 (record_btrace_open): Fail in non-stop mode.
11119 (record_btrace_set_replay): Split into this, ...
11120 (record_btrace_stop_replaying): ... this, ...
11121 (record_btrace_clear_histories): ... and this.
11122 (init_record_btrace_ops): Init to_can_execute_reverse.
11123 * NEWS: Announce it.
11124
118e6252
MM
111252014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11126
11127 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
11128 (forward_target_decr_pc_after_break)
11129 (target_decr_pc_after_break): New.
11130 * target.c (forward_target_decr_pc_after_break)
11131 (target_decr_pc_after_break): New.
11132 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
11133 instead of gdbarch_decr_pc_after_break.
11134 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11135 instead of gdbarch_decr_pc_after_break.
11136 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
11137 instead of gdbarch_decr_pc_after_break.
11138 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
11139 instead of gdbarch_decr_pc_after_break.
11140 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
11141 instead of gdbarch_decr_pc_after_break.
11142 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
11143 instead of gdbarch_decr_pc_after_break.
11144
6e07b1d2
MM
111452014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11146
11147 * btrace.c: Include regcache.h.
11148 (btrace_add_pc): New.
11149 (btrace_enable): Call btrace_add_pc.
11150 (btrace_is_empty): New.
11151 * btrace.h (btrace_is_empty): New.
11152 * record-btrace.c (require_btrace, record_btrace_info): Call
11153 btrace_is_empty.
11154
969c39fb
MM
111552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11156
11157 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
11158 Support delta reads.
11159 (linux_disable_btrace): Change return type.
11160 * common/linux-btrace.h (linux_read_btrace): Change parameters
11161 and return type to allow error reporting. Update users.
11162 (linux_disable_btrace): Change return type. Update users.
11163 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
11164 New.
11165 (btrace_error): New.
11166 (btrace_block) <begin>: Comment on BEGIN == 0.
11167 * btrace.c (btrace_compute_ftrace): Start from the end of
11168 the current trace.
11169 (btrace_stitch_trace, btrace_clear_history): New.
11170 (btrace_fetch): Read delta trace, return if replaying.
11171 (btrace_clear): Move clear history code to btrace_clear_history.
11172 (parse_xml_btrace): Throw an error if parsing failed.
11173 * target.h (struct target_ops) <to_read_btrace>: Change parameters
11174 and return type to allow error reporting.
11175 (target_read_btrace): Change parameters and return type to allow
11176 error reporting.
11177 * target.c (target_read_btrace): Update.
11178 * remote.c (remote_read_btrace): Support delta reads. Pass
11179 errors on.
11180 * NEWS: Announce it.
11181
0b722aec
MM
111822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11183
11184 * record.h (record_btrace_frame_unwind)
11185 (record_btrace_tailcall_frame_unwind): New declarations.
11186 * dwarf2-frame: Include record.h
11187 (dwarf2_frame_cfa): Throw an error for btrace frames.
11188 * record-btrace.c: Include hashtab.h.
11189 (btrace_get_bfun_name): New.
11190 (btrace_call_history): Call btrace_get_bfun_name.
11191 (struct btrace_frame_cache): New.
11192 (bfcache): New.
11193 (bfcache_hash, bfcache_eq, bfcache_new): New.
11194 (btrace_get_frame_function): New.
11195 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
11196 (record_btrace_frame_this_id): Compute own id.
11197 (record_btrace_frame_prev_register): Provide PC, throw_error
11198 for all other registers.
11199 (record_btrace_frame_sniffer): Detect btrace frames.
11200 (record_btrace_tailcall_frame_sniffer): New.
11201 (record_btrace_frame_dealloc_cache): New.
11202 (record_btrace_frame_unwind): Add new functions.
11203 (record_btrace_tailcall_frame_unwind): New.
11204 (_initialize_record_btrace): Allocate cache.
11205 * btrace.c (btrace_clear): Call reinit_frame_cache.
11206 * NEWS: Announce it.
11207
066ce621
MM
112082014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11209
11210 * record-btrace.c (record_btrace_set_replay)
11211 (record_btrace_goto_begin, record_btrace_goto_end)
11212 (record_btrace_goto): New.
11213 (init_record_btrace_ops): Initialize them.
11214 * NEWS: Announce it.
11215
e2887aa3
MM
112162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11217
11218 * record-btrace.c (record_btrace_find_new_threads)
11219 (record_btrace_thread_alive): New.
11220 (init_record_btrace_ops): Initialize to_find_new_threads and
11221 to_thread_alive.
11222
b2f4cfde
MM
112232014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11224
11225 * record-btrace.c (record_btrace_resume): New.
11226 (record_btrace_wait): New.
11227 (init_record_btrace_ops): Initialize to_wait and to_resume.
11228
633785ff
MM
112292014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11230
11231 * record-btrace.c (record_btrace_xfer_partial)
11232 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
11233 (record_btrace_allow_memory_access): New.
11234 (init_record_btrace_ops): Initialize new methods.
11235 * target.c (raw_memory_xfer_partial): Bail out if target reports
11236 that this memory is not available.
11237
3db08215
MM
112382014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11239
11240 * target.h (target_ops) <to_insert_breakpoint>
11241 <to_remove_breakpoint>: Add target_ops parameter.
11242 (forward_target_insert_breakpoint): New.
11243 (forward_target_remove_breakpoint): New.
11244 (memory_remove_breakpoint, memory_insert_breakpoint):
11245 Add target_ops parameter.
11246 * target.c (target_insert_breakpoint): Split into this and ...
11247 (forward_target_insert_breakpoint): ... this.
11248 (target_remove_breakpoint): Split into this and ...
11249 (forward_target_remove_breakpoint): ... this.
11250 (debug_to_insert_breakpoint): Add target_ops parameter.
11251 Call forward_target_insert_breakpoint.
11252 (debug_to_remove_breakpoint): Add target_ops parameter.
11253 Call forward_target_remove_breakpoint.
11254 (update_current_target): Do not inherit or default to_insert_breakpoint
11255 and to_remove_breakpoint.
11256 * corelow.c (ignore): Add target_ops parameter.
11257 * exec.c (ignore): Add target_ops parameter.
11258 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
11259 Add target_ops parameter.
11260 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
11261 Add target_ops parameter.
11262 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
11263 Add target_ops parameter.
11264 * record-full.c (record_full_beneath_to_insert_breakpoint)
11265 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
11266 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
11267 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
11268 (record_full_core_remove_breakpoint): Add target_ops parameter.
11269 Update users.
11270 (record_full_beneath_to_insert_breakpoint_ops)
11271 (record_full_beneath_to_remove_breakpoint_ops)
11272 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
11273 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
11274 tmp_to_remove_breakpoint_ops,
11275 record_full_beneath_to_insert_breakpoint_ops, and
11276 record_full_beneath_to_remove_breakpoint_ops.
11277 * remote-m32r-sdi.c (m32r_insert_breakpoint)
11278 (m32r_remove_breakpoint): Add target_ops parameter.
11279 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
11280 Add target_ops parameter.
11281 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
11282 Add target_ops parameter.
11283
cecac1ab
MM
112842014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11285 Markus Metzger <markus.t.metzger@intel.com>
11286
11287 * record-btrace.c: Include frame-unwind.h.
11288 (record_btrace_frame_unwind_stop_reason)
11289 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
11290 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
11291 New.
11292 (init_record_btrace_ops): Install it.
11293
824344ca
MM
112942014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11295
11296 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
11297 get_prev_frame_1.
11298
32261e52
MM
112992014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11300
11301 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
11302 earlier.
11303
ea001bdc
MM
113042014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11305
11306 * frame-unwind.c: Include target.h.
11307 (frame_unwind_try_unwinder): New function with code from ...
11308 (frame_unwind_find_by_frame): ... here. New variable
11309 unwinder_from_target, call also target_get_unwinder)
11310 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
11311 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
11312 * target.h (struct target_ops): New fields to_get_unwinder and
11313 to_get_tailcall_unwinder.
11314 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
11315
1f3ef581
MM
113162014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11317
11318 * record-btrace.c (record_btrace_fetch_registers)
11319 (record_btrace_store_registers)
11320 (record_btrace_to_prepare_to_store): New.
11321 (init_record_btrace_ops): Add the above.
11322
f32dbf8c
MM
113232014-01-16 Tom Tromey <tromey@redhat.com>
11324
11325 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
11326 * target.h (struct target_ops) <to_prepare_to_store>: Add
11327 argument.
11328 (target_prepare_to_store): Add argument.
11329 * target.c (debug_to_prepare_to_store): Add argument.
11330 (update_current_target): Update.
11331 * remote.c (remote_prepare_to_store): Add 'self' argument.
11332 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
11333 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
11334 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
11335 * record-full.c (record_full_core_prepare_to_store): Add 'self'
11336 argument.
11337 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
11338 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
11339 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
11340 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
11341 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
11342
07bbe694
MM
113432014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11344
11345 * btrace.h (replay) <replay>: New.
11346 (btrace_is_replaying): New.
11347 * btrace.c (btrace_clear): Free replay iterator.
11348 (btrace_is_replaying): New.
11349 * record-btrace.c (record_btrace_is_replaying): New.
11350 (record_btrace_info): Print insn number if replaying.
11351 (record_btrace_insn_history): Start at replay position.
11352 (record_btrace_call_history): Start at replay position.
11353 (init_record_btrace_ops): Init to_record_is_replaying.
11354
0688d04e
MM
113552014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11356
11357 * record-btrace.c (record_btrace_insn_history_range): Include
11358 end.
11359 (record_btrace_insn_history_from): Adjust range.
11360 (record_btrace_call_history_range): Include
11361 end.
11362 (record_btrace_call_history_from): Adjust range.
11363 * NEWS: Announce changes.
11364
8710b709
MM
113652014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11366
11367 * record.h (enum record_print_flag)
11368 <record_print_indent_calls>: New.
11369 * record.c (get_call_history_modifiers): Recognize /c modifier.
11370 (_initialize_record): Document /c modifier.
11371 * record-btrace.c (btrace_call_history): Add btinfo parameter.
11372 Reorder fields. Optionally indent the function name. Update
11373 all users.
11374 * NEWS: Announce changes.
11375
d0fa7535
MM
113762014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11377
11378 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
11379
5de9129b
MM
113802014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11381
11382 * btrace.c (ftrace_new_function): Start counting at one.
11383 * record-btrace.c (record_btrace_info): Adjust number of calls
11384 and insns.
11385 * NEWS: Announce it.
11386
7acbe133
MM
113872014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11388
11389 * record-btrace.c (btrace_call_history_insn_range): Print
11390 insn range as [begin, end].
11391
23a7fe75
MM
113922014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11393
11394 * btrace.h (struct btrace_func_link): New.
11395 (enum btrace_function_flag): New.
11396 (struct btrace_inst): Rename to ...
11397 (struct btrace_insn): ...this. Update all users.
11398 (struct btrace_func) <ibegin, iend>: Remove.
11399 (struct btrace_func_link): New.
11400 (struct btrace_func): Rename to ...
11401 (struct btrace_function): ...this. Update all users.
11402 (struct btrace_function) <segment, flow, up, insn, insn_offset)
11403 (number, level, flags>: New.
11404 (struct btrace_insn_iterator): Rename to ...
11405 (struct btrace_insn_history): ...this.
11406 Update all users.
11407 (struct btrace_insn_iterator, btrace_call_iterator): New.
11408 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
11409 (struct btrace_target_info) <begin, end, level>
11410 <insn_history, call_history>: New.
11411 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11412 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11413 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11414 (btrace_call_number, btrace_call_begin, btrace_call_end)
11415 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11416 (btrace_find_function_by_number, btrace_set_insn_history)
11417 (btrace_set_call_history): New.
11418 * btrace.c (btrace_init_insn_iterator)
11419 (btrace_init_func_iterator, compute_itrace): Remove.
11420 (ftrace_print_function_name, ftrace_print_filename)
11421 (ftrace_skip_file): Change
11422 parameter to const.
11423 (ftrace_init_func): Remove.
11424 (ftrace_debug): Use new btrace_function fields.
11425 (ftrace_function_switched): Also consider gaining and
11426 losing symbol information).
11427 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
11428 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
11429 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
11430 New.
11431 (ftrace_new_function): Move. Remove debug print.
11432 (ftrace_update_lines, ftrace_update_insns): New.
11433 (ftrace_update_function): Check for call, ret, and jump.
11434 (compute_ftrace): Renamed to ...
11435 (btrace_compute_ftrace): ...this. Rewritten to compute call
11436 stack.
11437 (btrace_fetch, btrace_clear): Updated.
11438 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
11439 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
11440 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
11441 (btrace_call_number, btrace_call_begin, btrace_call_end)
11442 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
11443 (btrace_find_function_by_number, btrace_set_insn_history)
11444 (btrace_set_call_history): New.
11445 * record-btrace.c (require_btrace): Use new btrace thread
11446 info fields.
11447 (record_btrace_info, btrace_insn_history)
11448 (record_btrace_insn_history, record_btrace_insn_history_range):
11449 Use new btrace thread info fields and new iterator.
11450 (btrace_func_history_src_line): Rename to ...
11451 (btrace_call_history_src_line): ...this. Use new btrace
11452 thread info fields.
11453 (btrace_func_history): Rename to ...
11454 (btrace_call_history): ...this. Use new btrace thread info
11455 fields and new iterator.
11456 (record_btrace_call_history, record_btrace_call_history_range):
11457 Use new btrace thread info fields and new iterator.
11458
8372a7cb
MM
114592014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11460
11461 * frame.h (frame_id_build_unavailable_stack_special): New.
11462 * frame.c (frame_id_build_unavailable_stack_special): New.
11463
c2170eef
MM
114642014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11465
11466 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
11467 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
11468 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
11469 to gdbarch.
11470 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
11471 (i386_insn_is_jump, i386_jmp_p): New.
11472 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
11473 insn_is_jump to gdbarch.
11474 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
11475 * gdbarch.h: Regenerated.
11476 * gdbarch.c: Regenerated.
11477 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
11478 (default_insn_is_jump): New.
11479 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
11480 (default_insn_is_jump): New.
11481
864089d2
MM
114822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11483
11484 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
11485 Change to ...
11486 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
11487 (btrace_read_type) <btrace_read_new>: Change to ...
11488 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
11489
ed9edfb5
MM
114902014-01-16 Markus Metzger <markus.t.metzger@intel.com>
11491
11492 * common/linux-btrace.c (linux_read_btrace): Free trace from
11493 previous iteration.
11494
fbcbc3fd
DE
114952014-01-15 Doug Evans <dje@google.com>
11496
11497 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
11498 uint32_t.
11499
3d548a53
TT
115002014-01-15 Tom Tromey <tromey@redhat.com>
11501
11502 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
11503 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
11504 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
11505 (set_objfile_main_name): New function.
11506 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
11507 language_of_main>: New fields.
11508 (set_objfile_main_name): Declare.
11509 * symtab.c (find_main_name): Loop over objfiles to find the main
11510 name and language.
11511 (set_main_name): Now static.
11512 (get_main_info): Add comment.
11513 * symtab.h (set_main_name): Don't declare.
11514
32ac0d11
TT
115152014-01-15 Tom Tromey <tromey@redhat.com>
11516
11517 * symtab.c (main_progspace_key): New global.
11518 (struct main_info): New.
11519 (name_of_main, language_of_main): Remove.
11520 (get_main_info, main_info_cleanup): New function.
11521 (set_main_name, main_name, main_language): Use get_main_info.
11522 (_initialize_symtab): Initialize main_progspace_key.
11523
9e6c82ad
TT
115242014-01-15 Tom Tromey <tromey@redhat.com>
11525
11526 * dbxread.c (process_one_symbol): Update.
11527 * dwarf2read.c (read_partial_die): Update.
11528 * symfile.c (set_initial_language): Call main_language.
11529 * symtab.c (language_of_main): Now static.
11530 (set_main_name): Add 'lang' parameter.
11531 (find_main_name): Update.
11532 (main_language): New function.
11533 (symtab_observer_executable_changed): Update.
11534 * symtab.h (set_main_name): Update.
11535 (language_of_main): Remove.
11536 (main_language): Declare.
11537
6ef55de7
TT
115382014-01-15 Tom Tromey <tromey@redhat.com>
11539
11540 * symfile.c (init_entry_point_info): Use new "initialized" field.
11541 Update.
11542 * objfiles.h (struct entry_point) <initialized>: New field.
11543 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
11544 (struct objfile) <ei>: ...here. Remove.
11545 * objfiles.c (entry_point_address_query): Update.
11546
53eddfa6
TT
115472014-01-15 Tom Tromey <tromey@redhat.com>
11548
11549 * objfiles.c (entry_point_address_query): Relocate entry point
11550 address.
11551 (objfile_relocate1): Do not relocate entry point address.
11552 * objfiles.h (struct entry_info) <entry_point>: Update comment.
11553 <the_bfd_section_index>: New field.
11554 * symfile.c (init_entry_point_info): Find the entry point's
11555 section.
11556
d56e56aa
TT
115572014-01-15 Tom Tromey <tromey@redhat.com>
11558
11559 * solib-frv.c (enable_break): Use entry_point_address_query.
11560
33a97bbe
OJ
115612014-01-15 Omair Javaid <omair.javaid@linaro.org>
11562
11563 * NEWS: Add note on improved process record-replay on
11564 arm*-linux* targets.
11565
c6ec2b30
OJ
115662014-01-15 Omair Javaid <omair.javaid@linaro.org>
11567
11568 * arm-tdep.c (enum arm_record_result): New enum.
11569 (arm_record_unsupported_insn): New function.
11570 (arm_record_coproc_data_proc): Removed.
11571 (thumb2_record_ld_st_multiple): New function.
11572 (thumb2_record_ld_st_dual_ex_tbb): New function.
11573 (thumb2_record_data_proc_sreg_mimm): New function.
11574 (thumb2_record_ps_dest_generic): New function.
11575 (thumb2_record_branch_misc_cntrl): New function.
11576 (thumb2_record_str_single_data): New function.
11577 (thumb2_record_ld_mem_hints): New function.
11578 (thumb2_record_ld_word): New function.
11579 (thumb2_record_lmul_lmla_div): New function.
11580 (thumb2_record_decode_insn_handler): New function.
11581 (decode_insn): Add thumb32 instruction handlers.
11582
97dfe206
OJ
115832014-01-15 Omair Javaid <omair.javaid@linaro.org>
11584
11585 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
11586 (struct arm_linux_record_tdep): Declare.
11587 (arm_canonicalize_syscall): New function.
11588 (arm_all_but_pc_registers_record): New function.
11589 (arm_linux_syscall_record): New function.
11590 (arm_linux_init_abi): Add syscall recording constructs.
11591 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
11592 decoding. (arm_record_coproc_data_proc): Update arm syscall
11593 decoding.
11594 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
11595 <arm_syscall_record>: New field.
11596 * configure.tgt (arm*-*-linux*): Add linux-record.o to
11597 gdb_target_obs.
11598
9904a494
OJ
115992014-01-15 Omair Javaid <omair.javaid@linaro.org>
11600
11601 * arm-tdep.c (thumb_record_misc): Update to use sp as base
11602 register for push instruction recording.
11603
f969241e
OJ
116042014-01-15 Omair Javaid <omair.javaid@linaro.org>
11605
11606 * arm-tdep.c (thumb_record_misc): Update to correct logical
11607 error while recording ldm, ldmia and pop instructions.
11608
bfbbec00
OJ
116092014-01-15 Omair Javaid <omair.javaid@linaro.org>
11610
11611 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
11612
e40adcc9
PA
116132014-01-15 Pedro Alves <palves@redhat.com>
11614
11615 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
11616 (go32_resume, go32_fetch_registers, store_register)
11617 (go32_store_registers, go32_prepare_to_store)
11618 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
11619 (go32_create_inferior, go32_can_run, go32_terminal_init)
11620 (go32_terminal_inferior, go32_terminal_ours): Delete forward
11621 declarations.
11622
b0a16e66
TT
116232014-01-15 Tom Tromey <tromey@redhat.com>
11624
11625 * target.h (async_callback_ftype): New typedef.
11626 (struct target_ops) <to_async>: Use it.
11627
bf7105a4
JB
116282014-01-15 Joel Brobecker <brobecker@adacore.com>
11629
11630 * python/py-value.c (get_field_type): Remove unnecessary curly
11631 braces for single-statement if block.
11632
a8f35c2e
JB
116332014-01-15 Joel Brobecker <brobecker@adacore.com>
11634
11635 * python/py-type.c (convert_field): Add missing empty line
11636 after declarations.
11637
bb4142cf
DE
116382014-01-14 Doug Evans <dje@google.com>
11639
11640 * symfile.h (expand_symtabs_matching): Renamed from
11641 expand_partial_symbol_names. Update prototype.
11642 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11643 * symfile.c (expand_symtabs_matching): Renamed from
11644 expand_partial_symbol_names. New args file_matcher, kind.
11645 Rename arg fun to symbol_matcher.
11646 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
11647 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
11648 ada_expand_partial_symbol_name.
11649 (ada_make_symbol_completion_list): Update to call
11650 expand_symtabs_matching.
11651 (ada_add_global_exceptions): Call expand_symtabs_matching.
11652 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
11653 call map_symbol_filenames.
11654 * symtab.c (sources_info): Update to call map_symbol_filenames.
11655 (search_symbols): Call expand_symtabs_matching.
11656 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
11657 (default_make_symbol_completion_list_break_on): Update to call
11658 expand_symtabs_matching.
11659 (make_source_files_completion_list): Update to call
11660 map_symbol_filenames.
11661
206f2a57
DE
116622014-01-14 Doug Evans <dje@google.com>
11663
11664 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
11665 (expand_symtabs_symbol_matcher_ftype): New typedef.
11666 (quick_symbol_functions.expand_symtabs_matching): Update to use.
11667 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11668 * symfile.c (expand_partial_symbol_names): Update to use
11669 expand_symtabs_symbol_matcher_ftype.
11670 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
11671 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11672 Arg name_matcher renamed to symbol_matcher.
11673 * psymtab.c (recursively_search_psymtabs): Update to use
11674 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
11675 sym_matcher.
11676 (expand_symtabs_matching_via_partial): Update to use
11677 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
11678 Arg name_matcher renamed to symbol_matcher.
11679
540c2971
DE
116802014-01-14 Doug Evans <dje@google.com>
11681
11682 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
11683 (map_partial_symbol_filenames): Ditto.
11684 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
11685 (map_partial_symbol_filenames): Ditto.
11686 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
11687 (map_partial_symbol_filenames): Ditto.
11688 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
11689 (map_partial_symbol_filenames): Ditto.
11690 * symtab.c: Delete #include "psymtab.h".
11691
8213266a
PA
116922014-01-14 Pedro Alves <palves@redhat.com>
11693 Tom Tromey <tromey@redhat.com>
11694
11695 * infrun.c (use_displaced_stepping): Use find_record_target
11696 instead of RECORD_IS_USED.
11697 (adjust_pc_after_break): Use record_full_is_used instead of
11698 RECORD_IS_USED.
11699 * record-btrace.c (record_btrace_open): Call record_preopen
11700 instead of checking RECORD_IS_USED.
11701 * record-full.c (record_full_shortname)
11702 (record_full_core_shortname): New globals.
11703 (record_full_is_used): New function.
11704 (find_full_open): Call record_preopen instead of checking
11705 RECORD_IS_USED.
11706 (init_record_full_ops): Set the target's shortname to
11707 record_full_shortname.
11708 (init_record_full_core_ops): Set the target's shortname to
11709 record_full_core_shortname.
11710 * record-full.h (record_full_is_used): Declare.
11711 * record.c (find_record_target): Make extern.
11712 (record_preopen): New function.
11713 * record.h (RECORD_IS_USED): Delete macro.
11714 (find_record_target, record_preopen): Declare functions.
11715
7ec1862d
YQ
117162014-01-14 Yao Qi <yao@codesourcery.com>
11717
11718 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
11719 'len''s type to ULONGEST.
11720 (core_xfer_shared_libraries_aix): Likewise.
11721 * gdbarch.c, gdbarch.h: Regenerated.
11722 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
11723 Change type of 'len' to ULONGEST.
11724 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11725 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
11726
dea80a27
YQ
117272014-01-14 Yao Qi <yao@codesourcery.com>
11728
11729 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
11730 type of 'len' to ULONGEST.
11731 (linux_xfer_osdata_processgroups): Likewise.
11732 (linux_xfer_osdata_threads): Likewise.
11733 (linux_xfer_osdata_fds): Likewise.
11734 (linux_xfer_osdata_isockets): Likewise.
11735 (linux_xfer_osdata_shm): Likewise.
11736 (linux_xfer_osdata_sem): Likewise.
11737 (linux_xfer_osdata_msg): Likewise.
11738 (linux_common_xfer_osdata): Likewise.
11739 (struct osdata_type) <getter>: Likewise.
11740 * common/linux-osdata.h (linux_common_xfer_osdata): Update
11741 the declaration.
11742
b55e14c7
YQ
117432014-01-14 Yao Qi <yao@codesourcery.com>
11744
11745 * target.h (target_xfer_partial_ftype): Update.
11746 (struct target_ops) <to_xfer_partial>: Change 'len' type to
11747 ULONGEST.
11748 * aix-thread.c (aix_thread_xfer_partial): Change type of
11749 argument 'len' to ULONGEST.
11750 * auxv.c (procfs_xfer_auxv): Likewise.
11751 (ld_so_xfer_auxv): Likewise.
11752 (memory_xfer_auxv): Likewise.
11753 * bfd-target.c (target_bfd_xfer_partial): Likewise.
11754 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
11755 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
11756 * corelow.c (core_xfer_partial): Likewise.
11757 * ctf.c (ctf_xfer_partial): Likewise.
11758 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
11759 '%u'.
11760 (darwin_read_dyld_info): Likewise.
11761 (darwin_xfer_partial): Likewise.
11762 * exec.c (section_table_xfer_memory_partial): Likewise.
11763 (exec_xfer_partial): Likewise.
11764 * exec.h (section_table_xfer_memory_partial): Update
11765 declaration.
11766 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
11767 instead of plongest.
11768 (gnu_xfer_partial): Likewise.
11769 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
11770 (ia64_hpux_xfer_solib_got): Likewise.
11771 (ia64_hpux_xfer_partial): Likewise.
11772 * ia64-linux-nat.c (ia64_linux_xfer_partial):
11773 * inf-ptrace.c (inf_ptrace_xfer_partial):
11774 * inf-ttrace.c (inf_ttrace_xfer_partial):
11775 * linux-nat.c (linux_xfer_siginfo): Likewise.
11776 (linux_nat_xfer_partial): Likewise.
11777 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
11778 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
11779 * monitor.c (monitor_xfer_memory): Likewise.
11780 (monitor_xfer_partial): Likewise.
11781 * procfs.c (procfs_xfer_partial): Likewise.
11782 * record-full.c (record_full_xfer_partial): Likewise.
11783 (record_full_core_xfer_partial): Likewise.
11784 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
11785 instead of plongest.
11786 (gdbsim_xfer_partial): Likewise.
11787 * remote.c (remote_xfer_partial): Likewise.
11788 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
11789 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
11790 declaration.
11791 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
11792 (rs6000_xfer_shared_libraries): Likewise.
11793 * sol-thread.c (sol_thread_xfer_partial): Likewise.
11794 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
11795 (sparc_xfer_partial): Likewise.
11796 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
11797 (spu_xfer_partial): Likewise.
11798 * spu-multiarch.c (spu_xfer_partial): Likewise.
11799 * target.c (target_read_live_memory): Likewise.
11800 (memory_xfer_live_readonly_partial): Likewise.
11801 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
11802 (target_xfer_partial, default_xfer_partial): Likewise.
11803 (current_xfer_partial): Likewise.
11804 * tracepoint.c (tfile_xfer_partial): Likewise.
11805 * windows-nat.c (windows_xfer_memory): Likewise. Call
11806 pulongest instead of plongest.
11807 (windows_xfer_partial): Likewise.
11808 (windows_xfer_shared_libraries): Likewise.
11809
05804640
YQ
118102014-01-14 Yao Qi <yao@codesourcery.com>
11811
11812 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
11813 target_xfer_partial_ftype.
11814
b5b08fb4
SC
118152014-01-13 Siva Chandra Reddy <sivachandra@google.com>
11816
11817 PR python/15464
11818 PR python/16113
11819 * valops.c (value_struct_elt_bitpos): New function
11820 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
11821 object to 'None' if the field name is an empty string ("").
11822 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
11823 attribute to look for a field when 'name' is 'None'.
11824 (get_field_type): New function
11825
13aaf454
DE
118262014-01-13 Doug Evans <dje@google.com>
11827
11828 PR symtab/16426
11829 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
11830 (try_open_dwop_file): Ditto.
11831 * gdb_bfd.c: #include "vec.h".
11832 (bfdp): New typedef.
11833 (struct gdb_bfd_data): New member included_bfds.
11834 (gdb_bfd_unref): Unref all included bfds.
11835 (gdb_bfd_record_inclusion): New function.
11836 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
11837
c2cec97c
TT
118382014-01-13 Tom Tromey <tromey@redhat.com>
11839
11840 * gdbcore.h (deprecated_core_resize_section_table): Remove.
11841
78e5999d
TT
118422014-01-13 Tom Tromey <tromey@redhat.com>
11843
11844 * defs.h (use_windows): Remove.
11845 * gdb.c (main): Update.
11846 * main.c (captured_main, gdb_main): Update.
11847 * main.h (struct captured_main_args) <use_windows>: Remove.
11848 * top.c (use_windows): Remove.
11849
f2052bbe
TT
118502014-01-13 Tom Tromey <tromey@redhat.com>
11851
11852 * defs.h (deprecated_flush_hook): Remove.
11853
fde4f8ed
JK
118542014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11855
11856 PR threads/16216
11857 * linux-thread-db.c (try_thread_db_load): Add parameter
11858 check_auto_load_safe. Move here the file_is_auto_load_safe call.
11859 (try_thread_db_load_from_pdir_1): Move it there from here.
11860 (try_thread_db_load_from_sdir): Update caller.
11861 (try_thread_db_load_from_dir): Move it there from here.
11862
bdf61915
PP
118632014-01-13 Patrick Palka <patrick@parcs.ath.cx>
11864
11865 * regformats/regdat.sh: Always rewrite the register file.
11866
f71e1a8d
PA
118672014-01-13 Pedro Alves <palves@redhat.com>
11868
11869 * Makefile.in (CHECK_HEADERS): New variable.
11870 (check-headers:): New rule.
11871
42c85435
TT
118722014-01-13 Tom Tromey <tromey@redhat.com>
11873
11874 * cli/cli-setshow.c (do_set_command): Update.
11875 * defs.h (deprecated_set_hook): Remove.
11876 * top.c (deprecated_set_hook): Remove.
11877
f8de5129
PA
118782014-01-13 Pedro Alves <palves@redhat.com>
11879
11880 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
11881 the tracepoint if the PC is a pseudo-register.
11882
fc270c35
TT
118832014-01-13 Tom Tromey <tromey@redhat.com>
11884
11885 * defs.h (XCALLOC): Remove.
11886 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
11887 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
11888 * dwarf2loc.c (allocate_piece_closure): Likewise.
11889 * elfread.c (elf_symfile_segments): Likewise.
11890 (elf_symfile_segments): Likewise.
11891 * gdbtypes.c (copy_type_recursive): Likewise.
11892 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
11893 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
11894 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
11895 XCALLOC.
11896 * mt-tdep.c (mt_gdbarch_init): Likewise.
11897 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
11898 XCALLOC.
11899 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
11900 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
11901 * registry.c (registry_alloc_data): Likewise.
11902 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
11903 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
11904 * serial.c (serial_fdopen_ops): Likewise.
11905 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
11906 XCALLOC.
11907 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
11908 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
11909 not XCALLOC.
11910
70ba0933
TT
119112014-01-13 Tom Tromey <tromey@redhat.com>
11912
11913 * defs.h (XMALLOC): Remove.
11914 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
11915 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
11916 * cli-out.c (struct ui_out *): Likewise.
11917 * cli/cli-dump.c (add_dump_command): Likewise.
11918 (add_dump_command): Likewise.
11919 * complaints.c (get_complaints): Likewise.
11920 (find_complaint): Likewise.
11921 * dwarf2-frame.c (execute_cfa_program): Likewise.
11922 * dwarf2read.c (abbrev_table_read_table): Likewise.
11923 * gdbarch.sh: Likewise.
11924 * gdbarch.c: Rebuild.
11925 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
11926 * interps.c (interp_new): Likewise.
11927 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
11928 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
11929 * mi/mi-console.c (mi_console_file_new): Likewise.
11930 * mi/mi-interp.c (mi_interpreter_init): Likewise.
11931 * mi/mi-out.c (mi_out_new): Likewise.
11932 * mi/mi-parse.c (mi_parse): Likewise.
11933 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
11934 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
11935 * observer.c (xalloc_observer_list_node): Likewise.
11936 * regcache.c (regcache_xmalloc_1): Likewise.
11937 * reggroups.c (reggroup_new): Likewise.
11938 (_initialize_reggroup): Likewise.
11939 * registry.c (register_data_with_cleanup): Likewise.
11940 * remote.c (remote_notif_stop_alloc_reply): Likewise.
11941 * ser-base.c (serial_ttystate): Likewise.
11942 * ser-mingw.c (make_pipe_state): Likewise.
11943 * ser-pipe.c (pipe_open): Likewise.
11944 * serial.c (serial_open): Likewise.
11945 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
11946 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
11947 (tui_alloc_win_info): Likewise.
11948 (tui_add_content_elements): Likewise.
11949 * tui/tui-file.c (tui_file_new): Likewise.
11950 * tui/tui-out.c (tui_out_new): Likewise.
11951 * ui-file.c (mem_file_new): Likewise.
11952 * ui-out.c (push_level): Likewise.
11953 (make_cleanup_ui_out_end): Likewise.
11954 (append_header_to_list): Likewise.
11955 (ui_out_new): Likewise.
11956 * user-regs.c (user_reg_add_builtin): Likewise.
11957
41bf6aca
TT
119582014-01-13 Tom Tromey <tromey@redhat.com>
11959
11960 * defs.h (XZALLOC): Remove.
11961 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
11962 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
11963 (get_ada_tasks_inferior_data): Likewise.
11964 * auto-load.c (get_auto_load_pspace_data): Likewise.
11965 * auxv.c (get_auxv_inferior_data): Likewise.
11966 * bfd-target.c (target_bfd_reopen): Likewise.
11967 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
11968 (deprecated_insert_raw_breakpoint): Likewise.
11969 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
11970 * corelow.c (core_open): Likewise.
11971 * darwin-nat.c (darwin_check_new_threads): Likewise.
11972 (darwin_attach_pid): Likewise.
11973 * dummy-frame.c (dummy_frame_push): Likewise.
11974 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
11975 * dwarf2loc.c (allocate_piece_closure): Likewise.
11976 * elfread.c (elf_symfile_segments): Likewise.
11977 * eval.c (ptrmath_type_p): Likewise.
11978 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
11979 * gdbtypes.c (alloc_type_arch): Likewise.
11980 (alloc_type_instance): Likewise.
11981 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
11982 * inf-child.c (inf_child_can_use_agent): Likewise.
11983 * inflow.c (get_inflow_inferior_data): Likewise.
11984 * infrun.c (save_infcall_suspend_state): Likewise.
11985 * jit.c (jit_reader_load): Likewise.
11986 (get_jit_objfile_data): Likewise.
11987 (get_jit_program_space_data): Likewise.
11988 (jit_object_open_impl): Likewise.
11989 (jit_symtab_open_impl): Likewise.
11990 (jit_block_open_impl): Likewise.
11991 (jit_frame_sniffer): Likewise.
11992 * linux-fork.c (add_fork): Likewise.
11993 * maint.c (make_command_stats_cleanup): Likewise.
11994 * objfiles.c (get_objfile_pspace_data): Likewise.
11995 * opencl-lang.c (struct lval_closure): Likewise.
11996 * osdata.c (osdata_start_osdata): Likewise.
11997 * progspace.c (new_address_space): Likewise.
11998 (add_program_space): Likewise.
11999 * remote-sim.c (get_sim_inferior_data): Likewise.
12000 * sh-tdep.c (sh_gdbarch_init): Likewise.
12001 * skip.c (Ignore): Likewise.
12002 (skip_delete_command): Likewise.
12003 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
12004 (library_list_start_library): Likewise.
12005 (solib_aix_current_sos): Likewise.
12006 * solib-darwin.c (get_darwin_info): Likewise.
12007 (darwin_current_sos): Likewise.
12008 * solib-dsbt.c (get_dsbt_info): Likewise.
12009 * solib-ia64-hpux.c (new_so_list): Likewise.
12010 (ia64_hpux_get_solib_linkage_addr): Likewise.
12011 * solib-spu.c (append_ocl_sos): Likewise.
12012 (spu_current_sos): Likewise.
12013 * solib-svr4.c (get_svr4_info): Likewise.
12014 (svr4_keep_data_in_core): Likewise.
12015 (library_list_start_library): Likewise.
12016 (svr4_default_sos): Likewise.
12017 (svr4_read_so_list): Likewise.
12018 * solib-target.c (library_list_start_library): Likewise.
12019 (solib_target_current_sos): Likewise.
12020 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
12021 * symfile-debug.c (install_symfile_debug_logging): Likewise.
12022 * symfile.c (default_symfile_segments): Likewise.
12023 * target-descriptions.c (tdesc_data_init): Likewise.
12024 (tdesc_create_reg): Likewise.
12025 (struct tdesc_type *): Likewise.
12026 (tdesc_create_vector): Likewise.
12027 (tdesc_set_struct_size): Likewise.
12028 (struct tdesc_type *): Likewise.
12029 (tdesc_free_feature): Likewise.
12030 (tdesc_create_feature): Likewise.
12031 * windows-nat.c (windows_add_thread): Likewise.
12032 (windows_make_so): Likewise.
12033 * xml-support.c (gdb_xml_body_text): Likewise.
12034 (gdb_xml_create_parser_and_cleanup): Likewise.
12035 (xml_process_xincludes): Likewise.
12036 * xml-syscall.c (allocate_syscalls_info): Likewise.
12037 (syscall_create_syscall_desc): Likewise.
12038
5acfdbae
SDJ
120392014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
12040
12041 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
12042 function, with code from i386_stap_parse_special_token.
12043 (i386_stap_parse_special_token_three_arg_disp): Likewise.
12044 (i386_stap_parse_special_token): Move code to the two functions
12045 above; simplify it.
12046
0000e5cc
PA
120472014-01-09 Pedro Alves <palves@redhat.com>
12048 Hui Zhu <hui@codesourcery.com>
12049
12050 PR gdb/16101
12051 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
12052 bp_err_string. Don't mark the location shlib_disabled if the
12053 error thrown wasn't a generic or memory error. Catch errors
12054 thrown while inserting breakpoints in overlayed code. Output
12055 error message of software breakpoints.
12056 * remote.c (remote_insert_breakpoint): If this breakpoint has
12057 target-side commands but this stub doesn't support Z0 packets,
12058 throw NOT_SUPPORTED_ERROR error.
12059 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
12060 * target.h (target_insert_breakpoint): Extend comment.
12061 (target_insert_hw_breakpoint): Add comment.
12062
b7ea362b
PA
120632014-01-08 Pedro Alves <palves@redhat.com>
12064
12065 * remote.c (remote_add_thread): Add threads silently if starting
12066 up.
12067 (remote_notice_new_inferior): If in all-stop, and starting up,
12068 don't call notice_new_inferior.
12069 (get_current_thread): New function, factored out from ...
12070 (add_current_inferior_and_thread): ... this. Adjust.
12071 (remote_start_remote) <all-stop>: Fetch the thread list. If we
12072 found any thread, then select the remote's current thread as GDB's
12073 current thread too.
12074
b7bba001
JB
120752014-01-08 Joel Brobecker <brobecker@adacore.com>
12076
12077 * NEWS: Create a new section for the next release branch.
12078 Rename the section of the current branch, now that it has
12079 been cut.
12080
16dfbded
JB
120812014-01-08 Joel Brobecker <brobecker@adacore.com>
12082
12083 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
12084 * version.in: Bump version to 7.7.50.DATE-cvs.
12085
22c90ac1
YQ
120862014-01-08 Yao Qi <yao@codesourcery.com>
12087
12088 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
12089 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
12090 (spu_xfer_partial): Cast 'buf' to 'const char *'.
12091
d64ad97c
YQ
120922014-01-08 Yao Qi <yao@codesourcery.com>
12093
12094 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
12095 return value of bfd_get_filename to symbol_file_add_from_bfd.
12096
f93ba80c
PM
120972014-01-08 Pierre Muller <muller@sourceware.org>
12098
12099 Fix PR16201.
12100 * coff-pe-read.c (struct read_pe_section_data): Add index field.
12101 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
12102 to prim_record_mininal_symbol_and_info.
12103 (add_pe_forwarded_sym): Use known section number of forwarded symbol
12104 in call to prim_record_minimal_symbol_and_info.
12105 (read_pe_exported_syms): Set index field of section_data.
12106
a4d9ba85
AP
121072014-01-07 Andrew Pinski <apinski@cavium.com>
12108
12109 * features/aarch64-core.xml (cpsr): Change to be 64bit.
12110 * features/aarch64.c: Regenerate.
12111
1b67eb02
AS
121122014-01-07 Andreas Schwab <schwab@linux-m68k.org>
12113
12114 * target.c (return_null): Define.
12115 (update_current_target): Use it instead of return_zero for
12116 functions that return a pointer.
12117
5e3f4fab
EBM
121182014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
12119
12120 * source.c (add_path): Fix check for duplicated paths in the previously
12121 included paths.
12122
e2616788
HK
121232014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
12124
12125 * ada-lang.c: Remove duplicated include statements.
12126 * alphabsd-nat.c: Ditto.
12127 * amd64-darwin-tdep.c: Ditto.
12128 * amd64fbsd-nat.c: Ditto.
12129 * auto-load.c: Ditto.
12130 * ax-gdb.c: Ditto.
12131 * breakpoint.c: Ditto.
12132 * dbxread.c: Ditto.
12133 * fork-child.c: Ditto.
12134 * gdb_usleep.c: Ditto.
12135 * i386-darwin-tdep.c: Ditto.
12136 * i386fbsd-nat.c: Ditto.
12137 * infcmd.c: Ditto.
12138 * inferior.c: Ditto.
12139 * jv-lang.c: Ditto.
12140 * linux-nat.c: Ditto.
12141 * linux-tdep.c: Ditto.
12142 * m68kbsd-nat.c: Ditto.
12143 * m68klinux-nat.c: Ditto.
12144 * microblaze-tdep.c: Ditto.
12145 * mips-linux-tdep.c: Ditto.
12146 * mn10300-tdep.c: Ditto.
12147 * nto-tdep.c: Ditto.
12148 * opencl-lang.c: Ditto.
12149 * osdata.c: Ditto.
12150 * printcmd.c: Ditto.
12151 * regcache.c: Ditto.
12152 * remote-m32r-sdi.c: Ditto.
12153 * remote.c: Ditto.
12154 * symfile.c: Ditto.
12155 * symtab.c: Ditto.
12156 * tilegx-linux-nat.c: Ditto.
12157 * tilegx-tdep.c: Ditto.
12158 * tracepoint.c: Ditto.
12159 * valops.c: Ditto.
12160 * vaxbsd-nat.c: Ditto.
12161 * windows-nat.c: Ditto.
12162 * xtensa-tdep.c: Ditto.
12163
bd1f7788
YQ
121642014-01-07 Yao Qi <yao@codesourcery.com>
12165
12166 * spu-linux-nat.c (_initialize_spu_nat): Declare.
12167
79301218
JB
121682014-01-07 Yao Qi <yao@codesourcery.com>
12169 Joel Brobecker <brobecker@adacore.com>
12170
12171 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
12172 (pdc_write_regs): Likewise.
12173 (fetch_regs_kernel_thread): Likewise.
12174 (store_regs_kernel_thread): Likewise.
12175
121762014-01-07 Joel Brobecker <brobecker@adacore.com>
12177
12178 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
12179 tagged type objects to their actual type.
12180
8e355c5d
JB
121812014-01-07 Joel Brobecker <brobecker@adacore.com>
12182
12183 * ada-valprint.c (print_field_values): Add "language" parameter.
12184 Update calls to print_field_values and print_variant_part.
12185 Pass new parameter "language" in call to val_print instead
12186 of "current_language". Replace call to ada_val_print by call
12187 to val_print.
12188 (print_variant_part): Add "language" parameter.
12189 (ada_val_print_struct_union): Update call to print_field_values.
12190
4fbf5aa5
JB
121912014-01-07 Joel Brobecker <brobecker@adacore.com>
12192
12193 * ada-valprint.c (ui_memcpy): Delete.
12194 (ada_print_floating): Update documentation. Add empty line
12195 between between function documentation and implementation.
12196 Delete variable "buffer". Use ui_file_xstrdup in place of
12197 ui_file_put. Minor adjustments following this change.
12198
71855601
JB
121992014-01-07 Joel Brobecker <brobecker@adacore.com>
12200
12201 * ada-valprint.c (ada_val_print_string): New function,
12202 extracted from ada_val_print_array.
12203 (ada_val_print_array): Replace extracted code by call
12204 to ada_val_print_string followed by a return. Move
12205 "else" branch to the function's top block.
12206
4eb27a30
JB
122072014-01-07 Joel Brobecker <brobecker@adacore.com>
12208
12209 * ada-valprint.c (ada_val_print_array): Move implementation
12210 down. Rename parameter "offset" and "val" into "offset_aligned"
12211 and "original_value" respectively. Add parameter "offset".
12212
34b27950
JB
122132014-01-07 Joel Brobecker <brobecker@adacore.com>
12214
12215 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
12216 re-organizing the code. Change the "???" message printed
12217 when target type is a TYPE_CODE_UNDEF into
12218 "<ref to undefined type>".
12219
079e4591
JB
122202014-01-07 Joel Brobecker <brobecker@adacore.com>
12221
12222 * ada-valprint.c (print_record): Delete, implementation inlined...
12223 (ada_val_print_struct_union): ... here. Remove call to
12224 ada_check_typedef in inlined implementation.
12225
8004dfd1
JB
122262014-01-07 Joel Brobecker <brobecker@adacore.com>
12227
12228 * ada-valprint.c (ada_val_print_gnat_array): New function,
12229 extracted from ada_val_print_1;
12230 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
12231 (ada_val_print_flt, ada_val_print_struct_union)
12232 (ada_val_print_ref): Likewise.
12233 (ada_val_print_1): Delete variables i and elttype.
12234 Replace extracted-out code by call to corresponding
12235 new functions.
12236
760a2db0
JB
122372014-01-07 Joel Brobecker <brobecker@adacore.com>
12238
12239 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
12240
3a92c861
JB
122412014-01-07 Joel Brobecker <brobecker@adacore.com>
12242
12243 * ada-valprint.c (ada_val_print_1): Replace calls to
12244 ada_val_print_1 by calls to val_print.
12245
cd1630f9
JB
122462014-01-07 Joel Brobecker <brobecker@adacore.com>
12247
12248 * ada-valprint.c (ada_val_print_1): Add parameter "language".
12249 Update calls to self accordingly. Replace calls to c_val_print
12250 by calls to val_print.
12251
bdf779a0
JB
122522014-01-07 Joel Brobecker <brobecker@adacore.com>
12253
12254 * ada-valprint.c (print_record): Delete declaration.
12255 (adjust_type_signedness, ada_val_print_1): Likewise.
12256 (ada_val_print): Move function implementation down.
12257 (print_variant_part, print_field_values, print_record):
12258 Move function implementation up.
12259
c0d48811
JB
122602014-01-07 Joel Brobecker <brobecker@adacore.com>
12261
12262 * python/py-type.c (typy_get_name): New function.
12263 (type_object_getset): Add entry for attribute "name".
12264 * NEWS: Add entry mentioning this new attribute.
12265
c26e9cbb
YQ
122662014-01-07 Yao Qi <yao@codesourcery.com>
12267
12268 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
12269 statement.
12270
0cc6f43d
YQ
122712014-01-07 Yao Qi <yao@codesourcery.com>
12272
12273 * gnu-nat.c (info_port_rights): Add qualifier const to
12274 argument args.
12275
eec03155
YQ
122762014-01-07 Yao Qi <yao@codesourcery.com>
12277
12278 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
12279
f04a82ef
YQ
122802014-01-07 Yao Qi <yao@codesourcery.com>
12281
12282 * gnu-nat.c (make_inf) Update declaration.
12283 (make_inf): Make it static.
12284 (inf_set_traced): Likewise.
12285 (inf_port_to_thread, inf_task_died_status): Likewise.
12286
d57dda0a
YQ
122872014-01-07 Yao Qi <yao@codesourcery.com>
12288
12289 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
12290
3aa8c969
YQ
122912014-01-07 Yao Qi <yao@codesourcery.com>
12292
12293 * gnu-nat.c (_initialize_gnu_nat): Declare.
12294
94123b4f
YQ
122952014-01-07 Yao Qi <yao@codesourcery.com>
12296
12297 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
12298 'enum bfd_endian'.
12299 (struct gdbarch_info) <byte_order>: Change type to
12300 'enum bfd_endian'.
12301 <byte_order_for_code>: Likewise.
12302 * gdbarch.c, gdbarch.h: Regenerated.
12303
dc81d70a
TT
123042014-01-06 Sasha Smundak <asmundak@google.com>
12305
12306 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
12307
cc2f3c35
TT
123082014-01-06 Tom Tromey <tromey@redhat.com>
12309
12310 * doublest.c (convert_doublest_to_floatformat): Use const, not
12311 CONST.
12312 * somread.c (som_symtab_read): Likewise.
12313
adcf2eed
HZ
123142014-01-07 Hui Zhu <hui@codesourcery.com>
12315
12316 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
12317 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
12318 (gdb_bfd_fopen): Ditto.
12319 (gdb_bfd_openr): Ditto.
12320 (gdb_bfd_openw): Ditto.
12321 (gdb_bfd_openr_iovec): Ditto.
12322 (gdb_bfd_fdopenr): Ditto.
12323 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
12324 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
12325 with xstrdup.
12326 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
12327 with xstrdup.
12328 * symfile-mem.c (symbol_file_add_from_memory): Removed
12329 gdb_bfd_stash_filename.
12330
50722198
DE
123312014-01-03 Doug Evans <dje@google.com>
12332
12333 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
12334 output.
12335
2fa4b862
JB
123362014-01-01 Joel Brobecker <brobecker@adacore.com>
12337
12338 Update year range in copyright notice of all files.
12339
28498c42
JB
123402014-01-01 Joel Brobecker <brobecker@adacore.com>
12341
12342 * top.c (print_gdb_version): Set copyright year to 2014.
12343
7b6e1046
JB
123442014-01-01 Joel Brobecker <brobecker@adacore.com>
12345
12346 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
12347
df96af55 12348For older changes see ChangeLog-2013.
c906108c
SS
12349\f
12350Local Variables:
12351mode: change-log
12352left-margin: 8
12353fill-column: 74
12354version-control: never
57da7796 12355coding: utf-8
c906108c 12356End:
This page took 2.111019 seconds and 4 git commands to generate.